You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RTL/frontend/main.b20278fd7f5f9167.js

1 line
2.7 MiB

var w5=Object.defineProperty,A5=Object.defineProperties,E5=Object.getOwnPropertyDescriptors,m8=Object.getOwnPropertySymbols,T5=Object.prototype.hasOwnProperty,S5=Object.prototype.propertyIsEnumerable,g8=(Ze,K,m)=>K in Ze?w5(Ze,K,{enumerable:!0,configurable:!0,writable:!0,value:m}):Ze[K]=m,ro=(Ze,K)=>{for(var m in K||(K={}))T5.call(K,m)&&g8(Ze,m,K[m]);if(m8)for(var m of m8(K))S5.call(K,m)&&g8(Ze,m,K[m]);return Ze},_8=(Ze,K)=>A5(Ze,E5(K));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{801:(Ze,K,m)=>{"use strict";m.d(K,{Sbq:()=>w,Vfw:()=>j,N2j:()=>pe,DL8:()=>J,BDt:()=>rt,koM:()=>Nr,OS1:()=>Cr,dT$:()=>Kt,mh3:()=>Jt,b7W:()=>Ai,kZ_:()=>wr,q7m:()=>Ot,FlN:()=>Xn,KOR:()=>Fa,Ssp:()=>Ho,eHv:()=>Gr,Mdf:()=>Fl,Aq:()=>aa,qO$:()=>Eh,vqe:()=>cs,sqG:()=>C1,Krp:()=>gl,uli:()=>H0,nNP:()=>E1,byT:()=>U0,SuH:()=>I1,co4:()=>J0,aj4:()=>Nc,kXW:()=>Qa,XsY:()=>bl,USL:()=>zc,r8p:()=>fd,o4t:()=>bd,Psp:()=>W1,dLy:()=>g2,FpQ:()=>b2,wn1:()=>_r,xf3:()=>Rd,HLz:()=>J1,NBC:()=>U2,CgH:()=>Xa,B$L:()=>jr,hkK:()=>X2,hnx:()=>Au,gNZ:()=>Qc,FJU:()=>s0,FVb:()=>Jc,X5K:()=>ih,wyP:()=>ah});var w={prefix:"fas",iconName:"angle-double-down",icon:[320,512,[],"f103","M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"]},j={prefix:"fas",iconName:"angle-double-up",icon:[320,512,[],"f102","M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"]},pe={prefix:"fas",iconName:"archive",icon:[512,512,[],"f187","M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"]},J={prefix:"fas",iconName:"balance-scale",icon:[640,512,[],"f24e","M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},rt={prefix:"fas",iconName:"bolt",icon:[320,512,[],"f0e7","M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]},Nr={prefix:"fas",iconName:"chart-bar",icon:[512,512,[],"f080","M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},Cr={prefix:"fas",iconName:"chart-pie",icon:[544,512,[],"f200","M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"]},Kt={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"]},Jt={prefix:"fas",iconName:"code-branch",icon:[384,512,[],"f126","M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"]},Ai={prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},wr={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]},Ot={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]},Xn={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"]},Fa={prefix:"fas",iconName:"eject",icon:[448,512,[],"f052","M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"]},Ho={prefix:"fas",iconName:"exchange-alt",icon:[512,512,[],"f362","M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"]},Gr={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},Fl={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]},aa={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]},Eh={prefix:"fas",iconName:"history",icon:[512,512,[],"f1da","M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"]},cs={prefix:"fas",iconName:"infinity",icon:[640,512,[],"f534","M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"]},C1={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]},gl={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"]},H0={prefix:"fas",iconName:"life-ring",icon:[512,512,[],"f1cd","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"]},E1={prefix:"fas",iconName:"link",icon:[512,512,[],"f0c1","M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"]},U0={prefix:"fas",iconName:"lock",icon:[448,512,[],"f023","M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"]},I1={prefix:"fas",iconName:"map-signs",icon:[512,512,[],"f277","M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"]},J0={prefix:"fas",iconName:"money-bill-alt",icon:[640,512,[],"f3d1","M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"]},Nc={prefix:"fas",iconName:"money-bill-wave",icon:[640,512,[],"f53a","M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"]},Qa={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"]},bl={prefix:"fas",iconName:"paint-brush",icon:[512,512,[],"f1fc","M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"]},zc={prefix:"fas",iconName:"percentage",icon:[384,512,[],"f541","M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"]},fd={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},bd={prefix:"fas",iconName:"project-diagram",icon:[640,512,[],"f542","M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"]},W1={prefix:"fas",iconName:"question",icon:[384,512,[],"f128","M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"]},g2={prefix:"fas",iconName:"receipt",icon:[384,512,[],"f543","M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"]},b2={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]},_r={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},Rd={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"]},J1={prefix:"fas",iconName:"tachometer-alt",icon:[576,512,[],"f3fd","M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},U2={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},Xa={prefix:"fas",iconName:"tools",icon:[512,512,[],"f7d9","M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]},jr={prefix:"fas",iconName:"unlock-alt",icon:[448,512,[],"f13e","M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"]},X2={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"]},Au={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"]},Qc={prefix:"fas",iconName:"user-cog",icon:[640,512,[],"f4fe","M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"]},s0={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]},Jc={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"]},ih={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},ah={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"]}},1443:(Ze,K,m)=>{"use strict";m.d(K,{Ni:()=>v,xH:()=>C,oo:()=>s,CN:()=>M,CX:()=>c,SN:()=>N,RX:()=>o,HJ:()=>L,I8:()=>O,EG:()=>A,Lu:()=>E,g3:()=>k,xS:()=>w,_E:()=>V,$W:()=>j,Z8:()=>$,El:()=>ee,X3:()=>ce,z:()=>le,EK:()=>te,cQ:()=>re,HI:()=>pe,oV:()=>y,TM:()=>i,WO:()=>a,kL:()=>p,UR:()=>u,as:()=>_,pW:()=>D,YX:()=>I,BL:()=>x,OG:()=>r,Sf:()=>b,$A:()=>Z,n7:()=>P,v_:()=>U,u0:()=>ye,QJ:()=>xe,Ip:()=>Ne,M7:()=>Be,KE:()=>Oe,d6:()=>B,WM:()=>Me,Nr:()=>we,Rd:()=>ae,YP:()=>We,aL:()=>vt,g6:()=>Pe,Wi:()=>Ve,Ly:()=>Ee,UH:()=>ke,eM:()=>q,VD:()=>J,yl:()=>oe,Zu:()=>Ce,dh:()=>Ue,ZH:()=>ht,i9:()=>it,JK:()=>ft,uT:()=>nt,d7:()=>st,e9:()=>wt,_9:()=>Bt,en:()=>Pt});var e=m(5620),t=m(7731);const v=(0,e.PH)(t.sW.UPDATE_API_CALL_STATUS_CL,(0,e.Ky)()),C=(0,e.PH)(t.sW.RESET_CL_STORE,(0,e.Ky)()),s=(0,e.PH)(t.sW.SET_CHILD_NODE_SETTINGS_CL,(0,e.Ky)()),M=(0,e.PH)(t.sW.FETCH_INFO_CL,(0,e.Ky)()),c=(0,e.PH)(t.sW.SET_INFO_CL,(0,e.Ky)()),N=(0,e.PH)(t.sW.FETCH_FEES_CL),o=(0,e.PH)(t.sW.SET_FEES_CL,(0,e.Ky)()),L=(0,e.PH)(t.sW.FETCH_FEE_RATES_CL,(0,e.Ky)()),O=(0,e.PH)(t.sW.SET_FEE_RATES_CL,(0,e.Ky)()),A=(0,e.PH)(t.sW.FETCH_BALANCE_CL),E=(0,e.PH)(t.sW.SET_BALANCE_CL,(0,e.Ky)()),k=(0,e.PH)(t.sW.FETCH_LOCAL_REMOTE_BALANCE_CL),w=(0,e.PH)(t.sW.SET_LOCAL_REMOTE_BALANCE_CL,(0,e.Ky)()),V=(0,e.PH)(t.sW.GET_NEW_ADDRESS_CL,(0,e.Ky)()),j=((0,e.PH)(t.sW.SET_NEW_ADDRESS_CL,(0,e.Ky)()),(0,e.PH)(t.sW.FETCH_PEERS_CL)),$=(0,e.PH)(t.sW.SET_PEERS_CL,(0,e.Ky)()),ee=(0,e.PH)(t.sW.SAVE_NEW_PEER_CL,(0,e.Ky)()),ce=((0,e.PH)(t.sW.NEWLY_ADDED_PEER_CL,(0,e.Ky)()),(0,e.PH)(t.sW.ADD_PEER_CL,(0,e.Ky)())),le=(0,e.PH)(t.sW.DETACH_PEER_CL,(0,e.Ky)()),te=(0,e.PH)(t.sW.REMOVE_PEER_CL,(0,e.Ky)()),re=(0,e.PH)(t.sW.FETCH_PAYMENTS_CL),pe=(0,e.PH)(t.sW.SET_PAYMENTS_CL,(0,e.Ky)()),y=(0,e.PH)(t.sW.SEND_PAYMENT_CL,(0,e.Ky)()),i=(0,e.PH)(t.sW.SEND_PAYMENT_STATUS_CL,(0,e.Ky)()),a=(0,e.PH)(t.sW.GET_QUERY_ROUTES_CL,(0,e.Ky)()),p=(0,e.PH)(t.sW.SET_QUERY_ROUTES_CL,(0,e.Ky)()),u=(0,e.PH)(t.sW.FETCH_CHANNELS_CL),_=(0,e.PH)(t.sW.SET_CHANNELS_CL,(0,e.Ky)()),D=(0,e.PH)(t.sW.UPDATE_CHANNEL_CL,(0,e.Ky)()),I=(0,e.PH)(t.sW.SAVE_NEW_CHANNEL_CL,(0,e.Ky)()),x=(0,e.PH)(t.sW.CLOSE_CHANNEL_CL,(0,e.Ky)()),r=(0,e.PH)(t.sW.REMOVE_CHANNEL_CL,(0,e.Ky)()),b=(0,e.PH)(t.sW.PEER_LOOKUP_CL,(0,e.Ky)()),Z=(0,e.PH)(t.sW.CHANNEL_LOOKUP_CL,(0,e.Ky)()),P=(0,e.PH)(t.sW.INVOICE_LOOKUP_CL,(0,e.Ky)()),U=(0,e.PH)(t.sW.SET_LOOKUP_CL,(0,e.Ky)()),ye=(0,e.PH)(t.sW.GET_FORWARDING_HISTORY_CL,(0,e.Ky)()),xe=(0,e.PH)(t.sW.SET_FORWARDING_HISTORY_CL,(0,e.Ky)()),Ne=(0,e.PH)(t.sW.GET_FAILED_FORWARDING_HISTORY_CL),Be=(0,e.PH)(t.sW.SET_FAILED_FORWARDING_HISTORY_CL,(0,e.Ky)()),Oe=(0,e.PH)(t.sW.GET_LOCAL_FAILED_FORWARDING_HISTORY_CL),B=(0,e.PH)(t.sW.SET_LOCAL_FAILED_FORWARDING_HISTORY_CL,(0,e.Ky)()),Me=(0,e.PH)(t.sW.FETCH_INVOICES_CL,(0,e.Ky)()),we=(0,e.PH)(t.sW.SET_INVOICES_CL,(0,e.Ky)()),ae=(0,e.PH)(t.sW.SAVE_NEW_INVOICE_CL,(0,e.Ky)()),We=(0,e.PH)(t.sW.ADD_INVOICE_CL,(0,e.Ky)()),vt=(0,e.PH)(t.sW.UPDATE_INVOICE_CL,(0,e.Ky)()),Pe=(0,e.PH)(t.sW.DELETE_EXPIRED_INVOICE_CL,(0,e.Ky)()),Ve=(0,e.PH)(t.sW.SET_CHANNEL_TRANSACTION_CL,(0,e.Ky)()),Ee=((0,e.PH)(t.sW.SET_CHANNEL_TRANSACTION_RES_CL,(0,e.Ky)()),(0,e.PH)(t.sW.FETCH_UTXOS_CL)),ke=(0,e.PH)(t.sW.SET_UTXOS_CL,(0,e.Ky)()),q=(0,e.PH)(t.sW.FETCH_OFFER_INVOICE_CL,(0,e.Ky)()),J=(0,e.PH)(t.sW.SET_OFFER_INVOICE_CL,(0,e.Ky)()),oe=(0,e.PH)(t.sW.FETCH_OFFERS_CL),Ce=(0,e.PH)(t.sW.SET_OFFERS_CL,(0,e.Ky)()),Ue=(0,e.PH)(t.sW.SAVE_NEW_OFFER_CL,(0,e.Ky)()),ht=(0,e.PH)(t.sW.ADD_OFFER_CL,(0,e.Ky)()),it=(0,e.PH)(t.sW.DISABLE_OFFER_CL,(0,e.Ky)()),ft=(0,e.PH)(t.sW.UPDATE_OFFER_CL,(0,e.Ky)()),nt=(0,e.PH)(t.sW.FETCH_OFFER_BOOKMARKS_CL),st=(0,e.PH)(t.sW.SET_OFFER_BOOKMARKS_CL,(0,e.Ky)()),wt=(0,e.PH)(t.sW.ADD_UPDATE_OFFER_BOOKMARK_CL,(0,e.Ky)()),Bt=(0,e.PH)(t.sW.DELETE_OFFER_BOOKMARK_CL,(0,e.Ky)()),Pt=(0,e.PH)(t.sW.REMOVE_OFFER_BOOKMARK_CL,(0,e.Ky)())},3504:(Ze,K,m)=>{"use strict";m.d(K,{s:()=>pe});var e=m(6642),t=m(7579),v=m(9646),C=m(5577),s=m(2722),M=m(4004),c=m(262),N=m(1365),o=m(2340),L=m(1786),O=m(1954),A=m(7731),E=m(7861),k=m(1443),w=m(7080),V=m(1189),W=m(5e3),j=m(8138),$=m(5620),ee=m(5986),me=m(62),ce=m(5043),le=m(9291),te=m(7998),re=m(9808);let pe=(()=>{class y{constructor(a,p,u,_,D,I,x,r,b){this.actions=a,this.httpClient=p,this.store=u,this.sessionService=_,this.commonService=D,this.logger=I,this.router=x,this.wsService=r,this.location=b,this.CHILD_API_URL=o.T5+"/cl",this.flgInitialized=!1,this.unSubs=[new t.x,new t.x,new t.x],this.infoFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.FETCH_INFO_CL),(0,C.z)(Z=>(this.flgInitialized=!1,this.store.dispatch((0,E.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,k.Ni)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+o.NZ.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,e.l4)(A.pg.SET_SELECTED_NODE))),(0,M.U)(P=>(this.logger.info(P),P.chains&&P.chains.length&&P.chains[0]&&"object"==typeof P.chains[0]&&P.chains[0].hasOwnProperty("chain")&&P.chains[0].chain.toLowerCase().indexOf("bitcoin")<0?(this.store.dispatch((0,k.Ni)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:A.pg.LOGOUT}):(this.initializeRemainingData(P,Z.payload.loadPage),this.store.dispatch((0,k.Ni)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_INFO})),{type:A.sW.SET_INFO_CL,payload:P||{}}))),(0,c.K)(P=>{const U=this.commonService.extractErrorCode(P),ye="ETIMEDOUT"===U?"Unable to Connect to C-Lightning Server.":this.commonService.extractErrorMessage(P);return this.router.navigate(["/error"],{state:{errorCode:U,errorMessage:ye}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:U,error:ye}),(0,v.of)({type:A.pg.VOID})})))))),this.fetchFeesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.FETCH_FEES_CL),(0,C.z)(()=>(this.store.dispatch((0,k.Ni)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.FEES_API))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,k.Ni)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),{type:A.sW.SET_FEES_CL,payload:Z||{}})),(0,c.K)(Z=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",Z),(0,v.of)({type:A.pg.VOID}))))),this.fetchFeeRatesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.FETCH_FEE_RATES_CL),(0,C.z)(Z=>(this.store.dispatch((0,k.Ni)({payload:{action:"FetchFeeRates"+Z.payload,status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.NETWORK_API+"/feeRates/"+Z.payload).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.Ni)({payload:{action:"FetchFeeRates"+Z.payload,status:A.Bn.COMPLETED}})),{type:A.sW.SET_FEE_RATES_CL,payload:P||{}})),(0,c.K)(P=>(this.handleErrorWithoutAlert("FetchFeeRates"+Z.payload,A.m6.NO_SPINNER,"Fetching Fee Rates Failed.",P),(0,v.of)({type:A.pg.VOID})))))))),this.fetchBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.FETCH_BALANCE_CL),(0,C.z)(()=>(this.store.dispatch((0,k.Ni)({payload:{action:"FetchBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.BALANCE_API))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,k.Ni)({payload:{action:"FetchBalance",status:A.Bn.COMPLETED}})),{type:A.sW.SET_BALANCE_CL,payload:Z||{}})),(0,c.K)(Z=>(this.handleErrorWithoutAlert("FetchBalance",A.m6.NO_SPINNER,"Fetching Balances Failed.",Z),(0,v.of)({type:A.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.FETCH_LOCAL_REMOTE_BALANCE_CL),(0,C.z)(()=>(this.store.dispatch((0,k.Ni)({payload:{action:"FetchLocalRemoteBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/localremotebalance"))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,k.Ni)({payload:{action:"FetchLocalRemoteBalance",status:A.Bn.COMPLETED}})),{type:A.sW.SET_LOCAL_REMOTE_BALANCE_CL,payload:Z||{}})),(0,c.K)(Z=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",A.m6.NO_SPINNER,"Fetching Balances Failed.",Z),(0,v.of)({type:A.pg.VOID}))))),this.getNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.GET_NEW_ADDRESS_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+o.NZ.ON_CHAIN_API+"?type="+Z.payload.addressCode).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,E.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.sW.SET_NEW_ADDRESS_CL,payload:P&&P.address?P.address:{}})),(0,c.K)(P=>(this.handleErrorWithAlert("GenerateNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+o.NZ.ON_CHAIN_API+"?type="+Z.payload.addressId,P),(0,v.of)({type:A.pg.VOID})))))))),this.setNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.SET_NEW_ADDRESS_CL),(0,M.U)(Z=>(this.logger.info(Z.payload),Z.payload))),{dispatch:!1}),this.peersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.FETCH_PEERS_CL),(0,C.z)(()=>(this.store.dispatch((0,k.Ni)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.PEERS_API).pipe((0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,k.Ni)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.sW.SET_PEERS_CL,payload:Z||[]})),(0,c.K)(Z=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",Z),(0,v.of)({type:A.pg.VOID})))))))),this.saveNewPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.SAVE_NEW_PEER_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,k.Ni)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.PEERS_API,{id:Z.payload.id}).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.Ni)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,k.Z8)({payload:P||[]})),{type:A.sW.NEWLY_ADDED_PEER_CL,payload:{peer:P.find(U=>0===Z.payload.id.indexOf(U.id))}})),(0,c.K)(P=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",P),(0,v.of)({type:A.pg.VOID})))))))),this.detachPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.DETACH_PEER_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+o.NZ.PEERS_API+"/"+Z.payload.id+"?force="+Z.payload.force).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,E.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,E.jW)({payload:"Peer Disconnected Successfully!"})),{type:A.sW.REMOVE_PEER_CL,payload:{id:Z.payload.id}})),(0,c.K)(P=>(this.handleErrorWithAlert("PeerDisconnect",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+o.NZ.PEERS_API+"/"+Z.payload.id,P),(0,v.of)({type:A.pg.VOID})))))))),this.channelsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.FETCH_CHANNELS_CL),(0,C.z)(()=>(this.store.dispatch((0,k.Ni)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/listChannels"))),(0,M.U)(Z=>{this.logger.info(Z),this.store.dispatch((0,k.Ni)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.u0)({payload:{status:"settled"}}));const P={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return Z.forEach(U=>{"CHANNELD_NORMAL"===U.state?U.connected?P.activeChannels.push(U):P.inactiveChannels.push(U):P.pendingChannels.push(U)}),{type:A.sW.SET_CHANNELS_CL,payload:P}}),(0,c.K)(Z=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",Z),(0,v.of)({type:A.pg.VOID}))))),this.openNewChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.SAVE_NEW_CHANNEL_CL),(0,C.z)(Z=>{this.store.dispatch((0,E.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.Ni)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}}));const P={id:Z.payload.peerId,satoshis:Z.payload.satoshis,feeRate:Z.payload.feeRate,announce:Z.payload.announce,minconf:Z.payload.minconf?Z.payload.minconf:null};return Z.payload.utxos&&(P.utxos=Z.payload.utxos),this.httpClient.post(this.CHILD_API_URL+o.NZ.CHANNELS_API,P).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,k.Ni)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,k.EG)()),this.store.dispatch((0,k.Ly)()),{type:A.sW.FETCH_CHANNELS_CL})),(0,c.K)(U=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",U),(0,v.of)({type:A.pg.VOID}))))}))),this.updateChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.UPDATE_CHANNEL_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/setChannelFee",{id:Z.payload.channelId,base:Z.payload.baseFeeMsat,ppm:Z.payload.feeRate}).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,E.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,E.jW)("all"===Z.payload.channelId?{payload:{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}}:{payload:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})),{type:A.sW.FETCH_CHANNELS_CL})),(0,c.K)(P=>(this.handleErrorWithAlert("UpdateChannel",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+o.NZ.CHANNELS_API,P),(0,v.of)({type:A.pg.VOID})))))))),this.closeChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.CLOSE_CHANNEL_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:Z.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/"+Z.payload.channelId+(Z.payload.force?"?force="+Z.payload.force:"")).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:Z.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.g3)()),this.store.dispatch((0,E.jW)({payload:"Channel Closed Successfully!"})),{type:A.sW.REMOVE_CHANNEL_CL,payload:Z.payload})),(0,c.K)(U=>(this.handleErrorWithAlert("CloseChannel",Z.payload.force?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+o.NZ.CHANNELS_API,U),(0,v.of)({type:A.pg.VOID})))))))),this.paymentsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.FETCH_PAYMENTS_CL),(0,C.z)(()=>(this.store.dispatch((0,k.Ni)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.PAYMENTS_API))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,k.Ni)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.sW.SET_PAYMENTS_CL,payload:Z||[]})),(0,c.K)(Z=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",Z),(0,v.of)({type:A.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.FETCH_OFFER_INVOICE_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.FETCH_INVOICE})),this.store.dispatch((0,k.Ni)({payload:{action:"FetchOfferInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.OFFERS_API+"/fetchOfferInvoice",Z.payload).pipe((0,M.U)(P=>{this.logger.info(P),setTimeout(()=>{this.store.dispatch((0,k.Ni)({payload:{action:"FetchOfferInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.FETCH_INVOICE})),this.store.dispatch((0,k.VD)({payload:P||{}}))},500)}),(0,c.K)(P=>(this.handleErrorWithoutAlert("FetchOfferInvoice",A.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",P),(0,v.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.SET_OFFER_INVOICE_CL),(0,M.U)(Z=>(this.logger.info(Z.payload),Z.payload))),{dispatch:!1}),this.sendPaymentCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.SEND_PAYMENT_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:Z.payload.uiMessage})),this.store.dispatch((0,k.Ni)({payload:{action:"SendPayment",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.PAYMENTS_API,Z.payload).pipe((0,M.U)(P=>{this.logger.info(P),this.store.dispatch((0,k.Ni)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}}));let U="Payment Sent Successfully!";P.saveToDBError&&(U="Payment Sent Successfully but Offer Saving to Database Failed."),P.saveToDBResponse&&"NA"!==P.saveToDBResponse&&(this.store.dispatch((0,k.e9)({payload:P.saveToDBResponse})),U="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.EG)()),this.store.dispatch((0,k.cQ)()),this.store.dispatch((0,E.uO)({payload:Z.payload.uiMessage})),this.store.dispatch((0,E.jW)({payload:U})),this.store.dispatch((0,k.TM)({payload:P.paymentResponse}))},1e3)}),(0,c.K)(P=>(this.logger.error("Error: "+JSON.stringify(P)),Z.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",Z.payload.uiMessage,"Send Payment Failed.",P):this.handleErrorWithAlert("SendPayment",Z.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+o.NZ.PAYMENTS_API,P),(0,v.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.GET_QUERY_ROUTES_CL),(0,C.z)(Z=>(this.store.dispatch((0,k.Ni)({payload:{action:"GetQueryRoutes",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.NETWORK_API+"/getRoute/"+Z.payload.destPubkey+"/"+Z.payload.amount).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.Ni)({payload:{action:"GetQueryRoutes",status:A.Bn.COMPLETED}})),{type:A.sW.SET_QUERY_ROUTES_CL,payload:P})),(0,c.K)(P=>(this.store.dispatch((0,k.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+o.NZ.NETWORK_API+"/getRoute/"+Z.payload.destPubkey+"/"+Z.payload.amount,P),(0,v.of)({type:A.pg.VOID})))))))),this.setQueryRoutesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.SET_QUERY_ROUTES_CL),(0,M.U)(Z=>Z.payload)),{dispatch:!1}),this.peerLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.PEER_LOOKUP_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,k.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.NETWORK_API+"/listNode/"+Z.payload).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_NODE})),{type:A.sW.SET_LOOKUP_CL,payload:P})),(0,c.K)(P=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+o.NZ.NETWORK_API+"/listNode/"+Z.payload,P),(0,v.of)({type:A.pg.VOID})))))))),this.channelLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.CHANNEL_LOOKUP_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:Z.payload.uiMessage})),this.store.dispatch((0,k.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.NETWORK_API+"/listChannel/"+Z.payload.shortChannelID).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:Z.payload.uiMessage})),{type:A.sW.SET_LOOKUP_CL,payload:P})),(0,c.K)(P=>(Z.payload.showError?this.handleErrorWithAlert("Lookup",Z.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+o.NZ.NETWORK_API+"/listChannel/"+Z.payload.shortChannelID,P):this.store.dispatch((0,E.uO)({payload:Z.payload.uiMessage})),this.store.dispatch((0,k.v_)({payload:[]})),(0,v.of)({type:A.pg.VOID})))))))),this.invoiceLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.INVOICE_LOOKUP_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.Ni)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.INVOICES_API+"?label="+Z.payload).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.Ni)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_INVOICE})),P.invoices&&P.invoices.length&&P.invoices.length>0&&this.store.dispatch((0,k.aL)({payload:P.invoices[0]})),{type:A.sW.SET_LOOKUP_CL,payload:P.invoices&&P.invoices.length&&P.invoices.length>0?P.invoices[0]:P})),(0,c.K)(P=>(this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",P),this.store.dispatch((0,E.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,v.of)({type:A.pg.VOID})))))))),this.setLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.SET_LOOKUP_CL),(0,M.U)(Z=>(this.logger.info(Z.payload),Z.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.GET_FORWARDING_HISTORY_CL),(0,N.M)(this.store.select(w.W3)),(0,C.z)(([Z,P])=>(this.store.dispatch((0,k.Ni)({payload:{action:"FetchForwardingHistory",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/listForwards?status="+Z.payload.status).pipe((0,M.U)(U=>{if(this.logger.info(U),this.store.dispatch((0,k.Ni)({payload:{action:"FetchForwardingHistory",status:A.Bn.COMPLETED}})),!P.api_version||!this.commonService.isVersionCompatible(P.api_version,"0.5.0")){const xe=[],Ne=[],Be=[];U.forEach(Oe=>{"settled"===Oe.status?Be.push(Oe):"failed"===Oe.status?Ne.push(Oe):"local_failed"===Oe.status&&xe.push(Oe)}),U=JSON.parse(JSON.stringify(Be)),"failed"===Z.payload.status&&this.store.dispatch((0,k.M7)({payload:Ne})),"local_failed"===Z.payload.status&&this.store.dispatch((0,k.M7)({payload:xe}))}return{type:A.sW.SET_FORWARDING_HISTORY_CL,payload:U}}),(0,c.K)(U=>(this.handleErrorWithAlert("FetchForwardingHistory",A.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+o.NZ.CHANNELS_API+"/listForwards?status="+Z.payload.status,U),(0,v.of)({type:A.pg.VOID})))))))),this.fetchFailedForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.GET_FAILED_FORWARDING_HISTORY_CL),(0,N.M)(this.store.select(w.W3)),(0,C.z)(([Z,P])=>(this.store.dispatch((0,k.Ni)({payload:{action:"FetchFailedForwardingHistory",status:A.Bn.INITIATED}})),P.api_version&&this.commonService.isVersionCompatible(P.api_version,"0.5.0")?this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/listForwards?status=failed").pipe((0,M.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,k.Ni)({payload:{action:"FetchFailedForwardingHistory",status:A.Bn.COMPLETED}})),{type:A.sW.SET_FAILED_FORWARDING_HISTORY_CL,payload:ye})),(0,c.K)(ye=>(this.handleErrorWithAlert("FetchFailedForwardingHistory",A.m6.NO_SPINNER,"Get Failed Forwarding History Failed",this.CHILD_API_URL+o.NZ.CHANNELS_API+"/listForwards?status=failed",ye),(0,v.of)({type:A.pg.VOID})))):(this.store.dispatch((0,k.Ni)({payload:{action:"FetchFailedForwardingHistory",status:A.Bn.COMPLETED}})),(0,v.of)({type:A.pg.VOID})))))),this.fetchLocalFailedForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.GET_LOCAL_FAILED_FORWARDING_HISTORY_CL),(0,N.M)(this.store.select(w.W3)),(0,C.z)(([Z,P])=>(this.store.dispatch((0,k.Ni)({payload:{action:"FetchLocalFailedForwardingHistory",status:A.Bn.INITIATED}})),P.api_version&&this.commonService.isVersionCompatible(P.api_version,"0.5.0")?this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/listForwards?status=local_failed").pipe((0,M.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,k.Ni)({payload:{action:"FetchLocalFailedForwardingHistory",status:A.Bn.COMPLETED}})),{type:A.sW.SET_LOCAL_FAILED_FORWARDING_HISTORY_CL,payload:ye})),(0,c.K)(ye=>(this.handleErrorWithAlert("FetchLocalFailedForwardingHistory",A.m6.NO_SPINNER,"Get Local Failed Forwarding History Failed",this.CHILD_API_URL+o.NZ.CHANNELS_API+"/listForwards?status=local_failed",ye),(0,v.of)({type:A.pg.VOID})))):(this.store.dispatch((0,k.Ni)({payload:{action:"FetchLocalFailedForwardingHistory",status:A.Bn.COMPLETED}})),(0,v.of)({type:A.pg.VOID})))))),this.deleteExpiredInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.DELETE_EXPIRED_INVOICE_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+o.NZ.INVOICES_API+(Z.payload?"?maxexpiry="+Z.payload:"")).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.DELETE_INVOICE})),this.store.dispatch((0,E.jW)({payload:"Invoices Deleted Successfully!"})),{type:A.sW.FETCH_INVOICES_CL,payload:{num_max_invoices:1e6,reversed:!0}})),(0,c.K)(U=>(this.handleErrorWithAlert("DeleteInvoices",A.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+o.NZ.INVOICES_API,U),(0,v.of)({type:A.pg.VOID})))))))),this.saveNewInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.SAVE_NEW_INVOICE_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.ADD_INVOICE})),this.store.dispatch((0,k.Ni)({payload:{action:"SaveNewInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.INVOICES_API,{label:Z.payload.label,amount:Z.payload.amount,description:Z.payload.description,expiry:Z.payload.expiry,private:Z.payload.private}).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.Ni)({payload:{action:"SaveNewInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.ADD_INVOICE})),P.msatoshi=Z.payload.amount,P.label=Z.payload.label,P.expires_at=Math.round((new Date).getTime()/1e3+Z.payload.expiry),P.description=Z.payload.description,P.status="unpaid",setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{invoice:P,newlyAdded:!0,component:O.$}}}))},100),{type:A.sW.ADD_INVOICE_CL,payload:P})),(0,c.K)(P=>(this.handleErrorWithoutAlert("SaveNewInvoice",A.m6.ADD_INVOICE,"Add Invoice Failed.",P),(0,v.of)({type:A.pg.VOID})))))))),this.saveNewOfferCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.SAVE_NEW_OFFER_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.CREATE_OFFER})),this.store.dispatch((0,k.Ni)({payload:{action:"SaveNewOffer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.OFFERS_API,{amount:Z.payload.amount,description:Z.payload.description,vendor:Z.payload.vendor}).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.Ni)({payload:{action:"SaveNewOffer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{offer:P,newlyAdded:!0,component:V.V}}}))},100),{type:A.sW.ADD_OFFER_CL,payload:P})),(0,c.K)(P=>(this.handleErrorWithoutAlert("SaveNewOffer",A.m6.CREATE_OFFER,"Create Offer Failed.",P),(0,v.of)({type:A.pg.VOID})))))))),this.invoicesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.FETCH_INVOICES_CL),(0,C.z)(Z=>(this.store.dispatch((0,k.Ni)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.INVOICES_API+"?num_max_invoices="+(Z.payload.num_max_invoices?Z.payload.num_max_invoices:1e6)+"&index_offset="+(Z.payload.index_offset?Z.payload.index_offset:0)+"&reversed="+(!Z.payload.reversed||Z.payload.reversed)).pipe((0,M.U)(xe=>(this.logger.info(xe),this.store.dispatch((0,k.Ni)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),{type:A.sW.SET_INVOICES_CL,payload:xe})),(0,c.K)(xe=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",xe),(0,v.of)({type:A.pg.VOID})))))))),this.offersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.FETCH_OFFERS_CL),(0,C.z)(Z=>(this.store.dispatch((0,k.Ni)({payload:{action:"FetchOffers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.OFFERS_API).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.Ni)({payload:{action:"FetchOffers",status:A.Bn.COMPLETED}})),{type:A.sW.SET_OFFERS_CL,payload:P.offers?P.offers:[]})),(0,c.K)(P=>(this.handleErrorWithoutAlert("FetchOffers",A.m6.NO_SPINNER,"Fetching Offers Failed.",P),(0,v.of)({type:A.pg.VOID})))))))),this.offersDisableCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.DISABLE_OFFER_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISABLE_OFFER})),this.store.dispatch((0,k.Ni)({payload:{action:"DisableOffer",status:A.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+o.NZ.OFFERS_API+"/"+Z.payload.offer_id).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.Ni)({payload:{action:"DisableOffer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.DISABLE_OFFER})),this.store.dispatch((0,E.jW)({payload:"Offer Disabled Successfully!"})),{type:A.sW.UPDATE_OFFER_CL,payload:{offer:P}})),(0,c.K)(P=>(this.handleErrorWithoutAlert("DisableOffer",A.m6.DISABLE_OFFER,"Disabling Offer Failed.",P),(0,v.of)({type:A.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.FETCH_OFFER_BOOKMARKS_CL),(0,C.z)(Z=>(this.store.dispatch((0,k.Ni)({payload:{action:"FetchOfferBookmarks",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.OFFERS_API+"/offerbookmarks").pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.Ni)({payload:{action:"FetchOfferBookmarks",status:A.Bn.COMPLETED}})),{type:A.sW.SET_OFFER_BOOKMARKS_CL,payload:P||[]})),(0,c.K)(P=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",A.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",P),(0,v.of)({type:A.pg.VOID})))))))),this.peidOffersDeleteCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.DELETE_OFFER_BOOKMARK_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,k.Ni)({payload:{action:"DeleteOfferBookmark",status:A.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+o.NZ.OFFERS_API+"/offerbookmark/"+Z.payload.bolt12).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.Ni)({payload:{action:"DeleteOfferBookmark",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,E.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:A.sW.REMOVE_OFFER_BOOKMARK_CL,payload:{bolt12:Z.payload.bolt12}})),(0,c.K)(P=>(this.handleErrorWithAlert("DeleteOfferBookmark",A.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+o.NZ.OFFERS_API+"/offerbookmark/"+Z.payload.bolt12,P),(0,v.of)({type:A.pg.VOID})))))))),this.SetChannelTransactionCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.SET_CHANNEL_TRANSACTION_CL),(0,C.z)(Z=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,k.Ni)({payload:{action:"SetChannelTransaction",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.ON_CHAIN_API,Z.payload).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.Ni)({payload:{action:"SetChannelTransaction",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,k.EG)()),this.store.dispatch((0,k.Ly)()),{type:A.sW.SET_CHANNEL_TRANSACTION_RES_CL,payload:P})),(0,c.K)(P=>(this.handleErrorWithoutAlert("SetChannelTransaction",A.m6.SEND_FUNDS,"Sending Fund Failed.",P),(0,v.of)({type:A.pg.VOID})))))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.sW.FETCH_UTXOS_CL),(0,C.z)(()=>(this.store.dispatch((0,k.Ni)({payload:{action:"FetchUTXOs",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.ON_CHAIN_API+"/utxos"))),(0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,k.Ni)({payload:{action:"FetchUTXOs",status:A.Bn.COMPLETED}})),{type:A.sW.SET_UTXOS_CL,payload:Z.outputs||[]})),(0,c.K)(Z=>(this.handleErrorWithoutAlert("FetchUTXOs",A.m6.NO_SPINNER,"Fetching UTXOs Failed.",Z),(0,v.of)({type:A.pg.VOID}))))),this.store.select(w.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(Z=>{Z.FetchInfo.status!==A.Bn.COMPLETED&&Z.FetchInfo.status!==A.Bn.ERROR||Z.FetchFees.status!==A.Bn.COMPLETED&&Z.FetchFees.status!==A.Bn.ERROR||Z.FetchChannels.status!==A.Bn.COMPLETED&&Z.FetchChannels.status!==A.Bn.ERROR||Z.FetchBalance.status!==A.Bn.COMPLETED&&Z.FetchBalance.status!==A.Bn.ERROR||Z.FetchLocalRemoteBalance.status!==A.Bn.COMPLETED&&Z.FetchLocalRemoteBalance.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,E.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(Z=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(Z)),Z)switch(Z.event){case A.U5.INVOICE:this.logger.info(Z),Z&&Z.data&&Z.data.label&&this.store.dispatch((0,k.aL)({payload:Z.data}));break;case A.U5.SEND_PAYMENT:case A.U5.BLOCK_HEIGHT:this.logger.info(Z);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(Z))}})}initializeRemainingData(a,p){this.sessionService.setItem("clUnlocked","true");const u={identity_pubkey:a.id,alias:a.alias,testnet:"testnet"===a.network.toLowerCase(),chains:a.chains,uris:a.uris,version:a.version,api_version:a.api_version,numberOfPendingChannels:a.num_pending_channels};this.store.dispatch((0,E.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,E._V)({payload:u}));let _=this.location.path();_.includes("/lnd/")?_=_.replace("/lnd/","/cl/"):_.includes("/ecl/")&&(_=_.replace("/ecl/","/cl/")),(_.includes("/login")||_.includes("/error")||""===_||"HOME"===p||_.includes("?access-key="))&&(_="/cl/home"),this.router.navigate([_]),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,k.SN)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.EG)()),this.store.dispatch((0,k.g3)()),this.store.dispatch((0,k.HJ)({payload:"perkw"})),this.store.dispatch((0,k.HJ)({payload:"perkb"})),this.store.dispatch((0,k.$W)()),this.store.dispatch((0,k.Ly)()),this.store.dispatch((0,k.cQ)())}handleErrorWithoutAlert(a,p,u,_){if(this.logger.error("ERROR IN: "+a+"\n"+JSON.stringify(_)),401===_.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:p}));const D=this.commonService.extractErrorMessage(_,u);this.store.dispatch((0,k.Ni)({payload:{action:a,status:A.Bn.ERROR,statusCode:_.status.toString(),message:D}}))}}handleErrorWithAlert(a,p,u,_,D){if(this.logger.error(D),401===D.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:p}));const I=this.commonService.extractErrorMessage(D);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:D.status,message:I,URL:_},component:L.H}}})),this.store.dispatch((0,k.Ni)({payload:{action:a,status:A.Bn.ERROR,statusCode:D.status.toString(),message:I,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return y.\u0275fac=function(a){return new(a||y)(W.LFG(e.eX),W.LFG(j.eN),W.LFG($.yh),W.LFG(ee.m),W.LFG(me.v),W.LFG(ce.mQ),W.LFG(le.F0),W.LFG(te.d),W.LFG(re.Ye))},y.\u0275prov=W.Yz7({token:y,factory:y.\u0275fac}),y})()},7080:(Ze,K,m)=>{"use strict";m.d(K,{Jo:()=>v,W3:()=>C,yA:()=>M,PP:()=>c,Wi:()=>N,JG:()=>o,zm:()=>L,hx:()=>O,gc:()=>A,T4:()=>E,ZW:()=>k,Rn:()=>w,Wj:()=>V,Bo:()=>W,xQ:()=>j,lK:()=>$,OL:()=>ee,jK:()=>me,Ao:()=>ce,Hz:()=>le,Y_:()=>te,EQ:()=>re});var e=m(5620);const t=(0,e.ZF)("cl"),v=(0,e.P1)(t,y=>y.nodeSettings),C=(0,e.P1)(t,y=>y.information),M=((0,e.P1)(t,y=>y.apisCallStatus.FetchInfo),(0,e.P1)(t,y=>y.apisCallStatus)),c=(0,e.P1)(t,y=>({payments:y.payments,apiCallStatus:y.apisCallStatus.FetchPayments})),N=(0,e.P1)(t,y=>({peers:y.peers,apiCallStatus:y.apisCallStatus.FetchPeers})),o=(0,e.P1)(t,y=>({fees:y.fees,apiCallStatus:y.apisCallStatus.FetchFees})),L=(0,e.P1)(t,y=>({feeRatesPerKB:y.feeRatesPerKB,apiCallStatus:y.apisCallStatus.FetchFeeRatesperkb})),O=(0,e.P1)(t,y=>({feeRatesPerKW:y.feeRatesPerKW,apiCallStatus:y.apisCallStatus.FetchFeeRatesperkw})),A=(0,e.P1)(t,y=>({listInvoices:y.invoices,apiCallStatus:y.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,y=>({utxos:y.utxos,apiCallStatus:y.apisCallStatus.FetchUTXOs})),k=(0,e.P1)(t,y=>({activeChannels:y.activeChannels,pendingChannels:y.pendingChannels,inactiveChannels:y.inactiveChannels,apiCallStatus:y.apisCallStatus.FetchChannels})),w=(0,e.P1)(t,y=>({balance:y.balance,apiCallStatus:y.apisCallStatus.FetchBalance})),V=(0,e.P1)(t,y=>({localRemoteBalance:y.localRemoteBalance,apiCallStatus:y.apisCallStatus.FetchLocalRemoteBalance})),W=(0,e.P1)(t,y=>({forwardingHistory:y.forwardingHistory,apiCallStatus:y.apisCallStatus.FetchForwardingHistory})),j=(0,e.P1)(t,y=>({failedForwardingHistory:y.failedForwardingHistory,apiCallStatus:y.apisCallStatus.FetchFailedForwardingHistory})),$=(0,e.P1)(t,y=>({localFailedForwardingHistory:y.localFailedForwardingHistory,apiCallStatus:y.apisCallStatus.FetchLocalFailedForwardingHistory})),ee=(0,e.P1)(t,y=>({information:y.information,nodeSettings:y.nodeSettings,balance:y.balance})),me=(0,e.P1)(t,y=>({information:y.information,balance:y.balance,numPeers:y.peers.length})),ce=(0,e.P1)(t,y=>({information:y.information,balance:y.balance})),le=(0,e.P1)(t,y=>({information:y.information,nodeSettings:y.nodeSettings,apisCallStatus:[y.apisCallStatus.FetchInfo,y.apisCallStatus.FetchForwardingHistory]})),te=(0,e.P1)(t,y=>({offers:y.offers,apiCallStatus:y.apisCallStatus.FetchOffers})),re=(0,e.P1)(t,y=>({offersBookmarks:y.offersBookmarks,apiCallStatus:y.apisCallStatus.FetchOfferBookmarks}))},1954:(Ze,K,m)=>{"use strict";m.d(K,{$:()=>vt});var e=m(8966),t=m(801),v=m(7579),C=m(2722),s=m(7731),M=m(7080),c=m(5e3),N=m(5043),o=m(62),L=m(7261),O=m(5620),A=m(7093),E=m(9808),k=m(3322),w=m(9224),V=m(9444),W=m(7423),j=m(4834),$=m(159),ee=m(7238),me=m(773),ce=m(3390),le=m(6895);function te(Pe,Ve){if(1&Pe&&c._UZ(0,"qr-code",33),2&Pe){const he=c.oxw();c.Q6J("value",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))("size",he.qrWidth)("errorCorrectionLevel","L")}}function re(Pe,Ve){1&Pe&&(c.TgZ(0,"span",34),c._uU(1,"N/A"),c.qZA())}const pe=function(Pe){return{"mr-0":Pe}};function y(Pe,Ve){if(1&Pe&&c._UZ(0,"span",35),2&Pe){const he=c.oxw();c.Q6J("ngClass",c.VKq(1,pe,he.screenSize===he.screenSizeEnum.XS))}}function i(Pe,Ve){if(1&Pe&&c._UZ(0,"span",36),2&Pe){const he=c.oxw();c.Q6J("ngClass",c.VKq(1,pe,he.screenSize===he.screenSizeEnum.XS))}}function a(Pe,Ve){if(1&Pe&&c._UZ(0,"span",37),2&Pe){const he=c.oxw();c.Q6J("ngClass",c.VKq(1,pe,he.screenSize===he.screenSizeEnum.XS))}}function p(Pe,Ve){if(1&Pe&&c._UZ(0,"qr-code",33),2&Pe){const he=c.oxw();c.Q6J("value",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))("size",he.qrWidth)("errorCorrectionLevel","L")}}function u(Pe,Ve){1&Pe&&(c.TgZ(0,"span",38),c._uU(1,"QR Code Not Applicable"),c.qZA())}function _(Pe,Ve){1&Pe&&c._UZ(0,"mat-divider",39),2&Pe&&c.Q6J("inset",!0)}function D(Pe,Ve){if(1&Pe&&(c.TgZ(0,"div",19),c.TgZ(1,"div",40),c._UZ(2,"fa-icon",41),c.TgZ(3,"span"),c._uU(4),c.qZA(),c.qZA(),c.qZA()),2&Pe){const he=c.oxw();c.xp6(2),c.Q6J("icon",he.faExclamationTriangle),c.xp6(2),c.Oqu(null==he.invoice?null:he.invoice.warning_capacity)}}function I(Pe,Ve){1&Pe&&(c.ynx(0),c._uU(1," (zero amount) "),c.BQk())}function x(Pe,Ve){1&Pe&&c._UZ(0,"span",47)}const r=function(){return[]};function b(Pe,Ve){if(1&Pe&&(c.TgZ(0,"div",43),c.TgZ(1,"div",44),c.TgZ(2,"span",45),c._uU(3),c.ALo(4,"number"),c.qZA(),c.YNc(5,x,1,0,"span",46),c.qZA(),c.qZA()),2&Pe){const he=c.oxw(2);c.xp6(3),c.hij("",c.lcZ(4,2,(null==he.invoice?null:he.invoice.msatoshi_received)/1e3)," Sats"),c.xp6(2),c.Q6J("ngForOf",c.DdM(4,r).constructor(35))}}function Z(Pe,Ve){if(1&Pe&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"number"),c.qZA()),2&Pe){const he=c.oxw(2);c.xp6(1),c.hij("",c.lcZ(2,1,(null==he.invoice?null:he.invoice.msatoshi_received)/1e3)," Sats")}}function P(Pe,Ve){if(1&Pe&&(c.ynx(0),c.YNc(1,b,6,5,"div",42),c.YNc(2,Z,3,3,"div",23),c.BQk()),2&Pe){const he=c.oxw();c.xp6(1),c.Q6J("ngIf",he.flgInvoicePaid),c.xp6(1),c.Q6J("ngIf",!he.flgInvoicePaid)}}function U(Pe,Ve){1&Pe&&(c.TgZ(0,"span"),c._uU(1,"-"),c.qZA())}function ye(Pe,Ve){1&Pe&&c._UZ(0,"mat-spinner",49),2&Pe&&c.Q6J("diameter",20)}function xe(Pe,Ve){if(1&Pe&&(c.ynx(0),c.YNc(1,U,2,0,"span",23),c.YNc(2,ye,1,1,"mat-spinner",48),c.BQk()),2&Pe){const he=c.oxw();c.xp6(1),c.Q6J("ngIf","unpaid"!==(null==he.invoice?null:he.invoice.status)||!he.flgVersionCompatible),c.xp6(1),c.Q6J("ngIf","unpaid"===(null==he.invoice?null:he.invoice.status)&&he.flgVersionCompatible)}}function Ne(Pe,Ve){if(1&Pe&&(c.TgZ(0,"div"),c._UZ(1,"mat-divider",25),c.TgZ(2,"div",19),c.TgZ(3,"div",26),c.TgZ(4,"h4",21),c._uU(5,"Payment Hash"),c.qZA(),c.TgZ(6,"span",24),c._uU(7),c.qZA(),c.qZA(),c.qZA(),c._UZ(8,"mat-divider",25),c.TgZ(9,"div",19),c.TgZ(10,"div",26),c.TgZ(11,"h4",21),c._uU(12,"Label"),c.qZA(),c.TgZ(13,"span",24),c._uU(14),c.qZA(),c.qZA(),c.qZA(),c._UZ(15,"mat-divider",25),c.qZA()),2&Pe){const he=c.oxw();c.xp6(7),c.Oqu(null==he.invoice?null:he.invoice.payment_hash),c.xp6(7),c.Oqu(null==he.invoice?null:he.invoice.label)}}function Be(Pe,Ve){1&Pe&&(c.TgZ(0,"p"),c._uU(1,"Show Advanced"),c.qZA())}function Oe(Pe,Ve){1&Pe&&(c.TgZ(0,"p"),c._uU(1,"Hide Advanced"),c.qZA())}function B(Pe,Ve){if(1&Pe){const he=c.EpF();c.TgZ(0,"button",50),c.NdJ("copied",function(ke){return c.CHM(he),c.oxw().onCopyPayment(ke)}),c._uU(1,"Copy Invoice"),c.qZA()}if(2&Pe){const he=c.oxw();c.Q6J("payload",(null==he.invoice?null:he.invoice.bolt11)||(null==he.invoice?null:he.invoice.bolt12))}}function Me(Pe,Ve){if(1&Pe){const he=c.EpF();c.TgZ(0,"button",51),c.NdJ("click",function(){return c.CHM(he),c.oxw().onClose()}),c._uU(1,"OK"),c.qZA()}}const we=function(Pe){return{"display-none":Pe}},ae=function(Pe){return{"xs-scroll-y":Pe}},We=function(Pe,Ve){return{"mt-2":Pe,"mt-1":Ve}};let vt=(()=>{class Pe{constructor(he,Ee,ke,q,J,oe){this.dialogRef=he,this.data=Ee,this.logger=ke,this.commonService=q,this.snackBar=J,this.store=oe,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new v.x,new v.x,new v.x,new v.x,new v.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(M.W3).pipe((0,C.R)(this.unSubs[0])).subscribe(he=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(he.api_version,"0.6.0")}),this.store.select(M.gc).pipe((0,C.R)(this.unSubs[1])).subscribe(he=>{const Ee=this.invoice.status;this.invoice=(he.listInvoices.invoices||[]).find(q=>q.payment_hash===this.invoice.payment_hash),Ee!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(he)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(he){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+he)}ngOnDestroy(){this.unSubs.forEach(he=>{he.next(null),he.complete()})}}return Pe.\u0275fac=function(he){return new(he||Pe)(c.Y36(e.so),c.Y36(e.WI),c.Y36(N.mQ),c.Y36(o.v),c.Y36(L.ux),c.Y36(O.yh))},Pe.\u0275cmp=c.Xpm({type:Pe,selectors:[["rtl-cl-invoice-information"]],decls:72,vars:49,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","dot green ml-1","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow ml-1","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red ml-1","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green","ml-1",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow","ml-1",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red","ml-1",3,"ngClass"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(he,Ee){if(1&he&&(c.TgZ(0,"div",0),c.TgZ(1,"div",1),c.YNc(2,te,1,3,"qr-code",2),c.YNc(3,re,2,0,"span",3),c.qZA(),c.TgZ(4,"div",4),c.TgZ(5,"mat-card-header",5),c.TgZ(6,"div",6),c._UZ(7,"fa-icon",7),c.TgZ(8,"span",8),c._uU(9),c.YNc(10,y,1,3,"span",9),c.YNc(11,i,1,3,"span",10),c.YNc(12,a,1,3,"span",11),c.qZA(),c.qZA(),c.TgZ(13,"button",12),c.NdJ("click",function(){return Ee.onClose()}),c._uU(14,"X"),c.qZA(),c.qZA(),c.TgZ(15,"mat-card-content",13),c.TgZ(16,"div",14),c.TgZ(17,"div",15),c.YNc(18,p,1,3,"qr-code",2),c.YNc(19,u,2,0,"span",16),c.qZA(),c.YNc(20,_,1,1,"mat-divider",17),c.YNc(21,D,5,2,"div",18),c.TgZ(22,"div",19),c.TgZ(23,"div",20),c.TgZ(24,"h4",21),c._uU(25),c.qZA(),c.TgZ(26,"span",22),c._uU(27),c.ALo(28,"number"),c.YNc(29,I,2,0,"ng-container",23),c.qZA(),c.qZA(),c.TgZ(30,"div",20),c.TgZ(31,"h4",21),c._uU(32,"Amount Received"),c.qZA(),c.TgZ(33,"span",24),c.YNc(34,P,3,2,"ng-container",23),c.YNc(35,xe,3,2,"ng-container",23),c.qZA(),c.qZA(),c.qZA(),c._UZ(36,"mat-divider",25),c.TgZ(37,"div",19),c.TgZ(38,"div",20),c.TgZ(39,"h4",21),c._uU(40,"Date Expiry"),c.qZA(),c.TgZ(41,"span",22),c._uU(42),c.ALo(43,"date"),c.qZA(),c.qZA(),c.TgZ(44,"div",20),c.TgZ(45,"h4",21),c._uU(46,"Date Settled"),c.qZA(),c.TgZ(47,"span",22),c._uU(48),c.ALo(49,"date"),c.qZA(),c.qZA(),c.qZA(),c._UZ(50,"mat-divider",25),c.TgZ(51,"div",19),c.TgZ(52,"div",26),c.TgZ(53,"h4",21),c._uU(54,"Description"),c.qZA(),c.TgZ(55,"span",22),c._uU(56),c.qZA(),c.qZA(),c.qZA(),c._UZ(57,"mat-divider",25),c.TgZ(58,"div",19),c.TgZ(59,"div",26),c.TgZ(60,"h4",21),c._uU(61),c.qZA(),c.TgZ(62,"span",24),c._uU(63),c.qZA(),c.qZA(),c.qZA(),c.YNc(64,Ne,16,2,"div",23),c.TgZ(65,"div",27),c.TgZ(66,"button",28),c.NdJ("click",function(){return Ee.onShowAdvanced()}),c.YNc(67,Be,2,0,"p",29),c.YNc(68,Oe,2,0,"ng-template",null,30,c.W1O),c.qZA(),c.YNc(70,B,2,1,"button",31),c.YNc(71,Me,2,0,"button",32),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&he){const ke=c.MAs(69);c.xp6(1),c.Q6J("fxLayoutAlign",null!=Ee.invoice&&Ee.invoice.bolt11&&""!==(null==Ee.invoice?null:Ee.invoice.bolt11)||null!=Ee.invoice&&Ee.invoice.bolt12&&""!==(null==Ee.invoice?null:Ee.invoice.bolt12)?"center start":"center center")("ngClass",c.VKq(40,we,Ee.screenSize===Ee.screenSizeEnum.XS||Ee.screenSize===Ee.screenSizeEnum.SM)),c.xp6(1),c.Q6J("ngIf",(null==Ee.invoice?null:Ee.invoice.bolt11)&&""!==(null==Ee.invoice?null:Ee.invoice.bolt11)||(null==Ee.invoice?null:Ee.invoice.bolt12)&&""!==(null==Ee.invoice?null:Ee.invoice.bolt12)),c.xp6(1),c.Q6J("ngIf",!(null!=Ee.invoice&&Ee.invoice.bolt11||null!=Ee.invoice&&Ee.invoice.bolt12)),c.xp6(4),c.Q6J("icon",Ee.faReceipt),c.xp6(2),c.hij(" ",Ee.screenSize===Ee.screenSizeEnum.XS?Ee.newlyAdded?"Created":"Invoice":Ee.newlyAdded?"Invoice Created":"Invoice Information"," "),c.xp6(1),c.Q6J("ngIf","paid"===(null==Ee.invoice?null:Ee.invoice.status)),c.xp6(1),c.Q6J("ngIf","unpaid"===(null==Ee.invoice?null:Ee.invoice.status)),c.xp6(1),c.Q6J("ngIf","expired"===(null==Ee.invoice?null:Ee.invoice.status)),c.xp6(3),c.Q6J("ngClass",c.VKq(42,ae,Ee.screenSize===Ee.screenSizeEnum.XS)),c.xp6(2),c.Q6J("fxLayoutAlign",null!=Ee.invoice&&Ee.invoice.bolt11&&""!==(null==Ee.invoice?null:Ee.invoice.bolt11)||null!=Ee.invoice&&Ee.invoice.bolt12&&""!==(null==Ee.invoice?null:Ee.invoice.bolt12)?"center start":"center center")("ngClass",c.VKq(44,we,Ee.screenSize!==Ee.screenSizeEnum.XS&&Ee.screenSize!==Ee.screenSizeEnum.SM)),c.xp6(1),c.Q6J("ngIf",(null==Ee.invoice?null:Ee.invoice.bolt11)&&""!==(null==Ee.invoice?null:Ee.invoice.bolt11)||(null==Ee.invoice?null:Ee.invoice.bolt12)&&""!==(null==Ee.invoice?null:Ee.invoice.bolt12)),c.xp6(1),c.Q6J("ngIf",!(null!=Ee.invoice&&Ee.invoice.bolt11||null!=Ee.invoice&&Ee.invoice.bolt12)),c.xp6(1),c.Q6J("ngIf",Ee.screenSize===Ee.screenSizeEnum.XS||Ee.screenSize===Ee.screenSizeEnum.SM),c.xp6(1),c.Q6J("ngIf",null==Ee.invoice?null:Ee.invoice.warning_capacity),c.xp6(4),c.Oqu(Ee.screenSize===Ee.screenSizeEnum.XS?"Amount":"Amount Requested"),c.xp6(2),c.hij(" ",c.lcZ(28,32,(null==Ee.invoice?null:Ee.invoice.msatoshi)/1e3||0)," Sats"),c.xp6(2),c.Q6J("ngIf",!(null!=Ee.invoice&&Ee.invoice.msatoshi)||"0"===(null==Ee.invoice?null:Ee.invoice.msatoshi)),c.xp6(5),c.Q6J("ngIf","paid"===(null==Ee.invoice?null:Ee.invoice.status)),c.xp6(1),c.Q6J("ngIf","paid"!==(null==Ee.invoice?null:Ee.invoice.status)),c.xp6(7),c.Oqu(c.xi3(43,34,1e3*(null==Ee.invoice?null:Ee.invoice.expires_at),"dd/MMM/y HH:mm")),c.xp6(6),c.Oqu(c.xi3(49,37,1e3*(null==Ee.invoice?null:Ee.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),c.xp6(8),c.Oqu((null==Ee.invoice?null:Ee.invoice.description)||"-"),c.xp6(5),c.hij("",null!=Ee.invoice&&Ee.invoice.bolt12?"Bolt12":null!=Ee.invoice&&Ee.invoice.bolt11&&!Ee.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),c.xp6(2),c.Oqu((null==Ee.invoice?null:Ee.invoice.bolt11)||(null==Ee.invoice?null:Ee.invoice.bolt12)),c.xp6(1),c.Q6J("ngIf",Ee.showAdvanced),c.xp6(1),c.Q6J("ngClass",c.WLB(46,We,!Ee.showAdvanced,Ee.showAdvanced)),c.xp6(2),c.Q6J("ngIf",!Ee.showAdvanced)("ngIfElse",ke),c.xp6(3),c.Q6J("ngIf",(null==Ee.invoice?null:Ee.invoice.bolt11)&&""!==(null==Ee.invoice?null:Ee.invoice.bolt11)||(null==Ee.invoice?null:Ee.invoice.bolt12)&&""!==(null==Ee.invoice?null:Ee.invoice.bolt12)),c.xp6(1),c.Q6J("ngIf",!(null!=Ee.invoice&&Ee.invoice.bolt11||null!=Ee.invoice&&Ee.invoice.bolt12))}},directives:[A.xw,A.Wh,A.yH,E.mk,k.oO,E.O5,w.dk,V.BN,W.lW,w.dn,j.d,$.uU,ee.gM,E.sg,me.$g,ce.h,le.y],pipes:[E.JJ,E.uU],styles:[""]}),Pe})()},1189:(Ze,K,m)=>{"use strict";m.d(K,{V:()=>U});var e=m(8966),t=m(801),v=m(7579),C=m(2722),s=m(7731),M=m(7080),c=m(5e3),N=m(5043),o=m(62),L=m(7261),O=m(5620),A=m(8104),E=m(7093),k=m(9808),w=m(3322),V=m(9224),W=m(9444),j=m(7423),$=m(4834),ee=m(159),me=m(3390),ce=m(6895);function le(ye,xe){if(1&ye&&c._UZ(0,"qr-code",28),2&ye){const Ne=c.oxw();c.Q6J("value",null==Ne.offer?null:Ne.offer.bolt12)("size",Ne.qrWidth)("errorCorrectionLevel","L")}}function te(ye,xe){1&ye&&(c.TgZ(0,"span",29),c._uU(1,"N/A"),c.qZA())}function re(ye,xe){if(1&ye&&c._UZ(0,"qr-code",28),2&ye){const Ne=c.oxw();c.Q6J("value",null==Ne.offer?null:Ne.offer.bolt12)("size",Ne.qrWidth)("errorCorrectionLevel","L")}}function pe(ye,xe){1&ye&&(c.TgZ(0,"span",30),c._uU(1,"QR Code Not Applicable"),c.qZA())}function y(ye,xe){1&ye&&c._UZ(0,"mat-divider",31),2&ye&&c.Q6J("inset",!0)}function i(ye,xe){1&ye&&c._UZ(0,"mat-divider",19)}function a(ye,xe){if(1&ye&&(c.TgZ(0,"div",15),c.TgZ(1,"div",16),c.TgZ(2,"h4",17),c._uU(3,"Used"),c.qZA(),c.TgZ(4,"span",18),c._uU(5),c.qZA(),c.qZA(),c.TgZ(6,"div",16),c.TgZ(7,"h4",17),c._uU(8,"Single Use"),c.qZA(),c.TgZ(9,"span",18),c._uU(10),c.qZA(),c.qZA(),c.qZA()),2&ye){const Ne=c.oxw(2);c.xp6(5),c.hij(" ",null!=Ne.offer&&Ne.offer.used?null!=Ne.offer&&Ne.offer.used?"Yes":"No":"N/K"," "),c.xp6(5),c.hij(" ",null!=Ne.offer&&Ne.offer.single_use?null!=Ne.offer&&Ne.offer.single_use?"Yes":"No":"N/K"," ")}}function p(ye,xe){1&ye&&c._UZ(0,"mat-divider",19)}function u(ye,xe){if(1&ye&&(c.TgZ(0,"div",15),c.TgZ(1,"div",20),c.TgZ(2,"h4",17),c._uU(3,"Vendor"),c.qZA(),c.TgZ(4,"span",34),c._uU(5),c.qZA(),c.qZA(),c.qZA()),2&ye){const Ne=c.oxw(2);c.xp6(5),c.Oqu((null==Ne.offerDecoded?null:Ne.offerDecoded.vendor)||(null==Ne.offerDecoded?null:Ne.offerDecoded.issuer))}}function _(ye,xe){if(1&ye&&(c.TgZ(0,"div"),c.YNc(1,i,1,0,"mat-divider",32),c.YNc(2,a,11,2,"div",33),c.YNc(3,p,1,0,"mat-divider",32),c.YNc(4,u,6,1,"div",33),c._UZ(5,"mat-divider",19),c.TgZ(6,"div",15),c.TgZ(7,"div",20),c.TgZ(8,"h4",17),c._uU(9,"Offer ID"),c.qZA(),c.TgZ(10,"span",18),c._uU(11),c.qZA(),c.qZA(),c.qZA(),c._UZ(12,"mat-divider",19),c.qZA()),2&ye){const Ne=c.oxw();c.xp6(1),c.Q6J("ngIf",(null==Ne.offer?null:Ne.offer.used)||(null==Ne.offer?null:Ne.offer.single_use)),c.xp6(1),c.Q6J("ngIf",(null==Ne.offer?null:Ne.offer.used)||(null==Ne.offer?null:Ne.offer.single_use)),c.xp6(1),c.Q6J("ngIf",(null==Ne.offerDecoded?null:Ne.offerDecoded.vendor)||(null==Ne.offerDecoded?null:Ne.offerDecoded.issuer)),c.xp6(1),c.Q6J("ngIf",(null==Ne.offerDecoded?null:Ne.offerDecoded.vendor)||(null==Ne.offerDecoded?null:Ne.offerDecoded.issuer)),c.xp6(7),c.Oqu(Ne.offerDecoded.offer_id)}}function D(ye,xe){1&ye&&(c.TgZ(0,"p"),c._uU(1,"Show Advanced"),c.qZA())}function I(ye,xe){1&ye&&(c.TgZ(0,"p"),c._uU(1,"Hide Advanced"),c.qZA())}function x(ye,xe){if(1&ye){const Ne=c.EpF();c.TgZ(0,"button",35),c.NdJ("copied",function(Oe){return c.CHM(Ne),c.oxw().onCopyOffer(Oe)}),c._uU(1,"Copy Offer"),c.qZA()}if(2&ye){const Ne=c.oxw();c.Q6J("payload",null==Ne.offer?null:Ne.offer.bolt12)}}function r(ye,xe){if(1&ye){const Ne=c.EpF();c.TgZ(0,"button",36),c.NdJ("click",function(){return c.CHM(Ne),c.oxw().onClose()}),c._uU(1,"OK"),c.qZA()}}const b=function(ye){return{"display-none":ye}},Z=function(ye){return{"xs-scroll-y":ye}},P=function(ye,xe){return{"mt-2":ye,"mt-1":xe}};let U=(()=>{class ye{constructor(Ne,Be,Oe,B,Me,we,ae){this.dialogRef=Ne,this.data=Be,this.logger=Oe,this.commonService=B,this.snackBar=Me,this.store=we,this.dataService=ae,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgOfferPaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new v.x,new v.x,new v.x,new v.x,new v.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(M.W3).pipe((0,C.R)(this.unSubs[0])).subscribe(Ne=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Ne.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,C.R)(this.unSubs[1])).subscribe(Ne=>{this.offerDecoded=Ne,this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0):this.offerDecoded.amount=+(this.offerDecoded.amount||this.offerDecoded.amount_msat.slice(0,-4))})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(Ne){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+Ne)}ngOnDestroy(){this.unSubs.forEach(Ne=>{Ne.next(null),Ne.complete()})}}return ye.\u0275fac=function(Ne){return new(Ne||ye)(c.Y36(e.so),c.Y36(e.WI),c.Y36(N.mQ),c.Y36(o.v),c.Y36(L.ux),c.Y36(O.yh),c.Y36(A.D))},ye.\u0275cmp=c.Xpm({type:ye,selectors:[["rtl-cl-offer-information"]],decls:52,vars:33,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Ne,Be){if(1&Ne&&(c.TgZ(0,"div",0),c.TgZ(1,"div",1),c.YNc(2,le,1,3,"qr-code",2),c.YNc(3,te,2,0,"span",3),c.qZA(),c.TgZ(4,"div",4),c.TgZ(5,"mat-card-header",5),c.TgZ(6,"div",6),c._UZ(7,"fa-icon",7),c.TgZ(8,"span",8),c._uU(9),c.qZA(),c.qZA(),c.TgZ(10,"button",9),c.NdJ("click",function(){return Be.onClose()}),c._uU(11,"X"),c.qZA(),c.qZA(),c.TgZ(12,"mat-card-content",10),c.TgZ(13,"div",11),c.TgZ(14,"div",12),c.YNc(15,re,1,3,"qr-code",2),c.YNc(16,pe,2,0,"span",13),c.qZA(),c.YNc(17,y,1,1,"mat-divider",14),c.TgZ(18,"div",15),c.TgZ(19,"div",16),c.TgZ(20,"h4",17),c._uU(21,"Amount Requested (Sats)"),c.qZA(),c.TgZ(22,"span",18),c._uU(23),c.ALo(24,"number"),c.qZA(),c.qZA(),c.TgZ(25,"div",16),c.TgZ(26,"h4",17),c._uU(27,"Active"),c.qZA(),c.TgZ(28,"span",18),c._uU(29),c.qZA(),c.qZA(),c.qZA(),c._UZ(30,"mat-divider",19),c.TgZ(31,"div",15),c.TgZ(32,"div",20),c.TgZ(33,"h4",17),c._uU(34,"Description"),c.qZA(),c.TgZ(35,"span",18),c._uU(36),c.qZA(),c.qZA(),c.qZA(),c._UZ(37,"mat-divider",19),c.TgZ(38,"div",15),c.TgZ(39,"div",20),c.TgZ(40,"h4",17),c._uU(41,"Offer Request"),c.qZA(),c.TgZ(42,"span",18),c._uU(43),c.qZA(),c.qZA(),c.qZA(),c.YNc(44,_,13,5,"div",21),c.TgZ(45,"div",22),c.TgZ(46,"button",23),c.NdJ("click",function(){return Be.onShowAdvanced()}),c.YNc(47,D,2,0,"p",24),c.YNc(48,I,2,0,"ng-template",null,25,c.W1O),c.qZA(),c.YNc(50,x,2,1,"button",26),c.YNc(51,r,2,0,"button",27),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&Ne){const Oe=c.MAs(49);c.xp6(1),c.Q6J("fxLayoutAlign",null!=Be.offer&&Be.offer.bolt12&&""!==(null==Be.offer?null:Be.offer.bolt12)?"center start":"center center")("ngClass",c.VKq(24,b,Be.screenSize===Be.screenSizeEnum.XS||Be.screenSize===Be.screenSizeEnum.SM)),c.xp6(1),c.Q6J("ngIf",(null==Be.offer?null:Be.offer.bolt12)&&""!==(null==Be.offer?null:Be.offer.bolt12)),c.xp6(1),c.Q6J("ngIf",!(null!=Be.offer&&Be.offer.bolt12)||""===(null==Be.offer?null:Be.offer.bolt12)),c.xp6(4),c.Q6J("icon",Be.faReceipt),c.xp6(2),c.Oqu(Be.screenSize===Be.screenSizeEnum.XS?Be.newlyAdded?"Created":"Offer":Be.newlyAdded?"Offer Created":"Offer Information"),c.xp6(3),c.Q6J("ngClass",c.VKq(26,Z,Be.screenSize===Be.screenSizeEnum.XS)),c.xp6(2),c.Q6J("fxLayoutAlign",null!=Be.offer&&Be.offer.bolt12&&""!==(null==Be.offer?null:Be.offer.bolt12)?"center start":"center center")("ngClass",c.VKq(28,b,Be.screenSize!==Be.screenSizeEnum.XS&&Be.screenSize!==Be.screenSizeEnum.SM)),c.xp6(1),c.Q6J("ngIf",(null==Be.offer?null:Be.offer.bolt12)&&""!==(null==Be.offer?null:Be.offer.bolt12)),c.xp6(1),c.Q6J("ngIf",!(null!=Be.offer&&Be.offer.bolt12)||""===(null==Be.offer?null:Be.offer.bolt12)),c.xp6(1),c.Q6J("ngIf",Be.screenSize===Be.screenSizeEnum.XS||Be.screenSize===Be.screenSizeEnum.SM),c.xp6(6),c.hij(" ",null!=Be.offerDecoded&&Be.offerDecoded.amount_msat&&0!==(null==Be.offerDecoded?null:Be.offerDecoded.amount)?c.lcZ(24,22,(null==Be.offerDecoded?null:Be.offerDecoded.amount)/1e3):"Open Offer"," "),c.xp6(6),c.hij(" ",null!=Be.offer&&Be.offer.active?null!=Be.offer&&Be.offer.active?"Active":"Inactive":"N/K"," "),c.xp6(7),c.hij(" ",null==Be.offerDecoded?null:Be.offerDecoded.description," "),c.xp6(7),c.Oqu(null==Be.offer?null:Be.offer.bolt12),c.xp6(1),c.Q6J("ngIf",Be.showAdvanced),c.xp6(1),c.Q6J("ngClass",c.WLB(30,P,!Be.showAdvanced,Be.showAdvanced)),c.xp6(2),c.Q6J("ngIf",!Be.showAdvanced)("ngIfElse",Oe),c.xp6(3),c.Q6J("ngIf",(null==Be.offer?null:Be.offer.bolt12)&&""!==(null==Be.offer?null:Be.offer.bolt12)),c.xp6(1),c.Q6J("ngIf",!(null!=Be.offer&&Be.offer.bolt12)||""===(null==Be.offer?null:Be.offer.bolt12))}},directives:[E.xw,E.Wh,E.yH,k.mk,w.oO,k.O5,V.dk,W.BN,j.lW,V.dn,$.d,ee.uU,me.h,ce.y],pipes:[k.JJ],styles:[""]}),ye})()},2994:(Ze,K,m)=>{"use strict";m.d(K,{QZ:()=>v,Fd:()=>C,Zr:()=>s,iz:()=>M,CX:()=>c,SN:()=>N,RX:()=>o,UR:()=>L,eN:()=>O,TW:()=>A,i:()=>E,iL:()=>k,Bw:()=>w,On:()=>V,HG:()=>W,$W:()=>j,Z8:()=>$,El:()=>ee,GD:()=>le,EK:()=>te,_E:()=>re,YX:()=>y,pW:()=>i,BL:()=>a,OG:()=>p,cQ:()=>u,HI:()=>_,WO:()=>D,kL:()=>I,oV:()=>x,TM:()=>r,mC:()=>b,Lf:()=>Z,Iy:()=>P,WM:()=>ye,Nr:()=>xe,Z$:()=>Ne,YP:()=>Be,aL:()=>Oe,Sf:()=>B,n7:()=>Me,DJ:()=>ae,ti:()=>We});var e=m(5620),t=m(7731);const v=(0,e.PH)(t.lr.UPDATE_API_CALL_STATUS_ECL,(0,e.Ky)()),C=(0,e.PH)(t.lr.RESET_ECL_STORE,(0,e.Ky)()),s=(0,e.PH)(t.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,e.Ky)()),M=(0,e.PH)(t.lr.FETCH_INFO_ECL,(0,e.Ky)()),c=(0,e.PH)(t.lr.SET_INFO_ECL,(0,e.Ky)()),N=(0,e.PH)(t.lr.FETCH_FEES_ECL),o=(0,e.PH)(t.lr.SET_FEES_ECL,(0,e.Ky)()),L=(0,e.PH)(t.lr.FETCH_CHANNELS_ECL,(0,e.Ky)()),O=(0,e.PH)(t.lr.SET_ACTIVE_CHANNELS_ECL,(0,e.Ky)()),A=(0,e.PH)(t.lr.SET_PENDING_CHANNELS_ECL,(0,e.Ky)()),E=(0,e.PH)(t.lr.SET_INACTIVE_CHANNELS_ECL,(0,e.Ky)()),k=(0,e.PH)(t.lr.FETCH_ONCHAIN_BALANCE_ECL),w=(0,e.PH)(t.lr.SET_ONCHAIN_BALANCE_ECL,(0,e.Ky)()),V=(0,e.PH)(t.lr.SET_LIGHTNING_BALANCE_ECL,(0,e.Ky)()),W=(0,e.PH)(t.lr.SET_CHANNELS_STATUS_ECL,(0,e.Ky)()),j=(0,e.PH)(t.lr.FETCH_PEERS_ECL),$=(0,e.PH)(t.lr.SET_PEERS_ECL,(0,e.Ky)()),ee=(0,e.PH)(t.lr.SAVE_NEW_PEER_ECL,(0,e.Ky)()),le=((0,e.PH)(t.lr.NEWLY_ADDED_PEER_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.ADD_PEER_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.DETACH_PEER_ECL,(0,e.Ky)())),te=(0,e.PH)(t.lr.REMOVE_PEER_ECL,(0,e.Ky)()),re=(0,e.PH)(t.lr.GET_NEW_ADDRESS_ECL),y=((0,e.PH)(t.lr.SET_NEW_ADDRESS_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.SAVE_NEW_CHANNEL_ECL,(0,e.Ky)())),i=(0,e.PH)(t.lr.UPDATE_CHANNEL_ECL,(0,e.Ky)()),a=(0,e.PH)(t.lr.CLOSE_CHANNEL_ECL,(0,e.Ky)()),p=(0,e.PH)(t.lr.REMOVE_CHANNEL_ECL,(0,e.Ky)()),u=(0,e.PH)(t.lr.FETCH_PAYMENTS_ECL),_=(0,e.PH)(t.lr.SET_PAYMENTS_ECL,(0,e.Ky)()),D=(0,e.PH)(t.lr.GET_QUERY_ROUTES_ECL,(0,e.Ky)()),I=(0,e.PH)(t.lr.SET_QUERY_ROUTES_ECL,(0,e.Ky)()),x=(0,e.PH)(t.lr.SEND_PAYMENT_ECL,(0,e.Ky)()),r=(0,e.PH)(t.lr.SEND_PAYMENT_STATUS_ECL,(0,e.Ky)()),b=(0,e.PH)(t.lr.FETCH_TRANSACTIONS_ECL),Z=(0,e.PH)(t.lr.SET_TRANSACTIONS_ECL,(0,e.Ky)()),P=(0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_ECL,(0,e.Ky)()),ye=((0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.FETCH_INVOICES_ECL)),xe=(0,e.PH)(t.lr.SET_INVOICES_ECL,(0,e.Ky)()),Ne=(0,e.PH)(t.lr.CREATE_INVOICE_ECL,(0,e.Ky)()),Be=(0,e.PH)(t.lr.ADD_INVOICE_ECL,(0,e.Ky)()),Oe=(0,e.PH)(t.lr.UPDATE_INVOICE_ECL,(0,e.Ky)()),B=(0,e.PH)(t.lr.PEER_LOOKUP_ECL,(0,e.Ky)()),Me=(0,e.PH)(t.lr.INVOICE_LOOKUP_ECL,(0,e.Ky)()),ae=((0,e.PH)(t.lr.SET_LOOKUP_ECL,(0,e.Ky)()),(0,e.PH)(t.lr.UPDATE_CHANNEL_STATE_ECL,(0,e.Ky)())),We=(0,e.PH)(t.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,e.Ky)())},3289:(Ze,K,m)=>{"use strict";m.d(K,{o:()=>te});var e=m(6642),t=m(7579),v=m(9646),C=m(5577),s=m(2722),M=m(4004),c=m(262),N=m(2340),o=m(1786),L=m(7731),O=m(7861),A=m(7766),E=m(2994),k=m(2501),w=m(5e3),V=m(8138),W=m(5620),j=m(5986),$=m(62),ee=m(5043),me=m(9291),ce=m(7998),le=m(9808);let te=(()=>{class re{constructor(y,i,a,p,u,_,D,I,x){this.actions=y,this.httpClient=i,this.store=a,this.sessionService=p,this.commonService=u,this.logger=_,this.router=D,this.wsService=I,this.location=x,this.CHILD_API_URL=N.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new t.x,new t.x,new t.x],this.infoFetchECL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_INFO_ECL),(0,C.z)(r=>(this.flgInitialized=!1,this.store.dispatch((0,O.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,O.ac)({payload:L.m6.GET_NODE_INFO})),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,e.l4)(L.pg.SET_SELECTED_NODE))),(0,M.U)(b=>(this.logger.info(b),this.initializeRemainingData(b,r.payload.loadPage),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInfo",status:L.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:L.m6.GET_NODE_INFO})),{type:L.lr.SET_INFO_ECL,payload:b||{}})),(0,c.K)(b=>{const Z=this.commonService.extractErrorCode(b),P=503===Z?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(b);return this.router.navigate(["/error"],{state:{errorCode:Z,errorMessage:P}}),this.handleErrorWithoutAlert("FetchInfo",L.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:Z,error:P}),(0,v.of)({type:L.pg.VOID})})))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_FEES_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.FEES_API+"/fees").pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchFees",status:L.Bn.COMPLETED}})),{type:L.lr.SET_FEES_ECL,payload:r||{}})),(0,c.K)(r=>(this.handleErrorWithoutAlert("FetchFees",L.m6.NO_SPINNER,"Fetching Fees Failed.",r),(0,v.of)({type:L.pg.VOID})))))))),this.fetchPayments=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_PAYMENTS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.FEES_API+"/payments").pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPayments",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PAYMENTS_ECL,payload:r||{}})),(0,c.K)(r=>(this.handleErrorWithoutAlert("FetchPayments",L.m6.NO_SPINNER,"Fetching Payments Failed.",r),(0,v.of)({type:L.pg.VOID})))))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_CHANNELS_ECL),(0,C.z)(r=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.CHANNELS_API).pipe((0,M.U)(b=>(this.logger.info(b),this.rawChannelsList=b,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,E.QZ)({payload:{action:"FetchChannels",status:L.Bn.COMPLETED}})),r.payload&&r.payload.fetchPayments&&this.store.dispatch((0,E.cQ)()),{type:L.pg.VOID})),(0,c.K)(b=>(this.handleErrorWithoutAlert("FetchChannels",L.m6.NO_SPINNER,"Fetching Channels Failed.",b),(0,v.of)({type:L.pg.VOID})))))))),this.fetchOnchainBalance=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API+"/balance"))),(0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchOnchainBalance",status:L.Bn.COMPLETED}})),{type:L.lr.SET_ONCHAIN_BALANCE_ECL,payload:r||{}})),(0,c.K)(r=>(this.handleErrorWithoutAlert("FetchOnchainBalance",L.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",r),(0,v.of)({type:L.pg.VOID}))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_PEERS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.PEERS_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchPeers",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PEERS_ECL,payload:r||[]})),(0,c.K)(r=>(this.handleErrorWithoutAlert("FetchPeers",L.m6.NO_SPINNER,"Fetching Peers Failed.",r),(0,v.of)({type:L.pg.VOID})))))))),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.GET_NEW_ADDRESS_ECL),(0,C.z)(()=>(this.store.dispatch((0,O.ac)({payload:L.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,O.uO)({payload:L.m6.GENERATE_NEW_ADDRESS})),{type:L.lr.SET_NEW_ADDRESS_ECL,payload:r})),(0,c.K)(r=>(this.handleErrorWithAlert("GetNewAddress",L.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+N.NZ.ON_CHAIN_API,r),(0,v.of)({type:L.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SET_NEW_ADDRESS_ECL),(0,M.U)(r=>(this.logger.info(r.payload),r.payload))),{dispatch:!1}),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SAVE_NEW_PEER_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.PEERS_API+(r.payload.id.includes("@")?"?uri=":"?nodeId=")+r.payload.id,{}).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewPeer",status:L.Bn.COMPLETED}})),b=b||[],this.store.dispatch((0,O.uO)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,E.Z8)({payload:b})),{type:L.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:b.find(Z=>Z.nodeId===(r.payload.id.includes("@")?r.payload.id.substring(0,r.payload.id.indexOf("@")):r.payload.id))}})),(0,c.K)(b=>(this.handleErrorWithoutAlert("SaveNewPeer",L.m6.CONNECT_PEER,"Peer Connection Failed.",b),(0,v.of)({type:L.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.DETACH_PEER_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:L.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.PEERS_API+"/"+r.payload.nodeId).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,O.uO)({payload:L.m6.DISCONNECT_PEER})),this.store.dispatch((0,O.jW)({payload:"Disconnecting Peer!"})),{type:L.lr.REMOVE_PEER_ECL,payload:{nodeId:r.payload.nodeId}})),(0,c.K)(b=>(this.handleErrorWithAlert("DisconnectPeer",L.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+N.NZ.PEERS_API+"/"+r.payload.nodeId,b),(0,v.of)({type:L.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SAVE_NEW_CHANNEL_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.CHANNELS_API,r.payload.feeRate&&r.payload.feeRate>0?{nodeId:r.payload.nodeId,fundingSatoshis:r.payload.amount,channelFlags:+!r.payload.private,fundingFeerateSatByte:r.payload.feeRate}:{nodeId:r.payload.nodeId,fundingSatoshis:r.payload.amount,channelFlags:+!r.payload.private}).pipe((0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,E.QZ)({payload:{action:"SaveNewChannel",status:L.Bn.COMPLETED}})),this.store.dispatch((0,E.$W)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,O.uO)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,O.jW)({payload:"Channel Added Successfully!"})),{type:L.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,c.K)(Z=>(this.handleErrorWithoutAlert("SaveNewChannel",L.m6.OPEN_CHANNEL,"Opening Channel Failed.",Z),(0,v.of)({type:L.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.UPDATE_CHANNEL_ECL),(0,C.z)(r=>{this.store.dispatch((0,O.ac)({payload:L.m6.UPDATE_CHAN_POLICY}));let b="?feeBaseMsat="+r.payload.baseFeeMsat+"&feeProportionalMillionths="+r.payload.feeRate;return b=r.payload.nodeIds?b+"&nodeIds="+r.payload.nodeIds:r.payload.nodeId?b+"&nodeId="+r.payload.nodeId:r.payload.channelIds?b+"&channelIds="+r.payload.channelIds:b+"&channelId="+r.payload.channelId,this.httpClient.post(this.CHILD_API_URL+N.NZ.CHANNELS_API+"/updateRelayFee"+b,{}).pipe((0,M.U)(Z=>(this.logger.info(Z),this.store.dispatch((0,O.uO)({payload:L.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,O.jW)(r.payload.nodeIds||r.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:L.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,c.K)(Z=>(this.handleErrorWithAlert("UpdateChannels",L.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+N.NZ.CHANNELS_API,Z),(0,v.of)({type:L.pg.VOID}))))}))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.CLOSE_CHANNEL_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:r.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+N.NZ.CHANNELS_API+"?channelId="+r.payload.channelId+"&force="+r.payload.force).pipe((0,M.U)(b=>(this.logger.info(b),setTimeout(()=>{this.store.dispatch((0,O.uO)({payload:r.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,O.jW)({payload:r.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:L.pg.VOID})),(0,c.K)(b=>(this.handleErrorWithAlert("CloseChannel",r.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+N.NZ.CHANNELS_API,b),(0,v.of)({type:L.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.GET_QUERY_ROUTES_ECL),(0,C.z)(r=>this.httpClient.get(this.CHILD_API_URL+N.NZ.PAYMENTS_API+"/route?nodeId="+r.payload.nodeId+"&amountMsat="+r.payload.amount).pipe((0,M.U)(b=>(this.logger.info(b),{type:L.lr.SET_QUERY_ROUTES_ECL,payload:b})),(0,c.K)(b=>(this.store.dispatch((0,E.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",L.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+N.NZ.PAYMENTS_API+"/route?nodeId="+r.payload.nodeId+"&amountMsat="+r.payload.amount,b),(0,v.of)({type:L.pg.VOID}))))))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SET_QUERY_ROUTES_ECL),(0,M.U)(r=>r.payload)),{dispatch:!1}),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SEND_PAYMENT_ECL),(0,C.z)(r=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,O.ac)({payload:L.m6.SEND_PAYMENT})),this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.PAYMENTS_API,r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.latestPaymentRes=b,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:L.pg.VOID})),(0,c.K)(b=>(this.logger.error("Error: "+JSON.stringify(b)),r.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",L.m6.SEND_PAYMENT,"Send Payment Failed.",b):this.handleErrorWithAlert("SendPayment",L.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+N.NZ.PAYMENTS_API,b),(0,v.of)({type:L.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_TRANSACTIONS_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchTransactions",status:L.Bn.COMPLETED}})),{type:L.lr.SET_TRANSACTIONS_ECL,payload:r||[]})),(0,c.K)(r=>(this.handleErrorWithoutAlert("FetchTransactions",L.m6.NO_SPINNER,"Fetching Transactions Failed.",r),(0,v.of)({type:L.pg.VOID}))))),this.SendOnchainFunds=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SEND_ONCHAIN_FUNDS_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.ON_CHAIN_API,r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"SendOnchainFunds",status:L.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,E.iL)()),{type:L.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:b})),(0,c.K)(b=>(this.handleErrorWithoutAlert("SendOnchainFunds",L.m6.SEND_FUNDS,"Sending Fund Failed.",b),(0,v.of)({type:L.pg.VOID})))))))),this.createInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.CREATE_INVOICE_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:L.m6.CREATE_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+N.NZ.INVOICES_API,r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"CreateInvoice",status:L.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:L.m6.CREATE_INVOICE})),b.timestamp=Math.round((new Date).getTime()/1e3),b.expiresAt=Math.round(b.timestamp+r.payload.expireIn),b.description=r.payload.description,b.status="unpaid",setTimeout(()=>{this.store.dispatch((0,O.qR)({payload:{data:{invoice:b,newlyAdded:!0,component:A.R}}}))},100),{type:L.lr.ADD_INVOICE_ECL,payload:b})),(0,c.K)(b=>(this.handleErrorWithoutAlert("CreateInvoice",L.m6.CREATE_INVOICE,"Create Invoice Failed.",b),(0,v.of)({type:L.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.FETCH_INVOICES_ECL),(0,C.z)(()=>(this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.INVOICES_API).pipe((0,M.U)(r=>(this.logger.info(r),this.store.dispatch((0,E.QZ)({payload:{action:"FetchInvoices",status:L.Bn.COMPLETED}})),{type:L.lr.SET_INVOICES_ECL,payload:r})),(0,c.K)(r=>(this.handleErrorWithoutAlert("FetchInvoices",L.m6.NO_SPINNER,"Fetching Invoices Failed.",r),(0,v.of)({type:L.pg.VOID})))))))),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.PEER_LOOKUP_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:L.m6.SEARCHING_NODE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.NETWORK_API+"/nodes/"+r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:L.m6.SEARCHING_NODE})),{type:L.lr.SET_LOOKUP_ECL,payload:b})),(0,c.K)(b=>(this.handleErrorWithAlert("Lookup",L.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+N.NZ.NETWORK_API+"/nodes/"+r.payload,b),(0,v.of)({type:L.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.INVOICE_LOOKUP_ECL),(0,C.z)(r=>(this.store.dispatch((0,O.ac)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+N.NZ.INVOICES_API+"/"+r.payload).pipe((0,M.U)(b=>(this.logger.info(b),this.store.dispatch((0,E.QZ)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,E.aL)({payload:b})),{type:L.lr.SET_LOOKUP_ECL,payload:b})),(0,c.K)(b=>(this.handleErrorWithoutAlert("Lookup",L.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",b),this.store.dispatch((0,O.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,v.of)({type:L.pg.VOID})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(L.lr.SET_LOOKUP_ECL),(0,M.U)(r=>(this.logger.info(r.payload),r.payload))),{dispatch:!1}),this.handleSendPaymentStatus=r=>{this.store.dispatch((0,E.QZ)({payload:{action:"SendPayment",status:L.Bn.COMPLETED}})),this.store.dispatch((0,O.uO)({payload:L.m6.SEND_PAYMENT})),this.store.dispatch((0,E.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,O.jW)({payload:r}))},this.store.select(k.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(r=>{r.FetchInfo.status!==L.Bn.COMPLETED&&r.FetchInfo.status!==L.Bn.ERROR||r.FetchFees.status!==L.Bn.COMPLETED&&r.FetchFees.status!==L.Bn.ERROR||r.FetchOnchainBalance.status!==L.Bn.COMPLETED&&r.FetchOnchainBalance.status!==L.Bn.ERROR||r.FetchChannels.status!==L.Bn.COMPLETED&&r.FetchChannels.status!==L.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,O.uO)({payload:L.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(r=>{this.logger.info("Received new message from the service: "+JSON.stringify(r));let b="";if(r)switch(r.type){case L.$v.PAYMENT_SENT:r&&r.id&&this.latestPaymentRes===r.id&&(this.flgReceivedPaymentUpdateFromWS=!0,b="Payment Sent: "+(r.paymentHash?"with payment hash "+r.paymentHash:JSON.stringify(r)),this.handleSendPaymentStatus(b));break;case L.$v.PAYMENT_FAILED:r&&r.id&&this.latestPaymentRes===r.id&&(this.flgReceivedPaymentUpdateFromWS=!0,b="Payment Failed: "+(r.failures&&r.failures.length&&r.failures.length>0&&r.failures[0].t?r.failures[0].t:r.failures&&r.failures.length&&r.failures.length>0&&r.failures[0].e&&r.failures[0].e.failureMessage?r.failures[0].e.failureMessage:JSON.stringify(r)),this.handleSendPaymentStatus(b));break;case L.$v.PAYMENT_RECEIVED:this.store.dispatch((0,E.aL)({payload:r}));break;case L.$v.PAYMENT_RELAYED:delete r.source,this.store.dispatch((0,E.ti)({payload:r}));break;case L.$v.CHANNEL_STATE_CHANGED:"NORMAL"===r.currentState||"CLOSED"===r.currentState?(this.rawChannelsList=this.rawChannelsList.map(Z=>(Z.channelId===r.channelId&&Z.nodeId===r.remoteNodeId&&(Z.state=r.currentState),Z)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,E.DJ)({payload:r}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(r))}})}setChannelsAndStatusAndBalances(){let y=0,i=0,a=0,p={localBalance:0,remoteBalance:0},u=[];const _=[],D=[],I={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((x,r)=>{"NORMAL"===x.state?(y=x.toLocal+x.toRemote,i+=x.toLocal,a+=x.toRemote,x.balancedness=0===y?1:+(1-Math.abs((x.toLocal-x.toRemote)/y)).toFixed(3),u.push(x),I.active.channels=I.active.channels+1,I.active.capacity=I.active.capacity+x.toLocal):x.state.includes("WAIT")||x.state.includes("CLOSING")||x.state.includes("SYNCING")?(x.state=x.state.replace(/_/g," "),_.push(x),I.pending.channels=I.pending.channels+1,I.pending.capacity=I.pending.capacity+x.toLocal):(x.state=x.state.replace(/_/g," "),D.push(x),I.inactive.channels=I.inactive.channels+1,I.inactive.capacity=I.inactive.capacity+x.toLocal)}),p={localBalance:i,remoteBalance:a},u=this.commonService.sortDescByKey(u,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(u)),this.logger.info("Pending Channels: "+JSON.stringify(_)),this.logger.info("Inactive Channels: "+JSON.stringify(D)),this.logger.info("Lightning Balances: "+JSON.stringify(p)),this.logger.info("Channels Status: "+JSON.stringify(I)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:u,pending:_,inactive:D,balances:p,status:I})),this.store.dispatch((0,E.eN)({payload:u})),this.store.dispatch((0,E.TW)({payload:_})),this.store.dispatch((0,E.i)({payload:D})),this.store.dispatch((0,E.On)({payload:p})),this.store.dispatch((0,E.HG)({payload:I}))}initializeRemainingData(y,i){this.sessionService.setItem("eclUnlocked","true");const a={identity_pubkey:y.nodeId,alias:y.alias,testnet:"testnet"===y.network,chains:y.publicAddresses,uris:y.uris,version:y.version,numberOfPendingChannels:0};this.store.dispatch((0,O.ac)({payload:L.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,O._V)({payload:a}));let p=this.location.path();p.includes("/lnd/")?p=p.replace("/lnd/","/ecl/"):p.includes("/cl/")&&(p=p.replace("/cl/","/ecl/")),(p.includes("/login")||p.includes("/error")||""===p||"HOME"===i||p.includes("?access-key="))&&(p="/ecl/home"),this.router.navigate([p]),this.store.dispatch((0,E.WM)()),this.store.dispatch((0,E.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,E.SN)()),this.store.dispatch((0,E.iL)()),this.store.dispatch((0,E.$W)())}handleErrorWithoutAlert(y,i,a,p){this.logger.error("ERROR IN: "+y+"\n"+JSON.stringify(p)),401===p.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.ts)()),this.store.dispatch((0,O.kS)()),this.store.dispatch((0,O.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,O.uO)({payload:i})),this.store.dispatch((0,E.QZ)({payload:{action:y,status:L.Bn.ERROR,statusCode:p.status.toString(),message:this.commonService.extractErrorMessage(p,a)}})))}handleErrorWithAlert(y,i,a,p,u){if(this.logger.error(u),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.ts)()),this.store.dispatch((0,O.kS)()),this.store.dispatch((0,O.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,O.uO)({payload:i}));const _=this.commonService.extractErrorMessage(u);this.store.dispatch((0,O.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:u.status,message:_,URL:p},component:o.H}}})),this.store.dispatch((0,E.QZ)({payload:{action:y,status:L.Bn.ERROR,statusCode:u.status.toString(),message:_,URL:p}}))}}ngOnDestroy(){this.unSubs.forEach(y=>{y.next(null),y.complete()})}}return re.\u0275fac=function(y){return new(y||re)(w.LFG(e.eX),w.LFG(V.eN),w.LFG(W.yh),w.LFG(j.m),w.LFG($.v),w.LFG(ee.mQ),w.LFG(me.F0),w.LFG(ce.d),w.LFG(le.Ye))},re.\u0275prov=w.Yz7({token:re,factory:re.\u0275fac}),re})()},2501:(Ze,K,m)=>{"use strict";m.d(K,{LR:()=>v,yD:()=>C,T$:()=>s,yA:()=>c,PP:()=>N,JG:()=>o,Xz:()=>L,dx:()=>O,Ef:()=>A,Bo:()=>E,kY:()=>k});var e=m(5620);const t=(0,e.ZF)("ecl"),v=(0,e.P1)(t,w=>w.nodeSettings),C=(0,e.P1)(t,w=>w.information),s=(0,e.P1)(t,w=>({information:w.information,apiCallStatus:w.apisCallStatus.FetchInfo})),c=((0,e.P1)(t,w=>w.apisCallStatus.FetchInfo),(0,e.P1)(t,w=>w.apisCallStatus)),N=(0,e.P1)(t,w=>({payments:w.payments,apiCallStatus:w.apisCallStatus.FetchPayments})),o=(0,e.P1)(t,w=>({fees:w.fees,apiCallStatus:w.apisCallStatus.FetchFees})),L=(0,e.P1)(t,w=>({activeChannels:w.activeChannels,pendingChannels:w.pendingChannels,inactiveChannels:w.inactiveChannels,lightningBalance:w.lightningBalance,channelsStatus:w.channelsStatus,apiCallStatus:w.apisCallStatus.FetchChannels})),O=(0,e.P1)(t,w=>({transactions:w.transactions,apiCallStatus:w.apisCallStatus.FetchTransactions})),A=(0,e.P1)(t,w=>({invoices:w.invoices,apiCallStatus:w.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,w=>({peers:w.peers,apiCallStatus:w.apisCallStatus.FetchPeers})),k=(0,e.P1)(t,w=>({onchainBalance:w.onchainBalance,apiCallStatus:w.apisCallStatus.FetchOnchainBalance}))},7766:(Ze,K,m)=>{"use strict";m.d(K,{R:()=>Oe});var e=m(8966),t=m(801),v=m(7579),C=m(2722),s=m(7731),M=m(2501),c=m(5e3),N=m(5043),o=m(62),L=m(7261),O=m(5620),A=m(7093),E=m(9808),k=m(3322),w=m(9224),V=m(9444),W=m(7423),j=m(4834),$=m(159),ee=m(773),me=m(3390),ce=m(6895);function le(B,Me){if(1&B&&c._UZ(0,"qr-code",29),2&B){const we=c.oxw();c.Q6J("value",null==we.invoice?null:we.invoice.serialized)("size",we.qrWidth)("errorCorrectionLevel","L")}}function te(B,Me){1&B&&(c.TgZ(0,"span",30),c._uU(1,"N/A"),c.qZA())}function re(B,Me){if(1&B&&c._UZ(0,"qr-code",29),2&B){const we=c.oxw();c.Q6J("value",null==we.invoice?null:we.invoice.serialized)("size",we.qrWidth)("errorCorrectionLevel","L")}}function pe(B,Me){1&B&&(c.TgZ(0,"span",31),c._uU(1,"QR Code Not Applicable"),c.qZA())}function y(B,Me){1&B&&c._UZ(0,"mat-divider",32),2&B&&c.Q6J("inset",!0)}function i(B,Me){1&B&&(c.ynx(0),c._uU(1," (zero amount) "),c.BQk())}function a(B,Me){1&B&&c._UZ(0,"span",38)}const p=function(){return[]};function u(B,Me){if(1&B&&(c.TgZ(0,"div",34),c.TgZ(1,"div",35),c.TgZ(2,"span",36),c._uU(3),c.ALo(4,"number"),c.qZA(),c.YNc(5,a,1,0,"span",37),c.qZA(),c.qZA()),2&B){const we=c.oxw(2);c.xp6(3),c.hij("",c.lcZ(4,2,null==we.invoice?null:we.invoice.amountSettled)," Sats"),c.xp6(2),c.Q6J("ngForOf",c.DdM(4,p).constructor(35))}}function _(B,Me){if(1&B&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"number"),c.qZA()),2&B){const we=c.oxw(2);c.xp6(1),c.hij("",c.lcZ(2,1,null==we.invoice?null:we.invoice.amountSettled)," Sats")}}function D(B,Me){if(1&B&&(c.ynx(0),c.YNc(1,u,6,5,"div",33),c.YNc(2,_,3,3,"div",19),c.BQk()),2&B){const we=c.oxw();c.xp6(1),c.Q6J("ngIf",we.flgInvoicePaid),c.xp6(1),c.Q6J("ngIf",!we.flgInvoicePaid)}}function I(B,Me){1&B&&(c.TgZ(0,"span"),c._uU(1,"-"),c.qZA())}function x(B,Me){1&B&&c._UZ(0,"mat-spinner",40),2&B&&c.Q6J("diameter",20)}function r(B,Me){if(1&B&&(c.ynx(0),c.YNc(1,I,2,0,"span",19),c.YNc(2,x,1,1,"mat-spinner",39),c.BQk()),2&B){const we=c.oxw();c.xp6(1),c.Q6J("ngIf","unpaid"!==(null==we.invoice?null:we.invoice.status)||!we.flgVersionCompatible),c.xp6(1),c.Q6J("ngIf","unpaid"===(null==we.invoice?null:we.invoice.status)&&we.flgVersionCompatible)}}function b(B,Me){if(1&B&&(c.TgZ(0,"div"),c._UZ(1,"mat-divider",20),c.TgZ(2,"div",15),c.TgZ(3,"div",41),c.TgZ(4,"h4",17),c._uU(5,"Date Expiry"),c.qZA(),c.TgZ(6,"span",18),c._uU(7),c.ALo(8,"date"),c.qZA(),c.qZA(),c.TgZ(9,"div",42),c.TgZ(10,"h4",17),c._uU(11,"Date Settled"),c.qZA(),c.TgZ(12,"span",21),c._uU(13),c.ALo(14,"date"),c.qZA(),c.qZA(),c.qZA(),c._UZ(15,"mat-divider",20),c.TgZ(16,"div",15),c.TgZ(17,"div",22),c.TgZ(18,"h4",17),c._uU(19,"Payment Hash"),c.qZA(),c.TgZ(20,"span",21),c._uU(21),c.qZA(),c.qZA(),c.qZA(),c._UZ(22,"mat-divider",20),c.TgZ(23,"div",15),c.TgZ(24,"div",22),c.TgZ(25,"h4",17),c._uU(26,"Node Id"),c.qZA(),c.TgZ(27,"span",21),c._uU(28),c.qZA(),c.qZA(),c.qZA(),c._UZ(29,"mat-divider",20),c.qZA()),2&B){const we=c.oxw();c.xp6(7),c.Oqu(c.xi3(8,4,1e3*(null==we.invoice?null:we.invoice.expiresAt),"dd/MMM/y HH:mm")),c.xp6(6),c.Oqu(c.xi3(14,7,1e3*(null==we.invoice?null:we.invoice.receivedAt),"dd/MMM/y HH:mm")),c.xp6(8),c.Oqu(null==we.invoice?null:we.invoice.paymentHash),c.xp6(7),c.Oqu(null==we.invoice?null:we.invoice.nodeId)}}function Z(B,Me){1&B&&(c.TgZ(0,"p"),c._uU(1,"Show Advanced"),c.qZA())}function P(B,Me){1&B&&(c.TgZ(0,"p"),c._uU(1,"Hide Advanced"),c.qZA())}function U(B,Me){if(1&B){const we=c.EpF();c.TgZ(0,"button",43),c.NdJ("copied",function(We){return c.CHM(we),c.oxw().onCopyPayment(We)}),c._uU(1,"Copy Invoice"),c.qZA()}if(2&B){const we=c.oxw();c.Q6J("payload",null==we.invoice?null:we.invoice.serialized)}}function ye(B,Me){if(1&B){const we=c.EpF();c.TgZ(0,"button",44),c.NdJ("click",function(){return c.CHM(we),c.oxw().onClose()}),c._uU(1,"OK"),c.qZA()}}const xe=function(B){return{"display-none":B}},Ne=function(B){return{"xs-scroll-y":B}},Be=function(B,Me){return{"mt-2":B,"mt-1":Me}};let Oe=(()=>{class B{constructor(we,ae,We,vt,Pe,Ve){this.dialogRef=we,this.data=ae,this.logger=We,this.commonService=vt,this.snackBar=Pe,this.store=Ve,this.faReceipt=t.dLy,this.faExclamationTriangle=t.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new v.x,new v.x,new v.x,new v.x,new v.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(M.yD).pipe((0,C.R)(this.unSubs[0])).subscribe(we=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(we.version,"0.5.0")}),this.store.select(M.Ef).pipe((0,C.R)(this.unSubs[1])).subscribe(we=>{const ae=this.invoice.status;this.invoice=(we.invoices&&we.invoices.length>0?we.invoices:[]).find(vt=>vt.paymentHash===this.invoice.paymentHash),ae!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(we)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(we){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+we)}ngOnDestroy(){this.unSubs.forEach(we=>{we.next(null),we.complete()})}}return B.\u0275fac=function(we){return new(we||B)(c.Y36(e.so),c.Y36(e.WI),c.Y36(N.mQ),c.Y36(o.v),c.Y36(L.ux),c.Y36(O.yh))},B.\u0275cmp=c.Xpm({type:B,selectors:[["rtl-ecl-invoice-information"]],decls:68,vars:42,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","40"],["fxFlex","60"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(we,ae){if(1&we&&(c.TgZ(0,"div",0),c.TgZ(1,"div",1),c.YNc(2,le,1,3,"qr-code",2),c.YNc(3,te,2,0,"span",3),c.qZA(),c.TgZ(4,"div",4),c.TgZ(5,"mat-card-header",5),c.TgZ(6,"div",6),c._UZ(7,"fa-icon",7),c.TgZ(8,"span",8),c._uU(9),c.qZA(),c.qZA(),c.TgZ(10,"button",9),c.NdJ("click",function(){return ae.onClose()}),c._uU(11,"X"),c.qZA(),c.qZA(),c.TgZ(12,"mat-card-content",10),c.TgZ(13,"div",11),c.TgZ(14,"div",12),c.YNc(15,re,1,3,"qr-code",2),c.YNc(16,pe,2,0,"span",13),c.qZA(),c.YNc(17,y,1,1,"mat-divider",14),c.TgZ(18,"div",15),c.TgZ(19,"div",16),c.TgZ(20,"h4",17),c._uU(21,"Amount Requested"),c.qZA(),c.TgZ(22,"span",18),c._uU(23),c.ALo(24,"number"),c.YNc(25,i,2,0,"ng-container",19),c.qZA(),c.qZA(),c.TgZ(26,"div",16),c.TgZ(27,"h4",17),c._uU(28,"Amount Settled"),c.qZA(),c.TgZ(29,"span",18),c.YNc(30,D,3,2,"ng-container",19),c.YNc(31,r,3,2,"ng-container",19),c.qZA(),c.qZA(),c.qZA(),c._UZ(32,"mat-divider",20),c.TgZ(33,"div",15),c.TgZ(34,"div",16),c.TgZ(35,"h4",17),c._uU(36,"Date Created"),c.qZA(),c.TgZ(37,"span",21),c._uU(38),c.ALo(39,"date"),c.qZA(),c.qZA(),c.TgZ(40,"div",16),c.TgZ(41,"h4",17),c._uU(42,"Status"),c.qZA(),c.TgZ(43,"span",21),c._uU(44),c.ALo(45,"titlecase"),c.qZA(),c.qZA(),c.qZA(),c._UZ(46,"mat-divider",20),c.TgZ(47,"div",15),c.TgZ(48,"div",22),c.TgZ(49,"h4",17),c._uU(50,"Description"),c.qZA(),c.TgZ(51,"span",18),c._uU(52),c.qZA(),c.qZA(),c.qZA(),c._UZ(53,"mat-divider",20),c.TgZ(54,"div",15),c.TgZ(55,"div",22),c.TgZ(56,"h4",17),c._uU(57,"Invoice"),c.qZA(),c.TgZ(58,"span",21),c._uU(59),c.qZA(),c.qZA(),c.qZA(),c.YNc(60,b,30,10,"div",19),c.TgZ(61,"div",23),c.TgZ(62,"button",24),c.NdJ("click",function(){return ae.onShowAdvanced()}),c.YNc(63,Z,2,0,"p",25),c.YNc(64,P,2,0,"ng-template",null,26,c.W1O),c.qZA(),c.YNc(66,U,2,1,"button",27),c.YNc(67,ye,2,0,"button",28),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&we){const We=c.MAs(65);c.xp6(1),c.Q6J("fxLayoutAlign",null!=ae.invoice&&ae.invoice.serialized&&""!==(null==ae.invoice?null:ae.invoice.serialized)?"center start":"center center")("ngClass",c.VKq(33,xe,ae.screenSize===ae.screenSizeEnum.XS||ae.screenSize===ae.screenSizeEnum.SM)),c.xp6(1),c.Q6J("ngIf",(null==ae.invoice?null:ae.invoice.serialized)&&""!==(null==ae.invoice?null:ae.invoice.serialized)),c.xp6(1),c.Q6J("ngIf",!(null!=ae.invoice&&ae.invoice.serialized)||""===(null==ae.invoice?null:ae.invoice.serialized)),c.xp6(4),c.Q6J("icon",ae.faReceipt),c.xp6(2),c.Oqu(ae.screenSize===ae.screenSizeEnum.XS?ae.newlyAdded?"Created":"Invoice":ae.newlyAdded?"Invoice Created":"Invoice Information"),c.xp6(3),c.Q6J("ngClass",c.VKq(35,Ne,ae.screenSize===ae.screenSizeEnum.XS)),c.xp6(2),c.Q6J("fxLayoutAlign",null!=ae.invoice&&ae.invoice.serialized&&""!==(null==ae.invoice?null:ae.invoice.serialized)?"center start":"center center")("ngClass",c.VKq(37,xe,ae.screenSize!==ae.screenSizeEnum.XS&&ae.screenSize!==ae.screenSizeEnum.SM)),c.xp6(1),c.Q6J("ngIf",(null==ae.invoice?null:ae.invoice.serialized)&&""!==(null==ae.invoice?null:ae.invoice.serialized)),c.xp6(1),c.Q6J("ngIf",!(null!=ae.invoice&&ae.invoice.serialized)||""===(null==ae.invoice?null:ae.invoice.serialized)),c.xp6(1),c.Q6J("ngIf",ae.screenSize===ae.screenSizeEnum.XS||ae.screenSize===ae.screenSizeEnum.SM),c.xp6(6),c.hij("",c.lcZ(24,26,(null==ae.invoice?null:ae.invoice.amount)||0)," Sats"),c.xp6(2),c.Q6J("ngIf",!(null!=ae.invoice&&ae.invoice.amount)||"0"===(null==ae.invoice?null:ae.invoice.amount)),c.xp6(5),c.Q6J("ngIf",null==ae.invoice?null:ae.invoice.amountSettled),c.xp6(1),c.Q6J("ngIf",!(null!=ae.invoice&&ae.invoice.amountSettled)),c.xp6(7),c.Oqu(c.xi3(39,28,1e3*(null==ae.invoice?null:ae.invoice.timestamp),"dd/MMM/y HH:mm")),c.xp6(6),c.Oqu(c.lcZ(45,31,null==ae.invoice?null:ae.invoice.status)),c.xp6(8),c.Oqu((null==ae.invoice?null:ae.invoice.description)||"-"),c.xp6(7),c.Oqu((null==ae.invoice?null:ae.invoice.serialized)||"N/A"),c.xp6(1),c.Q6J("ngIf",ae.showAdvanced),c.xp6(1),c.Q6J("ngClass",c.WLB(39,Be,!ae.showAdvanced,ae.showAdvanced)),c.xp6(2),c.Q6J("ngIf",!ae.showAdvanced)("ngIfElse",We),c.xp6(3),c.Q6J("ngIf",(null==ae.invoice?null:ae.invoice.serialized)&&""!==(null==ae.invoice?null:ae.invoice.serialized)),c.xp6(1),c.Q6J("ngIf",!(null!=ae.invoice&&ae.invoice.serialized)||""===(null==ae.invoice?null:ae.invoice.serialized))}},directives:[A.xw,A.Wh,A.yH,E.mk,k.oO,E.O5,w.dk,V.BN,W.lW,w.dn,j.d,$.uU,E.sg,ee.$g,me.h,ce.y],pipes:[E.JJ,E.uU,E.rS],styles:[""]}),B})()},6523:(Ze,K,m)=>{"use strict";m.d(K,{PC:()=>v,Ll:()=>C,JT:()=>s,sQ:()=>M,CX:()=>c,$W:()=>N,Z8:()=>o,El:()=>L,z:()=>A,EK:()=>E,Rd:()=>k,YP:()=>V,SN:()=>W,RX:()=>j,Bl:()=>$,Jl:()=>ee,Rv:()=>me,ks:()=>ce,UR:()=>le,as:()=>te,Z7:()=>re,TW:()=>pe,Zh:()=>y,_L:()=>i,pW:()=>a,YX:()=>p,BL:()=>u,OG:()=>_,Vv:()=>D,Cp:()=>I,tb:()=>b,B_:()=>Z,vV:()=>P,WM:()=>ye,Nr:()=>xe,aL:()=>Ne,mC:()=>Be,Lf:()=>Oe,Ly:()=>B,UH:()=>Me,cQ:()=>we,HI:()=>ae,oV:()=>We,dV:()=>Pe,_E:()=>he,Wi:()=>ke,fu:()=>J,y2:()=>Ce,xG:()=>ht,Sf:()=>it,$A:()=>ft,n7:()=>nt,v_:()=>st,u0:()=>wt,QJ:()=>Bt,WO:()=>Pt,kL:()=>Vt,Jo:()=>Oi,Fr:()=>jt});var e=m(5620),t=m(7731);const v=(0,e.PH)(t.uR.UPDATE_API_CALL_STATUS_LND,(0,e.Ky)()),C=(0,e.PH)(t.uR.RESET_LND_STORE,(0,e.Ky)()),s=(0,e.PH)(t.uR.SET_CHILD_NODE_SETTINGS_LND,(0,e.Ky)()),M=(0,e.PH)(t.uR.FETCH_INFO_LND,(0,e.Ky)()),c=(0,e.PH)(t.uR.SET_INFO_LND,(0,e.Ky)()),N=(0,e.PH)(t.uR.FETCH_PEERS_LND),o=(0,e.PH)(t.uR.SET_PEERS_LND,(0,e.Ky)()),L=(0,e.PH)(t.uR.SAVE_NEW_PEER_LND,(0,e.Ky)()),A=((0,e.PH)(t.uR.NEWLY_ADDED_PEER_LND,(0,e.Ky)()),(0,e.PH)(t.uR.DETACH_PEER_LND,(0,e.Ky)())),E=(0,e.PH)(t.uR.REMOVE_PEER_LND,(0,e.Ky)()),k=(0,e.PH)(t.uR.SAVE_NEW_INVOICE_LND,(0,e.Ky)()),V=((0,e.PH)(t.uR.NEWLY_SAVED_INVOICE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.ADD_INVOICE_LND,(0,e.Ky)())),W=(0,e.PH)(t.uR.FETCH_FEES_LND),j=(0,e.PH)(t.uR.SET_FEES_LND,(0,e.Ky)()),$=(0,e.PH)(t.uR.FETCH_BLOCKCHAIN_BALANCE_LND),ee=(0,e.PH)(t.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,e.Ky)()),me=(0,e.PH)(t.uR.FETCH_NETWORK_LND),ce=(0,e.PH)(t.uR.SET_NETWORK_LND,(0,e.Ky)()),le=(0,e.PH)(t.uR.FETCH_CHANNELS_LND),te=(0,e.PH)(t.uR.SET_CHANNELS_LND,(0,e.Ky)()),re=(0,e.PH)(t.uR.FETCH_PENDING_CHANNELS_LND),pe=(0,e.PH)(t.uR.SET_PENDING_CHANNELS_LND,(0,e.Ky)()),y=(0,e.PH)(t.uR.FETCH_CLOSED_CHANNELS_LND),i=(0,e.PH)(t.uR.SET_CLOSED_CHANNELS_LND,(0,e.Ky)()),a=(0,e.PH)(t.uR.UPDATE_CHANNEL_LND,(0,e.Ky)()),p=(0,e.PH)(t.uR.SAVE_NEW_CHANNEL_LND,(0,e.Ky)()),u=(0,e.PH)(t.uR.CLOSE_CHANNEL_LND,(0,e.Ky)()),_=(0,e.PH)(t.uR.REMOVE_CHANNEL_LND,(0,e.Ky)()),D=(0,e.PH)(t.uR.BACKUP_CHANNELS_LND,(0,e.Ky)()),I=(0,e.PH)(t.uR.VERIFY_CHANNEL_LND,(0,e.Ky)()),b=((0,e.PH)(t.uR.BACKUP_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.VERIFY_CHANNEL_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.RESTORE_CHANNELS_LIST_LND)),Z=(0,e.PH)(t.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,e.Ky)()),P=(0,e.PH)(t.uR.RESTORE_CHANNELS_LND,(0,e.Ky)()),ye=((0,e.PH)(t.uR.RESTORE_CHANNELS_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_INVOICES_LND,(0,e.Ky)())),xe=(0,e.PH)(t.uR.SET_INVOICES_LND,(0,e.Ky)()),Ne=(0,e.PH)(t.uR.UPDATE_INVOICE_LND,(0,e.Ky)()),Be=(0,e.PH)(t.uR.FETCH_TRANSACTIONS_LND),Oe=(0,e.PH)(t.uR.SET_TRANSACTIONS_LND,(0,e.Ky)()),B=(0,e.PH)(t.uR.FETCH_UTXOS_LND),Me=(0,e.PH)(t.uR.SET_UTXOS_LND,(0,e.Ky)()),we=(0,e.PH)(t.uR.FETCH_PAYMENTS_LND,(0,e.Ky)()),ae=(0,e.PH)(t.uR.SET_PAYMENTS_LND,(0,e.Ky)()),We=(0,e.PH)(t.uR.SEND_PAYMENT_LND,(0,e.Ky)()),Pe=((0,e.PH)(t.uR.SEND_PAYMENT_STATUS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_GRAPH_NODE_LND,(0,e.Ky)())),he=((0,e.PH)(t.uR.SET_GRAPH_NODE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GET_NEW_ADDRESS_LND,(0,e.Ky)())),ke=((0,e.PH)(t.uR.SET_NEW_ADDRESS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_LND,(0,e.Ky)())),J=((0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GEN_SEED_LND,(0,e.Ky)())),Ce=((0,e.PH)(t.uR.GEN_SEED_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.INIT_WALLET_LND,(0,e.Ky)())),ht=((0,e.PH)(t.uR.INIT_WALLET_RESPONSE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.UNLOCK_WALLET_LND,(0,e.Ky)())),it=(0,e.PH)(t.uR.PEER_LOOKUP_LND,(0,e.Ky)()),ft=(0,e.PH)(t.uR.CHANNEL_LOOKUP_LND,(0,e.Ky)()),nt=(0,e.PH)(t.uR.INVOICE_LOOKUP_LND,(0,e.Ky)()),st=(0,e.PH)(t.uR.SET_LOOKUP_LND,(0,e.Ky)()),wt=(0,e.PH)(t.uR.GET_FORWARDING_HISTORY_LND,(0,e.Ky)()),Bt=(0,e.PH)(t.uR.SET_FORWARDING_HISTORY_LND,(0,e.Ky)()),Pt=(0,e.PH)(t.uR.GET_QUERY_ROUTES_LND,(0,e.Ky)()),Vt=(0,e.PH)(t.uR.SET_QUERY_ROUTES_LND,(0,e.Ky)()),Oi=(0,e.PH)(t.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),jt=(0,e.PH)(t.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,e.Ky)())},711:(Ze,K,m)=>{"use strict";m.d(K,{l:()=>pe});var e=m(6642),t=m(7579),v=m(9646),C=m(5577),s=m(2722),M=m(4004),c=m(262),N=m(1365),o=m(2340),L=m(8627),O=m(1786),A=m(7731),E=m(7861),k=m(6523),w=m(6529),V=m(5e3),W=m(8138),j=m(5620),$=m(5043),ee=m(62),me=m(5986),ce=m(8966),le=m(9291),te=m(7998),re=m(9808);let pe=(()=>{class y{constructor(a,p,u,_,D,I,x,r,b,Z){this.actions=a,this.httpClient=p,this.store=u,this.logger=_,this.commonService=D,this.sessionService=I,this.dialog=x,this.router=r,this.wsService=b,this.location=Z,this.CHILD_API_URL=o.T5+"/lnd",this.flgInitialized=!1,this.unSubs=[new t.x,new t.x],this.infoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_INFO_LND),(0,C.z)(P=>(this.flgInitialized=!1,this.store.dispatch((0,E.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_INFO})),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,e.l4)(A.pg.SET_SELECTED_NODE))),(0,M.U)(U=>(this.logger.info(U),U.chains&&U.chains.length&&U.chains[0]&&("string"==typeof U.chains[0]&&U.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof U.chains[0]&&U.chains[0].hasOwnProperty("chain")&&U.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.qR)({payload:{data:{type:A.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:A.pg.LOGOUT}):U.identity_pubkey?(U.lnImplementation="LND",this.initializeRemainingData(U,P.payload.loadPage),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),{type:A.uR.SET_INFO_LND,payload:U||{}}):(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:A.uR.SET_INFO_LND,payload:{}}))),(0,c.K)(U=>{if("string"==typeof U.error.error&&U.error.error.includes("Not Found")||"string"==typeof U.error.error&&U.error.error.includes("wallet locked")||502===U.status&&!U.error.message.includes("Bad or Missing Macaroon"))this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",U);else if("string"==typeof U.error.error&&U.error.error.includes("starting up")&&500===U.status)setTimeout(()=>{this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const ye=this.commonService.extractErrorCode(U),xe=503===ye?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(U);this.router.navigate(["/error"],{state:{errorCode:ye,errorMessage:xe}}),this.handleErrorWithoutAlert("FetchInfo",A.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:ye,error:xe})}return(0,v.of)({type:A.pg.VOID})})))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PEERS_LND),(0,C.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.PEERS_API).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:A.Bn.COMPLETED}})),{type:A.uR.SET_PEERS_LND,payload:P||[]})),(0,c.K)(P=>(this.handleErrorWithoutAlert("FetchPeers",A.m6.NO_SPINNER,"Fetching Peers Failed.",P),(0,v.of)({type:A.pg.VOID})))))))),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_PEER_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.PEERS_API,{pubkey:P.payload.pubkey,host:P.payload.host,perm:P.payload.perm}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.CONNECT_PEER})),this.store.dispatch((0,k.Z8)({payload:U||[]})),{type:A.uR.NEWLY_ADDED_PEER_LND,payload:{peer:U[0]}})),(0,c.K)(U=>(this.handleErrorWithoutAlert("SaveNewPeer",A.m6.CONNECT_PEER,"Peer Connection Failed.",U),(0,v.of)({type:A.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.DETACH_PEER_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:A.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+o.NZ.PEERS_API+"/"+P.payload.pubkey).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.DISCONNECT_PEER})),this.store.dispatch((0,E.jW)({payload:"Peer Disconnected Successfully."})),{type:A.uR.REMOVE_PEER_LND,payload:{pubkey:P.payload.pubkey}})),(0,c.K)(U=>(this.handleErrorWithAlert("DetachPeer",A.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+o.NZ.PEERS_API+"/"+P.payload.pubkey,U),(0,v.of)({type:A.pg.VOID})))))))),this.saveNewInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_INVOICE_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:P.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.INVOICES_API,{memo:P.payload.memo,amount:P.payload.invoiceValue,private:P.payload.private,expiry:P.payload.expiry}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:P.payload.pageSize,reversed:!0}})),P.payload.openModal?(U.memo=P.payload.memo,U.value=P.payload.invoiceValue,U.expiry=P.payload.expiry,U.cltv_expiry="144",U.private=P.payload.private,U.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{invoice:U,newlyAdded:!0,component:L.v}}}))},100),{type:A.pg.CLOSE_SPINNER,payload:P.payload.uiMessage}):{type:A.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:U.payment_request}})),(0,c.K)(U=>(this.handleErrorWithoutAlert("SaveNewInvoice",P.payload.uiMessage,"Add Invoice Failed.",U),(0,v.of)({type:A.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SAVE_NEW_CHANNEL_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.CHANNELS_API,{node_pubkey:P.payload.selectedPeerPubkey,local_funding_amount:P.payload.fundingAmount,private:P.payload.private,trans_type:P.payload.transType,trans_type_value:P.payload.transTypeValue,spend_unconfirmed:P.payload.spendUnconfirmed}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:A.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:A.uR.FETCH_PENDING_CHANNELS_LND})),(0,c.K)(U=>(this.handleErrorWithoutAlert("SaveNewChannel",A.m6.OPEN_CHANNEL,"Opening Channel Failed.",U),(0,v.of)({type:A.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.UPDATE_CHANNEL_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:A.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:P.payload.baseFeeMsat,feeRate:P.payload.feeRate,timeLockDelta:P.payload.timeLockDelta,chanPoint:P.payload.chanPoint}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,E.jW)("all"===P.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:A.uR.FETCH_CHANNELS_LND})),(0,c.K)(U=>(this.handleErrorWithAlert("UpdateChannels",A.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+o.NZ.CHANNELS_API+"/chanPolicy",U),(0,v.of)({type:A.pg.VOID})))))))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.CLOSE_CHANNEL_LND),(0,C.z)(P=>{this.store.dispatch((0,E.ac)({payload:P.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL}));let U=this.CHILD_API_URL+o.NZ.CHANNELS_API+"/"+P.payload.channelPoint+"?force="+P.payload.forcibly;return P.payload.targetConf&&(U=U+"&target_conf="+P.payload.targetConf),P.payload.satPerByte&&(U=U+"&sat_per_byte="+P.payload.satPerByte),this.httpClient.delete(U).pipe((0,M.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,E.uO)({payload:P.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:A.m6.NO_SPINNER,channelPoint:"ALL",showMessage:ye.message}})),{type:A.pg.VOID})),(0,c.K)(ye=>(this.handleErrorWithAlert("CloseChannel",P.payload.forcibly?A.m6.FORCE_CLOSE_CHANNEL:A.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+o.NZ.CHANNELS_API+"/"+P.payload.channelPoint+"?force="+P.payload.forcibly,ye),(0,v.of)({type:A.pg.VOID}))))}))),this.backupChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.BACKUP_CHANNELS_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:P.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API+"/"+P.payload.channelPoint).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:P.payload.uiMessage})),this.store.dispatch((0,E.jW)({payload:P.payload.showMessage+" "+U.message})),{type:A.uR.BACKUP_CHANNELS_RES_LND,payload:U.message})),(0,c.K)(U=>(this.handleErrorWithAlert("BackupChannels",P.payload.uiMessage,P.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API+"/"+P.payload.channelPoint,U),(0,v.of)({type:A.pg.VOID})))))))),this.verifyChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.VERIFY_CHANNEL_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:A.m6.VERIFY_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API+"/verify/"+P.payload.channelPoint,{}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.VERIFY_CHANNEL})),this.store.dispatch((0,E.jW)({payload:U.message})),{type:A.uR.VERIFY_CHANNEL_RES_LND,payload:U.message})),(0,c.K)(U=>(this.handleErrorWithAlert("VerifyChannel",A.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API+"/verify/"+P.payload.channelPoint,U),(0,v.of)({type:A.pg.VOID})))))))),this.restoreChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.RESTORE_CHANNELS_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:A.m6.RESTORE_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API+"/restore/"+P.payload.channelPoint,{}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.RESTORE_CHANNEL})),this.store.dispatch((0,E.jW)({payload:U.message})),this.store.dispatch((0,k.B_)({payload:U.list})),{type:A.uR.RESTORE_CHANNELS_RES_LND,payload:U.message})),(0,c.K)(U=>(this.handleErrorWithAlert("RestoreChannels",A.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API+"/restore/"+P.payload.channelPoint,U),(0,v.of)({type:A.pg.VOID})))))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_FEES_LND),(0,C.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.FEES_API))),(0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:A.Bn.COMPLETED}})),P.forwarding_events_history&&(this.store.dispatch((0,k.QJ)({payload:P.forwarding_events_history})),delete P.forwarding_events_history),{type:A.uR.SET_FEES_LND,payload:P||{}})),(0,c.K)(P=>(this.handleErrorWithoutAlert("FetchFees",A.m6.NO_SPINNER,"Fetching Fees Failed.",P),(0,v.of)({type:A.pg.VOID}))))),this.balanceBlockchainFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,C.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.BALANCE_API))),(0,M.U)(P=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:A.Bn.COMPLETED}})),this.logger.info(P),{type:A.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:P||{total_balance:""}})),(0,c.K)(P=>(this.handleErrorWithoutAlert("FetchBalance",A.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",P),(0,v.of)({type:A.pg.VOID}))))),this.networkInfoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_NETWORK_LND),(0,C.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.NETWORK_API+"/info"))),(0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:A.Bn.COMPLETED}})),{type:A.uR.SET_NETWORK_LND,payload:P||{}})),(0,c.K)(P=>(this.handleErrorWithoutAlert("FetchNetwork",A.m6.NO_SPINNER,"Fetching Network Failed.",P),(0,v.of)({type:A.pg.VOID}))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_API).pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:A.Bn.COMPLETED}})),{type:A.uR.SET_CHANNELS_LND,payload:P.channels||[]})),(0,c.K)(P=>(this.handleErrorWithoutAlert("FetchChannels",A.m6.NO_SPINNER,"Fetching Channels Failed.",P),(0,v.of)({type:A.pg.VOID})))))))),this.channelsPendingFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PENDING_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/pending").pipe((0,M.U)(P=>{this.logger.info(P),this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:A.Bn.COMPLETED}}));const U={open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0};return P&&(U.total_limbo_balance=P.total_limbo_balance,P.pending_closing_channels&&(U.closing.num_channels=P.pending_closing_channels.length,U.total_channels=U.total_channels+P.pending_closing_channels.length,P.pending_closing_channels.forEach(ye=>{U.closing.limbo_balance=+U.closing.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)})),P.pending_force_closing_channels&&(U.force_closing.num_channels=P.pending_force_closing_channels.length,U.total_channels=U.total_channels+P.pending_force_closing_channels.length,P.pending_force_closing_channels.forEach(ye=>{U.force_closing.limbo_balance=+U.force_closing.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)})),P.pending_open_channels&&(U.open.num_channels=P.pending_open_channels.length,U.total_channels=U.total_channels+P.pending_open_channels.length,P.pending_open_channels.forEach(ye=>{U.open.limbo_balance=+U.open.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)})),P.waiting_close_channels&&(U.waiting_close.num_channels=P.waiting_close_channels.length,U.total_channels=U.total_channels+P.waiting_close_channels.length,P.waiting_close_channels.forEach(ye=>{U.waiting_close.limbo_balance=+U.waiting_close.limbo_balance+(ye.channel.local_balance?+ye.channel.local_balance:0)}))),{type:A.uR.SET_PENDING_CHANNELS_LND,payload:P?{pendingChannels:P,pendingChannelsSummary:U}:{pendingChannels:{},pendingChannelsSummary:U}}}),(0,c.K)(P=>(this.handleErrorWithoutAlert("FetchPendingChannels",A.m6.NO_SPINNER,"Fetching Pending Channels Failed.",P),(0,v.of)({type:A.pg.VOID})))))))),this.channelsClosedFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_CLOSED_CHANNELS_LND),(0,C.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/closed").pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:A.Bn.COMPLETED}})),{type:A.uR.SET_CLOSED_CHANNELS_LND,payload:P.channels||[]})),(0,c.K)(P=>(this.handleErrorWithoutAlert("FetchClosedChannels",A.m6.NO_SPINNER,"Fetching Closed Channels Failed.",P),(0,v.of)({type:A.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_INVOICES_LND),(0,C.z)(P=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.INVOICES_API+"?num_max_invoices="+(P.payload.num_max_invoices?P.payload.num_max_invoices:100)+"&index_offset="+(P.payload.index_offset?P.payload.index_offset:0)+"&reversed="+(!!P.payload.reversed&&P.payload.reversed)).pipe((0,M.U)(Ne=>(this.logger.info(Ne),this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:A.Bn.COMPLETED}})),P.payload.reversed&&!P.payload.index_offset&&(Ne.total_invoices=+Ne.last_index_offset),{type:A.uR.SET_INVOICES_LND,payload:Ne})),(0,c.K)(Ne=>(this.handleErrorWithoutAlert("FetchInvoices",A.m6.NO_SPINNER,"Fetching Invoices Failed.",Ne),(0,v.of)({type:A.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_TRANSACTIONS_LND),(0,C.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.TRANSACTIONS_API))),(0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:A.Bn.COMPLETED}})),{type:A.uR.SET_TRANSACTIONS_LND,payload:P||[]})),(0,c.K)(P=>(this.handleErrorWithoutAlert("FetchTransactions",A.m6.NO_SPINNER,"Fetching Transactions Failed.",P),(0,v.of)({type:A.pg.VOID}))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_UTXOS_LND),(0,N.M)(this.store.select(w.Q5)),(0,C.z)(([P,U])=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.WALLET_API+"/getUTXOs?max_confs="+(U&&U.block_height?U.block_height:1e9)))),(0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:A.Bn.COMPLETED}})),{type:A.uR.SET_UTXOS_LND,payload:P||[]})),(0,c.K)(P=>(this.handleErrorWithoutAlert("FetchUTXOs",A.m6.NO_SPINNER,"Fetching UTXOs Failed.",P),(0,v.of)({type:A.pg.VOID}))))),this.paymentsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_PAYMENTS_LND),(0,C.z)(P=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.PAYMENTS_API+"?max_payments="+(P.payload.max_payments?P.payload.max_payments:100)+"&index_offset="+(P.payload.index_offset?P.payload.index_offset:0)+"&reversed="+(!!P.payload.reversed&&P.payload.reversed)).pipe((0,M.U)(Ne=>(this.logger.info(Ne),this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:A.Bn.COMPLETED}})),{type:A.uR.SET_PAYMENTS_LND,payload:Ne})),(0,c.K)(Ne=>(this.handleErrorWithoutAlert("FetchPayments",A.m6.NO_SPINNER,"Fetching Payments Failed.",Ne),(0,v.of)({type:A.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SEND_PAYMENT_LND),(0,C.z)(P=>{this.store.dispatch((0,E.ac)({payload:P.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:A.Bn.INITIATED}}));const U={};return U.paymentReq=P.payload.paymentReq,P.payload.paymentAmount&&(U.paymentAmount=P.payload.paymentAmount),P.payload.outgoingChannel&&(U.outgoingChannel=P.payload.outgoingChannel.chan_id),P.payload.allowSelfPayment&&(U.allowSelfPayment=P.payload.allowSelfPayment),P.payload.lastHopPubkey&&(U.lastHopPubkey=P.payload.lastHopPubkey),P.payload.feeLimitType&&P.payload.feeLimitType!==A.Vc[0].id&&(U.feeLimit={},U.feeLimit[P.payload.feeLimitType]=P.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/transactions",U).pipe((0,M.U)(ye=>{if(this.logger.info(ye),this.store.dispatch((0,E.uO)({payload:P.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),ye.payment_error)return P.payload.allowSelfPayment?(this.store.dispatch((0,k.WM)({payload:{num_max_invoices:A.IV,reversed:!0}})),{type:A.uR.SEND_PAYMENT_STATUS_LND,payload:ye}):(P.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed.",ye.payment_error):this.handleErrorWithAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+o.NZ.CHANNELS_API+"/transactions",ye.payment_error),{type:A.pg.VOID});if(this.store.dispatch((0,E.uO)({payload:P.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.cQ)({payload:{max_payments:A.IV,reversed:!0}})),P.payload.allowSelfPayment)this.store.dispatch((0,k.WM)({payload:{num_max_invoices:A.IV,reversed:!0}}));else{let xe="Payment Sent Successfully.";ye.payment_route&&ye.payment_route.total_fees_msat&&(xe="Payment sent successfully with the total fee "+ye.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,E.jW)({payload:xe}))}return{type:A.uR.SEND_PAYMENT_STATUS_LND,payload:ye}}),(0,c.K)(ye=>(this.logger.error("Error: "+JSON.stringify(ye)),P.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed.",ye),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:A.IV,reversed:!0}})),(0,v.of)({type:A.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(ye)}})):(P.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed.",ye):this.handleErrorWithAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+o.NZ.CHANNELS_API+"/transactions",ye),(0,v.of)({type:A.pg.VOID})))))}))),this.graphNodeFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.FETCH_GRAPH_NODE_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:A.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.NETWORK_API+"/node/"+P.payload.pubkey).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:A.Bn.COMPLETED}})),{type:A.uR.SET_GRAPH_NODE_LND,payload:U&&U.node?{node:U.node}:{node:null}})),(0,c.K)(U=>(this.handleErrorWithoutAlert("FetchGraphNode",A.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",U),(0,v.of)({type:A.pg.VOID})))))))),this.setGraphNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_GRAPH_NODE_LND),(0,M.U)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_NEW_ADDRESS_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:A.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+o.NZ.NEW_ADDRESS_API+"?type="+P.payload.addressId).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.GENERATE_NEW_ADDRESS})),{type:A.uR.SET_NEW_ADDRESS_LND,payload:U&&U.address?U.address:{}})),(0,c.K)(U=>(this.handleErrorWithAlert("GetNewAddress",A.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+o.NZ.NEW_ADDRESS_API+"?type="+P.payload.addressId,U),(0,v.of)({type:A.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_NEW_ADDRESS_LND),(0,M.U)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_CHANNEL_TRANSACTION_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.TRANSACTIONS_API,{amount:P.payload.amount,address:P.payload.address,sendAll:P.payload.sendAll,fees:P.payload.fees,blocks:P.payload.blocks}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:A.Bn.COMPLETED}})),this.store.dispatch((0,E.uO)({payload:A.m6.SEND_FUNDS})),this.store.dispatch((0,k.mC)()),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),{type:A.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:U})),(0,c.K)(U=>(this.handleErrorWithoutAlert("SetChannelTransaction",A.m6.SEND_FUNDS,"Sending Fund Failed.",U),(0,v.of)({type:A.pg.VOID})))))))),this.fetchForwardingHistory=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_FORWARDING_HISTORY_LND),(0,C.z)(P=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:A.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.SWITCH_API,{num_max_events:P.payload.num_max_events,index_offset:P.payload.index_offset,end_time:P.payload.end_time,start_time:P.payload.start_time}).pipe((0,M.U)(ye=>(this.logger.info(ye),this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:A.Bn.COMPLETED}})),{type:A.uR.SET_FORWARDING_HISTORY_LND,payload:ye})),(0,c.K)(ye=>(this.handleErrorWithAlert("FetchForwardingHistory",A.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+o.NZ.SWITCH_API,ye),(0,v.of)({type:A.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_QUERY_ROUTES_LND),(0,C.z)(P=>{let U=this.CHILD_API_URL+o.NZ.NETWORK_API+"/routes/"+P.payload.destPubkey+"/"+P.payload.amount;return P.payload.outgoingChanId&&(U=U+"?outgoing_chan_id="+P.payload.outgoingChanId),this.httpClient.get(U).pipe((0,M.U)(ye=>(this.logger.info(ye),{type:A.uR.SET_QUERY_ROUTES_LND,payload:ye})),(0,c.K)(ye=>(this.store.dispatch((0,k.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",A.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+o.NZ.NETWORK_API,ye),(0,v.of)({type:A.pg.VOID}))))}))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_QUERY_ROUTES_LND),(0,M.U)(P=>P.payload)),{dispatch:!1}),this.genSeed=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GEN_SEED_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:A.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+o.NZ.WALLET_API+"/genseed/"+P.payload).pipe((0,M.U)(U=>(this.logger.info("Generated GenSeed!"),this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.GEN_SEED})),{type:A.uR.GEN_SEED_RESPONSE_LND,payload:U.cipher_seed_mnemonic})),(0,c.K)(U=>(this.handleErrorWithAlert("GenSeed",A.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+o.NZ.WALLET_API+"/genseed/"+P.payload,U),(0,v.of)({type:A.pg.VOID})))))))),this.updateSelNodeOptions=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,C.z)(()=>this.httpClient.get(this.CHILD_API_URL+o.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,M.U)(P=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(P),{type:A.pg.VOID})),(0,c.K)(P=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",A.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",P),(0,v.of)({type:A.pg.VOID}))))))),this.genSeedResponse=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GEN_SEED_RESPONSE_LND),(0,M.U)(P=>P.payload)),{dispatch:!1}),this.initWalletRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INIT_WALLET_RESPONSE_LND),(0,M.U)(P=>P.payload)),{dispatch:!1}),this.initWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INIT_WALLET_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:A.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+o.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:P.payload.pwd,cipher_seed_mnemonic:P.payload.cipher?P.payload.cipher:"",aezeed_passphrase:P.payload.passphrase?P.payload.passphrase:""}).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.INITIALIZE_WALLET})),{type:A.uR.INIT_WALLET_RESPONSE_LND,payload:U})),(0,c.K)(U=>(this.handleErrorWithAlert("InitWallet",A.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+o.NZ.WALLET_API+"/initwallet",U),(0,v.of)({type:A.pg.VOID})))))))),this.unlockWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.UNLOCK_WALLET_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:A.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+o.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:P.payload.pwd}).pipe((0,M.U)(U=>(this.logger.info(U),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,E.uO)({payload:A.m6.UNLOCK_WALLET})),this.store.dispatch((0,E.ac)({payload:A.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,E.uO)({payload:A.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:A.pg.VOID})),(0,c.K)(U=>(this.handleErrorWithAlert("UnlockWallet",A.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+o.NZ.WALLET_API+"/unlockwallet",U),(0,v.of)({type:A.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.PEER_LOOKUP_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.NETWORK_API+"/node/"+P.payload).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),{type:A.uR.SET_LOOKUP_LND,payload:U})),(0,c.K)(U=>(this.handleErrorWithAlert("Lookup",A.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+o.NZ.NETWORK_API+"/node/"+P.payload,U),(0,v.of)({type:A.pg.VOID})))))))),this.channelLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.CHANNEL_LOOKUP_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:P.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.NETWORK_API+"/edge/"+P.payload.channelID).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:P.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),{type:A.uR.SET_LOOKUP_LND,payload:U})),(0,c.K)(U=>(this.handleErrorWithAlert("Lookup",P.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+o.NZ.NETWORK_API+"/edge/"+P.payload.channelID,U),this.store.dispatch((0,k.v_)({payload:{}})),(0,v.of)({type:A.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.INVOICE_LOOKUP_LND),(0,C.z)(P=>(this.store.dispatch((0,E.ac)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.INVOICES_API+"/"+P.payload).pipe((0,M.U)(U=>(this.logger.info(U),this.store.dispatch((0,E.uO)({payload:A.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:A.Bn.COMPLETED}})),this.store.dispatch((0,k.aL)({payload:U})),{type:A.uR.SET_LOOKUP_LND,payload:U})),(0,c.K)(U=>(this.handleErrorWithoutAlert("Lookup",A.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",U),this.store.dispatch((0,E.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,v.of)({type:A.pg.VOID})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_LOOKUP_LND),(0,M.U)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.RESTORE_CHANNELS_LIST_LND),(0,C.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:A.Bn.COMPLETED}})),{type:A.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:P||{all_restore_exists:!1,files:[]}})),(0,c.K)(P=>(this.handleErrorWithAlert("RestoreChannelsList",A.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API,P),(0,v.of)({type:A.pg.VOID})))))))),this.setRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,M.U)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(A.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,C.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:A.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.PAYMENTS_API+"/alltransactions").pipe((0,M.U)(P=>(this.logger.info(P),this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:A.Bn.COMPLETED}})),{type:A.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:P})),(0,c.K)(P=>(this.handleErrorWithoutAlert("FetchLightningTransactions",A.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",P),(0,v.of)({type:A.pg.VOID})))))))),this.store.select(w.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(P=>{P.FetchInfo.status!==A.Bn.COMPLETED&&P.FetchInfo.status!==A.Bn.ERROR||P.FetchFees.status!==A.Bn.COMPLETED&&P.FetchFees.status!==A.Bn.ERROR||P.FetchBalanceBlockchain.status!==A.Bn.COMPLETED&&P.FetchBalanceBlockchain.status!==A.Bn.ERROR||P.FetchAllChannels.status!==A.Bn.COMPLETED&&P.FetchAllChannels.status!==A.Bn.ERROR||P.FetchPendingChannels.status!==A.Bn.COMPLETED&&P.FetchPendingChannels.status!==A.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,E.uO)({payload:A.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(P=>{this.logger.info("Received new message from the service: "+JSON.stringify(P)),P&&(P.type===A.g8.INVOICE?(this.logger.info(P),P&&P.result&&P.result.payment_request&&this.store.dispatch((0,k.aL)({payload:P.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(P)))})}initializeRemainingData(a,p){this.sessionService.setItem("lndUnlocked","true");const u={identity_pubkey:a.identity_pubkey,alias:a.alias,testnet:a.testnet,chains:a.chains,uris:a.uris,version:a.version?a.version.split(" ")[0]:""};this.store.dispatch((0,E.ac)({payload:A.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,E._V)({payload:u}));let _=this.location.path();_.includes("/cl/")?_=_.replace("/cl/","/lnd/"):_.includes("/ecl/")&&(_=_.replace("/ecl/","/lnd/")),(_.includes("/unlock")||_.includes("/login")||_.includes("/error")||""===_||"HOME"===p||_.includes("?access-key="))&&(_="/lnd/home"),this.router.navigate([_]),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Zh)()),this.store.dispatch((0,k.$W)()),this.store.dispatch((0,k.Rv)()),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:10,reversed:!0}})),this.store.dispatch((0,k.cQ)({payload:{max_payments:10,reversed:!0}})),this.store.dispatch((0,k.SN)()),this.store.dispatch((0,k.Jo)())}handleErrorWithoutAlert(a,p,u,_){this.logger.error("ERROR IN: "+a+"\n"+JSON.stringify(_)),401===_.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,E.uO)({payload:p})),this.store.dispatch((0,k.PC)({payload:{action:a,status:A.Bn.ERROR,statusCode:_.status.toString(),message:this.commonService.extractErrorMessage(_,u)}})))}handleErrorWithAlert(a,p,u,_,D){if(this.logger.error(D),401===D.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:p}));const I=this.commonService.extractErrorMessage(D);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:D.status,message:I,URL:_},component:O.H}}})),this.store.dispatch((0,k.PC)({payload:{action:a,status:A.Bn.ERROR,statusCode:D.status.toString(),message:I,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return y.\u0275fac=function(a){return new(a||y)(V.LFG(e.eX),V.LFG(W.eN),V.LFG(j.yh),V.LFG($.mQ),V.LFG(ee.v),V.LFG(me.m),V.LFG(ce.uw),V.LFG(le.F0),V.LFG(te.d),V.LFG(re.Ye))},y.\u0275prov=V.Yz7({token:y,factory:y.\u0275fac}),y})()},6529:(Ze,K,m)=>{"use strict";m.d(K,{$k:()=>v,Q5:()=>C,yA:()=>M,Bo:()=>c,PP:()=>N,JG:()=>o,Wi:()=>L,dx:()=>O,Ef:()=>A,ZW:()=>E,ni:()=>w,P2:()=>V,qU:()=>W,T4:()=>$,N7:()=>ee,l5:()=>me,_f:()=>ce,bx:()=>le});var e=m(5620);const t=(0,e.ZF)("lnd"),v=(0,e.P1)(t,te=>te.nodeSettings),C=(0,e.P1)(t,te=>te.information),M=((0,e.P1)(t,te=>({information:te.information,apiCallStatus:te.apisCallStatus.FetchInfo})),(0,e.P1)(t,te=>te.apisCallStatus)),c=(0,e.P1)(t,te=>({forwardingHistory:te.forwardingHistory,apiCallStatus:te.apisCallStatus.FetchForwardingHistory})),N=(0,e.P1)(t,te=>({listPayments:te.listPayments,apiCallStatus:te.apisCallStatus.FetchPayments})),o=(0,e.P1)(t,te=>({fees:te.fees,apiCallStatus:te.apisCallStatus.FetchFees})),L=(0,e.P1)(t,te=>({peers:te.peers,apiCallStatus:te.apisCallStatus.FetchPeers})),O=(0,e.P1)(t,te=>({transactions:te.transactions,apiCallStatus:te.apisCallStatus.FetchTransactions})),A=(0,e.P1)(t,te=>({listInvoices:te.listInvoices,apiCallStatus:te.apisCallStatus.FetchInvoices})),E=(0,e.P1)(t,te=>({channels:te.channels,channelsSummary:te.channelsSummary,lightningBalance:te.lightningBalance,apiCallStatus:te.apisCallStatus.FetchAllChannels})),w=((0,e.P1)(t,te=>({channelsSummary:te.channelsSummary,pendingChannels:te.pendingChannels,closedChannels:te.closedChannels,apiCallStatus:te.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,te=>({pendingChannels:te.pendingChannels,pendingChannelsSummary:te.pendingChannelsSummary,apiCallStatus:te.apisCallStatus.FetchPendingChannels}))),V=(0,e.P1)(t,te=>({closedChannels:te.closedChannels,apiCallStatus:te.apisCallStatus.FetchClosedChannels})),W=(0,e.P1)(t,te=>({blockchainBalance:te.blockchainBalance,apiCallStatus:te.apisCallStatus.FetchBalanceBlockchain})),$=((0,e.P1)(t,te=>({lightningBalance:te.lightningBalance,apiCallStatus:te.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,te=>({utxos:te.utxos,apiCallStatus:te.apisCallStatus.FetchUTXOs}))),ee=(0,e.P1)(t,te=>({networkInfo:te.networkInfo,apiCallStatus:te.apisCallStatus.FetchNetwork})),me=(0,e.P1)(t,te=>({allLightningTransactions:te.allLightningTransactions,apiCallStatus:te.apisCallStatus.FetchLightningTransactions})),ce=(0,e.P1)(t,te=>({channels:te.channels,pendingChannels:te.pendingChannels,closedChannels:te.closedChannels})),le=(0,e.P1)(t,te=>({information:te.information,nodeSettings:te.nodeSettings,apiCallStatus:te.apisCallStatus.FetchInfo}))},8627:(Ze,K,m)=>{"use strict";m.d(K,{v:()=>J});var e=m(8966),t=m(801),v=m(7579),C=m(2722),s=m(7731),M=m(6529),c=m(5e3),N=m(5043),o=m(62),L=m(7261),O=m(5620),A=m(7093),E=m(9808),k=m(3322),w=m(9224),V=m(9444),W=m(7423),j=m(644),$=m(4834),ee=m(159),me=m(773),ce=m(1125),le=m(7238),te=m(5245),re=m(3390),pe=m(6895);const y=["scrollContainer"];function i(oe,Ce){if(1&oe&&c._UZ(0,"qr-code",32),2&oe){const Ue=c.oxw();c.Q6J("value",null==Ue.invoice?null:Ue.invoice.payment_request)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function a(oe,Ce){1&oe&&(c.TgZ(0,"span",33),c._uU(1,"N/A"),c.qZA())}function p(oe,Ce){if(1&oe&&c._UZ(0,"qr-code",32),2&oe){const Ue=c.oxw();c.Q6J("value",null==Ue.invoice?null:Ue.invoice.payment_request)("size",Ue.qrWidth)("errorCorrectionLevel","L")}}function u(oe,Ce){1&oe&&(c.TgZ(0,"span",34),c._uU(1,"QR Code Not Applicable"),c.qZA())}function _(oe,Ce){1&oe&&c._UZ(0,"mat-divider",22),2&oe&&c.Q6J("inset",!0)}function D(oe,Ce){1&oe&&(c.ynx(0),c._uU(1," (zero amount) "),c.BQk())}function I(oe,Ce){1&oe&&c._UZ(0,"span",40)}const x=function(){return[]};function r(oe,Ce){if(1&oe&&(c.TgZ(0,"div",36),c.TgZ(1,"div",37),c.TgZ(2,"span",38),c._uU(3),c.ALo(4,"number"),c.qZA(),c.YNc(5,I,1,0,"span",39),c.qZA(),c.qZA()),2&oe){const Ue=c.oxw(2);c.xp6(3),c.hij("",c.lcZ(4,2,null==Ue.invoice?null:Ue.invoice.amt_paid_sat)," Sats"),c.xp6(2),c.Q6J("ngForOf",c.DdM(4,x).constructor(35))}}function b(oe,Ce){if(1&oe&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"number"),c.qZA()),2&oe){const Ue=c.oxw(2);c.xp6(1),c.hij("",c.lcZ(2,1,null==Ue.invoice?null:Ue.invoice.amt_paid_sat)," Sats")}}function Z(oe,Ce){if(1&oe&&(c.ynx(0),c.YNc(1,r,6,5,"div",35),c.YNc(2,b,3,3,"div",21),c.BQk()),2&oe){const Ue=c.oxw();c.xp6(1),c.Q6J("ngIf",Ue.flgInvoicePaid),c.xp6(1),c.Q6J("ngIf",!Ue.flgInvoicePaid)}}function P(oe,Ce){1&oe&&(c.TgZ(0,"span"),c._uU(1,"-"),c.qZA())}function U(oe,Ce){1&oe&&c._UZ(0,"mat-spinner",42),2&oe&&c.Q6J("diameter",20)}function ye(oe,Ce){if(1&oe&&(c.ynx(0),c.YNc(1,P,2,0,"span",21),c.YNc(2,U,1,1,"mat-spinner",41),c.BQk()),2&oe){const Ue=c.oxw();c.xp6(1),c.Q6J("ngIf","OPEN"!==(null==Ue.invoice?null:Ue.invoice.state)||!Ue.flgVersionCompatible),c.xp6(1),c.Q6J("ngIf","OPEN"===(null==Ue.invoice?null:Ue.invoice.state)&&Ue.flgVersionCompatible)}}const xe=function(oe){return{"mr-0":oe}};function Ne(oe,Ce){if(1&oe&&c._UZ(0,"span",59),2&oe){const Ue=c.oxw(4);c.Q6J("ngClass",c.VKq(1,xe,Ue.screenSize===Ue.screenSizeEnum.XS))}}function Be(oe,Ce){if(1&oe&&c._UZ(0,"span",60),2&oe){const Ue=c.oxw(4);c.Q6J("ngClass",c.VKq(1,xe,Ue.screenSize===Ue.screenSizeEnum.XS))}}function Oe(oe,Ce){if(1&oe&&c._UZ(0,"span",61),2&oe){const Ue=c.oxw(4);c.Q6J("ngClass",c.VKq(1,xe,Ue.screenSize===Ue.screenSizeEnum.XS))}}function B(oe,Ce){if(1&oe&&(c.TgZ(0,"div",48),c.TgZ(1,"div",53),c.TgZ(2,"span",54),c.YNc(3,Ne,1,3,"span",55),c.YNc(4,Be,1,3,"span",56),c.YNc(5,Oe,1,3,"span",57),c._uU(6),c.qZA(),c.TgZ(7,"span",58),c._uU(8),c.ALo(9,"number"),c.qZA(),c.qZA(),c._UZ(10,"mat-divider",22),c.qZA()),2&oe){const Ue=Ce.$implicit,ht=c.oxw(3);c.xp6(3),c.Q6J("ngIf","SETTLED"===Ue.state),c.xp6(1),c.Q6J("ngIf","ACCEPTED"===Ue.state),c.xp6(1),c.Q6J("ngIf","CANCELED"===Ue.state),c.xp6(1),c.hij(" ",Ue.chan_id," "),c.xp6(2),c.Oqu(c.xi3(9,6,+Ue.amt_msat/1e3||0,ht.getDecimalFormat(Ue))),c.xp6(2),c.Q6J("inset",!0)}}function Me(oe,Ce){if(1&oe){const Ue=c.EpF();c.TgZ(0,"div",17),c.TgZ(1,"mat-expansion-panel",46),c.NdJ("opened",function(){return c.CHM(Ue),c.oxw(2).flgOpened=!0})("closed",function(){return c.CHM(Ue),c.oxw(2).onExpansionClosed()}),c.TgZ(2,"mat-expansion-panel-header"),c.TgZ(3,"mat-panel-title"),c.TgZ(4,"h4",47),c._uU(5,"HTLCs"),c.qZA(),c.qZA(),c.qZA(),c.TgZ(6,"div",48),c.TgZ(7,"div",49),c.TgZ(8,"span",50),c._uU(9,"Channel ID"),c.qZA(),c.TgZ(10,"span",51),c._uU(11,"Amount (Sats)"),c.qZA(),c.qZA(),c._UZ(12,"mat-divider",22),c.YNc(13,B,11,9,"div",52),c.qZA(),c.qZA(),c.qZA()}if(2&oe){const Ue=c.oxw(2);c.xp6(12),c.Q6J("inset",!0),c.xp6(1),c.Q6J("ngForOf",null==Ue.invoice?null:Ue.invoice.htlcs)}}function we(oe,Ce){1&oe&&c._UZ(0,"mat-divider",22),2&oe&&c.Q6J("inset",!0)}function ae(oe,Ce){if(1&oe&&(c.TgZ(0,"div"),c._UZ(1,"mat-divider",22),c.TgZ(2,"div",17),c.TgZ(3,"div",23),c.TgZ(4,"h4",19),c._uU(5,"R Preimage"),c.qZA(),c.TgZ(6,"span",24),c._uU(7),c.qZA(),c.qZA(),c.qZA(),c._UZ(8,"mat-divider",22),c.TgZ(9,"div",17),c.TgZ(10,"div",43),c.TgZ(11,"h4",19),c._uU(12,"State"),c.qZA(),c.TgZ(13,"span",24),c._uU(14),c.qZA(),c.qZA(),c.TgZ(15,"div",44),c.TgZ(16,"h4",19),c._uU(17,"Expiry"),c.qZA(),c.TgZ(18,"span",24),c._uU(19),c.qZA(),c.qZA(),c.TgZ(20,"div",44),c.TgZ(21,"h4",19),c._uU(22,"Private Routing Hints"),c.qZA(),c.TgZ(23,"span",24),c._uU(24),c.qZA(),c.qZA(),c.qZA(),c._UZ(25,"mat-divider",22),c.YNc(26,Me,14,2,"div",45),c.YNc(27,we,1,1,"mat-divider",14),c.qZA()),2&oe){const Ue=c.oxw();c.xp6(1),c.Q6J("inset",!0),c.xp6(6),c.Oqu((null==Ue.invoice?null:Ue.invoice.r_preimage)||"-"),c.xp6(1),c.Q6J("inset",!0),c.xp6(6),c.Oqu(null==Ue.invoice?null:Ue.invoice.state),c.xp6(5),c.Oqu(null==Ue.invoice?null:Ue.invoice.expiry),c.xp6(5),c.Oqu(null!=Ue.invoice&&Ue.invoice.private?"Yes":"No"),c.xp6(1),c.Q6J("inset",!0),c.xp6(1),c.Q6J("ngIf",(null==Ue.invoice?null:Ue.invoice.htlcs)&&(null==Ue.invoice?null:Ue.invoice.htlcs.length)>0),c.xp6(1),c.Q6J("ngIf",(null==Ue.invoice?null:Ue.invoice.htlcs)&&(null==Ue.invoice?null:Ue.invoice.htlcs.length)>0)}}function We(oe,Ce){if(1&oe){const Ue=c.EpF();c.TgZ(0,"div",62),c.TgZ(1,"button",63),c.NdJ("click",function(){return c.CHM(Ue),c.oxw().onScrollDown()}),c.TgZ(2,"mat-icon",64),c._uU(3,"arrow_downward"),c.qZA(),c.qZA(),c.qZA()}}function vt(oe,Ce){1&oe&&(c.TgZ(0,"p"),c._uU(1,"Show Advanced"),c.qZA())}function Pe(oe,Ce){1&oe&&(c.TgZ(0,"p"),c._uU(1,"Hide Advanced"),c.qZA())}function Ve(oe,Ce){if(1&oe){const Ue=c.EpF();c.TgZ(0,"button",65),c.NdJ("copied",function(it){return c.CHM(Ue),c.oxw().onCopyPayment(it)}),c._uU(1),c.qZA()}if(2&oe){const Ue=c.oxw();c.Q6J("payload",null==Ue.invoice?null:Ue.invoice.payment_request),c.xp6(1),c.Oqu(Ue.screenSize===Ue.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function he(oe,Ce){if(1&oe){const Ue=c.EpF();c.TgZ(0,"button",66),c.NdJ("click",function(){return c.CHM(Ue),c.oxw().onClose()}),c._uU(1,"OK"),c.qZA()}}const Ee=function(oe){return{"display-none":oe}},ke=function(oe){return{"xs-scroll-y":oe}},q=function(oe){return{"h-46":oe}};let J=(()=>{class oe{constructor(Ue,ht,it,ft,nt,st){this.dialogRef=Ue,this.data=ht,this.logger=it,this.commonService=ft,this.snackBar=nt,this.store=st,this.faReceipt=t.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new v.x,new v.x,new v.x,new v.x,new v.x]}set container(Ue){Ue&&(this.scrollContainer=Ue)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.cu.XS&&(this.qrWidth=220),this.store.select(M.Q5).pipe((0,C.R)(this.unSubs[0])).subscribe(ht=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ht.version,"0.11.0")});const Ue=JSON.parse(JSON.stringify(this.invoice));this.store.select(M.Ef).pipe((0,C.R)(this.unSubs[1])).subscribe(ht=>{const it=this.invoice.state,nt=(ht.listInvoices.invoices||[]).find(st=>st.r_hash===Ue.r_hash);this.invoice=nt,it!==this.invoice.state&&"SETTLED"===this.invoice.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ht)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced,this.flgOpened=!1}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+60}onExpansionClosed(){this.flgOpened=!1,this.scrollContainer.nativeElement.scrollTop=0}onCopyPayment(Ue){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+Ue)}getDecimalFormat(Ue){return Ue.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(Ue=>{Ue.next(null),Ue.complete()})}}return oe.\u0275fac=function(Ue){return new(Ue||oe)(c.Y36(e.so),c.Y36(e.WI),c.Y36(N.mQ),c.Y36(o.v),c.Y36(L.ux),c.Y36(O.yh))},oe.\u0275cmp=c.Xpm({type:oe,selectors:[["rtl-invoice-information"]],viewQuery:function(Ue,ht){if(1&Ue&&c.Gf(y,5),2&Ue){let it;c.iGM(it=c.CRH())&&(ht.container=it.first)}},decls:71,vars:47,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"perfectScrollbar","ngClass"],["scrollContainer",""],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Ue,ht){if(1&Ue&&(c.TgZ(0,"div",0),c.TgZ(1,"div",1),c.YNc(2,i,1,3,"qr-code",2),c.YNc(3,a,2,0,"span",3),c.qZA(),c.TgZ(4,"div",4),c.TgZ(5,"mat-card-header",5),c.TgZ(6,"div",6),c._UZ(7,"fa-icon",7),c.TgZ(8,"span",8),c._uU(9),c.qZA(),c.qZA(),c.TgZ(10,"button",9),c.NdJ("click",function(){return ht.onClose()}),c._uU(11,"X"),c.qZA(),c.qZA(),c.TgZ(12,"mat-card-content",10),c.TgZ(13,"div",11),c.TgZ(14,"div",12),c.YNc(15,p,1,3,"qr-code",2),c.YNc(16,u,2,0,"span",13),c.qZA(),c.YNc(17,_,1,1,"mat-divider",14),c.TgZ(18,"div",15,16),c.TgZ(20,"div",17),c.TgZ(21,"div",18),c.TgZ(22,"h4",19),c._uU(23),c.qZA(),c.TgZ(24,"span",20),c._uU(25),c.ALo(26,"number"),c.YNc(27,D,2,0,"ng-container",21),c.qZA(),c.qZA(),c.TgZ(28,"div",18),c.TgZ(29,"h4",19),c._uU(30,"Amount Settled"),c.qZA(),c.TgZ(31,"span",20),c.YNc(32,Z,3,2,"ng-container",21),c.YNc(33,ye,3,2,"ng-container",21),c.qZA(),c.qZA(),c.qZA(),c._UZ(34,"mat-divider",22),c.TgZ(35,"div",17),c.TgZ(36,"div",18),c.TgZ(37,"h4",19),c._uU(38,"Date Created"),c.qZA(),c.TgZ(39,"span",20),c._uU(40),c.ALo(41,"date"),c.qZA(),c.qZA(),c.TgZ(42,"div",18),c.TgZ(43,"h4",19),c._uU(44,"Date Settled"),c.qZA(),c.TgZ(45,"span",20),c._uU(46),c.ALo(47,"date"),c.qZA(),c.qZA(),c.qZA(),c._UZ(48,"mat-divider",22),c.TgZ(49,"div",17),c.TgZ(50,"div",23),c.TgZ(51,"h4",19),c._uU(52,"Memo"),c.qZA(),c.TgZ(53,"span",20),c._uU(54),c.qZA(),c.qZA(),c.qZA(),c._UZ(55,"mat-divider",22),c.TgZ(56,"div",17),c.TgZ(57,"div",23),c.TgZ(58,"h4",19),c._uU(59,"Payment Request"),c.qZA(),c.TgZ(60,"span",24),c._uU(61),c.qZA(),c.qZA(),c.qZA(),c.YNc(62,ae,28,9,"div",21),c.qZA(),c.qZA(),c.qZA(),c.YNc(63,We,4,0,"div",25),c.TgZ(64,"div",26),c.TgZ(65,"button",27),c.NdJ("click",function(){return ht.onShowAdvanced()}),c.YNc(66,vt,2,0,"p",28),c.YNc(67,Pe,2,0,"ng-template",null,29,c.W1O),c.qZA(),c.YNc(69,Ve,2,2,"button",30),c.YNc(70,he,2,0,"button",31),c.qZA(),c.qZA(),c.qZA()),2&Ue){const it=c.MAs(68);c.xp6(1),c.Q6J("fxLayoutAlign",null!=ht.invoice&&ht.invoice.payment_request&&""!==(null==ht.invoice?null:ht.invoice.payment_request)?"center start":"center center")("ngClass",c.VKq(39,Ee,ht.screenSize===ht.screenSizeEnum.XS||ht.screenSize===ht.screenSizeEnum.SM)),c.xp6(1),c.Q6J("ngIf",(null==ht.invoice?null:ht.invoice.payment_request)&&""!==(null==ht.invoice?null:ht.invoice.payment_request)),c.xp6(1),c.Q6J("ngIf",!(null!=ht.invoice&&ht.invoice.payment_request)||""===(null==ht.invoice?null:ht.invoice.payment_request)),c.xp6(4),c.Q6J("icon",ht.faReceipt),c.xp6(2),c.Oqu(ht.screenSize===ht.screenSizeEnum.XS?ht.newlyAdded?"Created":"Invoice":ht.newlyAdded?"Invoice Created":"Invoice Information"),c.xp6(3),c.Q6J("ngClass",c.VKq(41,ke,ht.screenSize===ht.screenSizeEnum.XS)),c.xp6(2),c.Q6J("fxLayoutAlign",null!=ht.invoice&&ht.invoice.payment_request&&""!==(null==ht.invoice?null:ht.invoice.payment_request)?"center start":"center center")("ngClass",c.VKq(43,Ee,ht.screenSize!==ht.screenSizeEnum.XS&&ht.screenSize!==ht.screenSizeEnum.SM)),c.xp6(1),c.Q6J("ngIf",(null==ht.invoice?null:ht.invoice.payment_request)&&""!==(null==ht.invoice?null:ht.invoice.payment_request)),c.xp6(1),c.Q6J("ngIf",!(null!=ht.invoice&&ht.invoice.payment_request)||""===(null==ht.invoice?null:ht.invoice.payment_request)),c.xp6(1),c.Q6J("ngIf",ht.screenSize===ht.screenSizeEnum.XS||ht.screenSize===ht.screenSizeEnum.SM),c.xp6(1),c.Q6J("ngClass",c.VKq(45,q,(null==ht.invoice?null:ht.invoice.htlcs)&&(null==ht.invoice?null:ht.invoice.htlcs.length)>0&&ht.showAdvanced)),c.xp6(5),c.Oqu(ht.screenSize===ht.screenSizeEnum.XS?"Amount":"Amount Requested"),c.xp6(2),c.hij("",c.lcZ(26,31,(null==ht.invoice?null:ht.invoice.value)||0)," Sats"),c.xp6(2),c.Q6J("ngIf",!(null!=ht.invoice&&ht.invoice.value)||"0"===(null==ht.invoice?null:ht.invoice.value)),c.xp6(5),c.Q6J("ngIf",(null==ht.invoice?null:ht.invoice.amt_paid_sat)&&"OPEN"!==(null==ht.invoice?null:ht.invoice.state)),c.xp6(1),c.Q6J("ngIf",!(null!=ht.invoice&&ht.invoice.amt_paid_sat)||"0"===(null==ht.invoice?null:ht.invoice.amt_paid_sat)),c.xp6(1),c.Q6J("inset",!0),c.xp6(6),c.Oqu(c.xi3(41,33,1e3*(null==ht.invoice?null:ht.invoice.creation_date),"dd/MMM/y HH:mm")),c.xp6(6),c.Oqu(0!=+(null==ht.invoice?null:ht.invoice.settle_date)?c.xi3(47,36,1e3*+(null==ht.invoice?null:ht.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),c.xp6(2),c.Q6J("inset",!0),c.xp6(6),c.Oqu(null==ht.invoice?null:ht.invoice.memo),c.xp6(1),c.Q6J("inset",!0),c.xp6(6),c.Oqu((null==ht.invoice?null:ht.invoice.payment_request)||"N/A"),c.xp6(1),c.Q6J("ngIf",ht.showAdvanced),c.xp6(1),c.Q6J("ngIf",(null==ht.invoice?null:ht.invoice.htlcs)&&(null==ht.invoice?null:ht.invoice.htlcs.length)>0&&ht.showAdvanced&&ht.flgOpened),c.xp6(3),c.Q6J("ngIf",!ht.showAdvanced)("ngIfElse",it),c.xp6(3),c.Q6J("ngIf",(null==ht.invoice?null:ht.invoice.payment_request)&&""!==(null==ht.invoice?null:ht.invoice.payment_request)),c.xp6(1),c.Q6J("ngIf",!(null!=ht.invoice&&ht.invoice.payment_request)||""===(null==ht.invoice?null:ht.invoice.payment_request))}},directives:[A.xw,A.Wh,A.yH,E.mk,k.oO,E.O5,w.dk,V.BN,W.lW,w.dn,j.$V,$.d,ee.uU,E.sg,me.$g,ce.ib,ce.yz,ce.yK,le.gM,te.Hw,re.h,pe.y],pipes:[E.JJ,E.uU],styles:[""]}),oe})()},7772:(Ze,K,m)=>{"use strict";m.d(K,{_:()=>t,J:()=>v});var e=m(1777);const t=[(0,e.X$)("opacityAnimation",[(0,e.eR)(":enter",[(0,e.oB)({opacity:0}),(0,e.jt)("1000ms ease-in",(0,e.oB)({opacity:1}))]),(0,e.eR)(":leave",[(0,e.jt)("0ms",(0,e.oB)({opacity:0}))])])],v=[(0,e.X$)("fadeIn",[(0,e.eR)("void => *",[]),(0,e.eR)("* => void",[]),(0,e.eR)("* => *",[(0,e.jt)(800,(0,e.F4)([(0,e.oB)({opacity:0,transform:"translateY(100%)"}),(0,e.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(Ze,K,m)=>{"use strict";m.d(K,{g:()=>t});var e=m(1777);const t=(0,e.X$)("routeAnimation",[(0,e.eR)("* => *",[(0,e.IO)(":enter, :leave",(0,e.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)"}),(0,e.jt)("1000ms ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(Ze,K,m)=>{"use strict";m.d(K,{l:()=>t});var e=m(1777);const t=[(0,e.X$)("sliderAnimation",[(0,e.SB)("*",(0,e.oB)({transform:"translateX(0)"})),(0,e.eR)("void => backward",[(0,e.oB)({transform:"translateX(-100%"}),(0,e.jt)("800ms")]),(0,e.eR)("backward => void",[(0,e.jt)("0ms",(0,e.oB)({transform:"translateX(100%)"}))]),(0,e.eR)("void => forward",[(0,e.oB)({transform:"translateX(100%"}),(0,e.jt)("800ms")]),(0,e.eR)("forward => void",[(0,e.jt)("0ms",(0,e.oB)({transform:"translateX(-100%)"}))])])]},1786:(Ze,K,m)=>{"use strict";m.d(K,{H:()=>O});var e=m(8966),t=m(5e3),v=m(5043),C=m(7093),s=m(9224),M=m(7423),c=m(9808),N=m(4834),o=m(3390);function L(A,E){if(1&A&&(t.TgZ(0,"p",14),t._uU(1),t.qZA()),2&A){const k=t.oxw();t.xp6(1),t.Oqu(k.data.titleMessage)}}let O=(()=>{class A{constructor(k,w,V){this.dialogRef=k,this.data=w,this.logger=V,this.errorMessage=""}ngOnInit(){this.errorMessage="object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message.message,!this.data.message&&!this.data.titleMessage&&!this.data.message&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}}return A.\u0275fac=function(k){return new(k||A)(t.Y36(e.so),t.Y36(e.WI),t.Y36(v.mQ))},A.\u0275cmp=t.Xpm({type:A,selectors:[["rtl-error-message"]],decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(k,w){1&k&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){return w.onClose()}),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"div",7),t.YNc(10,L,2,1,"p",8),t.TgZ(11,"h4",9),t._uU(12,"Error Code"),t.qZA(),t.TgZ(13,"span"),t._uU(14),t.qZA(),t._UZ(15,"mat-divider",10),t.TgZ(16,"h4",9),t._uU(17,"Error Message"),t.qZA(),t.TgZ(18,"span",11),t._uU(19),t.qZA(),t._UZ(20,"mat-divider",10),t.TgZ(21,"h4",9),t._uU(22,"API URL"),t.qZA(),t.TgZ(23,"span",11),t._uU(24),t.qZA(),t._UZ(25,"mat-divider",10),t.TgZ(26,"div",12),t.TgZ(27,"button",13),t._uU(28,"OK"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&k&&(t.xp6(5),t.Oqu(w.data.alertTitle||"ERROR"),t.xp6(5),t.Q6J("ngIf",w.data.titleMessage),t.xp6(4),t.Oqu(w.data.message.code),t.xp6(5),t.Oqu(w.errorMessage),t.xp6(5),t.Oqu(w.data.message.URL),t.xp6(3),t.Q6J("mat-dialog-close",!1))},directives:[C.xw,C.yH,s.dk,C.Wh,M.lW,s.dn,c.O5,N.d,o.h,e.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),A})()},9442:(Ze,K,m)=>{"use strict";m.d(K,{w:()=>N});var e=m(801),t=m(5e3),v=m(9291),C=m(7093),s=m(9444),M=m(9224),c=m(7423);let N=(()=>{class o{constructor(O){this.router=O,this.faTimes=e.NBC}goToHelp(){this.router.navigate(["/help"])}}return o.\u0275fac=function(O){return new(O||o)(t.Y36(v.F0))},o.\u0275cmp=t.Xpm({type:o,selectors:[["rtl-not-found"]],decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(O,A){1&O&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Page Not Found"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"div",5),t.TgZ(8,"div",6),t._uU(9,"This page does not exist!"),t.qZA(),t.TgZ(10,"span",7),t.TgZ(11,"button",8),t.NdJ("click",function(){return A.goToHelp()}),t._uU(12,"Go To Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&O&&(t.xp6(1),t.Q6J("icon",A.faTimes))},directives:[C.xw,C.Wh,s.BN,M.a8,M.dn,C.yH,c.lW],encapsulation:2}),o})()},8213:(Ze,K,m)=>{"use strict";m.d(K,{a:()=>Xi});var e=m(3075),t=m(7579),v=m(2722),C=m(8966),s=m(801),M=m(7772),c=m(7731),N=m(6529),o=m(5e3),L=m(5620),O=m(9107),A=m(9808),E=m(5043),k=m(9291),w=m(62),V=m(7093),W=m(9224),j=m(7423),$=m(5615),ee=m(1125),me=m(3322),ce=m(5245),le=m(7238),te=m(4834);function re(Ke,mt){1&Ke&&o.GkF(0)}function pe(Ke,mt){1&Ke&&o.GkF(0)}const y=function(Ke){return{"h-5":Ke}};function i(Ke,mt){if(1&Ke&&(o.TgZ(0,"mat-expansion-panel",3),o.TgZ(1,"mat-expansion-panel-header"),o.TgZ(2,"mat-panel-title"),o.TgZ(3,"span",4),o._uU(4),o.ALo(5,"number"),o.qZA(),o.qZA(),o.qZA(),o.YNc(6,pe,1,0,"ng-container",0),o.qZA()),2&Ke){const ve=o.oxw(),qe=o.MAs(4);o.Q6J("expanded",ve.panelExpanded)("ngClass",o.VKq(7,y,!ve.flgShowPanel)),o.xp6(4),o.AsE("Quote for ",ve.termCaption," amount (",o.lcZ(5,5,ve.quote.amount)," Sats)"),o.xp6(2),o.Q6J("ngTemplateOutlet",qe)}}function a(Ke,mt){if(1&Ke&&(o.TgZ(0,"div",19),o.TgZ(1,"h4",8),o._uU(2," Prepay Amount (Sats) "),o.TgZ(3,"mat-icon",20),o._uU(4,"info_outline"),o.qZA(),o.qZA(),o.TgZ(5,"span",10),o._uU(6),o.ALo(7,"number"),o.qZA(),o.qZA()),2&Ke){const ve=o.oxw(2);o.xp6(6),o.Oqu(o.lcZ(7,1,null==ve.quote?null:ve.quote.prepay_amt_sat))}}function p(Ke,mt){1&Ke&&o._UZ(0,"mat-divider",13)}function u(Ke,mt){if(1&Ke&&(o.TgZ(0,"div",6),o.TgZ(1,"div",21),o.TgZ(2,"h4",8),o._uU(3," Swap Server Node Pubkey "),o.TgZ(4,"mat-icon",22),o._uU(5,"info_outline"),o.qZA(),o.qZA(),o.TgZ(6,"span",10),o._uU(7),o.qZA(),o.qZA(),o.qZA()),2&Ke){const ve=o.oxw(2);o.xp6(7),o.Oqu(null==ve.quote?null:ve.quote.swap_payment_dest)}}function _(Ke,mt){if(1&Ke&&(o.TgZ(0,"div",5),o.TgZ(1,"div",6),o.TgZ(2,"div",7),o.TgZ(3,"h4",8),o._uU(4," Swap Fee (Sats) "),o.TgZ(5,"mat-icon",9),o._uU(6,"info_outline"),o.qZA(),o.qZA(),o.TgZ(7,"span",10),o._uU(8),o.ALo(9,"number"),o.qZA(),o.qZA(),o.TgZ(10,"div",7),o.TgZ(11,"h4",8),o._uU(12),o.TgZ(13,"mat-icon",11),o._uU(14,"info_outline"),o.qZA(),o.qZA(),o.TgZ(15,"span",10),o._uU(16),o.ALo(17,"number"),o.qZA(),o.qZA(),o.YNc(18,a,8,3,"div",12),o.qZA(),o._UZ(19,"mat-divider",13),o.TgZ(20,"div",6),o.TgZ(21,"div",14),o.TgZ(22,"h4",8),o._uU(23," Max Off-chain Swap Routing Fee (Sats) "),o.TgZ(24,"mat-icon",15),o._uU(25,"info_outline"),o.qZA(),o.qZA(),o.TgZ(26,"span",10),o._uU(27),o.ALo(28,"number"),o.qZA(),o.qZA(),o.TgZ(29,"div",14),o.TgZ(30,"h4",8),o._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),o.TgZ(32,"mat-icon",16),o._uU(33,"info_outline"),o.qZA(),o.qZA(),o.TgZ(34,"span",10),o._uU(35,"36"),o.qZA(),o.qZA(),o.qZA(),o.YNc(36,p,1,0,"mat-divider",17),o.YNc(37,u,8,1,"div",18),o.qZA()),2&Ke){const ve=o.oxw();o.xp6(2),o.Q6J("fxFlex",null!=ve.quote&&ve.quote.prepay_amt_sat?"30":"50"),o.xp6(6),o.Oqu(o.lcZ(9,9,null==ve.quote?null:ve.quote.swap_fee_sat)),o.xp6(2),o.Q6J("fxFlex",null!=ve.quote&&ve.quote.prepay_amt_sat?"35":"50"),o.xp6(2),o.hij(" ",null!=ve.quote&&ve.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=ve.quote&&ve.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),o.xp6(4),o.Oqu(o.lcZ(17,11,null!=ve.quote&&ve.quote.htlc_sweep_fee_sat?ve.quote.htlc_sweep_fee_sat:null!=ve.quote&&ve.quote.htlc_publish_fee_sat?ve.quote.htlc_publish_fee_sat:0)),o.xp6(2),o.Q6J("ngIf",null==ve.quote?null:ve.quote.prepay_amt_sat),o.xp6(9),o.Oqu(o.lcZ(28,13,(null==ve.quote?null:ve.quote.amount)*((null!=ve.quote&&ve.quote.off_chain_swap_routing_fee_percentage?null==ve.quote?null:ve.quote.off_chain_swap_routing_fee_percentage:2)/100))),o.xp6(9),o.Q6J("ngIf",""!==(null==ve.quote?null:ve.quote.swap_payment_dest)),o.xp6(1),o.Q6J("ngIf",""!==(null==ve.quote?null:ve.quote.swap_payment_dest))}}let D=(()=>{class Ke{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=o.Xpm({type:Ke,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["informationBlock",""],["quoteDetailsBlock",""],["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded","ngClass"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],[3,"fxFlex"],["fxLayoutAlign","start center",1,"font-bold-500"],["matTooltip","Estimated fee charged by the loop server for the swap",1,"info-icon","info-icon-text"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",1,"info-icon","info-icon-text"],["fxFlex","35",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","50"],["matTooltip","Maximum off-chain fee that may be paid for routing the payment amount to the server",1,"info-icon","info-icon-text"],["matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server","matTooltipPosition","before",1,"info-icon","info-icon-text"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","35"],["matTooltip","The part of the swap fee that is requested as a prepayment","matTooltipPosition","before",1,"info-icon","info-icon-text"],["fxFlex","100"],["matTooltip","The node pubkey, where the swap payments will be sent",1,"info-icon","info-icon-text"]],template:function(ve,qe){if(1&ve&&(o.YNc(0,re,1,0,"ng-container",0),o.YNc(1,i,7,9,"ng-template",null,1,o.W1O),o.YNc(3,_,38,15,"ng-template",null,2,o.W1O)),2&ve){const _t=o.MAs(2),ue=o.MAs(4);o.Q6J("ngTemplateOutlet",qe.showPanel?_t:ue)}},directives:[A.tP,ee.ib,V.yH,A.mk,me.oO,ee.yz,ee.yK,V.Wh,V.xw,ce.Hw,le.gM,A.O5,te.d],pipes:[A.JJ],styles:[""]}),Ke})();var I=m(7322),x=m(7531),r=m(3390),b=m(2368),Z=m(9814),P=m(5899);function U(Ke,mt){1&Ke&&o.GkF(0)}function ye(Ke,mt){if(1&Ke&&(o.TgZ(0,"div",3),o.TgZ(1,"span",4),o._uU(2),o.qZA(),o.qZA()),2&Ke){const ve=o.oxw();o.xp6(2),o.Oqu(null!=ve.loopStatus&&ve.loopStatus.error?null==ve.loopStatus?null:ve.loopStatus.error:"Unknown Error.")}}function xe(Ke,mt){if(1&Ke&&(o.TgZ(0,"div",3),o.TgZ(1,"div",5),o.TgZ(2,"div",6),o.TgZ(3,"h4",7),o._uU(4,"ID"),o.qZA(),o.TgZ(5,"span",4),o._uU(6),o.qZA(),o.qZA(),o.qZA(),o._UZ(7,"mat-divider",8),o.TgZ(8,"div",5),o.TgZ(9,"div",6),o.TgZ(10,"h4",7),o._uU(11,"HTLC Address"),o.qZA(),o.TgZ(12,"span",4),o._uU(13),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&Ke){const ve=o.oxw();o.xp6(6),o.Oqu(null==ve.loopStatus?null:ve.loopStatus.id_bytes),o.xp6(7),o.Oqu(null==ve.loopStatus?null:ve.loopStatus.htlc_address)}}let Ne=(()=>{class Ke{constructor(){}}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=o.Xpm({type:Ke,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},decls:5,vars:1,consts:[[4,"ngTemplateOutlet"],["loopFailedBlock",""],["loopSuccessfulBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(ve,qe){if(1&ve&&(o.YNc(0,U,1,0,"ng-container",0),o.YNc(1,ye,3,1,"ng-template",null,1,o.W1O),o.YNc(3,xe,14,2,"ng-template",null,2,o.W1O)),2&ve){const _t=o.MAs(2),ue=o.MAs(4);o.Q6J("ngTemplateOutlet",null!=qe.loopStatus&&qe.loopStatus.error?_t:ue)}},directives:[A.tP,V.xw,V.yH,V.Wh,te.d],styles:[""]}),Ke})();var Be=m(113);function Oe(Ke,mt){1&Ke&&o.GkF(0)}const B=function(Ke,mt){return{"small-svg":Ke,"large-svg":mt}};function Me(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(_t){return o.CHM(ve),o.oxw().onSwipe(_t)}),o.O4$(),o.TgZ(1,"svg",7),o.TgZ(2,"desc"),o._uU(3,"Created with Sketch."),o.qZA(),o.TgZ(4,"g",8),o.TgZ(5,"g",9),o.TgZ(6,"g",10),o.TgZ(7,"g",11),o._UZ(8,"circle",12),o._UZ(9,"path",13),o.qZA(),o.TgZ(10,"g",14),o._UZ(11,"ellipse",15),o._UZ(12,"ellipse",16),o._UZ(13,"rect",17),o._UZ(14,"rect",18),o._UZ(15,"rect",19),o._UZ(16,"rect",20),o._UZ(17,"rect",21),o._UZ(18,"rect",22),o._UZ(19,"rect",23),o._UZ(20,"rect",24),o._UZ(21,"rect",25),o._UZ(22,"rect",26),o._UZ(23,"rect",27),o._UZ(24,"rect",28),o._UZ(25,"rect",29),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.kcU(),o.TgZ(26,"div",30),o.TgZ(27,"mat-card-title"),o._uU(28,"Loop Out explained."),o.qZA(),o.qZA(),o.TgZ(29,"div",31),o.TgZ(30,"mat-card-subtitle",32),o._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),o.qZA(),o.qZA(),o.qZA()}if(2&Ke){const ve=o.oxw();o.Q6J("@sliderAnimation",ve.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,B,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function we(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(_t){return o.CHM(ve),o.oxw().onSwipe(_t)}),o.O4$(),o.TgZ(1,"svg",33),o.TgZ(2,"desc"),o._uU(3,"Created with Sketch."),o.qZA(),o.TgZ(4,"defs"),o.TgZ(5,"linearGradient",34),o._UZ(6,"stop",35),o._UZ(7,"stop",36),o._UZ(8,"stop",37),o.qZA(),o.qZA(),o.TgZ(9,"g",8),o.TgZ(10,"g",38),o.TgZ(11,"g",39),o.TgZ(12,"g",40),o.TgZ(13,"g",41),o.TgZ(14,"g",42),o._UZ(15,"rect",43),o._UZ(16,"rect",44),o._UZ(17,"rect",45),o._UZ(18,"circle",46),o._UZ(19,"rect",47),o._UZ(20,"rect",48),o._UZ(21,"circle",49),o._UZ(22,"rect",50),o._UZ(23,"rect",51),o._UZ(24,"rect",52),o._UZ(25,"rect",53),o._UZ(26,"circle",54),o._UZ(27,"circle",55),o.qZA(),o.TgZ(28,"g",56),o._UZ(29,"path",57),o._UZ(30,"rect",58),o._UZ(31,"polygon",59),o._UZ(32,"circle",60),o._UZ(33,"path",61),o._UZ(34,"rect",62),o._UZ(35,"rect",63),o._UZ(36,"rect",64),o._UZ(37,"rect",65),o._UZ(38,"rect",66),o._UZ(39,"rect",67),o._UZ(40,"rect",68),o._UZ(41,"path",69),o._UZ(42,"path",70),o.qZA(),o._UZ(43,"path",71),o.qZA(),o.qZA(),o._UZ(44,"circle",72),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.kcU(),o.TgZ(45,"div",30),o.TgZ(46,"mat-card-title"),o._uU(47,"Step 1: Deciding to Loop Out"),o.qZA(),o.qZA(),o.TgZ(48,"div",31),o.TgZ(49,"mat-card-subtitle",32),o._uU(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),o.qZA(),o.qZA(),o.qZA()}if(2&Ke){const ve=o.oxw();o.Q6J("@sliderAnimation",ve.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,B,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function ae(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(_t){return o.CHM(ve),o.oxw().onSwipe(_t)}),o.O4$(),o.TgZ(1,"svg",73),o.TgZ(2,"desc"),o._uU(3,"Created with Sketch."),o.qZA(),o.TgZ(4,"defs"),o.TgZ(5,"linearGradient",74),o._UZ(6,"stop",35),o._UZ(7,"stop",36),o._UZ(8,"stop",37),o.qZA(),o.qZA(),o.TgZ(9,"g",8),o.TgZ(10,"g",75),o.TgZ(11,"g",76),o._UZ(12,"circle",77),o._UZ(13,"path",78),o.TgZ(14,"g",79),o._UZ(15,"polygon",80),o._UZ(16,"polygon",81),o._UZ(17,"path",82),o.qZA(),o.TgZ(18,"g",83),o._UZ(19,"polygon",84),o._UZ(20,"path",85),o._UZ(21,"rect",86),o._UZ(22,"path",87),o._UZ(23,"rect",88),o._UZ(24,"rect",89),o._UZ(25,"rect",90),o._UZ(26,"rect",91),o._UZ(27,"circle",92),o._UZ(28,"path",93),o.TgZ(29,"g",94),o.TgZ(30,"g",95),o._UZ(31,"g",96),o.qZA(),o._UZ(32,"g",97),o.qZA(),o._UZ(33,"path",98),o.qZA(),o.TgZ(34,"g",99),o.TgZ(35,"g",41),o.TgZ(36,"g",42),o._UZ(37,"rect",43),o._UZ(38,"rect",44),o._UZ(39,"rect",45),o._UZ(40,"circle",46),o._UZ(41,"rect",47),o._UZ(42,"rect",48),o._UZ(43,"circle",49),o._UZ(44,"rect",50),o._UZ(45,"rect",51),o._UZ(46,"rect",52),o._UZ(47,"rect",53),o._UZ(48,"circle",100),o._UZ(49,"circle",54),o._UZ(50,"circle",55),o._UZ(51,"circle",101),o.qZA(),o.TgZ(52,"g",56),o._UZ(53,"path",57),o._UZ(54,"rect",102),o._UZ(55,"polygon",103),o._UZ(56,"circle",104),o._UZ(57,"path",61),o._UZ(58,"rect",105),o._UZ(59,"rect",106),o._UZ(60,"rect",107),o._UZ(61,"rect",108),o._UZ(62,"rect",109),o._UZ(63,"rect",110),o._UZ(64,"rect",68),o._UZ(65,"path",69),o._UZ(66,"path",70),o.qZA(),o._UZ(67,"path",111),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.kcU(),o.TgZ(68,"div",30),o.TgZ(69,"mat-card-title"),o._uU(70,"Step 2: Send lightning payment"),o.qZA(),o.qZA(),o.TgZ(71,"div",31),o.TgZ(72,"mat-card-subtitle",32),o._uU(73," Your node pays a lightning invoice for the amount requested via the loop service. This moves the local balance, for the amount paid, to the remote side of the channel. "),o.qZA(),o.qZA(),o.qZA()}if(2&Ke){const ve=o.oxw();o.Q6J("@sliderAnimation",ve.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,B,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function We(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(_t){return o.CHM(ve),o.oxw().onSwipe(_t)}),o.O4$(),o.TgZ(1,"svg",112),o.TgZ(2,"desc"),o._uU(3,"Created with Sketch."),o.qZA(),o.TgZ(4,"g",8),o.TgZ(5,"g",113),o.TgZ(6,"g",114),o.TgZ(7,"g",115),o.TgZ(8,"g",116),o._UZ(9,"circle",12),o._UZ(10,"path",117),o.qZA(),o.TgZ(11,"g",14),o._UZ(12,"ellipse",118),o._UZ(13,"ellipse",16),o._UZ(14,"rect",17),o._UZ(15,"rect",18),o._UZ(16,"rect",19),o._UZ(17,"rect",20),o._UZ(18,"rect",21),o._UZ(19,"rect",22),o._UZ(20,"rect",23),o._UZ(21,"rect",24),o._UZ(22,"rect",25),o._UZ(23,"rect",26),o._UZ(24,"rect",27),o._UZ(25,"rect",28),o._UZ(26,"rect",29),o.qZA(),o.qZA(),o.TgZ(27,"g",119),o._UZ(28,"polygon",80),o._UZ(29,"polygon",120),o._UZ(30,"path",82),o.qZA(),o.TgZ(31,"g",121),o._UZ(32,"polygon",84),o._UZ(33,"path",85),o._UZ(34,"rect",86),o._UZ(35,"path",87),o._UZ(36,"rect",88),o._UZ(37,"rect",89),o._UZ(38,"rect",90),o._UZ(39,"rect",91),o._UZ(40,"circle",122),o._UZ(41,"path",93),o.TgZ(42,"g",94),o.TgZ(43,"g",95),o._UZ(44,"g",96),o.qZA(),o._UZ(45,"g",97),o.qZA(),o._UZ(46,"path",123),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.kcU(),o.TgZ(47,"div",30),o.TgZ(48,"mat-card-title"),o._uU(49,"Step 3: Receive funds back"),o.qZA(),o.qZA(),o.TgZ(50,"div",31),o.TgZ(51,"mat-card-subtitle",32),o._uU(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),o.qZA(),o.qZA(),o.qZA()}if(2&Ke){const ve=o.oxw();o.Q6J("@sliderAnimation",ve.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,B,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function vt(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(_t){return o.CHM(ve),o.oxw().onSwipe(_t)}),o.O4$(),o.TgZ(1,"svg",124),o.TgZ(2,"desc"),o._uU(3,"Created with Sketch."),o.qZA(),o.TgZ(4,"defs"),o.TgZ(5,"linearGradient",34),o._UZ(6,"stop",35),o._UZ(7,"stop",36),o._UZ(8,"stop",37),o.qZA(),o.qZA(),o.TgZ(9,"g",8),o.TgZ(10,"g",125),o.TgZ(11,"g",126),o.TgZ(12,"g",42),o._UZ(13,"rect",127),o._UZ(14,"rect",128),o._UZ(15,"rect",129),o._UZ(16,"circle",130),o._UZ(17,"rect",131),o._UZ(18,"rect",132),o._UZ(19,"circle",133),o._UZ(20,"rect",134),o._UZ(21,"rect",135),o._UZ(22,"rect",136),o._UZ(23,"rect",137),o._UZ(24,"rect",138),o._UZ(25,"circle",139),o._UZ(26,"circle",140),o._UZ(27,"circle",141),o.qZA(),o.TgZ(28,"g",142),o.TgZ(29,"g",143),o.TgZ(30,"g",144),o._UZ(31,"path",145),o._UZ(32,"rect",146),o._UZ(33,"polygon",147),o.TgZ(34,"g",148),o._UZ(35,"path",149),o.qZA(),o._UZ(36,"rect",150),o._UZ(37,"rect",151),o._UZ(38,"rect",152),o._UZ(39,"rect",153),o._UZ(40,"rect",154),o._UZ(41,"rect",155),o._UZ(42,"rect",156),o._UZ(43,"path",157),o._UZ(44,"path",158),o.qZA(),o.TgZ(45,"g",159),o._UZ(46,"path",160),o._UZ(47,"path",161),o._UZ(48,"path",162),o._UZ(49,"path",163),o._UZ(50,"path",164),o._UZ(51,"path",165),o._UZ(52,"path",166),o._UZ(53,"path",167),o._UZ(54,"path",168),o._UZ(55,"path",169),o._UZ(56,"path",170),o._UZ(57,"circle",171),o._UZ(58,"circle",172),o.qZA(),o._UZ(59,"path",173),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.kcU(),o.TgZ(60,"div",30),o.TgZ(61,"mat-card-title"),o._uU(62,"Done!"),o.qZA(),o.qZA(),o.TgZ(63,"div",31),o.TgZ(64,"mat-card-subtitle",32),o._uU(65," Final settlement occurs when your node sweeps the on-chain payment and the loop server settles the lightning invoice. You receive the payment on-chain in your wallet and also move local balance to the remote side of the channel, gaining inbound capacity. "),o.qZA(),o.qZA(),o.qZA()}if(2&Ke){const ve=o.oxw();o.Q6J("@sliderAnimation",ve.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,B,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}let Pe=(()=>{class Ke{constructor(ve){this.commonService=ve,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new o.vpe,this.screenSize="",this.screenSizeEnum=c.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(ve){2===ve.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===ve.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(o.Y36(w.v))},Ke.\u0275cmp=o.Xpm({type:Ke,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopOut_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopOut_Step02","transform","translate(-540.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(540.000000, 210.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["fxFlex","30","viewBox","0 0 373 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","LoopOut_Step03","transform","translate(-460.000000, -210.000000)"],["id","Loop_Step03","transform","translate(460.000000, 210.000000)"],["id","Oval","fill-rule","nonzero","cx","330.487742","cy","57.4877419","r","42.4877419",1,"fill-color-2"],["d","M345.082742,43.5000036 C349.446821,43.5000036 352.999928,40.1343958 352.999928,36.0000215 C352.999928,31.8656472 349.446821,28.5000393 345.082742,28.5000393 C341.98433,28.5000393 339.560889,30.4359631 337.999964,32.1843872 C336.43904,30.4359631 334.015599,28.5000393 330.917187,28.5000393 C326.553107,28.5000393 323,31.8656472 323,36.0000215 C323,40.1343958 326.553107,43.5000036 330.917187,43.5000036 C334.015599,43.5000036 336.43904,41.5640798 337.999964,39.8156557 C339.560889,41.5640798 341.98433,43.5000036 345.082742,43.5000036 Z M330.917187,39.0000143 C329.032807,39.0000143 327.499989,37.6546959 327.499989,36.0000286 C327.499989,34.3453471 329.032807,33.0000286 330.917187,33.0000286 C332.707771,33.0000286 334.357776,34.6921938 335.323426,36.0000286 C334.36716,37.2937501 332.703102,39.0000143 330.917187,39.0000143 Z M345.082742,39.0000143 C343.292157,39.0000143 341.642152,37.3078492 340.676502,36.0000286 C341.632768,34.7062929 343.296827,33.0000286 345.082742,33.0000286 C346.967121,33.0000286 348.499939,34.3453471 348.499939,36.0000286 C348.499939,37.6546959 346.967121,39.0000143 345.082742,39.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(113.000000, 79.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-22"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(265.000000, 50.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-3"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["d","M46.60483,51.432122 C46.8713708,51.432122 47.1252368,51.2924832 47.2648756,51.0513229 L52.8499289,41.4044125 C53.145042,40.8998413 52.7801095,40.2620153 52.1930443,40.2620153 L48.5310139,40.2620153 L49.8828693,36.1430446 C50.0098023,35.6606929 49.6448699,35.184694 49.1466515,35.184694 L44.5770624,35.184694 C44.1962633,35.184694 43.8725779,35.4671324 43.8218171,35.8447396 L42.8063528,43.4607214 C42.7460473,43.9176927 43.1014659,44.3238722 43.5615982,44.3238722 L47.3283421,44.3238722 L45.8654203,50.4959909 C45.751193,50.9783426 46.1192864,51.432122 46.60483,51.432122 Z","id","b","fill-rule","nonzero","transform","translate(47.877046, 43.308408) rotate(14.000000) translate(-47.877046, -43.308408) ",1,"fill-color-12"],["id","Group-34","fill-rule","nonzero"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","17.5648113","r","8.78679245"],["id","Oval","cx","76.317438","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-8"],["id","Path","opacity","0.222721354","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-18"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-8"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-14"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step04","transform","translate(-503.000000, -212.000000)"],["id","Loop_Step04","transform","translate(503.000000, 212.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M46.519593,50.6740439 L46.519593,48.5460252 C46.9395628,48.5560039 47.349554,48.5560039 47.739557,48.5560039 L47.739557,50.6740439 L49.2794877,50.6740439 L49.2794877,48.5160274 C51.8593644,48.3760168 53.5840235,47.7260428 53.8140277,45.2961554 C53.9939838,43.3462645 53.0739982,42.476265 51.6140824,42.1263004 C52.4940295,41.6763328 53.054041,40.8763386 52.92404,39.5463928 C52.7540005,37.7264719 51.2593765,37.1164744 49.2794567,36.9465279 L49.2794567,34.4266159 L47.739526,34.4266159 L47.739526,36.8765226 C47.3395134,36.8765226 46.9295222,36.8865012 46.519562,36.8965108 L46.519562,34.4266159 L44.9796003,34.4266159 L44.9796003,36.9465279 C44.413422,36.9636341 43.7539962,36.9552669 41.8897293,36.9465279 L41.8897293,38.5864308 C43.1055717,38.564924 43.7434908,38.4867995 43.8896683,39.2663716 L43.8896683,46.1661239 C43.7968547,46.7846435 43.3018283,46.6955796 42.1997174,46.6760872 L41.8897293,48.5060178 C44.6975648,48.5060178 44.9796313,48.5160274 44.9796313,48.5160274 L44.9796313,50.6740439 L46.519593,50.6740439 Z M46.5495908,41.7662953 L46.5495908,38.6964125 C47.4195593,38.6964125 50.1394466,38.4264629 50.1394466,40.2363742 C50.1394466,41.9663016 47.4195903,41.7662953 46.5495908,41.7662953 Z M46.5495908,46.6860969 L46.5495908,43.306257 C47.5895368,43.306257 50.7741427,43.0162572 50.7741427,44.9962079 C50.7741427,46.9060914 47.5895368,46.6860969 46.5495908,46.6860969 Z","id","B","fill-rule","nonzero","transform","translate(47.863077, 42.550330) rotate(14.000000) translate(-47.863077, -42.550330) ",1,"fill-color-29"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step05","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step05","transform","translate(542.000000, 210.000000)"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"]],template:function(ve,qe){if(1&ve&&(o.YNc(0,Oe,1,0,"ng-container",0),o.YNc(1,Me,32,5,"ng-template",null,1,o.W1O),o.YNc(3,we,51,5,"ng-template",null,2,o.W1O),o.YNc(5,ae,74,5,"ng-template",null,3,o.W1O),o.YNc(7,We,53,5,"ng-template",null,4,o.W1O),o.YNc(9,vt,66,5,"ng-template",null,5,o.W1O)),2&ve){const _t=o.MAs(2),ue=o.MAs(4),$e=o.MAs(6),St=o.MAs(8),Rt=o.MAs(10);o.Q6J("ngTemplateOutlet",1===qe.stepNumber?_t:2===qe.stepNumber?ue:3===qe.stepNumber?$e:4===qe.stepNumber?St:Rt)}},directives:[A.tP,V.xw,V.yH,V.Wh,A.mk,me.oO,W.n5,W.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Be.l]}}),Ke})();function Ve(Ke,mt){1&Ke&&o.GkF(0)}const he=function(Ke,mt){return{"small-svg":Ke,"large-svg":mt}};function Ee(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(_t){return o.CHM(ve),o.oxw().onSwipe(_t)}),o.O4$(),o.TgZ(1,"svg",7),o.TgZ(2,"desc"),o._uU(3,"Created with Sketch."),o.qZA(),o.TgZ(4,"g",8),o.TgZ(5,"g",9),o.TgZ(6,"g",10),o.TgZ(7,"g",11),o._UZ(8,"circle",12),o._UZ(9,"path",13),o.qZA(),o.TgZ(10,"g",14),o._UZ(11,"ellipse",15),o._UZ(12,"ellipse",16),o._UZ(13,"rect",17),o._UZ(14,"rect",18),o._UZ(15,"rect",19),o._UZ(16,"rect",20),o._UZ(17,"rect",21),o._UZ(18,"rect",22),o._UZ(19,"rect",23),o._UZ(20,"rect",24),o._UZ(21,"rect",25),o._UZ(22,"rect",26),o._UZ(23,"rect",27),o._UZ(24,"rect",28),o._UZ(25,"rect",29),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.kcU(),o.TgZ(26,"div",30),o.TgZ(27,"mat-card-title"),o._uU(28,"Loop In explained."),o.qZA(),o.qZA(),o.TgZ(29,"div",31),o.TgZ(30,"mat-card-subtitle",32),o._uU(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),o.qZA(),o.qZA(),o.qZA()}if(2&Ke){const ve=o.oxw();o.Q6J("@sliderAnimation",ve.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function ke(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(_t){return o.CHM(ve),o.oxw().onSwipe(_t)}),o.O4$(),o.TgZ(1,"svg",33),o.TgZ(2,"desc"),o._uU(3,"Created with Sketch."),o.qZA(),o.TgZ(4,"defs"),o.TgZ(5,"linearGradient",34),o._UZ(6,"stop",35),o._UZ(7,"stop",36),o._UZ(8,"stop",37),o.qZA(),o.qZA(),o.TgZ(9,"g",8),o.TgZ(10,"g",38),o.TgZ(11,"g",39),o.TgZ(12,"g",40),o._UZ(13,"rect",41),o._UZ(14,"rect",42),o._UZ(15,"rect",43),o._UZ(16,"circle",44),o._UZ(17,"rect",45),o._UZ(18,"rect",46),o._UZ(19,"circle",47),o._UZ(20,"rect",48),o._UZ(21,"rect",49),o._UZ(22,"rect",50),o._UZ(23,"rect",51),o._UZ(24,"rect",52),o._UZ(25,"circle",53),o._UZ(26,"circle",54),o._UZ(27,"circle",55),o.qZA(),o.TgZ(28,"g",56),o.TgZ(29,"g",57),o.TgZ(30,"g",58),o._UZ(31,"path",59),o._UZ(32,"rect",60),o._UZ(33,"polygon",61),o.TgZ(34,"g",62),o._UZ(35,"path",63),o.qZA(),o._UZ(36,"rect",64),o._UZ(37,"rect",65),o._UZ(38,"rect",66),o._UZ(39,"rect",67),o._UZ(40,"rect",68),o._UZ(41,"rect",69),o._UZ(42,"rect",70),o._UZ(43,"path",71),o._UZ(44,"path",72),o.qZA(),o.TgZ(45,"g",73),o._UZ(46,"path",74),o._UZ(47,"path",75),o._UZ(48,"path",76),o._UZ(49,"path",77),o._UZ(50,"path",78),o._UZ(51,"path",79),o._UZ(52,"path",80),o._UZ(53,"path",81),o._UZ(54,"path",82),o._UZ(55,"path",83),o._UZ(56,"path",84),o._UZ(57,"circle",85),o._UZ(58,"circle",86),o.qZA(),o._UZ(59,"path",87),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.kcU(),o.TgZ(60,"div",30),o.TgZ(61,"mat-card-title"),o._uU(62,"Step 1: Deciding to Loop In"),o.qZA(),o.qZA(),o.TgZ(63,"div",31),o.TgZ(64,"mat-card-subtitle",32),o._uU(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),o.qZA(),o.qZA(),o.qZA()}if(2&Ke){const ve=o.oxw();o.Q6J("@sliderAnimation",ve.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function q(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(_t){return o.CHM(ve),o.oxw().onSwipe(_t)}),o.O4$(),o.TgZ(1,"svg",88),o.TgZ(2,"desc"),o._uU(3,"Created with Sketch."),o.qZA(),o.TgZ(4,"defs"),o.TgZ(5,"linearGradient",89),o._UZ(6,"stop",35),o._UZ(7,"stop",36),o._UZ(8,"stop",37),o.qZA(),o.qZA(),o.TgZ(9,"g",90),o.TgZ(10,"g",91),o.TgZ(11,"g",92),o.TgZ(12,"g",93),o.TgZ(13,"g",94),o._UZ(14,"circle",95),o._UZ(15,"path",96),o.TgZ(16,"g",97),o._UZ(17,"polygon",98),o._UZ(18,"polygon",99),o._UZ(19,"path",100),o.qZA(),o.TgZ(20,"g",101),o._UZ(21,"polygon",102),o._UZ(22,"path",103),o._UZ(23,"rect",104),o._UZ(24,"path",105),o._UZ(25,"rect",106),o._UZ(26,"rect",107),o._UZ(27,"rect",108),o._UZ(28,"rect",109),o._UZ(29,"circle",110),o._UZ(30,"path",111),o.TgZ(31,"g",112),o.TgZ(32,"g",113),o._UZ(33,"g",114),o.qZA(),o._UZ(34,"g",115),o.qZA(),o.qZA(),o.qZA(),o.TgZ(35,"g",116),o.TgZ(36,"g",40),o._UZ(37,"rect",117),o._UZ(38,"rect",42),o._UZ(39,"rect",43),o._UZ(40,"circle",118),o._UZ(41,"rect",45),o._UZ(42,"rect",46),o._UZ(43,"circle",119),o._UZ(44,"rect",48),o._UZ(45,"rect",49),o._UZ(46,"rect",50),o._UZ(47,"rect",51),o._UZ(48,"rect",52),o._UZ(49,"circle",120),o._UZ(50,"circle",54),o._UZ(51,"circle",55),o._UZ(52,"circle",121),o.qZA(),o.TgZ(53,"g",56),o.TgZ(54,"g",57),o.TgZ(55,"g",58),o._UZ(56,"path",59),o._UZ(57,"rect",60),o._UZ(58,"polygon",61),o.TgZ(59,"g",122),o._UZ(60,"path",63),o.qZA(),o._UZ(61,"rect",123),o._UZ(62,"rect",124),o._UZ(63,"rect",125),o._UZ(64,"rect",126),o._UZ(65,"rect",127),o._UZ(66,"rect",128),o._UZ(67,"rect",129),o._UZ(68,"path",130),o._UZ(69,"path",72),o.qZA(),o.TgZ(70,"g",73),o._UZ(71,"path",131),o._UZ(72,"path",132),o._UZ(73,"path",133),o._UZ(74,"path",134),o._UZ(75,"path",135),o._UZ(76,"path",136),o._UZ(77,"path",80),o._UZ(78,"path",81),o._UZ(79,"path",137),o._UZ(80,"path",83),o._UZ(81,"path",138),o._UZ(82,"circle",85),o._UZ(83,"circle",86),o.qZA(),o._UZ(84,"path",139),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o._UZ(85,"path",140),o._UZ(86,"path",141),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.kcU(),o.TgZ(87,"div",30),o.TgZ(88,"mat-card-title"),o._uU(89,"Step 2: Send payment out"),o.qZA(),o.qZA(),o.TgZ(90,"div",31),o.TgZ(91,"mat-card-subtitle",32),o._uU(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),o.qZA(),o.qZA(),o.qZA()}if(2&Ke){const ve=o.oxw();o.Q6J("@sliderAnimation",ve.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function J(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(_t){return o.CHM(ve),o.oxw().onSwipe(_t)}),o.O4$(),o.TgZ(1,"svg",142),o.TgZ(2,"desc"),o._uU(3,"Created with Sketch."),o.qZA(),o.TgZ(4,"g",90),o.TgZ(5,"g",143),o.TgZ(6,"g",144),o.TgZ(7,"g"),o.TgZ(8,"g",145),o.TgZ(9,"g",146),o._UZ(10,"circle",12),o._UZ(11,"path",147),o.qZA(),o.TgZ(12,"g",14),o._UZ(13,"ellipse",148),o._UZ(14,"ellipse",16),o._UZ(15,"rect",17),o._UZ(16,"rect",18),o._UZ(17,"rect",19),o._UZ(18,"rect",20),o._UZ(19,"rect",21),o._UZ(20,"rect",22),o._UZ(21,"rect",23),o._UZ(22,"rect",24),o._UZ(23,"rect",25),o._UZ(24,"rect",26),o._UZ(25,"rect",27),o._UZ(26,"rect",28),o._UZ(27,"rect",29),o.qZA(),o.qZA(),o.TgZ(28,"g",149),o._UZ(29,"polygon",150),o._UZ(30,"polygon",99),o._UZ(31,"path",151),o.qZA(),o.TgZ(32,"g",152),o._UZ(33,"polygon",102),o._UZ(34,"path",103),o._UZ(35,"rect",104),o._UZ(36,"path",105),o._UZ(37,"rect",106),o._UZ(38,"rect",107),o._UZ(39,"rect",108),o._UZ(40,"rect",109),o._UZ(41,"circle",110),o._UZ(42,"path",111),o.TgZ(43,"g",112),o.TgZ(44,"g",113),o._UZ(45,"g",114),o.qZA(),o._UZ(46,"g",115),o.qZA(),o.qZA(),o.qZA(),o._UZ(47,"path",153),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.kcU(),o.TgZ(48,"div",30),o.TgZ(49,"mat-card-title"),o._uU(50,"Step 3: Recieve Funds Off-chain"),o.qZA(),o.qZA(),o.TgZ(51,"div",31),o.TgZ(52,"mat-card-subtitle",32),o._uU(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),o.qZA(),o.qZA(),o.qZA()}if(2&Ke){const ve=o.oxw();o.Q6J("@sliderAnimation",ve.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function oe(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(_t){return o.CHM(ve),o.oxw().onSwipe(_t)}),o.O4$(),o.TgZ(1,"svg",154),o.TgZ(2,"desc"),o._uU(3,"Created with Sketch."),o.qZA(),o.TgZ(4,"defs"),o.TgZ(5,"linearGradient",34),o._UZ(6,"stop",35),o._UZ(7,"stop",36),o._UZ(8,"stop",37),o.qZA(),o.qZA(),o.TgZ(9,"g",90),o.TgZ(10,"g",155),o.TgZ(11,"g",156),o.TgZ(12,"g",157),o.TgZ(13,"g",158),o.TgZ(14,"g",40),o._UZ(15,"rect",159),o._UZ(16,"rect",160),o._UZ(17,"rect",161),o._UZ(18,"circle",162),o._UZ(19,"rect",163),o._UZ(20,"rect",164),o._UZ(21,"circle",165),o._UZ(22,"rect",166),o._UZ(23,"rect",167),o._UZ(24,"rect",168),o._UZ(25,"rect",169),o._UZ(26,"circle",170),o._UZ(27,"circle",171),o.qZA(),o.TgZ(28,"g",172),o._UZ(29,"path",173),o._UZ(30,"rect",174),o._UZ(31,"polygon",175),o._UZ(32,"circle",176),o._UZ(33,"path",177),o._UZ(34,"rect",178),o._UZ(35,"rect",179),o._UZ(36,"rect",180),o._UZ(37,"rect",181),o._UZ(38,"rect",182),o._UZ(39,"rect",183),o._UZ(40,"rect",184),o._UZ(41,"path",185),o._UZ(42,"path",186),o.qZA(),o._UZ(43,"path",187),o.qZA(),o.qZA(),o._UZ(44,"circle",188),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.kcU(),o.TgZ(45,"div",30),o.TgZ(46,"mat-card-title"),o._uU(47,"Done!"),o.qZA(),o.qZA(),o.TgZ(48,"div",31),o.TgZ(49,"mat-card-subtitle",32),o._uU(50," You send the payment on-chain from your wallet and also move remote balance to the local side of the node, gaining outgoing capacity. "),o.qZA(),o.qZA(),o.qZA()}if(2&Ke){const ve=o.oxw();o.Q6J("@sliderAnimation",ve.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,he,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}let Ce=(()=>{class Ke{constructor(ve){this.commonService=ve,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new o.vpe,this.screenSize="",this.screenSizeEnum=c.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(ve){2===ve.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===ve.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(o.Y36(w.v))},Ke.\u0275cmp=o.Xpm({type:Ke,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopIn_Step02","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(542.000000, 210.000000)"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"],["fxFlex","30","viewBox","0 0 364 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","Loopv0.3","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step03","transform","translate(-1127.000000, -164.000000)"],["id","LoopIn_Step03","transform","translate(1127.000000, 164.000000)"],["id","Group-21"],["id","Group-35","transform","translate(107.000000, 10.000000)"],["id","Oval","fill-rule","nonzero","cx","214.487742","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M232.082742,28.5000036 C236.446821,28.5000036 239.999928,25.1343958 239.999928,21.0000215 C239.999928,16.8656472 236.446821,13.5000393 232.082742,13.5000393 C228.98433,13.5000393 226.560889,15.4359631 224.999964,17.1843872 C223.43904,15.4359631 221.015599,13.5000393 217.917187,13.5000393 C213.553107,13.5000393 210,16.8656472 210,21.0000215 C210,25.1343958 213.553107,28.5000036 217.917187,28.5000036 C221.015599,28.5000036 223.43904,26.5640798 224.999964,24.8156557 C226.560889,26.5640798 228.98433,28.5000036 232.082742,28.5000036 Z M217.917187,24.0000143 C216.032807,24.0000143 214.499989,22.6546959 214.499989,21.0000286 C214.499989,19.3453471 216.032807,18.0000286 217.917187,18.0000286 C219.707771,18.0000286 221.357776,19.6921938 222.323426,21.0000286 C221.36716,22.2937501 219.703102,24.0000143 217.917187,24.0000143 Z M232.082742,24.0000143 C230.292157,24.0000143 228.642152,22.3078492 227.676502,21.0000286 C228.632768,19.7062929 230.296827,18.0000286 232.082742,18.0000286 C233.967121,18.0000286 235.499939,19.3453471 235.499939,21.0000286 C235.499939,22.6546959 233.967121,24.0000143 232.082742,24.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(0.000000, 64.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-20"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-20"],["id","Group-43","transform","translate(152.000000, 35.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["id","LoopIn_Step03","fill-rule","nonzero"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-10"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","15.8607624","r","7.93434243"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.35996418",1,"fill-color-31"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-4"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-20"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-20"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-16"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-9"],["d","M93.2292414,91.9116485 L93.2292414,89.7922708 C93.647506,89.8022089 94.0558324,89.8022089 94.4442517,89.8022089 L94.4442517,91.9116485 L95.9779294,91.9116485 L95.9779294,89.7623948 C98.5473303,89.6229527 100.264986,88.975618 100.494057,86.5555973 C100.673282,84.6136241 99.757032,83.7471573 98.3030443,83.3986138 C99.1794183,82.9504733 99.7371558,82.1537275 99.6076827,80.8291821 C99.4383337,79.0166511 97.9497787,78.4091306 95.9778985,78.2398742 L95.9778985,75.7301945 L94.4442208,75.7301945 L94.4442208,78.1701531 C94.0458325,78.1701531 93.6375061,78.1800912 93.2292106,78.1900602 L93.2292106,75.7301945 L91.695502,75.7301945 L91.695502,78.2398742 C91.1316227,78.2569109 90.4748746,78.2485777 88.6181777,78.2398742 L88.6181777,79.8731181 C89.8290831,79.8516987 90.4644118,79.7738914 90.6099957,80.5502979 L90.6099957,87.4220333 C90.517559,88.0380413 90.0245427,87.9493391 88.926907,87.9299259 L88.6181777,89.7524258 L89.5798445,89.7528809 C91.4824304,89.7548325 91.6955329,89.7623948 91.6955329,89.7623948 L91.6955329,91.9116485 L93.2292414,91.9116485 Z M93.2591175,83.0400705 L93.2591175,79.9826533 C94.1255534,79.9826533 96.8343964,79.7137998 96.8343964,81.5163618 C96.8343964,83.2392647 94.1255843,83.0400705 93.2591175,83.0400705 Z M93.2591175,87.9398948 L93.2591175,84.5737791 C94.2948407,84.5737791 97.4665153,84.2849568 97.4665153,86.2568678 C97.4665153,88.1589961 94.2948407,87.9398948 93.2591175,87.9398948 Z","id","b","fill-rule","nonzero","transform","translate(94.567271, 83.820921) rotate(14.000000) translate(-94.567271, -83.820921) ",1,"fill-color-9"],["d","M305.611064,96.181454 L305.611064,94.0620763 C306.029328,94.0720144 306.437655,94.0720144 306.826074,94.0720144 L306.826074,96.181454 L308.359752,96.181454 L308.359752,94.0322003 C310.929153,93.8927582 312.646809,93.2454235 312.875879,90.8254028 C313.055104,88.8834296 312.138854,88.0169628 310.684867,87.6684193 C311.561241,87.2202788 312.118978,86.423533 311.989505,85.0989876 C311.820156,83.2864566 310.331601,82.678936 308.359721,82.5096797 L308.359721,80 L306.826043,80 L306.826043,82.4399586 C306.427655,82.4399586 306.019328,82.4498967 305.611033,82.4598657 L305.611033,80 L304.077324,80 L304.077324,82.5096797 C303.513445,82.5267164 302.856697,82.5183832 301,82.5096797 L301,84.1429236 C302.210905,84.1215042 302.846234,84.0436969 302.991818,84.8201034 L302.991818,91.6918387 C302.899381,92.3078468 302.406365,92.2191446 301.308729,92.1997314 L301,94.0222313 L301.961667,94.0226864 C303.864253,94.024638 304.077355,94.0322003 304.077355,94.0322003 L304.077355,96.181454 L305.611064,96.181454 Z M305.64094,87.309876 L305.64094,84.2524587 C306.507376,84.2524587 309.216219,83.9836053 309.216219,85.7861673 C309.216219,87.5090702 306.507407,87.309876 305.64094,87.309876 Z M305.64094,92.2097003 L305.64094,88.8435846 C306.676663,88.8435846 309.848338,88.5547623 309.848338,90.5266733 C309.848338,92.4288016 306.676663,92.2097003 305.64094,92.2097003 Z","id","b","fill-rule","nonzero","transform","translate(306.949093, 88.090727) rotate(14.000000) translate(-306.949093, -88.090727) ",1,"fill-color-26"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step04","transform","translate(-1799.000000, -756.000000)"],["id","LoopIn_Step04","transform","translate(1799.000000, 756.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["d","M225.805162,92.2474279 C226.071703,92.2474279 226.325569,92.1077892 226.465207,91.8666288 L232.050261,82.2197185 C232.345374,81.7151473 231.980441,81.0773212 231.393376,81.0773212 L227.731346,81.0773212 L229.083201,76.9583506 C229.210134,76.4759989 228.845202,76 228.346983,76 L223.777394,76 C223.396595,76 223.07291,76.2824384 223.022149,76.6600456 L222.006685,84.2760274 C221.946379,84.7329987 222.301798,85.1391782 222.76193,85.1391782 L226.528674,85.1391782 L225.065752,91.3112968 C224.951525,91.7936485 225.319618,92.2474279 225.805162,92.2474279 Z","id","b","fill-rule","nonzero","transform","translate(227.077378, 84.123714) rotate(14.000000) translate(-227.077378, -84.123714) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step05","transform","translate(-2386.000000, -764.000000)","fill-rule","nonzero"],["id","LoopIn_Step05","transform","translate(2386.000000, 764.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"]],template:function(ve,qe){if(1&ve&&(o.YNc(0,Ve,1,0,"ng-container",0),o.YNc(1,Ee,32,5,"ng-template",null,1,o.W1O),o.YNc(3,ke,66,5,"ng-template",null,2,o.W1O),o.YNc(5,q,93,5,"ng-template",null,3,o.W1O),o.YNc(7,J,54,5,"ng-template",null,4,o.W1O),o.YNc(9,oe,51,5,"ng-template",null,5,o.W1O)),2&ve){const _t=o.MAs(2),ue=o.MAs(4),$e=o.MAs(6),St=o.MAs(8),Rt=o.MAs(10);o.Q6J("ngTemplateOutlet",1===qe.stepNumber?_t:2===qe.stepNumber?ue:3===qe.stepNumber?$e:4===qe.stepNumber?St:Rt)}},directives:[A.tP,V.xw,V.yH,V.Wh,A.mk,me.oO,W.n5,W.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Be.l]}}),Ke})();const Ue=["stepper"];function ht(Ke,mt){if(1&Ke&&(o.TgZ(0,"div",48),o.TgZ(1,"p",49),o.TgZ(2,"strong"),o._uU(3,"Channel Peer:\xa0"),o.qZA(),o._uU(4),o.ALo(5,"titlecase"),o.qZA(),o.TgZ(6,"p",50),o.TgZ(7,"strong"),o._uU(8,"Channel ID:\xa0"),o.qZA(),o._uU(9),o.qZA(),o._UZ(10,"p",50),o.qZA()),2&Ke){const ve=o.oxw(2);o.xp6(4),o.Oqu(o.lcZ(5,2,ve.channel.remote_alias)),o.xp6(5),o.Oqu(ve.channel.chan_id)}}function it(Ke,mt){if(1&Ke&&o._uU(0),2&Ke){const ve=o.oxw(2);o.Oqu(ve.inputFormLabel)}}function ft(Ke,mt){1&Ke&&(o.TgZ(0,"mat-error"),o._uU(1,"Amount is required."),o.qZA())}function nt(Ke,mt){if(1&Ke&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"number"),o.qZA()),2&Ke){const ve=o.oxw(2);o.xp6(1),o.hij("Amount must be greater than or equal to ",o.lcZ(2,1,ve.minQuote.amount),".")}}function st(Ke,mt){if(1&Ke&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"number"),o.qZA()),2&Ke){const ve=o.oxw(2);o.xp6(1),o.hij("Amount must be less than or equal to ",o.lcZ(2,1,ve.maxQuote.amount),".")}}function wt(Ke,mt){1&Ke&&(o.TgZ(0,"mat-error"),o._uU(1,"Confirmation target is required."),o.qZA())}function Bt(Ke,mt){1&Ke&&(o.TgZ(0,"mat-error"),o._uU(1,"Confirmation target must be a positive number."),o.qZA())}function Pt(Ke,mt){1&Ke&&(o.TgZ(0,"mat-error"),o._uU(1,"Percentage is required."),o.qZA())}function Vt(Ke,mt){1&Ke&&(o.TgZ(0,"mat-error"),o._uU(1,"Percentage must be a positive number."),o.qZA())}function Oi(Ke,mt){if(1&Ke&&(o.TgZ(0,"mat-form-field",50),o._UZ(1,"input",51),o.YNc(2,Pt,2,0,"mat-error",25),o.YNc(3,Vt,2,0,"mat-error",25),o.qZA()),2&Ke){const ve=o.oxw(2);o.xp6(1),o.Q6J("step",1),o.xp6(1),o.Q6J("ngIf",null==ve.inputFormGroup.controls.routingFeePercent.errors?null:ve.inputFormGroup.controls.routingFeePercent.errors.required),o.xp6(1),o.Q6J("ngIf",null==ve.inputFormGroup.controls.routingFeePercent.errors?null:ve.inputFormGroup.controls.routingFeePercent.errors.min)}}function jt(Ke,mt){1&Ke&&(o.TgZ(0,"div",52),o.TgZ(1,"mat-slide-toggle",53),o._uU(2,"Fast"),o.qZA(),o.TgZ(3,"mat-icon",54),o._uU(4,"info_outline"),o.qZA(),o.qZA())}function ti(Ke,mt){if(1&Ke&&o._uU(0),2&Ke){const ve=o.oxw(2);o.Oqu(ve.quoteFormLabel)}}function Pi(Ke,mt){1&Ke&&(o.TgZ(0,"p",55),o.TgZ(1,"mat-icon",56),o._uU(2,"close"),o.qZA(),o._uU(3,"Local balance amount is insufficient for swap."),o.qZA())}function si(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"button",57),o.NdJ("click",function(){return o.CHM(ve),o.oxw(2).onValidateAmount()}),o._uU(1,"Next"),o.qZA()}}function di(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"button",58),o.NdJ("click",function(){return o.CHM(ve),o.oxw(2).onLoop()}),o._uU(1),o.qZA()}if(2&Ke){const ve=o.oxw(2);o.xp6(1),o.hij("Initiate ",ve.loopDirectionCaption,"")}}function ze(Ke,mt){if(1&Ke&&o._uU(0),2&Ke){const ve=o.oxw(3);o.Oqu(ve.addressFormLabel)}}function Te(Ke,mt){1&Ke&&(o.TgZ(0,"mat-error"),o._uU(1,"Address is required."),o.qZA())}function Y(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"mat-step",16),o.TgZ(1,"form",17),o.YNc(2,ze,1,1,"ng-template",18),o.TgZ(3,"div",59),o.TgZ(4,"mat-radio-group",60),o.NdJ("change",function(_t){return o.CHM(ve),o.oxw(2).onAddressTypeChange(_t)}),o.TgZ(5,"mat-radio-button",61),o._uU(6,"Node Local Address"),o.qZA(),o.TgZ(7,"mat-radio-button",62),o._uU(8,"External Address"),o.qZA(),o.qZA(),o.TgZ(9,"mat-form-field",63),o._UZ(10,"input",64),o.YNc(11,Te,2,0,"mat-error",25),o.qZA(),o.qZA(),o.TgZ(12,"div",29),o.TgZ(13,"button",65),o.NdJ("click",function(){return o.CHM(ve),o.oxw(2).onLoop()}),o._uU(14),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&Ke){const ve=o.oxw(2);o.Q6J("stepControl",ve.addressFormGroup)("editable",ve.flgEditable),o.xp6(1),o.Q6J("formGroup",ve.addressFormGroup),o.xp6(9),o.Q6J("required","external"===ve.addressFormGroup.controls.addressType.value),o.xp6(1),o.Q6J("ngIf",null==ve.addressFormGroup.controls.address.errors?null:ve.addressFormGroup.controls.address.errors.required),o.xp6(3),o.hij("Initiate ",ve.loopDirectionCaption,"")}}function ge(Ke,mt){if(1&Ke&&o._uU(0),2&Ke){const ve=o.oxw(2);o.hij("",ve.loopDirectionCaption," Status")}}function Ae(Ke,mt){if(1&Ke&&(o.TgZ(0,"mat-icon",66),o._uU(1),o.qZA()),2&Ke){const ve=o.oxw(2);o.xp6(1),o.Oqu(ve.loopStatus&&null!=ve.loopStatus&&ve.loopStatus.id_bytes?"check":"close")}}function et(Ke,mt){1&Ke&&o._UZ(0,"div")}function $t(Ke,mt){1&Ke&&o._UZ(0,"mat-progress-bar",67)}function Nt(Ke,mt){if(1&Ke&&(o.TgZ(0,"h4",68),o._uU(1),o.qZA()),2&Ke){const ve=o.oxw(2);o.xp6(1),o.Oqu(ve.loopStatus&&ve.loopStatus.error?ve.loopDirectionCaption+" failed.":ve.loopStatus&&ve.loopStatus.id_bytes&&ve.channel?ve.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":ve.loopDirectionCaption+" request placed successfully.")}}function Xt(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"button",69),o.NdJ("click",function(){return o.CHM(ve),o.oxw(2).goToLoop()}),o._uU(1,"Check Status"),o.qZA()}}function lt(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"button",70),o.NdJ("click",function(){return o.CHM(ve),o.oxw(2).onRestart()}),o._uU(1,"Start Again"),o.qZA()}}function Re(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"div",3),o.TgZ(1,"div",4),o.TgZ(2,"mat-card-header",5),o.TgZ(3,"div",6),o.TgZ(4,"span",7),o._uU(5),o.qZA(),o.qZA(),o.TgZ(6,"div",8),o.TgZ(7,"button",9),o.NdJ("click",function(){return o.CHM(ve),o.oxw().showInfo()}),o._uU(8,"?"),o.qZA(),o.TgZ(9,"button",10),o.NdJ("click",function(){return o.CHM(ve),o.oxw().onClose()}),o._uU(10,"X"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(11,"mat-card-content",11),o.TgZ(12,"div",12),o.YNc(13,ht,11,4,"div",13),o.TgZ(14,"mat-vertical-stepper",14,15),o.NdJ("selectionChange",function(_t){return o.CHM(ve),o.oxw().stepSelectionChanged(_t)}),o.TgZ(16,"mat-step",16),o.TgZ(17,"form",17),o.YNc(18,it,1,1,"ng-template",18),o.TgZ(19,"div",19),o._UZ(20,"rtl-loop-quote",20),o._UZ(21,"rtl-loop-quote",20),o.qZA(),o.TgZ(22,"div",21),o.TgZ(23,"mat-form-field",22),o._UZ(24,"input",23),o.TgZ(25,"mat-hint"),o._uU(26),o.ALo(27,"number"),o.ALo(28,"number"),o.qZA(),o.TgZ(29,"span",24),o._uU(30,"Sats"),o.qZA(),o.YNc(31,ft,2,0,"mat-error",25),o.YNc(32,nt,3,3,"mat-error",25),o.YNc(33,st,3,3,"mat-error",25),o.qZA(),o.TgZ(34,"mat-form-field",22),o._UZ(35,"input",26),o.YNc(36,wt,2,0,"mat-error",25),o.YNc(37,Bt,2,0,"mat-error",25),o.qZA(),o.YNc(38,Oi,4,3,"mat-form-field",27),o.qZA(),o.YNc(39,jt,5,0,"div",28),o.TgZ(40,"div",29),o.TgZ(41,"button",30),o.NdJ("click",function(){return o.CHM(ve),o.oxw().onEstimateQuote()}),o._uU(42,"Estimate Quote"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(43,"mat-step",16),o.TgZ(44,"form",17),o.YNc(45,ti,1,1,"ng-template",18),o._UZ(46,"rtl-loop-quote",31),o.YNc(47,Pi,4,0,"p",32),o.TgZ(48,"div",29),o.YNc(49,si,2,0,"button",33),o.YNc(50,di,2,1,"button",34),o.qZA(),o.qZA(),o.qZA(),o.YNc(51,Y,15,6,"mat-step",35),o.TgZ(52,"mat-step",36),o.TgZ(53,"form",17),o.YNc(54,ge,1,1,"ng-template",18),o.TgZ(55,"div",37),o.TgZ(56,"mat-expansion-panel",38),o.TgZ(57,"mat-expansion-panel-header"),o.TgZ(58,"mat-panel-title"),o.TgZ(59,"span",39),o._uU(60),o.YNc(61,Ae,2,1,"mat-icon",40),o.qZA(),o.qZA(),o.qZA(),o.YNc(62,et,1,0,"div",41),o.qZA(),o.YNc(63,$t,1,0,"mat-progress-bar",42),o.qZA(),o.YNc(64,Nt,2,1,"h4",43),o.TgZ(65,"div",29),o.YNc(66,Xt,2,0,"button",44),o.YNc(67,lt,2,0,"button",45),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(68,"div",46),o.TgZ(69,"button",47),o._uU(70,"Close"),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&Ke){const ve=o.oxw(),qe=o.MAs(2);o.Q6J("@opacityAnimation",void 0),o.xp6(3),o.Q6J("fxFlex",ve.screenSize===ve.screenSizeEnum.XS||ve.screenSize===ve.screenSizeEnum.SM?"83":"91"),o.xp6(2),o.Oqu(ve.channel?"Channel "+ve.loopDirectionCaption:ve.loopDirectionCaption),o.xp6(1),o.Q6J("fxFlex",ve.screenSize===ve.screenSizeEnum.XS||ve.screenSize===ve.screenSizeEnum.SM?"17":"9"),o.xp6(7),o.Q6J("ngIf",ve.channel),o.xp6(1),o.Q6J("linear",!0),o.xp6(2),o.Q6J("stepControl",ve.inputFormGroup)("editable",ve.flgEditable),o.xp6(1),o.Q6J("formGroup",ve.inputFormGroup),o.xp6(3),o.Q6J("quote",ve.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),o.xp6(1),o.Q6J("quote",ve.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),o.xp6(2),o.Q6J("fxFlex",ve.direction===ve.LoopTypeEnum.LOOP_OUT?"35":"48"),o.xp6(1),o.Q6J("step",1e3),o.xp6(2),o.AsE("Range: ",o.lcZ(27,51,ve.minQuote.amount),"-",o.lcZ(28,53,ve.maxQuote.amount),""),o.xp6(5),o.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.required),o.xp6(1),o.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.min),o.xp6(1),o.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.max),o.xp6(1),o.Q6J("fxFlex",ve.direction===ve.LoopTypeEnum.LOOP_OUT?"30":"48"),o.xp6(1),o.Q6J("step",1),o.xp6(1),o.Q6J("ngIf",null==ve.inputFormGroup.controls.sweepConfTarget.errors?null:ve.inputFormGroup.controls.sweepConfTarget.errors.required),o.xp6(1),o.Q6J("ngIf",null==ve.inputFormGroup.controls.sweepConfTarget.errors?null:ve.inputFormGroup.controls.sweepConfTarget.errors.min),o.xp6(1),o.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),o.xp6(1),o.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),o.xp6(4),o.Q6J("stepControl",ve.quoteFormGroup)("editable",ve.flgEditable),o.xp6(1),o.Q6J("formGroup",ve.quoteFormGroup),o.xp6(2),o.Q6J("quote",ve.quote)("showPanel",!1),o.xp6(1),o.Q6J("ngIf",ve.inputFormGroup.controls.amount.value>ve.localBalanceToCompare),o.xp6(2),o.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),o.xp6(1),o.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_IN),o.xp6(1),o.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),o.xp6(1),o.Q6J("stepControl",ve.statusFormGroup),o.xp6(1),o.Q6J("formGroup",ve.statusFormGroup),o.xp6(3),o.Q6J("expanded",!!ve.loopStatus),o.xp6(4),o.Oqu(ve.loopStatus?ve.loopStatus.id_bytes?ve.loopDirectionCaption+" request details":ve.loopDirectionCaption+" error details":"Waiting for "+ve.loopDirectionCaption+" request..."),o.xp6(1),o.Q6J("ngIf",ve.loopStatus),o.xp6(1),o.Q6J("ngIf",!ve.loopStatus)("ngIfElse",qe),o.xp6(1),o.Q6J("ngIf",!ve.loopStatus),o.xp6(1),o.Q6J("ngIf",ve.loopStatus),o.xp6(2),o.Q6J("ngIf",ve.loopStatus&&ve.loopStatus.id_bytes&&ve.channel),o.xp6(1),o.Q6J("ngIf",ve.loopStatus&&(ve.loopStatus.error||!ve.loopStatus.id_bytes)),o.xp6(2),o.Q6J("mat-dialog-close",!1)}}function Fe(Ke,mt){if(1&Ke&&o._UZ(0,"rtl-loop-status",71),2&Ke){const ve=o.oxw();o.Q6J("loopStatus",ve.loopStatus)}}function rt(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"rtl-loop-out-info-graphics",88),o.NdJ("stepNumberChange",function(_t){return o.CHM(ve),o.oxw(2).stepNumber=_t}),o.qZA()}if(2&Ke){const ve=o.oxw(2);o.Q6J("stepNumber",ve.stepNumber)("animationDirection",ve.animationDirection)}}function ot(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"rtl-loop-in-info-graphics",88),o.NdJ("stepNumberChange",function(_t){return o.CHM(ve),o.oxw(2).stepNumber=_t}),o.qZA()}if(2&Ke){const ve=o.oxw(2);o.Q6J("stepNumber",ve.stepNumber)("animationDirection",ve.animationDirection)}}const At=function(Ke,mt){return{"dot-primary":Ke,"dot-primary-lighter":mt}};function li(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"span",89),o.NdJ("click",function(){const ue=o.CHM(ve).$implicit;return o.oxw(2).onStepChanged(ue)}),o._UZ(1,"p",90),o.qZA()}if(2&Ke){const ve=mt.$implicit,qe=o.oxw(2);o.xp6(1),o.Q6J("ngClass",o.WLB(1,At,qe.stepNumber===ve,qe.stepNumber!==ve))}}function Ut(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"button",91),o.NdJ("click",function(){return o.CHM(ve),o.oxw(2).onReadMore()}),o._uU(1,"Read More"),o.qZA()}}function Ft(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"button",92),o.NdJ("click",function(){return o.CHM(ve),o.oxw(2).onStepChanged(4)}),o._uU(1,"Back"),o.qZA()}}function Si(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"button",93),o.NdJ("click",function(){o.CHM(ve);const _t=o.oxw(2);return _t.flgShowInfo=!1,_t.stepNumber=1}),o._uU(1,"Close"),o.qZA()}}function ai(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"button",94),o.NdJ("click",function(){o.CHM(ve);const _t=o.oxw(2);return _t.flgShowInfo=!1,_t.stepNumber=1}),o._uU(1,"Close"),o.qZA()}}function ci(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"button",95),o.NdJ("click",function(){o.CHM(ve);const _t=o.oxw(2);return _t.onStepChanged(_t.stepNumber-1)}),o._uU(1,"Back"),o.qZA()}}function rn(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"button",96),o.NdJ("click",function(){o.CHM(ve);const _t=o.oxw(2);return _t.onStepChanged(_t.stepNumber+1)}),o._uU(1,"Next"),o.qZA()}}const Vi=function(){return[1,2,3,4,5]};function Di(Ke,mt){if(1&Ke){const ve=o.EpF();o.TgZ(0,"div",72),o.TgZ(1,"div",19),o.TgZ(2,"mat-card-header",73),o.TgZ(3,"div",74),o._UZ(4,"span",7),o.qZA(),o.TgZ(5,"div",75),o.TgZ(6,"button",76),o.NdJ("click",function(){o.CHM(ve);const _t=o.oxw();return _t.flgShowInfo=!1,_t.stepNumber=1}),o._uU(7,"X"),o.qZA(),o.qZA(),o.qZA(),o.TgZ(8,"mat-card-content",77),o.YNc(9,rt,1,2,"rtl-loop-out-info-graphics",78),o.YNc(10,ot,1,2,"rtl-loop-in-info-graphics",78),o.qZA(),o.TgZ(11,"div",79),o.YNc(12,li,2,4,"span",80),o.qZA(),o.TgZ(13,"div",81),o.YNc(14,Ut,2,0,"button",82),o.YNc(15,Ft,2,0,"button",83),o.YNc(16,Si,2,0,"button",84),o.YNc(17,ai,2,0,"button",85),o.YNc(18,ci,2,0,"button",86),o.YNc(19,rn,2,0,"button",87),o.qZA(),o.qZA(),o.qZA()}if(2&Ke){const ve=o.oxw();o.Q6J("@opacityAnimation",void 0),o.xp6(9),o.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),o.xp6(1),o.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_IN),o.xp6(2),o.Q6J("ngForOf",o.DdM(10,Vi)),o.xp6(2),o.Q6J("ngIf",5===ve.stepNumber),o.xp6(1),o.Q6J("ngIf",5===ve.stepNumber),o.xp6(1),o.Q6J("ngIf",5===ve.stepNumber),o.xp6(1),o.Q6J("ngIf",ve.stepNumber<5),o.xp6(1),o.Q6J("ngIf",ve.stepNumber>1&&ve.stepNumber<5),o.xp6(1),o.Q6J("ngIf",ve.stepNumber<5)}}let Xi=(()=>{class Ke{constructor(ve,qe,_t,ue,$e,St,Rt,yi,Ri){this.dialogRef=ve,this.data=qe,this.store=_t,this.loopService=ue,this.formBuilder=$e,this.decimalPipe=St,this.logger=Rt,this.router=yi,this.commonService=Ri,this.faInfoCircle=s.sqG,this.LoopTypeEnum=c.$I,this.direction=c.$I.LOOP_OUT,this.loopDirectionCaption="Loop out",this.loopStatus=null,this.inputFormLabel="Amount to loop out",this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address",this.prepayRoutingFee=36,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=c.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction,this.loopDirectionCaption=this.direction===c.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[e.kI.required,e.kI.min(this.minQuote.amount),e.kI.max(this.maxQuote.amount)]],sweepConfTarget:[6,[e.kI.required,e.kI.min(1)]],routingFeePercent:[2,[e.kI.required,e.kI.min(0)]],fast:[!1,[e.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[e.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(N.ZW).pipe((0,v.R)(this.unSubs[6])).subscribe(ve=>{this.localBalanceToCompare=this.channel?+this.channel.local_balance:+ve.lightningBalance.local})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===c.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,v.R)(this.unSubs[4])).subscribe(ve=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===c.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,v.R)(this.unSubs[5])).subscribe(ve=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(ve){"external"===ve.value?(this.addressFormGroup.controls.address.setValidators([e.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onValidateAmount(){this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.value<this.minQuote.amount||this.inputFormGroup.controls.amount.value>this.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===c.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===c.$I.LOOP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,this.stepper.selected.stepControl.setErrors(null),this.stepper.next(),this.direction===c.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+this.quote.swap_fee_sat,+this.quote.htlc_publish_fee_sat,"",!0).pipe((0,v.R)(this.unSubs[0])).subscribe({next:ve=>{this.loopStatus=ve,this.loopService.listSwaps(),this.flgEditable=!0},error:ve=>{this.loopStatus={error:ve},this.flgEditable=!0,this.logger.error(ve)}});else{const ve=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),qe="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",_t=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.loopService.loopOut(this.inputFormGroup.controls.amount.value,this.channel&&this.channel.chan_id?this.channel.chan_id:"",this.inputFormGroup.controls.sweepConfTarget.value,ve,+this.quote.htlc_sweep_fee_sat,this.prepayRoutingFee,+this.quote.prepay_amt_sat,+this.quote.swap_fee_sat,_t,qe).pipe((0,v.R)(this.unSubs[1])).subscribe({next:ue=>{this.loopStatus=ue,this.loopService.listSwaps(),this.flgEditable=!0},error:ue=>{this.loopStatus={error:ue},this.flgEditable=!0,this.logger.error(ue)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.value<this.minQuote.amount||this.inputFormGroup.controls.amount.value>this.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const ve=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===c.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,ve).pipe((0,v.R)(this.unSubs[2])).subscribe(qe=>{this.quote=qe,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}):this.loopService.getLoopOutQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,ve).pipe((0,v.R)(this.unSubs[3])).subscribe(qe=>{this.quote=qe,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}),this.stepper.selected.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(ve){switch(ve.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===c.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Percentage: "+(this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:"2")+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===c.$I.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel=this.quote&&this.quote.swap_fee_sat&&(this.quote.htlc_sweep_fee_sat||this.quote.htlc_publish_fee_sat)&&this.quote.prepay_amt_sat?"Quote confirmed | Estimated Fees: "+this.decimalPipe.transform(+this.quote.swap_fee_sat+ +(this.quote.htlc_sweep_fee_sat?this.quote.htlc_sweep_fee_sat:this.quote.htlc_publish_fee_sat?this.quote.htlc_publish_fee_sat:0))+" Sats":"Quote confirmed",this.addressFormLabel=this.addressFormGroup.controls.addressType.value?"Withdrawal Address | Type: "+this.addressFormGroup.controls.addressType.value:"Withdrawal Address"}(this.direction===c.$I.LOOP_OUT&&1!==ve.selectedIndex&&ve.selectedIndex<ve.previouslySelectedIndex||this.direction===c.$I.LOOP_IN&&ve.selectedIndex<ve.previouslySelectedIndex)&&ve.selectedStep.stepControl.setErrors({Invalid:!0})}goToLoop(){this.dialogRef.close(!0),this.router.navigateByUrl("/services/loop")}onClose(){this.dialogRef.close(!0)}showInfo(){this.flgShowInfo=!0}onReadMore(){this.direction===c.$I.LOOP_IN?window.open("https://blog.lightning.engineering/announcement/2019/06/25/loop-in.html","_blank"):window.open("https://blog.lightning.engineering/technical/posts/2019/04/15/loop-out-in-depth.html","_blank"),this.onClose()}onStepChanged(ve){this.animationDirection=ve<this.stepNumber?"backward":"forward",this.stepNumber=ve}onRestart(){this.stepper.reset(),this.flgEditable=!0,this.inputFormGroup.reset({amount:this.minQuote.amount,sweepConfTarget:6,routingFeePercent:2,fast:!1}),this.quoteFormGroup.reset(),this.statusFormGroup.reset(),this.addressFormGroup.reset({addressType:"local",address:""}),this.addressFormGroup.controls.address.disable()}ngOnDestroy(){this.unSubs.forEach(ve=>{ve.next(null),ve.complete()})}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(o.Y36(C.so),o.Y36(C.WI),o.Y36(L.yh),o.Y36(O.W),o.Y36(e.qu),o.Y36(A.JJ),o.Y36(E.mQ),o.Y36(k.F0),o.Y36(w.v))},Ke.\u0275cmp=o.Xpm({type:Ke,selectors:[["rtl-loop-modal"]],viewQuery:function(ve,qe){if(1&ve&&o.Gf(Ue,5),2&ve){let _t;o.iGM(_t=o.CRH())&&(qe.stepper=_t.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["loopStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"quote","termCaption","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"fxFlex"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","placeholder","Sweep Confirmation Target","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","placeholder","Max Off-chain Routing Fee (%)","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(ve,qe){1&ve&&(o.YNc(0,Re,71,55,"div",0),o.YNc(1,Fe,1,1,"ng-template",null,1,o.W1O),o.YNc(3,Di,20,11,"div",2)),2&ve&&(o.Q6J("ngIf",!qe.flgShowInfo),o.xp6(3),o.Q6J("ngIf",qe.flgShowInfo))},directives:[A.O5,V.xw,V.yH,V.Wh,W.dk,j.lW,W.dn,$.Vq,$.C0,e._Y,e.JL,e.sg,$.VY,D,I.KE,x.Nt,e.wV,e.Fj,r.h,e.JJ,e.u,e.Q7,I.bx,I.R9,ee.ib,ee.yz,ee.yK,C.ZT,I.TO,b.Rr,ce.Hw,le.gM,Z.VQ,Z.U0,P.pW,Ne,A.sg,Pe,Ce,A.mk,me.oO],pipes:[A.JJ,A.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[M._]}}),Ke})()},3390:(Ze,K,m)=>{"use strict";m.d(K,{h:()=>t});var e=m(5e3);let t=(()=>{class v{constructor(s){this.el=s}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return v.\u0275fac=function(s){return new(s||v)(e.Y36(e.SBq))},v.\u0275dir=e.lG2({type:v,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),v})()},6895:(Ze,K,m)=>{"use strict";m.d(K,{y:()=>t});var e=m(5e3);let t=(()=>{class v{constructor(){this.copied=new e.vpe}onClick(s){s.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},M=>{this.copied.emit("Error could not copy text: "+JSON.stringify(M))})}}return v.\u0275fac=function(s){return new(s||v)},v.\u0275dir=e.lG2({type:v,selectors:[["","rtlClipboard",""]],hostBindings:function(s,M){1&s&&e.NdJ("click",function(N){return M.onClick(N)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),v})()},6534:(Ze,K,m)=>{"use strict";m.d(K,{q:()=>v});var e=m(3075),t=m(5e3);let v=(()=>{class C{validate(M){return this.min?e.kI.min(+this.min)(M):null}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275dir=t.lG2({type:C,selectors:[["input","min",""]],inputs:{min:"min"},features:[t._Bn([{provide:e.Cf,useExisting:C,multi:!0}])]}),C})()},1643:(Ze,K,m)=>{"use strict";m.d(K,{a1:()=>s,QM:()=>M,lB:()=>c,fY:()=>N});var e=m(4004),t=m(5e3),v=m(9291),C=m(5986);let s=(()=>{class o{constructor(O,A){this.router=O,this.sessionService=A}canActivate(O){return!(!this.sessionService.getItem("token")||"settings"!==O.url[0].path&&"auth"!==O.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return o.\u0275fac=function(O){return new(O||o)(t.LFG(v.F0),t.LFG(C.m))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac}),o})(),M=(()=>{class o{constructor(O){this.sessionService=O}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(O=>O.lndUnlocked))}}return o.\u0275fac=function(O){return new(O||o)(t.LFG(C.m))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac}),o})(),c=(()=>{class o{constructor(O){this.sessionService=O}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(O=>O.clUnlocked))}}return o.\u0275fac=function(O){return new(O||o)(t.LFG(C.m))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac}),o})(),N=(()=>{class o{constructor(O){this.sessionService=O}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(O=>O.eclUnlocked))}}return o.\u0275fac=function(O){return new(O||o)(t.LFG(C.m))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac}),o})()},62:(Ze,K,m)=>{"use strict";m.d(K,{v:()=>O});var e=m(1135),t=m(9646),v=m(2843),C=m(5698),s=m(4004),M=m(262),c=m(7731),N=m(5e3),o=m(8104),L=m(5043);let O=(()=>{class A{constructor(k,w){this.dataService=k,this.logger=w,this.currencyUnits=[],this.CurrencyUnitEnum=c.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=c.Bn.UN_INITIATED,this.screenSize=c.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new e.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(k){this.screenSize=k}getContainerSize(){return this.containerSize}setContainerSize(k,w){this.containerSize={width:k,height:w},this.containerSizeUpdated.next(this.containerSize)}sortByKey(k,w,V,W="asc"){return k.sort("number"===V?"desc"===W?(j,$)=>+j[w]>+$[w]?-1:1:(j,$)=>+j[w]>+$[w]?1:-1:"desc"===W?(j,$)=>j[w]>$[w]?-1:1:(j,$)=>j[w]>$[w]?1:-1)}sortDescByKey(k,w){return k.sort((V,W)=>{const j=+V[w],$=+W[w];return j>$?-1:j<$?1:0})}sortAscByKey(k,w){return k.sort((V,W)=>{const j=+V[w],$=+W[w];return j<$?-1:j>$?1:0})}camelCase(k){return k.replace(/(?:^\w|[A-Z]|\b\w)/g,(w,V)=>w.toUpperCase()).replace(/\s+/g,"").replace(/-/g," ")}titleCase(k,w,V){return w&&V&&""!==w&&""!==V&&(k=k.replace(new RegExp(w,"g"),V)),k.indexOf("!\n")>0||k.indexOf(".\n")>0?k.split("\n").reduce((W,j)=>W+j.charAt(0).toUpperCase()+j.substring(1).toLowerCase()+"\n",""):k.indexOf(" ")>0?k.split(" ").reduce((W,j)=>W+j.charAt(0).toUpperCase()+j.substring(1).toLowerCase()+" ",""):k.charAt(0).toUpperCase()+k.substring(1).toLowerCase()}convertCurrency(k,w,V,W,j){const $=(new Date).valueOf();return j&&W&&this.ratesAPIStatus!==c.Bn.INITIATED&&(w===c.NT.OTHER||V===c.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&$<this.conversionData.last_fetched.valueOf()+3e5?(0,t.of)(this.convertWithFiat(k,w,W)):(this.ratesAPIStatus=c.Bn.INITIATED,this.dataService.getFiatRates().pipe((0,C.q)(1),(0,s.U)(ee=>(this.ratesAPIStatus=c.Bn.COMPLETED,this.conversionData.data=ee&&"object"==typeof ee?ee:ee&&"string"==typeof ee?JSON.parse(ee):{},this.conversionData.last_fetched=$,this.convertWithFiat(k,w,W))),(0,M.K)(ee=>(this.ratesAPIStatus=c.Bn.ERROR,(0,v._)(()=>this.extractErrorMessage(ee,"Currency Conversion Error.")))))):(0,t.of)(this.convertWithoutFiat(k,w))}convertWithoutFiat(k,w){const V={};switch(V[c.NT.SATS]=0,V[c.NT.BTC]=0,w){case c.NT.SATS:V[c.NT.SATS]=k,V[c.NT.BTC]=1e-8*k;break;case c.NT.BTC:V[c.NT.SATS]=1e8*k,V[c.NT.BTC]=k}return V}convertWithFiat(k,w,V){const W={unit:V,symbol:this.conversionData.data[V].symbol};switch(W[c.NT.SATS]=0,W[c.NT.BTC]=0,W[c.NT.OTHER]=0,w){case c.NT.SATS:W[c.NT.SATS]=k,W[c.NT.BTC]=1e-8*k,W[c.NT.OTHER]=1e-8*k*this.conversionData.data[V].last;break;case c.NT.BTC:W[c.NT.SATS]=1e8*k,W[c.NT.BTC]=k,W[c.NT.OTHER]=k*this.conversionData.data[V].last;break;case c.NT.OTHER:W[c.NT.SATS]=k/this.conversionData.data[V].last*1e8,W[c.NT.BTC]=k/this.conversionData.data[V].last,W[c.NT.OTHER]=k}return W}convertTime(k,w,V){switch(w){case c.Qk.SECS:switch(V){case c.Qk.MINS:k/=60;break;case c.Qk.HOURS:k/=3600;break;case c.Qk.DAYS:k/=86400}break;case c.Qk.MINS:switch(V){case c.Qk.SECS:k*=60;break;case c.Qk.HOURS:k/=60;break;case c.Qk.DAYS:k/=1440}break;case c.Qk.HOURS:switch(V){case c.Qk.SECS:k*=3600;break;case c.Qk.MINS:k*=60;break;case c.Qk.DAYS:k/=24}break;case c.Qk.DAYS:switch(V){case c.Qk.SECS:k=3600*k*24;break;case c.Qk.MINS:k=60*k*24;break;case c.Qk.HOURS:k*=24}}return k}downloadFile(k,w,V=".json",W=".csv"){let j=new Blob;j=".json"===V?new Blob(["\ufeff"+this.convertToCSV(k)],{type:"text/csv;charset=utf-8;"}):new Blob([k.toString()],{type:"text/plain;charset=utf-8"});const $=document.createElement("a"),ee=URL.createObjectURL(j);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&$.setAttribute("target","_blank"),$.setAttribute("href",ee),$.setAttribute("download",w+W),$.style.visibility="hidden",document.body.appendChild($),$.click(),document.body.removeChild($)}convertToCSV(k){const w=[];let V="",W="",j="";return"object"!=typeof k&&(k=JSON.parse(k)),k.forEach((ee,me)=>{for(const ce in ee)w.findIndex(le=>le===ce)<0&&w.push(ce)}),j=w.join(",")+"\r\n",k.forEach(ee=>{V="",w.forEach(me=>{ee.hasOwnProperty(me)?Array.isArray(ee[me])?(W="",ee[me].forEach((ce,le)=>{W+="object"==typeof ce?"("+JSON.stringify(ce).replace(/\,/g,";")+")":"("+ce+")"}),V+=W+","):V+="object"==typeof ee[me]?JSON.stringify(ee[me]).replace(/\,/g,";")+",":ee[me]+",":V+=","}),j+=V.slice(0,-1)+"\r\n"}),j}isVersionCompatible(k,w){if(k){const V=k.trim().replace("v","").split("-")[0].split(".")||[],W=w.split(".");return+V[0]>+W[0]||+V[0]==+W[0]&&+V[1]>+W[1]||+V[0]==+W[0]&&+V[1]==+W[1]&&+V[2]>=+W[2]}return!1}extractErrorMessage(k,w="Unknown Error."){const V=this.titleCase(k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&k.error.error.error.error.error&&"string"==typeof k.error.error.error.error.error?k.error.error.error.error.error:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&"string"==typeof k.error.error.error.error?k.error.error.error.error:k.error&&k.error.error&&k.error.error.error&&"string"==typeof k.error.error.error?k.error.error.error:k.error&&k.error.error&&"string"==typeof k.error.error?k.error.error:k.error&&"string"==typeof k.error?k.error:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&k.error.error.error.error.message&&"string"==typeof k.error.error.error.error.message?k.error.error.error.error.message:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.message&&"string"==typeof k.error.error.error.message?k.error.error.error.message:k.error&&k.error.error&&k.error.error.message&&"string"==typeof k.error.error.message?k.error.error.message:k.error&&k.error.message&&"string"==typeof k.error.message?k.error.message:k.message&&"string"==typeof k.message?k.message:w);return this.logger.info("Error Message: "+V),V}extractErrorCode(k,w=500){const V=k.error&&k.error.error&&k.error.error.message&&k.error.error.message.code?k.error.error.message.code:k.error&&k.error.error&&k.error.error.code?k.error.error.code:k.error&&k.error.code?k.error.code:k.code?k.code:k.status?k.status:w;return this.logger.info("Error Code: "+V),V}extractErrorNumber(k,w=500){const V=k.error&&k.error.error&&k.error.error.errno?k.error.error.errno:k.error&&k.error.errno?k.error.errno:k.errno?k.errno:k.status?k.status:w;return this.logger.info("Error Number: "+V),V}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return A.\u0275fac=function(k){return new(k||A)(N.LFG(o.D),N.LFG(L.mQ))},A.\u0275prov=N.Yz7({token:A,factory:A.\u0275fac}),A})()},7731:(Ze,K,m)=>{"use strict";m.d(K,{pt:()=>t,uA:()=>v,Xz:()=>C,Er:()=>s,LO:()=>M,IV:()=>c,TJ:()=>N,_t:()=>o,Dr:()=>L,Vc:()=>O,vn:()=>A,wZ:()=>E,$v:()=>k,U5:()=>w,g8:()=>V,ol:()=>W,n_:()=>j,OJ:()=>$,Qk:()=>ee,NT:()=>me,Gi:()=>ce,cu:()=>le,HW:()=>te,x$:()=>re,zQ:()=>pe,uX:()=>y,Fq:()=>i,$I:()=>a,hc:()=>p,Qw:()=>u,gg:()=>_,op:()=>D,JX:()=>I,kO:()=>x,Bn:()=>r,m6:()=>b,IX:()=>Z,pg:()=>P,uR:()=>U,sW:()=>ye,lr:()=>xe,_C:()=>Ne,H_:()=>Be,hZ:()=>Oe});var e=m(6087);function t(B){const Me=new e.ye;return Me.itemsPerPageLabel=B+" per page:",Me}const v=["Sats","BTC"],C={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},s=[{id:"USD",name:"USD"},{id:"AUD",name:"AUD"},{id:"BRL",name:"BRL"},{id:"CAD",name:"CAD"},{id:"CHF",name:"CHF"},{id:"CLP",name:"CLP"},{id:"CNY",name:"CNY"},{id:"DKK",name:"DKK"},{id:"EUR",name:"EUR"},{id:"GBP",name:"GBP"},{id:"HKD",name:"HKD"},{id:"INR",name:"INR"},{id:"ISK",name:"ISK"},{id:"JPY",name:"JPY"},{id:"KRW",name:"KRW"},{id:"NZD",name:"NZD"},{id:"PLN",name:"PLN"},{id:"RUB",name:"RUB"},{id:"SEK",name:"SEK"},{id:"SGD",name:"SGD"},{id:"THB",name:"THB"},{id:"TWD",name:"TWD"}],M=["SECS","MINS","HOURS","DAYS"],c=10,N=[5,10,25,100],o=[{addressId:"0",addressCode:"bech32",addressTp:"Bech32 (P2WKH)",addressDetails:"Pay to witness key hash"},{addressId:"1",addressCode:"p2sh-segwit",addressTp:"P2SH (NP2WKH)",addressDetails:"Pay to nested witness key hash (default)"}],L=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],O=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Payment Amount",placeholder:"Percentage Limit"}],A=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vB)"}],E={themes:[{id:"PURPLE",name:"Diogo"},{id:"TEAL",name:"My2Sats"},{id:"INDIGO",name:"RTL"},{id:"PINK",name:"BK"},{id:"YELLOW",name:"Gold"}],modes:[{id:"DAY",name:"Day"},{id:"NIGHT",name:"Night"}]};var k=(()=>{return(B=k||(k={})).PAYMENT_RECEIVED="payment-received",B.PAYMENT_RELAYED="payment-relayed",B.PAYMENT_SENT="payment-sent",B.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",B.PAYMENT_FAILED="payment-failed",B.CHANNEL_OPENED="channel-opened",B.CHANNEL_STATE_CHANGED="channel-state-changed",B.CHANNEL_CLOSED="channel-closed",k;var B})(),w=(()=>{return(B=w||(w={})).INVOICE="invoice",B.BLOCK_HEIGHT="block-height",B.SEND_PAYMENT="send-payment",w;var B})(),V=(()=>((V||(V={})).INVOICE="invoice",V))(),W=(()=>{return(B=W||(W={})).OPERATOR="OPERATOR",B.MERCHANT="MERCHANT",B.ALL="ALL",W;var B})(),j=(()=>{return(B=j||(j={})).INFORMATION="Information",B.WARNING="Warning",B.ERROR="Error",B.SUCCESS="Success",B.CONFIRM="Confirm",j;var B})(),$=(()=>{return(B=$||($={})).JWT="JWT",B.PASSWORD="PASSWORD",$;var B})(),ee=(()=>{return(B=ee||(ee={})).SECS="SECS",B.MINS="MINS",B.HOURS="HOURS",B.DAYS="DAYS",ee;var B})(),me=(()=>{return(B=me||(me={})).SATS="Sats",B.BTC="BTC",B.OTHER="OTHER",me;var B})(),ce=(()=>{return(B=ce||(ce={})).ARRAY="ARRAY",B.NUMBER="NUMBER",B.STRING="STRING",B.BOOLEAN="BOOLEAN",B.PASSWORD="PASSWORD",B.DATE="DATE",B.DATE_TIME="DATE_TIME",ce;var B})(),le=(()=>{return(B=le||(le={})).XS="XS",B.SM="SM",B.MD="MD",B.LG="LG",B.XL="XL",le;var B})();const te={COOPERATIVE_CLOSE:{name:"Co-operative Close",tooltip:"Channel closed cooperatively"},LOCAL_FORCE_CLOSE:{name:"Local Force Close",tooltip:"Channel force-closed by the local node"},REMOTE_FORCE_CLOSE:{name:"Remote Force Close",tooltip:"Channel force-closed by the remote node"},BREACH_CLOSE:{name:"Breach Close",tooltip:"Remote node attempted to broadcast a prior revoked channel state"},FUNDING_CANCELED:{name:"Funding Canceled",tooltip:"Channel never fully opened"},ABANDONED:{name:"Abandoned",tooltip:"Channel abandoned by the local node"}},re={WITNESS_PUBKEY_HASH:{name:"Witness Pubkey Hash",tooltip:""},NESTED_PUBKEY_HASH:{name:"Nested Pubkey Hash",tooltip:""},UNUSED_WITNESS_PUBKEY_HASH:{name:"Unused Witness Pubkey Hash",tooltip:""},UNUSED_NESTED_PUBKEY_HASH:{name:"Unused Nested Pubkey Hash",tooltip:""}};var pe=(()=>{return(B=pe||(pe={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",B.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",B.WIRE_INVALID_ONION_KEY="Invalid Onion Key",B.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",B.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",B.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",B.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",B.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",B.WIRE_FEE_INSUFFICIENT="Insufficient Fee",B.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",B.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",B.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",B.WIRE_CHANNEL_DISABLED="Channel Disabled",B.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",B.WIRE_INVALID_REALM="Invalid Realm",B.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",B.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",B.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",B.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",B.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",B.WIRE_MPP_TIMEOUT="MPP Timeout",B.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",B.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",pe;var B})(),y=(()=>{return(B=y||(y={})).CHANNELD_NORMAL="Active",B.OPENINGD="Opening",B.CHANNELD_AWAITING_LOCKIN="Pending Open",B.CHANNELD_SHUTTING_DOWN="Shutting Down",B.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",B.CLOSINGD_COMPLETE="Closed",B.AWAITING_UNILATERAL="Awaiting Unilateral Close",B.FUNDING_SPEND_SEEN="Funding Spend Seen",B.ONCHAIN="Onchain",B.DUALOPEND_OPEN_INIT="Dual Open Initialized",B.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",y;var B})(),i=(()=>{return(B=i||(i={})).INITIATED="Initiated",B.PREIMAGE_REVEALED="Preimage Revealed",B.HTLC_PUBLISHED="HTLC Published",B.SUCCESS="Successful",B.FAILED="Failed",B.INVOICE_SETTLED="Invoice Settled",i;var B})(),a=(()=>{return(B=a||(a={})).LOOP_OUT="LOOP_OUT",B.LOOP_IN="LOOP_IN",a;var B})(),p=(()=>{return(B=p||(p={})).SWAP_OUT="SWAP_OUT",B.SWAP_IN="SWAP_IN",p;var B})(),u=(()=>{return(B=u||(u={}))["swap.created"]="Swap Created",B["swap.expired"]="Swap Expired",B["invoice.set"]="Invoice Set",B["invoice.paid"]="Invoice Paid",B["invoice.pending"]="Invoice Pending",B["invoice.settled"]="Invoice Settled",B["invoice.failedToPay"]="Invoice Failed To Pay",B["channel.created"]="Channel Created",B["transaction.failed"]="Transaction Failed",B["transaction.mempool"]="Transaction Mempool",B["transaction.claimed"]="Transaction Claimed",B["transaction.refunded"]="Transaction Refunded",B["transaction.confirmed"]="Transaction Confirmed",B["swap.refunded"]="Swap Refunded",B["swap.abandoned"]="Swap Abandoned",u;var B})();const _=[{name:"Jan",days:31},{name:"Feb",days:28},{name:"Mar",days:31},{name:"Apr",days:30},{name:"May",days:31},{name:"Jun",days:30},{name:"Jul",days:31},{name:"Aug",days:31},{name:"Sep",days:30},{name:"Oct",days:31},{name:"Nov",days:30},{name:"Dec",days:31}],D=["MONTHLY","YEARLY"];var I=(()=>{return(B=I||(I={})).LOOP="LOOP",B.BOLTZ="BOLTZ",B.OFFERS="OFFERS",I;var B})();const x=["password","changeme","moneyprintergobrrr"];var r=(()=>{return(B=r||(r={})).UN_INITIATED="UN_INITIATED",B.INITIATED="INITIATED",B.COMPLETED="COMPLETED",B.ERROR="ERROR",r;var B})();const b={NO_SPINNER:"No Spinner...",GET_NODE_INFO:"Getting Node Information...",INITALIZE_NODE_DATA:"Initializing Node Data...",GENERATE_NEW_ADDRESS:"Getting New Address...",SEND_FUNDS:"Sending Funds...",UPDATE_CHAN_POLICY:"Updating Channel Policy...",GET_CHAN_POLICY:"Fetching Channel Policy...",GET_REMOTE_POLICY:"Fetching Remote Policy...",CLOSE_CHANNEL:"Closing Channel...",FORCE_CLOSE_CHANNEL:"Force Closing Channel...",OPEN_CHANNEL:"Opening Channel...",CONNECT_PEER:"Connecting Peer...",DISCONNECT_PEER:"Disconnecting Peer...",ADD_INVOICE:"Adding Invoice...",CREATE_INVOICE:"Creating Invoice...",DELETE_INVOICE:"Deleting Invoices...",DECODE_PAYMENT:"Decoding Payment...",DECODE_OFFER:"Decoding Offer...",DECODE_PAYMENTS:"Decoding Payments...",FETCH_INVOICE:"Fetching Invoice...",GET_SENT_PAYMENTS:"Getting Sent Payments...",SEND_PAYMENT:"Sending Payment...",SEND_KEYSEND:"Sending Keysend Payment...",SEARCHING_NODE:"Searching Node...",SEARCHING_CHANNEL:"Searching Channel...",SEARCHING_INVOICE:"Searching Invoice...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channel...",DOWNLOAD_BACKUP_FILE:"Downloading Backup File...",RESTORE_CHANNEL:"Restoring Channels...",GET_TERMS_QUOTES:"Getting Terms and Quotes...",LABEL_UTXO:"Labelling UTXO...",GET_NODE_ADDRESS:"Getting Node Address...",GEN_SEED:"Generating Seed...",INITIALIZE_WALLET:"Initializing Wallet...",UNLOCK_WALLET:"Unlocking Wallet...",WAIT_SYNC_NODE:"Waiting for Node Sync...",UPDATE_BOLTZ_SETTINGS:"Updating Boltz Service Settings...",UPDATE_LOOP_SETTINGS:"Updating Loop Service Settings...",UPDATE_SETTING:"Updating Setting...",UPDATE_UI_SETTINGS:"Updating Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",GET_SERVICE_INFO:"Getting Service Info...",GET_QUOTE:"Getting Quotes...",UPDATE_DEFAULT_NODE_SETTING:"Updating Defaule Node Settings...",GET_BOLTZ_SWAPS:"Getting Boltz Swaps...",SIGN_MESSAGE:"Signing Message...",VERIFY_MESSAGE:"Verifying Message...",BUMP_FEE:"Bumping Fee...",LEASE_UTXO:"Leasing UTXO...",GET_LOOP_SWAPS:"Getting List Swaps...",GET_FEE_REPORT:"Getting fee report...",GET_LOOKUP_DETAILS:"Getting lookup details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token...",DISABLE_OFFER:"Disabling Offer...",CREATE_OFFER:"Creating Offer...",DELETE_OFFER_BOOKMARK:"Deleting Bookmark...",LOG_OUT:"Logging Out..."};var Z=(()=>{return(B=Z||(Z={})).INVOICE="INVOICE",B.OFFER="OFFER",B.KEYSEND="KEYSEND",Z;var B})(),P=(()=>{return(B=P||(P={})).VOID="VOID",B.SET_API_URL_ECL="SET_API_URL_ECL",B.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",B.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",B.RESET_ROOT_STORE="RESET_ROOT_STORE",B.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",B.OPEN_SNACK_BAR="OPEN_SNACKBAR",B.OPEN_SPINNER="OPEN_SPINNER",B.CLOSE_SPINNER="CLOSE_SPINNER",B.OPEN_ALERT="OPEN_ALERT",B.CLOSE_ALERT="CLOSE_ALERT",B.OPEN_CONFIRMATION="OPEN_CONFIRMATION",B.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",B.SHOW_PUBKEY="SHOW_PUBKEY",B.FETCH_CONFIG="FETCH_CONFIG",B.SHOW_CONFIG="SHOW_CONFIG",B.FETCH_STORE="FETCH_STORE",B.SET_STORE="SET_STORE",B.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",B.SET_RTL_CONFIG="SET_RTL_CONFIG",B.SAVE_SSO="SAVE_SSO",B.SAVE_SETTINGS="SAVE_SETTINGS",B.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",B.SET_SELECTED_NODE="SET_SELECTED_NODE",B.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",B.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",B.SET_NODE_DATA="SET_NODE_DATA",B.IS_AUTHORIZED="IS_AUTHORIZED",B.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",B.LOGIN="LOGIN",B.VERIFY_TWO_FA="VERIFY_TWO_FA",B.LOGOUT="LOGOUT",B.RESET_PASSWORD="RESET_PASSWORD",B.RESET_PASSWORD_RES="RESET_PASSWORD_RES",B.FETCH_FILE="FETCH_FILE",B.SHOW_FILE="SHOW_FILE",P;var B})(),U=(()=>{return(B=U||(U={})).RESET_LND_STORE="RESET_LND_STORE",B.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",B.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",B.FETCH_INFO_LND="FETCH_INFO_LND",B.SET_INFO_LND="SET_INFO_LND",B.FETCH_PEERS_LND="FETCH_PEERS_LND",B.SET_PEERS_LND="SET_PEERS_LND",B.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",B.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",B.DETACH_PEER_LND="DETACH_PEER_LND",B.REMOVE_PEER_LND="REMOVE_PEER_LND",B.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",B.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",B.ADD_INVOICE_LND="ADD_INVOICE_LND",B.FETCH_FEES_LND="FETCH_FEES_LND",B.SET_FEES_LND="SET_FEES_LND",B.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",B.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",B.FETCH_NETWORK_LND="FETCH_NETWORK_LND",B.SET_NETWORK_LND="SET_NETWORK_LND",B.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",B.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",B.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",B.SET_CHANNELS_LND="SET_CHANNELS_LND",B.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",B.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",B.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",B.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",B.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",B.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",B.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",B.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",B.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",B.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",B.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",B.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",B.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",B.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",B.FETCH_INVOICES_LND="FETCH_INVOICES_LND",B.SET_INVOICES_LND="SET_INVOICES_LND",B.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",B.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",B.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",B.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",B.FETCH_UTXOS_LND="FETCH_UTXOS_LND",B.SET_UTXOS_LND="SET_UTXOS_LND",B.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",B.SET_PAYMENTS_LND="SET_PAYMENTS_LND",B.SEND_PAYMENT_LND="SEND_PAYMENT_LND",B.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",B.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",B.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",B.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",B.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",B.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",B.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",B.GEN_SEED_LND="GEN_SEED_LND",B.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",B.INIT_WALLET_LND="INIT_WALLET_LND",B.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",B.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",B.PEER_LOOKUP_LND="PEER_LOOKUP_LND",B.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",B.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",B.SET_LOOKUP_LND="SET_LOOKUP_LND",B.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",B.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",B.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",B.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",B.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",B.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",U;var B})(),ye=(()=>{return(B=ye||(ye={})).RESET_CL_STORE="RESET_CL_STORE",B.UPDATE_API_CALL_STATUS_CL="UPDATE_API_CALL_STATUS_CL",B.SET_CHILD_NODE_SETTINGS_CL="SET_CHILD_NODE_SETTINGS_CL",B.FETCH_INFO_CL="FETCH_INFO_CL_CL",B.SET_INFO_CL="SET_INFO_CL",B.FETCH_FEES_CL="FETCH_FEES_CL",B.SET_FEES_CL="SET_FEES_CL",B.FETCH_FEE_RATES_CL="FETCH_FEE_RATES_CL",B.SET_FEE_RATES_CL="SET_FEE_RATES_CL",B.FETCH_BALANCE_CL="FETCH_BALANCE_CL",B.SET_BALANCE_CL="SET_BALANCE_CL",B.FETCH_LOCAL_REMOTE_BALANCE_CL="FETCH_LOCAL_REMOTE_BALANCE_CL",B.SET_LOCAL_REMOTE_BALANCE_CL="SET_LOCAL_REMOTE_BALANCE_CL",B.GET_NEW_ADDRESS_CL="GET_NEW_ADDRESS_CL",B.SET_NEW_ADDRESS_CL="SET_NEW_ADDRESS_CL",B.FETCH_UTXOS_CL="FETCH_UTXOS_CL",B.SET_UTXOS_CL="SET_UTXOS_CL",B.FETCH_PEERS_CL="FETCH_PEERS_CL",B.SET_PEERS_CL="SET_PEERS_CL",B.SAVE_NEW_PEER_CL="SAVE_NEW_PEER_CL",B.NEWLY_ADDED_PEER_CL="NEWLY_ADDED_PEER_CL",B.ADD_PEER_CL="ADD_PEER_CL",B.DETACH_PEER_CL="DETACH_PEER_CL",B.REMOVE_PEER_CL="REMOVE_PEER_CL",B.FETCH_CHANNELS_CL="FETCH_CHANNELS_CL",B.SET_CHANNELS_CL="SET_CHANNELS_CL",B.UPDATE_CHANNEL_CL="UPDATE_CHANNEL_CL",B.SAVE_NEW_CHANNEL_CL="SAVE_NEW_CHANNEL_CL",B.CLOSE_CHANNEL_CL="CLOSE_CHANNEL_CL",B.REMOVE_CHANNEL_CL="REMOVE_CHANNEL_CL",B.FETCH_PAYMENTS_CL="FETCH_PAYMENTS_CL",B.SET_PAYMENTS_CL="SET_PAYMENTS_CL",B.SEND_PAYMENT_CL="SEND_PAYMENT_CL",B.SEND_PAYMENT_STATUS_CL="SEND_PAYMENT_STATUS_CL",B.GET_QUERY_ROUTES_CL="GET_QUERY_ROUTES_CL",B.SET_QUERY_ROUTES_CL="SET_QUERY_ROUTES_CL",B.PEER_LOOKUP_CL="PEER_LOOKUP_CL",B.CHANNEL_LOOKUP_CL="CHANNEL_LOOKUP_CL",B.INVOICE_LOOKUP_CL="INVOICE_LOOKUP_CL",B.SET_LOOKUP_CL="SET_LOOKUP_CL",B.GET_FORWARDING_HISTORY_CL="GET_FORWARDING_HISTORY_CL",B.SET_FORWARDING_HISTORY_CL="SET_FORWARDING_HISTORY_CL",B.GET_FAILED_FORWARDING_HISTORY_CL="GET_FAILED_FORWARDING_HISTORY_CL",B.SET_FAILED_FORWARDING_HISTORY_CL="SET_FAILED_FORWARDING_HISTORY_CL",B.GET_LOCAL_FAILED_FORWARDING_HISTORY_CL="GET_LOCAL_FAILED_FORWARDING_HISTORY_CL",B.SET_LOCAL_FAILED_FORWARDING_HISTORY_CL="SET_LOCAL_FAILED_FORWARDING_HISTORY_CL",B.FETCH_INVOICES_CL="FETCH_INVOICES_CL",B.SET_INVOICES_CL="SET_INVOICES_CL",B.SAVE_NEW_INVOICE_CL="SAVE_NEW_INVOICE_CL",B.ADD_INVOICE_CL="ADD_INVOICE_CL",B.UPDATE_INVOICE_CL="UPDATE_INVOICE_CL",B.DELETE_EXPIRED_INVOICE_CL="DELETE_EXPIRED_INVOICE_CL",B.SET_CHANNEL_TRANSACTION_CL="SET_CHANNEL_TRANSACTION_CL",B.SET_CHANNEL_TRANSACTION_RES_CL="SET_CHANNEL_TRANSACTION_RES_CL",B.FETCH_OFFER_INVOICE_CL="FETCH_OFFER_INVOICE_CL",B.SET_OFFER_INVOICE_CL="SET_OFFER_INVOICE_CL",B.FETCH_OFFERS_CL="FETCH_OFFERS_CL",B.SET_OFFERS_CL="SET_OFFERS_CL",B.SAVE_NEW_OFFER_CL="SAVE_NEW_OFFER_CL",B.ADD_OFFER_CL="ADD_OFFER_CL",B.DISABLE_OFFER_CL="DISABLE_OFFER_CL",B.UPDATE_OFFER_CL="UPDATE_OFFER_CL",B.FETCH_OFFER_BOOKMARKS_CL="FETCH_OFFER_BOOKMARKS_CL",B.SET_OFFER_BOOKMARKS_CL="SET_OFFER_BOOKMARKS_CL",B.ADD_UPDATE_OFFER_BOOKMARK_CL="ADD_UPDATE_OFFER_BOOKMARK_CL",B.DELETE_OFFER_BOOKMARK_CL="DELETE_OFFER_BOOKMARK_CL",B.REMOVE_OFFER_BOOKMARK_CL="REMOVE_OFFER_BOOKMARK_CL",ye;var B})(),xe=(()=>{return(B=xe||(xe={})).RESET_ECL_STORE="RESET_ECL_STORE",B.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",B.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",B.FETCH_INFO_ECL="FETCH_INFO_ECL",B.SET_INFO_ECL="SET_INFO_ECL",B.FETCH_FEES_ECL="FETCH_FEES_ECL",B.SET_FEES_ECL="SET_FEES_ECL",B.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",B.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",B.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",B.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",B.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",B.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",B.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",B.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",B.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",B.FETCH_PEERS_ECL="FETCH_PEERS_ECL",B.SET_PEERS_ECL="SET_PEERS_ECL",B.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",B.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",B.ADD_PEER_ECL="ADD_PEER_ECL",B.DETACH_PEER_ECL="DETACH_PEER_ECL",B.REMOVE_PEER_ECL="REMOVE_PEER_ECL",B.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",B.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",B.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",B.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",B.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",B.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",B.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",B.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",B.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",B.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",B.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",B.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",B.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",B.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",B.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",B.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",B.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",B.SET_INVOICES_ECL="SET_INVOICES_ECL",B.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",B.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",B.ADD_INVOICE_ECL="ADD_INVOICE_ECL",B.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",B.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",B.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",B.SET_LOOKUP_ECL="SET_LOOKUP_ECL",B.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",B.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",xe;var B})();const Ne=[{range:{min:0,max:1},description:"Requires or supports extra channel re-establish fields"},{range:{min:4,max:5},description:"Commits to a shutdown script pubkey when opening channel"},{range:{min:6,max:7},description:"More sophisticated gossip control"},{range:{min:8,max:9},description:"Requires/supports variable-length routing onion payloads"},{range:{min:10,max:11},description:"Gossip queries can include additional information"},{range:{min:12,max:13},description:"Static key for remote output"},{range:{min:14,max:15},description:"Node supports payment secret field"},{range:{min:16,max:17},description:"Node can receive basic multi-part payments"},{range:{min:18,max:19},description:"Node can create large channels"},{range:{min:20,max:21},description:"Anchor outputs"},{range:{min:22,max:23},description:"Anchor commitment type with zero fee HTLC transactions"},{range:{min:26,max:27},description:"Future segwit versions allowed in shutdown"}];var Be=(()=>{return(B=Be||(Be={})).gossip_queries_ex="Gossip queries including additional information",B.option_anchor_outputs="Anchor outputs",B.option_data_loss_protect="Extra channel re-establish fields",B.var_onion_optin="Variable-length routing onion payloads",B.option_static_remotekey="Static key for remote output",B.option_support_large_channel="Create large channels",B.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",B.payment_secret="Payment secret field",B.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",B.basic_mpp="Basic multi-part payments",B.gossip_queries="More sophisticated gossip control",B.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",B.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",B.amp="AMP",Be;var B})(),Oe=(()=>{return(B=Oe||(Oe={}))["data-loss-protect"]="Extra channel re-establish fields",B["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",B["gossip-queries"]="More sophisticated gossip control",B["tlv-onion"]="Variable-length routing onion payloads",B["ext-gossip-queries"]="Gossip queries can include additional information",B["static-remote-key"]="Static key for remote output",B["payment-addr"]="Payment secret field",B["multi-path-payments"]="Basic multi-part payments",B["wumbo-channels"]="Wumbo Channels",B.anchors="Anchor outputs",B["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",B.amp="AMP",Oe;var B})()},8104:(Ze,K,m)=>{"use strict";m.d(K,{D:()=>me});var e=m(8138),t=m(7579),v=m(2843),C=m(9646),s=m(2722),M=m(4004),c=m(262),N=m(1365),o=m(5577),L=m(2340),O=m(7731),A=m(1786),E=m(7861),k=m(6523),w=m(6529),V=m(5e3),W=m(5620),j=m(5043),$=m(7261),ee=m(9808);let me=(()=>{class ce{constructor(te,re,pe,y,i){this.httpClient=te,this.store=re,this.logger=pe,this.snackBar=y,this.titleCasePipe=i,this.lnImplementation="LND",this.childAPIUrl=L.T5,this.unSubs=[new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x]}getChildAPIUrl(){return this.childAPIUrl}getLnImplementation(){return this.lnImplementation}setChildAPIUrl(te){switch(this.lnImplementation=te,te){case"CLT":this.childAPIUrl=L.T5+"/cl";break;case"ECL":this.childAPIUrl=L.T5+"/ecl";break;default:this.childAPIUrl=L.T5+"/lnd"}}getFiatRates(){return this.httpClient.get(L.NZ.CONF_API+"/rates")}decodePayment(te,re){const pe=this.childAPIUrl+L.NZ.PAYMENTS_API+"/decode/"+te;return this.store.dispatch((0,E.ac)({payload:O.m6.DECODE_PAYMENT})),this.httpClient.get(pe).pipe((0,s.R)(this.unSubs[0]),(0,M.U)(y=>(this.store.dispatch((0,E.uO)({payload:O.m6.DECODE_PAYMENT})),y)),(0,c.K)(y=>(re?this.handleErrorWithoutAlert("Decode Payment",O.m6.DECODE_PAYMENT,y):this.handleErrorWithAlert("decodePaymentData",O.m6.DECODE_PAYMENT,"Decode Payment Failed",this.childAPIUrl+L.NZ.PAYMENTS_API+"/decode/",y),(0,v._)(()=>new Error(this.extractErrorMessage(y))))))}decodePayments(te){let re=this.childAPIUrl+L.NZ.PAYMENTS_API,pe=O.m6.DECODE_PAYMENTS;return"ECL"===this.getLnImplementation()&&(re=this.childAPIUrl+L.NZ.PAYMENTS_API+"/getsentinfos",pe=O.m6.GET_SENT_PAYMENTS),this.store.dispatch((0,E.ac)({payload:pe})),this.httpClient.post(re,{payments:te}).pipe((0,s.R)(this.unSubs[1]),(0,M.U)(y=>(this.store.dispatch((0,E.uO)({payload:pe})),y)),(0,c.K)(y=>(this.handleErrorWithAlert("decodePaymentsData",pe,pe+" Failed",re,y),(0,v._)(()=>new Error(this.extractErrorMessage(y))))))}getAliasesFromPubkeys(te,re){if(re){const pe=(new e.LE).set("pubkeys",te);return this.httpClient.get(this.childAPIUrl+L.NZ.NETWORK_API+"/nodes",{params:pe})}return this.httpClient.get(this.childAPIUrl+L.NZ.NETWORK_API+"/node/"+te)}signMessage(te){return this.store.dispatch((0,E.ac)({payload:O.m6.SIGN_MESSAGE})),this.httpClient.post(this.childAPIUrl+L.NZ.MESSAGE_API+"/sign",{message:te}).pipe((0,s.R)(this.unSubs[2]),(0,M.U)(re=>(this.store.dispatch((0,E.uO)({payload:O.m6.SIGN_MESSAGE})),re)),(0,c.K)(re=>(this.handleErrorWithAlert("signMessageData",O.m6.SIGN_MESSAGE,"Sign Message Failed",this.childAPIUrl+L.NZ.MESSAGE_API+"/sign",re),(0,v._)(()=>new Error(this.extractErrorMessage(re))))))}verifyMessage(te,re){return this.store.dispatch((0,E.ac)({payload:O.m6.VERIFY_MESSAGE})),this.httpClient.post(this.childAPIUrl+L.NZ.MESSAGE_API+"/verify",{message:te,signature:re}).pipe((0,s.R)(this.unSubs[3]),(0,M.U)(pe=>(this.store.dispatch((0,E.uO)({payload:O.m6.VERIFY_MESSAGE})),pe)),(0,c.K)(pe=>(this.handleErrorWithAlert("verifyMessageData",O.m6.VERIFY_MESSAGE,"Verify Message Failed",this.childAPIUrl+L.NZ.MESSAGE_API+"/verify",pe),(0,v._)(()=>new Error(this.extractErrorMessage(pe))))))}bumpFee(te,re,pe,y){const i={txid:te,outputIndex:re};return pe&&(i.targetConf=pe),y&&(i.satPerByte=y),this.store.dispatch((0,E.ac)({payload:O.m6.BUMP_FEE})),this.httpClient.post(this.childAPIUrl+L.NZ.WALLET_API+"/bumpfee",i).pipe((0,s.R)(this.unSubs[4]),(0,M.U)(a=>(this.store.dispatch((0,E.uO)({payload:O.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),a)),(0,c.K)(a=>(this.handleErrorWithoutAlert("Bump Fee",O.m6.BUMP_FEE,a),(0,v._)(()=>new Error(this.extractErrorMessage(a))))))}labelUTXO(te,re,pe=!0){const y={txid:te,label:re,overwrite:pe};return this.store.dispatch((0,E.ac)({payload:O.m6.LABEL_UTXO})),this.httpClient.post(this.childAPIUrl+L.NZ.WALLET_API+"/label",y).pipe((0,s.R)(this.unSubs[5]),(0,M.U)(i=>(this.store.dispatch((0,E.uO)({payload:O.m6.LABEL_UTXO})),i)),(0,c.K)(i=>(this.handleErrorWithoutAlert("Lease UTXO",O.m6.LABEL_UTXO,i),(0,v._)(()=>new Error(this.extractErrorMessage(i))))))}leaseUTXO(te,re){const pe={txid:te,outputIndex:re};return this.store.dispatch((0,E.ac)({payload:O.m6.LEASE_UTXO})),this.httpClient.post(this.childAPIUrl+L.NZ.WALLET_API+"/lease",pe).pipe((0,s.R)(this.unSubs[6])).subscribe({next:y=>{this.store.dispatch((0,E.uO)({payload:O.m6.LEASE_UTXO})),this.store.dispatch((0,k.mC)()),this.store.dispatch((0,k.Ly)());const i=new Date(1e3*y.expiration),a=Math.round(i.getTime())-60*i.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(a).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")},error:y=>(this.handleErrorWithoutAlert("Lease UTXO",O.m6.LEASE_UTXO,y),(0,v._)(()=>new Error(this.extractErrorMessage(y))))})}getForwardingHistory(te,re){const pe={end_time:re,start_time:te};return this.store.dispatch((0,E.ac)({payload:O.m6.GET_FEE_REPORT})),this.httpClient.post(this.childAPIUrl+L.NZ.SWITCH_API,pe).pipe((0,s.R)(this.unSubs[7]),(0,N.M)(this.store.select(w._f)),(0,o.z)(([y,i])=>{if(y.forwarding_events){const a=[...i.channels,...i.closedChannels];y.forwarding_events.forEach(p=>{if(a&&a.length>0)for(let u=0;u<a.length;u++){if(a[u].chan_id.toString()===p.chan_id_in&&(p.alias_in=a[u].remote_alias?a[u].remote_alias:p.chan_id_in,p.alias_out)||a[u].chan_id.toString()===p.chan_id_out&&(p.alias_out=a[u].remote_alias?a[u].remote_alias:p.chan_id_out,p.alias_in))return;u===a.length-1&&(p.alias_in||(p.alias_in=p.chan_id_in),p.alias_out||(p.alias_out=p.chan_id_out))}else p.alias_in=p.chan_id_in,p.alias_out=p.chan_id_out})}else y={};return this.store.dispatch((0,E.uO)({payload:O.m6.GET_FEE_REPORT})),(0,C.of)(y)}),(0,c.K)(y=>(this.handleErrorWithAlert("getForwardingHistoryData",O.m6.GET_FEE_REPORT,"Forwarding History Failed",this.childAPIUrl+L.NZ.SWITCH_API,y),(0,v._)(()=>new Error(this.extractErrorMessage(y))))))}extractErrorMessage(te,re="Unknown Error."){return this.titleCasePipe.transform(te.error&&te.error.error&&te.error.error.error&&te.error.error.error.error&&te.error.error.error.error.error&&"string"==typeof te.error.error.error.error.error?te.error.error.error.error.error:te.error&&te.error.error&&te.error.error.error&&te.error.error.error.error&&"string"==typeof te.error.error.error.error?te.error.error.error.error:te.error&&te.error.error&&te.error.error.error&&"string"==typeof te.error.error.error?te.error.error.error:te.error&&te.error.error&&"string"==typeof te.error.error?te.error.error:te.error&&"string"==typeof te.error?te.error:te.error&&te.error.error&&te.error.error.error&&te.error.error.error.error&&te.error.error.error.error.message&&"string"==typeof te.error.error.error.error.message?te.error.error.error.error.message:te.error&&te.error.error&&te.error.error.error&&te.error.error.error.message&&"string"==typeof te.error.error.error.message?te.error.error.error.message:te.error&&te.error.error&&te.error.error.message&&"string"==typeof te.error.error.message?te.error.error.message:te.error&&te.error.message&&"string"==typeof te.error.message?te.error.message:te.message&&"string"==typeof te.message?te.message:re)}handleErrorWithoutAlert(te,re,pe){this.logger.error("ERROR IN: "+te+"\n"+JSON.stringify(pe)),401===pe.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,E.uO)({payload:re})),this.store.dispatch((0,E.qi)({payload:{action:te,status:O.Bn.ERROR,statusCode:pe.status.toString(),message:this.extractErrorMessage(pe)}})))}handleErrorWithAlert(te,re,pe,y,i){if(this.logger.error(i),401===i.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:re}));const a=this.extractErrorMessage(i);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:pe,message:{code:i.status?i.status:"Unknown Error",message:a,URL:y},component:A.H}}})),this.store.dispatch((0,E.qi)({payload:{action:te,status:O.Bn.ERROR,statusCode:i.status.toString(),message:a,URL:y}}))}}ngOnDestroy(){this.unSubs.forEach(te=>{te.next(null),te.complete()})}}return ce.\u0275fac=function(te){return new(te||ce)(V.LFG(e.eN),V.LFG(W.yh),V.LFG(j.mQ),V.LFG($.ux),V.LFG(ee.rS))},ce.\u0275prov=V.Yz7({token:ce,factory:ce.\u0275fac}),ce})()},5043:(Ze,K,m)=>{"use strict";m.d(K,{mQ:()=>M,LG:()=>c});var e=m(2340),t=m(5e3);const{isDebugMode:v}=e.NZ,C=()=>null;let M=(()=>{class N{invokeConsoleMethod(L,O){}}return N.\u0275fac=function(L){return new(L||N)},N.\u0275prov=t.Yz7({token:N,factory:N.\u0275fac}),N})(),c=(()=>{class N{get info(){return v?console.log.bind(console):C}get warn(){return v?console.warn.bind(console):C}get error(){return v?console.error.bind(console):C}invokeConsoleMethod(L,O){(console[L]||console.log||C).apply(console,[O])}}return N.\u0275fac=function(L){return new(L||N)},N.\u0275prov=t.Yz7({token:N,factory:N.\u0275fac}),N})()},9107:(Ze,K,m)=>{"use strict";m.d(K,{W:()=>V});var e=m(8138),t=m(1135),v=m(7579),C=m(2843),s=m(2722),M=m(262),c=m(4004),N=m(2340),o=m(7731),L=m(1786),O=m(7861),A=m(5e3),E=m(5043),k=m(5620),w=m(62);let V=(()=>{class W{constructor($,ee,me,ce){this.httpClient=$,this.logger=ee,this.store=me,this.commonService=ce,this.loopUrl="",this.swaps=[],this.swapsChanged=new t.X([]),this.unSubs=[new v.x,new v.x,new v.x,new v.x,new v.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,O.ac)({payload:o.m6.GET_LOOP_SWAPS})),this.loopUrl=N.T5+N.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,s.R)(this.unSubs[0])).subscribe({next:$=>{this.store.dispatch((0,O.uO)({payload:o.m6.GET_LOOP_SWAPS})),this.swaps=$,this.swapsChanged.next(this.swaps)},error:$=>this.handleErrorWithAlert(o.m6.GET_LOOP_SWAPS,this.loopUrl,$)})}loopOut($,ee,me,ce,le,te,re,pe,y,i){const a={amount:$,targetConf:me,swapRoutingFee:ce,minerFee:le,prepayRoutingFee:te,prepayAmt:re,swapFee:pe,swapPublicationDeadline:y,destAddress:i};return""!==ee&&(a.chanId=ee),this.loopUrl=N.T5+N.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,a).pipe((0,M.K)(p=>this.handleErrorWithoutAlert("Loop Out for Channel: "+ee,o.m6.NO_SPINNER,p)))}getLoopOutTerms(){return this.loopUrl=N.T5+N.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,M.K)($=>this.handleErrorWithoutAlert("Loop Out Terms",o.m6.NO_SPINNER,$)))}getLoopOutQuote($,ee,me){let ce=new e.LE;return ce=ce.append("targetConf",ee.toString()),ce=ce.append("swapPublicationDeadline",me.toString()),this.loopUrl=N.T5+N.NZ.LOOP_API+"/out/quote/"+$,this.store.dispatch((0,O.ac)({payload:o.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ce}).pipe((0,s.R)(this.unSubs[1]),(0,c.U)(le=>(this.store.dispatch((0,O.uO)({payload:o.m6.GET_QUOTE})),le)),(0,M.K)(le=>this.handleErrorWithoutAlert("Loop Out Quote",o.m6.GET_QUOTE,le)))}getLoopOutTermsAndQuotes($){let ee=new e.LE;return ee=ee.append("targetConf",$.toString()),ee=ee.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=N.T5+N.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,O.ac)({payload:o.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ee}).pipe((0,s.R)(this.unSubs[2]),(0,c.U)(me=>(this.store.dispatch((0,O.uO)({payload:o.m6.GET_TERMS_QUOTES})),me)),(0,M.K)(me=>this.handleErrorWithAlert(o.m6.GET_TERMS_QUOTES,this.loopUrl,me)))}loopIn($,ee,me,ce,le){const te={amount:$,swapFee:ee,minerFee:me,lastHop:ce,externalHtlc:le};return this.loopUrl=N.T5+N.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,te).pipe((0,M.K)(re=>this.handleErrorWithoutAlert("Loop In",o.m6.NO_SPINNER,re)))}getLoopInTerms(){return this.loopUrl=N.T5+N.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,M.K)($=>this.handleErrorWithoutAlert("Loop In Terms",o.m6.NO_SPINNER,$)))}getLoopInQuote($,ee,me){let ce=new e.LE;return ce=ce.append("targetConf",ee.toString()),ce=ce.append("swapPublicationDeadline",me.toString()),this.loopUrl=N.T5+N.NZ.LOOP_API+"/in/quote/"+$,this.store.dispatch((0,O.ac)({payload:o.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ce}).pipe((0,s.R)(this.unSubs[3]),(0,c.U)(le=>(this.store.dispatch((0,O.uO)({payload:o.m6.GET_QUOTE})),le)),(0,M.K)(le=>this.handleErrorWithoutAlert("Loop In Qoute",o.m6.GET_QUOTE,le)))}getLoopInTermsAndQuotes($){let ee=new e.LE;return ee=ee.append("targetConf",$.toString()),ee=ee.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=N.T5+N.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,O.ac)({payload:o.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ee}).pipe((0,s.R)(this.unSubs[4]),(0,c.U)(me=>(this.store.dispatch((0,O.uO)({payload:o.m6.GET_TERMS_QUOTES})),me)),(0,M.K)(me=>this.handleErrorWithAlert(o.m6.GET_TERMS_QUOTES,this.loopUrl,me)))}getSwap($){return this.loopUrl=N.T5+N.NZ.LOOP_API+"/swap/"+$,this.httpClient.get(this.loopUrl).pipe((0,M.K)(ee=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+$,o.m6.NO_SPINNER,ee)))}handleErrorWithoutAlert($,ee,me){let ce="";return this.logger.error("ERROR IN: "+$+"\n"+JSON.stringify(me)),this.store.dispatch((0,O.uO)({payload:ee})),401===me.status?(ce="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.kS)())):503===me.status?(ce="Unable to Connect to Loop Server.",this.store.dispatch((0,O.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:me.status,message:"Unable to Connect to Loop Server",URL:$},component:L.H}}}))):ce=this.commonService.extractErrorMessage(me),(0,C._)(()=>new Error(ce))}handleErrorWithAlert($,ee,me){let ce="";return this.logger.error(me),this.store.dispatch((0,O.uO)({payload:$})),401===me.status?(ce="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,O.kS)())):503===me.status?(ce="Unable to Connect to Loop Server.",this.store.dispatch((0,O.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:me.status,message:"Unable to Connect to Loop Server",URL:ee},component:L.H}}}))):(ce=this.commonService.extractErrorMessage(me),this.store.dispatch((0,O.qR)({payload:{data:{type:o.n_.ERROR,alertTitle:"ERROR",message:{code:me.error&&me.error.error&&me.error.error.code?me.error.error.code:me.error&&me.error.code?me.error.code:me.code?me.code:me.status,message:ce,URL:ee},component:L.H}}}))),(0,C._)(()=>new Error(ce))}ngOnDestroy(){this.unSubs.forEach($=>{$.next(null),$.complete()})}}return W.\u0275fac=function($){return new($||W)(A.LFG(e.eN),A.LFG(E.mQ),A.LFG(k.yh),A.LFG(w.v))},W.\u0275prov=A.Yz7({token:W,factory:W.\u0275fac}),W})()},5986:(Ze,K,m)=>{"use strict";m.d(K,{m:()=>v});var e=m(7579),t=m(5e3);let v=(()=>{class C{constructor(){this.sessionSub=new e.x}watchSession(){return this.sessionSub.asObservable()}getItem(M){return sessionStorage.getItem(M)}getAllItems(){return sessionStorage}setItem(M,c){sessionStorage.setItem(M,c),this.sessionSub.next(sessionStorage)}removeItem(M){sessionStorage.removeItem(M),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return C.\u0275fac=function(M){return new(M||C)},C.\u0275prov=t.Yz7({token:C,factory:C.\u0275fac}),C})()},7998:(Ze,K,m)=>{"use strict";m.d(K,{d:()=>k});var e=m(1135),t=m(7579),v=m(2722),C=m(930),s=m(8306),M=m(727),c=m(4707);const N={url:"",deserializer:w=>JSON.parse(w.data),serializer:w=>JSON.stringify(w)};class L extends t.u{constructor(V,W){if(super(),this._socket=null,V instanceof s.y)this.destination=W,this.source=V;else{const j=this._config=Object.assign({},N);if(this._output=new t.x,"string"==typeof V)j.url=V;else for(const $ in V)V.hasOwnProperty($)&&(j[$]=V[$]);if(!j.WebSocketCtor&&WebSocket)j.WebSocketCtor=WebSocket;else if(!j.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new c.t}}lift(V){const W=new L(this._config,this.destination);return W.operator=V,W.source=this,W}_resetState(){this._socket=null,this.source||(this.destination=new c.t),this._output=new t.x}multiplex(V,W,j){const $=this;return new s.y(ee=>{try{$.next(V())}catch(ce){ee.error(ce)}const me=$.subscribe(ce=>{try{j(ce)&&ee.next(ce)}catch(le){ee.error(le)}},ce=>ee.error(ce),()=>ee.complete());return()=>{try{$.next(W())}catch(ce){ee.error(ce)}me.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:V,protocol:W,url:j,binaryType:$}=this._config,ee=this._output;let me=null;try{me=W?new V(j,W):new V(j),this._socket=me,$&&(this._socket.binaryType=$)}catch(le){return void ee.error(le)}const ce=new M.w0(()=>{this._socket=null,me&&1===me.readyState&&me.close()});me.onopen=le=>{const{_socket:te}=this;if(!te)return me.close(),void this._resetState();const{openObserver:re}=this._config;re&&re.next(le);const pe=this.destination;this.destination=C.Lv.create(y=>{if(1===me.readyState)try{const{serializer:i}=this._config;me.send(i(y))}catch(i){this.destination.error(i)}},y=>{const{closingObserver:i}=this._config;i&&i.next(void 0),y&&y.code?me.close(y.code,y.reason):ee.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:y}=this._config;y&&y.next(void 0),me.close(),this._resetState()}),pe&&pe instanceof c.t&&ce.add(pe.subscribe(this.destination))},me.onerror=le=>{this._resetState(),ee.error(le)},me.onclose=le=>{this._resetState();const{closeObserver:te}=this._config;te&&te.next(le),le.wasClean?ee.complete():ee.error(le)},me.onmessage=le=>{try{const{deserializer:te}=this._config;ee.next(te(le))}catch(te){ee.error(te)}}}_subscribe(V){const{source:W}=this;return W?W.subscribe(V):(this._socket||this._connectSocket(),this._output.subscribe(V),V.add(()=>{const{_socket:j}=this;0===this._output.observers.length&&(j&&(1===j.readyState||0===j.readyState)&&j.close(),this._resetState())}),V)}unsubscribe(){const{_socket:V}=this;V&&(1===V.readyState||0===V.readyState)&&V.close(),this._resetState(),super.unsubscribe()}}var O=m(5e3),A=m(5043),E=m(5986);let k=(()=>{class w{constructor(W,j){this.logger=W,this.sessionService=j,this.clWSMessages=new e.X(null),this.eclWSMessages=new e.X(null),this.lndWSMessages=new e.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x,new t.x]}connectWebSocket(W,j){(!this.socket||this.socket.closed)&&(this.wsUrl=W,this.nodeIndex=j,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new L({url:W,protocol:[this.sessionService.getItem("token"),j]}),this.subscribeToMessages())}reconnectOnError(){this.RECONNECT_TIMEOUT||this.socket&&!this.socket.closed||(this.RETRY_SECONDS=this.RETRY_SECONDS>=160?160:2*this.RETRY_SECONDS,this.RECONNECT_TIMEOUT=setTimeout(()=>{this.logger.info("Reconnecting Web Socket."),this.connectWebSocket(this.wsUrl,this.nodeIndex),this.RECONNECT_TIMEOUT=null},1e3*this.RETRY_SECONDS))}closeConnection(){this.socket&&(this.socket.complete(),this.socket=null)}subscribeToMessages(){this.socket.pipe((0,v.R)(this.unSubs[1])).subscribe({next:W=>{if((W="string"==typeof W?JSON.parse(W):W).error)this.handleError(W.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(W)),W.source){case"LND":this.lndWSMessages.next(W);break;case"CLT":this.clWSMessages.next(W);break;case"ECL":this.eclWSMessages.next(W)}},error:W=>this.handleError(W),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(W){this.logger.error(W),this.clWSMessages.error(W),this.eclWSMessages.error(W),this.lndWSMessages.error(W),this.reconnectOnError()}ngOnDestroy(){this.closeConnection(),this.clWSMessages.next(null),this.clWSMessages.complete(),this.eclWSMessages.next(null),this.eclWSMessages.complete(),this.lndWSMessages.next(null),this.lndWSMessages.complete()}}return w.\u0275fac=function(W){return new(W||w)(O.LFG(A.mQ),O.LFG(E.m))},w.\u0275prov=O.Yz7({token:w,factory:w.\u0275fac}),w})()},8750:(Ze,K,m)=>{"use strict";m.d(K,{m:()=>pi});var e=m(9808),t=m(9291),v=m(3075),C=m(8138),s=m(9444),M=m(5e3),c=m(3270),N=m(3322),o=m(7093);m(3191);let qe=(()=>{class xt{}return xt.\u0275fac=function(yt){return new(yt||xt)},xt.\u0275mod=M.oAB({type:xt}),xt.\u0275inj=M.cJS({imports:[[c.IR]]}),xt})(),ue=(()=>{class xt{constructor(yt,Wt){(0,e.PM)(Wt)&&!yt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(yt,Wt=[]){return{ngModule:xt,providers:yt.serverLoaded?[{provide:c.WU,useValue:Object.assign(Object.assign({},c.g5),yt)},{provide:c.Bs,useValue:Wt,multi:!0},{provide:c.wY,useValue:!0}]:[{provide:c.WU,useValue:Object.assign(Object.assign({},c.g5),yt)},{provide:c.Bs,useValue:Wt,multi:!0}]}}}return xt.\u0275fac=function(yt){return new(yt||xt)(M.LFG(c.wY),M.LFG(M.Lbi))},xt.\u0275mod=M.oAB({type:xt}),xt.\u0275inj=M.cJS({imports:[[o.ae,N.aT,qe],o.ae,N.aT,qe]}),xt})();var $e=m(5113),St=m(508),Rt=m(8966),yi=m(1079),Ri=m(7544),Ii=m(7423);m(449),m(5664);let Nn=(()=>{class xt{}return xt.\u0275fac=function(yt){return new(yt||xt)},xt.\u0275mod=M.oAB({type:xt}),xt.\u0275inj=M.cJS({imports:[[St.BQ,St.si],St.BQ]}),xt})();var br=m(9224),wi=m(7446),Fi=m(6856),sn=m(1125),Sr=m(3954),ya=m(5245),qn=m(7531),Rr=m(4623),ba=m(2181),xa=m(6087),Za=m(5899),zr=m(773),ts=m(9814),rr=m(4107),ua=m(2638),la=m(2368);m(1159),m(6360),m(925),m(727),m(226);let Sa=(()=>{class xt{}return xt.\u0275fac=function(yt){return new(yt||xt)},xt.\u0275mod=M.oAB({type:xt}),xt.\u0275inj=M.cJS({imports:[[e.ez,St.BQ],St.BQ]}),xt})();var Nr=m(7261),na=m(4847),Cr=m(5615),is=m(2075),Ga=m(3251),fr=m(4594),fa=m(7238),ra=m(149),pa=m(6046),Zn=m(159),ns=m(644),Wa=m(9776);let Xe=(()=>{class xt extends Wa.Xj{_createContainer(){const yt=document.createElement("div");yt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(yt),this._containerElement=yt}}return xt.\u0275fac=function(){let ei;return function(Wt){return(ei||(ei=M.n5z(xt)))(Wt||xt)}}(),xt.\u0275prov=M.Yz7({token:xt,factory:xt.\u0275fac}),xt})();var _e=m(5043),Q=m(7731);const ne={suppressScrollX:!1,suppressScrollY:!1};let Qe=(()=>{class xt extends St.LF{format(yt,Wt){if("input"===Wt){let xi=yt.getDate().toString();return xi=+xi<10?"0"+xi:xi,xi+"/"+Q.gg[yt.getMonth()].name.toUpperCase()+"/"+yt.getFullYear()}return Q.gg[yt.getMonth()].name.toUpperCase()+" "+yt.getFullYear()}}return xt.\u0275fac=function(){let ei;return function(Wt){return(ei||(ei=M.n5z(xt)))(Wt||xt)}}(),xt.\u0275prov=M.Yz7({token:xt,factory:xt.\u0275fac}),xt})();const Yt={parse:{dateInput:{day:"numeric",month:"short",year:"numeric"}},display:{dateInput:"input",monthYearLabel:{month:"short",year:"numeric"},dateA11yLabel:{day:"numeric",month:"short",year:"numeric"},monthYearA11yLabel:{month:"short",year:"numeric"}}};let pi=(()=>{class xt{}return xt.\u0275fac=function(yt){return new(yt||xt)},xt.\u0275mod=M.oAB({type:xt}),xt.\u0275inj=M.cJS({providers:[{provide:_e.mQ,useClass:_e.LG},{provide:ns.op,useValue:ne},{provide:Nr.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:Rt.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:St._A,useClass:Qe},{provide:St.sG,useValue:Yt},{provide:Wa.Xj,useClass:Xe},e.JJ,e.rS,e.uU],imports:[[e.ez,v.u5,v.UX,s.uH,ue,$e.xu,Rt.Is,Ii.ot,Nn,br.QW,wi.p9,sn.To,Sr.N6,Fi.FA,St.XK,ya.Ps,qn.c,Rr.ie,ba.Tx,Za.Cv,zr.Cq,ts.Fk,ra.dp,rr.LD,ua.SJ,la.rP,na.JX,is.p0,fr.g0,fa.AV,Ri.g,xa.TU,Cr.T5,Sa,Ga.Nh,Nr.ZX,yi.Bb,pa.a4,Zn.OF,t.Bz,C.JF,ns.Xd],v.u5,v.UX,s.uH,ue,$e.xu,Rt.Is,Ii.ot,Nn,br.QW,wi.p9,sn.To,Sr.N6,Fi.FA,St.XK,ya.Ps,qn.c,Rr.ie,ba.Tx,Za.Cv,zr.Cq,ts.Fk,ra.dp,rr.LD,ua.SJ,la.rP,na.JX,is.p0,fr.g0,fa.AV,Ri.g,xa.TU,Cr.T5,Sa,Ga.Nh,Nr.ZX,yi.Bb,pa.a4,Zn.OF,ns.Xd]}),xt})()},7861:(Ze,K,m)=>{"use strict";m.d(K,{lC:()=>C,qi:()=>s,ts:()=>M,jW:()=>c,ac:()=>N,uO:()=>o,qR:()=>L,M6:()=>O,c1:()=>A,yb:()=>E,tj:()=>k,Q2:()=>w,tw:()=>W,vI:()=>j,ey:()=>$,XT:()=>ee,zQ:()=>me,Uy:()=>ce,fk:()=>le,Tm:()=>te,jS:()=>re,_V:()=>pe,kS:()=>i,c0:()=>a,QO:()=>u,x4:()=>D,dc:()=>x});var e=m(5620),t=m(7731);(0,e.PH)(t.pg.VOID);const C=(0,e.PH)(t.pg.SET_API_URL_ECL,(0,e.Ky)()),s=(0,e.PH)(t.pg.UPDATE_API_CALL_STATUS_ROOT,(0,e.Ky)()),M=(0,e.PH)(t.pg.CLOSE_ALL_DIALOGS),c=(0,e.PH)(t.pg.OPEN_SNACK_BAR,(0,e.Ky)()),N=(0,e.PH)(t.pg.OPEN_SPINNER,(0,e.Ky)()),o=(0,e.PH)(t.pg.CLOSE_SPINNER,(0,e.Ky)()),L=(0,e.PH)(t.pg.OPEN_ALERT,(0,e.Ky)()),O=(0,e.PH)(t.pg.CLOSE_ALERT,(0,e.Ky)()),A=(0,e.PH)(t.pg.OPEN_CONFIRMATION,(0,e.Ky)()),E=(0,e.PH)(t.pg.CLOSE_CONFIRMATION,(0,e.Ky)()),k=(0,e.PH)(t.pg.SHOW_PUBKEY),w=(0,e.PH)(t.pg.FETCH_CONFIG,(0,e.Ky)()),W=((0,e.PH)(t.pg.SHOW_CONFIG,(0,e.Ky)()),(0,e.PH)(t.pg.UPDATE_SELECTED_NODE_OPTIONS)),j=(0,e.PH)(t.pg.RESET_ROOT_STORE,(0,e.Ky)()),$=(0,e.PH)(t.pg.FETCH_RTL_CONFIG),ee=(0,e.PH)(t.pg.SET_RTL_CONFIG,(0,e.Ky)()),me=(0,e.PH)(t.pg.SAVE_SETTINGS,(0,e.Ky)()),ce=(0,e.PH)(t.pg.TWO_FA_SAVE_SETTINGS,(0,e.Ky)()),le=(0,e.PH)(t.pg.SET_SELECTED_NODE,(0,e.Ky)()),te=(0,e.PH)(t.pg.UPDATE_ROOT_NODE_SETTINGS,(0,e.Ky)()),re=(0,e.PH)(t.pg.UPDATE_SERVICE_SETTINGS,(0,e.Ky)()),pe=(0,e.PH)(t.pg.SET_NODE_DATA,(0,e.Ky)()),i=((0,e.PH)(t.pg.SAVE_SSO,(0,e.Ky)()),(0,e.PH)(t.pg.LOGOUT)),a=(0,e.PH)(t.pg.RESET_PASSWORD,(0,e.Ky)()),u=((0,e.PH)(t.pg.RESET_PASSWORD_RES,(0,e.Ky)()),(0,e.PH)(t.pg.IS_AUTHORIZED,(0,e.Ky)())),D=((0,e.PH)(t.pg.IS_AUTHORIZED_RES,(0,e.Ky)()),(0,e.PH)(t.pg.LOGIN,(0,e.Ky)())),x=((0,e.PH)(t.pg.VERIFY_TWO_FA,(0,e.Ky)()),(0,e.PH)(t.pg.FETCH_FILE,(0,e.Ky)()));(0,e.PH)(t.pg.SHOW_FILE,(0,e.Ky)())},3093:(Ze,K,m)=>{"use strict";m.d(K,{V:()=>Ki});var e=m(6642),t=m(7579),v=m(9646),C=m(8306),s=m(4128),M=m(4004),c=m(5698),N=m(1365),o=m(5577),L=m(262),O=m(2722),A=m(2340),E=m(7731),k=m(8966),w=m(5e3),V=m(7093),W=m(773);let j=(()=>{class at{constructor(gt,Lt){this.dialogRef=gt,this.data=Lt}}return at.\u0275fac=function(gt){return new(gt||at)(w.Y36(k.so),w.Y36(k.WI))},at.\u0275cmp=w.Xpm({type:at,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(gt,Lt){1&gt&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w._UZ(2,"mat-spinner"),w.TgZ(3,"h1"),w._uU(4),w.qZA(),w.qZA(),w.qZA()),2&gt&&(w.xp6(4),w.Oqu(Lt.data.titleMessage))},directives:[V.xw,V.Wh,W.$g],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),at})();var $=m(5043),ee=m(7261),me=m(62),ce=m(9808),le=m(3322),te=m(9224),re=m(7423),pe=m(159),y=m(644),i=m(5245),a=m(3390),p=m(6895),u=m(4834);const _=["scrollContainer"];function D(at,Qt){if(1&at&&w._UZ(0,"qr-code",15),2&at){const gt=w.oxw();w.Q6J("value",gt.showQRField)("size",200)("errorCorrectionLevel","L")}}function I(at,Qt){1&at&&w.GkF(0)}const x=function(at){return{"h-40":at}};function r(at,Qt){if(1&at&&(w.ynx(0),w.TgZ(1,"mat-card-content",16,17),w.YNc(3,I,1,0,"ng-container",18),w.qZA(),w.BQk()),2&at){const gt=w.oxw(),Lt=w.MAs(20);w.xp6(1),w.Q6J("ngClass",w.VKq(2,x,gt.data.scrollable)),w.xp6(2),w.Q6J("ngTemplateOutlet",Lt)}}function b(at,Qt){1&at&&w.GkF(0)}function Z(at,Qt){if(1&at&&(w.ynx(0),w.TgZ(1,"mat-card-content",19),w.YNc(2,b,1,0,"ng-container",18),w.qZA(),w.BQk()),2&at){w.oxw();const gt=w.MAs(20);w.xp6(2),w.Q6J("ngTemplateOutlet",gt)}}function P(at,Qt){1&at&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_downward"),w.qZA())}function U(at,Qt){1&at&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_upward"),w.qZA())}function ye(at,Qt){if(1&at){const gt=w.EpF();w.TgZ(0,"div",20),w.TgZ(1,"button",21),w.NdJ("click",function(){return w.CHM(gt),w.oxw().onScroll()}),w.YNc(2,P,2,0,"mat-icon",22),w.YNc(3,U,2,0,"mat-icon",22),w.qZA(),w.qZA()}if(2&at){const gt=w.oxw();w.xp6(2),w.Q6J("ngIf","DOWN"===gt.scrollDirection),w.xp6(1),w.Q6J("ngIf","UP"===gt.scrollDirection)}}function xe(at,Qt){1&at&&(w.TgZ(0,"button",24),w._uU(1,"OK"),w.qZA()),2&at&&w.Q6J("mat-dialog-close",!1)}function Ne(at,Qt){1&at&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&at&&w.Q6J("mat-dialog-close",!1)}function Be(at,Qt){if(1&at){const gt=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(ui){return w.CHM(gt),w.oxw().onCopyField(ui)}),w._uU(1),w.qZA()}if(2&at){const gt=w.oxw();w.Q6J("payload",gt.showCopyField),w.xp6(1),w.hij("Copy ",gt.showCopyName,"")}}function Oe(at,Qt){1&at&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&at&&w.Q6J("mat-dialog-close",!1)}function B(at,Qt){if(1&at){const gt=w.EpF();w.TgZ(0,"button",26),w.NdJ("copied",function(ui){return w.CHM(gt),w.oxw().onCopyField(ui)}),w._uU(1),w.qZA()}if(2&at){const gt=w.oxw();w.Q6J("payload",gt.showQRField),w.xp6(1),w.hij("Copy ",gt.showQRName,"")}}function Me(at,Qt){if(1&at&&w._UZ(0,"qr-code",15),2&at){const gt=w.oxw(2);w.Q6J("value",gt.showQRField)("size",200)("errorCorrectionLevel","L")}}function we(at,Qt){if(1&at&&(w.TgZ(0,"p",32),w._uU(1),w.qZA()),2&at){const gt=w.oxw(2);w.xp6(1),w.Oqu(gt.data.titleMessage)}}function ae(at,Qt){1&at&&w._UZ(0,"span",46),2&at&&w.Q6J("innerHTML",Qt.$implicit,w.oJD)}function We(at,Qt){if(1&at&&(w.ynx(0),w.YNc(1,ae,1,1,"span",45),w.BQk()),2&at){const gt=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",gt.value)}}function vt(at,Qt){if(1&at&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&at){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*gt.value,"dd/MMM/y HH:mm"))}}function Pe(at,Qt){if(1&at&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&at){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,gt.value,gt.digitsInfo?gt.digitsInfo:"1.0-3"))}}function Ve(at,Qt){if(1&at&&(w.ynx(0),w._uU(1),w.BQk()),2&at){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(gt.value?"True":"False")}}function he(at,Qt){1&at&&(w.TgZ(0,"mat-icon",51),w._uU(1,"info"),w.qZA())}const Ee=function(at){return{"failed-status":at}};function ke(at,Qt){if(1&at&&(w.TgZ(0,"p",49),w._uU(1),w.YNc(2,he,2,0,"mat-icon",50),w.qZA()),2&at){const gt=w.oxw(3).$implicit,Lt=w.oxw(4);w.Q6J("ngClass",w.VKq(3,Ee,gt.value===Lt.LoopStateEnum.FAILED)),w.xp6(1),w.hij(" ",gt.value," "),w.xp6(1),w.Q6J("ngIf",gt.value===Lt.LoopStateEnum.FAILED)}}function q(at,Qt){if(1&at&&w._uU(0),2&at){const gt=w.oxw(3).$implicit;w.Oqu(gt.value)}}function J(at,Qt){if(1&at&&(w.ynx(0),w.YNc(1,ke,3,5,"p",47),w.YNc(2,q,1,1,"ng-template",null,48,w.W1O),w.BQk()),2&at){const gt=w.MAs(3),Lt=w.oxw(2).$implicit,ui=w.oxw(4);w.xp6(1),w.Q6J("ngIf","SWAP"===ui.data.openedBy&&"state"===Lt.key)("ngIfElse",gt)}}function oe(at,Qt){if(1&at&&(w.TgZ(0,"span"),w.TgZ(1,"span",42),w.YNc(2,We,2,1,"ng-container",43),w.YNc(3,vt,3,4,"ng-container",43),w.YNc(4,Pe,3,4,"ng-container",43),w.YNc(5,Ve,2,1,"ng-container",43),w.YNc(6,J,4,2,"ng-container",44),w.qZA(),w.qZA()),2&at){const gt=w.oxw().$implicit,Lt=w.oxw(4);w.xp6(1),w.Q6J("ngSwitch",gt.type),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.BOOLEAN)}}function Ce(at,Qt){1&at&&(w.TgZ(0,"span",52),w._uU(1,"\xa0"),w.qZA())}function Ue(at,Qt){if(1&at&&(w.TgZ(0,"div",37),w.TgZ(1,"h4",38),w._uU(2),w.qZA(),w.YNc(3,oe,7,5,"span",39),w.YNc(4,Ce,2,0,"ng-template",null,40,w.W1O),w._UZ(6,"mat-divider",41),w.qZA()),2&at){const gt=Qt.$implicit,Lt=w.MAs(5);w.s9C("fxFlex.gt-md",gt.width),w.xp6(2),w.Oqu(gt.title),w.xp6(1),w.Q6J("ngIf",gt&&(!!gt.value||0===gt.value))("ngIfElse",Lt)}}function ht(at,Qt){if(1&at&&(w.TgZ(0,"div"),w.TgZ(1,"div",35),w.YNc(2,Ue,7,4,"div",36),w.qZA(),w.qZA()),2&at){const gt=Qt.$implicit;w.xp6(2),w.Q6J("ngForOf",gt)}}function it(at,Qt){if(1&at&&(w.TgZ(0,"div",33),w.YNc(1,ht,3,1,"div",34),w.qZA()),2&at){const gt=w.oxw(2);w.xp6(1),w.Q6J("ngForOf",gt.messageObjs)}}const ft=function(at){return{"display-none":at}};function nt(at,Qt){if(1&at&&(w.TgZ(0,"div",27),w.TgZ(1,"div",28),w.YNc(2,Me,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",29),w.YNc(4,we,2,1,"p",30),w.YNc(5,it,2,1,"div",31),w.qZA(),w.qZA()),2&at){const gt=w.oxw();w.xp6(1),w.Q6J("ngClass",w.VKq(4,ft,""===gt.showQRField||gt.screenSize!==gt.screenSizeEnum.XS&&gt.screenSize!==gt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==gt.showQRField),w.xp6(2),w.Q6J("ngIf",gt.data.titleMessage),w.xp6(1),w.Q6J("ngIf",(null==gt.messageObjs?null:gt.messageObjs.length)>0)}}let st=(()=>{class at{constructor(gt,Lt,ui,Ci,Wi,$i){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.snackBar=Ci,this.commonService=Wi,this.renderer=$i,this.LoopStateEnum=E.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.screenSize="",this.screenSizeEnum=E.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(gt){gt&&(this.scrollContainer=gt,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",Lt=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",Lt=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message,this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)}ngAfterViewChecked(){setTimeout(()=>{this.shouldScroll=this.scrollContainer&&this.scrollContainer.nativeElement&&this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")},500)}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(gt){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+gt)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return at.\u0275fac=function(gt){return new(gt||at)(w.Y36(k.so),w.Y36(k.WI),w.Y36($.mQ),w.Y36(ee.ux),w.Y36(me.v),w.Y36(w.Qsj))},at.\u0275cmp=w.Xpm({type:at,selectors:[["rtl-alert-message"]],viewQuery:function(gt,Lt){if(1&gt&&w.Gf(_,5),2&gt){let ui;w.iGM(ui=w.CRH())&&(Lt.container=ui.first)}},decls:21,vars:14,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","ml-1",3,"ngClass"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],[3,"fxFlex"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["contentBlock",""],[3,"value","size","errorCorrectionLevel"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],["scrollContainer",""],[4,"ngTemplateOutlet"],[1,"padding-gap-x-large"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","mb-1",3,"ngClass"],["fxLayout","column","fxFlex","100"],["fxLayoutAlign","start center","class","pb-2",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-2"],["fxFlex","100"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["noStyleBlock",""],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(gt,Lt){1&gt&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w.YNc(2,D,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",3),w.TgZ(4,"mat-card-header",4),w.TgZ(5,"div",5),w.TgZ(6,"span",6),w._uU(7),w.qZA(),w.qZA(),w.TgZ(8,"button",7),w.NdJ("click",function(){return Lt.onClose()}),w._uU(9,"X"),w.qZA(),w.qZA(),w.YNc(10,r,4,4,"ng-container",8),w.YNc(11,Z,3,1,"ng-container",8),w.YNc(12,ye,4,2,"div",9),w.TgZ(13,"div",10),w.YNc(14,xe,2,1,"button",11),w.YNc(15,Ne,2,1,"button",12),w.YNc(16,Be,2,2,"button",13),w.YNc(17,Oe,2,1,"button",12),w.YNc(18,B,2,2,"button",13),w.qZA(),w.qZA(),w.qZA(),w.YNc(19,nt,6,6,"ng-template",null,14,w.W1O)),2&gt&&(w.xp6(1),w.Q6J("ngClass",w.VKq(12,ft,""===Lt.showQRField||Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM)),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField),w.xp6(1),w.Q6J("fxFlex",""===Lt.showQRField||Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM?"100":"70"),w.xp6(4),w.Oqu(Lt.data.alertTitle||Lt.alertTypeEnum[Lt.data.type]),w.xp6(3),w.Q6J("ngIf",Lt.data.scrollable),w.xp6(1),w.Q6J("ngIf",!Lt.data.scrollable),w.xp6(1),w.Q6J("ngIf",Lt.data.scrollable&&Lt.shouldScroll),w.xp6(2),w.Q6J("ngIf",(!Lt.showQRField||""===Lt.showQRField)&&""===Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showCopyName),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField),w.xp6(1),w.Q6J("ngIf",""!==Lt.showQRField))},directives:[V.xw,V.Wh,V.yH,ce.mk,le.oO,ce.O5,te.dk,re.lW,pe.uU,te.dn,y.$V,ce.tP,i.Hw,a.h,k.ZT,p.y,ce.sg,u.d,ce.RF,ce.n9,ce.ED],pipes:[ce.uU,ce.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),at})();var wt=m(801),Bt=m(7861),Pt=m(5620),Vt=m(3075),Oi=m(9444),jt=m(7322),ti=m(7531),Pi=m(6534);function si(at,Qt){if(1&at&&(w.TgZ(0,"div",17),w._UZ(1,"fa-icon",18),w.TgZ(2,"span"),w._uU(3),w.qZA(),w.qZA()),2&at){const gt=w.oxw();w.xp6(1),w.Q6J("icon",gt.faExclamationTriangle),w.xp6(2),w.Oqu(gt.warningMessage)}}function di(at,Qt){if(1&at&&(w.TgZ(0,"div",19),w._UZ(1,"fa-icon",18),w.TgZ(2,"span"),w._uU(3),w.qZA(),w.qZA()),2&at){const gt=w.oxw();w.xp6(1),w.Q6J("icon",gt.faInfoCircle),w.xp6(2),w.Oqu(gt.informationMessage)}}function ze(at,Qt){if(1&at&&(w.TgZ(0,"p",20),w._uU(1),w.qZA()),2&at){const gt=w.oxw();w.xp6(1),w.Oqu(gt.data.titleMessage)}}function Te(at,Qt){if(1&at&&(w.TgZ(0,"span",33),w._uU(1),w.qZA()),2&at){const gt=Qt.$implicit;w.xp6(1),w.Oqu(gt)}}function Y(at,Qt){if(1&at&&(w.ynx(0),w.YNc(1,Te,2,1,"span",32),w.BQk()),2&at){const gt=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",gt.value)}}function ge(at,Qt){if(1&at&&(w.ynx(0),w._uU(1),w.ALo(2,"date"),w.BQk()),2&at){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,1e3*gt.value,"dd/MMM/y HH:mm"))}}function Ae(at,Qt){if(1&at&&(w.ynx(0),w._uU(1),w.ALo(2,"number"),w.BQk()),2&at){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(w.xi3(2,1,gt.value,"1.0-3"))}}function et(at,Qt){if(1&at&&(w.ynx(0),w._uU(1),w.BQk()),2&at){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(!0===gt.value?"True":"False")}}function $t(at,Qt){if(1&at&&(w.ynx(0),w._uU(1),w.BQk()),2&at){const gt=w.oxw(2).$implicit;w.xp6(1),w.Oqu(gt.value)}}function Nt(at,Qt){if(1&at&&(w.TgZ(0,"span"),w.TgZ(1,"span",29),w.YNc(2,Y,2,1,"ng-container",30),w.YNc(3,ge,3,4,"ng-container",30),w.YNc(4,Ae,3,4,"ng-container",30),w.YNc(5,et,2,1,"ng-container",30),w.YNc(6,$t,2,1,"ng-container",31),w.qZA(),w.qZA()),2&at){const gt=w.oxw().$implicit,Lt=w.oxw(3);w.xp6(1),w.Q6J("ngSwitch",gt.type),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.ARRAY),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.DATE_TIME),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.NUMBER),w.xp6(1),w.Q6J("ngSwitchCase",Lt.dataTypeEnum.BOOLEAN)}}function Xt(at,Qt){1&at&&(w.TgZ(0,"span",34),w._uU(1,"\xa0"),w.qZA())}function lt(at,Qt){if(1&at&&(w.TgZ(0,"div",24),w.TgZ(1,"h4",25),w._uU(2),w.qZA(),w.YNc(3,Nt,7,5,"span",26),w.YNc(4,Xt,2,0,"ng-template",null,27,w.W1O),w._UZ(6,"mat-divider",28),w.qZA()),2&at){const gt=Qt.$implicit,Lt=w.MAs(5);w.s9C("fxFlex.gt-md",gt.width),w.xp6(2),w.Oqu(gt.title),w.xp6(1),w.Q6J("ngIf",gt&&gt.value)("ngIfElse",Lt)}}function Re(at,Qt){if(1&at&&(w.TgZ(0,"div"),w.TgZ(1,"div",22),w.YNc(2,lt,7,4,"div",23),w.qZA(),w.qZA()),2&at){const gt=Qt.$implicit;w.xp6(2),w.Q6J("ngForOf",gt)}}function Fe(at,Qt){if(1&at&&(w.TgZ(0,"div"),w.YNc(1,Re,3,1,"div",21),w.qZA()),2&at){const gt=w.oxw();w.xp6(1),w.Q6J("ngForOf",gt.messageObjs)}}function rt(at,Qt){if(1&at&&(w.TgZ(0,"p",20),w._uU(1),w.qZA()),2&at){const gt=w.oxw(2);w.xp6(1),w.Oqu(gt.data.titleMessage)}}function ot(at,Qt){if(1&at){const gt=w.EpF();w.TgZ(0,"input",41),w.NdJ("ngModelChange",function(ui){return w.CHM(gt),w.oxw().$implicit.inputValue=ui}),w.ALo(1,"lowercase"),w.qZA()}if(2&at){const gt=w.oxw(),Lt=gt.index,ui=gt.$implicit;w.MGl("name","input",Lt,""),w.Q6J("placeholder",ui.placeholder)("min",ui.min)("step",ui.step)("type",w.lcZ(1,7,ui.inputType))("ngModel",ui.inputValue)("tabindex",Lt+1)}}function At(at,Qt){if(1&at){const gt=w.EpF();w.TgZ(0,"input",42),w.NdJ("ngModelChange",function(ui){return w.CHM(gt),w.oxw().$implicit.inputValue=ui}),w.ALo(1,"lowercase"),w.qZA()}if(2&at){const gt=w.oxw(),Lt=gt.index,ui=gt.$implicit;w.MGl("name","input",Lt,""),w.Q6J("placeholder",ui.placeholder)("min",ui.min)("step",ui.step)("type",w.lcZ(1,7,ui.inputType))("ngModel",ui.inputValue)("tabindex",Lt+1)}}function li(at,Qt){if(1&at&&(w.TgZ(0,"mat-error"),w._uU(1),w.qZA()),2&at){const gt=w.oxw().$implicit;w.xp6(1),w.hij("",gt.placeholder," is required.")}}function Ut(at,Qt){if(1&at&&(w.TgZ(0,"mat-form-field",38),w.YNc(1,ot,2,9,"input",39),w.YNc(2,At,2,9,"input",40),w.YNc(3,li,2,1,"mat-error",11),w.TgZ(4,"mat-hint"),w._uU(5),w.qZA(),w.qZA()),2&at){const gt=Qt.$implicit,Lt=Qt.index;w.Q6J("fxFlex",gt.width),w.xp6(1),w.Q6J("ngIf",0===Lt),w.xp6(1),w.Q6J("ngIf",0!==Lt),w.xp6(1),w.Q6J("ngIf",!gt.inputValue),w.xp6(2),w.Oqu(gt.hintFunction?gt.hintFunction(gt.inputValue):gt.hintText)}}function Ft(at,Qt){if(1&at&&(w.TgZ(0,"div",35),w.YNc(1,rt,2,1,"p",10),w.TgZ(2,"div",36),w.YNc(3,Ut,6,5,"mat-form-field",37),w.qZA(),w.qZA()),2&at){const gt=w.oxw();w.xp6(1),w.Q6J("ngIf",gt.data.titleMessage),w.xp6(2),w.Q6J("ngForOf",gt.getInputs)}}function Si(at,Qt){if(1&at){const gt=w.EpF();w.TgZ(0,"button",43),w.NdJ("click",function(){w.CHM(gt);const ui=w.oxw();return ui.onClose(ui.getInputs)}),w._uU(1),w.qZA()}if(2&at){const gt=w.oxw();w.xp6(1),w.Oqu(gt.yesBtnText)}}function ai(at,Qt){if(1&at){const gt=w.EpF();w.TgZ(0,"button",44),w.NdJ("click",function(){return w.CHM(gt),w.oxw().onClose(!0)}),w._uU(1),w.qZA()}if(2&at){const gt=w.oxw();w.xp6(1),w.Oqu(gt.yesBtnText)}}let ci=(()=>{class at{constructor(gt,Lt,ui,Ci){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.store=Ci,this.faInfoCircle=wt.sqG,this.faExclamationTriangle=wt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.alertTypeEnum=E.n_,this.dataTypeEnum=E.Gi,this.getInputs=[{placeholder:"",inputType:"text",inputValue:"",hintText:"",hintFunction:null}]}ngOnInit(){this.informationMessage=this.data.informationMessage,this.warningMessage=this.data.warningMessage,this.flgShowInput=this.data.flgShowInput,this.getInputs=this.data.getInputs,this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.messageObjs=this.data.message,this.data.type===E.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onClose(gt){if(gt&&this.getInputs&&this.getInputs.some(Lt=>!Lt.inputValue))return!0;this.store.dispatch((0,Bt.yb)({payload:gt}))}}return at.\u0275fac=function(gt){return new(gt||at)(w.Y36(k.so),w.Y36(k.WI),w.Y36($.mQ),w.Y36(Pt.yh))},at.\u0275cmp=w.Xpm({type:at,selectors:[["rtl-confirmation-message"]],decls:20,vars:9,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","2",1,"mr-1",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block",4,"ngFor","ngForOf"],[1,"display-block"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngFor","ngForOf"],[3,"fxFlex"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(gt,Lt){1&gt&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w.TgZ(2,"mat-card-header",2),w.TgZ(3,"div",3),w.TgZ(4,"span",4),w._uU(5),w.qZA(),w.qZA(),w.TgZ(6,"button",5),w.NdJ("click",function(){return Lt.onClose(!1)}),w._uU(7,"X"),w.qZA(),w.qZA(),w.TgZ(8,"mat-card-content",6),w.TgZ(9,"form",7),w.YNc(10,si,4,2,"div",8),w.YNc(11,di,4,2,"div",9),w.YNc(12,ze,2,1,"p",10),w.YNc(13,Fe,2,1,"div",11),w.YNc(14,Ft,4,2,"div",12),w.TgZ(15,"div",13),w.TgZ(16,"button",14),w.NdJ("click",function(){return Lt.onClose(!1)}),w._uU(17),w.qZA(),w.YNc(18,Si,2,1,"button",15),w.YNc(19,ai,2,1,"button",16),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()),2&gt&&(w.xp6(5),w.Oqu(Lt.data.alertTitle||Lt.alertTypeEnum[Lt.data.type]),w.xp6(5),w.Q6J("ngIf",Lt.warningMessage&&""!==Lt.warningMessage),w.xp6(1),w.Q6J("ngIf",Lt.informationMessage&&""!==Lt.informationMessage),w.xp6(1),w.Q6J("ngIf",Lt.data.titleMessage&&!Lt.flgShowInput),w.xp6(1),w.Q6J("ngIf",(null==Lt.messageObjs?null:Lt.messageObjs.length)>0),w.xp6(1),w.Q6J("ngIf",Lt.flgShowInput),w.xp6(3),w.Oqu(Lt.noBtnText),w.xp6(1),w.Q6J("ngIf",Lt.flgShowInput),w.xp6(1),w.Q6J("ngIf",!Lt.flgShowInput))},directives:[V.xw,V.yH,te.dk,V.Wh,re.lW,te.dn,Vt._Y,Vt.JL,Vt.F,ce.O5,Oi.BN,ce.sg,u.d,ce.RF,ce.n9,ce.ED,jt.KE,jt.bx,ti.Nt,Pi.q,Vt.Fj,a.h,Vt.Q7,Vt.JJ,Vt.On,jt.TO],pipes:[ce.uU,ce.JJ,ce.i8],styles:[""]}),at})();var rn=m(1786),Vi=m(4107),Di=m(508);function Xi(at,Qt){if(1&at&&(w.TgZ(0,"mat-option",23),w._uU(1),w.qZA()),2&at){const gt=Qt.$implicit;w.Q6J("value",gt),w.xp6(1),w.hij(" ",gt.infoName," ")}}function Ke(at,Qt){if(1&at){const gt=w.EpF();w.TgZ(0,"div",13),w.TgZ(1,"mat-form-field",20),w.TgZ(2,"mat-select",21),w.NdJ("valueChange",function(ui){return w.CHM(gt),w.oxw().selInfoType=ui}),w.YNc(3,Xi,2,2,"mat-option",22),w.qZA(),w.qZA(),w.qZA()}if(2&at){const gt=w.oxw();w.xp6(2),w.Q6J("value",gt.selInfoType),w.xp6(1),w.Q6J("ngForOf",gt.infoTypes)}}const mt=function(at){return{"display-none":at}};let ve=(()=>{class at{constructor(gt,Lt,ui,Ci,Wi){this.dialogRef=gt,this.data=Lt,this.logger=ui,this.snackBar=Ci,this.commonService=Wi,this.faReceipt=wt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=E.cu}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((gt,Lt)=>{this.infoTypes.push({infoID:Lt+1,infoKey:"node URI "+(Lt+1),infoName:"Node URI "+(Lt+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(gt){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+gt)}}return at.\u0275fac=function(gt){return new(gt||at)(w.Y36(k.so),w.Y36(k.WI),w.Y36($.mQ),w.Y36(ee.ux),w.Y36(me.v))},at.\u0275cmp=w.Xpm({type:at,selectors:[["rtl-show-pubkey"]],decls:26,vars:19,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"value","size","errorCorrectionLevel"],["fxFlex","100","fxFlex.gt-sm","70"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(gt,Lt){1&gt&&(w.TgZ(0,"div",0),w.TgZ(1,"div",1),w._UZ(2,"qr-code",2),w.qZA(),w.TgZ(3,"div",3),w.TgZ(4,"mat-card-header",4),w.TgZ(5,"div",5),w._UZ(6,"fa-icon",6),w.TgZ(7,"span",7),w._uU(8),w.qZA(),w.qZA(),w.TgZ(9,"button",8),w.NdJ("click",function(){return Lt.onClose()}),w._uU(10,"X"),w.qZA(),w.qZA(),w.TgZ(11,"mat-card-content",9),w.TgZ(12,"div",10),w.TgZ(13,"div",11),w._UZ(14,"qr-code",2),w.qZA(),w.YNc(15,Ke,4,2,"div",12),w.TgZ(16,"div",13),w.TgZ(17,"div",14),w.TgZ(18,"h4",15),w._uU(19),w.qZA(),w.TgZ(20,"span",16),w._uU(21),w.qZA(),w.qZA(),w.qZA(),w._UZ(22,"mat-divider",17),w.TgZ(23,"div",18),w.TgZ(24,"button",19),w.NdJ("copied",function(Ci){return Lt.onCopyPubkey(Ci)}),w._uU(25),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA(),w.qZA()),2&gt&&(w.xp6(1),w.Q6J("ngClass",w.VKq(15,mt,Lt.screenSize===Lt.screenSizeEnum.XS||Lt.screenSize===Lt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.Q6J("size",Lt.qrWidth)("errorCorrectionLevel","L"),w.xp6(4),w.Q6J("icon",Lt.faReceipt),w.xp6(2),w.Oqu(Lt.selInfoType.infoName),w.xp6(5),w.Q6J("ngClass",w.VKq(17,mt,Lt.screenSize!==Lt.screenSizeEnum.XS&&Lt.screenSize!==Lt.screenSizeEnum.SM)),w.xp6(1),w.s9C("value",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.Q6J("size",Lt.qrWidth)("errorCorrectionLevel","L"),w.xp6(1),w.Q6J("ngIf",Lt.information.uris&&Lt.information.uris.length>0),w.xp6(4),w.Oqu(Lt.selInfoType.infoName),w.xp6(2),w.Oqu(0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.xp6(3),w.s9C("payload",0===Lt.selInfoType.infoID?Lt.information.identity_pubkey:Lt.information.uris[Lt.selInfoType.infoID-1]),w.xp6(1),w.hij("Copy ",Lt.selInfoType.infoKey,""))},directives:[V.xw,V.Wh,V.yH,ce.mk,le.oO,pe.uU,te.dk,Oi.BN,re.lW,te.dn,ce.O5,u.d,a.h,p.y,jt.KE,Vi.gD,ce.sg,Di.ey],styles:[""]}),at})();var qe=m(6523),_t=m(1443),ue=m(2994),$e=m(8377),St=m(8138),Rt=m(7998),yi=m(5986),Ri=m(8104),Ii=m(9291);let Ki=(()=>{class at{constructor(gt,Lt,ui,Ci,Wi,$i,An,On,pn,Nn,br){this.actions=gt,this.httpClient=Lt,this.store=ui,this.logger=Ci,this.wsService=Wi,this.sessionService=$i,this.commonService=An,this.dataService=On,this.dialog=pn,this.snackBar=Nn,this.router=br,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new t.x,new t.x],this.closeAllDialogs=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALL_DIALOGS),(0,M.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SNACK_BAR),(0,M.U)(wi=>{"string"==typeof wi.payload?this.snackBar.open(wi.payload):this.snackBar.open(wi.payload.message,"","ERROR"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===wi.payload.type?{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:wi.payload.duration?wi.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_SPINNER),(0,M.U)(wi=>{wi.payload!==E.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(j,{data:{titleMessage:wi.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_SPINNER),(0,M.U)(wi=>{if(wi.payload!==E.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===wi.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Fi=>{Fi.componentInstance&&Fi.componentInstance.data&&Fi.componentInstance.data.titleMessage&&Fi.componentInstance.data.titleMessage===wi.payload&&Fi.close()})}catch(Fi){this.logger.error(Fi)}})),{dispatch:!1}),this.openAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_ALERT),(0,M.U)(wi=>{const Fi=JSON.parse(JSON.stringify(wi.payload));Fi.width||(Fi.width=this.alertWidth),this.dialogRef=this.dialog.open(wi.payload.data.component?wi.payload.data.component:st,Fi)})),{dispatch:!1}),this.closeAlert=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_ALERT),(0,M.U)(wi=>(this.dialogRef&&this.dialogRef.close(),wi.payload))),{dispatch:!1}),this.openConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.OPEN_CONFIRMATION),(0,M.U)(wi=>{const Fi=JSON.parse(JSON.stringify(wi.payload));Fi.width||(Fi.width=this.confirmWidth),this.dialogRef=this.dialog.open(ci,Fi)})),{dispatch:!1}),this.closeConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.CLOSE_CONFIRMATION),(0,c.q)(1),(0,M.U)(wi=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(wi.payload),wi.payload))),{dispatch:!1}),this.showNodePubkey=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_PUBKEY),(0,N.M)(this.store.select($e.R4)),(0,o.z)(([wi,Fi])=>(this.sessionService.getItem("token")&&Fi.identity_pubkey?this.store.dispatch((0,Bt.qR)({payload:{data:{information:Fi,component:ve}}})):this.snackBar.open("Node Pubkey does not exist."),(0,v.of)({type:E.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_RTL_CONFIG),(0,o.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===E.cu.XS||this.screenSize===E.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===E.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,Bt.ac)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Bt.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(A.NZ.CONF_API+"/rtlconf"):this.httpClient.get(A.NZ.CONF_API+"/rtlconfinit"))),(0,M.U)(wi=>{let Fi;return this.logger.info(wi),this.store.dispatch((0,Bt.uO)({payload:E.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Bt.qi)({payload:{action:"FetchRTLConfig",status:E.Bn.COMPLETED}})),wi.nodes.forEach(sn=>{sn.settings.currencyUnits=[...E.uA,sn.settings.currencyUnit],+sn.index===wi.selectedNodeIndex&&(Fi=sn)}),Fi?(this.store.dispatch((0,Bt.fk)({payload:{uiMessage:E.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Fi,isInitialSetup:!0}})),{type:E.pg.SET_RTL_CONFIG,payload:wi}):{type:E.pg.VOID}}),(0,L.K)(wi=>(this.handleErrorWithAlert("FetchRTLConfig",E.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",A.NZ.CONF_API,wi),(0,v.of)({type:E.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SAVE_SETTINGS),(0,o.z)(wi=>{this.store.dispatch((0,Bt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Bt.qi)({payload:{action:"UpdateSettings",status:E.Bn.INITIATED}}));let Fi=new C.y;if(wi.payload.settings&&wi.payload.defaultNodeIndex){const sn=this.httpClient.post(A.NZ.CONF_API,{updatedSettings:wi.payload.settings}),Sr=this.httpClient.post(A.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex});Fi=(0,s.D)([sn,Sr])}else wi.payload.settings&&!wi.payload.defaultNodeIndex?Fi=this.httpClient.post(A.NZ.CONF_API,{updatedSettings:wi.payload.settings}):!wi.payload.settings&&wi.payload.defaultNodeIndex&&(Fi=this.httpClient.post(A.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex}));return Fi.pipe((0,M.U)(sn=>(this.logger.info(sn),this.store.dispatch((0,Bt.qi)({payload:{action:"UpdateSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Bt.uO)({payload:wi.payload.uiMessage})),{type:E.pg.OPEN_SNACK_BAR,payload:sn.length?sn[0].message+".":sn.message+"."})),(0,L.K)(sn=>(this.handleErrorWithAlert("UpdateSettings",wi.payload.uiMessage,"Update Settings Failed!",A.NZ.CONF_API,sn.length?sn[0]:sn),(0,v.of)({type:E.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.UPDATE_SERVICE_SETTINGS),(0,o.z)(wi=>(this.store.dispatch((0,Bt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Bt.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/updateServiceSettings",wi.payload).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Bt.qi)({payload:{action:"UpdateServiceSettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Bt.uO)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Bt.Tm)({payload:wi.payload})),{type:E.pg.OPEN_SNACK_BAR,payload:Fi.message+"."})),(0,L.K)(Fi=>(this.handleErrorWithAlert("UpdateServiceSettings",wi.payload.uiMessage,"Update Service Settings Failed!",A.NZ.CONF_API,Fi),(0,v.of)({type:E.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.TWO_FA_SAVE_SETTINGS),(0,o.z)(wi=>(this.store.dispatch((0,Bt.ac)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Bt.qi)({payload:{action:"Update2FASettings",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/update2FA",{secret2fa:wi.payload.secret2fa}))),(0,N.M)(this.store.select($e.Yj)),(0,M.U)(([wi,Fi])=>{this.logger.info(wi),Fi.enable2FA=!Fi.enable2FA,this.store.dispatch((0,Bt.qi)({payload:{action:"Update2FASettings",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Bt.uO)({payload:E.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Bt.XT)({payload:Fi}))}),(0,L.K)(wi=>(this.handleErrorWithAlert("Update2FASettings",E.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",A.NZ.CONF_API,wi),(0,v.of)({type:E.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_CONFIG),(0,o.z)(wi=>(this.store.dispatch((0,Bt.ac)({payload:E.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,Bt.qi)({payload:{action:"fetchConfig",status:E.Bn.INITIATED}})),this.httpClient.get(A.NZ.CONF_API+"/config/"+wi.payload).pipe((0,M.U)(Fi=>(this.store.dispatch((0,Bt.qi)({payload:{action:"fetchConfig",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Bt.uO)({payload:E.m6.OPEN_CONFIG_FILE})),{type:E.pg.SHOW_CONFIG,payload:Fi})),(0,L.K)(Fi=>(this.handleErrorWithAlert("fetchConfig",E.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",A.NZ.CONF_API+"/config/"+wi.payload,Fi),(0,v.of)({type:E.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_CONFIG),(0,M.U)(wi=>wi.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED),(0,o.z)(wi=>(this.store.dispatch((0,Bt.qi)({payload:{action:"IsAuthorized",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload&&""!==wi.payload.trim()?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload&&""!==wi.payload.trim()?wi.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Bt.qi)({payload:{action:"IsAuthorized",status:E.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:E.pg.IS_AUTHORIZED_RES,payload:Fi})),(0,L.K)(Fi=>(this.handleErrorWithAlert("IsAuthorized",E.m6.NO_SPINNER,"Authorization Failed",A.NZ.AUTHENTICATE_API,Fi),(0,v.of)({type:E.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.IS_AUTHORIZED_RES),(0,M.U)(wi=>wi.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGIN),(0,N.M)(this.store.select($e.Yj)),(0,o.z)(([wi,Fi])=>(this.store.dispatch((0,qe.Ll)({payload:null})),this.store.dispatch((0,_t.xH)({payload:null})),this.store.dispatch((0,ue.Fd)({payload:null})),this.store.dispatch((0,Bt.qi)({payload:{action:"Login",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload.password?E.OJ.PASSWORD:E.OJ.JWT,authenticationValue:wi.payload.password?wi.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:wi.payload.twoFAToken?wi.payload.twoFAToken:""}).pipe((0,M.U)(sn=>{this.logger.info(sn),this.store.dispatch((0,Bt.qi)({payload:{action:"Login",status:E.Bn.COMPLETED}})),this.setLoggedInDetails(wi.payload.defaultPassword,sn)}),(0,L.K)(sn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",E.m6.NO_SPINNER,sn),+Fi.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:sn.error&&sn.error.error?sn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,v.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.VERIFY_TWO_FA),(0,o.z)(wi=>(this.store.dispatch((0,Bt.ac)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,Bt.qi)({payload:{action:"VerifyToken",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API+"/token",{authentication2FA:wi.payload.token}).pipe((0,M.U)(Fi=>{this.logger.info(Fi),this.store.dispatch((0,Bt.uO)({payload:E.m6.VERIFY_TOKEN})),this.store.dispatch((0,Bt.qi)({payload:{action:"VerifyToken",status:E.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,wi.payload.authResponse)}),(0,L.K)(Fi=>(this.handleErrorWithAlert("VerifyToken",E.m6.VERIFY_TOKEN,"Authorization Failed!",A.NZ.AUTHENTICATE_API+"/token",Fi),(0,v.of)({type:E.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.LOGOUT),(0,N.M)(this.store.select($e.Yj)),(0,o.z)(([wi,Fi])=>(this.store.dispatch((0,Bt.ac)({payload:E.m6.LOG_OUT})),this.httpClient.get(A.NZ.AUTHENTICATE_API+"/logout").pipe((0,M.U)(sn=>{this.logger.info(sn),this.store.dispatch((0,Bt.uO)({payload:E.m6.LOG_OUT})),+Fi.sso.rtlSSO?window.location.href=Fi.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,Bt._V)({payload:{}})),this.logger.warn("LOGGED OUT")}))))),{dispatch:!1}),this.resetPassword=(0,e.GW)(()=>this.actions.pipe((0,O.R)(this.unSubs[1]),(0,e.l4)(E.pg.RESET_PASSWORD),(0,o.z)(wi=>(this.store.dispatch((0,Bt.qi)({payload:{action:"ResetPassword",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.AUTHENTICATE_API+"/reset",{currPassword:wi.payload.currPassword,newPassword:wi.payload.newPassword}).pipe((0,O.R)(this.unSubs[0]),(0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Bt.qi)({payload:{action:"ResetPassword",status:E.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,Bt.jW)({payload:"Password Reset Successful!"})),this.SetToken(Fi.token),{type:E.pg.RESET_PASSWORD_RES,payload:Fi.token})),(0,L.K)(Fi=>(this.handleErrorWithAlert("ResetPassword",E.m6.NO_SPINNER,"Password Reset Failed!",A.NZ.AUTHENTICATE_API+"/reset",Fi),(0,v.of)({type:E.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SET_SELECTED_NODE),(0,o.z)(wi=>(this.store.dispatch((0,Bt.ac)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Bt.qi)({payload:{action:"UpdateSelNode",status:E.Bn.INITIATED}})),this.httpClient.post(A.NZ.CONF_API+"/updateSelNode",{prevNodeIndex:wi.payload.prevLnNodeIndex,currNodeIndex:wi.payload.currentLnNode.index}).pipe((0,M.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Bt.qi)({payload:{action:"UpdateSelNode",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Bt.uO)({payload:wi.payload.uiMessage})),this.initializeNode(wi.payload.currentLnNode,wi.payload.isInitialSetup),{type:E.pg.VOID})),(0,L.K)(Fi=>(this.handleErrorWithAlert("UpdateSelNode",wi.payload.uiMessage,"Update Selected Node Failed!",A.NZ.CONF_API+"/updateSelNode",Fi),(0,v.of)({type:E.pg.VOID})))))))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.FETCH_FILE),(0,o.z)(wi=>{this.store.dispatch((0,Bt.ac)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,Bt.qi)({payload:{action:"FetchFile",status:E.Bn.INITIATED}}));const Fi="?channel="+wi.payload.channelPoint+(wi.payload.path?"&path="+wi.payload.path:"");return this.httpClient.get(A.NZ.CONF_API+"/file"+Fi).pipe((0,M.U)(sn=>(this.store.dispatch((0,Bt.qi)({payload:{action:"FetchFile",status:E.Bn.COMPLETED}})),this.store.dispatch((0,Bt.uO)({payload:E.m6.DOWNLOAD_BACKUP_FILE})),{type:E.pg.SHOW_FILE,payload:sn})),(0,L.K)(sn=>(this.handleErrorWithAlert("fetchFile",E.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",A.NZ.CONF_API+"/file"+Fi,{status:this.commonService.extractErrorNumber(sn),error:{error:this.commonService.extractErrorCode(sn)}}),(0,v.of)({type:E.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(E.pg.SHOW_FILE),(0,M.U)(wi=>wi.payload)),{dispatch:!1})}initializeNode(gt,Lt){this.logger.info("Initializing node from RTL Effects.");const ui=Lt?"":"HOME";let Ci={};if(Ci=gt.settings.fiatConversion&&gt.settings.currencyUnit?{userPersona:gt.settings.userPersona,channelBackupPath:gt.settings.channelBackupPath,selCurrencyUnit:gt.settings.currencyUnit,currencyUnits:[...E.uA,gt.settings.currencyUnit],fiatConversion:gt.settings.fiatConversion,lnImplementation:gt.lnImplementation,swapServerUrl:gt.settings.swapServerUrl,boltzServerUrl:gt.settings.boltzServerUrl,enableOffers:gt.settings.enableOffers}:{userPersona:gt.settings.userPersona,channelBackupPath:gt.settings.channelBackupPath,selCurrencyUnit:gt.settings.currencyUnit,currencyUnits:E.uA,fiatConversion:gt.settings.fiatConversion,lnImplementation:gt.lnImplementation,swapServerUrl:gt.settings.swapServerUrl,boltzServerUrl:gt.settings.boltzServerUrl,enableOffers:gt.settings.enableOffers},this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,Bt.vI)({payload:gt})),this.store.dispatch((0,qe.Ll)({payload:Ci})),this.store.dispatch((0,_t.xH)({payload:Ci})),this.store.dispatch((0,ue.Fd)({payload:Ci})),this.sessionService.getItem("token")){const Wi=gt.lnImplementation?gt.lnImplementation.toUpperCase():"LND";this.dataService.setChildAPIUrl(Wi);const $i=A.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":A.T5;switch(this.wsService.connectWebSocket($i.replace(/^http/,"ws")+A.NZ.Web_SOCKET_API,gt.index.toString()),Wi){case"CLT":this.store.dispatch((0,_t.CN)({payload:{loadPage:ui}}));break;case"ECL":this.store.dispatch((0,ue.iz)({payload:{loadPage:ui}}));break;default:this.store.dispatch((0,qe.sQ)({payload:{loadPage:ui}}))}}}SetToken(gt){gt?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",gt)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(gt,Lt){this.logger.info("Successfully Authorized!"),this.SetToken(Lt.token),this.sessionService.setItem("defaultPassword",gt),gt?(this.store.dispatch((0,Bt.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,Bt.ey)())}handleErrorWithoutAlert(gt,Lt,ui){this.logger.error("ERROR IN: "+gt+"\n"+JSON.stringify(ui)),401===ui.status&&"Login"!==gt?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Bt.ts)()),this.store.dispatch((0,Bt.kS)()),this.store.dispatch((0,Bt.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,Bt.uO)({payload:Lt})),this.store.dispatch((0,Bt.qi)({payload:{action:gt,status:E.Bn.ERROR,statusCode:ui.status?ui.status.toString():"",message:this.commonService.extractErrorMessage(ui)}})))}handleErrorWithAlert(gt,Lt,ui,Ci,Wi){if(this.logger.error(Wi),0===Wi.status&&Wi.statusText&&"Unknown Error"===Wi.statusText&&(Wi={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Wi.status&&"Login"!==gt)this.logger.info("Redirecting to Login"),this.store.dispatch((0,Bt.ts)()),this.store.dispatch((0,Bt.kS)()),this.store.dispatch((0,Bt.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,Bt.uO)({payload:Lt}));const $i=this.commonService.extractErrorMessage(Wi);this.store.dispatch((0,Bt.qR)({payload:{data:{type:"ERROR",alertTitle:ui,message:{code:Wi.status?Wi.status:"Unknown Error",message:$i,URL:Ci},component:rn.H}}})),this.store.dispatch((0,Bt.qi)({payload:{action:gt,status:E.Bn.ERROR,statusCode:Wi.status?Wi.status.toString():"",message:$i,URL:Ci}}))}}ngOnDestroy(){this.unSubs.forEach(gt=>{gt.next(null),gt.complete()})}}return at.\u0275fac=function(gt){return new(gt||at)(w.LFG(e.eX),w.LFG(St.eN),w.LFG(Pt.yh),w.LFG($.mQ),w.LFG(Rt.d),w.LFG(yi.m),w.LFG(me.v),w.LFG(Ri.D),w.LFG(k.uw),w.LFG(ee.ux),w.LFG(Ii.F0))},at.\u0275prov=w.Yz7({token:at,factory:at.\u0275fac}),at})()},8377:(Ze,K,m)=>{"use strict";m.d(K,{dT:()=>C,Yj:()=>s,R4:()=>M,ul:()=>c,Sr:()=>N,gW:()=>o});var e=m(5620);const t=(0,e.ZF)("root"),C=((0,e.P1)(t,L=>L.apiURL),(0,e.P1)(t,L=>L.selNode)),s=(0,e.P1)(t,L=>L.appConfig),M=(0,e.P1)(t,L=>L.nodeData),c=(0,e.P1)(t,L=>L.apisCallStatus.Login),N=(0,e.P1)(t,L=>L.apisCallStatus.IsAuthorized),o=(0,e.P1)(t,L=>({nodeDate:L.nodeData,selNode:L.selNode}))},2340:(Ze,K,m)=>{"use strict";m.d(K,{T5:()=>e,NZ:()=>t,q4:()=>v});const e="./api",t={production:!0,isDebugMode:!1,AUTHENTICATE_API:e+"/authenticate",CONF_API:e+"/conf",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",OFFERS_API:"/offers",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},v="0.12.2-beta"},8990:(Ze,K,m)=>{"use strict";var e=m(2313),t=m(5e3),v=m(6360),C=m(8138),s=m(5113),M=m(5620),c=m(6642),N=m(9565),o=m(7579),L=m(6451),O=m(4968),A=m(457),E=m(4986),k=m(2805);function w(X=0,He=E.z){return X<0&&(X=0),(0,k.H)(X,X,He)}var V=m(9646),W=m(727),j=m(4482),$=m(5403),ee=m(8737),me=m(3269),ce=m(9672),te=m(9300),re=m(8505),pe=m(3900),y=m(2722),i=m(8746),a=m(1884),p=m(4004);class u{}class _{constructor(He,z){this._ngZone=z,this.timerStart$=new o.x,this.idleDetected$=new o.x,this.timeout$=new o.x,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,He&&this.setConfig(He)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,L.T)((0,O.R)(window,"mousemove"),(0,O.R)(window,"resize"),(0,O.R)(document,"keydown"))),this.idle$=(0,A.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function(X,...He){var z,De;const Ct=null!==(z=(0,me.yG)(He))&&void 0!==z?z:E.z,mi=null!==(De=He[0])&&void 0!==De?De:null,En=He[1]||1/0;return(0,j.e)((Ar,In)=>{let gr=[],Us=!1;const Ir=Zs=>{const{buffer:cl,subs:wo}=Zs;wo.unsubscribe(),(0,ee.P)(gr,Zs),In.next(cl),Us&&os()},os=()=>{if(gr){const Zs=new W.w0;In.add(Zs);const wo={buffer:[],subs:Zs};gr.push(wo),(0,ce.f)(Zs,Ct,()=>Ir(wo),X)}};null!==mi&&mi>=0?(0,ce.f)(In,Ct,os,mi,!0):Us=!0,os();const Mo=new $.Q(In,Zs=>{const cl=gr.slice();for(const wo of cl){const{buffer:Js}=wo;Js.push(Zs),En<=Js.length&&Ir(wo)}},()=>{for(;null==gr?void 0:gr.length;)In.next(gr.shift().buffer);null==Mo||Mo.unsubscribe(),In.complete(),In.unsubscribe()},void 0,()=>gr=null);Ar.subscribe(Mo)})}(this.idleSensitivityMillisec),(0,te.h)(He=>!He.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,re.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,pe.w)(()=>this._ngZone.runOutsideAngular(()=>w(1e3).pipe((0,y.R)((0,L.T)(this.activityEvents$,(0,k.H)(this.idleMillisec).pipe((0,re.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,i.x)(()=>{this.isIdleDetected=!1,this.idleDetected$.next(!1)}))))).subscribe(),this.setupTimer(this.timeout),this.setupPing(this.pingMillisec)}stopWatching(){this.stopTimer(),this.idleSubscription&&this.idleSubscription.unsubscribe()}stopTimer(){this.isInactivityTimer=!1,this.timerStart$.next(!1)}resetTimer(){this.stopTimer(),this.isTimeout=!1}onTimerStart(){return this.timerStart$.pipe((0,a.x)(),(0,pe.w)(He=>He?this.timer$:(0,V.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,te.h)(He=>!!He),(0,re.b)(()=>this.isTimeout=!0),(0,p.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(He){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(He):console.error("Call stopWatching() before set config values")}setConfig(He){He.idle&&(this.idleMillisec=1e3*He.idle),He.ping&&(this.pingMillisec=1e3*He.ping),He.idleSensitivity&&(this.idleSensitivityMillisec=1e3*He.idleSensitivity),He.timeout&&(this.timeout=He.timeout)}setCustomActivityEvents(He){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=He:console.error("Call stopWatching() before set custom activity events")}setupTimer(He){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,V.of)(()=>new Date).pipe((0,p.U)(z=>z()),(0,pe.w)(z=>w(1e3).pipe((0,p.U)(()=>Math.round(((new Date).valueOf()-z.valueOf())/1e3)),(0,re.b)(De=>{De>=He&&this.timeout$.next(!0)}))))})}setupPing(He){this.ping$=w(He).pipe((0,te.h)(()=>!this.isTimeout))}}_.\u0275fac=function(He){return new(He||_)(t.LFG(u,8),t.LFG(t.R0b))},_.\u0275prov=t.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_.ngInjectableDef=(0,t.Ez6)({factory:function(){return new _((0,t.f3M)(u,8),(0,t.f3M)(t.R0b))},token:_,providedIn:"root"});let D=(()=>{class X{static forRoot(z){return{ngModule:X,providers:[{provide:u,useValue:z}]}}}return X.\u0275fac=function(z){return new(z||X)},X.\u0275mod=t.oAB({type:X}),X.\u0275inj=t.cJS({imports:[[]]}),X})();var I=m(9291),x=m(801),r=m(8377),b=m(7093),Z=m(9444),P=m(9224),U=m(3251),ye=m(9808);const xe=function(){return{initial:!1}};function Ne(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(z);const Ct=t.oxw();return Ct.activeLink=Ct.links[1].link}),t._uU(1),t.qZA()}if(2&X){const z=t.oxw();t.s9C("routerLink",z.links[1].link),t.Q6J("active",z.activeLink===z.links[1].link)("state",t.DdM(4,xe)),t.xp6(1),t.Oqu(z.links[1].name)}}function Be(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(z);const Ct=t.oxw();return Ct.activeLink=Ct.links[2].link}),t._uU(1),t.qZA()}if(2&X){const z=t.oxw();t.s9C("routerLink",z.links[2].link),t.Q6J("active",z.activeLink===z.links[2].link),t.xp6(1),t.Oqu(z.links[2].name)}}let Oe=(()=>{class X{constructor(z,De){this.store=z,this.router=De,this.faUserCog=x.gNZ,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new o.x,new o.x,new o.x]}ngOnInit(){const z=this.links.find(De=>this.router.url.includes(De.link));this.activeLink=z?z.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,te.h)(De=>De instanceof I.Av)).subscribe(De=>{const Ct=this.links.find(mi=>De.urlAfterRedirects.includes(mi.link));this.activeLink=Ct?Ct.link:this.links[0].link}),this.store.select(r.Yj).pipe((0,y.R)(this.unSubs[1])).subscribe(De=>{this.appConfig=De}),this.store.select(r.dT).pipe((0,y.R)(this.unSubs[2])).subscribe(De=>{this.showBitcoind=!1,this.selNode=De,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(M.yh),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-settings"]],decls:14,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Settings"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return De.activeLink=De.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,Ne,2,5,"div",7),t.YNc(11,Be,2,3,"div",8),t.qZA(),t.TgZ(12,"div",9),t._UZ(13,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(1),t.Q6J("icon",De.faUserCog),t.xp6(7),t.s9C("routerLink",De.links[0].link),t.Q6J("active",De.activeLink===De.links[0].link),t.xp6(1),t.Oqu(De.links[0].name),t.xp6(1),t.Q6J("ngIf",!+De.appConfig.sso.rtlSSO),t.xp6(1),t.Q6J("ngIf",De.showBitcoind))},directives:[b.xw,b.Wh,Z.BN,P.a8,P.dn,U.BU,U.Nj,I.rH,ye.O5,b.yH,I.lC],styles:[""]}),X})();var B=m(7731),Me=m(7861),we=m(5043),ae=m(644),We=m(3075),vt=m(7322),Pe=m(4107),Ve=m(3390),he=m(7423),Ee=m(508);function ke(X,He){if(1&X&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&X){const z=He.$implicit;t.Q6J("value",z.index),t.xp6(1),t.AsE(" ",z.lnNode," (",z.lnImplementation,") ")}}function q(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"form",2,3),t.TgZ(2,"div",4),t._UZ(3,"fa-icon",5),t.TgZ(4,"span",6),t._uU(5,"Default Node"),t.qZA(),t.qZA(),t.TgZ(6,"div",7),t.TgZ(7,"div",8),t._UZ(8,"fa-icon",9),t.TgZ(9,"span"),t._uU(10,"The setting will apply after RTL server restarts."),t.qZA(),t.qZA(),t.TgZ(11,"div",10),t.TgZ(12,"mat-form-field",10),t.TgZ(13,"mat-select",11),t.NdJ("ngModelChange",function(Ct){return t.CHM(z),t.oxw().appConfig.defaultNodeIndex=Ct}),t.YNc(14,ke,2,3,"mat-option",12),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div",13),t.TgZ(16,"div",10),t.TgZ(17,"button",14),t.NdJ("click",function(){return t.CHM(z),t.oxw().onResetSettings()}),t._uU(18,"Reset"),t.qZA(),t.TgZ(19,"button",15),t.NdJ("click",function(){return t.CHM(z),t.oxw().onUpdateSettings()}),t._uU(20,"Update"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.xp6(3),t.Q6J("icon",z.faWindowRestore),t.xp6(5),t.Q6J("icon",z.faInfoCircle),t.xp6(5),t.Q6J("ngModel",z.appConfig.defaultNodeIndex),t.xp6(1),t.Q6J("ngForOf",z.appConfig.nodes)}}let J=(()=>{class X{constructor(z,De){this.logger=z,this.store=De,this.faInfoCircle=x.sqG,this.faWindowRestore=x.wyP,this.faPlus=x.r8p,this.previousDefaultNode=0,this.unSubs=[new o.x,new o.x]}ngOnInit(){this.store.select(r.Yj).pipe((0,y.R)(this.unSubs[0])).subscribe(z=>{this.appConfig=z,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(z)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,Me.zQ)({payload:{uiMessage:B.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:+this.appConfig.nodes[0].index}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-app-settings"]],decls:2,vars:1,consts:[["fxLayout","column","fxFlex","100",1,"padding-gap-x-large",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","settings-container page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"my-2"],["fxLayout","row","fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row","fxLayoutAlign","start start"],["autoFocus","","tabindex","1","name","defaultNode",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],[3,"value"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.YNc(1,q,21,4,"form",1),t.qZA()),2&z&&(t.xp6(1),t.Q6J("ngIf",De.appConfig.nodes&&De.appConfig.nodes.length&&De.appConfig.nodes.length>0))},directives:[b.xw,b.yH,ae.$V,ye.O5,We._Y,We.JL,We.F,b.Wh,Z.BN,vt.KE,Pe.gD,Ve.h,We.JJ,We.On,ye.sg,he.lW,Ee.ey],styles:[""]}),X})();var oe=m(8012),Ce=m(5698),Ue=m(8966),ht=m(5768),it=m(3093),ft=m(7261),nt=m(5615),st=m(7531),wt=m(6895),Bt=m(159);const Pt=["stepper"];function Vt(X,He){if(1&X&&t._uU(0),2&X){const z=t.oxw();t.Oqu(z.passwordFormLabel)}}function Oi(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function jt(X,He){if(1&X&&t._uU(0),2&X){const z=t.oxw(2);t.Oqu(z.secretFormLabel)}}function ti(X,He){if(1&X&&t._UZ(0,"qr-code",32),2&X){const z=t.oxw(2);t.Q6J("value",z.otpauth)("size",180)("errorCorrectionLevel","L")}}function Pi(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Secret Code is required."),t.qZA())}function si(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"mat-step",10),t.TgZ(1,"form",21),t.YNc(2,jt,1,1,"ng-template",22),t.TgZ(3,"div",23),t.YNc(4,ti,1,3,"qr-code",24),t.qZA(),t.TgZ(5,"div",25),t._UZ(6,"fa-icon",26),t.TgZ(7,"span"),t._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),t.qZA(),t.qZA(),t.TgZ(9,"div",27),t.TgZ(10,"mat-form-field",1),t._UZ(11,"input",28),t.TgZ(12,"fa-icon",29),t.NdJ("copied",function(Ct){return t.CHM(z),t.oxw().onCopySecret(Ct)}),t.qZA(),t.YNc(13,Pi,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(14,"div",30),t.TgZ(15,"button",31),t._uU(16,"Next"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("stepControl",z.secretFormGroup)("editable",z.flgEditable),t.xp6(1),t.Q6J("formGroup",z.secretFormGroup),t.xp6(3),t.Q6J("ngIf",z.otpauth),t.xp6(2),t.Q6J("icon",z.faInfoCircle),t.xp6(6),t.Q6J("icon",z.faCopy)("payload",null==z.secretFormGroup||null==z.secretFormGroup.controls||null==z.secretFormGroup.controls.secret?null:z.secretFormGroup.controls.secret.value),t.xp6(1),t.Q6J("ngIf",null==z.secretFormGroup||null==z.secretFormGroup.controls||null==z.secretFormGroup.controls.secret||null==z.secretFormGroup.controls.secret.errors?null:z.secretFormGroup.controls.secret.errors.required)}}function di(X,He){if(1&X&&t._uU(0),2&X){const z=t.oxw(2);t.Oqu(z.tokenFormLabel)}}function ze(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}function Te(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is invalid."),t.qZA())}function Y(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",27),t.TgZ(2,"mat-form-field",1),t._UZ(3,"input",36),t.YNc(4,ze,2,0,"mat-error",14),t.YNc(5,Te,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(6,"div",30),t.TgZ(7,"button",37),t.NdJ("click",function(){return t.CHM(z),t.oxw(2).onVerifyToken()}),t._uU(8),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw(2);t.xp6(4),t.Q6J("ngIf",null==z.tokenFormGroup||null==z.tokenFormGroup.controls||null==z.tokenFormGroup.controls.token||null==z.tokenFormGroup.controls.token.errors?null:z.tokenFormGroup.controls.token.errors.required),t.xp6(1),t.Q6J("ngIf",null==z.tokenFormGroup||null==z.tokenFormGroup.controls||null==z.tokenFormGroup.controls.token||null==z.tokenFormGroup.controls.token.errors?null:z.tokenFormGroup.controls.token.errors.notValid),t.xp6(3),t.Oqu(null!=z.tokenFormGroup&&null!=z.tokenFormGroup.controls&&null!=z.tokenFormGroup.controls.token&&null!=z.tokenFormGroup.controls.token.errors&&z.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function ge(X,He){1&X&&(t.TgZ(0,"div"),t.TgZ(1,"strong"),t._uU(2,"Success! You are all set."),t.qZA(),t.qZA())}function Ae(X,He){if(1&X&&(t.TgZ(0,"mat-step",33),t.TgZ(1,"form",34),t.YNc(2,di,1,1,"ng-template",12),t.YNc(3,Y,9,3,"div",35),t.YNc(4,ge,3,0,"div",14),t.qZA(),t.qZA()),2&X){const z=t.oxw();t.Q6J("stepControl",z.tokenFormGroup),t.xp6(1),t.Q6J("formGroup",z.tokenFormGroup),t.xp6(2),t.Q6J("ngIf",!z.flgValidated||!z.isTokenValid),t.xp6(1),t.Q6J("ngIf",z.flgValidated&&z.isTokenValid)}}function et(X,He){if(1&X&&t._uU(0),2&X){const z=t.oxw(2);t.Oqu(z.disableFormLabel)}}function $t(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",38),t._UZ(2,"fa-icon",26),t.TgZ(3,"span"),t._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),t.qZA(),t.qZA(),t.TgZ(5,"div",30),t.TgZ(6,"button",37),t.NdJ("click",function(){return t.CHM(z),t.oxw(2).onVerifyToken()}),t._uU(7,"Disable"),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw(2);t.xp6(2),t.Q6J("icon",z.faExclamationTriangle)}}function Nt(X,He){1&X&&(t.TgZ(0,"div"),t.TgZ(1,"strong"),t._uU(2,"Two factor authentication removed from RTL."),t.qZA(),t.qZA())}function Xt(X,He){if(1&X&&(t.TgZ(0,"mat-step",33),t.TgZ(1,"form",34),t.YNc(2,et,1,1,"ng-template",12),t.YNc(3,$t,8,1,"div",35),t.YNc(4,Nt,3,0,"div",14),t.qZA(),t.qZA()),2&X){const z=t.oxw();t.Q6J("stepControl",z.disableFormGroup),t.xp6(1),t.Q6J("formGroup",z.disableFormGroup),t.xp6(2),t.Q6J("ngIf",!z.flgValidated||!z.isTokenValid),t.xp6(1),t.Q6J("ngIf",z.flgValidated&&z.isTokenValid)}}let lt=(()=>{class X{constructor(z,De,Ct,mi,En,Ar){this.dialogRef=z,this.data=De,this.store=Ct,this.formBuilder=mi,this.rtlEffects=En,this.snackBar=Ar,this.faExclamationTriangle=x.eHv,this.faCopy=x.kZ_,this.faInfoCircle=x.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",this.flgEditable=!0,this.showDisableStepper=!1,this.passwordFormLabel="Authenticate with your RTL password",this.secretFormLabel="Scan or copy the secret",this.tokenFormLabel="Verify your authentication is working",this.disableFormLabel="Disable two factor authentication",this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[We.kI.required]],password:["",[We.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},We.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",We.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new o.x,new o.x]}ngOnInit(){this.appConfig=this.data.appConfig,this.showDisableStepper=!!this.appConfig.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig.enable2FA?"":this.generateSecret(),disabled:!0},We.kI.required]})}generateSecret(){const z=ht.authenticator.generateSecret();return this.otpauth=ht.authenticator.keyuri("","Ride The Lightning (RTL)",z),z}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Me.QO)({payload:oe(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,Ce.q)(1)).subscribe(z=>{"ERROR"!==z?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onCopySecret(z){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig.enable2FA)this.store.dispatch((0,Me.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=ht.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.store.dispatch((0,Me.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig.enable2FA=!this.appConfig.enable2FA}stepSelectionChanged(z){switch(z.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}z.selectedIndex<z.previouslySelectedIndex&&0===z.selectedIndex&&this.passwordFormGroup.controls.hiddenPassword.setValue("")}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(Ue.so),t.Y36(Ue.WI),t.Y36(M.yh),t.Y36(We.qu),t.Y36(it.V),t.Y36(ft.ux))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-two-factor-auth"]],viewQuery:function(z,De){if(1&z&&t.Gf(Pt,5),2&z){let Ct;t.iGM(Ct=t.CRH())&&(De.stepper=Ct.first)}},decls:28,vars:11,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],[3,"value","size","errorCorrectionLevel",4,"ngIf"],["fxFlex","100",1,"w-100","alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["autoFocus","","matInput","","placeholder","Secret Code","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"icon","payload","copied"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"value","size","errorCorrectionLevel"],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","placeholder","Token","type","text","tabindex","7","formControlName","token","required",""],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5,"Setup Two Factor Authentication"),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"div",7),t.TgZ(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(mi){return De.stepSelectionChanged(mi)}),t.TgZ(12,"mat-step",10),t.TgZ(13,"form",11),t.YNc(14,Vt,1,1,"ng-template",12),t.TgZ(15,"div",0),t.TgZ(16,"mat-form-field",1),t._UZ(17,"input",13),t.YNc(18,Oi,2,0,"mat-error",14),t.qZA(),t.qZA(),t.TgZ(19,"div",15),t.TgZ(20,"button",16),t.NdJ("click",function(){return De.onAuthenticate()}),t._uU(21,"Confirm"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(22,si,17,8,"mat-step",17),t.YNc(23,Ae,5,4,"mat-step",18),t.YNc(24,Xt,5,4,"mat-step",18),t.qZA(),t.TgZ(25,"div",19),t.TgZ(26,"button",20),t._uU(27),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(4),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",De.passwordFormGroup)("editable",De.flgEditable),t.xp6(1),t.Q6J("formGroup",De.passwordFormGroup),t.xp6(5),t.Q6J("ngIf",null==De.passwordFormGroup||null==De.passwordFormGroup.controls||null==De.passwordFormGroup.controls.password||null==De.passwordFormGroup.controls.password.errors?null:De.passwordFormGroup.controls.password.errors.required),t.xp6(4),t.Q6J("ngIf",!De.showDisableStepper),t.xp6(1),t.Q6J("ngIf",!De.showDisableStepper),t.xp6(1),t.Q6J("ngIf",De.showDisableStepper),t.xp6(2),t.Q6J("mat-dialog-close",!1),t.xp6(1),t.Oqu(De.flgValidated&&De.isTokenValid?"Close":"Cancel"))},directives:[b.xw,b.yH,P.dk,b.Wh,he.lW,Ue.ZT,P.dn,nt.Vq,nt.C0,We._Y,We.JL,We.sg,nt.VY,vt.KE,st.Nt,We.Fj,Ve.h,We.JJ,We.u,We.Q7,ye.O5,vt.TO,Z.BN,vt.R9,wt.y,nt.Ic,Bt.uU],styles:[""]}),X})();var Re=m(5986),Fe=m(4834);const rt=["authForm"];function ot(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Current password is required."),t.qZA())}function At(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const z=t.oxw(2);t.xp6(1),t.Oqu(z.errorMsg)}}function li(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&X){const z=t.oxw(2);t.xp6(1),t.Oqu(z.errorConfirmMsg)}}function Ut(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"form",10,11),t.TgZ(2,"div",12),t._UZ(3,"fa-icon",4),t.TgZ(4,"span",5),t._uU(5,"Password"),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field"),t.TgZ(7,"input",13),t.NdJ("ngModelChange",function(Ct){return t.CHM(z),t.oxw().currPassword=Ct}),t.qZA(),t.YNc(8,ot,2,0,"mat-error",14),t.qZA(),t.TgZ(9,"mat-form-field"),t.TgZ(10,"input",15),t.NdJ("ngModelChange",function(Ct){return t.CHM(z),t.oxw().newPassword=Ct}),t.qZA(),t.YNc(11,At,2,1,"mat-error",14),t.qZA(),t.TgZ(12,"mat-form-field"),t.TgZ(13,"input",16),t.NdJ("ngModelChange",function(Ct){return t.CHM(z),t.oxw().confirmPassword=Ct}),t.qZA(),t.YNc(14,li,2,1,"mat-error",14),t.qZA(),t.TgZ(15,"div",17),t.TgZ(16,"button",18),t.NdJ("click",function(){return t.CHM(z),t.oxw().onResetPassword()}),t._uU(17,"Reset"),t.qZA(),t.TgZ(18,"button",19),t.NdJ("click",function(){return t.CHM(z),t.oxw().onChangePassword()}),t._uU(19,"Change Password"),t.qZA(),t.qZA(),t.TgZ(20,"div",20),t._UZ(21,"mat-divider",21),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.xp6(3),t.Q6J("icon",z.faLock),t.xp6(4),t.Q6J("ngModel",z.currPassword),t.xp6(1),t.Q6J("ngIf",!z.currPassword),t.xp6(2),t.Q6J("ngModel",z.newPassword),t.xp6(1),t.Q6J("ngIf",z.matchOldAndNewPasswords()),t.xp6(2),t.Q6J("ngModel",z.confirmPassword),t.xp6(1),t.Q6J("ngIf",z.matchNewPasswords()),t.xp6(7),t.Q6J("inset",!0)}}let Ft=(()=>{class X{constructor(z,De,Ct,mi,En){this.logger=z,this.store=De,this.actions=Ct,this.router=mi,this.sessionService=En,this.faInfoCircle=x.sqG,this.faUserLock=x.FJU,this.faUserClock=x.hnx,this.faLock=x.byT,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new o.x,new o.x,new o.x]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(r.Yj).pipe((0,y.R)(this.unSubs[0])).subscribe(z=>{this.appConfig=z,this.logger.info(this.appConfig)}),this.store.select(r.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(z=>{this.selNode=z}),this.actions.pipe((0,y.R)(this.unSubs[2]),(0,te.h)(z=>z.type===B.pg.RESET_PASSWORD_RES)).subscribe(z=>{if(B.kO.includes(this.currPassword.toLowerCase()))switch(this.selNode.lnImplementation.toUpperCase()){case"CLT":this.router.navigate(["/cl/home"]);break;case"ECL":this.router.navigate(["/ecl/home"]);break;default:this.router.navigate(["/lnd/home"])}this.form&&this.form.resetForm()})}onChangePassword(){if(!this.currPassword||!this.newPassword||!this.confirmPassword||this.currPassword===this.newPassword||this.newPassword!==this.confirmPassword||B.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Me.c0)({payload:{currPassword:oe(this.currPassword).toString(),newPassword:oe(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let z=!1;return this.form&&this.form.controls&&this.form.controls.newpassword&&(this.newPassword?""!==this.currPassword&&""!==this.newPassword&&this.currPassword===this.newPassword?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="Old and New password cannot be same.",z=!0):B.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=B.kO.reduce((De,Ct,mi)=>mi<B.kO.length-1?De+Ct+'" / "':De+Ct+'".','Password cannot be "'),z=!0):(this.form.controls.newpassword.setErrors(null),this.errorMsg="",z=!1):(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="New password is required.",z=!0)),z}matchNewPasswords(){let z=!1;return this.form&&this.form.controls&&this.form.controls.confirmpassword&&(this.confirmPassword?""!==this.newPassword&&""!==this.confirmPassword&&this.newPassword!==this.confirmPassword?(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="New and confirm passwords do not match.",z=!0):(this.form.controls.confirmpassword.setErrors(null),this.errorConfirmMsg="",z=!1):(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="Confirm password is required.",z=!0)),z}on2FAuth(){this.store.dispatch((0,Me.qR)({payload:{data:{appConfig:this.appConfig,component:lt}}}))}onResetPassword(){this.form.resetForm()}ngOnDestroy(){this.initializeNodeData&&this.store.dispatch((0,Me.fk)({payload:{uiMessage:B.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:this.selNode,isInitialSetup:!0}})),this.unSubs.forEach(z=>{z.next(),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(we.mQ),t.Y36(M.yh),t.Y36(c.eX),t.Y36(I.F0),t.Y36(Re.m))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-auth-settings"]],viewQuery:function(z,De){if(1&z&&t.Gf(rt,5),2&z){let Ct;t.iGM(Ct=t.CRH())&&(De.form=Ct.first)}},decls:14,vars:4,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","6",1,"mb-2",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","5","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.YNc(1,Ut,22,8,"form",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Two Factor Authentication"),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t._UZ(8,"fa-icon",7),t.TgZ(9,"span"),t._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),t.qZA(),t.qZA(),t.TgZ(11,"div",8),t.TgZ(12,"button",9),t.NdJ("click",function(){return De.on2FAuth()}),t._uU(13),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(1),t.Q6J("ngIf",null==De.appConfig?null:De.appConfig.allowPasswordUpdate),t.xp6(3),t.Q6J("icon",De.faUserClock),t.xp6(4),t.Q6J("icon",De.faInfoCircle),t.xp6(5),t.Oqu(De.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[b.xw,b.yH,b.Wh,ye.O5,Z.BN,he.lW,We._Y,We.JL,We.F,vt.KE,st.Nt,We.Fj,Ve.h,We.Q7,We.JJ,We.On,Fe.d,vt.TO],styles:[""]}),X})();var Si=m(4623);function ai(X,He){1&X&&t._UZ(0,"mat-divider",7)}function ci(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"pre",5),t._uU(2),t.ALo(3,"json"),t.qZA(),t.YNc(4,ai,1,0,"mat-divider",6),t.qZA()),2&X){const z=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,z.configData)),t.xp6(2),t.Q6J("ngIf",""!==z.configData)}}function rn(X,He){if(1&X&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&X){const z=t.oxw().$implicit;t.xp6(1),t.Oqu(z)}}function Vi(X,He){if(1&X&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&X){const z=t.oxw().$implicit;t.xp6(1),t.Oqu(z)}}function Di(X,He){1&X&&t._UZ(0,"mat-divider",15),2&X&&t.Q6J("inset",!0)}function Xi(X,He){if(1&X&&(t.TgZ(0,"mat-list-item"),t.TgZ(1,"mat-card-subtitle",7),t.YNc(2,rn,2,1,"h2",10),t.qZA(),t.TgZ(3,"mat-card-subtitle",11),t.YNc(4,Vi,2,1,"h4",12),t.qZA(),t.YNc(5,Di,1,1,"mat-divider",13),t.qZA()),2&X){const z=He.$implicit;t.xp6(2),t.Q6J("ngIf",z.indexOf("[")>=0),t.xp6(2),t.Q6J("ngIf",z.indexOf("[")<0),t.xp6(1),t.Q6J("ngIf",z.indexOf("[")<0)}}function Ke(X,He){if(1&X&&(t.TgZ(0,"div",8),t.TgZ(1,"mat-list"),t.YNc(2,Xi,6,3,"mat-list-item",9),t.qZA(),t.qZA()),2&X){const z=t.oxw();t.xp6(2),t.Q6J("ngForOf",z.configData)}}let mt=(()=>{class X{constructor(z,De,Ct){this.store=z,this.rtlEffects=De,this.router=Ct,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=x.b7W,this.unSubs=[new o.x,new o.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,te.h)(z=>z instanceof I.Av)).subscribe(z=>{this.selectedNodeType=z.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}),this.store.dispatch((0,Me.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,y.R)(this.unSubs[1])).subscribe(z=>{const De=z.data;this.fileFormat=z.format,this.configData=""===De||!De||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==De&&De&&"JSON"===this.fileFormat?De:"":De.split("\n")})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(M.yh),t.Y36(it.V),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-bitcoin-config"]],decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,ci,5,4,"div",2),t.YNc(3,Ke,3,1,"div",3),t.qZA(),t.qZA()),2&z&&(t.xp6(2),t.Q6J("ngIf",""!==De.configData&&"JSON"===De.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==De.configData&&("INI"===De.fileFormat||"HOCON"===De.fileFormat)))},directives:[b.xw,b.yH,b.Wh,ye.O5,Fe.d,Si.i$,ye.sg,Si.Tg,P.$j],pipes:[ye.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();const ve=function(){return{initial:!1}};function qe(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(z);const Ct=t.oxw();return Ct.activeLink=Ct.links[1].link}),t._uU(1),t.qZA()}if(2&X){const z=t.oxw();t.s9C("routerLink",z.links[1].link),t.Q6J("active",z.activeLink===z.links[1].link)("state",t.DdM(4,ve)),t.xp6(1),t.Oqu(z.links[1].name)}}function _t(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(z);const Ct=t.oxw();return Ct.activeLink=Ct.links[2].link}),t._uU(1),t.qZA()}if(2&X){const z=t.oxw();t.s9C("routerLink",z.links[2].link),t.Q6J("active",z.activeLink===z.links[2].link),t.xp6(1),t.Oqu(z.links[2].name)}}function ue(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(z);const Ct=t.oxw();return Ct.activeLink=Ct.links[3].link}),t._uU(1),t.qZA()}if(2&X){const z=t.oxw();t.s9C("routerLink",z.links[3].link),t.Q6J("active",z.activeLink===z.links[3].link),t.xp6(1),t.Oqu(z.links[3].name)}}let $e=(()=>{class X{constructor(z,De){this.store=z,this.router=De,this.faTools=x.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new o.x,new o.x,new o.x]}ngOnInit(){const z=this.links.find(De=>this.router.url.includes(De.link));this.activeLink=z?z.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,te.h)(De=>De instanceof I.Av)).subscribe(De=>{const Ct=this.links.find(mi=>De.urlAfterRedirects.includes(mi.link));this.activeLink=Ct?Ct.link:this.links[0].link}),this.store.select(r.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(De=>{switch(this.showLnConfig=!1,this.selNode=De,this.selNode.lnImplementation.toUpperCase()){case"CLT":this.lnImplementationStr="C-Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[3].name=this.lnImplementationStr,this.showLnConfig=!0)})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(M.yh),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-node-config"]],decls:15,vars:7,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Node Config"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return De.activeLink=De.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,qe,2,5,"div",7),t.YNc(11,_t,2,3,"div",8),t.YNc(12,ue,2,3,"div",8),t.qZA(),t.TgZ(13,"div",9),t._UZ(14,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(1),t.Q6J("icon",De.faTools),t.xp6(7),t.s9C("routerLink",De.links[0].link),t.Q6J("active",De.activeLink===De.links[0].link),t.xp6(1),t.Oqu(De.links[0].name),t.xp6(1),t.Q6J("ngIf","LND"===(null==De.selNode||null==De.selNode.lnImplementation?null:De.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf","CLT"===(null==De.selNode||null==De.selNode.lnImplementation?null:De.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf",De.showLnConfig))},directives:[b.xw,b.Wh,Z.BN,P.a8,P.dn,U.BU,U.Nj,I.rH,ye.O5,b.yH,I.lC],styles:[""]}),X})();function St(X,He){1&X&&t._UZ(0,"mat-divider",7)}function Rt(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"pre",5),t._uU(2),t.ALo(3,"json"),t.qZA(),t.YNc(4,St,1,0,"mat-divider",6),t.qZA()),2&X){const z=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,z.configData)),t.xp6(2),t.Q6J("ngIf",""!==z.configData)}}function yi(X,He){if(1&X&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&X){const z=t.oxw().$implicit;t.xp6(1),t.Oqu(z)}}function Ri(X,He){if(1&X&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&X){const z=t.oxw().$implicit;t.xp6(1),t.Oqu(z)}}function Ii(X,He){1&X&&t._UZ(0,"mat-divider",15),2&X&&t.Q6J("inset",!0)}function Ki(X,He){if(1&X&&(t.TgZ(0,"mat-list-item"),t.TgZ(1,"mat-card-subtitle",7),t.YNc(2,yi,2,1,"h2",10),t.qZA(),t.TgZ(3,"mat-card-subtitle",11),t.YNc(4,Ri,2,1,"h4",12),t.qZA(),t.YNc(5,Ii,1,1,"mat-divider",13),t.qZA()),2&X){const z=He.$implicit;t.xp6(2),t.Q6J("ngIf",z.indexOf("[")>=0),t.xp6(2),t.Q6J("ngIf",z.indexOf("[")<0),t.xp6(1),t.Q6J("ngIf",z.indexOf("[")<0)}}function at(X,He){if(1&X&&(t.TgZ(0,"div",8),t.TgZ(1,"mat-list"),t.YNc(2,Ki,6,3,"mat-list-item",9),t.qZA(),t.qZA()),2&X){const z=t.oxw();t.xp6(2),t.Q6J("ngForOf",z.configData)}}let Qt=(()=>{class X{constructor(z,De,Ct){this.store=z,this.rtlEffects=De,this.router=Ct,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=x.b7W,this.unSubs=[new o.x,new o.x]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,te.h)(z=>z instanceof I.Av)).subscribe(z=>{this.selectedNodeType=z.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}),this.store.dispatch((0,Me.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,y.R)(this.unSubs[1])).subscribe(z=>{const De=z.data;this.fileFormat=z.format,this.configData=""===De||!De||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==De&&De&&"JSON"===this.fileFormat?De:"":De.split("\n")})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(M.yh),t.Y36(it.V),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-lnp-config"]],decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,Rt,5,4,"div",2),t.YNc(3,at,3,1,"div",3),t.qZA(),t.qZA()),2&z&&(t.xp6(2),t.Q6J("ngIf",""!==De.configData&&"JSON"===De.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==De.configData&&("INI"===De.fileFormat||"HOCON"===De.fileFormat)))},directives:[b.xw,b.yH,b.Wh,ye.O5,Fe.d,Si.i$,ye.sg,Si.Tg,P.$j],pipes:[ye.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();var gt=m(2994),Lt=m(1443),ui=m(6523),Ci=m(62),Wi=m(2368),$i=m(9814),An=m(3322);function On(X,He){if(1&X&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&X){const z=He.$implicit;t.Q6J("value",z.id),t.xp6(1),t.hij(" ",z.id," ")}}function pn(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Currency unit is required."),t.qZA())}function Nn(X,He){if(1&X&&(t.TgZ(0,"mat-radio-button",36),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&X){const z=He.$implicit,De=t.oxw();t.Q6J("value",z)("checked",De.selNode.settings.userPersona===z),t.xp6(1),t.hij(" ",t.lcZ(2,3,z)," ")}}const br=function(X){return{"mr-4":X}};function wi(X,He){if(1&X&&(t.TgZ(0,"mat-radio-button",37),t._uU(1),t.qZA()),2&X){const z=He.$implicit,De=t.oxw();t.Q6J("value",z)("ngClass",t.VKq(3,br,De.screenSize===De.screenSizeEnum.XS||De.screenSize===De.screenSizeEnum.SM)),t.xp6(1),t.hij("",z.name," ")}}const Fi=function(X){return{skin:!0,"selected-color":X}};function sn(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"span",38),t.TgZ(1,"div",39),t.NdJ("click",function(){const mi=t.CHM(z).$implicit;return t.oxw().changeThemeColor(mi.id)}),t.ALo(2,"lowercase"),t.qZA(),t._uU(3),t.qZA()}if(2&X){const z=He.$implicit,De=t.oxw();t.xp6(1),t.Tol(t.lcZ(2,4,z.id)),t.Q6J("ngClass",t.VKq(6,Fi,De.selectedThemeColor===z.id)),t.xp6(2),t.hij(" ",z.name," ")}}let Sr=(()=>{class X{constructor(z,De,Ct){this.logger=z,this.commonService=De,this.store=Ct,this.faExclamationTriangle=x.eHv,this.faMoneyBillAlt=x.co4,this.faPaintBrush=x.XsY,this.faInfoCircle=x.sqG,this.userPersonas=[B.ol.OPERATOR,B.ol.MERCHANT],this.currencyUnits=B.Er,this.themeModes=B.wZ.modes,this.themeColors=B.wZ.themes,this.selectedThemeMode=B.wZ.modes[0],this.selectedThemeColor=B.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=B.cu,this.unSubs=[new o.x,new o.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(r.dT).pipe((0,y.R)(this.unSubs[0])).subscribe(z=>{this.selNode=z,this.selectedThemeMode=this.themeModes.find(De=>this.selNode.settings.themeMode===De.id),this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=null),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(z)})}onCurrencyChange(z){this.selNode.settings.currencyUnits=[...B.uA,z.value],this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:z.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:z.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:z.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}toggleSettings(z,De){this.selNode.settings[z]=!this.selNode.settings[z]}changeThemeColor(z){this.selectedThemeColor=z,this.selNode.settings.themeColor=z}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onUpdateSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;this.logger.info(this.selNode.settings),this.store.dispatch((0,Me.zQ)({payload:{uiMessage:B.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}onResetSettings(){const z=this.selNode.index;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(De=>De.id===this.previousSettings.themeMode),this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Me.fk)({payload:{uiMessage:B.m6.NO_SPINNER,prevLnNodeIndex:+z,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-node-settings"]],decls:60,vars:17,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","fiatConversion",3,"ngModel","ngModelChange","change"],["autoFocus","","placeholder","Fiat Currency","tabindex","3","name","currencyUnit",3,"ngModel","disabled","required","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","space-between stretch",1,"settings-container","page-sub-title-container","mt-1"],[1,"mt-1"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",3,"ngModel","ngModelChange"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1",3,"inset"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxFlex.gt-xs","20","fxFlex.gt-md","15","fxLayout","column","fxLayoutAlign","space-between stretch"],["color","primary","name","themeMode",3,"ngModel","ngModelChange","change"],["tabindex","5",3,"value","ngClass",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row","class","theme-name",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],[1,"mr-4",3,"value","checked"],["tabindex","5",3,"value","ngClass"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"ngClass","click"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"form",1,2),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Balance Display"),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.TgZ(8,"div",7),t._UZ(9,"fa-icon",8),t.TgZ(10,"span"),t._uU(11,"Fiat conversion calls "),t.TgZ(12,"strong"),t.TgZ(13,"a",9),t._uU(14,"Blockchain.com"),t.qZA(),t.qZA(),t._uU(15," API to get conversion rates."),t.qZA(),t.qZA(),t.TgZ(16,"div",10),t.TgZ(17,"mat-slide-toggle",11),t.NdJ("ngModelChange",function(mi){return De.selNode.settings.fiatConversion=mi})("change",function(mi){return De.selNode.settings.currencyUnit=mi.checked?De.selNode.settings.currencyUnit:null}),t._uU(18,"Enable Fiat Conversion"),t.qZA(),t.TgZ(19,"mat-form-field"),t.TgZ(20,"mat-select",12,13),t.NdJ("ngModelChange",function(mi){return De.selNode.settings.currencyUnit=mi})("selectionChange",function(mi){return De.onCurrencyChange(mi)}),t.YNc(22,On,2,2,"mat-option",14),t.qZA(),t.YNc(23,pn,2,0,"mat-error",15),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"div",16),t.TgZ(25,"div",17),t.TgZ(26,"div",18),t._UZ(27,"fa-icon",4),t.TgZ(28,"span",5),t._uU(29,"Customization"),t.qZA(),t.qZA(),t.TgZ(30,"div",6),t.TgZ(31,"div",19),t.TgZ(32,"div",20),t._UZ(33,"fa-icon",8),t.TgZ(34,"span"),t._uU(35,"Dashboard layout will be tailored based on the role selected to better serve its needs."),t.qZA(),t.qZA(),t.TgZ(36,"div",21),t.TgZ(37,"h4"),t._uU(38,"Dashboard Layout"),t.qZA(),t.TgZ(39,"mat-radio-group",22),t.NdJ("ngModelChange",function(mi){return De.selNode.settings.userPersona=mi}),t.YNc(40,Nn,3,5,"mat-radio-button",23),t.qZA(),t.qZA(),t.qZA(),t._UZ(41,"mat-divider",24),t.TgZ(42,"div",25),t.TgZ(43,"div",26),t.TgZ(44,"h4"),t._uU(45,"Mode"),t.qZA(),t.TgZ(46,"mat-radio-group",27),t.NdJ("ngModelChange",function(mi){return De.selectedThemeMode=mi})("change",function(){return De.chooseThemeMode()}),t.YNc(47,wi,2,5,"mat-radio-button",28),t.qZA(),t.qZA(),t.qZA(),t._UZ(48,"mat-divider",24),t.TgZ(49,"div",25),t.TgZ(50,"div",29),t.TgZ(51,"h4"),t._uU(52,"Themes"),t.qZA(),t.TgZ(53,"div",30),t.YNc(54,sn,4,8,"span",31),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(55,"div",32),t.TgZ(56,"button",33),t.NdJ("click",function(){return De.onResetSettings()}),t._uU(57,"Reset"),t.qZA(),t.TgZ(58,"button",34),t.NdJ("click",function(){return De.onUpdateSettings()}),t._uU(59,"Update"),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(4),t.Q6J("icon",De.faMoneyBillAlt),t.xp6(5),t.Q6J("icon",De.faExclamationTriangle),t.xp6(8),t.Q6J("ngModel",De.selNode.settings.fiatConversion),t.xp6(3),t.Q6J("ngModel",De.selNode.settings.currencyUnit)("disabled",!De.selNode.settings.fiatConversion)("required",De.selNode.settings.fiatConversion),t.xp6(2),t.Q6J("ngForOf",De.currencyUnits),t.xp6(1),t.Q6J("ngIf",De.selNode.settings.fiatConversion&&!De.selNode.settings.currencyUnit),t.xp6(4),t.Q6J("icon",De.faPaintBrush),t.xp6(6),t.Q6J("icon",De.faInfoCircle),t.xp6(6),t.Q6J("ngModel",De.selNode.settings.userPersona),t.xp6(1),t.Q6J("ngForOf",De.userPersonas),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Q6J("ngModel",De.selectedThemeMode),t.xp6(1),t.Q6J("ngForOf",De.themeModes),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Q6J("ngForOf",De.themeColors))},directives:[b.xw,b.yH,ae.$V,We._Y,We.JL,We.F,b.Wh,Z.BN,Wi.Rr,We.JJ,We.On,vt.KE,Pe.gD,Ve.h,We.Q7,ye.sg,ye.O5,$i.VQ,Fe.d,he.lW,Ee.ey,vt.TO,$i.U0,ye.mk,An.oO],pipes:[ye.rS,ye.i8],styles:[""]}),X})();const ya=function(){return{initial:!1}};let qn=(()=>{class X{constructor(z){this.router=z,this.faLayerGroup=x.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"}],this.activeLink="",this.unSubs=[new o.x,new o.x,new o.x]}ngOnInit(){const z=this.links.find(De=>this.router.url.includes(De.link));this.activeLink=z?z.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,te.h)(De=>De instanceof I.Av)).subscribe(De=>{const Ct=this.links.find(mi=>De.urlAfterRedirects.includes(mi.link));this.activeLink=Ct?Ct.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-services-settings"]],decls:14,vars:9,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Services"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.TgZ(8,"div",6),t.NdJ("click",function(){return De.activeLink=De.links[0].link}),t._uU(9),t.qZA(),t.TgZ(10,"div",7),t.NdJ("click",function(){return De.activeLink=De.links[1].link}),t._uU(11),t.qZA(),t.qZA(),t.TgZ(12,"div",8),t._UZ(13,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(1),t.Q6J("icon",De.faLayerGroup),t.xp6(7),t.s9C("routerLink",De.links[0].link),t.Q6J("active",De.activeLink===De.links[0].link),t.xp6(1),t.Oqu(De.links[0].name),t.xp6(1),t.s9C("routerLink",De.links[1].link),t.Q6J("active",De.activeLink===De.links[1].link)("state",t.DdM(8,ya)),t.xp6(1),t.Oqu(De.links[1].name))},directives:[b.xw,b.Wh,Z.BN,P.a8,P.dn,U.BU,U.Nj,I.rH,b.yH,I.lC],styles:[""]}),X})();const Rr=["form"];function ba(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop server URL is required."),t.qZA())}function xa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the loop server url with 'https://'."),t.qZA())}function Za(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop macaroon path is required."),t.qZA())}let zr=(()=>{class X{constructor(z,De){this.logger=z,this.store=De,this.faInfoCircle=x.sqG,this.enableLoop=!1,this.unSubs=[new o.x,new o.x]}ngOnInit(){this.store.select(r.dT).pipe((0,y.R)(this.unSubs[0])).subscribe(z=>{this.selNode=z,this.enableLoop=z.settings.swapServerUrl&&""!==z.settings.swapServerUrl.trim(),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(z)})}onEnableServiceChanged(z){this.enableLoop=z.checked,this.enableLoop||(this.selNode.authentication.swapMacaroonPath="",this.selNode.settings.swapServerUrl="")}onUpdateService(){if(this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableLoop&&(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim()||!this.selNode.authentication.swapMacaroonPath||""===this.selNode.authentication.swapMacaroonPath.trim()))return!0;this.logger.info(this.selNode),this.store.dispatch((0,Me.jS)({payload:{uiMessage:B.m6.UPDATE_LOOP_SETTINGS,service:B.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-loop-service-settings"]],viewQuery:function(z,De){if(1&z&&t.Gf(Rr,7),2&z){let Ct;t.iGM(Ct=t.CRH())&&(De.form=Ct.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/lightninglabs/loop","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Loop Server URL","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Loop Macaroon Path","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(z,De){if(1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"loopd"),t.qZA(),t._uU(7," is running and accessible to RTL before enabling this service. Click "),t.TgZ(8,"strong"),t.TgZ(9,"a",3),t._uU(10,"here"),t.qZA(),t.qZA(),t._uU(11," to learn more about the installation."),t.qZA(),t.qZA(),t.TgZ(12,"form",4,5),t.TgZ(14,"div",6),t.TgZ(15,"mat-slide-toggle",7),t.NdJ("ngModelChange",function(mi){return De.enableLoop=mi})("change",function(mi){return De.onEnableServiceChanged(mi)}),t._uU(16,"Enable Loop Service"),t.qZA(),t.TgZ(17,"mat-form-field",8),t.TgZ(18,"input",9,10),t.NdJ("ngModelChange",function(mi){return De.selNode.settings.swapServerUrl=mi}),t.qZA(),t.TgZ(20,"mat-hint"),t._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),t.qZA(),t.YNc(22,ba,2,0,"mat-error",11),t.YNc(23,xa,2,0,"mat-error",11),t.qZA(),t.TgZ(24,"mat-form-field"),t.TgZ(25,"input",12),t.NdJ("ngModelChange",function(mi){return De.selNode.authentication.swapMacaroonPath=mi}),t.qZA(),t.TgZ(26,"mat-hint"),t._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),t.qZA(),t.YNc(28,Za,2,0,"mat-error",11),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"div",13),t.TgZ(30,"button",14),t.NdJ("click",function(){return De.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return De.onUpdateService()}),t._uU(33,"Update"),t.qZA(),t.qZA(),t.qZA()),2&z){const Ct=t.MAs(19);t.xp6(2),t.Q6J("icon",De.faInfoCircle),t.xp6(13),t.Q6J("ngModel",De.enableLoop),t.xp6(3),t.Q6J("ngModel",De.selNode.settings.swapServerUrl)("required",De.enableLoop)("disabled",!De.enableLoop),t.xp6(4),t.Q6J("ngIf",!De.selNode.settings.swapServerUrl&&De.enableLoop),t.xp6(1),t.Q6J("ngIf",(null==Ct||null==Ct.errors?null:Ct.errors.invalid)&&De.enableLoop),t.xp6(2),t.Q6J("ngModel",De.selNode.authentication.swapMacaroonPath)("required",De.enableLoop)("disabled",!De.enableLoop),t.xp6(3),t.Q6J("ngIf",!De.selNode.authentication.swapMacaroonPath&&De.enableLoop)}},directives:[b.xw,b.yH,ae.$V,Z.BN,We._Y,We.JL,We.F,b.Wh,Wi.Rr,Ve.h,We.JJ,We.On,vt.KE,st.Nt,We.Fj,We.Q7,vt.bx,ye.O5,he.lW,vt.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})();const ts=["form"];function rr(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz server URL is required."),t.qZA())}function ua(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the boltz server url with 'https://'."),t.qZA())}function la(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz macaroon path is required."),t.qZA())}let Ur=(()=>{class X{constructor(z,De){this.logger=z,this.store=De,this.faInfoCircle=x.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new o.x,new o.x]}ngOnInit(){this.store.select(r.dT).pipe((0,y.R)(this.unSubs[0])).subscribe(z=>{this.selNode=z,this.enableBoltz=z.settings.boltzServerUrl&&""!==z.settings.boltzServerUrl.trim(),this.serverUrl=this.selNode.settings.boltzServerUrl,this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(z)})}onEnableServiceChanged(z){this.enableBoltz=z.checked,this.enableBoltz||(this.macaroonPath="",this.serverUrl="")}onUpdateService(){if(this.serverUrl&&""!==this.serverUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableBoltz&&(!this.serverUrl||""===this.serverUrl.trim()||!this.serverUrl.includes("https://")||!this.macaroonPath||""===this.macaroonPath.trim()))return!0;this.logger.info(this.selNode),this.selNode.settings.boltzServerUrl=this.serverUrl,this.selNode.authentication.boltzMacaroonPath=this.macaroonPath,this.store.dispatch((0,Me.jS)({payload:{uiMessage:B.m6.UPDATE_BOLTZ_SETTINGS,service:B.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.serverUrl=this.selNode.settings.boltzServerUrl,this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.enableBoltz=this.serverUrl&&""!==this.serverUrl.trim()}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(z,De){if(1&z&&t.Gf(ts,7),2&z){let Ct;t.iGM(Ct=t.CRH())&&(De.form=Ct.first)}},decls:34,vars:11,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://lnd.docs.boltz.exchange/en/latest/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"mb-1",3,"ngModel","ngModelChange","change"],[1,"mb-2"],["matInput","","placeholder","Boltz Server URL","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"ngModel","required","disabled","ngModelChange"],["srvrUrl","ngModel"],[4,"ngIf"],["matInput","","placeholder","Boltz Macaroon Path","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"ngModel","required","disabled","ngModelChange"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(z,De){if(1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Please ensure that "),t.TgZ(5,"strong"),t._uU(6,"boltzd"),t.qZA(),t._uU(7," is running and accessible to RTL before enabling this service. Click "),t.TgZ(8,"strong"),t.TgZ(9,"a",3),t._uU(10,"here"),t.qZA(),t.qZA(),t._uU(11," to learn more about the installation."),t.qZA(),t.qZA(),t.TgZ(12,"form",4,5),t.TgZ(14,"div",6),t.TgZ(15,"mat-slide-toggle",7),t.NdJ("ngModelChange",function(mi){return De.enableBoltz=mi})("change",function(mi){return De.onEnableServiceChanged(mi)}),t._uU(16,"Enable Boltz Service"),t.qZA(),t.TgZ(17,"mat-form-field",8),t.TgZ(18,"input",9,10),t.NdJ("ngModelChange",function(mi){return De.serverUrl=mi}),t.qZA(),t.TgZ(20,"mat-hint"),t._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),t.qZA(),t.YNc(22,rr,2,0,"mat-error",11),t.YNc(23,ua,2,0,"mat-error",11),t.qZA(),t.TgZ(24,"mat-form-field"),t.TgZ(25,"input",12),t.NdJ("ngModelChange",function(mi){return De.macaroonPath=mi}),t.qZA(),t.TgZ(26,"mat-hint"),t._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),t.qZA(),t.YNc(28,la,2,0,"mat-error",11),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"div",13),t.TgZ(30,"button",14),t.NdJ("click",function(){return De.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return De.onUpdateService()}),t._uU(33,"Update"),t.qZA(),t.qZA(),t.qZA()),2&z){const Ct=t.MAs(19);t.xp6(2),t.Q6J("icon",De.faInfoCircle),t.xp6(13),t.Q6J("ngModel",De.enableBoltz),t.xp6(3),t.Q6J("ngModel",De.serverUrl)("required",De.enableBoltz)("disabled",!De.enableBoltz),t.xp6(4),t.Q6J("ngIf",(!De.serverUrl||""===De.serverUrl.trim())&&De.enableBoltz),t.xp6(1),t.Q6J("ngIf",(null==Ct||null==Ct.errors?null:Ct.errors.invalid)&&De.enableBoltz),t.xp6(2),t.Q6J("ngModel",De.macaroonPath)("required",De.enableBoltz)("disabled",!De.enableBoltz),t.xp6(3),t.Q6J("ngIf",!De.macaroonPath&&De.enableBoltz)}},directives:[b.xw,b.yH,ae.$V,Z.BN,We._Y,We.JL,We.F,b.Wh,Wi.Rr,Ve.h,We.JJ,We.On,vt.KE,st.Nt,We.Fj,We.Q7,vt.bx,ye.O5,he.lW,vt.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})(),ka=(()=>{class X{constructor(z,De){this.store=z,this.router=De,this.faLayerGroup=x.Krp,this.showLnConfig=!1,this.showBitcoind=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"auth",name:"Authentication"},{link:"lnconfig",name:this.lnImplementationStr},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new o.x,new o.x,new o.x]}ngOnInit(){const z=this.links.find(De=>this.router.url.includes(De.link));this.activeLink=z?z.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,te.h)(De=>De instanceof I.Av)).subscribe(De=>{const Ct=this.links.find(mi=>De.urlAfterRedirects.includes(mi.link));this.activeLink=Ct?Ct.link:this.links[0].link}),this.store.select(r.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(De=>{switch(this.showLnConfig=!1,this.showBitcoind=!1,this.selNode=De,this.selNode.lnImplementation.toUpperCase()){case"CLT":this.lnImplementationStr="C-Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[2].name=this.lnImplementationStr,this.showLnConfig=!0),this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(M.yh),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-services"]],decls:1,vars:0,template:function(z,De){1&z&&t._UZ(0,"router-outlet")},directives:[I.lC],styles:[""]}),X})();var Ra=m(8213),Zr=m(9107),Qr=m(6087),xr=m(4847),_n=m(2075),Kn=m(5899);function Dr(X,He){1&X&&t._UZ(0,"mat-progress-bar",34)}function Jr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Initiation Time "),t.qZA())}function Va(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&X){const z=He.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,z.initiation_time/1e6,"dd/MMM/y HH:mm"))}}function Pr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Last Update Time "),t.qZA())}function Pa(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&X){const z=He.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,z.last_update_time/1e6,"dd/MMM/y HH:mm"))}}function Ca(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," ID "),t.qZA())}function Vr(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const z=He.$implicit;t.xp6(1),t.Oqu(z.id)}}function er(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," ID (Bytes) "),t.qZA())}function Na(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const z=He.$implicit;t.xp6(1),t.Oqu(z.id_bytes)}}function hr(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," State "),t.qZA())}function ia(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const z=He.$implicit,De=t.oxw();t.xp6(1),t.Oqu(De.LoopStateEnum[z.state])}}function Sa(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," HTLC Address "),t.qZA())}function Nr(X,He){if(1&X&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&X){const z=He.$implicit;t.xp6(1),t.Oqu(z.htlc_address)}}function na(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Amount (Sats) "),t.qZA())}function Cr(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const z=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,z.amt))}}function is(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Server (Sats) "),t.qZA())}function Ga(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const z=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,z.cost_server))}}function fr(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Offchain (Sats) "),t.qZA())}function fa(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const z=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,z.cost_offchain))}}function ra(X,He){1&X&&(t.TgZ(0,"th",37),t._uU(1," Cost Onchain (Sats) "),t.qZA())}function pa(X,He){if(1&X&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const z=He.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==z?null:z.cost_onchain)," ")}}function Zn(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"th",39),t.TgZ(1,"div",40),t.TgZ(2,"mat-select",41),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",42),t.NdJ("click",function(){return t.CHM(z),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}}function ns(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"td",43),t.TgZ(1,"button",44),t.NdJ("click",function(Ct){const En=t.CHM(z).$implicit;return t.oxw().onSwapClick(En,Ct)}),t._uU(2,"View Info"),t.qZA(),t.qZA()}}function Wa(X,He){if(1&X&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&X){const z=t.oxw(2);t.xp6(1),t.Oqu(z.emptyTableMessage)}}function Xe(X,He){if(1&X&&(t.TgZ(0,"td",45),t.YNc(1,Wa,2,1,"p",46),t.qZA()),2&X){const z=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=z.listSwaps&&z.listSwaps.data)||(null==z.listSwaps||null==z.listSwaps.data?null:z.listSwaps.data.length)<1)}}const _e=function(X){return{"display-none":X}};function Q(X,He){if(1&X&&t._UZ(0,"tr",47),2&X){const z=t.oxw();t.Q6J("ngClass",t.VKq(1,_e,(null==z.listSwaps?null:z.listSwaps.data)&&(null==z.listSwaps||null==z.listSwaps.data?null:z.listSwaps.data.length)>0))}}function ne(X,He){1&X&&t._UZ(0,"tr",48)}function Qe(X,He){1&X&&t._UZ(0,"tr",49)}const Yt=function(X){return{"overflow-auto error-border":X,"overflow-auto":!0}},pi=function(){return["no_swap"]};let xt=(()=>{class X{constructor(z,De,Ct,mi){this.logger=z,this.commonService=De,this.store=Ct,this.loopService=mi,this.selectedSwapType=B.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.LoopStateEnum=B.Fq,this.faHistory=x.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=B.IV,this.pageSizeOptions=B.TJ,this.screenSize="",this.screenSizeEnum=B.cu,this.unSubs=[new o.x,new o.x,new o.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===B.cu.XS||this.screenSize===B.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===B.cu.MD?(this.flgSticky=!1,this.displayedColumns=["state","initiation_time","amt","actions"]):(this.flgSticky=!0,this.displayedColumns=["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain","actions"])}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(z){this.swapCaption=this.selectedSwapType===B.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}onSwapClick(z,De){this.loopService.getSwap(z.id_bytes.replace(/\//g,"_").replace(/\+/g,"-")).pipe((0,y.R)(this.unSubs[2])).subscribe(Ct=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:B.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:B.Fq[Ct.state],title:"Status",width:50,type:B.Gi.STRING},{key:"amt",value:Ct.amt,title:"Amount (Sats)",width:50,type:B.Gi.NUMBER}],[{key:"initiation_time",value:Ct.initiation_time/1e9,title:"Initiation Time",width:50,type:B.Gi.DATE_TIME},{key:"last_update_time",value:Ct.last_update_time/1e9,title:"Last Update Time",width:50,type:B.Gi.DATE_TIME}],[{key:"cost_server",value:Ct.cost_server,title:"Server Cost (Sats)",width:33,type:B.Gi.NUMBER},{key:"cost_offchain",value:Ct.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:B.Gi.NUMBER},{key:"cost_onchain",value:Ct.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:B.Gi.NUMBER}],[{key:"id_bytes",value:Ct.id_bytes,title:"ID",width:100,type:B.Gi.STRING}],[{key:"htlc_address",value:Ct.htlc_address,title:"HTLC Address",width:100,type:B.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(z){this.listSwaps=new _n.by([...z]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(De,Ct)=>De[Ct]&&isNaN(De[Ct])?De[Ct].toLocaleLowerCase():De[Ct]?+De[Ct]:null,this.listSwaps.filterPredicate=(De,Ct)=>JSON.stringify(De).toLowerCase().includes(Ct),this.listSwaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===B.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(Zr.W))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-swaps"]],viewQuery:function(z,De){if(1&z&&(t.Gf(xr.YE,5),t.Gf(Qr.NW,5)),2&z){let Ct;t.iGM(Ct=t.CRH())&&(De.sort=Ct.first),t.iGM(Ct=t.CRH())&&(De.paginator=Ct.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:Qr.ye,useValue:(0,B.pt)("Swaps")}]),t.TTD],decls:52,vars:16,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","initiation_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","last_update_time"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","state"],["matColumnDef","htlc_address"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field",5),t.TgZ(7,"input",6),t.NdJ("keyup",function(){return De.applyFilter()})("ngModelChange",function(mi){return De.selFilter=mi}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div",8),t.YNc(10,Dr,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,Jr,2,0,"th",13),t.YNc(15,Va,3,4,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Pr,2,0,"th",13),t.YNc(18,Pa,3,4,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,Ca,2,0,"th",13),t.YNc(21,Vr,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,er,2,0,"th",13),t.YNc(24,Na,2,1,"td",14),t.BQk(),t.ynx(25,18),t.YNc(26,hr,2,0,"th",13),t.YNc(27,ia,2,1,"td",14),t.BQk(),t.ynx(28,19),t.YNc(29,Sa,2,0,"th",13),t.YNc(30,Nr,2,1,"td",14),t.BQk(),t.ynx(31,20),t.YNc(32,na,2,0,"th",21),t.YNc(33,Cr,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,is,2,0,"th",21),t.YNc(36,Ga,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,fr,2,0,"th",21),t.YNc(39,fa,4,3,"td",14),t.BQk(),t.ynx(40,24),t.YNc(41,ra,2,0,"th",21),t.YNc(42,pa,4,3,"td",14),t.BQk(),t.ynx(43,25),t.YNc(44,Zn,6,0,"th",26),t.YNc(45,ns,3,0,"td",27),t.BQk(),t.ynx(46,28),t.YNc(47,Xe,2,1,"td",29),t.BQk(),t.YNc(48,Q,1,3,"tr",30),t.YNc(49,ne,1,0,"tr",31),t.YNc(50,Qe,1,0,"tr",32),t.qZA(),t._UZ(51,"mat-paginator",33),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(3),t.Q6J("icon",De.faHistory),t.xp6(2),t.hij("",De.swapCaption," History"),t.xp6(2),t.Q6J("ngModel",De.selFilter),t.xp6(3),t.Q6J("ngIf",!0===De.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",De.listSwaps)("ngClass",t.VKq(13,Yt,"error"===De.flgLoading[0])),t.xp6(37),t.Q6J("matFooterRowDef",t.DdM(15,pi)),t.xp6(1),t.Q6J("matHeaderRowDef",De.displayedColumns)("matHeaderRowDefSticky",De.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",De.displayedColumns),t.xp6(1),t.Q6J("pageSize",De.pageSize)("pageSizeOptions",De.pageSizeOptions)("showFirstLastButtons",De.screenSize!==De.screenSizeEnum.XS))},directives:[b.xw,b.yH,b.Wh,Z.BN,vt.KE,st.Nt,We.Fj,We.JJ,We.On,ae.$V,ye.O5,_n.BZ,xr.YE,ye.mk,An.oO,_n.w1,_n.fO,_n.Dz,_n.mD,_n.Ke,_n.as,_n.nj,Qr.NW,Kn.pW,_n.ge,xr.nU,_n.ev,Pe.gD,Pe.$L,Ee.ey,he.lW,_n.yh,_n.Q2,_n.XQ,_n.Gk],pipes:[ye.uU,ye.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),X})();const ei=function(X){return["../",X]};function yt(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){const mi=t.CHM(z).$implicit;return t.oxw().onSelectedIndexChange(mi)}),t._uU(1),t.qZA()}if(2&X){const z=He.$implicit,De=t.oxw();t.Q6J("active",De.activeTab.link===z.link)("routerLink",t.VKq(3,ei,z.link)),t.xp6(1),t.Oqu(z.name)}}let Wt=(()=>{class X{constructor(z,De,Ct){this.router=z,this.loopService=De,this.store=Ct,this.faInfinity=x.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=B.$I,this.selectedSwapType=B.$I.LOOP_OUT,this.storedSwaps=[],this.filteredSwaps=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"loopout",name:"Loop Out"},{link:"loopin",name:"Loop In"}],this.activeTab=this.links[0],this.unSubs=[new o.x,new o.x,new o.x,new o.x]}ngOnInit(){this.loopService.listSwaps();const z=this.links.find(De=>this.router.url.includes(De.link));this.activeTab=z||this.links[0],this.selectedSwapType=z&&"loopin"===z.link?B.$I.LOOP_IN:B.$I.LOOP_OUT,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,te.h)(De=>De instanceof I.Av)).subscribe(De=>{const Ct=this.links.find(mi=>De.urlAfterRedirects.includes(mi.link));this.activeTab=Ct||this.links[0],this.selectedSwapType=Ct&&"loopin"===Ct.link?B.$I.LOOP_IN:B.$I.LOOP_OUT}),this.loopService.swapsChanged.pipe((0,y.R)(this.unSubs[1])).subscribe({next:De=>{this.flgLoading[0]=!1,this.storedSwaps=De,this.filteredSwaps=this.storedSwaps.filter(Ct=>Ct.type===this.selectedSwapType)},error:De=>{this.flgLoading[0]="error",this.emptyTableMessage=De.message?De.message:"No loop "+(this.selectedSwapType===B.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(z){this.selectedSwapType="loopin"===z.link?B.$I.LOOP_IN:B.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps.filter(De=>De.type===this.selectedSwapType)}onLoop(z){z===B.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,y.R)(this.unSubs[2])).subscribe(De=>{this.store.dispatch((0,Me.qR)({payload:{data:{minQuote:De[0],maxQuote:De[1],direction:z,component:Ra.a}}}))}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,y.R)(this.unSubs[3])).subscribe(De=>{this.store.dispatch((0,Me.qR)({payload:{data:{minQuote:De[0],maxQuote:De[1],direction:z,component:Ra.a}}}))})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(I.F0),t.Y36(Zr.W),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-loop"]],decls:13,vars:7,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Loop"),t.qZA(),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"mat-card"),t.TgZ(6,"mat-card-content",4),t.TgZ(7,"nav",5),t.YNc(8,yt,2,5,"div",6),t.qZA(),t.TgZ(9,"div",7),t.TgZ(10,"button",8),t.NdJ("click",function(){return De.onLoop(De.selectedSwapType)}),t._uU(11),t.qZA(),t.qZA(),t._UZ(12,"rtl-swaps",9),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(1),t.Q6J("icon",De.faInfinity),t.xp6(7),t.Q6J("ngForOf",De.links),t.xp6(3),t.hij("Start ",De.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",De.selectedSwapType)("swapsData",De.filteredSwaps)("flgLoading",De.flgLoading)("emptyTableMessage",De.emptyTableMessage))},directives:[b.xw,b.Wh,Z.BN,P.a8,P.dn,U.BU,ye.sg,he.lW,xt,b.yH,U.Nj,I.rH],styles:[""]}),X})();var xi=m(7772),zi=m(1135),vn=m(2843),wn=m(262),Qi=m(2340),pr=m(1786);let Bn=(()=>{class X{constructor(z,De,Ct,mi){this.httpClient=z,this.logger=De,this.store=Ct,this.commonService=mi,this.swapUrl="",this.swaps={},this.swapsChanged=new zi.X({}),this.unSubs=[new o.x,new o.x,new o.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Me.ac)({payload:B.m6.GET_BOLTZ_SWAPS})),this.swapUrl=Qi.T5+Qi.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,y.R)(this.unSubs[0])).subscribe({next:z=>{this.store.dispatch((0,Me.uO)({payload:B.m6.GET_BOLTZ_SWAPS})),this.swaps=z,this.swapsChanged.next(this.swaps)},error:z=>this.handleErrorWithAlert(B.m6.GET_BOLTZ_SWAPS,this.swapUrl,z)})}swapInfo(z){return this.swapUrl=Qi.T5+Qi.NZ.BOLTZ_API+"/swapInfo/"+z,this.httpClient.get(this.swapUrl).pipe((0,wn.K)(De=>this.handleErrorWithAlert(B.m6.NO_SPINNER,this.swapUrl,De)))}serviceInfo(){return this.store.dispatch((0,Me.ac)({payload:B.m6.GET_SERVICE_INFO})),this.swapUrl=Qi.T5+Qi.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,y.R)(this.unSubs[1]),(0,p.U)(z=>(this.store.dispatch((0,Me.uO)({payload:B.m6.GET_SERVICE_INFO})),z)),(0,wn.K)(z=>this.handleErrorWithAlert(B.m6.GET_SERVICE_INFO,this.swapUrl,z)))}swapOut(z,De){const Ct={amount:z,address:De};return this.swapUrl=Qi.T5+Qi.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,Ct).pipe((0,wn.K)(mi=>this.handleErrorWithoutAlert("Swap Out for Address: "+De,B.m6.NO_SPINNER,mi)))}swapIn(z){const De={amount:z};return this.swapUrl=Qi.T5+Qi.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,De).pipe((0,wn.K)(Ct=>this.handleErrorWithoutAlert("Swap In for Amount: "+z,B.m6.NO_SPINNER,Ct)))}handleErrorWithoutAlert(z,De,Ct){let mi="";return this.logger.error("ERROR IN: "+z+"\n"+JSON.stringify(Ct)),this.store.dispatch((0,Me.uO)({payload:De})),401===Ct.status?(mi="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)())):503===Ct.status?(mi="Unable to Connect to Boltz Server.",this.store.dispatch((0,Me.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:Ct.status,message:"Unable to Connect to Boltz Server",URL:z},component:pr.H}}}))):mi=this.commonService.extractErrorMessage(Ct),(0,vn._)(()=>new Error(mi))}handleErrorWithAlert(z,De,Ct){let mi="";return 401===Ct.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)())),this.logger.error(Ct),this.store.dispatch((0,Me.uO)({payload:z})),401===Ct.status?(mi="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Me.kS)())):503===Ct.status?(mi="Unable to Connect to Boltz Server.",this.store.dispatch((0,Me.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:Ct.status,message:"Unable to Connect to Boltz Server",URL:De},component:pr.H}}}))):(mi=this.commonService.extractErrorMessage(Ct),this.store.dispatch((0,Me.qR)({payload:{data:{type:B.n_.ERROR,alertTitle:"ERROR",message:{code:Ct.error&&Ct.error.error&&Ct.error.error.code?Ct.error.error.code:Ct.error&&Ct.error.code?Ct.error.code:Ct.code?Ct.code:Ct.status,message:mi,URL:De},component:pr.H}}}))),(0,vn._)(()=>new Error(mi))}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.LFG(C.eN),t.LFG(we.mQ),t.LFG(M.yh),t.LFG(Ci.v))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();var Gn=m(1125);let ma=(()=>{class X{constructor(){this.serviceInfo={},this.direction=B.hc.SWAP_OUT,this.swapTypeEnum=B.hc}}return X.\u0275fac=function(z){return new(z||X)},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-service-info"]],inputs:{serviceInfo:"serviceInfo",direction:"direction"},decls:33,vars:13,consts:[["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"]],template:function(z,De){1&z&&(t.TgZ(0,"mat-expansion-panel",0),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title"),t.TgZ(3,"span",1),t._uU(4,"Service Information"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(5,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"div",4),t.TgZ(8,"h4",5),t._uU(9,"Minimum Amount (Sats)"),t.qZA(),t.TgZ(10,"span",6),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.TgZ(13,"div",4),t.TgZ(14,"h4",5),t._uU(15,"Maximum Amount (Sats)"),t.qZA(),t.TgZ(16,"span",6),t._uU(17),t.ALo(18,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(19,"mat-divider",7),t.TgZ(20,"div",3),t.TgZ(21,"div",4),t.TgZ(22,"h4",5),t._uU(23,"Fee Percentage"),t.qZA(),t.TgZ(24,"span",6),t._uU(25),t.ALo(26,"number"),t.qZA(),t.qZA(),t.TgZ(27,"div",4),t.TgZ(28,"h4",5),t._uU(29,"Miner Fee (Sats)"),t.qZA(),t.TgZ(30,"span",6),t._uU(31),t.ALo(32,"number"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.Q6J("expanded",!0),t.xp6(11),t.Oqu(t.lcZ(12,5,null==De.serviceInfo||null==De.serviceInfo.limits?null:De.serviceInfo.limits.minimal)),t.xp6(6),t.Oqu(t.lcZ(18,7,null==De.serviceInfo||null==De.serviceInfo.limits?null:De.serviceInfo.limits.maximal)),t.xp6(8),t.Oqu(t.lcZ(26,9,null==De.serviceInfo||null==De.serviceInfo.fees?null:De.serviceInfo.fees.percentage)),t.xp6(6),t.Oqu(t.lcZ(32,11,De.direction===De.swapTypeEnum.SWAP_OUT?null==De.serviceInfo||null==De.serviceInfo.fees||null==De.serviceInfo.fees.miner?null:De.serviceInfo.fees.miner.reverse:null==De.serviceInfo||null==De.serviceInfo.fees||null==De.serviceInfo.fees.miner?null:De.serviceInfo.fees.miner.normal)))},directives:[Gn.ib,b.yH,Gn.yz,Gn.yK,b.Wh,b.xw,Fe.d],pipes:[ye.JJ],styles:[""]}),X})();var Lr=m(5245);function us(X,He){1&X&&t.GkF(0)}function Ya(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"span",5),t._uU(2),t.qZA(),t.qZA()),2&X){const z=t.oxw();t.xp6(2),t.Oqu(null!=z.swapStatus&&z.swapStatus.error?null==z.swapStatus?null:z.swapStatus.error:"Unknown Error.")}}function ki(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"div",6),t.TgZ(2,"div",7),t.TgZ(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",7),t.TgZ(8,"h4",8),t._uU(9,"Routing Fee (mSats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6),t.TgZ(15,"div",7),t.TgZ(16,"h4",8),t._uU(17,"Claim Transaction ID"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA(),t.qZA(),t.TgZ(20,"div",7),t.TgZ(21,"h4",8),t._uU(22,"Lockup Address"),t.qZA(),t.TgZ(23,"span",5),t._uU(24),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&X){const z=t.oxw();t.xp6(6),t.Oqu(null==z.swapStatus?null:z.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==z.swapStatus?null:z.swapStatus.routingFeeMilliSat)),t.xp6(8),t.Oqu(null==z.swapStatus?null:z.swapStatus.claimTransactionId),t.xp6(5),t.Oqu(null==z.swapStatus?null:z.swapStatus.lockupAddress)}}function Fn(X,He){if(1&X&&(t.TgZ(0,"div",4),t.TgZ(1,"div",6),t.TgZ(2,"div",7),t.TgZ(3,"h4",8),t._uU(4,"ID"),t.qZA(),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.TgZ(7,"div",7),t.TgZ(8,"h4",8),t._uU(9,"Expected Amount (Sats)"),t.qZA(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.qZA(),t.qZA(),t.qZA(),t._UZ(13,"mat-divider",9),t.TgZ(14,"div",6),t.TgZ(15,"div",10),t.TgZ(16,"h4",8),t._uU(17,"Address"),t.qZA(),t.TgZ(18,"span",5),t._uU(19),t.qZA(),t.qZA(),t.qZA(),t._UZ(20,"mat-divider",9),t.TgZ(21,"div",6),t.TgZ(22,"div",10),t.TgZ(23,"h4",8),t._uU(24,"BIP 21"),t.qZA(),t.TgZ(25,"span",5),t._uU(26),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&X){const z=t.oxw();t.xp6(6),t.Oqu(null==z.swapStatus?null:z.swapStatus.id),t.xp6(5),t.Oqu(t.lcZ(12,4,null==z.swapStatus?null:z.swapStatus.expectedAmount)),t.xp6(8),t.Oqu(null==z.swapStatus?null:z.swapStatus.address),t.xp6(7),t.Oqu(null==z.swapStatus?null:z.swapStatus.bip21)}}let fs=(()=>{class X{constructor(){this.swapStatus=null,this.direction=B.hc.SWAP_OUT,this.swapTypeEnum=B.hc}}return X.\u0275fac=function(z){return new(z||X)},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swap-status"]],inputs:{swapStatus:"swapStatus",direction:"direction"},decls:7,vars:1,consts:[[4,"ngTemplateOutlet"],["swapFailedBlock",""],["swapOutBlock",""],["swapInBlock",""],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","100"]],template:function(z,De){if(1&z&&(t.YNc(0,us,1,0,"ng-container",0),t.YNc(1,Ya,3,1,"ng-template",null,1,t.W1O),t.YNc(3,ki,25,6,"ng-template",null,2,t.W1O),t.YNc(5,Fn,27,6,"ng-template",null,3,t.W1O)),2&z){const Ct=t.MAs(2),mi=t.MAs(4),En=t.MAs(6);t.Q6J("ngTemplateOutlet",null!=De.swapStatus&&De.swapStatus.error?Ct:De.direction===De.swapTypeEnum.SWAP_OUT?mi:En)}},directives:[ye.tP,b.xw,b.yH,b.Wh,Fe.d],pipes:[ye.JJ],styles:[""]}),X})();var cr=m(113);function js(X,He){1&X&&t.GkF(0)}const rs=function(X,He){return{"small-svg":X,"large-svg":He}};function bt(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(Ct){return t.CHM(z),t.oxw().onSwipe(Ct)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8),t._UZ(3,"path",9),t._UZ(4,"path",10),t._UZ(5,"path",11),t._UZ(6,"path",12),t._UZ(7,"path",13),t._UZ(8,"path",14),t._UZ(9,"path",15),t._UZ(10,"path",16),t._UZ(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18),t.TgZ(13,"mat-card-title"),t._uU(14,"Boltz Reverse Submarine Swap explained."),t.qZA(),t.qZA(),t.TgZ(15,"div",19),t.TgZ(16,"mat-card-subtitle",20),t._uU(17," Boltz is a privacy-first account free exchange and a Lightning Service Provider. By doing a Reverse Submarine Swap on Boltz, you can swap your Lightning Bitcoin for on-chain Bitcoin. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}function ie(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(Ct){return t.CHM(z),t.oxw().onSwipe(Ct)}),t.O4$(),t.TgZ(1,"svg",21),t.TgZ(2,"g",22),t._UZ(3,"path",23),t._UZ(4,"path",24),t._UZ(5,"path",25),t._UZ(6,"path",26),t._UZ(7,"path",27),t._UZ(8,"path",28),t.qZA(),t._UZ(9,"path",29),t.TgZ(10,"defs"),t.TgZ(11,"clipPath",30),t._UZ(12,"rect",31),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(18," You have one or more channels that are running low on inbound capacity or you want to move some of your Lightning Bitcoin to your onchain wallet. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}function de(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(Ct){return t.CHM(z),t.oxw().onSwipe(Ct)}),t.O4$(),t.TgZ(1,"svg",32),t._UZ(2,"path",33),t._UZ(3,"path",34),t._UZ(4,"path",35),t._UZ(5,"path",36),t._UZ(6,"path",37),t._UZ(7,"circle",38),t._UZ(8,"rect",39),t.TgZ(9,"defs"),t.TgZ(10,"pattern",40),t._UZ(11,"use",41),t.qZA(),t._UZ(12,"image",42),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 2: Paying the Lightning Invoice"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(18," Your Boltz client generates a secret which is sent to Boltz. In return Boltz sends a Lightning invoice based on that secret. Your Lightning node pays that invoice which moves some of your local balance to the other side of the channel. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}function je(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(Ct){return t.CHM(z),t.oxw().onSwipe(Ct)}),t.O4$(),t.TgZ(1,"svg",43),t.TgZ(2,"g",22),t._UZ(3,"path",44),t._UZ(4,"path",45),t._UZ(5,"path",46),t._UZ(6,"path",47),t._UZ(7,"path",48),t.qZA(),t.TgZ(8,"defs"),t.TgZ(9,"clipPath",30),t._UZ(10,"rect",49),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(11,"div",18),t.TgZ(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on-chain"),t.qZA(),t.qZA(),t.TgZ(14,"div",19),t.TgZ(15,"mat-card-subtitle",20),t._uU(16," In return for paying the invoice, Boltz locks on-chain BTC. Your node claims that onchain BTC to your wallet and by doing that, reveals the secret. With that secret Boltz can settle the Lightning invoice paid by your node. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}function Mt(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(Ct){return t.CHM(z),t.oxw().onSwipe(Ct)}),t.O4$(),t.TgZ(1,"svg",50),t._UZ(2,"path",51),t._UZ(3,"path",52),t._UZ(4,"path",53),t._UZ(5,"path",54),t._UZ(6,"path",55),t.qZA(),t.kcU(),t.TgZ(7,"div",18),t.TgZ(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA(),t.qZA(),t.TgZ(10,"div",19),t.TgZ(11,"mat-card-subtitle",20),t._uU(12," You have now successfully received your funds in your on-chain wallet and also spent your local balance to increase the inbound capacity of your node - all in a non-custodial manner. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,rs,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}let kt=(()=>{class X{constructor(z){this.commonService=z,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=B.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(z){2===z.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===z.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swapout-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","368","height","368","viewBox","0 0 368 368","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M306.667 153.333H276L260.667 184L233.797 153.763C229.441 148.861 224.595 144.24 218.529 141.746C212.54 139.284 206.099 138 199.561 138H92C41.19 138 1.52588e-05 179.19 1.52588e-05 230C1.52588e-05 280.81 41.19 322 92 322H199.561C206.099 322 212.54 320.715 218.529 318.254C224.595 315.761 229.441 311.139 233.797 306.237L260.667 276L276 306.667H306.667L291.333 260.667L306.667 230L291.333 199.333L306.667 153.333Z",1,"fill-color-0"],["d","M337.333 122.667H306.667L291.333 153.333L264.464 123.097C260.107 118.194 255.261 113.573 249.195 111.079C243.206 108.618 236.766 107.333 230.228 107.333H122.667C71.8566 107.333 30.6667 148.523 30.6667 199.333C30.6667 250.143 71.8566 291.333 122.667 291.333H230.228C236.766 291.333 243.206 290.048 249.195 287.587C255.261 285.094 260.107 280.473 264.464 275.571L291.333 245.333L306.667 276H337.333L322 230L337.333 199.333L322 168.667L337.333 122.667Z",1,"stroke-color-thicker"],["d","M214.667 245.333C206.198 245.333 199.333 238.468 199.333 230C199.333 221.532 206.198 214.667 214.667 214.667C223.135 214.667 230 221.532 230 230C230 238.468 223.135 245.333 214.667 245.333Z",1,"fill-color-15"],["d","M245.333 214.667C236.865 214.667 230 207.802 230 199.333C230 190.865 236.865 184 245.333 184C253.802 184 260.667 190.865 260.667 199.333C260.667 207.802 253.802 214.667 245.333 214.667Z",1,"stroke-color-thicker"],["d","M138 245.333C129.532 245.333 122.667 238.468 122.667 230C122.667 221.532 129.532 214.667 138 214.667C146.468 214.667 153.333 221.532 153.333 230C153.333 238.468 146.468 245.333 138 245.333Z",1,"fill-color-15"],["d","M168.667 214.667C160.198 214.667 153.333 207.802 153.333 199.333C153.333 190.865 160.198 184 168.667 184C177.135 184 184 190.865 184 199.333C184 207.802 177.135 214.667 168.667 214.667Z",1,"stroke-color-thicker"],["d","M61.3334 245.333C52.865 245.333 46 238.468 46 230C46 221.532 52.865 214.667 61.3334 214.667C69.8017 214.667 76.6667 221.532 76.6667 230C76.6667 238.468 69.8017 245.333 61.3334 245.333Z",1,"fill-color-15"],["d","M92 214.667C83.5316 214.667 76.6666 207.802 76.6666 199.333C76.6666 190.865 83.5316 184 92 184C100.468 184 107.333 190.865 107.333 199.333C107.333 207.802 100.468 214.667 92 214.667Z",1,"stroke-color-thicker"],["d","M239.077 111C241.796 111 244 113.204 244 115.923V126.077C244 128.796 241.796 131 239.077 131H191.923C189.204 131 187 128.796 187 126.077V115.923C187 113.204 189.204 111 191.923 111H239.077Z",1,"fill-color-15"],["d","M184 76.6666V107.333H122.667V76.6666H184Z",1,"stroke-color-thicker"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","383","height","279","viewBox","0 0 383 279","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M267.882 220.417V104.583C267.882 98.2125 263.809 93 258.832 93H114.029C109.051 93 104.978 98.2125 104.978 104.583V220.417C104.978 226.787 109.051 232 114.029 232H258.832C263.809 232 267.882 226.787 267.882 220.417Z",1,"fill-color-0"],["d","M357.75 197.625V81.375C357.75 74.9812 352.069 69.75 345.125 69.75H143.125C136.181 69.75 130.5 74.9812 130.5 81.375V197.625C130.5 204.019 136.181 209.25 143.125 209.25H345.125C352.069 209.25 357.75 204.019 357.75 197.625Z",1,"stroke-color-thin"],["d","M86.3125 186H105.25V139.5H86.3125C82.7775 139.5 80 142.057 80 145.312V180.188C80 183.443 82.7775 186 86.3125 186Z",1,"fill-color-15"],["d","M111.562 162.75H130.5V116.25H111.562C108.027 116.25 105.25 118.807 105.25 122.062V156.938C105.25 160.193 108.027 162.75 111.562 162.75Z",1,"stroke-color-thin"],["d","M205.979 116V150.875",1,"stroke-color-thin"],["d","M205.979 185.634V185.749",1,"stroke-color-thin"],["d","M2.44963 159.45C0.488815 161.41 0.488815 164.59 2.44963 166.55L34.403 198.504C36.3638 200.465 39.5429 200.465 41.5037 198.504C43.4645 196.543 43.4645 193.364 41.5037 191.403L13.1007 163L41.5037 134.597C43.4645 132.636 43.4645 129.457 41.5037 127.496C39.5429 125.535 36.3638 125.535 34.403 127.496L2.44963 159.45ZM65 157.979H6V168.021H65V157.979Z",1,"fill-color-15"],["id","clip0"],["width","303","height","279","transform","matrix(-1 0 0 1 383 0)",1,"fill-color-30"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["d","M138.762 67C136.099 73.913 133.436 81.3578 130.24 88.8025C130.24 88.8025 130.24 89.8661 131.305 89.8661H153.143C153.143 89.8661 153.143 90.3979 153.676 90.9296L121.718 126.558C121.185 126.026 121.185 125.495 121.185 124.963L132.371 101.033V98.9062H110V96.7791L137.164 67H138.762Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","317","y","81","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["fill-rule","evenodd","clip-rule","evenodd","d","M169.522 122.093C171.059 115.241 166.054 111.136 159.022 108.13L162.04 98.916L156.431 97.0797L153.493 106.051C152.019 105.569 150.502 105.104 148.995 104.643L151.953 95.613L146.348 93.7769L143.329 102.988C142.106 102.615 140.906 102.247 139.743 101.867L139.752 101.838L132.017 99.3019L130.057 105.293C130.057 105.293 134.224 106.57 134.131 106.624C136.402 107.369 136.71 108.93 136.552 110.138L133.115 120.635C133.271 120.687 133.473 120.761 133.695 120.869C133.66 120.857 133.626 120.846 133.591 120.834C133.562 120.825 133.534 120.816 133.505 120.806C133.375 120.763 133.24 120.719 133.102 120.675L128.284 135.38C127.95 136.062 127.157 137.065 125.569 136.548C125.62 136.635 121.492 135.211 121.492 135.211L118.184 141.544L125.483 143.935C126.298 144.203 127.103 144.476 127.899 144.746L127.901 144.747C128.431 144.927 128.956 145.105 129.479 145.28L126.429 154.6L132.031 156.436L135.051 147.215C136.579 147.75 138.064 148.25 139.517 148.725L136.509 157.902L142.118 159.739L145.166 150.437C154.773 152.984 162.15 152.77 165.87 144.183C168.867 137.27 166.555 132.99 161.623 129.952C165.417 129.361 168.406 127.109 169.522 122.093ZM155.149 139.449C153.059 145.84 143.068 142.413 138.496 140.845L138.496 140.845C138.085 140.704 137.718 140.578 137.404 140.476L141.449 128.129C141.831 128.254 142.299 128.395 142.829 128.555L142.829 128.555C147.571 129.985 157.289 132.916 155.149 139.449ZM144.22 122.79C148.031 124.108 156.343 126.982 158.247 121.175C160.192 115.234 152.086 112.815 148.127 111.634C147.682 111.501 147.289 111.383 146.969 111.279L143.301 122.477C143.565 122.563 143.874 122.67 144.22 122.79Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["width","225.692","height","225.692","transform","translate(0 85.983) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","298","height","300","viewBox","0 0 298 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M248.333 237.5V112.5C248.333 105.625 242.746 100 235.917 100H37.2501C30.421 100 24.8335 105.625 24.8335 112.5V237.5C24.8335 244.375 30.421 250 37.2501 250H235.917C242.746 250 248.333 244.375 248.333 237.5Z",1,"fill-color-0"],["d","M273.167 212.5V87.5C273.167 80.625 267.579 75 260.75 75H62.0832C55.254 75 49.6665 80.625 49.6665 87.5V212.5C49.6665 219.375 55.254 225 62.0832 225H260.75C267.579 225 273.167 219.375 273.167 212.5Z",1,"stroke-color"],["d","M6.20851 200H24.8335V150H6.20851C2.73185 150 0.000183105 152.75 0.000183105 156.25V193.75C0.000183105 197.25 2.73185 200 6.20851 200Z",1,"fill-color-0"],["d","M31.0415 175H49.6665V125H31.0415C27.5648 125 24.8331 127.75 24.8331 131.25V168.75C24.8331 172.25 27.5648 175 31.0415 175Z",1,"stroke-color"],["d","M161.417 187.5L142.792 150H180.042L161.417 112.5",1,"stroke-color"]],template:function(z,De){if(1&z&&(t.YNc(0,js,1,0,"ng-container",0),t.YNc(1,bt,18,5,"ng-template",null,1,t.W1O),t.YNc(3,ie,19,5,"ng-template",null,2,t.W1O),t.YNc(5,de,19,5,"ng-template",null,3,t.W1O),t.YNc(7,je,17,5,"ng-template",null,4,t.W1O),t.YNc(9,Mt,13,5,"ng-template",null,5,t.W1O)),2&z){const Ct=t.MAs(2),mi=t.MAs(4),En=t.MAs(6),Ar=t.MAs(8),In=t.MAs(10);t.Q6J("ngTemplateOutlet",1===De.stepNumber?Ct:2===De.stepNumber?mi:3===De.stepNumber?En:4===De.stepNumber?Ar:In)}},directives:[ye.tP,b.xw,b.yH,b.Wh,ye.mk,An.oO,P.n5,P.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[cr.l]}}),X})();function Kt(X,He){1&X&&t.GkF(0)}const Jt=function(X,He){return{"small-svg":X,"large-svg":He}};function fi(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(Ct){return t.CHM(z),t.oxw().onSwipe(Ct)}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",8),t._UZ(3,"path",9),t._UZ(4,"path",10),t._UZ(5,"path",11),t._UZ(6,"path",12),t._UZ(7,"path",13),t._UZ(8,"path",14),t._UZ(9,"path",15),t._UZ(10,"path",16),t._UZ(11,"path",17),t.qZA(),t.kcU(),t.TgZ(12,"div",18),t.TgZ(13,"mat-card-title"),t._uU(14,"Boltz Submarine Swaps explained."),t.qZA(),t.qZA(),t.TgZ(15,"div",19),t.TgZ(16,"mat-card-subtitle",20),t._uU(17," Boltz is a privacy-first account free exchange and a Lightning service provider. By doing a Submarine Swap on Boltz, you can swap your on-chain Bitcoin for Lightning Bitcoin. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Jt,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}function Ai(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(Ct){return t.CHM(z),t.oxw().onSwipe(Ct)}),t.O4$(),t.TgZ(1,"svg",21),t._UZ(2,"path",22),t._UZ(3,"path",23),t._UZ(4,"path",24),t._UZ(5,"path",25),t._UZ(6,"path",26),t._UZ(7,"path",27),t._UZ(8,"path",28),t.qZA(),t.kcU(),t.TgZ(9,"div",18),t.TgZ(10,"mat-card-title"),t._uU(11,"Step 1: Deciding to Submarine Swap"),t.qZA(),t.qZA(),t.TgZ(12,"div",19),t.TgZ(13,"mat-card-subtitle",20),t._uU(14," You have one or more Lightning channels that are running low on outbound liquidity and you want to fund it using your on-chain Bitcoin. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Jt,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}function Zi(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(Ct){return t.CHM(z),t.oxw().onSwipe(Ct)}),t.O4$(),t.TgZ(1,"svg",29),t._UZ(2,"path",30),t._UZ(3,"path",31),t._UZ(4,"path",32),t._UZ(5,"path",33),t._UZ(6,"path",34),t._UZ(7,"circle",35),t._UZ(8,"rect",36),t.TgZ(9,"defs"),t.TgZ(10,"pattern",37),t._UZ(11,"use",38),t.qZA(),t._UZ(12,"image",39),t.qZA(),t.qZA(),t.kcU(),t.TgZ(13,"div",18),t.TgZ(14,"mat-card-title"),t._uU(15,"Step 2: Sending the on-chain funds"),t.qZA(),t.qZA(),t.TgZ(16,"div",19),t.TgZ(17,"mat-card-subtitle",20),t._uU(18," You send the on-chain funds to an address which can only be spent by Boltz when it pays a Lightning invoice to your node. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Jt,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}function en(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(Ct){return t.CHM(z),t.oxw().onSwipe(Ct)}),t.O4$(),t.TgZ(1,"svg",40),t.TgZ(2,"g",41),t._UZ(3,"path",42),t._UZ(4,"path",43),t._UZ(5,"path",44),t._UZ(6,"path",45),t._UZ(7,"path",46),t.qZA(),t.TgZ(8,"defs"),t.TgZ(9,"clipPath",47),t._UZ(10,"rect",48),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(11,"div",18),t.TgZ(12,"mat-card-title"),t._uU(13,"Step 3: Receiving the funds on Lightning"),t.qZA(),t.qZA(),t.TgZ(14,"div",19),t.TgZ(15,"mat-card-subtitle",20),t._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Jt,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}function Cn(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(Ct){return t.CHM(z),t.oxw().onSwipe(Ct)}),t.O4$(),t.TgZ(1,"svg",49),t._UZ(2,"path",50),t._UZ(3,"path",51),t._UZ(4,"path",52),t._UZ(5,"path",53),t._UZ(6,"path",54),t.qZA(),t.kcU(),t.TgZ(7,"div",18),t.TgZ(8,"mat-card-title"),t._uU(9,"Done!"),t.qZA(),t.qZA(),t.TgZ(10,"div",19),t.TgZ(11,"mat-card-subtitle",20),t._uU(12," You swapped your on-chain Bitcoin for Lightning Bitcoin, while also adding outbound capacity for your channels in the process - all in a non-custodial manner. "),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,Jt,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}let kn=(()=>{class X{constructor(z){this.commonService=z,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=B.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(z){2===z.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===z.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swapin-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},decls:11,vars:1,consts:[[4,"ngTemplateOutlet"],["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","323","height","323","viewBox","0 0 323 323","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M53.8333 134.583H80.75L94.2083 161.5L117.792 134.961C121.616 130.658 125.869 126.602 131.194 124.413C136.45 122.252 142.103 121.125 147.842 121.125H242.25C286.847 121.125 323 157.278 323 201.875C323 246.472 286.847 282.625 242.25 282.625H147.842C142.103 282.625 136.45 281.497 131.194 279.337C125.869 277.149 121.616 273.092 117.792 268.79L94.2083 242.25L80.75 269.167H53.8333L67.2917 228.792L53.8333 201.875L67.2917 174.958L53.8333 134.583Z",1,"fill-color-0"],["d","M26.9167 107.667H53.8333L67.2917 134.583L90.8755 108.044C94.6993 103.741 98.9527 99.6849 104.277 97.4963C109.534 95.3357 115.187 94.2083 120.925 94.2083H215.333C259.93 94.2083 296.083 130.361 296.083 174.958C296.083 219.555 259.93 255.708 215.333 255.708H120.925C115.187 255.708 109.534 254.581 104.277 252.42C98.9527 250.232 94.6993 246.176 90.8755 241.873L67.2917 215.333L53.8333 242.25H26.9167L40.375 201.875L26.9167 174.958L40.375 148.042L26.9167 107.667Z",1,"stroke-color-thick"],["d","M134.583 215.333C142.016 215.333 148.042 209.308 148.042 201.875C148.042 194.442 142.016 188.417 134.583 188.417C127.151 188.417 121.125 194.442 121.125 201.875C121.125 209.308 127.151 215.333 134.583 215.333Z",1,"fill-color-15"],["d","M107.667 188.417C115.1 188.417 121.125 182.391 121.125 174.958C121.125 167.526 115.1 161.5 107.667 161.5C100.234 161.5 94.2083 167.526 94.2083 174.958C94.2083 182.391 100.234 188.417 107.667 188.417Z",1,"stroke-color-thick"],["d","M201.875 215.333C209.308 215.333 215.333 209.308 215.333 201.875C215.333 194.442 209.308 188.417 201.875 188.417C194.442 188.417 188.417 194.442 188.417 201.875C188.417 209.308 194.442 215.333 201.875 215.333Z",1,"fill-color-15"],["d","M174.958 188.417C182.391 188.417 188.417 182.391 188.417 174.958C188.417 167.526 182.391 161.5 174.958 161.5C167.526 161.5 161.5 167.526 161.5 174.958C161.5 182.391 167.526 188.417 174.958 188.417Z",1,"stroke-color-thick"],["d","M269.167 215.333C276.599 215.333 282.625 209.308 282.625 201.875C282.625 194.442 276.599 188.417 269.167 188.417C261.734 188.417 255.708 194.442 255.708 201.875C255.708 209.308 261.734 215.333 269.167 215.333Z",1,"fill-color-15"],["d","M242.25 188.417C249.683 188.417 255.708 182.391 255.708 174.958C255.708 167.526 249.683 161.5 242.25 161.5C234.817 161.5 228.792 167.526 228.792 174.958C228.792 182.391 234.817 188.417 242.25 188.417Z",1,"stroke-color-thick"],["d","M189.321 97C186.935 97 185 98.9345 185 101.321V112.679C185 115.065 186.935 117 189.321 117H237.679C240.065 117 242 115.065 242 112.679V101.321C242 98.9345 240.065 97 237.679 97H189.321Z",1,"fill-color-15"],["d","M161.5 67.2917V94.2083H215.333V67.2917H161.5Z",1,"stroke-color-thick"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","347","height","169","viewBox","0 0 347 169","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M89 157.417V41.5833C89 35.2125 92.75 30 97.3333 30H230.667C235.25 30 239 35.2125 239 41.5833V157.417C239 163.787 235.25 169 230.667 169H97.3333C92.75 169 89 163.787 89 157.417Z",1,"fill-color-0"],["d","M6.25 134.625V18.375C6.25 11.9812 11.4812 6.75 17.875 6.75H203.875C210.269 6.75 215.5 11.9812 215.5 18.375V134.625C215.5 141.019 210.269 146.25 203.875 146.25H17.875C11.4812 146.25 6.25 141.019 6.25 134.625Z",1,"stroke-color-thin"],["d","M256.188 123H238.75V76.5H256.188C259.442 76.5 262 79.0575 262 82.3125V117.188C262 120.443 259.442 123 256.188 123Z",1,"fill-color-15"],["d","M232.938 99.75H215.5V53.25H232.938C236.193 53.25 238.75 55.8075 238.75 59.0625V93.9375C238.75 97.1925 236.193 99.75 232.938 99.75Z",1,"stroke-color-thin"],["d","M146 53V87.875",1,"stroke-color-thin"],["d","M146 122.634V122.749",1,"stroke-color-thin"],["d","M344.698 95.3022C346.74 97.3445 346.74 100.656 344.698 102.698L311.418 135.978C309.376 138.02 306.065 138.02 304.022 135.978C301.98 133.935 301.98 130.624 304.022 128.582L333.604 99L304.022 69.418C301.98 67.3758 301.98 64.0647 304.022 62.0225C306.065 59.9803 309.376 59.9803 311.418 62.0225L344.698 95.3022ZM277 93.7706L341 93.7706V104.229L277 104.229V93.7706Z",1,"fill-color-15"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["fill-rule","evenodd","clip-rule","evenodd","d","M161.033 82.5635C162.307 74.0523 155.826 69.4769 146.965 66.4247L149.84 54.8952L142.822 53.1462L140.023 64.3718C138.178 63.9121 136.283 63.4783 134.4 63.0486L137.219 51.749L130.205 50L127.328 61.5255C125.801 61.1777 124.302 60.8338 122.847 60.4721L122.855 60.4361L113.177 58.0194L111.31 65.5152C111.31 65.5152 116.517 66.7085 116.407 66.7825C119.249 67.4921 119.763 69.373 119.677 70.8641L116.403 83.9987C116.599 84.0487 116.852 84.1206 117.132 84.2326C117.096 84.2236 117.06 84.2146 117.023 84.2054C116.981 84.1948 116.938 84.184 116.894 84.1731C116.732 84.1323 116.563 84.09 116.391 84.0487L111.801 102.448C111.453 103.312 110.572 104.607 108.585 104.115C108.655 104.217 103.484 102.842 103.484 102.842L100 110.875L109.133 113.152C110.152 113.408 111.16 113.67 112.156 113.93L112.158 113.931L112.159 113.931C112.823 114.104 113.481 114.276 114.136 114.443L111.232 126.105L118.242 127.854L121.118 116.316C123.033 116.836 124.892 117.316 126.711 117.768L123.844 129.251L130.862 131L133.767 119.361C145.734 121.625 154.733 120.712 158.521 109.888C161.573 101.173 158.369 96.1458 152.072 92.8677C156.658 91.8103 160.112 88.794 161.033 82.5635ZM144.998 105.049C143.008 113.044 130.493 109.739 124.766 108.226L124.766 108.226C124.251 108.09 123.791 107.969 123.398 107.871L127.252 92.4219C127.73 92.5412 128.314 92.6723 128.976 92.8208L128.976 92.8208C134.899 94.1498 147.037 96.8734 144.998 105.049ZM130.167 85.6513C134.942 86.9255 145.356 89.7047 147.17 82.4376C149.022 75.0044 138.901 72.7637 133.957 71.6694C133.401 71.5463 132.911 71.4377 132.51 71.3379L129.016 85.3499C129.346 85.4322 129.733 85.5356 130.167 85.6513Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","313.615","y","82.836","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["d","M154.81 93.8059C152.146 100.719 149.483 108.164 146.287 115.608C146.287 115.608 146.287 116.672 147.353 116.672H169.191C169.191 116.672 169.191 117.204 169.723 117.736L137.765 153.364C137.233 152.832 137.233 152.301 137.233 151.769L148.418 127.839V125.712H126.047V123.585L153.212 93.8059H154.81Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["id","clip0"],["width","225.692","height","225.692","transform","translate(0 85.9831) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","300","height","300","viewBox","0 0 300 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M50 237.5V112.5C50 105.625 55.625 100 62.5 100H262.5C269.375 100 275 105.625 275 112.5V237.5C275 244.375 269.375 250 262.5 250H62.5C55.625 250 50 244.375 50 237.5Z",1,"fill-color-0"],["d","M25 212.5V87.5C25 80.625 30.625 75 37.5 75H237.5C244.375 75 250 80.625 250 87.5V212.5C250 219.375 244.375 225 237.5 225H37.5C30.625 225 25 219.375 25 212.5Z",1,"stroke-color"],["d","M293.75 200H275V150H293.75C297.25 150 300 152.75 300 156.25V193.75C300 197.25 297.25 200 293.75 200Z",1,"fill-color-0"],["d","M268.75 175H250V125H268.75C272.25 125 275 127.75 275 131.25V168.75C275 172.25 272.25 175 268.75 175Z",1,"stroke-color"],["d","M137.5 187.5L156.25 150H118.75L137.5 112.5",1,"stroke-color"]],template:function(z,De){if(1&z&&(t.YNc(0,Kt,1,0,"ng-container",0),t.YNc(1,fi,18,5,"ng-template",null,1,t.W1O),t.YNc(3,Ai,15,5,"ng-template",null,2,t.W1O),t.YNc(5,Zi,19,5,"ng-template",null,3,t.W1O),t.YNc(7,en,17,5,"ng-template",null,4,t.W1O),t.YNc(9,Cn,13,5,"ng-template",null,5,t.W1O)),2&z){const Ct=t.MAs(2),mi=t.MAs(4),En=t.MAs(6),Ar=t.MAs(8),In=t.MAs(10);t.Q6J("ngTemplateOutlet",1===De.stepNumber?Ct:2===De.stepNumber?mi:3===De.stepNumber?En:4===De.stepNumber?Ar:In)}},directives:[ye.tP,b.xw,b.yH,b.Wh,ye.mk,An.oO,P.n5,P.$j],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[cr.l]}}),X})();const tt=["stepper"];function Et(X,He){if(1&X&&t._uU(0),2&X){const z=t.oxw(2);t.Oqu(z.inputFormLabel)}}function It(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function zt(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&X){const z=t.oxw(2);t.xp6(1),t.hij("Amount must be greater than or equal to ",t.lcZ(2,1,null==z.serviceInfo||null==z.serviceInfo.limits?null:z.serviceInfo.limits.minimal),".")}}function ri(X,He){if(1&X&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&X){const z=t.oxw(2);t.xp6(1),t.hij("Amount must be less than or equal to ",t.lcZ(2,1,null==z.serviceInfo||null==z.serviceInfo.limits?null:z.serviceInfo.limits.maximal),".")}}function vi(X,He){1&X&&(t.TgZ(0,"button",40),t._uU(1,"Next"),t.qZA())}function Mi(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){return t.CHM(z),t.oxw(2).onSwap()}),t._uU(1),t.qZA()}if(2&X){const z=t.oxw(2);t.xp6(1),t.hij("Initiate ",z.swapDirectionCaption,"")}}function Ei(X,He){if(1&X&&t._uU(0),2&X){const z=t.oxw(3);t.Oqu(z.addressFormLabel)}}function ji(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function hn(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"mat-step",15),t.TgZ(1,"form",16),t.YNc(2,Ei,1,1,"ng-template",17),t.TgZ(3,"div",42),t.TgZ(4,"mat-radio-group",43),t.NdJ("change",function(Ct){return t.CHM(z),t.oxw(2).onAddressTypeChange(Ct)}),t.TgZ(5,"mat-radio-button",44),t._uU(6,"Node Local Address"),t.qZA(),t.TgZ(7,"mat-radio-button",45),t._uU(8,"External Address"),t.qZA(),t.qZA(),t.TgZ(9,"mat-form-field",46),t._UZ(10,"input",47),t.YNc(11,ji,2,0,"mat-error",24),t.qZA(),t.qZA(),t.TgZ(12,"div",25),t.TgZ(13,"button",48),t.NdJ("click",function(){return t.CHM(z),t.oxw(2).onSwap()}),t._uU(14),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw(2);t.Q6J("stepControl",z.addressFormGroup)("editable",z.flgEditable),t.xp6(1),t.Q6J("formGroup",z.addressFormGroup),t.xp6(9),t.Q6J("required","external"===z.addressFormGroup.controls.addressType.value),t.xp6(1),t.Q6J("ngIf",null==z.addressFormGroup.controls.address.errors?null:z.addressFormGroup.controls.address.errors.required),t.xp6(3),t.hij("Initiate ",z.swapDirectionCaption,"")}}function yn(X,He){if(1&X&&t._uU(0),2&X){const z=t.oxw(2);t.hij("",z.swapDirectionCaption," Status")}}function Sn(X,He){if(1&X&&(t.TgZ(0,"mat-icon",49),t._uU(1),t.qZA()),2&X){const z=t.oxw(2);t.xp6(1),t.Oqu(z.swapStatus&&null!=z.swapStatus&&z.swapStatus.id?"check":"close")}}function Vn(X,He){1&X&&t._UZ(0,"div")}function Mr(X,He){1&X&&t._UZ(0,"mat-progress-bar",50)}function Or(X,He){if(1&X&&(t.TgZ(0,"h4",51),t._uU(1),t.qZA()),2&X){const z=t.oxw(2);t.xp6(1),t.Oqu(z.swapStatus&&z.swapStatus.error?z.swapDirectionCaption+" failed.":z.swapStatus&&z.swapStatus.id?z.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":z.swapDirectionCaption+" request placed successfully.")}}function wr(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){return t.CHM(z),t.oxw(2).onRestart()}),t._uU(1,"Start Again"),t.qZA()}}function Yn(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",3),t.TgZ(1,"div",4),t.TgZ(2,"mat-card-header",5),t.TgZ(3,"div",6),t.TgZ(4,"span",7),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"div",8),t.TgZ(7,"button",9),t.NdJ("click",function(){return t.CHM(z),t.oxw().showInfo()}),t._uU(8,"?"),t.qZA(),t.TgZ(9,"button",10),t.NdJ("click",function(){return t.CHM(z),t.oxw().onClose()}),t._uU(10,"X"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"mat-card-content",11),t.TgZ(12,"div",12),t.TgZ(13,"mat-vertical-stepper",13,14),t.NdJ("selectionChange",function(Ct){return t.CHM(z),t.oxw().stepSelectionChanged(Ct)}),t.TgZ(15,"mat-step",15),t.TgZ(16,"form",16),t.YNc(17,Et,1,1,"ng-template",17),t.TgZ(18,"div",18),t._UZ(19,"rtl-boltz-service-info",19),t.qZA(),t.TgZ(20,"div",20),t.TgZ(21,"mat-form-field",21),t._UZ(22,"input",22),t.TgZ(23,"mat-hint"),t._uU(24),t.ALo(25,"number"),t.ALo(26,"number"),t.qZA(),t.TgZ(27,"span",23),t._uU(28,"Sats"),t.qZA(),t.YNc(29,It,2,0,"mat-error",24),t.YNc(30,zt,3,3,"mat-error",24),t.YNc(31,ri,3,3,"mat-error",24),t.qZA(),t.qZA(),t.TgZ(32,"div",25),t.YNc(33,vi,2,0,"button",26),t.YNc(34,Mi,2,1,"button",27),t.qZA(),t.qZA(),t.qZA(),t.YNc(35,hn,15,6,"mat-step",28),t.TgZ(36,"mat-step",29),t.TgZ(37,"form",16),t.YNc(38,yn,1,1,"ng-template",17),t.TgZ(39,"div",30),t.TgZ(40,"mat-expansion-panel",31),t.TgZ(41,"mat-expansion-panel-header"),t.TgZ(42,"mat-panel-title"),t.TgZ(43,"span",32),t._uU(44),t.YNc(45,Sn,2,1,"mat-icon",33),t.qZA(),t.qZA(),t.qZA(),t.YNc(46,Vn,1,0,"div",34),t.qZA(),t.YNc(47,Mr,1,0,"mat-progress-bar",35),t.qZA(),t.YNc(48,Or,2,1,"h4",36),t.TgZ(49,"div",25),t.YNc(50,wr,2,0,"button",37),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(51,"div",38),t.TgZ(52,"button",39),t._uU(53,"Close"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw(),De=t.MAs(2);t.Q6J("@opacityAnimation",void 0),t.xp6(3),t.Q6J("fxFlex",z.screenSize===z.screenSizeEnum.XS||z.screenSize===z.screenSizeEnum.SM?"83":"91"),t.xp6(2),t.Oqu(z.swapDirectionCaption),t.xp6(1),t.Q6J("fxFlex",z.screenSize===z.screenSizeEnum.XS||z.screenSize===z.screenSizeEnum.SM?"17":"9"),t.xp6(7),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",z.inputFormGroup)("editable",z.flgEditable),t.xp6(1),t.Q6J("formGroup",z.inputFormGroup),t.xp6(3),t.Q6J("serviceInfo",z.serviceInfo)("direction",z.direction),t.xp6(3),t.Q6J("step",1e3),t.xp6(2),t.AsE("Range: ",t.lcZ(25,30,null==z.serviceInfo||null==z.serviceInfo.limits?null:z.serviceInfo.limits.minimal),"-",t.lcZ(26,32,null==z.serviceInfo||null==z.serviceInfo.limits?null:z.serviceInfo.limits.maximal),""),t.xp6(5),t.Q6J("ngIf",null==z.inputFormGroup||null==z.inputFormGroup.controls||null==z.inputFormGroup.controls.amount||null==z.inputFormGroup.controls.amount.errors?null:z.inputFormGroup.controls.amount.errors.required),t.xp6(1),t.Q6J("ngIf",null==z.inputFormGroup||null==z.inputFormGroup.controls||null==z.inputFormGroup.controls.amount||null==z.inputFormGroup.controls.amount.errors?null:z.inputFormGroup.controls.amount.errors.min),t.xp6(1),t.Q6J("ngIf",null==z.inputFormGroup||null==z.inputFormGroup.controls||null==z.inputFormGroup.controls.amount||null==z.inputFormGroup.controls.amount.errors?null:z.inputFormGroup.controls.amount.errors.max),t.xp6(2),t.Q6J("ngIf",z.direction===z.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",z.direction===z.swapTypeEnum.SWAP_IN),t.xp6(1),t.Q6J("ngIf",z.direction===z.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("stepControl",z.statusFormGroup),t.xp6(1),t.Q6J("formGroup",z.statusFormGroup),t.xp6(3),t.Q6J("expanded",!!z.swapStatus),t.xp6(4),t.Oqu(z.swapStatus?z.swapStatus.id?z.swapDirectionCaption+" request details":z.swapDirectionCaption+" error details":"Waiting for "+z.swapDirectionCaption+" request..."),t.xp6(1),t.Q6J("ngIf",z.swapStatus),t.xp6(1),t.Q6J("ngIf",!z.swapStatus)("ngIfElse",De),t.xp6(1),t.Q6J("ngIf",!z.swapStatus),t.xp6(1),t.Q6J("ngIf",z.swapStatus),t.xp6(2),t.Q6J("ngIf",z.swapStatus&&(z.swapStatus.error||!z.swapStatus.id)),t.xp6(2),t.Q6J("mat-dialog-close",!1)}}function mr(X,He){if(1&X&&t._UZ(0,"rtl-boltz-swap-status",53),2&X){const z=t.oxw();t.Q6J("swapStatus",z.swapStatus)("direction",z.direction)}}function Bi(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"rtl-boltz-swapout-info-graphics",70),t.NdJ("stepNumberChange",function(Ct){return t.CHM(z),t.oxw(2).stepNumber=Ct}),t.qZA()}if(2&X){const z=t.oxw(2);t.Q6J("stepNumber",z.stepNumber)("animationDirection",z.animationDirection)}}function an(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"rtl-boltz-swapin-info-graphics",70),t.NdJ("stepNumberChange",function(Ct){return t.CHM(z),t.oxw(2).stepNumber=Ct}),t.qZA()}if(2&X){const z=t.oxw(2);t.Q6J("stepNumber",z.stepNumber)("animationDirection",z.animationDirection)}}const fn=function(X,He){return{"dot-primary":X,"dot-primary-lighter":He}};function Rn(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"span",71),t.NdJ("click",function(){const mi=t.CHM(z).$implicit;return t.oxw(2).onStepChanged(mi)}),t._UZ(1,"p",72),t.qZA()}if(2&X){const z=He.$implicit,De=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,fn,De.stepNumber===z,De.stepNumber!==z))}}function Pn(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"button",73),t.NdJ("click",function(){return t.CHM(z),t.oxw(2).onReadMore()}),t._uU(1,"Read More"),t.qZA()}}function Da(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"button",74),t.NdJ("click",function(){return t.CHM(z),t.oxw(2).onStepChanged(4)}),t._uU(1,"Back"),t.qZA()}}function Xr(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"button",75),t.NdJ("click",function(){t.CHM(z);const Ct=t.oxw(2);return Ct.flgShowInfo=!1,Ct.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function ca(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"button",76),t.NdJ("click",function(){t.CHM(z);const Ct=t.oxw(2);return Ct.flgShowInfo=!1,Ct.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function Wn(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"button",77),t.NdJ("click",function(){t.CHM(z);const Ct=t.oxw(2);return Ct.onStepChanged(Ct.stepNumber-1)}),t._uU(1,"Back"),t.qZA()}}function ps(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"button",78),t.NdJ("click",function(){t.CHM(z);const Ct=t.oxw(2);return Ct.onStepChanged(Ct.stepNumber+1)}),t._uU(1,"Next"),t.qZA()}}const La=function(){return[1,2,3,4,5]};function Rs(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",54),t.TgZ(1,"div",18),t.TgZ(2,"mat-card-header",55),t.TgZ(3,"div",56),t._UZ(4,"span",7),t.qZA(),t.TgZ(5,"div",57),t.TgZ(6,"button",58),t.NdJ("click",function(){t.CHM(z);const Ct=t.oxw();return Ct.flgShowInfo=!1,Ct.stepNumber=1}),t._uU(7,"X"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",59),t.YNc(9,Bi,1,2,"rtl-boltz-swapout-info-graphics",60),t.YNc(10,an,1,2,"rtl-boltz-swapin-info-graphics",60),t.qZA(),t.TgZ(11,"div",61),t.YNc(12,Rn,2,4,"span",62),t.qZA(),t.TgZ(13,"div",63),t.YNc(14,Pn,2,0,"button",64),t.YNc(15,Da,2,0,"button",65),t.YNc(16,Xr,2,0,"button",66),t.YNc(17,ca,2,0,"button",67),t.YNc(18,Wn,2,0,"button",68),t.YNc(19,ps,2,0,"button",69),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("@opacityAnimation",void 0),t.xp6(9),t.Q6J("ngIf",z.direction===z.swapTypeEnum.SWAP_OUT),t.xp6(1),t.Q6J("ngIf",z.direction===z.swapTypeEnum.SWAP_IN),t.xp6(2),t.Q6J("ngForOf",t.DdM(10,La)),t.xp6(2),t.Q6J("ngIf",5===z.stepNumber),t.xp6(1),t.Q6J("ngIf",5===z.stepNumber),t.xp6(1),t.Q6J("ngIf",5===z.stepNumber),t.xp6(1),t.Q6J("ngIf",z.stepNumber<5),t.xp6(1),t.Q6J("ngIf",z.stepNumber>1&&z.stepNumber<5),t.xp6(1),t.Q6J("ngIf",z.stepNumber<5)}}let qs=(()=>{class X{constructor(z,De,Ct,mi,En,Ar,In,gr,Us){this.dialogRef=z,this.data=De,this.store=Ct,this.boltzService=mi,this.formBuilder=En,this.decimalPipe=Ar,this.logger=In,this.router=gr,this.commonService=Us,this.faInfoCircle=x.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=B.hc,this.direction=B.hc.SWAP_OUT,this.swapDirectionCaption="Swap out",this.swapStatus=null,this.inputFormLabel="Amount to swap out",this.addressFormLabel="Withdrawal Address",this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=B.cu,this.animationDirection="forward",this.flgEditable=!0,this.unSubs=[new o.x,new o.x,new o.x,new o.x,new o.x,new o.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction,this.swapDirectionCaption=this.direction===B.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits.minimal,[We.kI.required,We.kI.min(this.serviceInfo.limits.minimal),We.kI.max(this.serviceInfo.limits.maximal)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[We.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===B.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===B.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,y.R)(this.unSubs[2])).subscribe(z=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(z){"external"===z.value?(this.addressFormGroup.controls.address.setValidators([We.kI.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onSwap(){if(!this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===B.hc.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;this.flgEditable=!1,this.stepper.selected.stepControl.setErrors(null),this.stepper.next(),this.direction===B.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,y.R)(this.unSubs[3])).subscribe({next:z=>{this.swapStatus=z,this.boltzService.listSwaps(),this.flgEditable=!0},error:z=>{this.swapStatus={error:z},this.flgEditable=!0,this.logger.error(z)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,y.R)(this.unSubs[4])).subscribe({next:De=>{this.swapStatus=De,this.boltzService.listSwaps(),this.flgEditable=!0},error:De=>{this.swapStatus={error:De},this.flgEditable=!0,this.logger.error(De)}})}stepSelectionChanged(z){switch(z.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value?this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats":"Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address"}z.selectedIndex<z.previouslySelectedIndex&&z.selectedStep.stepControl.setErrors({Invalid:!0})}onClose(){this.dialogRef.close(!0)}showInfo(){this.flgShowInfo=!0}onReadMore(){this.direction===B.hc.SWAP_IN?window.open("https://docs.boltz.exchange/en/latest/lifecycle/#normal-submarine-swaps","_blank"):window.open("https://docs.boltz.exchange/en/latest/lifecycle/#reverse-submarine-swaps","_blank"),this.onClose()}onStepChanged(z){this.animationDirection=z<this.stepNumber?"backward":"forward",this.stepNumber=z}onRestart(){this.stepper.reset(),this.flgEditable=!0,this.inputFormGroup.reset({amount:this.serviceInfo.limits.minimal}),this.statusFormGroup.reset(),this.addressFormGroup.reset({addressType:"local",address:""}),this.addressFormGroup.controls.address.disable()}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(Ue.so),t.Y36(Ue.WI),t.Y36(M.yh),t.Y36(Bn),t.Y36(We.qu),t.Y36(ye.JJ),t.Y36(we.mQ),t.Y36(I.F0),t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(z,De){if(1&z&&t.Gf(tt,5),2&z){let Ct;t.iGM(Ct=t.CRH())&&(De.stepper=Ct.first)}},decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["swapStatusBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"fxFlex"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"fxFlex"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"serviceInfo","direction"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxFlex","48"],["autoFocus","","matInput","","placeholder","Amount","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext","",4,"ngIf"],["mat-button","","color","primary","tabindex","3","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext",""],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxFlex","100",1,"mt-1"],["matInput","","placeholder","Address","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"swapStatus","direction"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["tabindex","19","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumber","animationDirection","stepNumberChange"],["fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(z,De){1&z&&(t.YNc(0,Yn,54,34,"div",0),t.YNc(1,mr,1,2,"ng-template",null,1,t.W1O),t.YNc(3,Rs,20,11,"div",2)),2&z&&(t.Q6J("ngIf",!De.flgShowInfo),t.xp6(3),t.Q6J("ngIf",De.flgShowInfo))},directives:[ye.O5,b.xw,b.yH,b.Wh,P.dk,he.lW,P.dn,nt.Vq,nt.C0,We._Y,We.JL,We.sg,nt.VY,ma,vt.KE,st.Nt,We.wV,We.Fj,Ve.h,We.JJ,We.u,We.Q7,vt.bx,vt.R9,Gn.ib,Gn.yz,Gn.yK,Ue.ZT,vt.TO,nt.Ic,$i.VQ,$i.U0,Lr.Hw,Kn.pW,fs,ye.sg,kt,kn,ye.mk,An.oO],pipes:[ye.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[xi._]}}),X})();function Ma(X,He){1&X&&t._UZ(0,"mat-progress-bar",32)}function vs(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Status "),t.qZA())}function Il(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const z=He.$implicit,De=t.oxw();t.xp6(1),t.Oqu(De.swapStateEnum[z.status])}}function Jo(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Swap ID "),t.qZA())}function Ro(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const z=He.$implicit;t.xp6(1),t.Oqu(z.id)}}function Cs(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Claim Address "),t.qZA())}function kl(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const z=He.$implicit;t.xp6(1),t.Oqu(z.claimAddress)}}function dc(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Onchain Amount (Sats) "),t.qZA())}function e1(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const z=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,z.onchainAmount))}}function t1(X,He){1&X&&(t.TgZ(0,"th",33),t._uU(1," Lockup Address "),t.qZA())}function Po(X,He){if(1&X&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&X){const z=He.$implicit;t.xp6(1),t.Oqu(z.lockupAddress)}}function Rl(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Expected Amount (Sats) "),t.qZA())}function Xo(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const z=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,z.expectedAmount))}}function go(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Timeout Block Height "),t.qZA())}function Pl(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const z=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,z.timeoutBlockHeight))}}function Nl(X,He){1&X&&(t.TgZ(0,"th",35),t._uU(1," Amount (Sats) "),t.qZA())}function ao(X,He){if(1&X&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&X){const z=He.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,z.amt))}}function $o(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"th",37),t.TgZ(1,"div",38),t.TgZ(2,"mat-select",39),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",40),t.NdJ("click",function(){return t.CHM(z),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}}function so(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"td",41),t.TgZ(1,"button",42),t.NdJ("click",function(Ct){const En=t.CHM(z).$implicit;return t.oxw().onSwapClick(En,Ct)}),t._uU(2,"View Info"),t.qZA(),t.qZA()}}function el(X,He){if(1&X&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&X){const z=t.oxw(2);t.xp6(1),t.Oqu(z.emptyTableMessage)}}function _o(X,He){if(1&X&&(t.TgZ(0,"td",43),t.YNc(1,el,2,1,"p",44),t.qZA()),2&X){const z=t.oxw();t.xp6(1),t.Q6J("ngIf",!(null!=z.listSwaps&&z.listSwaps.data)||(null==z.listSwaps||null==z.listSwaps.data?null:z.listSwaps.data.length)<1)}}const n1=function(X){return{"display-none":X}};function uc(X,He){if(1&X&&t._UZ(0,"tr",45),2&X){const z=t.oxw();t.Q6J("ngClass",t.VKq(1,n1,(null==z.listSwaps?null:z.listSwaps.data)&&(null==z.listSwaps||null==z.listSwaps.data?null:z.listSwaps.data.length)>0))}}function Ge(X,He){1&X&&t._UZ(0,"tr",46)}function Se(X,He){1&X&&t._UZ(0,"tr",47)}const be=function(X){return{"overflow-auto error-border":X,"overflow-auto":!0}},Je=function(){return["no_swap"]};let ct=(()=>{class X{constructor(z,De,Ct,mi){this.logger=z,this.commonService=De,this.store=Ct,this.boltzService=mi,this.selectedSwapType=B.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.swapStateEnum=B.Qw,this.faHistory=x.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=B.IV,this.pageSizeOptions=B.TJ,this.screenSize="",this.screenSizeEnum=B.cu,this.unSubs=[new o.x,new o.x,new o.x],this.screenSize=this.commonService.getScreenSize(),this.setTableColumns()}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(z){z.selectedSwapType&&!z.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===B.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.screenSize===B.cu.XS||this.screenSize===B.cu.SM?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===B.hc.SWAP_IN?["status","id","expectedAmount","actions"]:["status","id","onchainAmount","actions"]):this.screenSize===B.cu.MD?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===B.hc.SWAP_IN?["status","id","expectedAmount","timeoutBlockHeight","actions"]:["status","id","onchainAmount","timeoutBlockHeight","actions"]):(this.flgSticky=!0,this.displayedColumns=this.selectedSwapType===B.hc.SWAP_IN?["status","id","lockupAddress","expectedAmount","timeoutBlockHeight","actions"]:["status","id","claimAddress","onchainAmount","timeoutBlockHeight","actions"])}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}onSwapClick(z,De){this.boltzService.swapInfo(z.id).pipe((0,y.R)(this.unSubs[1])).subscribe(Ct=>{this.store.dispatch((0,Me.qR)({payload:{data:{type:B.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:B.Qw[(Ct=this.selectedSwapType===B.hc.SWAP_IN?Ct.swap:Ct.reverseSwap).status],title:"Status",width:50,type:B.Gi.STRING},{key:"id",value:Ct.id,title:"ID",width:50,type:B.Gi.STRING}],[{key:"amount",value:Ct.onchainAmount?Ct.onchainAmount:Ct.expectedAmount?Ct.expectedAmount:0,title:Ct.onchainAmount?"Onchain Amount (Sats)":Ct.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:B.Gi.NUMBER},{key:"timeoutBlockHeight",value:Ct.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:B.Gi.NUMBER}],[{key:"address",value:Ct.claimAddress?Ct.claimAddress:Ct.lockupAddress?Ct.lockupAddress:"",title:Ct.claimAddress?"Claim Address":Ct.lockupAddress?"Lockup Address":"Address",width:100,type:B.Gi.STRING}],[{key:"invoice",value:Ct.invoice,title:"Invoice",width:100,type:B.Gi.STRING}],[{key:"privateKey",value:Ct.privateKey,title:"Private Key",width:100,type:B.Gi.STRING}],[{key:"preimage",value:Ct.preimage,title:"Preimage",width:100,type:B.Gi.STRING}],[{key:"redeemScript",value:Ct.redeemScript,title:"Redeem Script",width:100,type:B.Gi.STRING}],[{key:"lockupTransactionId",value:Ct.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:B.Gi.STRING},{key:"transactionId",value:Ct.claimTransactionId?Ct.claimTransactionId:Ct.refundTransactionId?Ct.refundTransactionId:"",title:Ct.claimTransactionId?"Claim Transaction ID":Ct.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:B.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(z){this.listSwaps=new _n.by(z?[...z]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(De,Ct)=>De[Ct]&&isNaN(De[Ct])?De[Ct].toLocaleLowerCase():De[Ct]?+De[Ct]:null,this.listSwaps.filterPredicate=(De,Ct)=>JSON.stringify(De).toLowerCase().includes(Ct),this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===B.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(Bn))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-swaps"]],viewQuery:function(z,De){if(1&z&&(t.Gf(xr.YE,5),t.Gf(Qr.NW,5)),2&z){let Ct;t.iGM(Ct=t.CRH())&&(De.sort=Ct.first),t.iGM(Ct=t.CRH())&&(De.paginator=Ct.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:Qr.ye,useValue:(0,B.pt)("Swaps")}]),t.TTD],decls:46,vars:16,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30"],["matInput","","placeholder","Filter",3,"ngModel","keyup","ngModelChange"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lockupAddress"],["matColumnDef","expectedAmount"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","amt"],["matColumnDef","actions"],["mat-header-cell","","class","px-3",4,"matHeaderCellDef"],["mat-cell","","class","pl-3","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","",1,"px-3"],[1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center",1,"pl-3"],["mat-stroked-button","","color","primary","type","button","tabindex","4",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field",5),t.TgZ(7,"input",6),t.NdJ("keyup",function(){return De.applyFilter()})("ngModelChange",function(mi){return De.selFilter=mi}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"div",8),t.YNc(10,Ma,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,vs,2,0,"th",13),t.YNc(15,Il,2,1,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Jo,2,0,"th",13),t.YNc(18,Ro,2,1,"td",14),t.BQk(),t.ynx(19,16),t.YNc(20,Cs,2,0,"th",13),t.YNc(21,kl,2,1,"td",14),t.BQk(),t.ynx(22,17),t.YNc(23,dc,2,0,"th",18),t.YNc(24,e1,4,3,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,t1,2,0,"th",13),t.YNc(27,Po,2,1,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,Rl,2,0,"th",18),t.YNc(30,Xo,4,3,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,go,2,0,"th",18),t.YNc(33,Pl,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,Nl,2,0,"th",18),t.YNc(36,ao,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,$o,6,0,"th",24),t.YNc(39,so,3,0,"td",25),t.BQk(),t.ynx(40,26),t.YNc(41,_o,2,1,"td",27),t.BQk(),t.YNc(42,uc,1,3,"tr",28),t.YNc(43,Ge,1,0,"tr",29),t.YNc(44,Se,1,0,"tr",30),t.qZA(),t._UZ(45,"mat-paginator",31),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(3),t.Q6J("icon",De.faHistory),t.xp6(2),t.hij("",De.swapCaption," History"),t.xp6(2),t.Q6J("ngModel",De.selFilter),t.xp6(3),t.Q6J("ngIf",!0===De.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",De.listSwaps)("ngClass",t.VKq(13,be,"error"===De.flgLoading[0])),t.xp6(31),t.Q6J("matFooterRowDef",t.DdM(15,Je)),t.xp6(1),t.Q6J("matHeaderRowDef",De.displayedColumns)("matHeaderRowDefSticky",De.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",De.displayedColumns),t.xp6(1),t.Q6J("pageSize",De.pageSize)("pageSizeOptions",De.pageSizeOptions)("showFirstLastButtons",De.screenSize!==De.screenSizeEnum.XS))},directives:[b.xw,b.yH,b.Wh,Z.BN,vt.KE,st.Nt,We.Fj,We.JJ,We.On,ae.$V,ye.O5,_n.BZ,xr.YE,ye.mk,An.oO,_n.w1,_n.fO,_n.Dz,_n.mD,_n.Ke,_n.as,_n.nj,Qr.NW,Kn.pW,_n.ge,xr.nU,_n.ev,Pe.gD,Pe.$L,Ee.ey,he.lW,_n.yh,_n.Q2,_n.XQ,_n.Gk],pipes:[ye.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),X})();const Ot=function(X){return["../",X]};function qt(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"div",15),t.NdJ("click",function(){const mi=t.CHM(z).$implicit;return t.oxw().onSelectedIndexChange(mi)}),t._uU(1),t.qZA()}if(2&X){const z=He.$implicit,De=t.oxw();t.Q6J("active",De.activeTab.link===z.link)("routerLink",t.VKq(3,Ot,z.link)),t.xp6(1),t.Oqu(z.name)}}let ii=(()=>{class X{constructor(z,De,Ct){this.router=z,this.store=De,this.boltzService=Ct,this.swapTypeEnum=B.hc,this.selectedSwapType=B.hc.SWAP_OUT,this.swaps={},this.swapsData=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"swapout",name:"Swap Out"},{link:"swapin",name:"Swap In"}],this.activeTab=this.links[0],this.unSubs=[new o.x,new o.x,new o.x,new o.x]}ngOnInit(){this.boltzService.listSwaps();const z=this.links.find(De=>this.router.url.includes(De.link));this.activeTab=z||this.links[0],this.selectedSwapType=z&&"swapin"===z.link?B.hc.SWAP_IN:B.hc.SWAP_OUT,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,te.h)(De=>De instanceof I.Av)).subscribe(De=>{const Ct=this.links.find(mi=>De.urlAfterRedirects.includes(mi.link));this.activeTab=Ct||this.links[0],this.selectedSwapType=Ct&&"swapin"===Ct.link?B.hc.SWAP_IN:B.hc.SWAP_OUT}),this.boltzService.swapsChanged.pipe((0,y.R)(this.unSubs[1])).subscribe({next:De=>{this.swaps=De,this.swapsData=this.selectedSwapType===B.hc.SWAP_IN?De.swaps:De.reverseSwaps,this.flgLoading[0]=!1},error:De=>{this.flgLoading[0]="error",this.emptyTableMessage=De.message?De.message:"No swap "+(this.selectedSwapType===B.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(z){"swapin"===z.link?(this.selectedSwapType=B.hc.SWAP_IN,this.swapsData=this.swaps.swaps):(this.selectedSwapType=B.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps)}onSwap(z){this.boltzService.serviceInfo().pipe((0,y.R)(this.unSubs[2])).subscribe(De=>{this.store.dispatch((0,Me.qR)({payload:{data:{serviceInfo:De,direction:z,component:qs}}}))})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(I.F0),t.Y36(M.yh),t.Y36(Bn))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-boltz-root"]],decls:18,vars:6,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"botlz-icon-sm","mr-1"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.TgZ(2,"g",2),t.TgZ(3,"g",3),t._UZ(4,"circle",4),t._UZ(5,"path",5),t._UZ(6,"path",6),t.qZA(),t.qZA(),t.qZA(),t.kcU(),t.TgZ(7,"span",7),t._uU(8,"Boltz"),t.qZA(),t.qZA(),t.TgZ(9,"div",8),t.TgZ(10,"mat-card"),t.TgZ(11,"mat-card-content",9),t.TgZ(12,"nav",10),t.YNc(13,qt,2,5,"div",11),t.qZA(),t.TgZ(14,"div",12),t.TgZ(15,"button",13),t.NdJ("click",function(){return De.onSwap(De.selectedSwapType)}),t._uU(16),t.qZA(),t.qZA(),t._UZ(17,"rtl-boltz-swaps",14),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(13),t.Q6J("ngForOf",De.links),t.xp6(3),t.hij("Start ",De.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",De.selectedSwapType)("swapsData",De.swapsData)("flgLoading",De.flgLoading)("emptyTableMessage",De.emptyTableMessage))},directives:[b.xw,b.Wh,P.a8,P.dn,b.yH,U.BU,ye.sg,he.lW,ct,U.Nj,I.rH],styles:[""]}),X})();class Hn{constructor(He){this.help=He}}function vo(X,He){if(1&X&&(t.TgZ(0,"mat-expansion-panel",8),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title"),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"mat-panel-description",9),t._UZ(5,"span",10),t.TgZ(6,"a",11),t._uU(7),t.qZA(),t.qZA(),t.qZA()),2&X){const z=t.oxw().$implicit,De=t.oxw();t.xp6(3),t.Oqu(z.help.question),t.xp6(2),t.Q6J("innerHTML",z.help.answer,t.oJD),t.xp6(1),t.Q6J("routerLink",De.flgLoggedIn?De.LNPLink+z.help.link:"/login"),t.xp6(1),t.Oqu(De.flgLoggedIn?z.help.linkCaption:"Login to go to the page")}}function as(X,He){if(1&X&&(t.TgZ(0,"div",6),t.YNc(1,vo,8,4,"mat-expansion-panel",7),t.qZA()),2&X){const z=He.$implicit,De=t.oxw();t.xp6(1),t.Q6J("ngIf","ALL"===z.help.lnImplementation||z.help.lnImplementation===De.selNode.lnImplementation)}}let ja=(()=>{class X{constructor(z,De){this.store=z,this.sessionService=De,this.helpTopics=[],this.faQuestion=x.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new o.x,new o.x,new o.x,new o.x],this.helpTopics.push(new Hn({question:"Getting started",answer:'Funding your node is the first step to get started.\nGo to the "On-chain" page of the app:\n1. Generate a new address on the "Recieve" tab.\n2. Send funds to the address.\n3. Wait for the balance to be confirmed on-chain before proceeding further.\n3. Connecting with network peers and opening channels is next.\n',link:"onchain",linkCaption:"On-Chain page",lnImplementation:"ALL"})),this.helpTopics.push(new Hn({question:"Connect with peers",answer:'Connect with network peers to open channels with them.\nGo to "Peer/Channels" page under the "Lightning" menu :\n1. Get the peer pubkey and host address in the pubkey@ip:port format.\n2. On the "Peers" enter the peer address and connect.\n3. Once the peer is connected, you can open channel with the peer.\n4. A variety of actions can be performed on the connected peers page for each peer:\n a. View Info - View the peer details.\n b. Open Channel - Open channel with the peer.\n c. Disconnect - Disconnect from the peer.\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new Hn({question:"Opening Channels",answer:'Open channels with a connected network peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, select the alias of the connected peer from the drop-down\n2. Specify the amount to commit to the channel and click on "Open Channel".\n3. There are a variety of options available while opening a channel. \n a. Private Channel - When this option is selected, a private channel is opened with the peer. \n b. Priority (advanced option) - Specify either Target confirmation Block or Fee in Sat/vByte. \n c. Spend Unconfirmd Output (advanced option) - Allow channels to be opened with unconfirmed UTXOs.\n4. Track the pending open channels under the "Pending" tab . \n5. Wait for the channel to be confirmed. Only a confimed channel can be used for payments or routing. \n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new Hn({question:"Channel Management",answer:'Channel maintenance and balance score.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. A variety of actions can be perfomed on the open channels under the "Open" tab, with the "Actions" button:\n a. View Info - View the channel details.\n b. View Remote Fee - View the fee policy on the channel of the remote peer.\n c. Update Fee Policy - Modify the fee policy on the channel.\n d. Close Channel - Close the channel.\n2. Balance Score is a "balancedness" metric score for the channel. \n a. It helps measure how balanced the remote and local balances are, on a channel.\n b. A perfectly balanced channel has a score of one, where as a completely lopsided one has a score of zero.\n c. The formula for calculating the score is "1 - abs((local bal - remote bal)/total bal)".\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new Hn({question:"Lightning Transactions - Payments",answer:'Sending Payments from your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayments tab is for making payments via your node\n 1. Input a non-expired lightning invoice (Bolt11 format) in the "Payment request" field and click on "Send Payment" to send.\n 2. Advanced option # 1 (LND only) - Specify a limit on the routing fee which you are willing to pay, for the payment.\n 3. Advanced option # 2 (LND only) - Specify the outgoing channel which you want the payment to go through.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new Hn({question:"Lightning Transactions - Invoices",answer:'Receiving Payments on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nInvoices tab is for receiving payments on your node.\n 1. Memo - Description you want to provide on the invoice.\n 2. Expiry - The time period, after which the invoice will be invalid.\n 3. Private Routing Hints - Generate an invoice with routing hints for private channels.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new Hn({question:"Lightning Transactions - Query Route",answer:'Querying Payment Routes.\nGo to the "Transactions" page under the "Lightning" menu :\nQuery Routes tab is for querying a potential path to a node and a routing fee estimate for a payment amount.\n 1. Destination Pubkey - Pubkey of the node, you want to send the payment to.\n 2. Amount - Amount in Sats, which you want to send to the node.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new Hn({question:"Channel Backups",answer:'Channel Backups are important to ensure that you have means to recover funds in case of node failures.\nBackup folder location can be customized in the RTL config file with the channelBackupPath field.\nRTL automatically creates all channel backup on server startup, as well as everytime a channel is opened or closed\nYou can verify the all channel backup file by clicking on "Verify All" Button on the backup page.\nYou can also backup each channel individually and verify them.\n** Keep taking backups of your channels regularly and store them in redundant locations **.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new Hn({question:"Channel Restore",answer:'Channel Restore is used to recover funds from the channel backup files in case of node failures.\nFollow the below steps to perform fund restoration.\n\nPrerequisite:\n1. The node has been restored with the LND recovery seed.\n2. RTL generated channel backup file/s is available (all channel backup file is channel-all.bak).\n\nRecovery:\n1. Create a restore folder in your folder backup location, as specified in the RTL config file.\n2. Place the channel backup file in the restore folder.\n3. Go to the "Restore" tab under the "Backup" page of RTL.\n4. RTL will list the options to restore funds from the all channel file or individual channel backup file.\n5. Click on the Restore icon on the grid to restore the funds.\n6. Once the restore function is executed successfully, RTL will rename the backup file and it will not be accessible from the UI.\n7. Restore function will force close the channels and recover the funds from them.\n8. The pending close channels can be viewed under the "Pending" tab on the "Peer/Channels" page.\n9. Once the channel is closed, the corresponding pending on-chain transactions can be viewed on the "On-Chain" page.\n10. Once the transactions are confirmed, the channels funds will be restored to your LND Wallet.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new Hn({question:"Forwarding History",answer:'Transactions routed by the node.\nGo to "Routing" page under the "Lightning" menu :\nTransactions routed by the node are listed on this page along with channels and the fee earned by transaction.\n',link:"routing",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new Hn({question:"Graph Lookup",answer:'Querying your node graph for network node and channel information.\nGo to "Graph Lookup" page under the "Lightning" menu :\nEach node maintains a network graph for the information on all the nodes and channels on the network.\nYou can lookup information on nodes and channels from your graph:\n 1. Node Lookup - Enter the pubkey to perform the lookup.\n 2. Channel Lookup - Enter the short channel ID to perform the lookup.\n',link:"lookups",linkCaption:"Graph Lookup page",lnImplementation:"ALL"})),this.helpTopics.push(new Hn({question:"Settings",answer:'RTL Offers certain customizations on the UI to personalize your experience on the app\nGo to "Settings" page to access the customization options.\nNode Layout Options\n 1. User Persona - Two options are available to change the dashboard based on the persona.\n 2. Currency Unit - You can choose your preferred fiat currency, to view the onchain and channel balances in the choosen fiat currency.\n 3. Default Node - If you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nOther Customizations include day and night mode and a choice of color themes to select from.\n',lnImplementation:"ALL"}))}ngOnInit(){this.store.select(r.dT).pipe((0,y.R)(this.unSubs[0])).subscribe(z=>{switch(this.selNode=z,this.selNode.lnImplementation.toUpperCase()){case"CLT":this.LNPLink="/cl/";break;case"ECL":this.LNPLink="/ecl/";break;default:this.LNPLink="/lnd/"}}),this.sessionService.watchSession().pipe((0,y.R)(this.unSubs[1])).subscribe(z=>{this.flgLoggedIn=!!z.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(M.yh),t.Y36(Re.m))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-help"]],decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["fxFlex","100"],["class","flat-expansion-panel help-expansion mb-2px",4,"ngIf"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],[1,"pre-wrap",3,"innerHTML"],[1,"mt-2",3,"routerLink"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Help"),t.qZA(),t.qZA(),t.TgZ(5,"div",4),t.TgZ(6,"div",0),t.YNc(7,as,2,1,"div",5),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(2),t.Q6J("icon",De.faQuestion),t.xp6(5),t.Q6J("ngForOf",De.helpTopics))},directives:[b.xw,b.yH,b.Wh,Z.BN,ye.sg,ye.O5,Gn.ib,Gn.yz,Gn.yK,Gn.u4,I.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),X})();var Ps=m(9841);function Fa(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}let ys=(()=>{class X{constructor(z,De){this.dialogRef=z,this.store=De,this.faUserClock=x.hnx,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Me.M6)({payload:{twoFAToken:this.token}}))}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(Ue.so),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-login-token"]],decls:17,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["tokenForm","ngForm"],["autoFocus","","matInput","","placeholder","Token","type","text","id","token","name","token","tabindex","2","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","submit"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"div",3),t.TgZ(4,"span",4),t._uU(5,"Two Factor Token"),t.qZA(),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){return De.onClose()}),t._uU(7,"X"),t.qZA(),t.qZA(),t.TgZ(8,"mat-card-content",6),t.TgZ(9,"form",7,8),t.NdJ("ngSubmit",function(){return De.onVerifyToken()}),t.TgZ(11,"mat-form-field"),t.TgZ(12,"input",9),t.NdJ("ngModelChange",function(mi){return De.token=mi}),t.qZA(),t.YNc(13,Fa,2,0,"mat-error",10),t.qZA(),t.TgZ(14,"div",11),t.TgZ(15,"button",12),t._uU(16,"Verify Token"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(12),t.Q6J("ngModel",De.token),t.xp6(1),t.Q6J("ngIf",!De.token))},directives:[b.xw,b.Wh,b.yH,P.dk,he.lW,P.dn,We._Y,We.JL,We.F,vt.KE,st.Nt,We.Fj,Ve.h,We.Q7,We.JJ,We.On,ye.O5,vt.TO],styles:[""]}),X})();function ss(X,He){1&X&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function Ns(X,He){if(1&X&&(t.TgZ(0,"p",20),t.TgZ(1,"mat-icon",21),t._uU(2,"close"),t.qZA(),t._uU(3),t.qZA()),2&X){const z=t.oxw();t.xp6(3),t.hij(" ",z.loginErrorMessage," ")}}const r1=function(X){return{"padding-gap-large":X}},a1=function(X,He){return{"font-size-200":X,"font-size-300":He}};let No=(()=>{class X{constructor(z,De,Ct,mi){this.logger=z,this.store=De,this.rtlEffects=Ct,this.commonService=mi,this.faUnlockAlt=x.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=B.cu,this.loginErrorMessage="",this.apiCallStatusEnum=B.Bn,this.unSubs=[new o.x,new o.x,new o.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,Ps.a)([this.store.select(r.ul),this.store.select(r.Sr)]).pipe((0,y.R)(this.unSubs[0])).subscribe(([z,De])=>{this.loginErrorMessage="",z.status===B.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof z.message?JSON.stringify(z.message):z.message),this.logger.error(z.message)),De.status===B.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof De.message?JSON.stringify(De.message):De.message),this.logger.error(De.message))}),this.store.select(r.Yj).pipe((0,y.R)(this.unSubs[1])).subscribe(z=>{this.appConfig=z,this.logger.info(z)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,Me.qR)({payload:{maxWidth:"35rem",data:{component:ys}}})),this.rtlEffects.closeAlert.pipe((0,Ce.q)(1)).subscribe(z=>{z&&this.store.dispatch((0,Me.x4)({payload:{password:oe(this.password),defaultPassword:B.kO.includes(this.password.toLowerCase()),twoFAToken:z.twoFAToken}}))})):this.store.dispatch((0,Me.x4)({payload:{password:oe(this.password),defaultPassword:B.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(we.mQ),t.Y36(M.yh),t.Y36(it.V),t.Y36(Ci.v))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-login"]],decls:25,vars:12,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","center stretch",1,"login-container"],["fxLayout","row","fxFlex","50","fxLayoutAlign","center stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxFlex","35","fxLayoutAlign","center center",1,"bg-primary"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"mt-5px","mb-0","px-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["loginForm","ngForm"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","placeholder","Password","id","password","name","password","tabindex","1","required","",3,"type","ngModel","ngModelChange"],["tabindex","2","matSuffix","",3,"click"],[4,"ngIf"],["fxFlex","100","class","color-warn pre-wrap","fxLayoutAlign","start start",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],["fxFlex","100","fxLayoutAlign","start start",1,"color-warn","pre-wrap"],[1,"mr-1","icon-small"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"mat-card",1),t.TgZ(3,"div",2),t.TgZ(4,"div",3),t._UZ(5,"img",4),t.qZA(),t.TgZ(6,"div",5),t.TgZ(7,"mat-card-header",6),t.TgZ(8,"mat-card-title",7),t.TgZ(9,"span",8),t._uU(10,"Welcome"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"mat-card-content",9),t.TgZ(12,"form",10,11),t.TgZ(14,"mat-form-field",12),t.TgZ(15,"input",13),t.NdJ("ngModelChange",function(mi){return De.password=mi}),t.qZA(),t.TgZ(16,"mat-icon",14),t.NdJ("click",function(){return De.flgShow=!De.flgShow}),t._uU(17),t.qZA(),t.YNc(18,ss,2,0,"mat-error",15),t.qZA(),t.YNc(19,Ns,4,1,"p",16),t.TgZ(20,"div",17),t.TgZ(21,"button",18),t.NdJ("click",function(){return De.resetData()}),t._uU(22,"Clear"),t.qZA(),t.TgZ(23,"button",19),t.NdJ("click",function(){return De.onLogin()}),t._uU(24,"Login"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(6),t.Q6J("ngClass",t.VKq(7,r1,De.screenSize===De.screenSizeEnum.XS)),t.xp6(2),t.Q6J("ngClass",t.WLB(9,a1,De.screenSize===De.screenSizeEnum.XS,De.screenSize!==De.screenSizeEnum.XS)),t.xp6(7),t.Q6J("type",De.flgShow?"text":"password")("ngModel",De.password),t.xp6(2),t.Oqu(De.flgShow?"visibility_off":"visibility"),t.xp6(1),t.Q6J("ngIf",!De.password),t.xp6(1),t.Q6J("ngIf",""!==De.loginErrorMessage))},directives:[b.xw,b.yH,b.Wh,P.a8,ye.mk,An.oO,P.dk,P.n5,P.dn,We._Y,We.JL,We.F,vt.KE,st.Nt,We.Fj,Ve.h,We.Q7,We.JJ,We.On,Lr.Hw,vt.R9,ye.O5,he.lW,vt.TO],styles:[".login-container[_ngcontent-%COMP%]{height:90vh;padding-right:11rem}.login-container[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{height:30rem}.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 56.25em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:37%}}@media only screen and (max-width: 37.5em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:70%}}.login-container[_ngcontent-%COMP%] .material-icons.mat-icon[_ngcontent-%COMP%]{font-size:120%;cursor:pointer}"]}),X})();var Fo=m(9442);let Bo=(()=>{class X{constructor(z,De){this.activatedRoute=z,this.router=De,this.error={errorCode:"",errorMessage:""},this.faTimes=x.NBC,this.unsubs=[new o.x,new o.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,y.R)(this.unsubs[0])).subscribe(z=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(I.gz),t.Y36(I.F0))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-error"]],decls:13,vars:3,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","center center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","padding-gap-large"],[1,"font-size-300","font-bold-500"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-large"],[1,"box-text","font-size-120"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"mat-card",1),t.TgZ(2,"mat-card-header",2),t.TgZ(3,"mat-card-title",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"mat-card-content",6),t.TgZ(8,"div",7),t._uU(9),t.qZA(),t.TgZ(10,"span",8),t.TgZ(11,"button",9),t.NdJ("click",function(){return De.goToHelp()}),t._uU(12,"Go To Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(4),t.Q6J("icon",De.faTimes),t.xp6(2),t.hij("Error ",De.error.errorCode,""),t.xp6(3),t.Oqu(De.error.errorMessage))},directives:[b.xw,b.yH,b.Wh,P.a8,P.dk,P.n5,Z.BN,P.dn,he.lW],encapsulation:2}),X})();var Oa=m(1643);function fc(X,He){1&X&&t._UZ(0,"span",16)}function Ho(X,He){1&X&&t._UZ(0,"span",17)}function s1(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"form",18,4),t.TgZ(2,"div",19),t._UZ(3,"fa-icon",2),t.TgZ(4,"span"),t._uU(5,"Please ensure that "),t.TgZ(6,"strong"),t._uU(7,"experimental-offers"),t.qZA(),t._uU(8," flag is set to true in the CLightning config before enabling it in RTL. Click "),t.TgZ(9,"strong"),t.TgZ(10,"a",20),t._uU(11,"here"),t.qZA(),t.qZA(),t._uU(12," to learn more about CLightning offers."),t.qZA(),t.qZA(),t.TgZ(13,"h4",21),t._uU(14,"Description"),t.qZA(),t.TgZ(15,"span"),t._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in C-Lightning."),t.qZA(),t.TgZ(17,"h4",21),t._uU(18,"Links"),t.qZA(),t.TgZ(19,"span"),t.TgZ(20,"a",22),t._uU(21,"Clightning Bolt12"),t.qZA(),t.qZA(),t._UZ(22,"mat-divider",23),t.TgZ(23,"div",24),t._UZ(24,"fa-icon",2),t.TgZ(25,"span"),t._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),t.qZA(),t.qZA(),t.TgZ(27,"mat-slide-toggle",25),t.NdJ("ngModelChange",function(Ct){return t.CHM(z),t.oxw(2).enableOffers=Ct})("change",function(){return t.CHM(z),t.oxw(2).onUpdateFeature()}),t._uU(28),t.qZA(),t.qZA()}if(2&X){const z=t.oxw(2);t.xp6(3),t.Q6J("icon",z.faInfoCircle),t.xp6(19),t.Q6J("inset",!0),t.xp6(2),t.Q6J("icon",z.faExclamationTriangle),t.xp6(3),t.Q6J("ngModel",z.enableOffers),t.xp6(1),t.hij("Enable Offers ",z.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function d0(X,He){if(1&X&&(t.TgZ(0,"mat-expansion-panel",9),t.TgZ(1,"mat-expansion-panel-header"),t.TgZ(2,"mat-panel-title",10),t.TgZ(3,"h4",11),t._uU(4),t.qZA(),t.TgZ(5,"h4",11),t.YNc(6,fc,1,0,"span",12),t.YNc(7,Ho,1,0,"span",13),t._uU(8),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"div",14),t.YNc(10,s1,29,5,"form",15),t.qZA(),t.qZA()),2&X){const z=He.$implicit,De=He.index;t.Q6J("expanded",!1),t.xp6(4),t.Oqu(z.name),t.xp6(2),t.Q6J("ngIf",z.enabled),t.xp6(1),t.Q6J("ngIf",!z.enabled),t.xp6(1),t.hij(" ",z.enabled?"Enabled":"Disabled"," "),t.xp6(2),t.Q6J("ngIf",0===De)}}const u0=I.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([m.e(893),m.e(37)]).then(m.bind(m,9037)).then(X=>X.LNDModule),canActivate:[Oa.a1]},{path:"cl",loadChildren:()=>Promise.all([m.e(893),m.e(634)]).then(m.bind(m,634)).then(X=>X.CLModule),canActivate:[Oa.a1]},{path:"ecl",loadChildren:()=>Promise.all([m.e(893),m.e(637)]).then(m.bind(m,8637)).then(X=>X.ECLModule),canActivate:[Oa.a1]},{path:"settings",component:Oe,canActivate:[Oa.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:J,canActivate:[Oa.a1]},{path:"auth",component:Ft,canActivate:[Oa.a1]},{path:"bconfig",component:mt,canActivate:[Oa.a1]}]},{path:"config",component:$e,canActivate:[Oa.a1],children:[{path:"",pathMatch:"full",redirectTo:"layout"},{path:"layout",component:Sr,canActivate:[Oa.a1]},{path:"services",component:qn,canActivate:[Oa.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:zr,canActivate:[Oa.a1]},{path:"boltz",component:Ur,canActivate:[Oa.a1]}]},{path:"experimental",component:(()=>{class X{constructor(z,De){this.logger=z,this.store=De,this.faInfoCircle=x.sqG,this.faExclamationTriangle=x.eHv,this.faCode=x.dT$,this.features=[{name:"Offers",enabled:!1}],this.enableOffers=!1,this.unSubs=[new o.x,new o.x,new o.x]}ngOnInit(){this.store.select(r.dT).pipe((0,y.R)(this.unSubs[0])).subscribe(z=>{this.selNode=z,this.enableOffers=this.selNode.settings.enableOffers,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)})}onUpdateFeature(){this.logger.info(this.selNode),this.selNode.settings.enableOffers=this.enableOffers,this.features[0].enabled=this.enableOffers,this.store.dispatch((0,Me.jS)({payload:{uiMessage:B.m6.UPDATE_SETTING,service:B.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,ui.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,Lt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,gt.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}}))}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(we.mQ),t.Y36(M.yh))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","flat-expansion-panel my-1",3,"expanded",4,"ngFor","ngForOf"],[1,"flat-expansion-panel","my-1",3,"expanded"],["fxFlex","100","fxLayoutAlign","space-between center"],[1,"font-bold-500"],["class","dot green",4,"ngIf"],["class","dot yellow",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],[1,"dot","green"],[1,"dot","yellow"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-info"],["href","http://bolt12.org","target","_blank"],[1,"mt-2"],["href","https://github.com/lightningnetwork/lightning-rfc/pull/798 ","target","blank"],[1,"my-2",3,"inset"],[1,"alert","alert-warn"],["autoFocus","","tabindex","1","color","primary","name","enableOfr",1,"my-1",3,"ngModel","ngModelChange","change"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span"),t._uU(4,"Experimental features should be enabled with caution. Many such features may be implementation specific and not ratified for the BOLT spec. Enabling these may still result in a broken experience. Referencing relevant feature documentation is highly advised before enabling."),t.qZA(),t.qZA(),t.TgZ(5,"form",3,4),t.TgZ(7,"div",5),t._UZ(8,"fa-icon",6),t.TgZ(9,"span",7),t._uU(10,"Features"),t.qZA(),t.qZA(),t.TgZ(11,"mat-accordion"),t.YNc(12,d0,11,6,"mat-expansion-panel",8),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(2),t.Q6J("icon",De.faInfoCircle),t.xp6(6),t.Q6J("icon",De.faCode),t.xp6(4),t.Q6J("ngForOf",De.features))},directives:[b.xw,b.yH,ae.$V,Z.BN,We._Y,We.JL,We.F,b.Wh,Gn.pp,ye.sg,Gn.ib,Gn.yz,Gn.yK,ye.O5,Fe.d,Wi.Rr,Ve.h,We.JJ,We.On],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),X})(),canActivate:[Oa.a1]},{path:"lnconfig",component:Qt,canActivate:[Oa.a1]}]},{path:"services",component:ka,canActivate:[Oa.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:Wt},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:ii}]},{path:"help",component:ja},{path:"login",component:No},{path:"error",component:Bo},{path:"**",component:Fo.w}]);var o1=m(8750),tl=m(8878),il=m(4594),Fl=m(2181);function qa(X,He){if(1&X&&(t.TgZ(0,"p",2),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3),t.qZA(),t.qZA()),2&X){const z=t.oxw();t.xp6(1),t.Q6J("icon",z.faCode),t.xp6(2),t.hij("API Version: ",null==z.information?null:z.information.api_version,"")}}function aa(X,He){if(1&X&&(t.TgZ(0,"a",11),t._UZ(1,"fa-icon",3),t.TgZ(2,"span",12),t._uU(3,"Settings"),t.qZA(),t.qZA()),2&X){const z=t.oxw();t.xp6(1),t.Q6J("icon",z.faUserCog)}}function f0(X,He){if(1&X&&(t.TgZ(0,"a",13),t._UZ(1,"fa-icon",3),t.TgZ(2,"span",14),t._uU(3,"Help"),t.qZA(),t.qZA()),2&X){const z=t.oxw();t.xp6(1),t.Q6J("icon",z.faLifeRing)}}function sa(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"a",15),t.NdJ("click",function(){return t.CHM(z),t.oxw().onClick()}),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3,"Logout"),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.xp6(1),t.Q6J("icon",z.faEject)}}let zo=(()=>{class X{constructor(z,De,Ct,mi,En){this.logger=z,this.sessionService=De,this.store=Ct,this.rtlEffects=mi,this.actions=En,this.faUserCog=x.gNZ,this.faCodeBranch=x.mh3,this.faCode=x.dT$,this.faCog=x.b7W,this.faLifeRing=x.uli,this.faEject=x.KOR,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new o.x,new o.x,new o.x,new o.x],this.version=Qi.q4}ngOnInit(){this.store.select(r.R4).pipe((0,y.R)(this.unSubs[0])).subscribe(z=>{if(this.information=z,this.flgLoading=!this.information.identity_pubkey,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const De=this.information.chains[0];this.informationChain.chain=De.chain,this.informationChain.network=De.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(z)}),this.sessionService.watchSession().pipe((0,y.R)(this.unSubs[1])).subscribe(z=>{this.showLogout=!!z.token,this.flgLoading=!!z.token}),this.actions.pipe((0,y.R)(this.unSubs[2]),(0,te.h)(z=>z.type===B.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Me.c1)({payload:{data:{type:B.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,y.R)(this.unSubs[3])).subscribe(z=>{z&&(this.showLogout=!1,this.store.dispatch((0,Me.kS)()))})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(we.mQ),t.Y36(Re.m),t.Y36(M.yh),t.Y36(it.V),t.Y36(c.eX))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-top-menu"]],decls:14,vars:8,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","",4,"ngIf"],["mat-menu-item","","routerLink","/settings",4,"ngIf"],["mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",1,"top-toolbar-icon",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo"],[1,"logo-icon"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(z,De){if(1&z&&(t.TgZ(0,"mat-menu",0,1),t.TgZ(2,"p",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.qZA(),t.YNc(6,qa,4,2,"p",4),t.YNc(7,aa,4,1,"a",5),t.YNc(8,f0,4,1,"a",6),t.YNc(9,sa,4,1,"a",7),t.qZA(),t.TgZ(10,"button",8),t._UZ(11,"img",9),t.TgZ(12,"mat-icon",10),t._uU(13,"arrow_drop_down"),t.qZA(),t.qZA()),2&z){const Ct=t.MAs(1);t.Q6J("overlapTrigger",!1),t.xp6(3),t.Q6J("icon",De.faCodeBranch),t.xp6(2),t.hij("Version: ",De.version,""),t.xp6(1),t.Q6J("ngIf",null==De.information?null:De.information.api_version),t.xp6(1),t.Q6J("ngIf",De.showLogout),t.xp6(1),t.Q6J("ngIf",De.showLogout),t.xp6(1),t.Q6J("ngIf",De.showLogout),t.xp6(1),t.Q6J("matMenuTriggerFor",Ct)}},directives:[Fl.VK,Fl.OP,Z.BN,ye.O5,he.lW,Fl.p6,Lr.Hw,I.yS,I.rH],styles:[".mat-menu-content,.mat-menu-content p.mat-menu-item{cursor:default}.mat-menu-content p.mat-menu-item fa-icon,.mat-menu-content p.mat-menu-item span,.mat-menu-content p.mat-menu-item div{cursor:default}.mat-menu-content p.mat-menu-item:hover{cursor:default!important}.top-toolbar-icon .mat-button-wrapper img{width:3.2rem}.top-toolbar-icon .mat-button-wrapper .material-icons.mat-icon.logo-icon{font-size:2rem;text-align:start}\n"],encapsulation:2}),X})();var Fs=m(2638),l1=m(8258),wa=m(149);const oo={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/lnd/home",userPersona:B.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/lnd/onchain",userPersona:B.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/lnd/connections",userPersona:B.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/lnd/connections",userPersona:B.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/lnd/transactions",userPersona:B.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/lnd/routing",userPersona:B.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/lnd/reports",userPersona:B.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/lnd/graph",userPersona:B.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:x.hkK,link:"/lnd/messages",userPersona:B.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:x.q7m,link:"/lnd/channelbackup",userPersona:B.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:x.o4t,link:"/lnd/network",userPersona:B.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:x.xf3,link:"/lnd/network",userPersona:B.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:x.Krp,link:"/services/loop",userPersona:B.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:x.vqe,link:"/services/loop",userPersona:B.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:B.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:B.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:B.ol.ALL}],CLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/cl/home",userPersona:B.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/cl/onchain",userPersona:B.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/cl/connections",userPersona:B.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/cl/connections",userPersona:B.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/cl/transactions",userPersona:B.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/cl/routing",userPersona:B.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/cl/reports",userPersona:B.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/cl/graph",userPersona:B.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:x.hkK,link:"/cl/messages",userPersona:B.ol.ALL},{id:37,parentId:3,name:"Fee Rates",iconType:"FA",icon:x.USL,link:"/cl/rates",userPersona:B.ol.OPERATOR},{id:38,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:x.xf3,link:"/cl/rates",userPersona:B.ol.MERCHANT}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:B.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:B.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/ecl/home",userPersona:B.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/ecl/onchain",userPersona:B.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/ecl/connections",userPersona:B.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/ecl/connections",userPersona:B.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/ecl/transactions",userPersona:B.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/ecl/routing",userPersona:B.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/ecl/reports",userPersona:B.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/ecl/graph",userPersona:B.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:B.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:B.ol.ALL}]};var nl=m(7238);function Ks(X,He){if(1&X&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&X){const z=He.$implicit;t.Q6J("value",z.index),t.xp6(1),t.AsE(" ",z.lnNode," (",z.lnImplementation,") ")}}function c1(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"mat-select",9),t.NdJ("selectionChange",function(Ct){return t.CHM(z),t.oxw().onNodeSelectionChange(Ct.value)}),t.YNc(1,Ks,2,3,"mat-option",10),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("value",z.selConfigNodeIndex),t.xp6(1),t.Q6J("ngForOf",z.appConfig.nodes)}}function p0(X,He){if(1&X&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&X){const z=t.oxw().$implicit;t.oxw(2);const De=t.MAs(11);t.xp6(1),t.Q6J("ngTemplateOutlet","boltzIconBlock"===z.icon?De:null)}}function m0(X,He){if(1&X&&t._UZ(0,"fa-icon",23),2&X){const z=t.oxw().$implicit;t.Q6J("icon",z.icon)}}function h1(X,He){if(1&X&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&X){const z=t.oxw().$implicit;t.xp6(1),t.Oqu(z.icon)}}function dh(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"mat-tree-node",15),t.TgZ(1,"div",16),t.NdJ("click",function(){const mi=t.CHM(z).$implicit;return t.oxw(2).onChildNavClicked(mi)}),t.TgZ(2,"div",17),t.YNc(3,p0,2,1,"span",18),t.YNc(4,m0,1,1,"fa-icon",19),t.YNc(5,h1,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&X){const z=He.$implicit;t.s9C("routerLink",z.link),t.xp6(3),t.Q6J("ngIf","SVG"===z.iconType),t.xp6(1),t.Q6J("ngIf","FA"===z.iconType),t.xp6(1),t.Q6J("ngIf",!z.iconType),t.xp6(2),t.Oqu(z.name)}}function g0(X,He){if(1&X&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&X){const z=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",z.icon)}}function ms(X,He){if(1&X&&t._UZ(0,"fa-icon",23),2&X){const z=t.oxw().$implicit;t.Q6J("icon",z.icon)}}function d1(X,He){if(1&X&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&X){const z=t.oxw().$implicit;t.xp6(1),t.Oqu(z.icon)}}function rl(X,He){if(1&X&&(t.TgZ(0,"mat-nested-tree-node",25),t.TgZ(1,"div",26),t.TgZ(2,"div",27),t.YNc(3,g0,2,1,"span",28),t.YNc(4,ms,1,1,"fa-icon",19),t.YNc(5,d1,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.qZA(),t.TgZ(8,"button",29),t.TgZ(9,"mat-icon",30),t._uU(10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"div",31),t.GkF(12,32),t.qZA(),t.qZA()),2&X){const z=He.$implicit,De=t.oxw(2);t.xp6(3),t.Q6J("ngIf","SVG"===z.iconType),t.xp6(1),t.Q6J("ngIf","FA"===z.iconType),t.xp6(1),t.Q6J("ngIf",!z.iconType),t.xp6(2),t.Oqu(z.name),t.xp6(1),t.uIk("aria-label","toggle "+z.name),t.xp6(2),t.Oqu(De.treeControlNested.isExpanded(z)?"arrow_drop_up":"arrow_drop_down"),t.xp6(1),t.ekj("tree-children-invisible",!De.treeControlNested.isExpanded(z))}}function u1(X,He){if(1&X&&(t.TgZ(0,"mat-tree",5,12),t.YNc(2,dh,8,5,"mat-tree-node",13),t.YNc(3,rl,13,8,"mat-nested-tree-node",14),t.qZA()),2&X){const z=t.oxw();t.Q6J("dataSource",z.navMenus)("treeControl",z.treeControlNested),t.xp6(3),t.Q6J("matTreeNodeDefWhen",z.hasChild)}}function al(X,He){if(1&X&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&X){const z=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",z.icon)}}function mc(X,He){if(1&X&&t._UZ(0,"fa-icon",36),2&X){const z=t.oxw().$implicit;t.s9C("matTooltip",z.name),t.Q6J("icon",z.icon)}}function _0(X,He){if(1&X&&(t.TgZ(0,"mat-icon",37),t._uU(1),t.qZA()),2&X){const z=t.oxw().$implicit;t.s9C("matTooltip",z.name),t.xp6(1),t.Oqu(z.icon)}}function gc(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const mi=t.CHM(z).$implicit;return t.oxw().onShowData(mi)}),t.YNc(1,al,2,1,"span",18),t.YNc(2,mc,1,2,"fa-icon",34),t.YNc(3,_0,2,2,"mat-icon",35),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.qZA()}if(2&X){const z=He.$implicit;t.xp6(1),t.Q6J("ngIf","SVG"===z.iconType),t.xp6(1),t.Q6J("ngIf","FA"===z.iconType),t.xp6(1),t.Q6J("ngIf",!z.iconType),t.xp6(2),t.Oqu(z.name)}}function _c(X,He){if(1&X&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&X){const z=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",z.icon)}}function vc(X,He){if(1&X&&t._UZ(0,"fa-icon",36),2&X){const z=t.oxw().$implicit;t.s9C("matTooltip",z.name),t.Q6J("icon",z.icon)}}function f1(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const mi=t.CHM(z).$implicit;return t.oxw(2).onClick(mi)}),t.YNc(1,_c,2,1,"span",28),t.YNc(2,vc,1,2,"fa-icon",34),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.qZA()}if(2&X){const z=He.$implicit;t.xp6(1),t.Q6J("ngIf","SVG"===z.iconType),t.xp6(1),t.Q6J("ngIf","FA"===z.iconType),t.xp6(2),t.Oqu(z.name)}}function Bl(X,He){if(1&X&&(t.TgZ(0,"mat-tree",5),t.YNc(1,f1,5,3,"mat-tree-node",6),t.qZA()),2&X){const z=t.oxw();t.Q6J("dataSource",z.navMenusLogout)("treeControl",z.treeControlLogout)}}function Uo(X,He){1&X&&(t.O4$(),t.TgZ(0,"svg",38),t.TgZ(1,"g",39),t.TgZ(2,"g",40),t._UZ(3,"circle",41),t._UZ(4,"path",42),t._UZ(5,"path",43),t.qZA(),t.qZA(),t.qZA())}let lo=(()=>{class X{constructor(z,De,Ct,mi,En,Ar){this.logger=z,this.commonService=De,this.sessionService=Ct,this.store=mi,this.actions=En,this.rtlEffects=Ar,this.ChildNavClicked=new t.vpe,this.faEject=x.KOR,this.faEye=x.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:x.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:x.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=B.ol,this.unSubs=[new o.x,new o.x,new o.x,new o.x,new o.x,new o.x],this.treeControlNested=new l1.VY(In=>In.children),this.treeControlLogout=new l1.VY(In=>In.children),this.treeControlShowData=new l1.VY(In=>In.children),this.navMenus=new wa.WX,this.navMenusLogout=new wa.WX,this.navMenusShowData=new wa.WX,this.hasChild=(In,gr)=>!!gr.children&&gr.children.length>0,this.version=Qi.q4,200===oo.LNDChildren[oo.LNDChildren.length-1].id&&oo.LNDChildren.pop(),this.navMenus.data=oo.LNDChildren,this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const z=this.sessionService.getItem("token");this.showLogout=!!z,this.flgLoading=!!z,this.store.select(r.Yj).pipe((0,y.R)(this.unSubs[0])).subscribe(De=>{this.appConfig=De}),this.store.select(r.gW).pipe((0,y.R)(this.unSubs[1])).subscribe(De=>{if(this.information=De.nodeDate,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const Ct=this.information.chains[0];this.informationChain.chain=Ct.chain,this.informationChain.network=Ct.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=De.selNode,this.settings=this.selNode.settings,this.selConfigNodeIndex=+De.selNode.index,this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(De)}),this.sessionService.watchSession().pipe((0,y.R)(this.unSubs[2])).subscribe(De=>{this.showLogout=!!De.token,this.flgLoading=!!De.token}),this.actions.pipe((0,y.R)(this.unSubs[3]),(0,te.h)(De=>De.type===B.pg.LOGOUT)).subscribe(De=>{this.showLogout=!1})}onClick(z){"Logout"===z.name&&(this.store.dispatch((0,Me.c1)({payload:{data:{type:B.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,y.R)(this.unSubs[4])).subscribe(De=>{De&&(this.showLogout=!1,this.store.dispatch((0,Me.kS)()))})),this.ChildNavClicked.emit(z)}onChildNavClicked(z){this.ChildNavClicked.emit(z)}filterSideMenuNodes(){switch(this.selNode.lnImplementation.toUpperCase()){case"CLT":this.loadCLTMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let z=[];z=JSON.parse(JSON.stringify(oo.LNDChildren)),this.navMenus.data=z.filter(De=>De.children&&De.children.length?(De.children=De.children.filter(Ct=>(Ct.userPersona===B.ol.ALL||Ct.userPersona===this.settings.userPersona)&&"/services/loop"!==Ct.link&&"/services/boltz"!==Ct.link||"/services/loop"===Ct.link&&this.settings.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===Ct.link&&this.settings.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),De.children.length>0):De.userPersona===B.ol.ALL||De.userPersona===this.settings.userPersona)}loadCLTMenu(){let z=[];z=JSON.parse(JSON.stringify(oo.CLChildren)),this.navMenus.data=z.filter(De=>(De.children&&De.children.length&&(De.children=De.children.filter(Ct=>(Ct.userPersona===B.ol.ALL||Ct.userPersona===this.settings.userPersona)&&"/cl/messages"!==Ct.link||"/cl/messages"===Ct.link&&this.information.api_version&&this.commonService.isVersionCompatible(this.information.api_version,"0.2.2"))),De.userPersona===B.ol.ALL||De.userPersona===this.settings.userPersona))}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(oo.ECLChildren))}onShowData(z){this.store.dispatch((0,Me.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(z){const De=this.selConfigNodeIndex;this.selConfigNodeIndex=z;const Ct=this.appConfig.nodes.find(mi=>+mi.index===z);this.store.dispatch((0,Me.fk)({payload:{uiMessage:B.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+De,currentLnNode:Ct,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(Re.m),t.Y36(M.yh),t.Y36(c.eX),t.Y36(it.V))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-side-navigation"]],viewQuery:function(z,De){if(1&z&&t.Gf(wa.gi,5),2&z){let Ct;t.iGM(Ct=t.CRH())&&(De.tree=Ct.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},decls:12,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","90","fxLayoutAlign","start stretch",1,"w-100"],["class","m-2 multi-node-select",3,"value","selectionChange",4,"ngIf"],[1,"w-100"],[3,"dataSource","treeControl",4,"ngIf"],[3,"dataSource","treeControl"],[3,"click",4,"matTreeNodeDef"],["fxLayout","column","fxLayoutAlign","end stretch",1,"w-100"],["boltzIconBlock",""],[1,"m-2","multi-node-select",3,"value","selectionChange"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["tree",""],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink"],[3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],[1,"fa-icon-small","mr-2"],[3,"ngTemplateOutlet"],[1,"fa-icon-small","mr-2",3,"icon"],[1,"mat-icon-36"],["fxLayout","column","matTreeNodeToggle",""],["fxLayout","row","fxLayoutAlign","start center",1,"mat-nested-tree-node-parent"],["fxFlex","89","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","11","mat-icon-button","","fxLayoutAlign","end center"],[1,"mat-icon-rtl-mirror"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"icon","matTooltip",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"icon","matTooltip"],["matTooltipPosition","right",1,"mat-icon-36",3,"matTooltip"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,c1,2,2,"mat-select",2),t._UZ(3,"mat-divider",3),t.YNc(4,u1,4,3,"mat-tree",4),t._UZ(5,"mat-divider",3),t.TgZ(6,"mat-tree",5),t.YNc(7,gc,6,4,"mat-tree-node",6),t.qZA(),t.qZA(),t.TgZ(8,"div",7),t.YNc(9,Bl,2,2,"mat-tree",4),t.qZA(),t.qZA(),t.YNc(10,Uo,6,0,"ng-template",null,8,t.W1O)),2&z&&(t.xp6(2),t.Q6J("ngIf",De.appConfig.nodes.length>1),t.xp6(2),t.Q6J("ngIf",null==De.settings?null:De.settings.lnServerUrl),t.xp6(2),t.Q6J("dataSource",De.navMenusShowData)("treeControl",De.treeControlShowData),t.xp6(3),t.Q6J("ngIf",De.showLogout))},directives:[b.xw,b.yH,b.Wh,ae.$V,ye.O5,Fe.d,wa.gi,wa.fQ,Pe.gD,ye.sg,Ee.ey,wa.uo,wa.eu,I.Od,I.rH,ye.tP,Z.BN,Lr.Hw,wa.GZ,he.lW,wa.Ar,nl.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),X})();var Ba=m(773);const Ms=["sideNavigation"],Hs=["sideNavContent"];function yc(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(z),t.oxw().sideNavToggle()}),t.TgZ(1,"mat-icon"),t._uU(2,"menu"),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("matTooltip",z.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",z.smallScreen)}}function p1(X,He){1&X&&(t.O4$(),t._UZ(0,"path",18))}function bc(X,He){1&X&&(t.O4$(),t._UZ(0,"path",19))}function Hl(X,He){if(1&X){const z=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(z);const Ct=t.oxw();return Ct.flgSidenavPinned=!Ct.flgSidenavPinned}),t.O4$(),t.TgZ(1,"svg",15),t.YNc(2,p1,1,0,"path",16),t.YNc(3,bc,1,0,"path",17),t.qZA(),t.qZA()}if(2&X){const z=t.oxw();t.Q6J("matTooltip",z.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),t.xp6(2),t.Q6J("ngIf",!z.flgSidenavPinned),t.xp6(1),t.Q6J("ngIf",z.flgSidenavPinned)}}function xc(X,He){if(1&X&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&X){const z=t.oxw();t.xp6(1),t.Oqu(z.information.alias?"RTL - "+z.information.alias:"RTL")}}function $r(X,He){if(1&X&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&X){const z=t.oxw();t.xp6(1),t.Oqu(z.information.alias?"Ride The Lightning - "+z.information.alias:"Ride The Lightning")}}function sl(X,He){1&X&&(t.TgZ(0,"div",20),t._UZ(1,"mat-spinner",21),t.TgZ(2,"h4"),t._uU(3,"Loading RTL..."),t.qZA(),t.qZA())}const v0=function(X,He){return[X,He]};let Ia=(()=>{class X{constructor(z,De,Ct,mi,En,Ar,In,gr,Us){this.logger=z,this.commonService=De,this.store=Ct,this.actions=mi,this.userIdle=En,this.router=Ar,this.sessionService=In,this.breakpointObserver=gr,this.renderer=Us,this.information={},this.flgLoading=[!0],this.flgSideNavOpened=!0,this.flgCopied=!1,this.accessKey="",this.xSmallScreen=!1,this.smallScreen=!1,this.flgSidenavPinned=!0,this.flgLoggedIn=!1,this.unSubs=[new o.x,new o.x,new o.x,new o.x,new o.x,new o.x,new o.x,new o.x]}ngOnInit(){this.router.events.subscribe(z=>{z instanceof I.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([s.u3.XSmall,s.u3.TabletPortrait,s.u3.Small,s.u3.Medium,s.u3.Large,s.u3.XLarge]).pipe((0,y.R)(this.unSubs[0])).subscribe(z=>{z.breakpoints[s.u3.XSmall]?(this.commonService.setScreenSize(B.cu.XS),this.smallScreen=!0):z.breakpoints[s.u3.TabletPortrait]?(this.commonService.setScreenSize(B.cu.SM),this.smallScreen=!0):z.breakpoints[s.u3.Small]||z.breakpoints[s.u3.Medium]?(this.commonService.setScreenSize(B.cu.MD),this.smallScreen=!1):z.breakpoints[s.u3.Large]?(this.commonService.setScreenSize(B.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(B.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,Me.ey)()),this.accessKey=this.readAccessKey(),this.store.select(r.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(z=>{this.settings=z.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(r.Yj).pipe((0,y.R)(this.unSubs[2])).subscribe(z=>{this.appConfig=z}),this.store.select(r.R4).pipe((0,y.R)(this.unSubs[3])).subscribe(z=>{this.information=z,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,y.R)(this.unSubs[4]),(0,te.h)(z=>z.type===B.pg.SET_RTL_CONFIG||z.type===B.pg.LOGOUT)).subscribe(z=>{z.type===B.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+z.payload.sso.rtlSSO?!this.accessKey||this.accessKey.trim().length<32?this.router.navigate(["./error"],{state:{errorCode:"406",errorMessage:"Access key too short. It should be at least 32 characters long."}}):this.store.dispatch((0,Me.x4)({payload:{password:oe(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),z.type===B.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,y.R)(this.unSubs[5])).subscribe(z=>{this.logger.info("Counting Down: "+(11-z))}),this.userIdle.onTimeout().pipe((0,y.R)(this.unSubs[6])).subscribe(()=>{this.logger.info("Time Out!"),this.sessionService.getItem("token")&&(this.flgLoggedIn=!1,this.logger.warn("Time limit exceeded for session inactivity."),this.store.dispatch((0,Me.ts)()),this.store.dispatch((0,Me.qR)({payload:{data:{type:B.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Me.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const z=window.location.href;return z.includes("access-key=")?z.substring(z.lastIndexOf("access-key=")+11).trim():null}ngAfterViewInit(){this.smallScreen?(this.sideNavigation.close(),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)):setTimeout(()=>{this.renderer.setStyle(this.sideNavContent.elementRef.nativeElement,"marginLeft","22rem"),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)},100)}sideNavToggle(){this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.toggle()}onNavigationClicked(z){this.smallScreen&&this.sideNavigation.close()}copiedText(z){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+z)}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(),z.complete()})}}return X.\u0275fac=function(z){return new(z||X)(t.Y36(we.mQ),t.Y36(Ci.v),t.Y36(M.yh),t.Y36(c.eX),t.Y36(_),t.Y36(I.F0),t.Y36(Re.m),t.Y36(s.Yg),t.Y36(t.Qsj))},X.\u0275cmp=t.Xpm({type:X,selectors:[["rtl-app"]],viewQuery:function(z,De){if(1&z&&(t.Gf(Ms,5),t.Gf(Hs,5)),2&z){let Ct;t.iGM(Ct=t.CRH())&&(De.sideNavigation=Ct.first),t.iGM(Ct=t.CRH())&&(De.sideNavContent=Ct.first)}},decls:23,vars:15,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"padding-gap-x","bg-primary","rtl-top-toolbar"],["class","top-toolbar-icon mr-1","mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["sideNavigation",""],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["sideNavContent",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["outlet","outlet"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon","mr-1",3,"matTooltip","matTooltipDisabled","click"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["viewBox","0 0 32 32",1,"top-toolbar-icon","icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"rtl-spinner"],["color","accent"]],template:function(z,De){1&z&&(t.TgZ(0,"div",0),t.ALo(1,"lowercase"),t.ALo(2,"lowercase"),t.TgZ(3,"mat-toolbar",1),t.TgZ(4,"div"),t.YNc(5,yc,3,2,"button",2),t.YNc(6,Hl,4,3,"button",3),t.qZA(),t.TgZ(7,"div"),t.YNc(8,xc,2,1,"span",4),t.YNc(9,$r,2,1,"span",4),t.qZA(),t.TgZ(10,"div"),t._UZ(11,"rtl-top-menu"),t.qZA(),t.qZA(),t.TgZ(12,"mat-sidenav-container"),t.TgZ(13,"mat-sidenav",5,6),t.TgZ(15,"rtl-side-navigation",7),t.NdJ("ChildNavClicked",function(mi){return De.onNavigationClicked(mi)}),t.qZA(),t.qZA(),t.TgZ(16,"mat-sidenav-content",8,9),t.TgZ(18,"div",10),t._UZ(19,"router-outlet",null,11),t.qZA(),t.qZA(),t._uU(21,"> "),t.qZA(),t.YNc(22,sl,4,0,"div",12),t.qZA()),2&z&&(t.Q6J("ngClass",t.WLB(12,v0,t.lcZ(1,8,De.settings.themeColor),t.lcZ(2,10,De.settings.themeMode))),t.xp6(5),t.Q6J("ngIf",De.flgLoggedIn),t.xp6(1),t.Q6J("ngIf",!De.smallScreen&&De.flgLoggedIn),t.xp6(2),t.Q6J("ngIf",De.smallScreen),t.xp6(1),t.Q6J("ngIf",!De.smallScreen),t.xp6(4),t.Q6J("opened",De.flgSideNavOpened&&De.flgLoggedIn)("mode",De.flgSidenavPinned&&!De.smallScreen?"side":"over"),t.xp6(9),t.Q6J("ngIf",!De.settings.themeColor))},directives:[b.xw,ye.mk,An.oO,il.Ye,b.Wh,ye.O5,zo,Fs.TM,Fs.JX,ae.$V,lo,b.yH,Fs.Rh,I.lC,he.lW,nl.gM,Lr.Hw,Ba.$g],pipes:[ye.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[tl.g]}}),X})(),Cc=(()=>{class X{constructor(z){this.sessionService=z}intercept(z,De){if(this.sessionService.getItem("token")){const Ct=z.clone({headers:z.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return De.handle(Ct)}return De.handle(z)}}return X.\u0275fac=function(z){return new(z||X)(t.LFG(Re.m))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();var ol=m(8104),m1=m(7998),Zo=m(711),g1=m(3504),uh=m(3289);const Mc={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1},yo={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},bo={apiURL:"",apisCallStatus:{Login:{status:B.Bn.UN_INITIATED},IsAuthorized:{status:B.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Mc,authentication:yo,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Mc,authentication:yo}]},nodeData:{}},zl=(0,M.Lq)(bo,(0,M.on)(Me.qi,(X,{payload:He})=>{const z=JSON.parse(JSON.stringify(X.apisCallStatus));return z[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:z})}),(0,M.on)(Me.vI,(X,{payload:He})=>Object.assign(Object.assign({},bo),{apisCallStatus:X.apisCallStatus,appConfig:X.appConfig,selNode:He})),(0,M.on)(Me.fk,(X,{payload:He})=>Object.assign(Object.assign({},X),{selNode:He.currentLnNode})),(0,M.on)(Me.Tm,(X,{payload:He})=>{const z=JSON.parse(JSON.stringify(X.selNode));switch(He.service){case B.JX.BOLTZ:z.settings.boltzServerUrl=He.settings.boltzServerUrl;break;case B.JX.LOOP:z.settings.swapServerUrl=He.settings.swapServerUrl;break;case B.JX.OFFERS:z.settings.enableOffers=He.settings.enableOffers}return Object.assign(Object.assign({},X),{selNode:z})}),(0,M.on)(Me._V,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeData:He})),(0,M.on)(Me.XT,(X,{payload:He})=>Object.assign(Object.assign({},X),{appConfig:He}))),zs={apisCallStatus:{FetchInfo:{status:B.Bn.UN_INITIATED},FetchFees:{status:B.Bn.UN_INITIATED},FetchPeers:{status:B.Bn.UN_INITIATED},FetchClosedChannels:{status:B.Bn.UN_INITIATED},FetchPendingChannels:{status:B.Bn.UN_INITIATED},FetchAllChannels:{status:B.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:B.Bn.UN_INITIATED},FetchInvoices:{status:B.Bn.UN_INITIATED},FetchPayments:{status:B.Bn.UN_INITIATED},FetchForwardingHistory:{status:B.Bn.UN_INITIATED},FetchUTXOs:{status:B.Bn.UN_INITIATED},FetchTransactions:{status:B.Bn.UN_INITIATED},FetchLightningTransactions:{status:B.Bn.UN_INITIATED},FetchNetwork:{status:B.Bn.UN_INITIATED}},nodeSettings:{userPersona:B.ol.OPERATOR,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},information:{},peers:[],fees:{channel_fees:[],day_fee_sum:0,week_fee_sum:0,month_fee_sum:0,daily_tx_count:0,weekly_tx_count:0,monthly_tx_count:0,forwarding_events_history:{}},networkInfo:{},blockchainBalance:{total_balance:-1},lightningBalance:{local:-1,remote:-1},channels:[],channelsSummary:{active:{num_channels:0,capacity:0},inactive:{num_channels:0,capacity:0}},closedChannels:[],pendingChannels:{},pendingChannelsSummary:{open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0},transactions:[],utxos:[],listPayments:{payments:[]},listInvoices:{invoices:[]},allLightningTransactions:{listPaymentsAll:{payments:[],first_index_offset:"",last_index_offset:""},listInvoicesAll:{invoices:[],total_invoices:0,last_index_offset:"",first_index_offset:""}},forwardingHistory:{last_offset_index:0,total_fee_msat:0,forwarding_events:[]}};let y0=!1,Qs=!1;const Vo=(0,M.Lq)(zs,(0,M.on)(ui.PC,(X,{payload:He})=>{const z=JSON.parse(JSON.stringify(X.apisCallStatus));return z[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:z})}),(0,M.on)(ui.JT,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(ui.Ll,(X,{payload:He})=>Object.assign(Object.assign({},zs),{nodeSettings:He})),(0,M.on)(ui.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(ui.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(ui.EK,(X,{payload:He})=>{const z=[...X.peers],De=X.peers.findIndex(Ct=>Ct.pub_key===He.pubkey);return De>-1&&z.splice(De,1),Object.assign(Object.assign({},X),{peers:z})}),(0,M.on)(ui.YP,(X,{payload:He})=>{const z=X.listInvoices;return z.invoices.unshift(He),Object.assign(Object.assign({},X),{listInvoices:z})}),(0,M.on)(ui.aL,(X,{payload:He})=>{const z=X.listInvoices;return z.invoices=z.invoices.map(De=>De.payment_request===He.payment_request?He:De),Object.assign(Object.assign({},X),{listInvoices:z})}),(0,M.on)(ui.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(ui._L,(X,{payload:He})=>Object.assign(Object.assign({},X),{closedChannels:He})),(0,M.on)(ui.TW,(X,{payload:He})=>Object.assign(Object.assign({},X),{pendingChannels:He.pendingChannels,pendingChannelsSummary:He.pendingChannelsSummary})),(0,M.on)(ui.as,(X,{payload:He})=>{let z=0,De=0,Ct=0,mi=0,En=0,Ar=0;return He&&He.forEach(In=>{In.local_balance||(In.local_balance=0),!0===In.active?(En+=+In.local_balance,Ct+=1,In.local_balance?z=+z+ +In.local_balance:In.local_balance=0,In.remote_balance?De=+De+ +In.remote_balance:In.remote_balance=0):(Ar+=+In.local_balance,mi+=1)}),Object.assign(Object.assign({},X),{channels:He,channelsSummary:{active:{num_channels:Ct,capacity:En},inactive:{num_channels:mi,capacity:Ar}},lightningBalance:{local:z,remote:De}})}),(0,M.on)(ui.OG,(X,{payload:He})=>{const z=[...X.channels],De=X.channels.findIndex(Ct=>Ct.channel_point===He.channelPoint);return De>-1&&z.splice(De,1),Object.assign(Object.assign({},X),{channels:z})}),(0,M.on)(ui.Jl,(X,{payload:He})=>Object.assign(Object.assign({},X),{blockchainBalance:He})),(0,M.on)(ui.ks,(X,{payload:He})=>Object.assign(Object.assign({},X),{networkInfo:He})),(0,M.on)(ui.Nr,(X,{payload:He})=>(He.total_invoices||(He.total_invoices=X.listInvoices.total_invoices),Object.assign(Object.assign({},X),{listInvoices:He}))),(0,M.on)(ui.Lf,(X,{payload:He})=>{if(y0=!0,He.length&&Qs){const z=[...X.utxos];return z.forEach(De=>{const Ct=He.find(mi=>mi.tx_hash===De.outpoint.txid_str);De.label=Ct&&Ct.label?Ct.label:""}),Object.assign(Object.assign({},X),{utxos:z,transactions:He})}return Object.assign(Object.assign({},X),{transactions:He})}),(0,M.on)(ui.UH,(X,{payload:He})=>{if(Qs=!0,He.length&&y0){const z=[...X.transactions];He.forEach(De=>{const Ct=z.find(mi=>mi.tx_hash===De.outpoint.txid_str);De.label=Ct&&Ct.label?Ct.label:""})}return Object.assign(Object.assign({},X),{utxos:He})}),(0,M.on)(ui.HI,(X,{payload:He})=>Object.assign(Object.assign({},X),{listPayments:He})),(0,M.on)(ui.Fr,(X,{payload:He})=>Object.assign(Object.assign({},X),{allLightningTransactions:He})),(0,M.on)(ui.QJ,(X,{payload:He})=>{const z=[...X.channels,...X.closedChannels];let De=He.forwarding_events?JSON.parse(JSON.stringify(He)):{};return De.forwarding_events&&(De=xo(De,z)),Object.assign(Object.assign({},X),{forwardingHistory:De})})),xo=(X,He)=>(X.forwarding_events.forEach(z=>{if(He&&He.length>0)for(let De=0;De<He.length;De++){if(He[De].chan_id.toString()===z.chan_id_in&&(z.alias_in=He[De].remote_alias?He[De].remote_alias:z.chan_id_in,z.alias_out)||He[De].chan_id.toString()===z.chan_id_out&&(z.alias_out=He[De].remote_alias?He[De].remote_alias:z.chan_id_out,z.alias_in))return;De===He.length-1&&(z.alias_in||(z.alias_in=z.chan_id_in),z.alias_out||(z.alias_out=z.chan_id_out))}else z.alias_in=z.chan_id_in,z.alias_out=z.chan_id_out}),X),wc={apisCallStatus:{FetchInfo:{status:B.Bn.UN_INITIATED},FetchInvoices:{status:B.Bn.UN_INITIATED},FetchFees:{status:B.Bn.UN_INITIATED},FetchChannels:{status:B.Bn.UN_INITIATED},FetchBalance:{status:B.Bn.UN_INITIATED},FetchLocalRemoteBalance:{status:B.Bn.UN_INITIATED},FetchFeeRatesperkb:{status:B.Bn.UN_INITIATED},FetchFeeRatesperkw:{status:B.Bn.UN_INITIATED},FetchPeers:{status:B.Bn.UN_INITIATED},FetchUTXOs:{status:B.Bn.UN_INITIATED},FetchPayments:{status:B.Bn.UN_INITIATED},FetchForwardingHistory:{status:B.Bn.UN_INITIATED},FetchFailedForwardingHistory:{status:B.Bn.UN_INITIATED},FetchLocalFailedForwardingHistory:{status:B.Bn.UN_INITIATED},FetchOffers:{status:B.Bn.UN_INITIATED},FetchOfferBookmarks:{status:B.Bn.UN_INITIATED}},nodeSettings:{userPersona:B.ol.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[],enableOffers:!1},information:{},fees:{},feeRatesPerKB:{},feeRatesPerKW:{},balance:{},localRemoteBalance:{localBalance:-1,remoteBalance:-1},peers:[],activeChannels:[],pendingChannels:[],inactiveChannels:[],payments:[],forwardingHistory:[],failedForwardingHistory:[],localFailedForwardingHistory:[],invoices:{invoices:[]},utxos:[],offers:[],offersBookmarks:[]},b0=(0,M.Lq)(wc,(0,M.on)(Lt.Ni,(X,{payload:He})=>{const z=JSON.parse(JSON.stringify(X.apisCallStatus));return z[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:z})}),(0,M.on)(Lt.oo,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(Lt.xH,(X,{payload:He})=>Object.assign(Object.assign({},wc),{nodeSettings:He})),(0,M.on)(Lt.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(Lt.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(Lt.I8,(X,{payload:He})=>He.perkb?Object.assign(Object.assign({},X),{feeRatesPerKB:He}):He.perkw?Object.assign(Object.assign({},X),{feeRatesPerKW:He}):Object.assign({},X)),(0,M.on)(Lt.Lu,(X,{payload:He})=>Object.assign(Object.assign({},X),{balance:He})),(0,M.on)(Lt.xS,(X,{payload:He})=>Object.assign(Object.assign({},X),{localRemoteBalance:He})),(0,M.on)(Lt.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(Lt.X3,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:[...X.peers,He]})),(0,M.on)(Lt.EK,(X,{payload:He})=>{const z=[...X.peers],De=X.peers.findIndex(Ct=>Ct.id===He.id);return De>-1&&z.splice(De,1),Object.assign(Object.assign({},X),{peers:z})}),(0,M.on)(Lt.as,(X,{payload:He})=>Object.assign(Object.assign({},X),{activeChannels:He.activeChannels,pendingChannels:He.pendingChannels,inactiveChannels:He.inactiveChannels})),(0,M.on)(Lt.OG,(X,{payload:He})=>{const z=[...X.peers];return z.forEach(De=>{De.id===He.id&&(De.connected=!1,delete De.netaddr)}),Object.assign(Object.assign({},X),{peers:z})}),(0,M.on)(Lt.HI,(X,{payload:He})=>Object.assign(Object.assign({},X),{payments:He})),(0,M.on)(Lt.QJ,(X,{payload:He})=>{const z=X.fees,De=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];return He=co(He,De),z.totalTxCount=He.length,Object.assign(Object.assign({},X),{fee:z,forwardingHistory:He})}),(0,M.on)(Lt.M7,(X,{payload:He})=>{const z=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];return He=co(He,z),Object.assign(Object.assign({},X),{failedForwardingHistory:He})}),(0,M.on)(Lt.d6,(X,{payload:He})=>{const z=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];return He=co(He,z),Object.assign(Object.assign({},X),{localFailedForwardingHistory:He})}),(0,M.on)(Lt.YP,(X,{payload:He})=>{const z=X.invoices;return z.invoices.unshift(He),Object.assign(Object.assign({},X),{invoices:z})}),(0,M.on)(Lt.Nr,(X,{payload:He})=>Object.assign(Object.assign({},X),{invoices:He})),(0,M.on)(Lt.aL,(X,{payload:He})=>{const z=X.invoices;return z.invoices=z.invoices.map(De=>De.label===He.label?He:De),Object.assign(Object.assign({},X),{invoices:z})}),(0,M.on)(Lt.UH,(X,{payload:He})=>Object.assign(Object.assign({},X),{utxos:He})),(0,M.on)(Lt.Zu,(X,{payload:He})=>Object.assign(Object.assign({},X),{offers:He})),(0,M.on)(Lt.ZH,(X,{payload:He})=>{const z=X.offers;return z.unshift(He),Object.assign(Object.assign({},X),{offers:z})}),(0,M.on)(Lt.JK,(X,{payload:He})=>{const z=[...X.offers],De=X.offers.findIndex(Ct=>Ct.offer_id===He.offer.offer_id);return De>-1&&z.splice(De,1,He.offer),Object.assign(Object.assign({},X),{offers:z})}),(0,M.on)(Lt.d7,(X,{payload:He})=>Object.assign(Object.assign({},X),{offersBookmarks:He})),(0,M.on)(Lt.e9,(X,{payload:He})=>{const z=[...X.offersBookmarks],De=z.findIndex(Ct=>Ct.bolt12===He.bolt12);if(De<0)z.unshift(He);else{const Ct=Object.assign({},z[De]);Ct.title=He.title,Ct.amountmSat=He.amountmSat,Ct.lastUpdatedAt=He.lastUpdatedAt,Ct.description=He.description,Ct.vendor=He.vendor,z.splice(De,1,Ct)}return Object.assign(Object.assign({},X),{offersBookmarks:z})}),(0,M.on)(Lt.en,(X,{payload:He})=>{const z=[...X.offersBookmarks],De=X.offersBookmarks.findIndex(Ct=>Ct.bolt12===He.bolt12);return De>-1&&z.splice(De,1),Object.assign(Object.assign({},X),{offersBookmarks:z})})),co=(X,He)=>(X&&X.length>0?X.forEach((z,De)=>{if(He&&He.length>0)for(let Ct=0;Ct<He.length;Ct++){if(He[Ct].short_channel_id&&He[Ct].short_channel_id===z.in_channel&&(z.in_channel_alias=He[Ct].alias?He[Ct].alias:z.in_channel,z.out_channel_alias)||He[Ct].short_channel_id&&He[Ct].short_channel_id.toString()===z.out_channel&&(z.out_channel_alias=He[Ct].alias?He[Ct].alias:z.out_channel,z.in_channel_alias))return;Ct===He.length-1&&(z.in_channel_alias||(z.in_channel_alias=z.in_channel?z.in_channel:"-"),z.out_channel_alias||(z.out_channel_alias=z.out_channel?z.out_channel:"-"))}else z.in_channel_alias=z.in_channel?z.in_channel:"-",z.out_channel_alias=z.out_channel?z.out_channel:"-"}):X=[],X),Co={apisCallStatus:{FetchInfo:{status:B.Bn.UN_INITIATED},FetchFees:{status:B.Bn.UN_INITIATED},FetchChannels:{status:B.Bn.UN_INITIATED},FetchOnchainBalance:{status:B.Bn.UN_INITIATED},FetchPeers:{status:B.Bn.UN_INITIATED},FetchPayments:{status:B.Bn.UN_INITIATED},FetchInvoices:{status:B.Bn.UN_INITIATED},FetchTransactions:{status:B.Bn.UN_INITIATED}},nodeSettings:{userPersona:B.ol.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},information:{},fees:{},activeChannels:[],pendingChannels:[],inactiveChannels:[],channelsStatus:{active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0},closing:{channels:0,capacity:0}},onchainBalance:{total:0,confirmed:0,unconfirmed:0},lightningBalance:{localBalance:-1,remoteBalance:-1},peers:[],payments:{},transactions:[],invoices:[]},ll=(0,M.Lq)(Co,(0,M.on)(gt.QZ,(X,{payload:He})=>{const z=JSON.parse(JSON.stringify(X.apisCallStatus));return z[He.action]={status:He.status,statusCode:He.statusCode,message:He.message,URL:He.URL,filePath:He.filePath},Object.assign(Object.assign({},X),{apisCallStatus:z})}),(0,M.on)(gt.Zr,(X,{payload:He})=>Object.assign(Object.assign({},X),{nodeSettings:He})),(0,M.on)(gt.Fd,(X,{payload:He})=>Object.assign(Object.assign({},Co),{nodeSettings:He})),(0,M.on)(gt.CX,(X,{payload:He})=>Object.assign(Object.assign({},X),{information:He})),(0,M.on)(gt.RX,(X,{payload:He})=>Object.assign(Object.assign({},X),{fees:He})),(0,M.on)(gt.eN,(X,{payload:He})=>Object.assign(Object.assign({},X),{activeChannels:He})),(0,M.on)(gt.TW,(X,{payload:He})=>Object.assign(Object.assign({},X),{pendingChannels:He})),(0,M.on)(gt.i,(X,{payload:He})=>Object.assign(Object.assign({},X),{inactiveChannels:He})),(0,M.on)(gt.HG,(X,{payload:He})=>Object.assign(Object.assign({},X),{channelsStatus:He})),(0,M.on)(gt.Bw,(X,{payload:He})=>Object.assign(Object.assign({},X),{onchainBalance:He})),(0,M.on)(gt.On,(X,{payload:He})=>Object.assign(Object.assign({},X),{lightningBalance:He})),(0,M.on)(gt.Z8,(X,{payload:He})=>Object.assign(Object.assign({},X),{peers:He})),(0,M.on)(gt.EK,(X,{payload:He})=>{const z=[...X.peers],De=X.peers.findIndex(Ct=>Ct.nodeId===He.nodeId);return De>-1&&z.splice(De,1),Object.assign(Object.assign({},X),{peers:z})}),(0,M.on)(gt.OG,(X,{payload:He})=>{const z=[...X.activeChannels],De=X.activeChannels.findIndex(Ct=>Ct.channelId===He.channelId);return De>-1&&z.splice(De,1),Object.assign(Object.assign({},X),{activeChannels:z})}),(0,M.on)(gt.HI,(X,{payload:He})=>{if(He&&He.sent){const z=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];He.sent.map(De=>{const Ct=X.peers.find(mi=>mi.nodeId===De.recipientNodeId);return De.recipientNodeAlias=Ct?Ct.alias:De.recipientNodeId,De.parts&&De.parts.map(mi=>{const En=z.find(Ar=>Ar.channelId===mi.toChannelId);return mi.toChannelAlias=En?En.alias:mi.toChannelId,De.parts}),He.sent})}if(He&&He.relayed){const z=[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels];He.relayed.forEach(De=>{De=x0(De,z)})}return Object.assign(Object.assign({},X),{payments:He})}),(0,M.on)(gt.Lf,(X,{payload:He})=>Object.assign(Object.assign({},X),{transactions:He})),(0,M.on)(gt.YP,(X,{payload:He})=>{const z=X.invoices;return z.unshift(He),Object.assign(Object.assign({},X),{invoices:z})}),(0,M.on)(gt.Nr,(X,{payload:He})=>Object.assign(Object.assign({},X),{invoices:He})),(0,M.on)(gt.aL,(X,{payload:He})=>{let z=X.invoices;return z=z.map(De=>{if(De.paymentHash===He.paymentHash){if(He.hasOwnProperty("type")){const Ct=JSON.parse(JSON.stringify(De));return Ct.amountSettled=He.parts&&He.parts.length&&He.parts.length>0&&He.parts[0].amount?He.parts[0].amount/1e3:0,Ct.receivedAt=He.parts&&He.parts.length&&He.parts.length>0&&He.parts[0].timestamp?Math.round(He.parts[0].timestamp/1e3):0,Ct.status="received",Ct}return He}return De}),Object.assign(Object.assign({},X),{invoices:z})}),(0,M.on)(gt.DJ,(X,{payload:He})=>{let z=X.pendingChannels;return z=z.map(De=>(De.channelId===He.channelId&&De.nodeId===He.remoteNodeId&&(He.currentState=He.currentState.replace(/_/g," "),De.state=He.currentState),De)),Object.assign(Object.assign({},X),{pendingChannels:z})}),(0,M.on)(gt.ti,(X,{payload:He})=>{const z=X.payments,De=x0(He,[...X.activeChannels,...X.pendingChannels,...X.inactiveChannels]);De.amountIn=Math.round(He.amountIn/1e3),De.amountOut=Math.round(He.amountOut/1e3),z.relayed.unshift(De);const Ct=He.amountIn-He.amountOut,mi={localBalance:X.lightningBalance.localBalance+Ct,remoteBalance:X.lightningBalance.remoteBalance-Ct},En=X.channelsStatus;En.active.capacity=X.channelsStatus.active.capacity+Ct;const Ar={daily_fee:X.fees.daily_fee+Ct,daily_txs:X.fees.daily_txs+1,weekly_fee:X.fees.weekly_fee+Ct,weekly_txs:X.fees.weekly_txs+1,monthly_fee:X.fees.monthly_fee+Ct,monthly_txs:X.fees.monthly_txs+1},In=X.activeChannels;let gr=!1,Us=!1;for(const Ir of In){if(Ir.channelId===He.fromChannelId){gr=!0;const os=Ir.toLocal+Ir.toRemote;Ir.toLocal=Ir.toLocal+De.amountIn,Ir.toRemote=Ir.toRemote-De.amountIn,Ir.balancedness=0===os?1:+(1-Math.abs((Ir.toLocal-Ir.toRemote)/os)).toFixed(3)}if(Ir.channelId===He.toChannelId){Us=!0;const os=Ir.toLocal+Ir.toRemote;Ir.toLocal=Ir.toLocal-De.amountOut,Ir.toRemote=Ir.toRemote+De.amountOut,Ir.balancedness=0===os?1:+(1-Math.abs((Ir.toLocal-Ir.toRemote)/os)).toFixed(3)}if(Us&&gr)break}return Object.assign(Object.assign({},X),{payments:z,lightningBalance:mi,channelStatus:En,fees:Ar,activeChannels:In})})),x0=(X,He)=>{if("payment-relayed"===X.type)if(He&&He.length>0)for(let z=0;z<He.length;z++){if(He[z].channelId.toString()===X.fromChannelId&&(X.fromChannelAlias=He[z].alias?He[z].alias:X.fromChannelId,X.fromShortChannelId=He[z].shortChannelId?He[z].shortChannelId:"",X.toChannelAlias)||He[z].channelId.toString()===X.toChannelId&&(X.toChannelAlias=He[z].alias?He[z].alias:X.toChannelId,X.toShortChannelId=He[z].shortChannelId?He[z].shortChannelId:"",X.fromChannelAlias))return X;z===He.length-1&&(X.fromChannelAlias||(X.fromChannelAlias=X.fromChannelId.substring(0,17)+"...",X.fromShortChannelId=""),X.toChannelAlias||(X.toChannelAlias=X.toChannelId.substring(0,17)+"...",X.toShortChannelId=""))}else X.fromChannelAlias=X.fromChannelId.substring(0,17)+"...",X.fromShortChannelId="",X.toChannelAlias=X.toChannelId.substring(0,17)+"...",X.toShortChannelId="";else if(X.type="trampoline-payment-relayed"){if(He&&He.length>0)for(let z=0;z<He.length;z++)X.incoming.forEach(De=>{He[z].channelId.toString()===De.channelId&&(De.channelAlias=He[z].alias?He[z].alias:De.channelId,De.shortChannelId=He[z].shortChannelId?He[z].shortChannelId:"")}),X.outgoing.forEach(De=>{He[z].channelId.toString()===De.channelId&&(De.channelAlias=He[z].alias?He[z].alias:De.channelId,De.shortChannelId=He[z].shortChannelId?He[z].shortChannelId:"")}),z===He.length-1&&(X.incoming[0].channelAlias||X.incoming.forEach(De=>{De.channelAlias=De.channelId.substring(0,17)+"...",De.shortChannelId=""}),X.outgoing[0].channelAlias||X.outgoing.forEach(De=>{De.channelAlias=De.channelId.substring(0,17)+"...",De.shortChannelId=""}));else X.incoming.forEach(z=>{z.channelAlias=z.channelId.substring(0,17)+"...",z.shortChannelId=""}),X.outgoing.forEach(z=>{z.channelAlias=z.channelId.substring(0,17)+"...",z.shortChannelId=""});X.amountIn=X.incoming.reduce((z,De)=>z+De.amount,0),X.fromChannelId=X.incoming[0].channelId,X.fromChannelAlias=X.incoming[0].channelAlias,X.fromShortChannelId=X.incoming[0].shortChannelId,X.amountOut=X.outgoing.reduce((z,De)=>z+De.amount,0),X.toChannelId=X.outgoing[0].channelId,X.toChannelAlias=X.outgoing[0].channelAlias,X.toShortChannelId=X.outgoing[0].shortChannelId}return X};let Yu=(()=>{class X{}return X.\u0275fac=function(z){return new(z||X)},X.\u0275mod=t.oAB({type:X,bootstrap:[Ia]}),X.\u0275inj=t.cJS({providers:[{provide:C.TP,useClass:Cc,multi:!0},Oa.a1,Re.m,ol.D,m1.d,Zr.W,Ci.v,Bn],imports:[[v.PW,o1.m,u0,s.xu,e.t6,D.forRoot({idle:3590,timeout:10,ping:12e3}),M.Aw.forRoot({root:zl,lnd:Vo,cl:b0,ecl:ll},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),c.sQ.forRoot([it.V,Zo.l,g1.s,uh.o]),Qi.NZ.production?[]:N.FT.instrument()]]}),X})();Qi.NZ.production&&(0,t.G48)(),e.q6().bootstrapModule(Yu).catch(X=>console.log(X))},7854:(Ze,K)=>{"use strict";function m(B){return Object.keys(B).map(Me=>B[Me])}var B;Object.defineProperty(K,"__esModule",{value:!0}),(B=K.HashAlgorithms||(K.HashAlgorithms={})).SHA1="sha1",B.SHA256="sha256",B.SHA512="sha512";const e=m(K.HashAlgorithms);!function(B){B.ASCII="ascii",B.BASE64="base64",B.HEX="hex",B.LATIN1="latin1",B.UTF8="utf8"}(K.KeyEncodings||(K.KeyEncodings={}));const t=m(K.KeyEncodings);!function(B){B.HOTP="hotp",B.TOTP="totp"}(K.Strategy||(K.Strategy={}));const v=m(K.Strategy),C=()=>{throw new Error("Please provide an options.createDigest implementation.")};function s(B){return/^(\d+)$/.test(B)}function M(B,Me,we){return B.length>=Me?B:`${Array(Me+1).join(we)}${B}`.slice(-1*Me)}function c(B){const Me=`otpauth://${B.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,we=[];if(v.indexOf(B.type)<0)throw new Error(`Expecting options.type to be one of ${v.join(", ")}. Received ${B.type}.`);if("hotp"===B.type){if(null==B.counter||"number"!=typeof B.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');we.push(`&counter=${B.counter}`)}return"totp"===B.type&&B.step&&we.push(`&period=${B.step}`),B.digits&&we.push(`&digits=${B.digits}`),B.algorithm&&we.push(`&algorithm=${B.algorithm.toUpperCase()}`),B.issuer&&we.push(`&issuer=${encodeURIComponent(B.issuer)}`),Me.replace("{labelPrefix}",encodeURIComponent(B.issuer||B.accountName)).replace("{accountName}",encodeURIComponent(B.accountName)).replace("{secret}",B.secret).replace("{query}",we.join(""))}class N{constructor(Me={}){this._defaultOptions=Object.freeze(ro({},Me)),this._options=Object.freeze({})}create(Me={}){return new N(Me)}clone(Me={}){const we=this.create(ro(ro({},this._defaultOptions),Me));return we.options=this._options,we}get options(){return Object.freeze(ro(ro({},this._defaultOptions),this._options))}set options(Me){this._options=Object.freeze(ro(ro({},this._options),Me))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function o(B){if("function"!=typeof B.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof B.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof B.digits)throw new Error("Expecting options.digits to be a number.");if(!B.algorithm||e.indexOf(B.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${e.join(", ")}. Received ${B.algorithm}.`);if(!B.encoding||t.indexOf(B.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${t.join(", ")}. Received ${B.encoding}.`)}const L=(B,Me,we)=>Buffer.from(Me,we).toString("hex");function O(){return{algorithm:K.HashAlgorithms.SHA1,createHmacKey:L,createDigest:C,digits:6,encoding:K.KeyEncodings.ASCII}}function A(B){const Me=ro(ro({},O()),B);return o(Me),Object.freeze(Me)}function E(B){return M(B.toString(16),16,"0")}function k(B,Me){const we=Buffer.from(B,"hex"),ae=15&we[we.length-1],vt=((127&we[ae])<<24|(255&we[ae+1])<<16|(255&we[ae+2])<<8|255&we[ae+3])%Math.pow(10,Me);return M(String(vt),Me,"0")}function V(B,Me,we){const ae=we.digest||function(B,Me,we){const ae=E(Me),We=we.createHmacKey(we.algorithm,B,we.encoding);return we.createDigest(we.algorithm,We,ae)}(B,Me,we);return k(ae,we.digits)}function W(B,Me,we,ae){return!!s(B)&&B===V(Me,we,ae)}function j(B,Me,we,ae,We){return c({algorithm:We.algorithm,digits:We.digits,type:K.Strategy.HOTP,accountName:B,counter:ae,issuer:Me,secret:we})}class $ extends N{create(Me={}){return new $(Me)}allOptions(){return A(this.options)}generate(Me,we){return V(Me,we,this.allOptions())}check(Me,we,ae){return W(Me,we,ae,this.allOptions())}verify(Me){if("object"!=typeof Me)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Me.token,Me.secret,Me.counter)}keyuri(Me,we,ae,We){return j(Me,we,ae,We,this.allOptions())}}function ee(B){if("number"==typeof B)return[Math.abs(B),Math.abs(B)];if(Array.isArray(B)){const[Me,we]=B;if("number"==typeof Me&&"number"==typeof we)return[Math.abs(Me),Math.abs(we)]}throw new Error("Expecting options.window to be an number or [number, number].")}function me(B){if(o(B),ee(B.window),"number"!=typeof B.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof B.step)throw new Error("Expecting options.step to be a number.")}const ce=(B,Me,we)=>{const ae=B.length,We=Buffer.from(B,Me).toString("hex");if(ae<we){const vt=new Array(we-ae+1).join(We);return Buffer.from(vt,"hex").slice(0,we).toString("hex")}return We},le=(B,Me,we)=>{switch(B){case K.HashAlgorithms.SHA1:return ce(Me,we,20);case K.HashAlgorithms.SHA256:return ce(Me,we,32);case K.HashAlgorithms.SHA512:return ce(Me,we,64);default:throw new Error(`Expecting algorithm to be one of ${e.join(", ")}. Received ${B}.`)}};function te(){return{algorithm:K.HashAlgorithms.SHA1,createDigest:C,createHmacKey:le,digits:6,encoding:K.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function re(B){const Me=ro(ro({},te()),B);return me(Me),Object.freeze(Me)}function pe(B,Me){return Math.floor(B/Me/1e3)}function y(B,Me){return V(B,pe(Me.epoch,Me.step),Me)}function i(B,Me,we,ae){const We=[];if(0===ae)return We;for(let vt=1;vt<=ae;vt++)We.push(B+Me*vt*we);return We}function a(B,Me,we){const ae=ee(we),We=1e3*Me;return{current:B,past:i(B,-1,We,ae[0]),future:i(B,1,We,ae[1])}}function p(B,Me,we){return!!s(B)&&B===y(Me,we)}function u(B,Me,we,ae){let We=null;return B.some((vt,Pe)=>!!p(Me,we,_8(ro({},ae),{epoch:vt}))&&(We=Pe+1,!0)),We}function _(B,Me,we){if(p(B,Me,we))return 0;const ae=a(we.epoch,we.step,we.window),We=u(ae.past,B,Me,we);return null!==We?-1*We:u(ae.future,B,Me,we)}function D(B,Me){return Math.floor(B/1e3)%Me}function I(B,Me){return Me-D(B,Me)}function x(B,Me,we,ae){return c({algorithm:ae.algorithm,digits:ae.digits,step:ae.step,type:K.Strategy.TOTP,accountName:B,issuer:Me,secret:we})}class r extends ${create(Me={}){return new r(Me)}allOptions(){return re(this.options)}generate(Me){return y(Me,this.allOptions())}checkDelta(Me,we){return _(Me,we,this.allOptions())}check(Me,we){return"number"==typeof this.checkDelta(Me,we)}verify(Me){if("object"!=typeof Me)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Me.token,Me.secret)}timeRemaining(){const Me=this.allOptions();return I(Me.epoch,Me.step)}timeUsed(){const Me=this.allOptions();return D(Me.epoch,Me.step)}keyuri(Me,we,ae){return x(Me,we,ae,this.allOptions())}}function b(B){if(me(B),"function"!=typeof B.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(B.keyEncoder&&"function"!=typeof B.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function Z(){return{algorithm:K.HashAlgorithms.SHA1,createDigest:C,createHmacKey:le,digits:6,encoding:K.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function P(B){const Me=ro(ro({},Z()),B);return b(Me),Object.freeze(Me)}function U(B,Me){return Me.keyEncoder(B,Me.encoding)}function ye(B,Me){return Me.keyDecoder(B,Me.encoding)}function xe(B,Me){return U(Me.createRandomBytes(B,Me.encoding),Me)}function Ne(B,Me){return y(ye(B,Me),Me)}function Be(B,Me,we){return _(B,ye(Me,we),we)}class Oe extends r{create(Me={}){return new Oe(Me)}allOptions(){return P(this.options)}generate(Me){return Ne(Me,this.allOptions())}checkDelta(Me,we){return Be(Me,we,this.allOptions())}encode(Me){return U(Me,this.allOptions())}decode(Me){return ye(Me,this.allOptions())}generateSecret(Me=10){return xe(Me,this.allOptions())}}K.Authenticator=Oe,K.HASH_ALGORITHMS=e,K.HOTP=$,K.KEY_ENCODINGS=t,K.OTP=N,K.STRATEGY=v,K.TOTP=r,K.authenticatorCheckWithWindow=Be,K.authenticatorDecoder=ye,K.authenticatorDefaultOptions=Z,K.authenticatorEncoder=U,K.authenticatorGenerateSecret=xe,K.authenticatorOptionValidator=b,K.authenticatorOptions=P,K.authenticatorToken=Ne,K.createDigestPlaceholder=C,K.hotpCheck=W,K.hotpCounter=E,K.hotpCreateHmacKey=L,K.hotpDefaultOptions=O,K.hotpDigestToToken=k,K.hotpKeyuri=j,K.hotpOptions=A,K.hotpOptionsValidator=o,K.hotpToken=V,K.isTokenValid=s,K.keyuri=c,K.objectValues=m,K.padStart=M,K.totpCheck=p,K.totpCheckByEpoch=u,K.totpCheckWithWindow=_,K.totpCounter=pe,K.totpCreateHmacKey=le,K.totpDefaultOptions=te,K.totpEpochAvailable=a,K.totpKeyuri=x,K.totpOptions=re,K.totpOptionsValidator=me,K.totpPadSecret=ce,K.totpTimeRemaining=I,K.totpTimeUsed=D,K.totpToken=y},6098:(Ze,K,m)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var s,t=(s=m(1348))&&"object"==typeof s&&"default"in s?s.default:s;K.createDigest=(s,M,c)=>t.createHmac(s,Buffer.from(M,"hex")).update(Buffer.from(c,"hex")).digest().toString("hex"),K.createRandomBytes=(s,M)=>t.randomBytes(s).toString(M)},1415:(Ze,K,m)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var s,t=(s=m(2167))&&"object"==typeof s&&"default"in s?s.default:s;K.keyDecoder=(s,M)=>t.decode(s).toString(M),K.keyEncoder=(s,M)=>t.encode(Buffer.from(s,M).toString("ascii")).toString().replace(/=/g,"")},842:(Ze,K,m)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var e=m(6098),t=m(1415),v=m(7854);const C=new v.HOTP({createDigest:e.createDigest}),s=new v.TOTP({createDigest:e.createDigest}),M=new v.Authenticator({createDigest:e.createDigest,createRandomBytes:e.createRandomBytes,keyDecoder:t.keyDecoder,keyEncoder:t.keyEncoder});K.authenticator=M,K.hotp=C,K.totp=s},6046:(Ze,K,m)=>{"use strict";m.d(K,{H5:()=>f4,K$:()=>u4,a4:()=>oh});var e=m(5e3),t=m(9808),v=m(7429),C=m(655),s=m(4968),M=m(8372),c=m(1777);function N(){}function o(f){return null==f?N:function(){return this.querySelector(f)}}function O(f){return"object"==typeof f&&"length"in f?f:Array.from(f)}function A(){return[]}function E(f){return null==f?A:function(){return this.querySelectorAll(f)}}function V(f){return function(){return this.matches(f)}}function W(f){return function(T){return T.matches(f)}}var j=Array.prototype.find;function ee(){return this.firstElementChild}var ce=Array.prototype.filter;function le(){return this.children}function y(f){return new Array(f.length)}function a(f,T){this.ownerDocument=f.ownerDocument,this.namespaceURI=f.namespaceURI,this._next=null,this._parent=f,this.__data__=T}function p(f){return function(){return f}}function u(f,T,n,d,R,H){for(var Le,se=0,dt=T.length,pt=H.length;se<pt;++se)(Le=T[se])?(Le.__data__=H[se],d[se]=Le):n[se]=new a(f,H[se]);for(;se<dt;++se)(Le=T[se])&&(R[se]=Le)}function _(f,T,n,d,R,H,se){var Le,dt,ni,pt=new Map,Dt=T.length,Ht=H.length,Zt=new Array(Dt);for(Le=0;Le<Dt;++Le)(dt=T[Le])&&(Zt[Le]=ni=se.call(dt,dt.__data__,Le,T)+"",pt.has(ni)?R[Le]=dt:pt.set(ni,dt));for(Le=0;Le<Ht;++Le)ni=se.call(f,H[Le],Le,H)+"",(dt=pt.get(ni))?(d[Le]=dt,dt.__data__=H[Le],pt.delete(ni)):n[Le]=new a(f,H[Le]);for(Le=0;Le<Dt;++Le)(dt=T[Le])&&pt.get(Zt[Le])===dt&&(R[Le]=dt)}function D(f){return f.__data__}function U(f,T){return f<T?-1:f>T?1:f>=T?0:NaN}a.prototype={constructor:a,appendChild:function(f){return this._parent.insertBefore(f,this._next)},insertBefore:function(f,T){return this._parent.insertBefore(f,T)},querySelector:function(f){return this._parent.querySelector(f)},querySelectorAll:function(f){return this._parent.querySelectorAll(f)}};var Me="http://www.w3.org/1999/xhtml";const we={svg:"http://www.w3.org/2000/svg",xhtml:Me,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ae(f){var T=f+="",n=T.indexOf(":");return n>=0&&"xmlns"!==(T=f.slice(0,n))&&(f=f.slice(n+1)),we.hasOwnProperty(T)?{space:we[T],local:f}:f}function We(f){return function(){this.removeAttribute(f)}}function vt(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Pe(f,T){return function(){this.setAttribute(f,T)}}function Ve(f,T){return function(){this.setAttributeNS(f.space,f.local,T)}}function he(f,T){return function(){var n=T.apply(this,arguments);null==n?this.removeAttribute(f):this.setAttribute(f,n)}}function Ee(f,T){return function(){var n=T.apply(this,arguments);null==n?this.removeAttributeNS(f.space,f.local):this.setAttributeNS(f.space,f.local,n)}}function q(f){return f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView}function J(f){return function(){this.style.removeProperty(f)}}function oe(f,T,n){return function(){this.style.setProperty(f,T,n)}}function Ce(f,T,n){return function(){var d=T.apply(this,arguments);null==d?this.style.removeProperty(f):this.style.setProperty(f,d,n)}}function ht(f,T){return f.style.getPropertyValue(T)||q(f).getComputedStyle(f,null).getPropertyValue(T)}function it(f){return function(){delete this[f]}}function ft(f,T){return function(){this[f]=T}}function nt(f,T){return function(){var n=T.apply(this,arguments);null==n?delete this[f]:this[f]=n}}function wt(f){return f.trim().split(/^|\s+/)}function Bt(f){return f.classList||new Pt(f)}function Pt(f){this._node=f,this._names=wt(f.getAttribute("class")||"")}function Vt(f,T){for(var n=Bt(f),d=-1,R=T.length;++d<R;)n.add(T[d])}function Oi(f,T){for(var n=Bt(f),d=-1,R=T.length;++d<R;)n.remove(T[d])}function jt(f){return function(){Vt(this,f)}}function ti(f){return function(){Oi(this,f)}}function Pi(f,T){return function(){(T.apply(this,arguments)?Vt:Oi)(this,f)}}function di(){this.textContent=""}function ze(f){return function(){this.textContent=f}}function Te(f){return function(){var T=f.apply(this,arguments);this.textContent=null==T?"":T}}function ge(){this.innerHTML=""}function Ae(f){return function(){this.innerHTML=f}}function et(f){return function(){var T=f.apply(this,arguments);this.innerHTML=null==T?"":T}}function Nt(){this.nextSibling&&this.parentNode.appendChild(this)}function lt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Fe(f){return function(){var T=this.ownerDocument,n=this.namespaceURI;return n===Me&&T.documentElement.namespaceURI===Me?T.createElement(f):T.createElementNS(n,f)}}function rt(f){return function(){return this.ownerDocument.createElementNS(f.space,f.local)}}function ot(f){var T=ae(f);return(T.local?rt:Fe)(T)}function li(){return null}function Ft(){var f=this.parentNode;f&&f.removeChild(this)}function ai(){var f=this.cloneNode(!1),T=this.parentNode;return T?T.insertBefore(f,this.nextSibling):f}function ci(){var f=this.cloneNode(!0),T=this.parentNode;return T?T.insertBefore(f,this.nextSibling):f}function Xi(f){return f.trim().split(/^|\s+/).map(function(T){var n="",d=T.indexOf(".");return d>=0&&(n=T.slice(d+1),T=T.slice(0,d)),{type:T,name:n}})}function Ke(f){return function(){var T=this.__on;if(T){for(var H,n=0,d=-1,R=T.length;n<R;++n)H=T[n],f.type&&H.type!==f.type||H.name!==f.name?T[++d]=H:this.removeEventListener(H.type,H.listener,H.options);++d?T.length=d:delete this.__on}}}function mt(f,T,n){return function(){var R,d=this.__on,H=function(f){return function(T){f.call(this,T,this.__data__)}}(T);if(d)for(var se=0,Le=d.length;se<Le;++se)if((R=d[se]).type===f.type&&R.name===f.name)return this.removeEventListener(R.type,R.listener,R.options),this.addEventListener(R.type,R.listener=H,R.options=n),void(R.value=T);this.addEventListener(f.type,H,n),R={type:f.type,name:f.name,value:T,listener:H,options:n},d?d.push(R):this.__on=[R]}}function qe(f,T,n){var d=q(f),R=d.CustomEvent;"function"==typeof R?R=new R(T,n):(R=d.document.createEvent("Event"),n?(R.initEvent(T,n.bubbles,n.cancelable),R.detail=n.detail):R.initEvent(T,!1,!1)),f.dispatchEvent(R)}function _t(f,T){return function(){return qe(this,f,T)}}function ue(f,T){return function(){return qe(this,f,T.apply(this,arguments))}}Pt.prototype={add:function(f){this._names.indexOf(f)<0&&(this._names.push(f),this._node.setAttribute("class",this._names.join(" ")))},remove:function(f){var T=this._names.indexOf(f);T>=0&&(this._names.splice(T,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(f){return this._names.indexOf(f)>=0}};var Rt=[null];function yi(f,T){this._groups=f,this._parents=T}function Ri(){return new yi([[document.documentElement]],Rt)}yi.prototype=Ri.prototype={constructor:yi,select:function(f){"function"!=typeof f&&(f=o(f));for(var T=this._groups,n=T.length,d=new Array(n),R=0;R<n;++R)for(var dt,pt,H=T[R],se=H.length,Le=d[R]=new Array(se),Dt=0;Dt<se;++Dt)(dt=H[Dt])&&(pt=f.call(dt,dt.__data__,Dt,H))&&("__data__"in dt&&(pt.__data__=dt.__data__),Le[Dt]=pt);return new yi(d,this._parents)},selectAll:function(f){f="function"==typeof f?function(f){return function(){var T=f.apply(this,arguments);return null==T?[]:O(T)}}(f):E(f);for(var T=this._groups,n=T.length,d=[],R=[],H=0;H<n;++H)for(var dt,se=T[H],Le=se.length,pt=0;pt<Le;++pt)(dt=se[pt])&&(d.push(f.call(dt,dt.__data__,pt,se)),R.push(dt));return new yi(d,R)},selectChild:function(f){return this.select(null==f?ee:function(f){return function(){return j.call(this.children,f)}}("function"==typeof f?f:W(f)))},selectChildren:function(f){return this.selectAll(null==f?le:function(f){return function(){return ce.call(this.children,f)}}("function"==typeof f?f:W(f)))},filter:function(f){"function"!=typeof f&&(f=V(f));for(var T=this._groups,n=T.length,d=new Array(n),R=0;R<n;++R)for(var dt,H=T[R],se=H.length,Le=d[R]=[],pt=0;pt<se;++pt)(dt=H[pt])&&f.call(dt,dt.__data__,pt,H)&&Le.push(dt);return new yi(d,this._parents)},data:function(f,T){if(!arguments.length)return Array.from(this,D);var n=T?_:u,d=this._parents,R=this._groups;"function"!=typeof f&&(f=p(f));for(var H=R.length,se=new Array(H),Le=new Array(H),dt=new Array(H),pt=0;pt<H;++pt){var Dt=d[pt],Ht=R[pt],Zt=Ht.length,ni=O(f.call(Dt,Dt&&Dt.__data__,pt,d)),bi=ni.length,Hi=Le[pt]=new Array(bi),hi=se[pt]=new Array(bi),Ui=dt[pt]=new Array(Zt);n(Dt,Ht,Hi,hi,Ui,ni,T);for(var cn,un,Gi=0,qi=0;Gi<bi;++Gi)if(cn=Hi[Gi]){for(Gi>=qi&&(qi=Gi+1);!(un=hi[qi])&&++qi<bi;);cn._next=un||null}}return(se=new yi(se,d))._enter=Le,se._exit=dt,se},enter:function(){return new yi(this._enter||this._groups.map(y),this._parents)},exit:function(){return new yi(this._exit||this._groups.map(y),this._parents)},join:function(f,T,n){var d=this.enter(),R=this,H=this.exit();return d="function"==typeof f?f(d):d.append(f+""),null!=T&&(R=T(R)),null==n?H.remove():n(H),d&&R?d.merge(R).order():R},merge:function(f){if(!(f instanceof yi))throw new Error("invalid merge");for(var T=this._groups,n=f._groups,d=T.length,H=Math.min(d,n.length),se=new Array(d),Le=0;Le<H;++Le)for(var Zt,dt=T[Le],pt=n[Le],Dt=dt.length,Ht=se[Le]=new Array(Dt),ni=0;ni<Dt;++ni)(Zt=dt[ni]||pt[ni])&&(Ht[ni]=Zt);for(;Le<d;++Le)se[Le]=T[Le];return new yi(se,this._parents)},selection:function(){return this},order:function(){for(var f=this._groups,T=-1,n=f.length;++T<n;)for(var se,d=f[T],R=d.length-1,H=d[R];--R>=0;)(se=d[R])&&(H&&4^se.compareDocumentPosition(H)&&H.parentNode.insertBefore(se,H),H=se);return this},sort:function(f){function T(Ht,Zt){return Ht&&Zt?f(Ht.__data__,Zt.__data__):!Ht-!Zt}f||(f=U);for(var n=this._groups,d=n.length,R=new Array(d),H=0;H<d;++H){for(var pt,se=n[H],Le=se.length,dt=R[H]=new Array(Le),Dt=0;Dt<Le;++Dt)(pt=se[Dt])&&(dt[Dt]=pt);dt.sort(T)}return new yi(R,this._parents).order()},call:function(){var f=arguments[0];return arguments[0]=this,f.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var f=this._groups,T=0,n=f.length;T<n;++T)for(var d=f[T],R=0,H=d.length;R<H;++R){var se=d[R];if(se)return se}return null},size:function(){let f=0;for(const T of this)++f;return f},empty:function(){return!this.node()},each:function(f){for(var T=this._groups,n=0,d=T.length;n<d;++n)for(var Le,R=T[n],H=0,se=R.length;H<se;++H)(Le=R[H])&&f.call(Le,Le.__data__,H,R);return this},attr:function(f,T){var n=ae(f);if(arguments.length<2){var d=this.node();return n.local?d.getAttributeNS(n.space,n.local):d.getAttribute(n)}return this.each((null==T?n.local?vt:We:"function"==typeof T?n.local?Ee:he:n.local?Ve:Pe)(n,T))},style:function(f,T,n){return arguments.length>1?this.each((null==T?J:"function"==typeof T?Ce:oe)(f,T,null==n?"":n)):ht(this.node(),f)},property:function(f,T){return arguments.length>1?this.each((null==T?it:"function"==typeof T?nt:ft)(f,T)):this.node()[f]},classed:function(f,T){var n=wt(f+"");if(arguments.length<2){for(var d=Bt(this.node()),R=-1,H=n.length;++R<H;)if(!d.contains(n[R]))return!1;return!0}return this.each(("function"==typeof T?Pi:T?jt:ti)(n,T))},text:function(f){return arguments.length?this.each(null==f?di:("function"==typeof f?Te:ze)(f)):this.node().textContent},html:function(f){return arguments.length?this.each(null==f?ge:("function"==typeof f?et:Ae)(f)):this.node().innerHTML},raise:function(){return this.each(Nt)},lower:function(){return this.each(lt)},append:function(f){var T="function"==typeof f?f:ot(f);return this.select(function(){return this.appendChild(T.apply(this,arguments))})},insert:function(f,T){var n="function"==typeof f?f:ot(f),d=null==T?li:"function"==typeof T?T:o(T);return this.select(function(){return this.insertBefore(n.apply(this,arguments),d.apply(this,arguments)||null)})},remove:function(){return this.each(Ft)},clone:function(f){return this.select(f?ci:ai)},datum:function(f){return arguments.length?this.property("__data__",f):this.node().__data__},on:function(f,T,n){var R,se,d=Xi(f+""),H=d.length;if(!(arguments.length<2)){for(Le=T?mt:Ke,R=0;R<H;++R)this.each(Le(d[R],T,n));return this}var Le=this.node().__on;if(Le)for(var Dt,dt=0,pt=Le.length;dt<pt;++dt)for(R=0,Dt=Le[dt];R<H;++R)if((se=d[R]).type===Dt.type&&se.name===Dt.name)return Dt.value},dispatch:function(f,T){return this.each(("function"==typeof T?ue:_t)(f,T))},[Symbol.iterator]:function*(){for(var f=this._groups,T=0,n=f.length;T<n;++T)for(var se,d=f[T],R=0,H=d.length;R<H;++R)(se=d[R])&&(yield se)}};const Ki=Ri;var Qt={value:()=>{}};function gt(){for(var d,f=0,T=arguments.length,n={};f<T;++f){if(!(d=arguments[f]+"")||d in n||/[\s.]/.test(d))throw new Error("illegal type: "+d);n[d]=[]}return new Lt(n)}function Lt(f){this._=f}function ui(f,T){return f.trim().split(/^|\s+/).map(function(n){var d="",R=n.indexOf(".");if(R>=0&&(d=n.slice(R+1),n=n.slice(0,R)),n&&!T.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:d}})}function Ci(f,T){for(var R,n=0,d=f.length;n<d;++n)if((R=f[n]).name===T)return R.value}function Wi(f,T,n){for(var d=0,R=f.length;d<R;++d)if(f[d].name===T){f[d]=Qt,f=f.slice(0,d).concat(f.slice(d+1));break}return null!=n&&f.push({name:T,value:n}),f}Lt.prototype=gt.prototype={constructor:Lt,on:function(f,T){var R,n=this._,d=ui(f+"",n),H=-1,se=d.length;if(!(arguments.length<2)){if(null!=T&&"function"!=typeof T)throw new Error("invalid callback: "+T);for(;++H<se;)if(R=(f=d[H]).type)n[R]=Wi(n[R],f.name,T);else if(null==T)for(R in n)n[R]=Wi(n[R],f.name,null);return this}for(;++H<se;)if((R=(f=d[H]).type)&&(R=Ci(n[R],f.name)))return R},copy:function(){var f={},T=this._;for(var n in T)f[n]=T[n].slice();return new Lt(f)},call:function(f,T){if((R=arguments.length-2)>0)for(var R,H,n=new Array(R),d=0;d<R;++d)n[d]=arguments[d+2];if(!this._.hasOwnProperty(f))throw new Error("unknown type: "+f);for(d=0,R=(H=this._[f]).length;d<R;++d)H[d].value.apply(T,n)},apply:function(f,T,n){if(!this._.hasOwnProperty(f))throw new Error("unknown type: "+f);for(var d=this._[f],R=0,H=d.length;R<H;++R)d[R].value.apply(T,n)}};const $i=gt;function br(f,T,n){f.prototype=T.prototype=n,n.constructor=f}function wi(f,T){var n=Object.create(f.prototype);for(var d in T)n[d]=T[d];return n}function Fi(){}var Sr=1/.7,ya="\\s*([+-]?\\d+)\\s*",qn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ba=/^#([0-9a-f]{3,8})$/,xa=new RegExp("^rgb\\("+[ya,ya,ya]+"\\)$"),Za=new RegExp("^rgb\\("+[Rr,Rr,Rr]+"\\)$"),zr=new RegExp("^rgba\\("+[ya,ya,ya,qn]+"\\)$"),ts=new RegExp("^rgba\\("+[Rr,Rr,Rr,qn]+"\\)$"),rr=new RegExp("^hsl\\("+[qn,Rr,Rr]+"\\)$"),ua=new RegExp("^hsla\\("+[qn,Rr,Rr,qn]+"\\)$"),la={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ur(){return this.rgb().formatHex()}function Ra(){return this.rgb().formatRgb()}function Zr(f){var T,n;return f=(f+"").trim().toLowerCase(),(T=ba.exec(f))?(n=T[1].length,T=parseInt(T[1],16),6===n?Qr(T):3===n?new Dr(T>>8&15|T>>4&240,T>>4&15|240&T,(15&T)<<4|15&T,1):8===n?xr(T>>24&255,T>>16&255,T>>8&255,(255&T)/255):4===n?xr(T>>12&15|T>>8&240,T>>8&15|T>>4&240,T>>4&15|240&T,((15&T)<<4|15&T)/255):null):(T=xa.exec(f))?new Dr(T[1],T[2],T[3],1):(T=Za.exec(f))?new Dr(255*T[1]/100,255*T[2]/100,255*T[3]/100,1):(T=zr.exec(f))?xr(T[1],T[2],T[3],T[4]):(T=ts.exec(f))?xr(255*T[1]/100,255*T[2]/100,255*T[3]/100,T[4]):(T=rr.exec(f))?Pa(T[1],T[2]/100,T[3]/100,1):(T=ua.exec(f))?Pa(T[1],T[2]/100,T[3]/100,T[4]):la.hasOwnProperty(f)?Qr(la[f]):"transparent"===f?new Dr(NaN,NaN,NaN,0):null}function Qr(f){return new Dr(f>>16&255,f>>8&255,255&f,1)}function xr(f,T,n,d){return d<=0&&(f=T=n=NaN),new Dr(f,T,n,d)}function _n(f){return f instanceof Fi||(f=Zr(f)),f?new Dr((f=f.rgb()).r,f.g,f.b,f.opacity):new Dr}function Kn(f,T,n,d){return 1===arguments.length?_n(f):new Dr(f,T,n,null==d?1:d)}function Dr(f,T,n,d){this.r=+f,this.g=+T,this.b=+n,this.opacity=+d}function Jr(){return"#"+Pr(this.r)+Pr(this.g)+Pr(this.b)}function Va(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===f?")":", "+f+")")}function Pr(f){return((f=Math.max(0,Math.min(255,Math.round(f)||0)))<16?"0":"")+f.toString(16)}function Pa(f,T,n,d){return d<=0?f=T=n=NaN:n<=0||n>=1?f=T=NaN:T<=0&&(f=NaN),new er(f,T,n,d)}function Ca(f){if(f instanceof er)return new er(f.h,f.s,f.l,f.opacity);if(f instanceof Fi||(f=Zr(f)),!f)return new er;if(f instanceof er)return f;var T=(f=f.rgb()).r/255,n=f.g/255,d=f.b/255,R=Math.min(T,n,d),H=Math.max(T,n,d),se=NaN,Le=H-R,dt=(H+R)/2;return Le?(se=T===H?(n-d)/Le+6*(n<d):n===H?(d-T)/Le+2:(T-n)/Le+4,Le/=dt<.5?H+R:2-H-R,se*=60):Le=dt>0&&dt<1?0:se,new er(se,Le,dt,f.opacity)}function er(f,T,n,d){this.h=+f,this.s=+T,this.l=+n,this.opacity=+d}function Na(f,T,n){return 255*(f<60?T+(n-T)*f/60:f<180?n:f<240?T+(n-T)*(240-f)/60:T)}function hr(f,T,n,d,R){var H=f*f,se=H*f;return((1-3*f+3*H-se)*T+(4-6*H+3*se)*n+(1+3*f+3*H-3*se)*d+se*R)/6}br(Fi,Zr,{copy:function(f){return Object.assign(new this.constructor,this,f)},displayable:function(){return this.rgb().displayable()},hex:Ur,formatHex:Ur,formatHsl:function(){return Ca(this).formatHsl()},formatRgb:Ra,toString:Ra}),br(Dr,Kn,wi(Fi,{brighter:function(f){return f=null==f?Sr:Math.pow(Sr,f),new Dr(this.r*f,this.g*f,this.b*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new Dr(this.r*f,this.g*f,this.b*f,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Jr,formatHex:Jr,formatRgb:Va,toString:Va})),br(er,function(f,T,n,d){return 1===arguments.length?Ca(f):new er(f,T,n,null==d?1:d)},wi(Fi,{brighter:function(f){return f=null==f?Sr:Math.pow(Sr,f),new er(this.h,this.s,this.l*f,this.opacity)},darker:function(f){return f=null==f?.7:Math.pow(.7,f),new er(this.h,this.s,this.l*f,this.opacity)},rgb:function(){var f=this.h%360+360*(this.h<0),T=isNaN(f)||isNaN(this.s)?0:this.s,n=this.l,d=n+(n<.5?n:1-n)*T,R=2*n-d;return new Dr(Na(f>=240?f-240:f+120,R,d),Na(f,R,d),Na(f<120?f+240:f-120,R,d),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var f=this.opacity;return(1===(f=isNaN(f)?1:Math.max(0,Math.min(1,f)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===f?")":", "+f+")")}}));const Nr=f=>()=>f;function fr(f,T){var n=T-f;return n?function(f,T){return function(n){return f+n*T}}(f,n):Nr(isNaN(f)?T:f)}const fa=function f(T){var n=function(f){return 1==(f=+f)?fr:function(T,n){return n-T?function(f,T,n){return f=Math.pow(f,n),T=Math.pow(T,n)-f,n=1/n,function(d){return Math.pow(f+d*T,n)}}(T,n,f):Nr(isNaN(T)?n:T)}}(T);function d(R,H){var se=n((R=Kn(R)).r,(H=Kn(H)).r),Le=n(R.g,H.g),dt=n(R.b,H.b),pt=fr(R.opacity,H.opacity);return function(Dt){return R.r=se(Dt),R.g=Le(Dt),R.b=dt(Dt),R.opacity=pt(Dt),R+""}}return d.gamma=f,d}(1);function ra(f){return function(T){var se,Le,n=T.length,d=new Array(n),R=new Array(n),H=new Array(n);for(se=0;se<n;++se)Le=Kn(T[se]),d[se]=Le.r||0,R[se]=Le.g||0,H[se]=Le.b||0;return d=f(d),R=f(R),H=f(H),Le.opacity=1,function(dt){return Le.r=d(dt),Le.g=R(dt),Le.b=H(dt),Le+""}}}function Wa(f,T){var se,n=T?T.length:0,d=f?Math.min(n,f.length):0,R=new Array(d),H=new Array(n);for(se=0;se<d;++se)R[se]=Wt(f[se],T[se]);for(;se<n;++se)H[se]=T[se];return function(Le){for(se=0;se<d;++se)H[se]=R[se](Le);return H}}function Xe(f,T){var n=new Date;return f=+f,T=+T,function(d){return n.setTime(f*(1-d)+T*d),n}}function _e(f,T){return f=+f,T=+T,function(n){return f*(1-n)+T*n}}function Q(f,T){var R,n={},d={};for(R in(null===f||"object"!=typeof f)&&(f={}),(null===T||"object"!=typeof T)&&(T={}),T)R in f?n[R]=Wt(f[R],T[R]):d[R]=T[R];return function(H){for(R in n)d[R]=n[R](H);return d}}ra(function(f){var T=f.length-1;return function(n){var d=n<=0?n=0:n>=1?(n=1,T-1):Math.floor(n*T),R=f[d],H=f[d+1];return hr((n-d/T)*T,d>0?f[d-1]:2*R-H,R,H,d<T-1?f[d+2]:2*H-R)}}),ra(function(f){var T=f.length;return function(n){var d=Math.floor(((n%=1)<0?++n:n)*T);return hr((n-d/T)*T,f[(d+T-1)%T],f[d%T],f[(d+1)%T],f[(d+2)%T])}});var ne=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qe=new RegExp(ne.source,"g");function xt(f,T){var d,R,H,n=ne.lastIndex=Qe.lastIndex=0,se=-1,Le=[],dt=[];for(f+="",T+="";(d=ne.exec(f))&&(R=Qe.exec(T));)(H=R.index)>n&&(H=T.slice(n,H),Le[se]?Le[se]+=H:Le[++se]=H),(d=d[0])===(R=R[0])?Le[se]?Le[se]+=R:Le[++se]=R:(Le[++se]=null,dt.push({i:se,x:_e(d,R)})),n=Qe.lastIndex;return n<T.length&&(H=T.slice(n),Le[se]?Le[se]+=H:Le[++se]=H),Le.length<2?dt[0]?function(f){return function(T){return f(T)+""}}(dt[0].x):function(f){return function(){return f}}(T):(T=dt.length,function(pt){for(var Ht,Dt=0;Dt<T;++Dt)Le[(Ht=dt[Dt]).i]=Ht.x(pt);return Le.join("")})}function ei(f,T){T||(T=[]);var R,n=f?Math.min(T.length,f.length):0,d=T.slice();return function(H){for(R=0;R<n;++R)d[R]=f[R]*(1-H)+T[R]*H;return d}}function Wt(f,T){var d,n=typeof T;return null==T||"boolean"===n?Nr(T):("number"===n?_e:"string"===n?(d=Zr(T))?(T=d,fa):xt:T instanceof Zr?fa:T instanceof Date?Xe:function(f){return ArrayBuffer.isView(f)&&!(f instanceof DataView)}(T)?ei:Array.isArray(T)?Wa:"function"!=typeof T.valueOf&&"function"!=typeof T.toString||isNaN(T)?Q:_e)(f,T)}var Bn,Gn,vn=0,wn=0,Qi=0,ma=0,Lr=0,us=0,Ya="object"==typeof performance&&performance.now?performance:Date,ki="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(f){setTimeout(f,17)};function Fn(){return Lr||(ki(fs),Lr=Ya.now()+us)}function fs(){Lr=0}function cr(){this._call=this._time=this._next=null}function js(f,T,n){var d=new cr;return d.restart(f,T,n),d}function bt(){Lr=(ma=Ya.now())+us,vn=wn=0;try{!function(){Fn(),++vn;for(var T,f=Bn;f;)(T=Lr-f._time)>=0&&f._call.call(null,T),f=f._next;--vn}()}finally{vn=0,function(){for(var f,n,T=Bn,d=1/0;T;)T._call?(d>T._time&&(d=T._time),f=T,T=T._next):(n=T._next,T._next=null,T=f?f._next=n:Bn=n);Gn=f,je(d)}(),Lr=0}}function ie(){var f=Ya.now(),T=f-ma;T>1e3&&(us-=T,ma=f)}function je(f){vn||(wn&&(wn=clearTimeout(wn)),f-Lr>24?(f<1/0&&(wn=setTimeout(bt,f-Ya.now()-us)),Qi&&(Qi=clearInterval(Qi))):(Qi||(ma=Ya.now(),Qi=setInterval(ie,1e3)),vn=1,ki(bt)))}function Mt(f,T,n){var d=new cr;return d.restart(R=>{d.stop(),f(R+T)},T=null==T?0:+T,n),d}cr.prototype=js.prototype={constructor:cr,restart:function(f,T,n){if("function"!=typeof f)throw new TypeError("callback is not a function");n=(null==n?Fn():+n)+(null==T?0:+T),!this._next&&Gn!==this&&(Gn?Gn._next=this:Bn=this,Gn=this),this._call=f,this._time=n,je()},stop:function(){this._call&&(this._call=null,this._time=1/0,je())}};var kt=$i("start","end","cancel","interrupt"),Kt=[];function tt(f,T,n,d,R,H){var se=f.__transition;if(se){if(n in se)return}else f.__transition={};!function(f,T,n){var R,d=f.__transition;function se(pt){var Dt,Ht,Zt,ni;if(1!==n.state)return dt();for(Dt in d)if((ni=d[Dt]).name===n.name){if(3===ni.state)return Mt(se);4===ni.state?(ni.state=6,ni.timer.stop(),ni.on.call("interrupt",f,f.__data__,ni.index,ni.group),delete d[Dt]):+Dt<T&&(ni.state=6,ni.timer.stop(),ni.on.call("cancel",f,f.__data__,ni.index,ni.group),delete d[Dt])}if(Mt(function(){3===n.state&&(n.state=4,n.timer.restart(Le,n.delay,n.time),Le(pt))}),n.state=2,n.on.call("start",f,f.__data__,n.index,n.group),2===n.state){for(n.state=3,R=new Array(Zt=n.tween.length),Dt=0,Ht=-1;Dt<Zt;++Dt)(ni=n.tween[Dt].value.call(f,f.__data__,n.index,n.group))&&(R[++Ht]=ni);R.length=Ht+1}}function Le(pt){for(var Dt=pt<n.duration?n.ease.call(null,pt/n.duration):(n.timer.restart(dt),n.state=5,1),Ht=-1,Zt=R.length;++Ht<Zt;)R[Ht].call(f,Dt);5===n.state&&(n.on.call("end",f,f.__data__,n.index,n.group),dt())}function dt(){for(var pt in n.state=6,n.timer.stop(),delete d[T],d)return;delete f.__transition}d[T]=n,n.timer=js(function(pt){n.state=1,n.timer.restart(se,n.delay,n.time),n.delay<=pt&&se(pt-n.delay)},0,n.time)}(f,n,{name:T,index:d,group:R,on:kt,tween:Kt,time:H.time,delay:H.delay,duration:H.duration,ease:H.ease,timer:null,state:0})}function Et(f,T){var n=zt(f,T);if(n.state>0)throw new Error("too late; already scheduled");return n}function It(f,T){var n=zt(f,T);if(n.state>3)throw new Error("too late; already running");return n}function zt(f,T){var n=f.__transition;if(!n||!(n=n[T]))throw new Error("transition not found");return n}var yn,Ei=180/Math.PI,ji={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function hn(f,T,n,d,R,H){var se,Le,dt;return(se=Math.sqrt(f*f+T*T))&&(f/=se,T/=se),(dt=f*n+T*d)&&(n-=f*dt,d-=T*dt),(Le=Math.sqrt(n*n+d*d))&&(n/=Le,d/=Le,dt/=Le),f*d<T*n&&(f=-f,T=-T,dt=-dt,se=-se),{translateX:R,translateY:H,rotate:Math.atan2(T,f)*Ei,skewX:Math.atan(dt)*Ei,scaleX:se,scaleY:Le}}function Mr(f,T,n,d){function R(pt){return pt.length?pt.pop()+" ":""}return function(pt,Dt){var Ht=[],Zt=[];return pt=f(pt),Dt=f(Dt),function(pt,Dt,Ht,Zt,ni,bi){if(pt!==Ht||Dt!==Zt){var Hi=ni.push("translate(",null,T,null,n);bi.push({i:Hi-4,x:_e(pt,Ht)},{i:Hi-2,x:_e(Dt,Zt)})}else(Ht||Zt)&&ni.push("translate("+Ht+T+Zt+n)}(pt.translateX,pt.translateY,Dt.translateX,Dt.translateY,Ht,Zt),function(pt,Dt,Ht,Zt){pt!==Dt?(pt-Dt>180?Dt+=360:Dt-pt>180&&(pt+=360),Zt.push({i:Ht.push(R(Ht)+"rotate(",null,d)-2,x:_e(pt,Dt)})):Dt&&Ht.push(R(Ht)+"rotate("+Dt+d)}(pt.rotate,Dt.rotate,Ht,Zt),function(pt,Dt,Ht,Zt){pt!==Dt?Zt.push({i:Ht.push(R(Ht)+"skewX(",null,d)-2,x:_e(pt,Dt)}):Dt&&Ht.push(R(Ht)+"skewX("+Dt+d)}(pt.skewX,Dt.skewX,Ht,Zt),function(pt,Dt,Ht,Zt,ni,bi){if(pt!==Ht||Dt!==Zt){var Hi=ni.push(R(ni)+"scale(",null,",",null,")");bi.push({i:Hi-4,x:_e(pt,Ht)},{i:Hi-2,x:_e(Dt,Zt)})}else(1!==Ht||1!==Zt)&&ni.push(R(ni)+"scale("+Ht+","+Zt+")")}(pt.scaleX,pt.scaleY,Dt.scaleX,Dt.scaleY,Ht,Zt),pt=Dt=null,function(ni){for(var hi,bi=-1,Hi=Zt.length;++bi<Hi;)Ht[(hi=Zt[bi]).i]=hi.x(ni);return Ht.join("")}}}var Or=Mr(function(f){const T=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(f+"");return T.isIdentity?ji:hn(T.a,T.b,T.c,T.d,T.e,T.f)},"px, ","px)","deg)"),wr=Mr(function(f){return null!=f&&(yn||(yn=document.createElementNS("http://www.w3.org/2000/svg","g")),yn.setAttribute("transform",f),f=yn.transform.baseVal.consolidate())?hn((f=f.matrix).a,f.b,f.c,f.d,f.e,f.f):ji},", ",")",")");function Yn(f,T){var n,d;return function(){var R=It(this,f),H=R.tween;if(H!==n)for(var se=0,Le=(d=n=H).length;se<Le;++se)if(d[se].name===T){(d=d.slice()).splice(se,1);break}R.tween=d}}function mr(f,T,n){var d,R;if("function"!=typeof n)throw new Error;return function(){var H=It(this,f),se=H.tween;if(se!==d){R=(d=se).slice();for(var Le={name:T,value:n},dt=0,pt=R.length;dt<pt;++dt)if(R[dt].name===T){R[dt]=Le;break}dt===pt&&R.push(Le)}H.tween=R}}function an(f,T,n){var d=f._id;return f.each(function(){var R=It(this,d);(R.value||(R.value={}))[T]=n.apply(this,arguments)}),function(R){return zt(R,d).value[T]}}function fn(f,T){var n;return("number"==typeof T?_e:T instanceof Zr?fa:(n=Zr(T))?(T=n,fa):xt)(f,T)}function Rn(f){return function(){this.removeAttribute(f)}}function Pn(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Da(f,T,n){var d,H,R=n+"";return function(){var se=this.getAttribute(f);return se===R?null:se===d?H:H=T(d=se,n)}}function Xr(f,T,n){var d,H,R=n+"";return function(){var se=this.getAttributeNS(f.space,f.local);return se===R?null:se===d?H:H=T(d=se,n)}}function ca(f,T,n){var d,R,H;return function(){var se,dt,Le=n(this);return null==Le?void this.removeAttribute(f):(se=this.getAttribute(f))===(dt=Le+"")?null:se===d&&dt===R?H:(R=dt,H=T(d=se,Le))}}function Wn(f,T,n){var d,R,H;return function(){var se,dt,Le=n(this);return null==Le?void this.removeAttributeNS(f.space,f.local):(se=this.getAttributeNS(f.space,f.local))===(dt=Le+"")?null:se===d&&dt===R?H:(R=dt,H=T(d=se,Le))}}function La(f,T){return function(n){this.setAttribute(f,T.call(this,n))}}function Rs(f,T){return function(n){this.setAttributeNS(f.space,f.local,T.call(this,n))}}function qs(f,T){var n,d;function R(){var H=T.apply(this,arguments);return H!==d&&(n=(d=H)&&Rs(f,H)),n}return R._value=T,R}function Ma(f,T){var n,d;function R(){var H=T.apply(this,arguments);return H!==d&&(n=(d=H)&&La(f,H)),n}return R._value=T,R}function Il(f,T){return function(){Et(this,f).delay=+T.apply(this,arguments)}}function Jo(f,T){return T=+T,function(){Et(this,f).delay=T}}function Cs(f,T){return function(){It(this,f).duration=+T.apply(this,arguments)}}function kl(f,T){return T=+T,function(){It(this,f).duration=T}}function e1(f,T){if("function"!=typeof T)throw new Error;return function(){It(this,f).ease=T}}function Nl(f,T,n){var d,R,H=function(f){return(f+"").trim().split(/^|\s+/).every(function(T){var n=T.indexOf(".");return n>=0&&(T=T.slice(0,n)),!T||"start"===T})}(T)?Et:It;return function(){var se=H(this,f),Le=se.on;Le!==d&&(R=(d=Le).copy()).on(T,n),se.on=R}}var n1=Ki.prototype.constructor;function Se(f){return function(){this.style.removeProperty(f)}}function qt(f,T,n){return function(d){this.style.setProperty(f,T.call(this,d),n)}}function ii(f,T,n){var d,R;function H(){var se=T.apply(this,arguments);return se!==R&&(d=(R=se)&&qt(f,se,n)),d}return H._value=T,H}function Xn(f){return function(T){this.textContent=f.call(this,T)}}function Hn(f){var T,n;function d(){var R=f.apply(this,arguments);return R!==n&&(T=(n=R)&&Xn(R)),T}return d._value=f,d}var Ps=0;function Fa(f,T,n,d){this._groups=f,this._parents=T,this._name=n,this._id=d}function ss(){return++Ps}var Ns=Ki.prototype;Fa.prototype=function(f){return Ki().transition(f)}.prototype={constructor:Fa,select:function(f){var T=this._name,n=this._id;"function"!=typeof f&&(f=o(f));for(var d=this._groups,R=d.length,H=new Array(R),se=0;se<R;++se)for(var Dt,Ht,Le=d[se],dt=Le.length,pt=H[se]=new Array(dt),Zt=0;Zt<dt;++Zt)(Dt=Le[Zt])&&(Ht=f.call(Dt,Dt.__data__,Zt,Le))&&("__data__"in Dt&&(Ht.__data__=Dt.__data__),pt[Zt]=Ht,tt(pt[Zt],T,n,Zt,pt,zt(Dt,n)));return new Fa(H,this._parents,T,n)},selectAll:function(f){var T=this._name,n=this._id;"function"!=typeof f&&(f=E(f));for(var d=this._groups,R=d.length,H=[],se=[],Le=0;Le<R;++Le)for(var Dt,dt=d[Le],pt=dt.length,Ht=0;Ht<pt;++Ht)if(Dt=dt[Ht]){for(var ni,Zt=f.call(Dt,Dt.__data__,Ht,dt),bi=zt(Dt,n),Hi=0,hi=Zt.length;Hi<hi;++Hi)(ni=Zt[Hi])&&tt(ni,T,n,Hi,Zt,bi);H.push(Zt),se.push(Dt)}return new Fa(H,se,T,n)},filter:function(f){"function"!=typeof f&&(f=V(f));for(var T=this._groups,n=T.length,d=new Array(n),R=0;R<n;++R)for(var dt,H=T[R],se=H.length,Le=d[R]=[],pt=0;pt<se;++pt)(dt=H[pt])&&f.call(dt,dt.__data__,pt,H)&&Le.push(dt);return new Fa(d,this._parents,this._name,this._id)},merge:function(f){if(f._id!==this._id)throw new Error;for(var T=this._groups,n=f._groups,d=T.length,H=Math.min(d,n.length),se=new Array(d),Le=0;Le<H;++Le)for(var Zt,dt=T[Le],pt=n[Le],Dt=dt.length,Ht=se[Le]=new Array(Dt),ni=0;ni<Dt;++ni)(Zt=dt[ni]||pt[ni])&&(Ht[ni]=Zt);for(;Le<d;++Le)se[Le]=T[Le];return new Fa(se,this._parents,this._name,this._id)},selection:function(){return new n1(this._groups,this._parents)},transition:function(){for(var f=this._name,T=this._id,n=ss(),d=this._groups,R=d.length,H=0;H<R;++H)for(var dt,se=d[H],Le=se.length,pt=0;pt<Le;++pt)if(dt=se[pt]){var Dt=zt(dt,T);tt(dt,f,n,pt,se,{time:Dt.time+Dt.delay+Dt.duration,delay:0,duration:Dt.duration,ease:Dt.ease})}return new Fa(d,this._parents,f,n)},call:Ns.call,nodes:Ns.nodes,node:Ns.node,size:Ns.size,empty:Ns.empty,each:Ns.each,on:function(f,T){var n=this._id;return arguments.length<2?zt(this.node(),n).on.on(f):this.each(Nl(n,f,T))},attr:function(f,T){var n=ae(f),d="transform"===n?wr:fn;return this.attrTween(f,"function"==typeof T?(n.local?Wn:ca)(n,d,an(this,"attr."+f,T)):null==T?(n.local?Pn:Rn)(n):(n.local?Xr:Da)(n,d,T))},attrTween:function(f,T){var n="attr."+f;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==T)return this.tween(n,null);if("function"!=typeof T)throw new Error;var d=ae(f);return this.tween(n,(d.local?qs:Ma)(d,T))},style:function(f,T,n){var d="transform"==(f+="")?Or:fn;return null==T?this.styleTween(f,function(f,T){var n,d,R;return function(){var H=ht(this,f),se=(this.style.removeProperty(f),ht(this,f));return H===se?null:H===n&&se===d?R:R=T(n=H,d=se)}}(f,d)).on("end.style."+f,Se(f)):"function"==typeof T?this.styleTween(f,function(f,T,n){var d,R,H;return function(){var se=ht(this,f),Le=n(this),dt=Le+"";return null==Le&&(this.style.removeProperty(f),dt=Le=ht(this,f)),se===dt?null:se===d&&dt===R?H:(R=dt,H=T(d=se,Le))}}(f,d,an(this,"style."+f,T))).each(function(f,T){var n,d,R,Le,H="style."+T,se="end."+H;return function(){var dt=It(this,f),pt=dt.on,Dt=null==dt.value[H]?Le||(Le=Se(T)):void 0;(pt!==n||R!==Dt)&&(d=(n=pt).copy()).on(se,R=Dt),dt.on=d}}(this._id,f)):this.styleTween(f,function(f,T,n){var d,H,R=n+"";return function(){var se=ht(this,f);return se===R?null:se===d?H:H=T(d=se,n)}}(f,d,T),n).on("end.style."+f,null)},styleTween:function(f,T,n){var d="style."+(f+="");if(arguments.length<2)return(d=this.tween(d))&&d._value;if(null==T)return this.tween(d,null);if("function"!=typeof T)throw new Error;return this.tween(d,ii(f,T,null==n?"":n))},text:function(f){return this.tween("text","function"==typeof f?function(f){return function(){var T=f(this);this.textContent=null==T?"":T}}(an(this,"text",f)):function(f){return function(){this.textContent=f}}(null==f?"":f+""))},textTween:function(f){var T="text";if(arguments.length<1)return(T=this.tween(T))&&T._value;if(null==f)return this.tween(T,null);if("function"!=typeof f)throw new Error;return this.tween(T,Hn(f))},remove:function(){return this.on("end.remove",(f=this._id,function(){var T=this.parentNode;for(var n in this.__transition)if(+n!==f)return;T&&T.removeChild(this)}));var f},tween:function(f,T){var n=this._id;if(f+="",arguments.length<2){for(var se,d=zt(this.node(),n).tween,R=0,H=d.length;R<H;++R)if((se=d[R]).name===f)return se.value;return null}return this.each((null==T?Yn:mr)(n,f,T))},delay:function(f){var T=this._id;return arguments.length?this.each(("function"==typeof f?Il:Jo)(T,f)):zt(this.node(),T).delay},duration:function(f){var T=this._id;return arguments.length?this.each(("function"==typeof f?Cs:kl)(T,f)):zt(this.node(),T).duration},ease:function(f){var T=this._id;return arguments.length?this.each(e1(T,f)):zt(this.node(),T).ease},easeVarying:function(f){if("function"!=typeof f)throw new Error;return this.each(function(f,T){return function(){var n=T.apply(this,arguments);if("function"!=typeof n)throw new Error;It(this,f).ease=n}}(this._id,f))},end:function(){var f,T,n=this,d=n._id,R=n.size();return new Promise(function(H,se){var Le={value:se},dt={value:function(){0==--R&&H()}};n.each(function(){var pt=It(this,d),Dt=pt.on;Dt!==f&&((T=(f=Dt).copy())._.cancel.push(Le),T._.interrupt.push(Le),T._.end.push(dt)),pt.on=T}),0===R&&H()})},[Symbol.iterator]:Ns[Symbol.iterator]};var Fo={time:null,delay:0,duration:250,ease:function(f){return((f*=2)<=1?f*f*f:(f-=2)*f*f+2)/2}};function Bo(f,T){for(var n;!(n=f.__transition)||!(n=n[T]);)if(!(f=f.parentNode))throw new Error(`transition ${T} not found`);return n}Ki.prototype.interrupt=function(f){return this.each(function(){!function(f,T){var d,R,se,n=f.__transition,H=!0;if(n){for(se in T=null==T?null:T+"",n)(d=n[se]).name===T?(R=d.state>2&&d.state<5,d.state=6,d.timer.stop(),d.on.call(R?"interrupt":"cancel",f,f.__data__,d.index,d.group),delete n[se]):H=!1;H&&delete f.__transition}}(this,f)})},Ki.prototype.transition=function(f){var T,n;f instanceof Fa?(T=f._id,f=f._name):(T=ss(),(n=Fo).time=Fn(),f=null==f?null:f+"");for(var d=this._groups,R=d.length,H=0;H<R;++H)for(var dt,se=d[H],Le=se.length,pt=0;pt<Le;++pt)(dt=se[pt])&&tt(dt,f,T,pt,se,n||Bo(dt,T));return new Fa(d,this._parents,f,T)};Math;function Ks(f){return{type:f}}function al(f,T){return f<T?-1:f>T?1:f>=T?0:NaN}function mc(f){let T=f,n=f;function d(se,Le,dt,pt){for(null==dt&&(dt=0),null==pt&&(pt=se.length);dt<pt;){const Dt=dt+pt>>>1;n(se[Dt],Le)<0?dt=Dt+1:pt=Dt}return dt}return 1===f.length&&(T=(se,Le)=>f(se)-Le,n=function(f){return(T,n)=>al(f(T),n)}(f)),{left:d,center:function(se,Le,dt,pt){null==dt&&(dt=0),null==pt&&(pt=se.length);const Dt=d(se,Le,dt,pt-1);return Dt>dt&&T(se[Dt-1],Le)>-T(se[Dt],Le)?Dt-1:Dt},right:function(se,Le,dt,pt){for(null==dt&&(dt=0),null==pt&&(pt=se.length);dt<pt;){const Dt=dt+pt>>>1;n(se[Dt],Le)>0?pt=Dt:dt=Dt+1}return dt}}}["w","e"].map(Ks),["n","s"].map(Ks),["n","w","e","s","nw","ne","sw","se"].map(Ks);var gc=Math.sqrt(50),_c=Math.sqrt(10),vc=Math.sqrt(2);function Bl(f,T,n){var d=(T-f)/Math.max(0,n),R=Math.floor(Math.log(d)/Math.LN10),H=d/Math.pow(10,R);return R>=0?(H>=gc?10:H>=_c?5:H>=vc?2:1)*Math.pow(10,R):-Math.pow(10,-R)/(H>=gc?10:H>=_c?5:H>=vc?2:1)}function Uo(f,T,n){var d=Math.abs(T-f)/Math.max(0,n),R=Math.pow(10,Math.floor(Math.log(d)/Math.LN10)),H=d/R;return H>=gc?R*=10:H>=_c?R*=5:H>=vc&&(R*=2),T<f?-R:R}const lo=1e3,Ba=6e4,Ms=60*Ba,Hs=24*Ms,yc=7*Hs,p1=30*Hs,bc=365*Hs;var Hl=new Date,xc=new Date;function $r(f,T,n,d){function R(H){return f(H=0===arguments.length?new Date:new Date(+H)),H}return R.floor=function(H){return f(H=new Date(+H)),H},R.ceil=function(H){return f(H=new Date(H-1)),T(H,1),f(H),H},R.round=function(H){var se=R(H),Le=R.ceil(H);return H-se<Le-H?se:Le},R.offset=function(H,se){return T(H=new Date(+H),null==se?1:Math.floor(se)),H},R.range=function(H,se,Le){var pt,dt=[];if(H=R.ceil(H),Le=null==Le?1:Math.floor(Le),!(H<se&&Le>0))return dt;do{dt.push(pt=new Date(+H)),T(H,Le),f(H)}while(pt<H&&H<se);return dt},R.filter=function(H){return $r(function(se){if(se>=se)for(;f(se),!H(se);)se.setTime(se-1)},function(se,Le){if(se>=se)if(Le<0)for(;++Le<=0;)for(;T(se,-1),!H(se););else for(;--Le>=0;)for(;T(se,1),!H(se););})},n&&(R.count=function(H,se){return Hl.setTime(+H),xc.setTime(+se),f(Hl),f(xc),Math.floor(n(Hl,xc))},R.every=function(H){return H=Math.floor(H),isFinite(H)&&H>0?H>1?R.filter(d?function(se){return d(se)%H==0}:function(se){return R.count(0,se)%H==0}):R:null}),R}var sl=$r(function(){},function(f,T){f.setTime(+f+T)},function(f,T){return T-f});sl.every=function(f){return f=Math.floor(f),isFinite(f)&&f>0?f>1?$r(function(T){T.setTime(Math.floor(T/f)*f)},function(T,n){T.setTime(+T+n*f)},function(T,n){return(n-T)/f}):sl:null};const v0=sl;const ol=$r(function(f){f.setTime(f-f.getMilliseconds())},function(f,T){f.setTime(+f+T*lo)},function(f,T){return(T-f)/lo},function(f){return f.getUTCSeconds()});const g1=$r(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*lo)},function(f,T){f.setTime(+f+T*Ba)},function(f,T){return(T-f)/Ba},function(f){return f.getMinutes()});const yo=$r(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*lo-f.getMinutes()*Ba)},function(f,T){f.setTime(+f+T*Ms)},function(f,T){return(T-f)/Ms},function(f){return f.getHours()});const zs=$r(f=>f.setHours(0,0,0,0),(f,T)=>f.setDate(f.getDate()+T),(f,T)=>(T-f-(T.getTimezoneOffset()-f.getTimezoneOffset())*Ba)/Hs,f=>f.getDate()-1);function Qs(f){return $r(function(T){T.setDate(T.getDate()-(T.getDay()+7-f)%7),T.setHours(0,0,0,0)},function(T,n){T.setDate(T.getDate()+7*n)},function(T,n){return(n-T-(n.getTimezoneOffset()-T.getTimezoneOffset())*Ba)/yc})}var Vo=Qs(0),xo=Qs(1),co=(Qs(2),Qs(3),Qs(4));const En=(Qs(5),Qs(6),$r(function(f){f.setDate(1),f.setHours(0,0,0,0)},function(f,T){f.setMonth(f.getMonth()+T)},function(f,T){return T.getMonth()-f.getMonth()+12*(T.getFullYear()-f.getFullYear())},function(f){return f.getMonth()}));var In=$r(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,T){f.setFullYear(f.getFullYear()+T)},function(f,T){return T.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});In.every=function(f){return isFinite(f=Math.floor(f))&&f>0?$r(function(T){T.setFullYear(Math.floor(T.getFullYear()/f)*f),T.setMonth(0,1),T.setHours(0,0,0,0)},function(T,n){T.setFullYear(T.getFullYear()+n*f)}):null};const gr=In;const os=$r(function(f){f.setUTCSeconds(0,0)},function(f,T){f.setTime(+f+T*Ba)},function(f,T){return(T-f)/Ba},function(f){return f.getUTCMinutes()});const cl=$r(function(f){f.setUTCMinutes(0,0,0)},function(f,T){f.setTime(+f+T*Ms)},function(f,T){return(T-f)/Ms},function(f){return f.getUTCHours()});const C0=$r(function(f){f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCDate(f.getUTCDate()+T)},function(f,T){return(T-f)/Hs},function(f){return f.getUTCDate()-1});function hl(f){return $r(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-f)%7),T.setUTCHours(0,0,0,0)},function(T,n){T.setUTCDate(T.getUTCDate()+7*n)},function(T,n){return(n-T)/yc})}var M0=hl(0),_1=hl(1),dl=(hl(2),hl(3),hl(4));const B4=(hl(5),hl(6),$r(function(f){f.setUTCDate(1),f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCMonth(f.getUTCMonth()+T)},function(f,T){return T.getUTCMonth()-f.getUTCMonth()+12*(T.getUTCFullYear()-f.getUTCFullYear())},function(f){return f.getUTCMonth()}));var ul=$r(function(f){f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,T){f.setUTCFullYear(f.getUTCFullYear()+T)},function(f,T){return T.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});ul.every=function(f){return isFinite(f=Math.floor(f))&&f>0?$r(function(T){T.setUTCFullYear(Math.floor(T.getUTCFullYear()/f)*f),T.setUTCMonth(0,1),T.setUTCHours(0,0,0,0)},function(T,n){T.setUTCFullYear(T.getUTCFullYear()+n*f)}):null};const fl=ul;function Zl(f,T,n,d,R,H){const se=[[ol,1,lo],[ol,5,5e3],[ol,15,15e3],[ol,30,3e4],[H,1,Ba],[H,5,5*Ba],[H,15,15*Ba],[H,30,30*Ba],[R,1,Ms],[R,3,3*Ms],[R,6,6*Ms],[R,12,12*Ms],[d,1,Hs],[d,2,2*Hs],[n,1,yc],[T,1,p1],[T,3,3*p1],[f,1,bc]];function dt(pt,Dt,Ht){const Zt=Math.abs(Dt-pt)/Ht,ni=mc(([,,hi])=>hi).right(se,Zt);if(ni===se.length)return f.every(Uo(pt/bc,Dt/bc,Ht));if(0===ni)return v0.every(Math.max(Uo(pt,Dt,Ht),1));const[bi,Hi]=se[Zt/se[ni-1][2]<se[ni][2]/Zt?ni-1:ni];return bi.every(Hi)}return[function(pt,Dt,Ht){const Zt=Dt<pt;Zt&&([pt,Dt]=[Dt,pt]);const ni=Ht&&"function"==typeof Ht.range?Ht:dt(pt,Dt,Ht),bi=ni?ni.range(pt,+Dt+1):[];return Zt?bi.reverse():bi},dt]}const[Qu,Ju]=Zl(fl,B4,M0,C0,cl,os),[ph,z4]=Zl(gr,En,Vo,zs,yo,g1);function mh(f){if(0<=f.y&&f.y<100){var T=new Date(-1,f.m,f.d,f.H,f.M,f.S,f.L);return T.setFullYear(f.y),T}return new Date(f.y,f.m,f.d,f.H,f.M,f.S,f.L)}function gh(f){if(0<=f.y&&f.y<100){var T=new Date(Date.UTC(-1,f.m,f.d,f.H,f.M,f.S,f.L));return T.setUTCFullYear(f.y),T}return new Date(Date.UTC(f.y,f.m,f.d,f.H,f.M,f.S,f.L))}function pl(f,T,n){return{y:f,m:T,d:n,H:0,M:0,S:0,L:0}}var v1={"-":"",_:" ",0:"0"},Ka=/^\s*\d+/,U4=/^%/,_h=/[\\^$*+?|[\]().{}]/g;function ar(f,T,n){var d=f<0?"-":"",R=(d?-f:f)+"",H=R.length;return d+(H<n?new Array(n-H+1).join(T)+R:R)}function Xu(f){return f.replace(_h,"\\$&")}function Ac(f){return new RegExp("^(?:"+f.map(Xu).join("|")+")","i")}function Ec(f){return new Map(f.map((T,n)=>[T.toLowerCase(),n]))}function vh(f,T,n){var d=Ka.exec(T.slice(n,n+1));return d?(f.w=+d[0],n+d[0].length):-1}function y1(f,T,n){var d=Ka.exec(T.slice(n,n+1));return d?(f.u=+d[0],n+d[0].length):-1}function yh(f,T,n){var d=Ka.exec(T.slice(n,n+2));return d?(f.U=+d[0],n+d[0].length):-1}function A0(f,T,n){var d=Ka.exec(T.slice(n,n+2));return d?(f.V=+d[0],n+d[0].length):-1}function $u(f,T,n){var d=Ka.exec(T.slice(n,n+2));return d?(f.W=+d[0],n+d[0].length):-1}function ha(f,T,n){var d=Ka.exec(T.slice(n,n+4));return d?(f.y=+d[0],n+d[0].length):-1}function E0(f,T,n){var d=Ka.exec(T.slice(n,n+2));return d?(f.y=+d[0]+(+d[0]>68?1900:2e3),n+d[0].length):-1}function ef(f,T,n){var d=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(T.slice(n,n+6));return d?(f.Z=d[1]?0:-(d[2]+(d[3]||"00")),n+d[0].length):-1}function T0(f,T,n){var d=Ka.exec(T.slice(n,n+1));return d?(f.q=3*d[0]-3,n+d[0].length):-1}function bh(f,T,n){var d=Ka.exec(T.slice(n,n+2));return d?(f.m=d[0]-1,n+d[0].length):-1}function xh(f,T,n){var d=Ka.exec(T.slice(n,n+2));return d?(f.d=+d[0],n+d[0].length):-1}function tf(f,T,n){var d=Ka.exec(T.slice(n,n+3));return d?(f.m=0,f.d=+d[0],n+d[0].length):-1}function Ch(f,T,n){var d=Ka.exec(T.slice(n,n+2));return d?(f.H=+d[0],n+d[0].length):-1}function nf(f,T,n){var d=Ka.exec(T.slice(n,n+2));return d?(f.M=+d[0],n+d[0].length):-1}function rf(f,T,n){var d=Ka.exec(T.slice(n,n+2));return d?(f.S=+d[0],n+d[0].length):-1}function Z4(f,T,n){var d=Ka.exec(T.slice(n,n+3));return d?(f.L=+d[0],n+d[0].length):-1}function V4(f,T,n){var d=Ka.exec(T.slice(n,n+6));return d?(f.L=Math.floor(d[0]/1e3),n+d[0].length):-1}function Tc(f,T,n){var d=U4.exec(T.slice(n,n+1));return d?n+d[0].length:-1}function gs(f,T,n){var d=Ka.exec(T.slice(n));return d?(f.Q=+d[0],n+d[0].length):-1}function S0(f,T,n){var d=Ka.exec(T.slice(n));return d?(f.s=+d[0],n+d[0].length):-1}function D0(f,T){return ar(f.getDate(),T,2)}function Mh(f,T){return ar(f.getHours(),T,2)}function ls(f,T){return ar(f.getHours()%12||12,T,2)}function Sc(f,T){return ar(1+zs.count(gr(f),f),T,3)}function b1(f,T){return ar(f.getMilliseconds(),T,3)}function af(f,T){return b1(f,T)+"000"}function sf(f,T){return ar(f.getMonth()+1,T,2)}function wh(f,T){return ar(f.getMinutes(),T,2)}function lf(f,T){return ar(f.getSeconds(),T,2)}function Ah(f){var T=f.getDay();return 0===T?7:T}function Eh(f,T){return ar(Vo.count(gr(f)-1,f),T,2)}function L0(f){var T=f.getDay();return T>=4||0===T?co(f):co.ceil(f)}function cf(f,T){return f=L0(f),ar(co.count(gr(f),f)+(4===gr(f).getDay()),T,2)}function hf(f){return f.getDay()}function df(f,T){return ar(xo.count(gr(f)-1,f),T,2)}function O0(f,T){return ar(f.getFullYear()%100,T,2)}function uf(f,T){return ar((f=L0(f)).getFullYear()%100,T,2)}function ff(f,T){return ar(f.getFullYear()%1e4,T,4)}function G4(f,T){var n=f.getDay();return ar((f=n>=4||0===n?co(f):co.ceil(f)).getFullYear()%1e4,T,4)}function I0(f){var T=f.getTimezoneOffset();return(T>0?"-":(T*=-1,"+"))+ar(T/60|0,"0",2)+ar(T%60,"0",2)}function Th(f,T){return ar(f.getUTCDate(),T,2)}function pf(f,T){return ar(f.getUTCHours(),T,2)}function Dc(f,T){return ar(f.getUTCHours()%12||12,T,2)}function mf(f,T){return ar(1+C0.count(fl(f),f),T,3)}function Sh(f,T){return ar(f.getUTCMilliseconds(),T,3)}function gf(f,T){return Sh(f,T)+"000"}function _f(f,T){return ar(f.getUTCMonth()+1,T,2)}function vf(f,T){return ar(f.getUTCMinutes(),T,2)}function Dh(f,T){return ar(f.getUTCSeconds(),T,2)}function yf(f){var T=f.getUTCDay();return 0===T?7:T}function bf(f,T){return ar(M0.count(fl(f)-1,f),T,2)}function Lh(f){var T=f.getUTCDay();return T>=4||0===T?dl(f):dl.ceil(f)}function xf(f,T){return f=Lh(f),ar(dl.count(fl(f),f)+(4===fl(f).getUTCDay()),T,2)}function Oh(f){return f.getUTCDay()}function Ih(f,T){return ar(_1.count(fl(f)-1,f),T,2)}function Cf(f,T){return ar(f.getUTCFullYear()%100,T,2)}function Mf(f,T){return ar((f=Lh(f)).getUTCFullYear()%100,T,2)}function Vl(f,T){return ar(f.getUTCFullYear()%1e4,T,4)}function ho(f,T){var n=f.getUTCDay();return ar((f=n>=4||0===n?dl(f):dl.ceil(f)).getUTCFullYear()%1e4,T,4)}function W4(){return"+0000"}function wf(){return"%"}function k0(f){return+f}function Af(f){return Math.floor(+f/1e3)}function R0(f){return null===f?NaN:+f}(function(f){var T=f.dateTime,n=f.date,d=f.time,R=f.periods,H=f.days,se=f.shortDays,Le=f.months,dt=f.shortMonths,pt=Ac(R),Dt=Ec(R),Ht=Ac(H),Zt=Ec(H),ni=Ac(se),bi=Ec(se),Hi=Ac(Le),hi=Ec(Le),Ui=Ac(dt),Gi=Ec(dt),qi={a:function(ln){return se[ln.getDay()]},A:function(ln){return H[ln.getDay()]},b:function(ln){return dt[ln.getMonth()]},B:function(ln){return Le[ln.getMonth()]},c:null,d:D0,e:D0,f:af,g:uf,G:G4,H:Mh,I:ls,j:Sc,L:b1,m:sf,M:wh,p:function(ln){return R[+(ln.getHours()>=12)]},q:function(ln){return 1+~~(ln.getMonth()/3)},Q:k0,s:Af,S:lf,u:Ah,U:Eh,V:cf,w:hf,W:df,x:null,X:null,y:O0,Y:ff,Z:I0,"%":wf},cn={a:function(ln){return se[ln.getUTCDay()]},A:function(ln){return H[ln.getUTCDay()]},b:function(ln){return dt[ln.getUTCMonth()]},B:function(ln){return Le[ln.getUTCMonth()]},c:null,d:Th,e:Th,f:gf,g:Mf,G:ho,H:pf,I:Dc,j:mf,L:Sh,m:_f,M:vf,p:function(ln){return R[+(ln.getUTCHours()>=12)]},q:function(ln){return 1+~~(ln.getUTCMonth()/3)},Q:k0,s:Af,S:Dh,u:yf,U:bf,V:xf,w:Oh,W:Ih,x:null,X:null,y:Cf,Y:Vl,Z:W4,"%":wf},un={a:function(ln,zn,ir){var Yi=ni.exec(zn.slice(ir));return Yi?(ln.w=bi.get(Yi[0].toLowerCase()),ir+Yi[0].length):-1},A:function(ln,zn,ir){var Yi=Ht.exec(zn.slice(ir));return Yi?(ln.w=Zt.get(Yi[0].toLowerCase()),ir+Yi[0].length):-1},b:function(ln,zn,ir){var Yi=Ui.exec(zn.slice(ir));return Yi?(ln.m=Gi.get(Yi[0].toLowerCase()),ir+Yi[0].length):-1},B:function(ln,zn,ir){var Yi=Hi.exec(zn.slice(ir));return Yi?(ln.m=hi.get(Yi[0].toLowerCase()),ir+Yi[0].length):-1},c:function(ln,zn,ir){return Qn(ln,T,zn,ir)},d:xh,e:xh,f:V4,g:E0,G:ha,H:Ch,I:Ch,j:tf,L:Z4,m:bh,M:nf,p:function(ln,zn,ir){var Yi=pt.exec(zn.slice(ir));return Yi?(ln.p=Dt.get(Yi[0].toLowerCase()),ir+Yi[0].length):-1},q:T0,Q:gs,s:S0,S:rf,u:y1,U:yh,V:A0,w:vh,W:$u,x:function(ln,zn,ir){return Qn(ln,n,zn,ir)},X:function(ln,zn,ir){return Qn(ln,d,zn,ir)},y:E0,Y:ha,Z:ef,"%":Tc};function tn(ln,zn){return function(ir){var ks,Un,va,Yi=[],Ta=-1,kr=0,Is=ln.length;for(ir instanceof Date||(ir=new Date(+ir));++Ta<Is;)37===ln.charCodeAt(Ta)&&(Yi.push(ln.slice(kr,Ta)),null!=(Un=v1[ks=ln.charAt(++Ta)])?ks=ln.charAt(++Ta):Un="e"===ks?" ":"0",(va=zn[ks])&&(ks=va(ir,Un)),Yi.push(ks),kr=Ta+1);return Yi.push(ln.slice(kr,Ta)),Yi.join("")}}function dr(ln,zn){return function(ir){var kr,Is,Yi=pl(1900,void 0,1);if(Qn(Yi,ln,ir+="",0)!=ir.length)return null;if("Q"in Yi)return new Date(Yi.Q);if("s"in Yi)return new Date(1e3*Yi.s+("L"in Yi?Yi.L:0));if(zn&&!("Z"in Yi)&&(Yi.Z=0),"p"in Yi&&(Yi.H=Yi.H%12+12*Yi.p),void 0===Yi.m&&(Yi.m="q"in Yi?Yi.q:0),"V"in Yi){if(Yi.V<1||Yi.V>53)return null;"w"in Yi||(Yi.w=1),"Z"in Yi?(Is=(kr=gh(pl(Yi.y,0,1))).getUTCDay(),kr=Is>4||0===Is?_1.ceil(kr):_1(kr),kr=C0.offset(kr,7*(Yi.V-1)),Yi.y=kr.getUTCFullYear(),Yi.m=kr.getUTCMonth(),Yi.d=kr.getUTCDate()+(Yi.w+6)%7):(Is=(kr=mh(pl(Yi.y,0,1))).getDay(),kr=Is>4||0===Is?xo.ceil(kr):xo(kr),kr=zs.offset(kr,7*(Yi.V-1)),Yi.y=kr.getFullYear(),Yi.m=kr.getMonth(),Yi.d=kr.getDate()+(Yi.w+6)%7)}else("W"in Yi||"U"in Yi)&&("w"in Yi||(Yi.w="u"in Yi?Yi.u%7:"W"in Yi?1:0),Is="Z"in Yi?gh(pl(Yi.y,0,1)).getUTCDay():mh(pl(Yi.y,0,1)).getDay(),Yi.m=0,Yi.d="W"in Yi?(Yi.w+6)%7+7*Yi.W-(Is+5)%7:Yi.w+7*Yi.U-(Is+6)%7);return"Z"in Yi?(Yi.H+=Yi.Z/100|0,Yi.M+=Yi.Z%100,gh(Yi)):mh(Yi)}}function Qn(ln,zn,ir,Yi){for(var ks,Un,Ta=0,kr=zn.length,Is=ir.length;Ta<kr;){if(Yi>=Is)return-1;if(37===(ks=zn.charCodeAt(Ta++))){if(ks=zn.charAt(Ta++),!(Un=un[ks in v1?zn.charAt(Ta++):ks])||(Yi=Un(ln,ir,Yi))<0)return-1}else if(ks!=ir.charCodeAt(Yi++))return-1}return Yi}qi.x=tn(n,qi),qi.X=tn(d,qi),qi.c=tn(T,qi),cn.x=tn(n,cn),cn.X=tn(d,cn),cn.c=tn(T,cn)})({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const P0=mc(al).right,ml=(mc(R0),P0);function N0(f,T){return f=+f,T=+T,function(n){return Math.round(f*(1-n)+T*n)}}function Sf(f){return+f}var w1=[0,1];function Gl(f){return f}function F0(f,T){return(T-=f=+f)?function(n){return(n-f)/T}:function(f){return function(){return f}}(isNaN(T)?NaN:.5)}function Lf(f,T,n){var d=f[0],R=f[1],H=T[0],se=T[1];return R<d?(d=F0(R,d),H=n(se,H)):(d=F0(d,R),H=n(H,se)),function(Le){return H(d(Le))}}function Of(f,T,n){var d=Math.min(f.length,T.length)-1,R=new Array(d),H=new Array(d),se=-1;for(f[d]<f[0]&&(f=f.slice().reverse(),T=T.slice().reverse());++se<d;)R[se]=F0(f[se],f[se+1]),H[se]=n(T[se],T[se+1]);return function(Le){var dt=ml(f,Le,1,d)-1;return H[dt](R[dt](Le))}}function Nh(f,T){return T.domain(f.domain()).range(f.range()).interpolate(f.interpolate()).clamp(f.clamp()).unknown(f.unknown())}function A1(){return function(){var d,R,H,Le,dt,pt,f=w1,T=w1,n=Wt,se=Gl;function Dt(){var Zt=Math.min(f.length,T.length);return se!==Gl&&(se=function(f,T){var n;return f>T&&(n=f,f=T,T=n),function(d){return Math.max(f,Math.min(T,d))}}(f[0],f[Zt-1])),Le=Zt>2?Of:Lf,dt=pt=null,Ht}function Ht(Zt){return null==Zt||isNaN(Zt=+Zt)?H:(dt||(dt=Le(f.map(d),T,n)))(d(se(Zt)))}return Ht.invert=function(Zt){return se(R((pt||(pt=Le(T,f.map(d),_e)))(Zt)))},Ht.domain=function(Zt){return arguments.length?(f=Array.from(Zt,Sf),Dt()):f.slice()},Ht.range=function(Zt){return arguments.length?(T=Array.from(Zt),Dt()):T.slice()},Ht.rangeRound=function(Zt){return T=Array.from(Zt),n=N0,Dt()},Ht.clamp=function(Zt){return arguments.length?(se=!!Zt||Gl,Dt()):se!==Gl},Ht.interpolate=function(Zt){return arguments.length?(n=Zt,Dt()):n},Ht.unknown=function(Zt){return arguments.length?(H=Zt,Ht):H},function(Zt,ni){return d=Zt,R=ni,Dt()}}()(Gl,Gl)}function gl(f,T){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(T).domain(f)}return this}var Ic,H0=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Oc(f){if(!(T=H0.exec(f)))throw new Error("invalid format: "+f);var T;return new E1({fill:T[1],align:T[2],sign:T[3],symbol:T[4],zero:T[5],width:T[6],comma:T[7],precision:T[8]&&T[8].slice(1),trim:T[9],type:T[10]})}function E1(f){this.fill=void 0===f.fill?" ":f.fill+"",this.align=void 0===f.align?">":f.align+"",this.sign=void 0===f.sign?"-":f.sign+"",this.symbol=void 0===f.symbol?"":f.symbol+"",this.zero=!!f.zero,this.width=void 0===f.width?void 0:+f.width,this.comma=!!f.comma,this.precision=void 0===f.precision?void 0:+f.precision,this.trim=!!f.trim,this.type=void 0===f.type?"":f.type+""}function S1(f,T){if((n=(f=T?f.toExponential(T-1):f.toExponential()).indexOf("e"))<0)return null;var n,d=f.slice(0,n);return[d.length>1?d[0]+d.slice(2):d,+f.slice(n+1)]}function _l(f){return(f=S1(Math.abs(f)))?f[1]:NaN}function Z0(f,T){var n=S1(f,T);if(!n)return f+"";var d=n[0],R=n[1];return R<0?"0."+new Array(-R).join("0")+d:d.length>R+1?d.slice(0,R+1)+"."+d.slice(R+1):d+new Array(R-d.length+2).join("0")}Oc.prototype=E1.prototype,E1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const L1={"%":(f,T)=>(100*f).toFixed(T),b:f=>Math.round(f).toString(2),c:f=>f+"",d:function(f){return Math.abs(f=Math.round(f))>=1e21?f.toLocaleString("en").replace(/,/g,""):f.toString(10)},e:(f,T)=>f.toExponential(T),f:(f,T)=>f.toFixed(T),g:(f,T)=>f.toPrecision(T),o:f=>Math.round(f).toString(8),p:(f,T)=>Z0(100*f,T),r:Z0,s:function(f,T){var n=S1(f,T);if(!n)return f+"";var d=n[0],R=n[1],H=R-(Ic=3*Math.max(-8,Math.min(8,Math.floor(R/3))))+1,se=d.length;return H===se?d:H>se?d+new Array(H-se+1).join("0"):H>0?d.slice(0,H)+"."+d.slice(H):"0."+new Array(1-H).join("0")+S1(f,Math.max(0,T+H-1))[0]},X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function V0(f){return f}var kc,G0,Zh,O1=Array.prototype.map,Wl=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Wh(f){var T=f.domain;return f.ticks=function(n){var d=T();return function(f,T,n){var d,H,se,Le,R=-1;if(n=+n,(f=+f)==(T=+T)&&n>0)return[f];if((d=T<f)&&(H=f,f=T,T=H),0===(Le=Bl(f,T,n))||!isFinite(Le))return[];if(Le>0){let dt=Math.round(f/Le),pt=Math.round(T/Le);for(dt*Le<f&&++dt,pt*Le>T&&--pt,se=new Array(H=pt-dt+1);++R<H;)se[R]=(dt+R)*Le}else{Le=-Le;let dt=Math.round(f*Le),pt=Math.round(T*Le);for(dt/Le<f&&++dt,pt/Le>T&&--pt,se=new Array(H=pt-dt+1);++R<H;)se[R]=(dt+R)/Le}return d&&se.reverse(),se}(d[0],d[d.length-1],null==n?10:n)},f.tickFormat=function(n,d){var R=T();return function(f,T,n,d){var H,R=Uo(f,T,n);switch((d=Oc(null==d?",f":d)).type){case"s":var se=Math.max(Math.abs(f),Math.abs(T));return null==d.precision&&!isNaN(H=function(f,T){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(_l(T)/3)))-_l(Math.abs(f)))}(R,se))&&(d.precision=H),Zh(d,se);case"":case"e":case"g":case"p":case"r":null==d.precision&&!isNaN(H=function(f,T){return f=Math.abs(f),T=Math.abs(T)-f,Math.max(0,_l(T)-_l(f))+1}(R,Math.max(Math.abs(f),Math.abs(T))))&&(d.precision=H-("e"===d.type));break;case"f":case"%":null==d.precision&&!isNaN(H=function(f){return Math.max(0,-_l(Math.abs(f)))}(R))&&(d.precision=H-2*("%"===d.type))}return G0(d)}(R[0],R[R.length-1],null==n?10:n,d)},f.nice=function(n){null==n&&(n=10);var dt,pt,d=T(),R=0,H=d.length-1,se=d[R],Le=d[H],Dt=10;for(Le<se&&(pt=se,se=Le,Le=pt,pt=R,R=H,H=pt);Dt-- >0;){if((pt=Bl(se,Le,n))===dt)return d[R]=se,d[H]=Le,T(d);if(pt>0)se=Math.floor(se/pt)*pt,Le=Math.ceil(Le/pt)*pt;else{if(!(pt<0))break;se=Math.ceil(se*pt)/pt,Le=Math.floor(Le*pt)/pt}dt=pt}return f},f}function Er(){var f=A1();return f.copy=function(){return Nh(f,Er())},gl.apply(f,arguments),Wh(f)}function Y0(f,T,n){f=+f,T=+T,n=(R=arguments.length)<2?(T=f,f=0,1):R<3?1:+n;for(var d=-1,R=0|Math.max(0,Math.ceil((T-f)/n)),H=new Array(R);++d<R;)H[d]=f+d*n;return H}kc=function(f){var T=void 0===f.grouping||void 0===f.thousands?V0:function(f,T){return function(n,d){for(var R=n.length,H=[],se=0,Le=f[0],dt=0;R>0&&Le>0&&(dt+Le+1>d&&(Le=Math.max(1,d-dt)),H.push(n.substring(R-=Le,R+Le)),!((dt+=Le+1)>d));)Le=f[se=(se+1)%f.length];return H.reverse().join(T)}}(O1.call(f.grouping,Number),f.thousands+""),n=void 0===f.currency?"":f.currency[0]+"",d=void 0===f.currency?"":f.currency[1]+"",R=void 0===f.decimal?".":f.decimal+"",H=void 0===f.numerals?V0:function(f){return function(T){return T.replace(/[0-9]/g,function(n){return f[+n]})}}(O1.call(f.numerals,String)),se=void 0===f.percent?"%":f.percent+"",Le=void 0===f.minus?"\u2212":f.minus+"",dt=void 0===f.nan?"NaN":f.nan+"";function pt(Ht){var Zt=(Ht=Oc(Ht)).fill,ni=Ht.align,bi=Ht.sign,Hi=Ht.symbol,hi=Ht.zero,Ui=Ht.width,Gi=Ht.comma,qi=Ht.precision,cn=Ht.trim,un=Ht.type;"n"===un?(Gi=!0,un="g"):L1[un]||(void 0===qi&&(qi=12),cn=!0,un="g"),(hi||"0"===Zt&&"="===ni)&&(hi=!0,Zt="0",ni="=");var tn="$"===Hi?n:"#"===Hi&&/[boxX]/.test(un)?"0"+un.toLowerCase():"",dr="$"===Hi?d:/[%p]/.test(un)?se:"",Qn=L1[un],Br=/[defgprs%]/.test(un);function or(dn){var lr,Ea,yr,bn=tn,gn=dr;if("c"===un)gn=Qn(dn)+gn,dn="";else{var ur=(dn=+dn)<0||1/dn<0;if(dn=isNaN(dn)?dt:Qn(Math.abs(dn),qi),cn&&(dn=function(f){e:for(var R,T=f.length,n=1,d=-1;n<T;++n)switch(f[n]){case".":d=R=n;break;case"0":0===d&&(d=n),R=n;break;default:if(!+f[n])break e;d>0&&(d=0)}return d>0?f.slice(0,d)+f.slice(R+1):f}(dn)),ur&&0==+dn&&"+"!==bi&&(ur=!1),bn=(ur?"("===bi?bi:Le:"-"===bi||"("===bi?"":bi)+bn,gn=("s"===un?Wl[8+Ic/3]:"")+gn+(ur&&"("===bi?")":""),Br)for(lr=-1,Ea=dn.length;++lr<Ea;)if(48>(yr=dn.charCodeAt(lr))||yr>57){gn=(46===yr?R+dn.slice(lr+1):dn.slice(lr))+gn,dn=dn.slice(0,lr);break}}Gi&&!hi&&(dn=T(dn,1/0));var za=bn.length+dn.length+gn.length,$n=za<Ui?new Array(Ui-za+1).join(Zt):"";switch(Gi&&hi&&(dn=T($n+dn,$n.length?Ui-gn.length:1/0),$n=""),ni){case"<":dn=bn+dn+gn+$n;break;case"=":dn=bn+$n+dn+gn;break;case"^":dn=$n.slice(0,za=$n.length>>1)+bn+dn+gn+$n.slice(za);break;default:dn=$n+bn+dn+gn}return H(dn)}return qi=void 0===qi?6:/[gprs]/.test(un)?Math.max(1,Math.min(21,qi)):Math.max(0,Math.min(20,qi)),or.toString=function(){return Ht+""},or}return{format:pt,formatPrefix:function(Ht,Zt){var ni=pt(((Ht=Oc(Ht)).type="f",Ht)),bi=3*Math.max(-8,Math.min(8,Math.floor(_l(Zt)/3))),Hi=Math.pow(10,-bi),hi=Wl[8+bi/3];return function(Ui){return ni(Hi*Ui)+hi}}}}({thousands:",",grouping:[3],currency:["$",""]}),G0=kc.format,Zh=kc.formatPrefix;const Yh=Symbol("implicit");function I1(){var f=new Map,T=[],n=[],d=Yh;function R(H){var se=H+"",Le=f.get(se);if(!Le){if(d!==Yh)return d;f.set(se,Le=T.push(H))}return n[(Le-1)%n.length]}return R.domain=function(H){if(!arguments.length)return T.slice();T=[],f=new Map;for(const se of H){const Le=se+"";f.has(Le)||f.set(Le,T.push(se))}return R},R.range=function(H){return arguments.length?(n=Array.from(H),R):n.slice()},R.unknown=function(H){return arguments.length?(d=H,R):d},R.copy=function(){return I1(T,n).unknown(d)},gl.apply(R,arguments),R}function Tr(){var H,se,f=I1().unknown(void 0),T=f.domain,n=f.range,d=0,R=1,Le=!1,dt=0,pt=0,Dt=.5;function Ht(){var Zt=T().length,ni=R<d,bi=ni?R:d,Hi=ni?d:R;H=(Hi-bi)/Math.max(1,Zt-dt+2*pt),Le&&(H=Math.floor(H)),bi+=(Hi-bi-H*(Zt-dt))*Dt,se=H*(1-dt),Le&&(bi=Math.round(bi),se=Math.round(se));var hi=Y0(Zt).map(function(Ui){return bi+H*Ui});return n(ni?hi.reverse():hi)}return delete f.unknown,f.domain=function(Zt){return arguments.length?(T(Zt),Ht()):T()},f.range=function(Zt){return arguments.length?([d,R]=Zt,d=+d,R=+R,Ht()):[d,R]},f.rangeRound=function(Zt){return[d,R]=Zt,d=+d,R=+R,Le=!0,Ht()},f.bandwidth=function(){return se},f.step=function(){return H},f.round=function(Zt){return arguments.length?(Le=!!Zt,Ht()):Le},f.padding=function(Zt){return arguments.length?(dt=Math.min(1,pt=+Zt),Ht()):dt},f.paddingInner=function(Zt){return arguments.length?(dt=Math.min(1,Zt),Ht()):dt},f.paddingOuter=function(Zt){return arguments.length?(pt=+Zt,Ht()):pt},f.align=function(Zt){return arguments.length?(Dt=Math.max(0,Math.min(1,Zt)),Ht()):Dt},f.copy=function(){return Tr(T(),[d,R]).round(Le).paddingInner(dt).paddingOuter(pt).align(Dt)},gl.apply(Ht(),arguments)}function Pf(f,T,n=R0){if(d=f.length){if((T=+T)<=0||d<2)return+n(f[0],0,f);if(T>=1)return+n(f[d-1],d-1,f);var d,R=(d-1)*T,H=Math.floor(R),se=+n(f[H],H,f);return se+(+n(f[H+1],H+1,f)-se)*(R-H)}}function Kh(){var d,f=[],T=[],n=[];function R(){var se=0,Le=Math.max(1,T.length);for(n=new Array(Le-1);++se<Le;)n[se-1]=Pf(f,se/Le);return H}function H(se){return null==se||isNaN(se=+se)?d:T[ml(n,se)]}return H.invertExtent=function(se){var Le=T.indexOf(se);return Le<0?[NaN,NaN]:[Le>0?n[Le-1]:f[0],Le<n.length?n[Le]:f[f.length-1]]},H.domain=function(se){if(!arguments.length)return f.slice();f=[];for(let Le of se)null!=Le&&!isNaN(Le=+Le)&&f.push(Le);return f.sort(al),R()},H.range=function(se){return arguments.length?(T=Array.from(se),R()):T.slice()},H.unknown=function(se){return arguments.length?(d=se,H):d},H.quantiles=function(){return n.slice()},H.copy=function(){return Kh().domain(f).range(T).unknown(d)},gl.apply(H,arguments)}function Qh(f){this._context=f}Qh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(f,T){switch(f=+f,T=+T,this._point){case 0:this._point=1,this._line?this._context.lineTo(f,T):this._context.moveTo(f,T);break;case 1:this._point=2;default:this._context.lineTo(f,T)}}};const N1=Math.PI,F1=2*N1,Wo=1e-6,B1=F1-Wo;function As(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Nf(){}function Yl(f,T,n){f._context.bezierCurveTo(f._x1+f._k*(f._x2-f._x0),f._y1+f._k*(f._y2-f._y0),f._x2+f._k*(f._x1-T),f._y2+f._k*(f._y1-n),f._x2,f._y2)}function Pc(f,T){this._context=f,this._k=(1-T)/6}function Nc(f,T){this._context=f,this._k=(1-T)/6}function Xh(f){this._curve=f}function Zf(f,T,n,d,R){for(var se,H=f.children,Le=-1,dt=H.length,pt=f.value&&(d-T)/f.value;++Le<dt;)(se=H[Le]).y0=n,se.y1=R,se.x0=T,se.x1=T+=se.value*pt}function Vf(f,T,n,d,R){for(var se,H=f.children,Le=-1,dt=H.length,pt=f.value&&(R-n)/f.value;++Le<dt;)(se=H[Le]).x0=T,se.x1=d,se.y0=n,se.y1=n+=se.value*pt}function ad(f){var T=0,n=f.children,d=n&&n.length;if(d)for(;--d>=0;)T+=n[d].value;else T=1;f.value=T}function dd(f,T){f instanceof Map?(f=[void 0,f],void 0===T&&(T=n3)):void 0===T&&(T=i3);for(var d,H,se,Le,dt,n=new Uc(f),R=[n];d=R.pop();)if((se=T(d.data))&&(dt=(se=Array.from(se)).length))for(d.children=se,Le=dt-1;Le>=0;--Le)R.push(H=se[Le]=new Uc(se[Le])),H.parent=d,H.depth=d.depth+1;return n.eachBefore(Kf)}function i3(f){return f.children}function n3(f){return Array.isArray(f)?f[1]:null}function ud(f){void 0!==f.data.value&&(f.value=f.data.value),f.data=f.data.data}function Kf(f){var T=0;do{f.height=T}while((f=f.parent)&&f.height<++T)}function Uc(f){this.data=f,this.depth=this.height=0,this.parent=null}As.prototype=function(){return new As}.prototype={constructor:As,moveTo:function(f,T){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+T)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(f,T){this._+="L"+(this._x1=+f)+","+(this._y1=+T)},quadraticCurveTo:function(f,T,n,d){this._+="Q"+ +f+","+ +T+","+(this._x1=+n)+","+(this._y1=+d)},bezierCurveTo:function(f,T,n,d,R,H){this._+="C"+ +f+","+ +T+","+ +n+","+ +d+","+(this._x1=+R)+","+(this._y1=+H)},arcTo:function(f,T,n,d,R){var H=this._x1,se=this._y1,Le=(n=+n)-(f=+f),dt=(d=+d)-(T=+T),pt=H-f,Dt=se-T,Ht=pt*pt+Dt*Dt;if((R=+R)<0)throw new Error("negative radius: "+R);if(null===this._x1)this._+="M"+(this._x1=f)+","+(this._y1=T);else if(Ht>Wo)if(Math.abs(Dt*Le-dt*pt)>Wo&&R){var Zt=n-H,ni=d-se,bi=Le*Le+dt*dt,Hi=Zt*Zt+ni*ni,hi=Math.sqrt(bi),Ui=Math.sqrt(Ht),Gi=R*Math.tan((N1-Math.acos((bi+Ht-Hi)/(2*hi*Ui)))/2),qi=Gi/Ui,cn=Gi/hi;Math.abs(qi-1)>Wo&&(this._+="L"+(f+qi*pt)+","+(T+qi*Dt)),this._+="A"+R+","+R+",0,0,"+ +(Dt*Zt>pt*ni)+","+(this._x1=f+cn*Le)+","+(this._y1=T+cn*dt)}else this._+="L"+(this._x1=f)+","+(this._y1=T)},arc:function(f,T,n,d,R,H){f=+f,T=+T,H=!!H;var se=(n=+n)*Math.cos(d),Le=n*Math.sin(d),dt=f+se,pt=T+Le,Dt=1^H,Ht=H?d-R:R-d;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+dt+","+pt:(Math.abs(this._x1-dt)>Wo||Math.abs(this._y1-pt)>Wo)&&(this._+="L"+dt+","+pt),n&&(Ht<0&&(Ht=Ht%F1+F1),Ht>B1?this._+="A"+n+","+n+",0,1,"+Dt+","+(f-se)+","+(T-Le)+"A"+n+","+n+",0,1,"+Dt+","+(this._x1=dt)+","+(this._y1=pt):Ht>Wo&&(this._+="A"+n+","+n+",0,"+ +(Ht>=N1)+","+Dt+","+(this._x1=f+n*Math.cos(R))+","+(this._y1=T+n*Math.sin(R))))},rect:function(f,T,n,d){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+T)+"h"+ +n+"v"+ +d+"h"+-n+"Z"},toString:function(){return this._}},Pc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Yl(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(f,T){switch(f=+f,T=+T,this._point){case 0:this._point=1,this._line?this._context.lineTo(f,T):this._context.moveTo(f,T);break;case 1:this._point=2,this._x1=f,this._y1=T;break;case 2:this._point=3;default:Yl(this,f,T)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=T}},function f(T){function n(d){return new Pc(d,T)}return n.tension=function(d){return f(+d)},n}(0),Nc.prototype={areaStart:Nf,areaEnd:Nf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(f,T){switch(f=+f,T=+T,this._point){case 0:this._point=1,this._x3=f,this._y3=T;break;case 1:this._point=2,this._context.moveTo(this._x4=f,this._y4=T);break;case 2:this._point=3,this._x5=f,this._y5=T;break;default:Yl(this,f,T)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=T}},function f(T){function n(d){return new Nc(d,T)}return n.tension=function(d){return f(+d)},n}(0),function(f){function T(n){return new Xh(f(n))}T._curve=f}(function(f){return new Qh(f)}),Xh.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(f,T){this._curve.point(T*Math.sin(f),T*-Math.cos(f))}},Math,Math,Math,Math,Math,Math,Math,Math,Math,m(7293),function f(T){function n(d,R,H,se,Le){!function(f,T,n,d,R,H){for(var dt,pt,ni,bi,hi,Ui,Gi,qi,cn,un,tn,se=[],Le=T.children,Dt=0,Ht=0,Zt=Le.length,Hi=T.value;Dt<Zt;){ni=R-n,bi=H-d;do{hi=Le[Ht++].value}while(!hi&&Ht<Zt);for(Ui=Gi=hi,tn=hi*hi*(un=Math.max(bi/ni,ni/bi)/(Hi*f)),cn=Math.max(Gi/tn,tn/Ui);Ht<Zt;++Ht){if(hi+=pt=Le[Ht].value,pt<Ui&&(Ui=pt),pt>Gi&&(Gi=pt),tn=hi*hi*un,(qi=Math.max(Gi/tn,tn/Ui))>cn){hi-=pt;break}cn=qi}se.push(dt={value:hi,dice:ni<bi,children:Le.slice(Dt,Ht)}),dt.dice?Zf(dt,n,d,R,Hi?d+=bi*hi/Hi:H):Vf(dt,n,d,Hi?n+=ni*hi/Hi:R,H),Hi-=hi,Dt=Ht}}(T,d,R,H,se,Le)}return n.ratio=function(d){return f((d=+d)>1?d:1)},n}((1+Math.sqrt(5))/2),Uc.prototype=dd.prototype={constructor:Uc,count:function(){return this.eachAfter(ad)},each:function(f,T){let n=-1;for(const d of this)f.call(T,d,++n,this);return this},eachAfter:function(f,T){for(var H,se,Le,n=this,d=[n],R=[],dt=-1;n=d.pop();)if(R.push(n),H=n.children)for(se=0,Le=H.length;se<Le;++se)d.push(H[se]);for(;n=R.pop();)f.call(T,n,++dt,this);return this},eachBefore:function(f,T){for(var R,H,n=this,d=[n],se=-1;n=d.pop();)if(f.call(T,n,++se,this),R=n.children)for(H=R.length-1;H>=0;--H)d.push(R[H]);return this},find:function(f,T){let n=-1;for(const d of this)if(f.call(T,d,++n,this))return d},sum:function(f){return this.eachAfter(function(T){for(var n=+f(T.data)||0,d=T.children,R=d&&d.length;--R>=0;)n+=d[R].value;T.value=n})},sort:function(f){return this.eachBefore(function(T){T.children&&T.children.sort(f)})},path:function(f){for(var T=this,n=function(f,T){if(f===T)return f;var n=f.ancestors(),d=T.ancestors(),R=null;for(f=n.pop(),T=d.pop();f===T;)R=f,f=n.pop(),T=d.pop();return R}(T,f),d=[T];T!==n;)d.push(T=T.parent);for(var R=d.length;f!==n;)d.splice(R,0,f),f=f.parent;return d},ancestors:function(){for(var f=this,T=[f];f=f.parent;)T.push(f);return T},descendants:function(){return Array.from(this)},leaves:function(){var f=[];return this.eachBefore(function(T){T.children||f.push(T)}),f},links:function(){var f=this,T=[];return f.each(function(n){n!==f&&T.push({source:n.parent,target:n})}),T},copy:function(){return dd(this).eachBefore(ud)},[Symbol.iterator]:function*(){var T,d,R,H,f=this,n=[f];do{for(T=n.reverse(),n=[];f=T.pop();)if(yield f,d=f.children)for(R=0,H=d.length;R<H;++R)n.push(d[R])}while(n.length)}};const pd=["caretElm"];function Xf(f,T){}const md=function(f){return{model:f}};function $f(f,T){if(1&f&&(e.TgZ(0,"span"),e.YNc(1,Xf,0,0,"ng-template",5),e.qZA()),2&f){const n=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",n.template)("ngTemplateOutletContext",e.VKq(2,md,n.context))}}function e6(f,T){if(1&f&&e._UZ(0,"span",6),2&f){const n=e.oxw();e.Q6J("innerHTML",n.title,e.oJD)}}function gd(f,T){if(1&f&&(e.O4$(),e.kcU(),e._UZ(0,"ngx-charts-scale-legend",4)),2&f){const n=e.oxw();e.Q6J("horizontal",n.legendOptions&&n.legendOptions.position===n.LegendPosition.Below)("valueRange",n.legendOptions.domain)("colors",n.legendOptions.colors)("height",n.view[1])("width",n.legendWidth)}}function _d(f,T){if(1&f){const n=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"ngx-charts-legend",5),e.NdJ("labelClick",function(R){return e.CHM(n),e.oxw().legendLabelClick.emit(R)})("labelActivate",function(R){return e.CHM(n),e.oxw().legendLabelActivate.emit(R)})("labelDeactivate",function(R){return e.CHM(n),e.oxw().legendLabelDeactivate.emit(R)}),e.qZA()}if(2&f){const n=e.oxw();e.Q6J("horizontal",n.legendOptions&&n.legendOptions.position===n.LegendPosition.Below)("data",n.legendOptions.domain)("title",n.legendOptions.title)("colors",n.legendOptions.colors)("height",n.view[1])("width",n.legendWidth)("activeEntries",n.activeEntries)}}const vd=["*"],fo=["ngx-charts-axis-label",""],V1=["ticksel"],t6=["ngx-charts-x-axis-ticks",""];function i6(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g",3),e.TgZ(1,"title"),e._uU(2),e.qZA(),e.TgZ(3,"text",4),e._uU(4),e.qZA(),e.qZA()),2&f){const n=T.$implicit,d=e.oxw();e.uIk("transform",d.tickTransform(n)),e.xp6(2),e.Oqu(d.tickFormat(n)),e.xp6(1),e.Udp("font-size","12px"),e.uIk("text-anchor",d.textAnchor)("transform",d.textTransform),e.xp6(1),e.hij(" ",d.tickTrim(d.tickFormat(n))," ")}}function r3(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"line",6),e.qZA()),2&f){const n=e.oxw(2);e.uIk("transform",n.gridLineTransform()),e.xp6(1),e.uIk("y1",-n.gridLineHeight)}}function yd(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,r3,2,2,"g",5),e.qZA()),2&f){const n=T.$implicit,d=e.oxw();e.uIk("transform",d.tickTransform(n)),e.xp6(1),e.Q6J("ngIf",d.showGridLines)}}const n6=["ngx-charts-x-axis",""];function r6(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("dimensionsChanged",function(R){return e.CHM(n),e.oxw().emitTicksHeight(R)}),e.qZA()}if(2&f){const n=e.oxw();e.Q6J("trimTicks",n.trimTicks)("rotateTicks",n.rotateTicks)("maxTickLength",n.maxTickLength)("tickFormatting",n.tickFormatting)("tickArguments",n.tickArguments)("tickStroke",n.tickStroke)("scale",n.xScale)("orient",n.xOrient)("showGridLines",n.showGridLines)("gridLineHeight",n.dims.height)("width",n.dims.width)("tickValues",n.ticks)}}function bd(f,T){if(1&f&&(e.O4$(),e._UZ(0,"g",3)),2&f){const n=e.oxw();e.Q6J("label",n.labelText)("offset",n.labelOffset)("orient",n.orientation.Bottom)("height",n.dims.height)("width",n.dims.width)}}const u2=["ngx-charts-y-axis-ticks",""];function a6(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g",4),e.TgZ(1,"title"),e._uU(2),e.qZA(),e.TgZ(3,"text",5),e._uU(4),e.qZA(),e.qZA()),2&f){const n=T.$implicit,d=e.oxw();e.uIk("transform",d.transform(n)),e.xp6(2),e.Oqu(d.tickFormat(n)),e.xp6(1),e.Udp("font-size","12px"),e.uIk("dy",d.dy)("x",d.x1)("y",d.y1)("text-anchor",d.textAnchor),e.xp6(1),e.hij(" ",d.tickTrim(d.tickFormat(n))," ")}}function s6(f,T){if(1&f&&(e.O4$(),e._UZ(0,"path",6)),2&f){const n=e.oxw();e.uIk("d",n.referenceAreaPath)("transform",n.gridLineTransform())}}function G1(f,T){if(1&f&&(e.O4$(),e._UZ(0,"line",9)),2&f){const n=e.oxw(3);e.uIk("x2",n.gridLineWidth)}}function W1(f,T){if(1&f&&(e.O4$(),e._UZ(0,"line",9)),2&f){const n=e.oxw(3);e.uIk("x2",-n.gridLineWidth)}}function o6(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,G1,1,1,"line",8),e.YNc(2,W1,1,1,"line",8),e.qZA()),2&f){const n=e.oxw(2);e.uIk("transform",n.gridLineTransform()),e.xp6(1),e.Q6J("ngIf",n.orient===n.Orientation.Left),e.xp6(1),e.Q6J("ngIf",n.orient===n.Orientation.Right)}}function f2(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,o6,3,3,"g",7),e.qZA()),2&f){const n=T.$implicit,d=e.oxw();e.uIk("transform",d.transform(n)),e.xp6(1),e.Q6J("ngIf",d.showGridLines)}}function p2(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.TgZ(1,"title"),e._uU(2),e.qZA(),e.TgZ(3,"text",11),e._uU(4),e.qZA(),e.qZA()),2&f){const n=e.oxw(2).$implicit,d=e.oxw();e.xp6(2),e.Oqu(d.tickTrim(d.tickFormat(n.value))),e.xp6(1),e.uIk("dy",d.dy)("y",-6)("x",d.gridLineWidth)("text-anchor",d.textAnchor),e.xp6(1),e.hij(" ",n.name," ")}}function xd(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e._UZ(1,"line",10),e.YNc(2,p2,5,6,"g",7),e.qZA()),2&f){const n=e.oxw().$implicit,d=e.oxw();e.uIk("transform",d.transform(n.value)),e.xp6(1),e.uIk("x2",d.gridLineWidth)("transform",d.gridLineTransform()),e.xp6(1),e.Q6J("ngIf",d.showRefLabels)}}function l6(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,xd,3,4,"g",7),e.qZA()),2&f){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.showRefLines)}}const c6=["ngx-charts-y-axis",""];function m2(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("dimensionsChanged",function(R){return e.CHM(n),e.oxw().emitTicksWidth(R)}),e.qZA()}if(2&f){const n=e.oxw();e.Q6J("trimTicks",n.trimTicks)("maxTickLength",n.maxTickLength)("tickFormatting",n.tickFormatting)("tickArguments",n.tickArguments)("tickValues",n.ticks)("tickStroke",n.tickStroke)("scale",n.yScale)("orient",n.yOrient)("showGridLines",n.showGridLines)("gridLineWidth",n.dims.width)("referenceLines",n.referenceLines)("showRefLines",n.showRefLines)("showRefLabels",n.showRefLabels)("height",n.dims.height)}}function a3(f,T){if(1&f&&(e.O4$(),e._UZ(0,"g",3)),2&f){const n=e.oxw();e.Q6J("label",n.labelText)("offset",n.labelOffset)("orient",n.yOrient)("height",n.dims.height)("width",n.dims.width)}}const Ad=["ngx-charts-grid-panel",""],To=["ngx-charts-grid-panel-series",""];function Y1(f,T){if(1&f&&(e.O4$(),e._UZ(0,"g",1)),2&f){const n=T.$implicit;e.ekj("grid-panel",!0)("odd","odd"===n.class)("even","even"===n.class),e.Q6J("height",n.height)("width",n.width)("x",n.x)("y",n.y)}}const d6=["ngx-charts-svg-linear-gradient",""];function u6(f,T){if(1&f&&(e.O4$(),e._UZ(0,"stop")),2&f){const n=T.$implicit;e.Udp("stop-color",n.color)("stop-opacity",n.opacity),e.uIk("offset",n.offset+"%")}}function p6(f,T){if(1&f&&(e.TgZ(0,"header",4),e.TgZ(1,"span",5),e._uU(2),e.qZA(),e.qZA()),2&f){const n=e.oxw();e.xp6(2),e.Oqu(n.title)}}function x2(f,T){if(1&f){const n=e.EpF();e.TgZ(0,"li",6),e.TgZ(1,"ngx-charts-legend-entry",7),e.NdJ("select",function(R){return e.CHM(n),e.oxw().labelClick.emit(R)})("activate",function(R){return e.CHM(n),e.oxw().activate(R)})("deactivate",function(R){return e.CHM(n),e.oxw().deactivate(R)}),e.qZA(),e.qZA()}if(2&f){const n=T.$implicit,d=e.oxw();e.xp6(1),e.Q6J("label",n.label)("formattedLabel",n.formattedLabel)("color",n.color)("isActive",d.isActive(n))}}const Fr=["tooltipTemplate"],_r=function(f,T){return[f,T]},oa=".ngx-charts-outer{-webkit-animation:chartFadeIn linear .6s;animation:chartFadeIn linear .6s}@-webkit-keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}@keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}.ngx-charts{float:left;overflow:visible}.ngx-charts .circle,.ngx-charts .cell,.ngx-charts .bar,.ngx-charts .arc{cursor:pointer}.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover,.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .card.active,.ngx-charts .card:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .bar:focus,.ngx-charts .cell:focus,.ngx-charts .arc:focus,.ngx-charts .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.hidden,.ngx-charts .card.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .line-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .polar-series-path.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .area-series.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:normal}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:#0000000d}\n",h3=["ngx-charts-bar",""];function eo(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"defs"),e._UZ(1,"g",2),e.qZA()),2&f){const n=e.oxw();e.xp6(1),e.Q6J("orientation",n.orientation)("name",n.gradientId)("stops",n.gradientStops)}}function L6(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(R){return e.CHM(n),e.oxw().updateXAxisHeight(R)}),e.qZA()}if(2&f){const n=e.oxw();e.Q6J("xScale",n.xScale)("dims",n.dims)("showGridLines",n.showGridLines)("showLabel",n.showXAxisLabel)("labelText",n.xAxisLabel)("trimTicks",n.trimXAxisTicks)("rotateTicks",n.rotateXAxisTicks)("maxTickLength",n.maxXAxisTickLength)("tickFormatting",n.xAxisTickFormatting)("ticks",n.xAxisTicks)("xAxisOffset",n.dataLabelMaxHeight.negative)}}function O6(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(R){return e.CHM(n),e.oxw().updateYAxisWidth(R)}),e.qZA()}if(2&f){const n=e.oxw();e.Q6J("yScale",n.yScale)("dims",n.dims)("showGridLines",n.showGridLines)("showLabel",n.showYAxisLabel)("labelText",n.yAxisLabel)("trimTicks",n.trimYAxisTicks)("maxTickLength",n.maxYAxisTickLength)("tickFormatting",n.yAxisTickFormatting)("ticks",n.yAxisTicks)}}function I6(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(R){return e.CHM(n),e.oxw().updateXAxisHeight(R)}),e.qZA()}if(2&f){const n=e.oxw();e.Q6J("xScale",n.groupScale)("dims",n.dims)("showLabel",n.showXAxisLabel)("labelText",n.xAxisLabel)("trimTicks",n.trimXAxisTicks)("rotateTicks",n.rotateXAxisTicks)("maxTickLength",n.maxXAxisTickLength)("tickFormatting",n.xAxisTickFormatting)("ticks",n.xAxisTicks)("xAxisOffset",n.dataLabelMaxHeight.negative)}}function k6(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(R){return e.CHM(n),e.oxw().updateYAxisWidth(R)}),e.qZA()}if(2&f){const n=e.oxw();e.Q6J("yScale",n.valueScale)("dims",n.dims)("showGridLines",n.showGridLines)("showLabel",n.showYAxisLabel)("labelText",n.yAxisLabel)("trimTicks",n.trimYAxisTicks)("maxTickLength",n.maxYAxisTickLength)("tickFormatting",n.yAxisTickFormatting)("ticks",n.yAxisTicks)}}function R6(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",8),e.NdJ("select",function(R){const se=e.CHM(n).$implicit;return e.oxw().onClick(R,se)})("activate",function(R){const se=e.CHM(n).$implicit;return e.oxw().onActivate(R,se)})("deactivate",function(R){const se=e.CHM(n).$implicit;return e.oxw().onDeactivate(R,se)})("dataLabelHeightChanged",function(R){const se=e.CHM(n).index;return e.oxw().onDataLabelMaxHeightChanged(R,se)}),e.qZA()}if(2&f){const n=T.$implicit,d=e.oxw();e.Q6J("@animationState","active")("activeEntries",d.activeEntries)("xScale",d.innerScale)("yScale",d.valueScale)("colors",d.colors)("series",n.series)("dims",d.dims)("gradient",d.gradient)("tooltipDisabled",d.tooltipDisabled)("tooltipTemplate",d.tooltipTemplate)("showDataLabel",d.showDataLabel)("dataLabelFormatting",d.dataLabelFormatting)("seriesName",n.name)("roundEdges",d.roundEdges)("animations",d.animations)("noBarWhenZero",d.noBarWhenZero),e.uIk("transform",d.groupTransform(n))}}const hs=["ngx-charts-series-vertical",""];function Cl(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("select",function(R){return e.CHM(n),e.oxw().onClick(R)})("activate",function(R){return e.CHM(n),e.oxw().activate.emit(R)})("deactivate",function(R){return e.CHM(n),e.oxw().deactivate.emit(R)}),e.qZA()}if(2&f){const n=T.$implicit,d=e.oxw();e.Q6J("@animationState","active")("@.disabled",!d.animations)("width",n.width)("height",n.height)("x",n.x)("y",n.y)("fill",n.color)("stops",n.gradientStops)("data",n.data)("orientation",d.barOrientation.Vertical)("roundEdges",n.roundEdges)("gradient",d.gradient)("ariaLabel",n.ariaLabel)("isActive",d.isActive(n.data))("tooltipDisabled",d.tooltipDisabled)("tooltipPlacement",d.tooltipPlacement)("tooltipType",d.tooltipType)("tooltipTitle",d.tooltipTemplate?void 0:n.tooltipText)("tooltipTemplate",d.tooltipTemplate)("tooltipContext",n.data)("noBarWhenZero",d.noBarWhenZero)("animations",d.animations)}}function K1(f,T){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",4),e.NdJ("dimensionsChanged",function(R){const se=e.CHM(n).index;return e.oxw(2).dataLabelHeightChanged.emit({size:R,index:se})}),e.qZA()}if(2&f){const n=T.$implicit,d=e.oxw(2);e.Q6J("barX",n.x)("barY",n.y)("barWidth",n.width)("barHeight",n.height)("value",n.total)("valueFormatting",d.dataLabelFormatting)("orientation",d.barOrientation.Vertical)}}function Gs(f,T){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,K1,1,7,"g",3),e.qZA()),2&f){const n=e.oxw();e.xp6(1),e.Q6J("ngForOf",n.barsForDataLabels)("ngForTrackBy",n.trackDataLabelBy)}}const T2=["ngx-charts-bar-label",""];let X1=(()=>{class f{constructor(n,d,R){this.applicationRef=n,this.componentFactoryResolver=d,this.injector=R}static setGlobalRootViewContainer(n){f.globalRootViewContainer=n}getRootViewContainer(){if(this._container)return this._container;if(f.globalRootViewContainer)return f.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(n){this._container=n}getComponentRootNode(n){return function(f){return f.element}(n)?n.element.nativeElement:n.hostView&&n.hostView.rootNodes.length>0?n.hostView.rootNodes[0]:n.location.nativeElement}getRootViewContainerNode(n){return this.getComponentRootNode(n)}projectComponentBindings(n,d){if(d){if(void 0!==d.inputs){const R=Object.getOwnPropertyNames(d.inputs);for(const H of R)n.instance[H]=d.inputs[H]}if(void 0!==d.outputs){const R=Object.getOwnPropertyNames(d.outputs);for(const H of R)n.instance[H]=d.outputs[H]}}return n}appendComponent(n,d={},R){R||(R=this.getRootViewContainer());const H=this.getComponentRootNode(R),se=new v.u0(H,this.componentFactoryResolver,this.applicationRef,this.injector),Le=new v.C5(n),dt=se.attach(Le);return this.projectComponentBindings(dt,d),dt}}return f.\u0275fac=function(n){return new(n||f)(e.LFG(e.z2F),e.LFG(e._Vd),e.LFG(e.zs3))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f.globalRootViewContainer=null,f})();function H2(f,T,n){n=n||{};let d,R,H,se=null,Le=0;function dt(){Le=!1===n.leading?0:+new Date,se=null,H=f.apply(d,R)}return function(){const pt=+new Date;!Le&&!1===n.leading&&(Le=pt);const Dt=T-(pt-Le);return d=this,R=arguments,Dt<=0?(clearTimeout(se),se=null,Le=pt,H=f.apply(d,R)):!se&&!1!==n.trailing&&(se=setTimeout(dt,Dt)),H}}function l4(f,T){return function(d,R,H){return{configurable:!0,enumerable:H.enumerable,get:function(){return Object.defineProperty(this,R,{configurable:!0,enumerable:H.enumerable,value:H2(H.value,f,T)}),this[R]}}}}var Ln=(()=>{return(f=Ln||(Ln={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",f.Center="center",Ln;var f})();function $1(f,T,n){return n===Ln.Top?f.top-7:n===Ln.Bottom?f.top+f.height-T.height+7:n===Ln.Center?f.top+f.height/2-T.height/2:void 0}function z2(f,T,n){return n===Ln.Left?f.left-7:n===Ln.Right?f.left+f.width-T.width+7:n===Ln.Center?f.left+f.width/2-T.width/2:void 0}class Ts{static calculateVerticalAlignment(T,n,d){let R=$1(T,n,d);return R+n.height>window.innerHeight&&(R=window.innerHeight-n.height),R}static calculateVerticalCaret(T,n,d,R){let H;R===Ln.Top&&(H=T.height/2-d.height/2+7),R===Ln.Bottom&&(H=n.height-T.height/2-d.height/2-7),R===Ln.Center&&(H=n.height/2-d.height/2);const se=$1(T,n,R);return se+n.height>window.innerHeight&&(H+=se+n.height-window.innerHeight),H}static calculateHorizontalAlignment(T,n,d){let R=z2(T,n,d);return R+n.width>window.innerWidth&&(R=window.innerWidth-n.width),R}static calculateHorizontalCaret(T,n,d,R){let H;R===Ln.Left&&(H=T.width/2-d.width/2+7),R===Ln.Right&&(H=n.width-T.width/2-d.width/2-7),R===Ln.Center&&(H=n.width/2-d.width/2);const se=z2(T,n,R);return se+n.width>window.innerWidth&&(H+=se+n.width-window.innerWidth),H}static shouldFlip(T,n,d,R){let H=!1;return d===Ln.Right&&T.left+T.width+n.width+R>window.innerWidth&&(H=!0),d===Ln.Left&&T.left-n.width-R<0&&(H=!0),d===Ln.Top&&T.top-n.height-R<0&&(H=!0),d===Ln.Bottom&&T.top+T.height+n.height+R>window.innerHeight&&(H=!0),H}static positionCaret(T,n,d,R,H){let se=0,Le=0;return T===Ln.Right?(Le=-7,se=Ts.calculateVerticalCaret(d,n,R,H)):T===Ln.Left?(Le=n.width,se=Ts.calculateVerticalCaret(d,n,R,H)):T===Ln.Top?(se=n.height,Le=Ts.calculateHorizontalCaret(d,n,R,H)):T===Ln.Bottom&&(se=-7,Le=Ts.calculateHorizontalCaret(d,n,R,H)),{top:se,left:Le}}static positionContent(T,n,d,R,H){let se=0,Le=0;return T===Ln.Right?(Le=d.left+d.width+R,se=Ts.calculateVerticalAlignment(d,n,H)):T===Ln.Left?(Le=d.left-n.width-R,se=Ts.calculateVerticalAlignment(d,n,H)):T===Ln.Top?(se=d.top-n.height-R,Le=Ts.calculateHorizontalAlignment(d,n,H)):T===Ln.Bottom&&(se=d.top+d.height+R,Le=Ts.calculateHorizontalAlignment(d,n,H)),{top:se,left:Le}}static determinePlacement(T,n,d,R){if(Ts.shouldFlip(d,n,T,R)){if(T===Ln.Right)return Ln.Left;if(T===Ln.Left)return Ln.Right;if(T===Ln.Top)return Ln.Bottom;if(T===Ln.Bottom)return Ln.Top}return T}}let mu=(()=>{class f{constructor(n,d,R){this.element=n,this.renderer=d,this.platformId=R}get cssClasses(){let n="ngx-charts-tooltip-content";return n+=` position-${this.placement}`,n+=` type-${this.type}`,n+=` ${this.cssClass}`,n}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,t.NF)(this.platformId))return;const n=this.element.nativeElement,d=this.host.nativeElement.getBoundingClientRect();if(!d.height&&!d.width)return;const R=n.getBoundingClientRect();this.checkFlip(d,R),this.positionContent(n,d,R),this.showCaret&&this.positionCaret(d,R),setTimeout(()=>this.renderer.addClass(n,"animate"),1)}positionContent(n,d,R){const{top:H,left:se}=Ts.positionContent(this.placement,R,d,this.spacing,this.alignment);this.renderer.setStyle(n,"top",`${H}px`),this.renderer.setStyle(n,"left",`${se}px`)}positionCaret(n,d){const R=this.caretElm.nativeElement,H=R.getBoundingClientRect(),{top:se,left:Le}=Ts.positionCaret(this.placement,d,n,H,this.alignment);this.renderer.setStyle(R,"top",`${se}px`),this.renderer.setStyle(R,"left",`${Le}px`)}checkFlip(n,d){this.placement=Ts.determinePlacement(this.placement,d,n,this.spacing)}onWindowResize(){this.position()}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-tooltip-content"]],viewQuery:function(n,d){if(1&n&&e.Gf(pd,5),2&n){let R;e.iGM(R=e.CRH())&&(d.caretElm=R.first)}},hostVars:2,hostBindings:function(n,d){1&n&&e.NdJ("resize",function(){return d.onWindowResize()},!1,e.Jf7),2&n&&e.Tol(d.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(n,d){1&n&&(e.TgZ(0,"div"),e._UZ(1,"span",0,1),e.TgZ(3,"div",2),e.YNc(4,$f,2,4,"span",3),e.YNc(5,e6,1,1,"span",4),e.qZA(),e.qZA()),2&n&&(e.xp6(1),e.Gre("tooltip-caret position-",d.placement,""),e.Q6J("hidden",!d.showCaret),e.xp6(3),e.Q6J("ngIf",!d.title),e.xp6(1),e.Q6J("ngIf",d.title))},directives:[t.O5,t.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:normal;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,C.gn)([l4(100)],f.prototype,"onWindowResize",null),f})(),Yc=(()=>{class f extends class{constructor(T){this.injectionService=T,this.defaults={},this.components=new Map}getByType(T=this.type){return this.components.get(T)}create(T){return this.createByType(this.type,T)}createByType(T,n){n=this.assignDefaults(n);const d=this.injectComponent(T,n);return this.register(T,d),d}destroy(T){const n=this.components.get(T.componentType);if(n&&n.length){const d=n.indexOf(T);d>-1&&(n[d].destroy(),n.splice(d,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(T){const n=this.components.get(T);if(n&&n.length){let d=n.length-1;for(;d>=0;)this.destroy(n[d--])}}injectComponent(T,n){return this.injectionService.appendComponent(T,n)}assignDefaults(T){const n=Object.assign({},this.defaults.inputs),d=Object.assign({},this.defaults.outputs);return!T.inputs&&!T.outputs&&(T={inputs:T}),n&&(T.inputs=Object.assign(Object.assign({},n),T.inputs)),d&&(T.outputs=Object.assign(Object.assign({},d),T.outputs)),T}register(T,n){this.components.has(T)||this.components.set(T,[]),this.components.get(T).push(n)}}{constructor(n){super(n),this.type=mu}}return f.\u0275fac=function(n){return new(n||f)(e.LFG(X1))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})();var vr=(()=>{return(f=vr||(vr={})).Right="right",f.Below="below",vr;var f})(),qo=(()=>{return(f=qo||(qo={})).ScaleLegend="scaleLegend",f.Legend="legend",qo;var f})(),_i=(()=>{return(f=_i||(_i={})).Time="time",f.Linear="linear",f.Ordinal="ordinal",f.Quantile="quantile",_i;var f})();let Wr=(()=>{class f{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new e.vpe,this.legendLabelActivate=new e.vpe,this.legendLabelDeactivate=new e.vpe,this.LegendPosition=vr,this.LegendType=qo}ngOnChanges(n){this.update()}update(){let n=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===vr.Right)&&(n=this.legendType===qo.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-n)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==vr.Right?this.chartWidth:Math.floor(this.view[0]*n/12)}getLegendType(){return this.legendOptions.scaleType===_i.Linear?qo.ScaleLegend:qo.Legend}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[e._Bn([Yc]),e.TTD],ngContentSelectors:vd,decls:5,vars:6,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(n,d){1&n&&(e.F$t(),e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.Hsn(2),e.qZA(),e.YNc(3,gd,1,5,"ngx-charts-scale-legend",2),e.YNc(4,_d,1,7,"ngx-charts-legend",3),e.qZA()),2&n&&(e.Udp("width",d.view[0],"px"),e.xp6(1),e.uIk("width",d.chartWidth)("height",d.view[1]),e.xp6(2),e.Q6J("ngIf",d.showLegend&&d.legendType===d.LegendType.ScaleLegend),e.xp6(1),e.Q6J("ngIf",d.showLegend&&d.legendType===d.LegendType.Legend))},directives:function(){return[t.O5,q2,j2]},encapsulation:2,changeDetection:0}),f})(),_u=(()=>{class f{constructor(n,d){this.element=n,this.zone=d,this.visible=new e.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const n=()=>{if(!this.element)return;const{offsetHeight:d,offsetWidth:R}=this.element.nativeElement;d&&R?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>n(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>n())})}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.R0b))},f.\u0275dir=e.lG2({type:f,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),f})();function jc(f){return"[object Date]"===toString.call(f)}let Yr=(()=>{class f{constructor(n,d,R,H){this.chartElement=n,this.zone=d,this.cd=R,this.platformId=H,this.scheme="cool",this.schemeType=_i.Ordinal,this.animations=!0,this.select=new e.vpe}ngOnInit(){(0,t.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new _u(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(n){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const n=this.getContainerDims();n&&(this.width=n.width,this.height=n.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let n,d;const R=this.chartElement.nativeElement;if((0,t.NF)(this.platformId)&&null!==R.parentNode){const H=R.parentNode.getBoundingClientRect();n=H.width,d=H.height}return n&&d?{width:n,height:d}:null}formatDates(){for(let n=0;n<this.results.length;n++){const d=this.results[n];if(d.label=d.name,jc(d.label)&&(d.label=d.label.toLocaleDateString()),d.series)for(let R=0;R<d.series.length;R++){const H=d.series[R];H.label=H.name,jc(H.label)&&(H.label=H.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){if(!(0,t.NF)(this.platformId))return;const d=(0,s.R)(window,"resize").pipe((0,M.b)(200)).subscribe(R=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=d}cloneData(n){const d=[];for(const R of n){const H={name:R.name};if(void 0!==R.value&&(H.value=R.value),void 0!==R.series){H.series=[];for(const se of R.series){const Le=Object.assign({},se);H.series.push(Le)}}void 0!==R.extra&&(H.extra=JSON.parse(JSON.stringify(R.extra))),d.push(H)}return d}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[e.TTD],decls:1,vars:0,template:function(n,d){1&n&&e._UZ(0,"div")},encapsulation:2}),f})();var ga=(()=>{return(f=ga||(ga={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",ga;var f})();let vu=(()=>{class f{constructor(n){this.textHeight=25,this.margin=5,this.element=n.nativeElement}ngOnChanges(n){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case ga.Top:case ga.Bottom:this.y=this.offset,this.x=this.width/2;break;case ga.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case ga.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[e.TTD],attrs:fo,decls:2,vars:6,template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"text"),e._uU(1),e.qZA()),2&n&&(e.uIk("stroke-width",d.strokeWidth)("x",d.x)("y",d.y)("text-anchor",d.textAnchor)("transform",d.transform),e.xp6(1),e.hij(" ",d.label," "))},encapsulation:2,changeDetection:0}),f})();function Ko(f,T=16){return"string"!=typeof f?"number"==typeof f?f+"":"":(f=f.trim()).length<=T?f:`${f.slice(0,T)}...`}function yu(f,T){if(f.length>T){const n=[],d=Math.floor(f.length/T);for(let R=0;R<f.length;R++)R%d==0&&n.push(f[R]);f=n}return f}var Ja=(()=>{return(f=Ja||(Ja={})).Start="start",f.Middle="middle",f.End="end",Ja;var f})();let bu=(()=>{class f{constructor(n){this.platformId=n,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new e.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Ja.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(n){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,t.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const n=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);n!==this.height&&(this.height=n,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const n=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:n.tickFormat?n.tickFormat.apply(n,this.tickArguments):function(R){return"Date"===R.constructor.name?R.toLocaleDateString():R.toLocaleString()};const d=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(R){return this.scale(R)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",d&&0!==d?(this.textTransform=`rotate(${d})`,this.textAnchor=Ja.End,this.verticalSpacing=10):this.textAnchor=Ja.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(n){let d=0;this.maxTicksLength=0;for(let pt=0;pt<n.length;pt++){const Dt=this.tickFormat(n[pt]).toString();let Ht=Dt.length;this.trimTicks&&(Ht=this.tickTrim(Dt).length),Ht>this.maxTicksLength&&(this.maxTicksLength=Ht)}const se=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let Le=se;const dt=Math.floor(this.width/n.length);for(;Le>dt&&d>-90;)d-=30,Le=Math.cos(d*(Math.PI/180))*se;return this.approxHeight=Math.max(Math.abs(Math.sin(d*(Math.PI/180))*se),10),d}getTicks(){let n;const d=this.getMaxTicks(20),R=this.getMaxTicks(100);return this.tickValues?n=this.tickValues:this.scale.ticks?n=this.scale.ticks.apply(this.scale,[R]):(n=this.scale.domain(),n=yu(n,d)),n}getMaxTicks(n){return Math.floor(this.width/n)}tickTransform(n){return"translate("+this.adjustedScale(n)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(n){return this.trimTicks?Ko(n,this.maxTickLength):n}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(n,d){if(1&n&&e.Gf(V1,5),2&n){let R;e.iGM(R=e.CRH())&&(d.ticksElement=R.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:t6,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,i6,5,7,"g",1),e.qZA(),e.YNc(3,yd,2,2,"g",2)),2&n&&(e.xp6(2),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngForOf",d.ticks))},directives:[t.sg,t.O5],encapsulation:2,changeDetection:0}),f})(),tr=(()=>{class f{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=ga.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new e.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=ga}ngOnChanges(n){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:n}){const d=n+25+5;d!==this.labelOffset&&(this.labelOffset=d,setTimeout(()=>{this.dimensionsChanged.emit({height:n})},0))}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(n,d){if(1&n&&e.Gf(bu,5),2&n){let R;e.iGM(R=e.CRH())&&(d.ticksComponent=R.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:n6,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,r6,1,12,"g",0),e.YNc(2,bd,1,5,"g",1),e.qZA()),2&n&&(e.uIk("class",d.xAxisClassName)("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.xScale),e.xp6(1),e.Q6J("ngIf",d.showLabel))},directives:[t.O5,bu,vu],encapsulation:2,changeDetection:0}),f})();function Ws(f,T,n,d,R,[H,se,Le,dt]){let pt="";return pt=`M${[f+R,T]}`,pt+="h"+((n=0===(n=Math.floor(n))?1:n)-2*R),pt+=se?`a${[R,R]} 0 0 1 ${[R,R]}`:`h${R}v${R}`,pt+="v"+((d=0===(d=Math.floor(d))?1:d)-2*R),pt+=dt?`a${[R,R]} 0 0 1 ${[-R,R]}`:`v${R}h${-R}`,pt+="h"+(2*R-n),pt+=Le?`a${[R,R]} 0 0 1 ${[-R,-R]}`:`h${-R}v${-R}`,pt+="v"+(2*R-d),pt+=H?`a${[R,R]} 0 0 1 ${[R,-R]}`:`v${-R}h${R}`,pt+="z",pt}let xu=(()=>{class f{constructor(n){this.platformId=n,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new e.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=Ja.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=ga}ngOnChanges(n){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,t.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const n=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);n!==this.width&&(this.width=n,this.dimensionsChanged.emit({width:n}),setTimeout(()=>this.updateDims()))}update(){let n;const d=this.orient===ga.Top||this.orient===ga.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,n=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:n.tickFormat?n.tickFormat.apply(n,this.tickArguments):function(R){return"Date"===R.constructor.name?R.toLocaleDateString():R.toLocaleString()},this.adjustedScale=n.bandwidth?function(R){return n(R)+.5*n.bandwidth()}:n,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case ga.Top:case ga.Bottom:this.transform=function(R){return"translate("+this.adjustedScale(R)+",0)"},this.textAnchor=Ja.Middle,this.y2=this.innerTickSize*d,this.y1=this.tickSpacing*d,this.dy=d<0?"0em":".71em";break;case ga.Left:this.transform=function(R){return"translate(0,"+this.adjustedScale(R)+")"},this.textAnchor=Ja.End,this.x2=this.innerTickSize*-d,this.x1=this.tickSpacing*-d,this.dy=".32em";break;case ga.Right:this.transform=function(R){return"translate(0,"+this.adjustedScale(R)+")"},this.textAnchor=Ja.Start,this.x2=this.innerTickSize*-d,this.x1=this.tickSpacing*-d,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(n=>n.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(n=>n.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Ws(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let n;const d=this.getMaxTicks(20),R=this.getMaxTicks(50);return this.tickValues?n=this.tickValues:this.scale.ticks?n=this.scale.ticks.apply(this.scale,[R]):(n=this.scale.domain(),n=yu(n,d)),n}getMaxTicks(n){return Math.floor(this.height/n)}tickTransform(n){return`translate(${this.adjustedScale(n)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(n){return this.trimTicks?Ko(n,this.maxTickLength):n}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(R=>this.tickTrim(this.tickFormat(R)).length))}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.Lbi))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(n,d){if(1&n&&e.Gf(V1,5),2&n){let R;e.iGM(R=e.CRH())&&(d.ticksElement=R.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:u2,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"g",null,0),e.YNc(2,a6,5,9,"g",1),e.qZA(),e.YNc(3,s6,1,2,"path",2),e.YNc(4,f2,2,2,"g",3),e.YNc(5,l6,2,1,"g",3)),2&n&&(e.xp6(2),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngIf",d.referenceLineLength>1&&d.refMax&&d.refMin&&d.showRefLines),e.xp6(1),e.Q6J("ngForOf",d.ticks),e.xp6(1),e.Q6J("ngForOf",d.referenceLines))},directives:[t.sg,t.O5],encapsulation:2,changeDetection:0}),f})(),Xa=(()=>{class f{constructor(){this.showGridLines=!1,this.yOrient=ga.Left,this.yAxisOffset=0,this.dimensionsChanged=new e.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(n){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===ga.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:n}){n!==this.labelOffset&&this.yOrient===ga.Right?(this.labelOffset=n+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:n})},0)):n!==this.labelOffset&&(this.labelOffset=n,setTimeout(()=>{this.dimensionsChanged.emit({width:n})},0))}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(n,d){if(1&n&&e.Gf(xu,5),2&n){let R;e.iGM(R=e.CRH())&&(d.ticksComponent=R.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:c6,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,m2,1,14,"g",0),e.YNc(2,a3,1,5,"g",1),e.qZA()),2&n&&(e.uIk("class",d.yAxisClassName)("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.yScale),e.xp6(1),e.Q6J("ngIf",d.showLabel))},directives:[t.O5,xu,vu],encapsulation:2,changeDetection:0}),f})(),Z2=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[t.ez]]}),f})();var ds=(()=>{return(f=ds||(ds={})).popover="popover",f.tooltip="tooltip",ds;var f})(),Do=(()=>{return(f=Do||(Do={}))[f.all="all"]="all",f[f.focus="focus"]="focus",f[f.mouseover="mouseover"]="mouseover",Do;var f})();let Ss=(()=>{class f{constructor(n,d,R){this.tooltipService=n,this.viewContainerRef=d,this.renderer=R,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Ln.Top,this.tooltipAlignment=Ln.Center,this.tooltipType=ds.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Do.all,this.tooltipImmediateExit=!1,this.show=new e.vpe,this.hide=new e.vpe}get listensForFocus(){return this.tooltipShowEvent===Do.all||this.tooltipShowEvent===Do.focus}get listensForHover(){return this.tooltipShowEvent===Do.all||this.tooltipShowEvent===Do.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(n){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(n))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(n){if(this.component||this.tooltipDisabled)return;const d=n?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const R=this.createBoundOptions();this.component=this.tooltipService.create(R),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},d)}addHideListeners(n){this.mouseEnterContentEvent=this.renderer.listen(n,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(n,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",d=>{n.contains(d.target)||this.hideTooltip()}))}hideTooltip(n=!1){if(!this.component)return;const d=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),n?d():this.timeout=setTimeout(d,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(Yc),e.Y36(e.s_b),e.Y36(e.Qsj))},f.\u0275dir=e.lG2({type:f,selectors:[["","ngx-tooltip",""]],hostBindings:function(n,d){1&n&&e.NdJ("focusin",function(){return d.onFocus()})("blur",function(){return d.onBlur()})("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(H){return d.onMouseLeave(H.target)})("click",function(){return d.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTitle:"tooltipTitle",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),f})(),wl=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({providers:[X1,Yc],imports:[[t.ez]]}),f})();function Ha(f){return f instanceof Date?f.toLocaleDateString():f.toLocaleString()}const V2={};function $a(){let f=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return f=`a${f}`,V2[f]?$a():(V2[f]=!0,f)}var sr=(()=>{return(f=sr||(sr={})).Vertical="vertical",f.Horizontal="horizontal",sr;var f})();let to=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:Ad,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(n,d){1&n&&(e.O4$(),e._UZ(0,"rect",0)),2&n&&e.uIk("height",d.height)("width",d.width)("x",d.x)("y",d.y)},encapsulation:2,changeDetection:0}),f})();var oc=(()=>{return(f=oc||(oc={})).Odd="odd",f.Even="even",oc;var f})();let Y2,e0=(()=>{class f{ngOnChanges(n){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(n=>{let d,R,H,se,Le,dt=oc.Odd;if(this.orient===sr.Vertical){const pt=this.xScale(n.name);Number.parseInt((pt/this.xScale.step()).toString(),10)%2==1&&(dt=oc.Even),d=this.xScale.bandwidth()*this.xScale.paddingInner(),R=this.xScale.bandwidth()+d,H=this.dims.height,se=this.xScale(n.name)-d/2,Le=0}else if(this.orient===sr.Horizontal){const pt=this.yScale(n.name);Number.parseInt((pt/this.yScale.step()).toString(),10)%2==1&&(dt=oc.Even),d=this.yScale.bandwidth()*this.yScale.paddingInner(),R=this.dims.width,H=this.yScale.bandwidth()+d,se=0,Le=this.yScale(n.name)-d/2}return{name:n.name,class:dt,height:H,width:R,x:se,y:Le}})}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[e.TTD],attrs:To,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(n,d){1&n&&e.YNc(0,Y1,1,10,"g",0),2&n&&e.Q6J("ngForOf",d.gridPanels)},directives:[t.sg,to],encapsulation:2,changeDetection:0}),f})(),es=(()=>{class f{constructor(){this.orientation=sr.Vertical}ngOnChanges(n){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===sr.Horizontal?this.x2="100%":this.orientation===sr.Vertical&&(this.y1="100%")}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[e.TTD],attrs:d6,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"linearGradient",0),e.YNc(1,u6,1,5,"stop",1),e.qZA()),2&n&&(e.Q6J("id",d.name),e.uIk("x1",d.x1)("y1",d.y1)("x2",d.x2)("y2",d.y2),e.xp6(1),e.Q6J("ngForOf",d.stops))},directives:[t.sg],encapsulation:2,changeDetection:0}),f})();"undefined"!=typeof window?Y2=window:"undefined"!=typeof global&&(Y2=global);let j2=(()=>{class f{constructor(n){this.cd=n,this.horizontal=!1,this.labelClick=new e.vpe,this.labelActivate=new e.vpe,this.labelDeactivate=new e.vpe,this.legendEntries=[]}ngOnChanges(n){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const n=[];for(const d of this.data){const R=Ha(d);-1===n.findIndex(se=>se.label===R)&&n.push({label:d,formattedLabel:R,color:this.colors.getColor(d)})}return n}isActive(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(R=>n.label===R.name)}activate(n){this.labelActivate.emit(n)}deactivate(n){this.labelDeactivate.emit(n)}trackBy(n,d){return d.label}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.sBO))},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[e.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(n,d){1&n&&(e.TgZ(0,"div"),e.YNc(1,p6,3,1,"header",0),e.TgZ(2,"div",1),e.TgZ(3,"ul",2),e.YNc(4,x2,2,4,"li",3),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Udp("width",d.width,"px"),e.xp6(1),e.Q6J("ngIf",(null==d.title?null:d.title.length)>0),e.xp6(2),e.Udp("max-height",d.height-45,"px"),e.ekj("horizontal-legend",d.horizontal),e.xp6(1),e.Q6J("ngForOf",d.legendEntries)("ngForTrackBy",d.trackBy))},directives:function(){return[t.O5,t.sg,wu]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:bold}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),f})(),wu=(()=>{class f{constructor(){this.isActive=!1,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.toggle=new e.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(n,d){1&n&&e.NdJ("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(n,d){1&n&&(e.TgZ(0,"span",0),e.NdJ("click",function(){return d.select.emit(d.formattedLabel)}),e.TgZ(1,"span",1),e.NdJ("click",function(){return d.toggle.emit(d.formattedLabel)}),e.qZA(),e.TgZ(2,"span",2),e._uU(3),e.qZA(),e.qZA()),2&n&&(e.ekj("active",d.isActive),e.Q6J("title",d.formattedLabel),e.xp6(1),e.Udp("background-color",d.color),e.xp6(2),e.hij(" ",d.trimmedLabel," "))},encapsulation:2,changeDetection:0}),f})(),q2=(()=>{class f{constructor(){this.horizontal=!1}ngOnChanges(n){const d=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${d})`}gradientString(n,d){d.push(1);const R=[];return n.reverse().forEach((H,se)=>{R.push(`${H} ${Math.round(100*d[se])}%`)}),R.join(", ")}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[e.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(n,d){1&n&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.qZA(),e._UZ(4,"div",2),e.TgZ(5,"div",1),e.TgZ(6,"span"),e._uU(7),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Udp("height",d.horizontal?void 0:d.height,"px")("width",d.width,"px"),e.ekj("horizontal-legend",d.horizontal),e.xp6(3),e.Oqu(d.valueRange[1].toLocaleString()),e.xp6(1),e.Udp("background",d.gradient),e.xp6(3),e.Oqu(d.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}),f})(),Ys=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[t.ez,Z2,wl],t.ez,Z2,wl]}),f})();function jr({width:f,height:T,margins:n,showXAxis:d=!1,showYAxis:R=!1,xAxisHeight:H=0,yAxisWidth:se=0,showXLabel:Le=!1,showYLabel:dt=!1,showLegend:pt=!1,legendType:Dt=_i.Ordinal,legendPosition:Ht=vr.Right,columns:Zt=12}){let ni=n[3],bi=f,Hi=T-n[0]-n[2];if(pt&&Ht===vr.Right&&(Zt-=Dt===_i.Ordinal?2:1),bi=bi*Zt/12,bi=bi-n[1]-n[3],d&&(Hi-=5,Hi-=H,Le&&(Hi-=30)),R&&(bi-=5,bi-=se,ni+=se,ni+=10,dt)){const hi=30;bi-=hi,ni+=hi}return bi=Math.max(0,bi),Hi=Math.max(0,Hi),{width:Math.floor(bi),height:Math.floor(Hi),xOffset:Math.floor(ni)}}let J2=[{name:"vivid",selectable:!0,group:_i.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:_i.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:_i.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:_i.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:_i.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:_i.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:_i.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:_i.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:_i.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:_i.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:_i.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:_i.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:_i.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:_i.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:_i.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class qr{constructor(T,n,d,R){"string"==typeof T&&(T=J2.find(H=>H.name===T)),this.colorDomain=T.domain,this.scaleType=n,this.domain=d,this.customColors=R,this.scale=this.generateColorScheme(T,n,this.domain)}generateColorScheme(T,n,d){let R;switch("string"==typeof T&&(T=J2.find(H=>H.name===T)),n){case _i.Quantile:R=Kh().range(T.domain).domain(d);break;case _i.Ordinal:R=I1().range(T.domain).domain(d);break;case _i.Linear:{const H=[...T.domain];1===H.length&&(H.push(H[0]),this.colorDomain=H);const se=Y0(0,1,1/H.length);R=Er().range(H).domain(se)}}return R}getColor(T){if(null==T)throw new Error("Value can not be null");if(this.scaleType===_i.Linear){const n=Er().domain(this.domain).range([0,1]);return this.scale(n(T))}{if("function"==typeof this.customColors)return this.customColors(T);const n=T.toString();let d;return this.customColors&&this.customColors.length>0&&(d=this.customColors.find(R=>R.name.toLowerCase()===n.toLowerCase())),d?d.value:this.scale(T)}}getLinearGradientStops(T,n){void 0===n&&(n=this.domain[0]);const d=Er().domain(this.domain).range([0,1]),R=Tr().domain(this.colorDomain).range([0,1]),H=this.getColor(T),se=d(n),Le=this.getColor(n),dt=d(T);let pt=1,Dt=se;const Ht=[];for(Ht.push({color:Le,offset:se,originalOffset:se,opacity:1});Dt<dt&&pt<this.colorDomain.length;){const Zt=this.colorDomain[pt],ni=R(Zt);if(ni<=se)pt++;else{if(ni.toFixed(4)>=(dt-R.bandwidth()).toFixed(4))break;Ht.push({color:Zt,offset:ni,opacity:1}),Dt=ni,pt++}}if(Ht[Ht.length-1].offset<100&&Ht.push({color:H,offset:dt,opacity:1}),dt===se)Ht[0].offset=0,Ht[1].offset=100;else if(100!==Ht[Ht.length-1].offset)for(const Zt of Ht)Zt.offset=(Zt.offset-se)/(dt-se)*100;return Ht}}let d4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ys]]}),f})(),s0=(()=>{class f{constructor(n){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=n.nativeElement}ngOnChanges(n){n.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+$a().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const n=function(f){return"string"==typeof f?new yi([[document.querySelector(f)]],[document.documentElement]):new yi([[f]],Rt)}(this.element).select(".bar"),d=this.getPath();this.animations?n.transition().duration(500).attr("d",d):n.attr("d",d)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let d,n=this.getRadius();return this.roundEdges?this.orientation===sr.Vertical?(n=Math.min(this.height,n),d=Ws(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===sr.Horizontal&&(n=Math.min(this.width,n),d=Ws(this.x,this.y,1,this.height,0,this.edges)):this.orientation===sr.Vertical?d=Ws(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===sr.Horizontal&&(d=Ws(this.x,this.y,1,this.height,0,this.edges)),d}getPath(){let d,n=this.getRadius();return this.roundEdges?this.orientation===sr.Vertical?(n=Math.min(this.height,n),d=Ws(this.x,this.y,this.width,this.height,n,this.edges)):this.orientation===sr.Horizontal&&(n=Math.min(this.width,n),d=Ws(this.x,this.y,this.width,this.height,n,this.edges)):d=Ws(this.x,this.y,this.width,this.height,n,this.edges),d}getRadius(){let n=0;return this.roundEdges&&this.height>5&&this.width>5&&(n=Math.floor(Math.min(5,this.height/2,this.width/2))),n}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let n=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===sr.Vertical?n=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===sr.Horizontal&&(n=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),n}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===sr.Vertical&&0===this.height||this.orientation===sr.Horizontal&&0===this.width)}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(n,d){1&n&&e.NdJ("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[e.TTD],attrs:h3,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(n,d){1&n&&(e.YNc(0,eo,2,3,"defs",0),e.O4$(),e.TgZ(1,"path",1),e.NdJ("click",function(){return d.select.emit(d.data)}),e.qZA()),2&n&&(e.Q6J("ngIf",d.hasGradient),e.xp6(1),e.ekj("active",d.isActive)("hidden",d.hideBar),e.uIk("d",d.path)("aria-label",d.ariaLabel)("fill",d.hasGradient?d.gradientFill:d.fill))},directives:[t.O5,es],encapsulation:2,changeDetection:0}),f})();var _a=(()=>{return(f=_a||(_a={})).Standard="standard",f.Normalized="normalized",f.Stacked="stacked",_a;var f})();let u4=(()=>{class f extends Yr{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=vr.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=jr({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const n=this.xDomain.length/(this.dims.width/this.barPadding+1);return Tr().range([0,this.dims.width]).paddingInner(n).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const n=Er().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?n.nice():n}getXDomain(){return this.results.map(n=>n.label)}getYDomain(){const n=this.results.map(H=>H.value);let d=this.yScaleMin?Math.min(this.yScaleMin,...n):Math.min(0,...n);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(d=Math.min(d,...this.yAxisTicks));let R=this.yScaleMax?Math.max(this.yScaleMax,...n):Math.max(0,...n);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(R=Math.max(R,...this.yAxisTicks)),[d,R]}onClick(n){this.select.emit(n)}setColors(){let n;n=this.schemeType===_i.Ordinal?this.xDomain:this.yDomain,this.colors=new qr(this.scheme,this.schemeType,n,this.customColors)}getLegendOptions(){const n={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return n.scaleType===_i.Ordinal?(n.domain=this.xDomain,n.colors=this.colors,n.title=this.legendTitle):(n.domain=this.yDomain,n.colors=this.colors.scale),n}updateYAxisWidth({width:n}){this.yAxisWidth=n,this.update()}updateXAxisHeight({height:n}){this.xAxisHeight=n,this.update()}onDataLabelMaxHeightChanged(n){n.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,n.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,n.size.height),n.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(n,d=!1){n=this.results.find(H=>d?H.label===n.name:H.name===n.name),!(this.activeEntries.findIndex(H=>H.name===n.name&&H.value===n.value&&H.series===n.series)>-1)&&(this.activeEntries=[n,...this.activeEntries],this.activate.emit({value:n,entries:this.activeEntries}))}onDeactivate(n,d=!1){n=this.results.find(H=>d?H.label===n.name:H.name===n.name);const R=this.activeEntries.findIndex(H=>H.name===n.name&&H.value===n.value&&H.series===n.series);this.activeEntries.splice(R,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:n,entries:this.activeEntries})}}return f.\u0275fac=function(){let T;return function(d){return(T||(T=e.n5z(f)))(d||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(n,d,R){if(1&n&&e.Suo(R,Fr,5),2&n){let H;e.iGM(H=e.CRH())&&(d.tooltipTemplate=H.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(n,d){1&n&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelClick",function(H){return d.onClick(H)})("legendLabelActivate",function(H){return d.onActivate(H,!0)})("legendLabelDeactivate",function(H){return d.onDeactivate(H,!0)}),e.O4$(),e.TgZ(1,"g",1),e.YNc(2,L6,1,11,"g",2),e.YNc(3,O6,1,9,"g",3),e.TgZ(4,"g",4),e.NdJ("activate",function(H){return d.onActivate(H)})("deactivate",function(H){return d.onDeactivate(H)})("select",function(H){return d.onClick(H)})("dataLabelHeightChanged",function(H){return d.onDataLabelMaxHeightChanged(H)}),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Q6J("view",e.WLB(22,_r,d.width,d.height))("showLegend",d.legend)("legendOptions",d.legendOptions)("activeEntries",d.activeEntries)("animations",d.animations),e.xp6(1),e.uIk("transform",d.transform),e.xp6(1),e.Q6J("ngIf",d.xAxis),e.xp6(1),e.Q6J("ngIf",d.yAxis),e.xp6(1),e.Q6J("xScale",d.xScale)("yScale",d.yScale)("colors",d.colors)("series",d.results)("dims",d.dims)("gradient",d.gradient)("tooltipDisabled",d.tooltipDisabled)("tooltipTemplate",d.tooltipTemplate)("showDataLabel",d.showDataLabel)("dataLabelFormatting",d.dataLabelFormatting)("activeEntries",d.activeEntries)("roundEdges",d.roundEdges)("animations",d.animations)("noBarWhenZero",d.noBarWhenZero))},directives:function(){return[Wr,t.O5,Jc,tr,Xa]},styles:[oa],encapsulation:2,changeDetection:0}),f})(),f4=(()=>{class f extends Yr{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=vr.Right,this.tooltipDisabled=!1,this.scaleType=_i.Ordinal,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new e.vpe,this.deactivate=new e.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.barOrientation=sr,this.trackBy=(n,d)=>d.name}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=jr({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(n,d){n.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,n.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,n.size.height),d===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const n=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Tr().rangeRound([0,this.dims.width]).paddingInner(n).paddingOuter(n/2).domain(this.groupDomain)}getInnerScale(){const n=this.groupScale.bandwidth(),d=this.innerDomain.length/(n/this.barPadding+1);return Tr().rangeRound([0,n]).paddingInner(d).domain(this.innerDomain)}getValueScale(){const n=Er().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?n.nice():n}getGroupDomain(){const n=[];for(const d of this.results)n.includes(d.label)||n.push(d.label);return n}getInnerDomain(){const n=[];for(const d of this.results)for(const R of d.series)n.includes(R.label)||n.push(R.label);return n}getValueDomain(){const n=[];for(const H of this.results)for(const se of H.series)n.includes(se.value)||n.push(se.value);return[Math.min(0,...n),this.yScaleMax?Math.max(this.yScaleMax,...n):Math.max(0,...n)]}groupTransform(n){return`translate(${this.groupScale(n.label)}, 0)`}onClick(n,d){d&&(n.series=d.name),this.select.emit(n)}setColors(){let n;n=this.schemeType===_i.Ordinal?this.innerDomain:this.valueDomain,this.colors=new qr(this.scheme,this.schemeType,n,this.customColors)}getLegendOptions(){const n={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return n.scaleType===_i.Ordinal?(n.domain=this.innerDomain,n.colors=this.colors,n.title=this.legendTitle):(n.domain=this.valueDomain,n.colors=this.colors.scale),n}updateYAxisWidth({width:n}){this.yAxisWidth=n,this.update()}updateXAxisHeight({height:n}){this.xAxisHeight=n,this.update()}onActivate(n,d,R=!1){const H=Object.assign({},n);d&&(H.series=d.name);const se=this.results.map(Le=>Le.series).flat().filter(Le=>R?Le.label===H.name:Le.name===H.name&&Le.series===H.series);this.activeEntries=[...se],this.activate.emit({value:H,entries:this.activeEntries})}onDeactivate(n,d,R=!1){const H=Object.assign({},n);d&&(H.series=d.name),this.activeEntries=this.activeEntries.filter(se=>R?se.label!==H.name:!(se.name===H.name&&se.series===H.series)),this.deactivate.emit({value:H,entries:this.activeEntries})}}return f.\u0275fac=function(){let T;return function(d){return(T||(T=e.n5z(f)))(d||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(n,d,R){if(1&n&&e.Suo(R,Fr,5),2&n){let H;e.iGM(H=e.CRH())&&(d.tooltipTemplate=H.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[e.qOj],decls:6,vars:18,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","",3,"xScale","yScale","data","dims","orient"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(n,d){1&n&&(e.TgZ(0,"ngx-charts-chart",0),e.NdJ("legendLabelActivate",function(H){return d.onActivate(H,void 0,!0)})("legendLabelDeactivate",function(H){return d.onDeactivate(H,void 0,!0)})("legendLabelClick",function(H){return d.onClick(H)}),e.O4$(),e.TgZ(1,"g",1),e._UZ(2,"g",2),e.YNc(3,I6,1,10,"g",3),e.YNc(4,k6,1,9,"g",4),e.YNc(5,R6,1,17,"g",5),e.qZA(),e.qZA()),2&n&&(e.Q6J("view",e.WLB(15,_r,d.width,d.height))("showLegend",d.legend)("legendOptions",d.legendOptions)("activeEntries",d.activeEntries)("animations",d.animations),e.xp6(1),e.uIk("transform",d.transform),e.xp6(1),e.Q6J("xScale",d.groupScale)("yScale",d.valueScale)("data",d.results)("dims",d.dims)("orient",d.barOrientation.Vertical),e.xp6(1),e.Q6J("ngIf",d.xAxis),e.xp6(1),e.Q6J("ngIf",d.yAxis),e.xp6(1),e.Q6J("ngForOf",d.results)("ngForTrackBy",d.trackBy))},directives:function(){return[Wr,e0,t.O5,t.sg,tr,Xa,Jc]},styles:[oa],encapsulation:2,data:{animation:[(0,c.X$)("animationState",[(0,c.eR)(":leave",[(0,c.oB)({opacity:1,transform:"*"}),(0,c.jt)(500,(0,c.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),f})();var Os=(()=>{return(f=Os||(Os={})).positive="positive",f.negative="negative",Os;var f})();let Jc=(()=>{class f{constructor(){this.type=_a.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new e.vpe,this.activate=new e.vpe,this.deactivate=new e.vpe,this.dataLabelHeightChanged=new e.vpe,this.barsForDataLabels=[],this.barOrientation=sr}ngOnChanges(n){this.update()}update(){let n;this.updateTooltipSettings(),this.series.length&&(n=this.xScale.bandwidth()),n=Math.round(n);const d=Math.max(this.yScale.domain()[0],0),R={[Os.positive]:0,[Os.negative]:0};let se,H=Os.positive;this.type===_a.Normalized&&(se=this.series.map(Le=>Le.value).reduce((Le,dt)=>Le+dt,0)),this.bars=this.series.map((Le,dt)=>{let pt=Le.value;const Dt=this.getLabel(Le),Ht=Ha(Dt);H=pt>0?Os.positive:Os.negative;const ni={value:pt,label:Dt,roundEdges:this.roundEdges,data:Le,width:n,formattedLabel:Ht,height:0,x:0,y:0};if(this.type===_a.Standard)ni.height=Math.abs(this.yScale(pt)-this.yScale(d)),ni.x=this.xScale(Dt),ni.y=this.yScale(pt<0?0:pt);else if(this.type===_a.Stacked){const Hi=R[H],hi=Hi+pt;R[H]+=pt,ni.height=this.yScale(Hi)-this.yScale(hi),ni.x=0,ni.y=this.yScale(hi),ni.offset0=Hi,ni.offset1=hi}else if(this.type===_a.Normalized){let Hi=R[H],hi=Hi+pt;R[H]+=pt,se>0?(Hi=100*Hi/se,hi=100*hi/se):(Hi=0,hi=0),ni.height=this.yScale(Hi)-this.yScale(hi),ni.x=0,ni.y=this.yScale(hi),ni.offset0=Hi,ni.offset1=hi,pt=(hi-Hi).toFixed(2)+"%"}this.colors.scaleType===_i.Ordinal?ni.color=this.colors.getColor(Dt):this.type===_a.Standard?(ni.color=this.colors.getColor(pt),ni.gradientStops=this.colors.getLinearGradientStops(pt)):(ni.color=this.colors.getColor(ni.offset1),ni.gradientStops=this.colors.getLinearGradientStops(ni.offset1,ni.offset0));let bi=Ht;return ni.ariaLabel=Ht+" "+pt.toLocaleString(),null!=this.seriesName&&(bi=`${this.seriesName} \u2022 ${Ht}`,ni.data.series=this.seriesName,ni.ariaLabel=this.seriesName+" "+ni.ariaLabel),ni.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${function(f){return f.toLocaleString().replace(/[&'`"<>]/g,T=>({"&":"&amp;","'":"&#x27;","`":"&#x60;",'"':"&quot;","<":"&lt;",">":"&gt;"}[T]))}(bi)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(pt):pt.toLocaleString()}</span>\n `,ni}),this.updateDataLabels()}updateDataLabels(){if(this.type===_a.Stacked){this.barsForDataLabels=[];const n={};n.series=this.seriesName;const d=this.series.map(H=>H.value).reduce((H,se)=>se>0?H+se:H,0),R=this.series.map(H=>H.value).reduce((H,se)=>se<0?H+se:H,0);n.total=d+R,n.x=0,n.y=0,n.height=this.yScale(n.total>0?d:R),n.width=this.xScale.bandwidth(),this.barsForDataLabels.push(n)}else this.barsForDataLabels=this.series.map(n=>{var d;const R={};return R.series=null!==(d=this.seriesName)&&void 0!==d?d:n.label,R.total=n.value,R.x=this.xScale(n.label),R.y=this.yScale(0),R.height=this.yScale(R.total)-this.yScale(0),R.width=this.xScale.bandwidth(),R})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Ln.Top,this.tooltipType=this.tooltipDisabled?void 0:ds.tooltip}isActive(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(R=>n.name===R.name&&n.value===R.value)}onClick(n){this.select.emit(n)}getLabel(n){return n.label?n.label:n.name}trackBy(n,d){return d.label}trackDataLabelBy(n,d){return n+"#"+d.series+"#"+d.total}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[e.TTD],attrs:hs,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(n,d){1&n&&(e.YNc(0,Cl,1,22,"g",0),e.YNc(1,Gs,2,2,"g",1)),2&n&&(e.Q6J("ngForOf",d.bars)("ngForTrackBy",d.trackBy),e.xp6(1),e.Q6J("ngIf",d.showDataLabel))},directives:function(){return[t.sg,t.O5,s0,Ss,Eu]},encapsulation:2,data:{animation:[(0,c.X$)("animationState",[(0,c.eR)(":leave",[(0,c.oB)({opacity:1}),(0,c.jt)(500,(0,c.oB)({opacity:0}))])])]},changeDetection:0}),f})(),Eu=(()=>{class f{constructor(n){this.dimensionsChanged=new e.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=n.nativeElement}ngOnChanges(n){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):Ha(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return f.\u0275fac=function(n){return new(n||f)(e.Y36(e.SBq))},f.\u0275cmp=e.Xpm({type:f,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[e.TTD],attrs:T2,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(n,d){1&n&&(e.O4$(),e.TgZ(0,"text",0),e._uU(1),e.qZA()),2&n&&(e.uIk("text-anchor",d.textAnchor)("transform",d.transform)("x",d.x)("y",d.y),e.xp6(1),e.hij(" ",d.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),f})(),Tu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ys]]}),f})(),Lu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ys]]}),f})(),Iu=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ys]]}),f})(),Sl=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ys]]}),f})(),m4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ys]]}),f})();Math;let ea=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ys]]}),f})(),I3=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ys,ea,m4]]}),f})(),b4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ys]]}),f})(),C4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ys]]}),f})(),J3=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ys,ea,Tu]]}),f})(),oh=(()=>{class f{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[Ys,d4,Tu,Lu,Iu,Sl,m4,I3,b4,ea,C4,J3]}),f})()},7977:(Ze,K,m)=>{"use strict";const e=K;e.bignum=m(3854),e.define=m(9516).define,e.base=m(7813),e.constants=m(5459),e.decoders=m(196),e.encoders=m(1131)},9516:(Ze,K,m)=>{"use strict";const e=m(1131),t=m(196),v=m(3894);function s(M,c){this.name=M,this.body=c,this.decoders={},this.encoders={}}K.define=function(c,N){return new s(c,N)},s.prototype._createNamed=function(c){const N=this.name;function o(L){this._initNamed(L,N)}return v(o,c),o.prototype._initNamed=function(O,A){c.call(this,O,A)},new o(this)},s.prototype._getDecoder=function(c){return this.decoders.hasOwnProperty(c=c||"der")||(this.decoders[c]=this._createNamed(t[c])),this.decoders[c]},s.prototype.decode=function(c,N,o){return this._getDecoder(N).decode(c,o)},s.prototype._getEncoder=function(c){return this.encoders.hasOwnProperty(c=c||"der")||(this.encoders[c]=this._createNamed(e[c])),this.encoders[c]},s.prototype.encode=function(c,N,o){return this._getEncoder(N).encode(c,o)}},2769:(Ze,K,m)=>{"use strict";const e=m(3894),t=m(4919).b,v=m(2038).Buffer;function C(M,c){t.call(this,c),v.isBuffer(M)?(this.base=M,this.offset=0,this.length=M.length):this.error("Input not Buffer")}function s(M,c){if(Array.isArray(M))this.length=0,this.value=M.map(function(N){return s.isEncoderBuffer(N)||(N=new s(N,c)),this.length+=N.length,N},this);else if("number"==typeof M){if(!(0<=M&&M<=255))return c.error("non-byte EncoderBuffer value");this.value=M,this.length=1}else if("string"==typeof M)this.value=M,this.length=v.byteLength(M);else{if(!v.isBuffer(M))return c.error("Unsupported type: "+typeof M);this.value=M,this.length=M.length}}e(C,t),K.C=C,C.isDecoderBuffer=function(c){return c instanceof C||"object"==typeof c&&v.isBuffer(c.base)&&"DecoderBuffer"===c.constructor.name&&"number"==typeof c.offset&&"number"==typeof c.length&&"function"==typeof c.save&&"function"==typeof c.restore&&"function"==typeof c.isEmpty&&"function"==typeof c.readUInt8&&"function"==typeof c.skip&&"function"==typeof c.raw},C.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},C.prototype.restore=function(c){const N=new C(this.base);return N.offset=c.offset,N.length=this.offset,this.offset=c.offset,t.prototype.restore.call(this,c.reporter),N},C.prototype.isEmpty=function(){return this.offset===this.length},C.prototype.readUInt8=function(c){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(c||"DecoderBuffer overrun")},C.prototype.skip=function(c,N){if(!(this.offset+c<=this.length))return this.error(N||"DecoderBuffer overrun");const o=new C(this.base);return o._reporterState=this._reporterState,o.offset=this.offset,o.length=this.offset+c,this.offset+=c,o},C.prototype.raw=function(c){return this.base.slice(c?c.offset:this.offset,this.length)},K.R=s,s.isEncoderBuffer=function(c){return c instanceof s||"object"==typeof c&&"EncoderBuffer"===c.constructor.name&&"number"==typeof c.length&&"function"==typeof c.join},s.prototype.join=function(c,N){return c||(c=v.alloc(this.length)),N||(N=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(o){o.join(c,N),N+=o.length}):("number"==typeof this.value?c[N]=this.value:"string"==typeof this.value?c.write(this.value,N):v.isBuffer(this.value)&&this.value.copy(c,N),N+=this.length)),c}},7813:(Ze,K,m)=>{"use strict";const e=K;e.Reporter=m(4919).b,e.DecoderBuffer=m(2769).C,e.EncoderBuffer=m(2769).R,e.Node=m(1430)},1430:(Ze,K,m)=>{"use strict";const e=m(4919).b,t=m(2769).R,v=m(2769).C,C=m(2391),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],M=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function N(L,O,A){const E={};this._baseState=E,E.name=A,E.enc=L,E.parent=O||null,E.children=null,E.tag=null,E.args=null,E.reverseArgs=null,E.choice=null,E.optional=!1,E.any=!1,E.obj=!1,E.use=null,E.useDecoder=null,E.key=null,E.default=null,E.explicit=null,E.implicit=null,E.contains=null,E.parent||(E.children=[],this._wrap())}Ze.exports=N;const o=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];N.prototype.clone=function(){const O=this._baseState,A={};o.forEach(function(k){A[k]=O[k]});const E=new this.constructor(A.parent);return E._baseState=A,E},N.prototype._wrap=function(){const O=this._baseState;M.forEach(function(A){this[A]=function(){const k=new this.constructor(this);return O.children.push(k),k[A].apply(k,arguments)}},this)},N.prototype._init=function(O){const A=this._baseState;C(null===A.parent),O.call(this),A.children=A.children.filter(function(E){return E._baseState.parent===this},this),C.equal(A.children.length,1,"Root node can have only one child")},N.prototype._useArgs=function(O){const A=this._baseState,E=O.filter(function(k){return k instanceof this.constructor},this);O=O.filter(function(k){return!(k instanceof this.constructor)},this),0!==E.length&&(C(null===A.children),A.children=E,E.forEach(function(k){k._baseState.parent=this},this)),0!==O.length&&(C(null===A.args),A.args=O,A.reverseArgs=O.map(function(k){if("object"!=typeof k||k.constructor!==Object)return k;const w={};return Object.keys(k).forEach(function(V){V==(0|V)&&(V|=0),w[k[V]]=V}),w}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(L){N.prototype[L]=function(){throw new Error(L+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(L){N.prototype[L]=function(){const A=this._baseState,E=Array.prototype.slice.call(arguments);return C(null===A.tag),A.tag=L,this._useArgs(E),this}}),N.prototype.use=function(O){C(O);const A=this._baseState;return C(null===A.use),A.use=O,this},N.prototype.optional=function(){return this._baseState.optional=!0,this},N.prototype.def=function(O){const A=this._baseState;return C(null===A.default),A.default=O,A.optional=!0,this},N.prototype.explicit=function(O){const A=this._baseState;return C(null===A.explicit&&null===A.implicit),A.explicit=O,this},N.prototype.implicit=function(O){const A=this._baseState;return C(null===A.explicit&&null===A.implicit),A.implicit=O,this},N.prototype.obj=function(){const O=this._baseState,A=Array.prototype.slice.call(arguments);return O.obj=!0,0!==A.length&&this._useArgs(A),this},N.prototype.key=function(O){const A=this._baseState;return C(null===A.key),A.key=O,this},N.prototype.any=function(){return this._baseState.any=!0,this},N.prototype.choice=function(O){const A=this._baseState;return C(null===A.choice),A.choice=O,this._useArgs(Object.keys(O).map(function(E){return O[E]})),this},N.prototype.contains=function(O){const A=this._baseState;return C(null===A.use),A.contains=O,this},N.prototype._decode=function(O,A){const E=this._baseState;if(null===E.parent)return O.wrapResult(E.children[0]._decode(O,A));let W,k=E.default,w=!0,V=null;if(null!==E.key&&(V=O.enterKey(E.key)),E.optional){let j=null;if(null!==E.explicit?j=E.explicit:null!==E.implicit?j=E.implicit:null!==E.tag&&(j=E.tag),null!==j||E.any){if(w=this._peekTag(O,j,E.any),O.isError(w))return w}else{const $=O.save();try{null===E.choice?this._decodeGeneric(E.tag,O,A):this._decodeChoice(O,A),w=!0}catch(ee){w=!1}O.restore($)}}if(E.obj&&w&&(W=O.enterObject()),w){if(null!==E.explicit){const $=this._decodeTag(O,E.explicit);if(O.isError($))return $;O=$}const j=O.offset;if(null===E.use&&null===E.choice){let $;E.any&&($=O.save());const ee=this._decodeTag(O,null!==E.implicit?E.implicit:E.tag,E.any);if(O.isError(ee))return ee;E.any?k=O.raw($):O=ee}if(A&&A.track&&null!==E.tag&&A.track(O.path(),j,O.length,"tagged"),A&&A.track&&null!==E.tag&&A.track(O.path(),O.offset,O.length,"content"),E.any||(k=null===E.choice?this._decodeGeneric(E.tag,O,A):this._decodeChoice(O,A)),O.isError(k))return k;if(!E.any&&null===E.choice&&null!==E.children&&E.children.forEach(function(ee){ee._decode(O,A)}),E.contains&&("octstr"===E.tag||"bitstr"===E.tag)){const $=new v(k);k=this._getUse(E.contains,O._reporterState.obj)._decode($,A)}}return E.obj&&w&&(k=O.leaveObject(W)),null===E.key||null===k&&!0!==w?null!==V&&O.exitKey(V):O.leaveKey(V,E.key,k),k},N.prototype._decodeGeneric=function(O,A,E){const k=this._baseState;return"seq"===O||"set"===O?null:"seqof"===O||"setof"===O?this._decodeList(A,O,k.args[0],E):/str$/.test(O)?this._decodeStr(A,O,E):"objid"===O&&k.args?this._decodeObjid(A,k.args[0],k.args[1],E):"objid"===O?this._decodeObjid(A,null,null,E):"gentime"===O||"utctime"===O?this._decodeTime(A,O,E):"null_"===O?this._decodeNull(A,E):"bool"===O?this._decodeBool(A,E):"objDesc"===O?this._decodeStr(A,O,E):"int"===O||"enum"===O?this._decodeInt(A,k.args&&k.args[0],E):null!==k.use?this._getUse(k.use,A._reporterState.obj)._decode(A,E):A.error("unknown tag: "+O)},N.prototype._getUse=function(O,A){const E=this._baseState;return E.useDecoder=this._use(O,A),C(null===E.useDecoder._baseState.parent),E.useDecoder=E.useDecoder._baseState.children[0],E.implicit!==E.useDecoder._baseState.implicit&&(E.useDecoder=E.useDecoder.clone(),E.useDecoder._baseState.implicit=E.implicit),E.useDecoder},N.prototype._decodeChoice=function(O,A){const E=this._baseState;let k=null,w=!1;return Object.keys(E.choice).some(function(V){const W=O.save(),j=E.choice[V];try{const $=j._decode(O,A);if(O.isError($))return!1;k={type:V,value:$},w=!0}catch($){return O.restore(W),!1}return!0},this),w?k:O.error("Choice not matched")},N.prototype._createEncoderBuffer=function(O){return new t(O,this.reporter)},N.prototype._encode=function(O,A,E){const k=this._baseState;if(null!==k.default&&k.default===O)return;const w=this._encodeValue(O,A,E);return void 0===w||this._skipDefault(w,A,E)?void 0:w},N.prototype._encodeValue=function(O,A,E){const k=this._baseState;if(null===k.parent)return k.children[0]._encode(O,A||new e);let w=null;if(this.reporter=A,k.optional&&void 0===O){if(null===k.default)return;O=k.default}let V=null,W=!1;if(k.any)w=this._createEncoderBuffer(O);else if(k.choice)w=this._encodeChoice(O,A);else if(k.contains)V=this._getUse(k.contains,E)._encode(O,A),W=!0;else if(k.children)V=k.children.map(function(j){if("null_"===j._baseState.tag)return j._encode(null,A,O);if(null===j._baseState.key)return A.error("Child should have a key");const $=A.enterKey(j._baseState.key);if("object"!=typeof O)return A.error("Child expected, but input is not object");const ee=j._encode(O[j._baseState.key],A,O);return A.leaveKey($),ee},this).filter(function(j){return j}),V=this._createEncoderBuffer(V);else if("seqof"===k.tag||"setof"===k.tag){if(!k.args||1!==k.args.length)return A.error("Too many args for : "+k.tag);if(!Array.isArray(O))return A.error("seqof/setof, but data is not Array");const j=this.clone();j._baseState.implicit=null,V=this._createEncoderBuffer(O.map(function($){return this._getUse(this._baseState.args[0],O)._encode($,A)},j))}else null!==k.use?w=this._getUse(k.use,E)._encode(O,A):(V=this._encodePrimitive(k.tag,O),W=!0);if(!k.any&&null===k.choice){const j=null!==k.implicit?k.implicit:k.tag,$=null===k.implicit?"universal":"context";null===j?null===k.use&&A.error("Tag could be omitted only for .use()"):null===k.use&&(w=this._encodeComposite(j,W,$,V))}return null!==k.explicit&&(w=this._encodeComposite(k.explicit,!1,"context",w)),w},N.prototype._encodeChoice=function(O,A){const E=this._baseState,k=E.choice[O.type];return k||C(!1,O.type+" not found in "+JSON.stringify(Object.keys(E.choice))),k._encode(O.value,A)},N.prototype._encodePrimitive=function(O,A){const E=this._baseState;if(/str$/.test(O))return this._encodeStr(A,O);if("objid"===O&&E.args)return this._encodeObjid(A,E.reverseArgs[0],E.args[1]);if("objid"===O)return this._encodeObjid(A,null,null);if("gentime"===O||"utctime"===O)return this._encodeTime(A,O);if("null_"===O)return this._encodeNull();if("int"===O||"enum"===O)return this._encodeInt(A,E.args&&E.reverseArgs[0]);if("bool"===O)return this._encodeBool(A);if("objDesc"===O)return this._encodeStr(A,O);throw new Error("Unsupported tag: "+O)},N.prototype._isNumstr=function(O){return/^[0-9 ]*$/.test(O)},N.prototype._isPrintstr=function(O){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(O)}},4919:(Ze,K,m)=>{"use strict";const e=m(3894);function t(C){this._reporterState={obj:null,path:[],options:C||{},errors:[]}}function v(C,s){this.path=C,this.rethrow(s)}K.b=t,t.prototype.isError=function(s){return s instanceof v},t.prototype.save=function(){const s=this._reporterState;return{obj:s.obj,pathLen:s.path.length}},t.prototype.restore=function(s){const M=this._reporterState;M.obj=s.obj,M.path=M.path.slice(0,s.pathLen)},t.prototype.enterKey=function(s){return this._reporterState.path.push(s)},t.prototype.exitKey=function(s){const M=this._reporterState;M.path=M.path.slice(0,s-1)},t.prototype.leaveKey=function(s,M,c){const N=this._reporterState;this.exitKey(s),null!==N.obj&&(N.obj[M]=c)},t.prototype.path=function(){return this._reporterState.path.join("/")},t.prototype.enterObject=function(){const s=this._reporterState,M=s.obj;return s.obj={},M},t.prototype.leaveObject=function(s){const M=this._reporterState,c=M.obj;return M.obj=s,c},t.prototype.error=function(s){let M;const c=this._reporterState,N=s instanceof v;if(M=N?s:new v(c.path.map(function(o){return"["+JSON.stringify(o)+"]"}).join(""),s.message||s,s.stack),!c.options.partial)throw M;return N||c.errors.push(M),M},t.prototype.wrapResult=function(s){const M=this._reporterState;return M.options.partial?{result:this.isError(s)?null:s,errors:M.errors}:s},e(v,Error),v.prototype.rethrow=function(s){if(this.message=s+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,v),!this.stack)try{throw new Error(this.message)}catch(M){this.stack=M.stack}return this}},5496:(Ze,K)=>{"use strict";function m(e){const t={};return Object.keys(e).forEach(function(v){(0|v)==v&&(v|=0),t[e[v]]=v}),t}K.tagClass={0:"universal",1:"application",2:"context",3:"private"},K.tagClassByName=m(K.tagClass),K.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},K.tagByName=m(K.tag)},5459:(Ze,K,m)=>{"use strict";const e=K;e._reverse=function(v){const C={};return Object.keys(v).forEach(function(s){(0|s)==s&&(s|=0),C[v[s]]=s}),C},e.der=m(5496)},7127:(Ze,K,m)=>{"use strict";const e=m(3894),t=m(3854),v=m(2769).C,C=m(1430),s=m(5496);function M(L){this.enc="der",this.name=L.name,this.entity=L,this.tree=new c,this.tree._init(L.body)}function c(L){C.call(this,"der",L)}function N(L,O){let A=L.readUInt8(O);if(L.isError(A))return A;const E=s.tagClass[A>>6],k=0==(32&A);if(31==(31&A)){let V=A;for(A=0;128==(128&V);){if(V=L.readUInt8(O),L.isError(V))return V;A<<=7,A|=127&V}}else A&=31;return{cls:E,primitive:k,tag:A,tagStr:s.tag[A]}}function o(L,O,A){let E=L.readUInt8(A);if(L.isError(E))return E;if(!O&&128===E)return null;if(0==(128&E))return E;const k=127&E;if(k>4)return L.error("length octect is too long");E=0;for(let w=0;w<k;w++){E<<=8;const V=L.readUInt8(A);if(L.isError(V))return V;E|=V}return E}Ze.exports=M,M.prototype.decode=function(O,A){return v.isDecoderBuffer(O)||(O=new v(O,A)),this.tree._decode(O,A)},e(c,C),c.prototype._peekTag=function(O,A,E){if(O.isEmpty())return!1;const k=O.save(),w=N(O,'Failed to peek tag: "'+A+'"');return O.isError(w)?w:(O.restore(k),w.tag===A||w.tagStr===A||w.tagStr+"of"===A||E)},c.prototype._decodeTag=function(O,A,E){const k=N(O,'Failed to decode tag of "'+A+'"');if(O.isError(k))return k;let w=o(O,k.primitive,'Failed to get length of "'+A+'"');if(O.isError(w))return w;if(!E&&k.tag!==A&&k.tagStr!==A&&k.tagStr+"of"!==A)return O.error('Failed to match tag: "'+A+'"');if(k.primitive||null!==w)return O.skip(w,'Failed to match body of: "'+A+'"');const V=O.save(),W=this._skipUntilEnd(O,'Failed to skip indefinite length body: "'+this.tag+'"');return O.isError(W)?W:(w=O.offset-V.offset,O.restore(V),O.skip(w,'Failed to match body of: "'+A+'"'))},c.prototype._skipUntilEnd=function(O,A){for(;;){const E=N(O,A);if(O.isError(E))return E;const k=o(O,E.primitive,A);if(O.isError(k))return k;let w;if(w=E.primitive||null!==k?O.skip(k):this._skipUntilEnd(O,A),O.isError(w))return w;if("end"===E.tagStr)break}},c.prototype._decodeList=function(O,A,E,k){const w=[];for(;!O.isEmpty();){const V=this._peekTag(O,"end");if(O.isError(V))return V;const W=E.decode(O,"der",k);if(O.isError(W)&&V)break;w.push(W)}return w},c.prototype._decodeStr=function(O,A){if("bitstr"===A){const E=O.readUInt8();return O.isError(E)?E:{unused:E,data:O.raw()}}if("bmpstr"===A){const E=O.raw();if(E.length%2==1)return O.error("Decoding of string type: bmpstr length mismatch");let k="";for(let w=0;w<E.length/2;w++)k+=String.fromCharCode(E.readUInt16BE(2*w));return k}if("numstr"===A){const E=O.raw().toString("ascii");return this._isNumstr(E)?E:O.error("Decoding of string type: numstr unsupported characters")}if("octstr"===A)return O.raw();if("objDesc"===A)return O.raw();if("printstr"===A){const E=O.raw().toString("ascii");return this._isPrintstr(E)?E:O.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(A)?O.raw().toString():O.error("Decoding of string type: "+A+" unsupported")},c.prototype._decodeObjid=function(O,A,E){let k;const w=[];let V=0,W=0;for(;!O.isEmpty();)W=O.readUInt8(),V<<=7,V|=127&W,0==(128&W)&&(w.push(V),V=0);if(128&W&&w.push(V),k=E?w:[w[0]/40|0,w[0]%40].concat(w.slice(1)),A){let ee=A[k.join(" ")];void 0===ee&&(ee=A[k.join(".")]),void 0!==ee&&(k=ee)}return k},c.prototype._decodeTime=function(O,A){const E=O.raw().toString();let k,w,V,W,j,$;if("gentime"===A)k=0|E.slice(0,4),w=0|E.slice(4,6),V=0|E.slice(6,8),W=0|E.slice(8,10),j=0|E.slice(10,12),$=0|E.slice(12,14);else{if("utctime"!==A)return O.error("Decoding "+A+" time is not supported yet");k=0|E.slice(0,2),w=0|E.slice(2,4),V=0|E.slice(4,6),W=0|E.slice(6,8),j=0|E.slice(8,10),$=0|E.slice(10,12),k=k<70?2e3+k:1900+k}return Date.UTC(k,w-1,V,W,j,$,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(O){const A=O.readUInt8();return O.isError(A)?A:0!==A},c.prototype._decodeInt=function(O,A){const E=O.raw();let k=new t(E);return A&&(k=A[k.toString(10)]||k),k},c.prototype._use=function(O,A){return"function"==typeof O&&(O=O(A)),O._getDecoder("der").tree}},196:(Ze,K,m)=>{"use strict";const e=K;e.der=m(7127),e.pem=m(9617)},9617:(Ze,K,m)=>{"use strict";const e=m(3894),t=m(2038).Buffer,v=m(7127);function C(s){v.call(this,s),this.enc="pem"}e(C,v),Ze.exports=C,C.prototype.decode=function(M,c){const N=M.toString().split(/[\r\n]+/g),o=c.label.toUpperCase(),L=/^-----(BEGIN|END) ([^-]+)-----$/;let O=-1,A=-1;for(let w=0;w<N.length;w++){const V=N[w].match(L);if(null!==V&&V[2]===o){if(-1!==O){if("END"!==V[1])break;A=w;break}if("BEGIN"!==V[1])break;O=w}}if(-1===O||-1===A)throw new Error("PEM section not found for: "+o);const E=N.slice(O+1,A).join("");E.replace(/[^a-z0-9+/=]+/gi,"");const k=t.from(E,"base64");return v.prototype.decode.call(this,k,c)}},6374:(Ze,K,m)=>{"use strict";const e=m(3894),t=m(2038).Buffer,v=m(1430),C=m(5496);function s(o){this.enc="der",this.name=o.name,this.entity=o,this.tree=new M,this.tree._init(o.body)}function M(o){v.call(this,"der",o)}function c(o){return o<10?"0"+o:o}Ze.exports=s,s.prototype.encode=function(L,O){return this.tree._encode(L,O).join()},e(M,v),M.prototype._encodeComposite=function(L,O,A,E){const k=function(o,L,O,A){let E;if("seqof"===o?o="seq":"setof"===o&&(o="set"),C.tagByName.hasOwnProperty(o))E=C.tagByName[o];else{if("number"!=typeof o||(0|o)!==o)return A.error("Unknown tag: "+o);E=o}return E>=31?A.error("Multi-octet tag encoding unsupported"):(L||(E|=32),E|=C.tagClassByName[O||"universal"]<<6,E)}(L,O,A,this.reporter);if(E.length<128){const W=t.alloc(2);return W[0]=k,W[1]=E.length,this._createEncoderBuffer([W,E])}let w=1;for(let W=E.length;W>=256;W>>=8)w++;const V=t.alloc(2+w);V[0]=k,V[1]=128|w;for(let W=1+w,j=E.length;j>0;W--,j>>=8)V[W]=255&j;return this._createEncoderBuffer([V,E])},M.prototype._encodeStr=function(L,O){if("bitstr"===O)return this._createEncoderBuffer([0|L.unused,L.data]);if("bmpstr"===O){const A=t.alloc(2*L.length);for(let E=0;E<L.length;E++)A.writeUInt16BE(L.charCodeAt(E),2*E);return this._createEncoderBuffer(A)}return"numstr"===O?this._isNumstr(L)?this._createEncoderBuffer(L):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===O?this._isPrintstr(L)?this._createEncoderBuffer(L):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(O)||"objDesc"===O?this._createEncoderBuffer(L):this.reporter.error("Encoding of string type: "+O+" unsupported")},M.prototype._encodeObjid=function(L,O,A){if("string"==typeof L){if(!O)return this.reporter.error("string objid given, but no values map found");if(!O.hasOwnProperty(L))return this.reporter.error("objid not found in values map");L=O[L].split(/[\s.]+/g);for(let V=0;V<L.length;V++)L[V]|=0}else if(Array.isArray(L)){L=L.slice();for(let V=0;V<L.length;V++)L[V]|=0}if(!Array.isArray(L))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(L));if(!A){if(L[1]>=40)return this.reporter.error("Second objid identifier OOB");L.splice(0,2,40*L[0]+L[1])}let E=0;for(let V=0;V<L.length;V++){let W=L[V];for(E++;W>=128;W>>=7)E++}const k=t.alloc(E);let w=k.length-1;for(let V=L.length-1;V>=0;V--){let W=L[V];for(k[w--]=127&W;(W>>=7)>0;)k[w--]=128|127&W}return this._createEncoderBuffer(k)},M.prototype._encodeTime=function(L,O){let A;const E=new Date(L);return"gentime"===O?A=[c(E.getUTCFullYear()),c(E.getUTCMonth()+1),c(E.getUTCDate()),c(E.getUTCHours()),c(E.getUTCMinutes()),c(E.getUTCSeconds()),"Z"].join(""):"utctime"===O?A=[c(E.getUTCFullYear()%100),c(E.getUTCMonth()+1),c(E.getUTCDate()),c(E.getUTCHours()),c(E.getUTCMinutes()),c(E.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+O+" time is not supported yet"),this._encodeStr(A,"octstr")},M.prototype._encodeNull=function(){return this._createEncoderBuffer("")},M.prototype._encodeInt=function(L,O){if("string"==typeof L){if(!O)return this.reporter.error("String int or enum given, but no values map");if(!O.hasOwnProperty(L))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(L));L=O[L]}if("number"!=typeof L&&!t.isBuffer(L)){const k=L.toArray();!L.sign&&128&k[0]&&k.unshift(0),L=t.from(k)}if(t.isBuffer(L)){let k=L.length;0===L.length&&k++;const w=t.alloc(k);return L.copy(w),0===L.length&&(w[0]=0),this._createEncoderBuffer(w)}if(L<128)return this._createEncoderBuffer(L);if(L<256)return this._createEncoderBuffer([0,L]);let A=1;for(let k=L;k>=256;k>>=8)A++;const E=new Array(A);for(let k=E.length-1;k>=0;k--)E[k]=255&L,L>>=8;return 128&E[0]&&E.unshift(0),this._createEncoderBuffer(t.from(E))},M.prototype._encodeBool=function(L){return this._createEncoderBuffer(L?255:0)},M.prototype._use=function(L,O){return"function"==typeof L&&(L=L(O)),L._getEncoder("der").tree},M.prototype._skipDefault=function(L,O,A){const E=this._baseState;let k;if(null===E.default)return!1;const w=L.join();if(void 0===E.defaultBuffer&&(E.defaultBuffer=this._encodeValue(E.default,O,A).join()),w.length!==E.defaultBuffer.length)return!1;for(k=0;k<w.length;k++)if(w[k]!==E.defaultBuffer[k])return!1;return!0}},1131:(Ze,K,m)=>{"use strict";const e=K;e.der=m(6374),e.pem=m(3530)},3530:(Ze,K,m)=>{"use strict";const e=m(3894),t=m(6374);function v(C){t.call(this,C),this.enc="pem"}e(v,t),Ze.exports=v,v.prototype.encode=function(s,M){const N=t.prototype.encode.call(this,s).toString("base64"),o=["-----BEGIN "+M.label+"-----"];for(let L=0;L<N.length;L+=64)o.push(N.slice(L,L+64));return o.push("-----END "+M.label+"-----"),o.join("\n")}},3854:function(Ze,K,m){!function(e,t){"use strict";function v(y,i){if(!y)throw new Error(i||"Assertion failed")}function C(y,i){y.super_=i;var a=function(){};a.prototype=i.prototype,y.prototype=new a,y.prototype.constructor=y}function s(y,i,a){if(s.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,null!==y&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(y||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(950).Buffer}catch(y){}function c(y,i){var a=y.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(y,i,a){var p=c(y,a);return a-1>=i&&(p|=c(y,a-1)<<4),p}function o(y,i,a,p){for(var u=0,_=Math.min(y.length,a),D=i;D<_;D++){var I=y.charCodeAt(D)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),v(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u<i.length&&(16===a?this._parseHex(i,u,p):(this._parseBase(i,a,u),"le"===p&&this._initArray(this.toArray(),a,p)))},s.prototype._initNumber=function(i,a,p){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(v(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===p&&this._initArray(this.toArray(),a,p)},s.prototype._initArray=function(i,a,p){if(v("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var _,D,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=D>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(D=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=D>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},s.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var I,_=0,D=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=N(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=N(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;this.strip()},s.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,I=D%u,x=Math.min(D,D-I)+p,r=0,b=p;b<x;b+=u)r=o(i,b,b+u,a),this.imuln(_),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(0!==I){var Z=1;for(r=o(i,b,i.length,a),b=0;b<I;b++)Z*=a;this.imuln(Z),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},s.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var L=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],O=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(y,i,a){a.negative=i.negative^y.negative;var p=y.length+i.length|0;a.length=p,p=p-1|0;var u=0|y.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r<p;r++){for(var b=x>>>26,Z=67108863&x,P=Math.min(r,i.length-1),U=Math.max(0,r-y.length+1);U<=P;U++)b+=(D=(u=0|y.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D<this.length;D++){var I=this.words[D],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=O[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var P=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?P+p:L[r-P.length]+P+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}v(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return v(void 0!==M),this.toArrayLike(M,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);v(u<=_,"byte array longer than desired length"),v(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,I=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[_-r-1]=x}return I},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var p=this._zeroBits(this.words[a]);if(i+=p,26!==p)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return v(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;p<a.length;p++)this.words[p]=this.words[p]&i.words[p];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return v(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;u<p.length;u++)this.words[u]=a.words[u]^p.words[u];if(this!==a)for(;u<a.length;u++)this.words[u]=a.words[u];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return v(0==(this.negative|i.negative)),this.iuxor(i)},s.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){v("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u<a;u++)this.words[u]=67108863&~this.words[u];return p>0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){v("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<<u:this.words[p]&~(1<<u),this.strip()},s.prototype.iadd=function(i){var a,p,u;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D<u.length;D++)this.words[D]=67108863&(a=(0|p.words[D])+(0|u.words[D])+_),_=a>>>26;for(;0!==_&&D<p.length;D++)this.words[D]=67108863&(a=(0|p.words[D])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;D<p.length;D++)this.words[D]=p.words[D];return this},s.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,I=0;I<_.length;I++)D=(a=(0|u.words[I])-(0|_.words[I])+D)>>26,this.words[I]=67108863&a;for(;0!==D&&I<u.length;I++)D=(a=(0|u.words[I])+D)>>26,this.words[I]=67108863&a;if(0===D&&I<u.length&&u!==this)for(;I<u.length;I++)this.words[I]=u.words[I];return this.length=Math.max(this.length,I),u!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,a,p){var x,r,b,u=i.words,_=a.words,D=p.words,I=0,Z=0|u[0],P=8191&Z,U=Z>>>13,ye=0|u[1],xe=8191&ye,Ne=ye>>>13,Be=0|u[2],Oe=8191&Be,B=Be>>>13,Me=0|u[3],we=8191&Me,ae=Me>>>13,We=0|u[4],vt=8191&We,Pe=We>>>13,Ve=0|u[5],he=8191&Ve,Ee=Ve>>>13,ke=0|u[6],q=8191&ke,J=ke>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,ht=0|u[8],it=8191&ht,ft=ht>>>13,nt=0|u[9],st=8191&nt,wt=nt>>>13,Bt=0|_[0],Pt=8191&Bt,Vt=Bt>>>13,Oi=0|_[1],jt=8191&Oi,ti=Oi>>>13,Pi=0|_[2],si=8191&Pi,di=Pi>>>13,ze=0|_[3],Te=8191&ze,Y=ze>>>13,ge=0|_[4],Ae=8191&ge,et=ge>>>13,$t=0|_[5],Nt=8191&$t,Xt=$t>>>13,lt=0|_[6],Re=8191&lt,Fe=lt>>>13,rt=0|_[7],ot=8191&rt,At=rt>>>13,li=0|_[8],Ut=8191&li,Ft=li>>>13,Si=0|_[9],ai=8191&Si,ci=Si>>>13;p.negative=i.negative^a.negative,p.length=19;var rn=(I+(x=Math.imul(P,Pt))|0)+((8191&(r=(r=Math.imul(P,Vt))+Math.imul(U,Pt)|0))<<13)|0;I=((b=Math.imul(U,Vt))+(r>>>13)|0)+(rn>>>26)|0,rn&=67108863,x=Math.imul(xe,Pt),r=(r=Math.imul(xe,Vt))+Math.imul(Ne,Pt)|0,b=Math.imul(Ne,Vt);var Vi=(I+(x=x+Math.imul(P,jt)|0)|0)+((8191&(r=(r=r+Math.imul(P,ti)|0)+Math.imul(U,jt)|0))<<13)|0;I=((b=b+Math.imul(U,ti)|0)+(r>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,x=Math.imul(Oe,Pt),r=(r=Math.imul(Oe,Vt))+Math.imul(B,Pt)|0,b=Math.imul(B,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ti)|0)+Math.imul(Ne,jt)|0,b=b+Math.imul(Ne,ti)|0;var Di=(I+(x=x+Math.imul(P,si)|0)|0)+((8191&(r=(r=r+Math.imul(P,di)|0)+Math.imul(U,si)|0))<<13)|0;I=((b=b+Math.imul(U,di)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Pt),r=(r=Math.imul(we,Vt))+Math.imul(ae,Pt)|0,b=Math.imul(ae,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ti)|0)+Math.imul(B,jt)|0,b=b+Math.imul(B,ti)|0,x=x+Math.imul(xe,si)|0,r=(r=r+Math.imul(xe,di)|0)+Math.imul(Ne,si)|0,b=b+Math.imul(Ne,di)|0;var Xi=(I+(x=x+Math.imul(P,Te)|0)|0)+((8191&(r=(r=r+Math.imul(P,Y)|0)+Math.imul(U,Te)|0))<<13)|0;I=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Pt),r=(r=Math.imul(vt,Vt))+Math.imul(Pe,Pt)|0,b=Math.imul(Pe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ti)|0)+Math.imul(ae,jt)|0,b=b+Math.imul(ae,ti)|0,x=x+Math.imul(Oe,si)|0,r=(r=r+Math.imul(Oe,di)|0)+Math.imul(B,si)|0,b=b+Math.imul(B,di)|0,x=x+Math.imul(xe,Te)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ne,Te)|0,b=b+Math.imul(Ne,Y)|0;var Ke=(I+(x=x+Math.imul(P,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(P,et)|0)+Math.imul(U,Ae)|0))<<13)|0;I=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Pt),r=(r=Math.imul(he,Vt))+Math.imul(Ee,Pt)|0,b=Math.imul(Ee,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ti)|0)+Math.imul(Pe,jt)|0,b=b+Math.imul(Pe,ti)|0,x=x+Math.imul(we,si)|0,r=(r=r+Math.imul(we,di)|0)+Math.imul(ae,si)|0,b=b+Math.imul(ae,di)|0,x=x+Math.imul(Oe,Te)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(B,Te)|0,b=b+Math.imul(B,Y)|0,x=x+Math.imul(xe,Ae)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ne,Ae)|0,b=b+Math.imul(Ne,et)|0;var mt=(I+(x=x+Math.imul(P,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(P,Xt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((b=b+Math.imul(U,Xt)|0)+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(q,Pt),r=(r=Math.imul(q,Vt))+Math.imul(J,Pt)|0,b=Math.imul(J,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ti)|0)+Math.imul(Ee,jt)|0,b=b+Math.imul(Ee,ti)|0,x=x+Math.imul(vt,si)|0,r=(r=r+Math.imul(vt,di)|0)+Math.imul(Pe,si)|0,b=b+Math.imul(Pe,di)|0,x=x+Math.imul(we,Te)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(ae,Te)|0,b=b+Math.imul(ae,Y)|0,x=x+Math.imul(Oe,Ae)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(B,Ae)|0,b=b+Math.imul(B,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Xt)|0)+Math.imul(Ne,Nt)|0,b=b+Math.imul(Ne,Xt)|0;var ve=(I+(x=x+Math.imul(P,Re)|0)|0)+((8191&(r=(r=r+Math.imul(P,Fe)|0)+Math.imul(U,Re)|0))<<13)|0;I=((b=b+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(Ce,Pt),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Pt)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ti)|0)+Math.imul(J,jt)|0,b=b+Math.imul(J,ti)|0,x=x+Math.imul(he,si)|0,r=(r=r+Math.imul(he,di)|0)+Math.imul(Ee,si)|0,b=b+Math.imul(Ee,di)|0,x=x+Math.imul(vt,Te)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Pe,Te)|0,b=b+Math.imul(Pe,Y)|0,x=x+Math.imul(we,Ae)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(ae,Ae)|0,b=b+Math.imul(ae,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Xt)|0)+Math.imul(B,Nt)|0,b=b+Math.imul(B,Xt)|0,x=x+Math.imul(xe,Re)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ne,Re)|0,b=b+Math.imul(Ne,Fe)|0;var qe=(I+(x=x+Math.imul(P,ot)|0)|0)+((8191&(r=(r=r+Math.imul(P,At)|0)+Math.imul(U,ot)|0))<<13)|0;I=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(it,Pt),r=(r=Math.imul(it,Vt))+Math.imul(ft,Pt)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ti)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ti)|0,x=x+Math.imul(q,si)|0,r=(r=r+Math.imul(q,di)|0)+Math.imul(J,si)|0,b=b+Math.imul(J,di)|0,x=x+Math.imul(he,Te)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Ee,Te)|0,b=b+Math.imul(Ee,Y)|0,x=x+Math.imul(vt,Ae)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Pe,Ae)|0,b=b+Math.imul(Pe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Xt)|0)+Math.imul(ae,Nt)|0,b=b+Math.imul(ae,Xt)|0,x=x+Math.imul(Oe,Re)|0,r=(r=r+Math.imul(Oe,Fe)|0)+Math.imul(B,Re)|0,b=b+Math.imul(B,Fe)|0,x=x+Math.imul(xe,ot)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ne,ot)|0,b=b+Math.imul(Ne,At)|0;var _t=(I+(x=x+Math.imul(P,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(P,Ft)|0)+Math.imul(U,Ut)|0))<<13)|0;I=((b=b+Math.imul(U,Ft)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(st,Pt),r=(r=Math.imul(st,Vt))+Math.imul(wt,Pt)|0,b=Math.imul(wt,Vt),x=x+Math.imul(it,jt)|0,r=(r=r+Math.imul(it,ti)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ti)|0,x=x+Math.imul(Ce,si)|0,r=(r=r+Math.imul(Ce,di)|0)+Math.imul(Ue,si)|0,b=b+Math.imul(Ue,di)|0,x=x+Math.imul(q,Te)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul(J,Te)|0,b=b+Math.imul(J,Y)|0,x=x+Math.imul(he,Ae)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Ee,Ae)|0,b=b+Math.imul(Ee,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Xt)|0)+Math.imul(Pe,Nt)|0,b=b+Math.imul(Pe,Xt)|0,x=x+Math.imul(we,Re)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(ae,Re)|0,b=b+Math.imul(ae,Fe)|0,x=x+Math.imul(Oe,ot)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(B,ot)|0,b=b+Math.imul(B,At)|0,x=x+Math.imul(xe,Ut)|0,r=(r=r+Math.imul(xe,Ft)|0)+Math.imul(Ne,Ut)|0,b=b+Math.imul(Ne,Ft)|0;var ue=(I+(x=x+Math.imul(P,ai)|0)|0)+((8191&(r=(r=r+Math.imul(P,ci)|0)+Math.imul(U,ai)|0))<<13)|0;I=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(st,jt),r=(r=Math.imul(st,ti))+Math.imul(wt,jt)|0,b=Math.imul(wt,ti),x=x+Math.imul(it,si)|0,r=(r=r+Math.imul(it,di)|0)+Math.imul(ft,si)|0,b=b+Math.imul(ft,di)|0,x=x+Math.imul(Ce,Te)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Te)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,Ae)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul(J,Ae)|0,b=b+Math.imul(J,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Xt)|0)+Math.imul(Ee,Nt)|0,b=b+Math.imul(Ee,Xt)|0,x=x+Math.imul(vt,Re)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Pe,Re)|0,b=b+Math.imul(Pe,Fe)|0,x=x+Math.imul(we,ot)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(ae,ot)|0,b=b+Math.imul(ae,At)|0,x=x+Math.imul(Oe,Ut)|0,r=(r=r+Math.imul(Oe,Ft)|0)+Math.imul(B,Ut)|0,b=b+Math.imul(B,Ft)|0;var $e=(I+(x=x+Math.imul(xe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ne,ai)|0))<<13)|0;I=((b=b+Math.imul(Ne,ci)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,x=Math.imul(st,si),r=(r=Math.imul(st,di))+Math.imul(wt,si)|0,b=Math.imul(wt,di),x=x+Math.imul(it,Te)|0,r=(r=r+Math.imul(it,Y)|0)+Math.imul(ft,Te)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,Ae)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,Ae)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Xt)|0)+Math.imul(J,Nt)|0,b=b+Math.imul(J,Xt)|0,x=x+Math.imul(he,Re)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Ee,Re)|0,b=b+Math.imul(Ee,Fe)|0,x=x+Math.imul(vt,ot)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Pe,ot)|0,b=b+Math.imul(Pe,At)|0,x=x+Math.imul(we,Ut)|0,r=(r=r+Math.imul(we,Ft)|0)+Math.imul(ae,Ut)|0,b=b+Math.imul(ae,Ft)|0;var St=(I+(x=x+Math.imul(Oe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(B,ai)|0))<<13)|0;I=((b=b+Math.imul(B,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(st,Te),r=(r=Math.imul(st,Y))+Math.imul(wt,Te)|0,b=Math.imul(wt,Y),x=x+Math.imul(it,Ae)|0,r=(r=r+Math.imul(it,et)|0)+Math.imul(ft,Ae)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Xt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Xt)|0,x=x+Math.imul(q,Re)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul(J,Re)|0,b=b+Math.imul(J,Fe)|0,x=x+Math.imul(he,ot)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Ee,ot)|0,b=b+Math.imul(Ee,At)|0,x=x+Math.imul(vt,Ut)|0,r=(r=r+Math.imul(vt,Ft)|0)+Math.imul(Pe,Ut)|0,b=b+Math.imul(Pe,Ft)|0;var Rt=(I+(x=x+Math.imul(we,ai)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(ae,ai)|0))<<13)|0;I=((b=b+Math.imul(ae,ci)|0)+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,x=Math.imul(st,Ae),r=(r=Math.imul(st,et))+Math.imul(wt,Ae)|0,b=Math.imul(wt,et),x=x+Math.imul(it,Nt)|0,r=(r=r+Math.imul(it,Xt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Xt)|0,x=x+Math.imul(Ce,Re)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Ue,Re)|0,b=b+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,ot)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul(J,ot)|0,b=b+Math.imul(J,At)|0,x=x+Math.imul(he,Ut)|0,r=(r=r+Math.imul(he,Ft)|0)+Math.imul(Ee,Ut)|0,b=b+Math.imul(Ee,Ft)|0;var yi=(I+(x=x+Math.imul(vt,ai)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Pe,ai)|0))<<13)|0;I=((b=b+Math.imul(Pe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(st,Nt),r=(r=Math.imul(st,Xt))+Math.imul(wt,Nt)|0,b=Math.imul(wt,Xt),x=x+Math.imul(it,Re)|0,r=(r=r+Math.imul(it,Fe)|0)+Math.imul(ft,Re)|0,b=b+Math.imul(ft,Fe)|0,x=x+Math.imul(Ce,ot)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,ot)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Ut)|0,r=(r=r+Math.imul(q,Ft)|0)+Math.imul(J,Ut)|0,b=b+Math.imul(J,Ft)|0;var Ri=(I+(x=x+Math.imul(he,ai)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Ee,ai)|0))<<13)|0;I=((b=b+Math.imul(Ee,ci)|0)+(r>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,x=Math.imul(st,Re),r=(r=Math.imul(st,Fe))+Math.imul(wt,Re)|0,b=Math.imul(wt,Fe),x=x+Math.imul(it,ot)|0,r=(r=r+Math.imul(it,At)|0)+Math.imul(ft,ot)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Ut)|0,r=(r=r+Math.imul(Ce,Ft)|0)+Math.imul(Ue,Ut)|0,b=b+Math.imul(Ue,Ft)|0;var Ii=(I+(x=x+Math.imul(q,ai)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul(J,ai)|0))<<13)|0;I=((b=b+Math.imul(J,ci)|0)+(r>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,x=Math.imul(st,ot),r=(r=Math.imul(st,At))+Math.imul(wt,ot)|0,b=Math.imul(wt,At),x=x+Math.imul(it,Ut)|0,r=(r=r+Math.imul(it,Ft)|0)+Math.imul(ft,Ut)|0,b=b+Math.imul(ft,Ft)|0;var Ki=(I+(x=x+Math.imul(Ce,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,ai)|0))<<13)|0;I=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,x=Math.imul(st,Ut),r=(r=Math.imul(st,Ft))+Math.imul(wt,Ut)|0,b=Math.imul(wt,Ft);var at=(I+(x=x+Math.imul(it,ai)|0)|0)+((8191&(r=(r=r+Math.imul(it,ci)|0)+Math.imul(ft,ai)|0))<<13)|0;I=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(at>>>26)|0,at&=67108863;var Qt=(I+(x=Math.imul(st,ai))|0)+((8191&(r=(r=Math.imul(st,ci))+Math.imul(wt,ai)|0))<<13)|0;return I=((b=Math.imul(wt,ci))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,D[0]=rn,D[1]=Vi,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=mt,D[6]=ve,D[7]=qe,D[8]=_t,D[9]=ue,D[10]=$e,D[11]=St,D[12]=Rt,D[13]=yi,D[14]=Ri,D[15]=Ii,D[16]=Ki,D[17]=at,D[18]=Qt,0!==I&&(D[19]=I,p.length++),p};function W(y,i,a){return(new j).mulp(y,i,a)}function j(y,i){this.x=y,this.y=i}Math.imul||(w=k),s.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?k(this,i,a):u<1024?function(y,i,a){a.negative=i.negative^y.negative,a.length=y.length+i.length;for(var p=0,u=0,_=0;_<a.length-1;_++){var D=u;u=0;for(var I=67108863&p,x=Math.min(_,i.length-1),r=Math.max(0,_-y.length+1);r<=x;r++){var U=(0|y.words[_-r])*(0|i.words[r]),ye=67108863&U;I=67108863&(ye=ye+I|0),u+=(D=(D=D+(U/67108864|0)|0)+(ye>>>26)|0)>>>26,D&=67108863}a.words[_]=I,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):W(this,i,a),p},j.prototype.makeRBT=function(i){for(var a=new Array(i),p=s.prototype._countBits(i)-1,u=0;u<i;u++)a[u]=this.revBin(u,p,i);return a},j.prototype.revBin=function(i,a,p){if(0===i||i===p-1)return i;for(var u=0,_=0;_<a;_++)u|=(1&i)<<a-_-1,i>>=1;return u},j.prototype.permute=function(i,a,p,u,_,D){for(var I=0;I<D;I++)u[I]=a[i[I]],_[I]=p[i[I]]},j.prototype.transform=function(i,a,p,u,_,D){this.permute(D,i,a,p,u,_);for(var I=1;I<_;I<<=1)for(var x=I<<1,r=Math.cos(2*Math.PI/x),b=Math.sin(2*Math.PI/x),Z=0;Z<_;Z+=x)for(var P=r,U=b,ye=0;ye<I;ye++){var xe=p[Z+ye],Ne=u[Z+ye],Be=p[Z+ye+I],Oe=u[Z+ye+I],B=P*Be-U*Oe;Oe=P*Oe+U*Be,p[Z+ye]=xe+(Be=B),u[Z+ye]=Ne+Oe,p[Z+ye+I]=xe-Be,u[Z+ye+I]=Ne-Oe,ye!==x&&(B=r*P-b*U,U=r*U+b*P,P=B)}},j.prototype.guessLen13b=function(i,a){var p=1|Math.max(a,i),u=1&p,_=0;for(p=p/2|0;p;p>>>=1)_++;return 1<<_+1+u},j.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u<p/2;u++){var _=i[u];i[u]=i[p-u-1],i[p-u-1]=_,_=a[u],a[u]=-a[p-u-1],a[p-u-1]=-_}},j.prototype.normalize13b=function(i,a){for(var p=0,u=0;u<a/2;u++){var _=8192*Math.round(i[2*u+1]/a)+Math.round(i[2*u]/a)+p;i[u]=67108863&_,p=_<67108864?0:_/67108864|0}return i},j.prototype.convert13b=function(i,a,p,u){for(var _=0,D=0;D<a;D++)p[2*D]=8191&(_+=0|i[D]),p[2*D+1]=8191&(_>>>=13),_>>>=13;for(D=2*a;D<u;++D)p[D]=0;v(0===_),v(0==(-8192&_))},j.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},j.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),D=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),b=new Array(u),Z=new Array(u),P=new Array(u),U=p.words;U.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,b,u),this.transform(I,D,x,r,u,_),this.transform(b,D,Z,P,u,_);for(var ye=0;ye<u;ye++){var xe=x[ye]*Z[ye]-r[ye]*P[ye];r[ye]=x[ye]*P[ye]+r[ye]*Z[ye],x[ye]=xe}return this.conjugate(x,r,u),this.transform(x,r,U,D,u,_),this.conjugate(U,D,u),this.normalize13b(U,u),p.negative=i.negative^a.negative,p.length=i.length+a.length,p.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),W(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){v("number"==typeof i),v(i<67108864);for(var a=0,p=0;p<this.length;p++){var u=(0|this.words[p])*i,_=(67108863&u)+(67108863&a);a>>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function(y){for(var i=new Array(y.bitLength()),a=0;a<i.length;a++){var u=a%26;i[a]=(y.words[a/26|0]&1<<u)>>>u}return i}(i);if(0===a.length)return new s(1);for(var p=this,u=0;u<a.length&&0===a[u];u++,p=p.sqr());if(++u<a.length)for(var _=p.sqr();u<a.length;u++,_=_.sqr())0!==a[u]&&(p=p.mul(_));return p},s.prototype.iushln=function(i){v("number"==typeof i&&i>=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|D,D=I>>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_<p;_++)this.words[_]=0;this.length+=p}return this.strip()},s.prototype.ishln=function(i){return v(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,p){var u;v("number"==typeof i&&i>=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;r<D;r++)x.words[r]=this.words[r];x.length=D}if(0!==D)if(this.length>D)for(this.length-=D,r=0;r<this.length;r++)this.words[r]=this.words[r+D];else this.words[0]=0,this.length=1;var b=0;for(r=this.length-1;r>=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&I}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,p){return v(0===this.negative),this.iushrn(i,a,p)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<<a))},s.prototype.imaskn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return v("number"==typeof i),v(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},s.prototype.isubn=function(i){if(v("number"==typeof i),v(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,p){var _;this._expand(i.length+p);var D,I=0;for(_=0;_<i.length;_++){D=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((D-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_<this.length-p;_++)I=(D=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&D;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_<this.length;_++)I=(D=-(0|this.words[_])+I)>>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new s(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b<r.length;b++)r.words[b]=0}var Z=u.clone()._ishlnsubmul(_,1,x);0===Z.negative&&(u=Z,r&&(r.words[x]=1));for(var P=x-1;P>=0;P--){var U=67108864*(0|u.words[_.length+P])+(0|u.words[_.length+P-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,P);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,P),u.isZero()||(u.negative^=1);r&&(r.words[P]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},s.prototype.divmod=function(i,a,p){return v(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){v(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},s.prototype.idivn=function(i){v(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){v(0===i.negative),v(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),D=new s(0),I=new s(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,P=1;0==(a.words[0]&P)&&Z<26;++Z,P<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||I.isOdd())&&(D.iadd(r),I.isub(b)),D.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(I)):(p.isub(a),D.isub(u),I.isub(_))}return{a:D,b:I,gcd:p.iushln(x)}},s.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){v("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<<a;if(this.length<=p)return this._expand(p+1),this.words[p]|=u,this;for(var _=u,D=p;0!==_&&D<this.length;D++){var I=0|this.words[D];_=(I+=_)>>>26,this.words[D]=I&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),v(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:u<i?-1:1}return 0!==this.negative?0|-p:p},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,p=this.length-1;p>=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new re(i)},s.prototype.toRed=function(i){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return v(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return v(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var $={k256:null,p224:null,p192:null,p25519:null};function ee(y,i){this.name=y,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function le(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function te(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function re(y){if("string"==typeof y){var i=s._prime(y);this.m=i.p,this.prime=i}else v(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function pe(y){re.call(this,y),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ee.prototype._tmp=function(){var i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p<this.n?-1:a.ucmp(this.p);return 0===u?(a.words[0]=0,a.length=1):u>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(me,ee),me.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_<u;_++)a.words[_]=i.words[_];if(a.length=u,i.length<=9)return i.words[0]=0,void(i.length=1);var D=i.words[9];for(a.words[a.length++]=D&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|D>>>22,D=I}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p<i.length;p++){var u=0|i.words[p];i.words[p]=67108863&(a+=977*u),a=64*u+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ce,ee),C(le,ee),C(te,ee),te.prototype.imulK=function(i){for(var a=0,p=0;p<i.length;p++){var u=19*(0|i.words[p])+a,_=67108863&u;u>>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if($[i])return $[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new ce;else if("p192"===i)a=new le;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new te}return $[i]=a,a},re.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},re.prototype._verify2=function(i,a){v(0==(i.negative|a.negative),"red works only with positives"),v(i.red&&i.red===a.red,"red works only with red numbers")},re.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},re.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},re.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},re.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},re.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},re.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},re.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},re.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},re.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},re.prototype.isqr=function(i){return this.imul(i,i.clone())},re.prototype.sqr=function(i){return this.mul(i,i)},re.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(v(a%2==1),3===a){var p=this.m.add(new s(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);v(!u.isZero());var D=new s(1).toRed(this),I=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new s(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),P=this.pow(i,u),U=_;0!==P.cmp(D);){for(var ye=P,xe=0;0!==ye.cmp(D);xe++)ye=ye.redSqr();v(xe<U);var Ne=this.pow(b,new s(1).iushln(U-xe-1));Z=Z.redMul(Ne),b=Ne.redSqr(),P=P.redMul(b),U=xe}return Z},re.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},re.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var u=new Array(16);u[0]=new s(1).toRed(this),u[1]=i;for(var _=2;_<u.length;_++)u[_]=this.mul(u[_-1],i);var D=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var P=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==P||0!==I?(I<<=1,I|=P,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[I]),x=0,I=0)):x=0}r=26}return D},re.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},re.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new pe(i)},C(pe,re),pe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},pe.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},pe.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},pe.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},pe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ze=m.nmd(Ze),this)},5343:(Ze,K)=>{"use strict";K.byteLength=function(E){var k=M(E),V=k[1];return 3*(k[0]+V)/4-V},K.toByteArray=function(E){var k,me,w=M(E),V=w[0],W=w[1],j=new t(function(E,k,w){return 3*(k+w)/4-w}(0,V,W)),$=0,ee=W>0?V-4:V;for(me=0;me<ee;me+=4)k=e[E.charCodeAt(me)]<<18|e[E.charCodeAt(me+1)]<<12|e[E.charCodeAt(me+2)]<<6|e[E.charCodeAt(me+3)],j[$++]=k>>16&255,j[$++]=k>>8&255,j[$++]=255&k;return 2===W&&(k=e[E.charCodeAt(me)]<<2|e[E.charCodeAt(me+1)]>>4,j[$++]=255&k),1===W&&(k=e[E.charCodeAt(me)]<<10|e[E.charCodeAt(me+1)]<<4|e[E.charCodeAt(me+2)]>>2,j[$++]=k>>8&255,j[$++]=255&k),j},K.fromByteArray=function(E){for(var k,w=E.length,V=w%3,W=[],j=16383,$=0,ee=w-V;$<ee;$+=j)W.push(O(E,$,$+j>ee?ee:$+j));return 1===V?W.push(m[(k=E[w-1])>>2]+m[k<<4&63]+"=="):2===V&&W.push(m[(k=(E[w-2]<<8)+E[w-1])>>10]+m[k>>4&63]+m[k<<2&63]+"="),W.join("")};for(var m=[],e=[],t="undefined"!=typeof Uint8Array?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C=0,s=v.length;C<s;++C)m[C]=v[C],e[v.charCodeAt(C)]=C;function M(E){var k=E.length;if(k%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=E.indexOf("=");return-1===w&&(w=k),[w,w===k?0:4-w%4]}function L(E){return m[E>>18&63]+m[E>>12&63]+m[E>>6&63]+m[63&E]}function O(E,k,w){for(var W=[],j=k;j<w;j+=3)W.push(L((E[j]<<16&16711680)+(E[j+1]<<8&65280)+(255&E[j+2])));return W.join("")}e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},8538:function(Ze,K,m){!function(e,t){"use strict";function v(p,u){if(!p)throw new Error(u||"Assertion failed")}function C(p,u){p.super_=u;var _=function(){};_.prototype=u.prototype,p.prototype=new _,p.prototype.constructor=p}function s(p,u,_){if(s.isBN(p))return p;this.negative=0,this.words=null,this.length=0,this.red=null,null!==p&&(("le"===u||"be"===u)&&(_=u,u=10),this._init(p||0,u||10,_||"be"))}var M;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(6601).Buffer}catch(p){}function c(p,u){var _=p.charCodeAt(u);return _>=48&&_<=57?_-48:_>=65&&_<=70?_-55:_>=97&&_<=102?_-87:void v(!1,"Invalid character in "+p)}function N(p,u,_){var D=c(p,_);return _-1>=u&&(D|=c(p,_-1)<<4),D}function o(p,u,_,D){for(var I=0,x=0,r=Math.min(p.length,_),b=u;b<r;b++){var Z=p.charCodeAt(b)-48;I*=D,x=Z>=49?Z-49+10:Z>=17?Z-17+10:Z,v(Z>=0&&x<D,"Invalid character"),I+=x}return I}function L(p,u){p.words=u.words,p.length=u.length,p.negative=u.negative,p.red=u.red}if(s.isBN=function(u){return u instanceof s||null!==u&&"object"==typeof u&&u.constructor.wordSize===s.wordSize&&Array.isArray(u.words)},s.max=function(u,_){return u.cmp(_)>0?u:_},s.min=function(u,_){return u.cmp(_)<0?u:_},s.prototype._init=function(u,_,D){if("number"==typeof u)return this._initNumber(u,_,D);if("object"==typeof u)return this._initArray(u,_,D);"hex"===_&&(_=16),v(_===(0|_)&&_>=2&&_<=36);var I=0;"-"===(u=u.toString().replace(/\s+/g,""))[0]&&(I++,this.negative=1),I<u.length&&(16===_?this._parseHex(u,I,D):(this._parseBase(u,_,I),"le"===D&&this._initArray(this.toArray(),_,D)))},s.prototype._initNumber=function(u,_,D){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[67108863&u],this.length=1):u<4503599627370496?(this.words=[67108863&u,u/67108864&67108863],this.length=2):(v(u<9007199254740992),this.words=[67108863&u,u/67108864&67108863,1],this.length=3),"le"===D&&this._initArray(this.toArray(),_,D)},s.prototype._initArray=function(u,_,D){if(v("number"==typeof u.length),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var x,r,b=0;if("be"===D)for(I=u.length-1,x=0;I>=0;I-=3)this.words[x]|=(r=u[I]|u[I-1]<<8|u[I-2]<<16)<<b&67108863,this.words[x+1]=r>>>26-b&67108863,(b+=24)>=26&&(b-=26,x++);else if("le"===D)for(I=0,x=0;I<u.length;I+=3)this.words[x]|=(r=u[I]|u[I+1]<<8|u[I+2]<<16)<<b&67108863,this.words[x+1]=r>>>26-b&67108863,(b+=24)>=26&&(b-=26,x++);return this._strip()},s.prototype._parseHex=function(u,_,D){this.length=Math.ceil((u.length-_)/6),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var b,x=0,r=0;if("be"===D)for(I=u.length-1;I>=_;I-=2)b=N(u,_,I)<<x,this.words[r]|=67108863&b,x>=18?(x-=18,this.words[r+=1]|=b>>>26):x+=8;else for(I=(u.length-_)%2==0?_+1:_;I<u.length;I+=2)b=N(u,_,I)<<x,this.words[r]|=67108863&b,x>=18?(x-=18,this.words[r+=1]|=b>>>26):x+=8;this._strip()},s.prototype._parseBase=function(u,_,D){this.words=[0],this.length=1;for(var I=0,x=1;x<=67108863;x*=_)I++;I--,x=x/_|0;for(var r=u.length-D,b=r%I,Z=Math.min(r,r-b)+D,P=0,U=D;U<Z;U+=I)P=o(u,U,U+I,_),this.imuln(x),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P);if(0!==b){var ye=1;for(P=o(u,U,u.length,_),U=0;U<b;U++)ye*=_;this.imuln(ye),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P)}this._strip()},s.prototype.copy=function(u){u.words=new Array(this.length);for(var _=0;_<this.length;_++)u.words[_]=this.words[_];u.length=this.length,u.negative=this.negative,u.red=this.red},s.prototype._move=function(u){L(u,this)},s.prototype.clone=function(){var u=new s(null);return this.copy(u),u},s.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=O}catch(p){s.prototype.inspect=O}else s.prototype.inspect=O;function O(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var A=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],E=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function W(p,u,_){_.negative=u.negative^p.negative;var D=p.length+u.length|0;_.length=D,D=D-1|0;var I=0|p.words[0],x=0|u.words[0],r=I*x,Z=r/67108864|0;_.words[0]=67108863&r;for(var P=1;P<D;P++){for(var U=Z>>>26,ye=67108863&Z,xe=Math.min(P,u.length-1),Ne=Math.max(0,P-p.length+1);Ne<=xe;Ne++)U+=(r=(I=0|p.words[P-Ne|0])*(x=0|u.words[Ne])+ye)/67108864|0,ye=67108863&r;_.words[P]=0|ye,Z=0|U}return 0!==Z?_.words[P]=0|Z:_.length--,_._strip()}s.prototype.toString=function(u,_){var D;if(_=0|_||1,16===(u=u||10)||"hex"===u){D="";for(var I=0,x=0,r=0;r<this.length;r++){var b=this.words[r],Z=(16777215&(b<<I|x)).toString(16);D=0!=(x=b>>>24-I&16777215)||r!==this.length-1?A[6-Z.length]+Z+D:Z+D,(I+=2)>=26&&(I-=26,r--)}for(0!==x&&(D=x.toString(16)+D);D.length%_!=0;)D="0"+D;return 0!==this.negative&&(D="-"+D),D}if(u===(0|u)&&u>=2&&u<=36){var P=E[u],U=k[u];D="";var ye=this.clone();for(ye.negative=0;!ye.isZero();){var xe=ye.modrn(U).toString(u);D=(ye=ye.idivn(U)).isZero()?xe+D:A[P-xe.length]+xe+D}for(this.isZero()&&(D="0"+D);D.length%_!=0;)D="0"+D;return 0!==this.negative&&(D="-"+D),D}v(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var u=this.words[0];return 2===this.length?u+=67108864*this.words[1]:3===this.length&&1===this.words[2]?u+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-u:u},s.prototype.toJSON=function(){return this.toString(16,2)},M&&(s.prototype.toBuffer=function(u,_){return this.toArrayLike(M,u,_)}),s.prototype.toArray=function(u,_){return this.toArrayLike(Array,u,_)},s.prototype.toArrayLike=function(u,_,D){this._strip();var I=this.byteLength(),x=D||Math.max(1,I);v(I<=x,"byte array longer than desired length"),v(x>0,"Requested array length <= 0");var r=function(u,_){return u.allocUnsafe?u.allocUnsafe(_):new u(_)}(u,x);return this["_toArrayLike"+("le"===_?"LE":"BE")](r,I),r},s.prototype._toArrayLikeLE=function(u,_){for(var D=0,I=0,x=0,r=0;x<this.length;x++){var b=this.words[x]<<r|I;u[D++]=255&b,D<u.length&&(u[D++]=b>>8&255),D<u.length&&(u[D++]=b>>16&255),6===r?(D<u.length&&(u[D++]=b>>24&255),I=0,r=0):(I=b>>>24,r+=2)}if(D<u.length)for(u[D++]=I;D<u.length;)u[D++]=0},s.prototype._toArrayLikeBE=function(u,_){for(var D=u.length-1,I=0,x=0,r=0;x<this.length;x++){var b=this.words[x]<<r|I;u[D--]=255&b,D>=0&&(u[D--]=b>>8&255),D>=0&&(u[D--]=b>>16&255),6===r?(D>=0&&(u[D--]=b>>24&255),I=0,r=0):(I=b>>>24,r+=2)}if(D>=0)for(u[D--]=I;D>=0;)u[D--]=0},s.prototype._countBits=Math.clz32?function(u){return 32-Math.clz32(u)}:function(u){var _=u,D=0;return _>=4096&&(D+=13,_>>>=13),_>=64&&(D+=7,_>>>=7),_>=8&&(D+=4,_>>>=4),_>=2&&(D+=2,_>>>=2),D+_},s.prototype._zeroBits=function(u){if(0===u)return 26;var _=u,D=0;return 0==(8191&_)&&(D+=13,_>>>=13),0==(127&_)&&(D+=7,_>>>=7),0==(15&_)&&(D+=4,_>>>=4),0==(3&_)&&(D+=2,_>>>=2),0==(1&_)&&D++,D},s.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,_=0;_<this.length;_++){var D=this._zeroBits(this.words[_]);if(u+=D,26!==D)break}return u},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(u){return 0!==this.negative?this.abs().inotn(u).iaddn(1):this.clone()},s.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var _=0;_<u.length;_++)this.words[_]=this.words[_]|u.words[_];return this._strip()},s.prototype.ior=function(u){return v(0==(this.negative|u.negative)),this.iuor(u)},s.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},s.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},s.prototype.iuand=function(u){var _;_=this.length>u.length?u:this;for(var D=0;D<_.length;D++)this.words[D]=this.words[D]&u.words[D];return this.length=_.length,this._strip()},s.prototype.iand=function(u){return v(0==(this.negative|u.negative)),this.iuand(u)},s.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},s.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},s.prototype.iuxor=function(u){var _,D;this.length>u.length?(_=this,D=u):(_=u,D=this);for(var I=0;I<D.length;I++)this.words[I]=_.words[I]^D.words[I];if(this!==_)for(;I<_.length;I++)this.words[I]=_.words[I];return this.length=_.length,this._strip()},s.prototype.ixor=function(u){return v(0==(this.negative|u.negative)),this.iuxor(u)},s.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},s.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},s.prototype.inotn=function(u){v("number"==typeof u&&u>=0);var _=0|Math.ceil(u/26),D=u%26;this._expand(_),D>0&&_--;for(var I=0;I<_;I++)this.words[I]=67108863&~this.words[I];return D>0&&(this.words[I]=~this.words[I]&67108863>>26-D),this._strip()},s.prototype.notn=function(u){return this.clone().inotn(u)},s.prototype.setn=function(u,_){v("number"==typeof u&&u>=0);var D=u/26|0,I=u%26;return this._expand(D+1),this.words[D]=_?this.words[D]|1<<I:this.words[D]&~(1<<I),this._strip()},s.prototype.iadd=function(u){var _,D,I;if(0!==this.negative&&0===u.negative)return this.negative=0,_=this.isub(u),this.negative^=1,this._normSign();if(0===this.negative&&0!==u.negative)return u.negative=0,_=this.isub(u),u.negative=1,_._normSign();this.length>u.length?(D=this,I=u):(D=u,I=this);for(var x=0,r=0;r<I.length;r++)this.words[r]=67108863&(_=(0|D.words[r])+(0|I.words[r])+x),x=_>>>26;for(;0!==x&&r<D.length;r++)this.words[r]=67108863&(_=(0|D.words[r])+x),x=_>>>26;if(this.length=D.length,0!==x)this.words[this.length]=x,this.length++;else if(D!==this)for(;r<D.length;r++)this.words[r]=D.words[r];return this},s.prototype.add=function(u){var _;return 0!==u.negative&&0===this.negative?(u.negative=0,_=this.sub(u),u.negative^=1,_):0===u.negative&&0!==this.negative?(this.negative=0,_=u.sub(this),this.negative=1,_):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},s.prototype.isub=function(u){if(0!==u.negative){u.negative=0;var _=this.iadd(u);return u.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var I,x,D=this.cmp(u);if(0===D)return this.negative=0,this.length=1,this.words[0]=0,this;D>0?(I=this,x=u):(I=u,x=this);for(var r=0,b=0;b<x.length;b++)r=(_=(0|I.words[b])-(0|x.words[b])+r)>>26,this.words[b]=67108863&_;for(;0!==r&&b<I.length;b++)r=(_=(0|I.words[b])+r)>>26,this.words[b]=67108863&_;if(0===r&&b<I.length&&I!==this)for(;b<I.length;b++)this.words[b]=I.words[b];return this.length=Math.max(this.length,b),I!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(u){return this.clone().isub(u)};var j=function(u,_,D){var Z,P,U,I=u.words,x=_.words,r=D.words,b=0,ye=0|I[0],xe=8191&ye,Ne=ye>>>13,Be=0|I[1],Oe=8191&Be,B=Be>>>13,Me=0|I[2],we=8191&Me,ae=Me>>>13,We=0|I[3],vt=8191&We,Pe=We>>>13,Ve=0|I[4],he=8191&Ve,Ee=Ve>>>13,ke=0|I[5],q=8191&ke,J=ke>>>13,oe=0|I[6],Ce=8191&oe,Ue=oe>>>13,ht=0|I[7],it=8191&ht,ft=ht>>>13,nt=0|I[8],st=8191&nt,wt=nt>>>13,Bt=0|I[9],Pt=8191&Bt,Vt=Bt>>>13,Oi=0|x[0],jt=8191&Oi,ti=Oi>>>13,Pi=0|x[1],si=8191&Pi,di=Pi>>>13,ze=0|x[2],Te=8191&ze,Y=ze>>>13,ge=0|x[3],Ae=8191&ge,et=ge>>>13,$t=0|x[4],Nt=8191&$t,Xt=$t>>>13,lt=0|x[5],Re=8191&lt,Fe=lt>>>13,rt=0|x[6],ot=8191&rt,At=rt>>>13,li=0|x[7],Ut=8191&li,Ft=li>>>13,Si=0|x[8],ai=8191&Si,ci=Si>>>13,rn=0|x[9],Vi=8191&rn,Di=rn>>>13;D.negative=u.negative^_.negative,D.length=19;var Xi=(b+(Z=Math.imul(xe,jt))|0)+((8191&(P=(P=Math.imul(xe,ti))+Math.imul(Ne,jt)|0))<<13)|0;b=((U=Math.imul(Ne,ti))+(P>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,Z=Math.imul(Oe,jt),P=(P=Math.imul(Oe,ti))+Math.imul(B,jt)|0,U=Math.imul(B,ti);var Ke=(b+(Z=Z+Math.imul(xe,si)|0)|0)+((8191&(P=(P=P+Math.imul(xe,di)|0)+Math.imul(Ne,si)|0))<<13)|0;b=((U=U+Math.imul(Ne,di)|0)+(P>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,Z=Math.imul(we,jt),P=(P=Math.imul(we,ti))+Math.imul(ae,jt)|0,U=Math.imul(ae,ti),Z=Z+Math.imul(Oe,si)|0,P=(P=P+Math.imul(Oe,di)|0)+Math.imul(B,si)|0,U=U+Math.imul(B,di)|0;var mt=(b+(Z=Z+Math.imul(xe,Te)|0)|0)+((8191&(P=(P=P+Math.imul(xe,Y)|0)+Math.imul(Ne,Te)|0))<<13)|0;b=((U=U+Math.imul(Ne,Y)|0)+(P>>>13)|0)+(mt>>>26)|0,mt&=67108863,Z=Math.imul(vt,jt),P=(P=Math.imul(vt,ti))+Math.imul(Pe,jt)|0,U=Math.imul(Pe,ti),Z=Z+Math.imul(we,si)|0,P=(P=P+Math.imul(we,di)|0)+Math.imul(ae,si)|0,U=U+Math.imul(ae,di)|0,Z=Z+Math.imul(Oe,Te)|0,P=(P=P+Math.imul(Oe,Y)|0)+Math.imul(B,Te)|0,U=U+Math.imul(B,Y)|0;var ve=(b+(Z=Z+Math.imul(xe,Ae)|0)|0)+((8191&(P=(P=P+Math.imul(xe,et)|0)+Math.imul(Ne,Ae)|0))<<13)|0;b=((U=U+Math.imul(Ne,et)|0)+(P>>>13)|0)+(ve>>>26)|0,ve&=67108863,Z=Math.imul(he,jt),P=(P=Math.imul(he,ti))+Math.imul(Ee,jt)|0,U=Math.imul(Ee,ti),Z=Z+Math.imul(vt,si)|0,P=(P=P+Math.imul(vt,di)|0)+Math.imul(Pe,si)|0,U=U+Math.imul(Pe,di)|0,Z=Z+Math.imul(we,Te)|0,P=(P=P+Math.imul(we,Y)|0)+Math.imul(ae,Te)|0,U=U+Math.imul(ae,Y)|0,Z=Z+Math.imul(Oe,Ae)|0,P=(P=P+Math.imul(Oe,et)|0)+Math.imul(B,Ae)|0,U=U+Math.imul(B,et)|0;var qe=(b+(Z=Z+Math.imul(xe,Nt)|0)|0)+((8191&(P=(P=P+Math.imul(xe,Xt)|0)+Math.imul(Ne,Nt)|0))<<13)|0;b=((U=U+Math.imul(Ne,Xt)|0)+(P>>>13)|0)+(qe>>>26)|0,qe&=67108863,Z=Math.imul(q,jt),P=(P=Math.imul(q,ti))+Math.imul(J,jt)|0,U=Math.imul(J,ti),Z=Z+Math.imul(he,si)|0,P=(P=P+Math.imul(he,di)|0)+Math.imul(Ee,si)|0,U=U+Math.imul(Ee,di)|0,Z=Z+Math.imul(vt,Te)|0,P=(P=P+Math.imul(vt,Y)|0)+Math.imul(Pe,Te)|0,U=U+Math.imul(Pe,Y)|0,Z=Z+Math.imul(we,Ae)|0,P=(P=P+Math.imul(we,et)|0)+Math.imul(ae,Ae)|0,U=U+Math.imul(ae,et)|0,Z=Z+Math.imul(Oe,Nt)|0,P=(P=P+Math.imul(Oe,Xt)|0)+Math.imul(B,Nt)|0,U=U+Math.imul(B,Xt)|0;var _t=(b+(Z=Z+Math.imul(xe,Re)|0)|0)+((8191&(P=(P=P+Math.imul(xe,Fe)|0)+Math.imul(Ne,Re)|0))<<13)|0;b=((U=U+Math.imul(Ne,Fe)|0)+(P>>>13)|0)+(_t>>>26)|0,_t&=67108863,Z=Math.imul(Ce,jt),P=(P=Math.imul(Ce,ti))+Math.imul(Ue,jt)|0,U=Math.imul(Ue,ti),Z=Z+Math.imul(q,si)|0,P=(P=P+Math.imul(q,di)|0)+Math.imul(J,si)|0,U=U+Math.imul(J,di)|0,Z=Z+Math.imul(he,Te)|0,P=(P=P+Math.imul(he,Y)|0)+Math.imul(Ee,Te)|0,U=U+Math.imul(Ee,Y)|0,Z=Z+Math.imul(vt,Ae)|0,P=(P=P+Math.imul(vt,et)|0)+Math.imul(Pe,Ae)|0,U=U+Math.imul(Pe,et)|0,Z=Z+Math.imul(we,Nt)|0,P=(P=P+Math.imul(we,Xt)|0)+Math.imul(ae,Nt)|0,U=U+Math.imul(ae,Xt)|0,Z=Z+Math.imul(Oe,Re)|0,P=(P=P+Math.imul(Oe,Fe)|0)+Math.imul(B,Re)|0,U=U+Math.imul(B,Fe)|0;var ue=(b+(Z=Z+Math.imul(xe,ot)|0)|0)+((8191&(P=(P=P+Math.imul(xe,At)|0)+Math.imul(Ne,ot)|0))<<13)|0;b=((U=U+Math.imul(Ne,At)|0)+(P>>>13)|0)+(ue>>>26)|0,ue&=67108863,Z=Math.imul(it,jt),P=(P=Math.imul(it,ti))+Math.imul(ft,jt)|0,U=Math.imul(ft,ti),Z=Z+Math.imul(Ce,si)|0,P=(P=P+Math.imul(Ce,di)|0)+Math.imul(Ue,si)|0,U=U+Math.imul(Ue,di)|0,Z=Z+Math.imul(q,Te)|0,P=(P=P+Math.imul(q,Y)|0)+Math.imul(J,Te)|0,U=U+Math.imul(J,Y)|0,Z=Z+Math.imul(he,Ae)|0,P=(P=P+Math.imul(he,et)|0)+Math.imul(Ee,Ae)|0,U=U+Math.imul(Ee,et)|0,Z=Z+Math.imul(vt,Nt)|0,P=(P=P+Math.imul(vt,Xt)|0)+Math.imul(Pe,Nt)|0,U=U+Math.imul(Pe,Xt)|0,Z=Z+Math.imul(we,Re)|0,P=(P=P+Math.imul(we,Fe)|0)+Math.imul(ae,Re)|0,U=U+Math.imul(ae,Fe)|0,Z=Z+Math.imul(Oe,ot)|0,P=(P=P+Math.imul(Oe,At)|0)+Math.imul(B,ot)|0,U=U+Math.imul(B,At)|0;var $e=(b+(Z=Z+Math.imul(xe,Ut)|0)|0)+((8191&(P=(P=P+Math.imul(xe,Ft)|0)+Math.imul(Ne,Ut)|0))<<13)|0;b=((U=U+Math.imul(Ne,Ft)|0)+(P>>>13)|0)+($e>>>26)|0,$e&=67108863,Z=Math.imul(st,jt),P=(P=Math.imul(st,ti))+Math.imul(wt,jt)|0,U=Math.imul(wt,ti),Z=Z+Math.imul(it,si)|0,P=(P=P+Math.imul(it,di)|0)+Math.imul(ft,si)|0,U=U+Math.imul(ft,di)|0,Z=Z+Math.imul(Ce,Te)|0,P=(P=P+Math.imul(Ce,Y)|0)+Math.imul(Ue,Te)|0,U=U+Math.imul(Ue,Y)|0,Z=Z+Math.imul(q,Ae)|0,P=(P=P+Math.imul(q,et)|0)+Math.imul(J,Ae)|0,U=U+Math.imul(J,et)|0,Z=Z+Math.imul(he,Nt)|0,P=(P=P+Math.imul(he,Xt)|0)+Math.imul(Ee,Nt)|0,U=U+Math.imul(Ee,Xt)|0,Z=Z+Math.imul(vt,Re)|0,P=(P=P+Math.imul(vt,Fe)|0)+Math.imul(Pe,Re)|0,U=U+Math.imul(Pe,Fe)|0,Z=Z+Math.imul(we,ot)|0,P=(P=P+Math.imul(we,At)|0)+Math.imul(ae,ot)|0,U=U+Math.imul(ae,At)|0,Z=Z+Math.imul(Oe,Ut)|0,P=(P=P+Math.imul(Oe,Ft)|0)+Math.imul(B,Ut)|0,U=U+Math.imul(B,Ft)|0;var St=(b+(Z=Z+Math.imul(xe,ai)|0)|0)+((8191&(P=(P=P+Math.imul(xe,ci)|0)+Math.imul(Ne,ai)|0))<<13)|0;b=((U=U+Math.imul(Ne,ci)|0)+(P>>>13)|0)+(St>>>26)|0,St&=67108863,Z=Math.imul(Pt,jt),P=(P=Math.imul(Pt,ti))+Math.imul(Vt,jt)|0,U=Math.imul(Vt,ti),Z=Z+Math.imul(st,si)|0,P=(P=P+Math.imul(st,di)|0)+Math.imul(wt,si)|0,U=U+Math.imul(wt,di)|0,Z=Z+Math.imul(it,Te)|0,P=(P=P+Math.imul(it,Y)|0)+Math.imul(ft,Te)|0,U=U+Math.imul(ft,Y)|0,Z=Z+Math.imul(Ce,Ae)|0,P=(P=P+Math.imul(Ce,et)|0)+Math.imul(Ue,Ae)|0,U=U+Math.imul(Ue,et)|0,Z=Z+Math.imul(q,Nt)|0,P=(P=P+Math.imul(q,Xt)|0)+Math.imul(J,Nt)|0,U=U+Math.imul(J,Xt)|0,Z=Z+Math.imul(he,Re)|0,P=(P=P+Math.imul(he,Fe)|0)+Math.imul(Ee,Re)|0,U=U+Math.imul(Ee,Fe)|0,Z=Z+Math.imul(vt,ot)|0,P=(P=P+Math.imul(vt,At)|0)+Math.imul(Pe,ot)|0,U=U+Math.imul(Pe,At)|0,Z=Z+Math.imul(we,Ut)|0,P=(P=P+Math.imul(we,Ft)|0)+Math.imul(ae,Ut)|0,U=U+Math.imul(ae,Ft)|0,Z=Z+Math.imul(Oe,ai)|0,P=(P=P+Math.imul(Oe,ci)|0)+Math.imul(B,ai)|0,U=U+Math.imul(B,ci)|0;var Rt=(b+(Z=Z+Math.imul(xe,Vi)|0)|0)+((8191&(P=(P=P+Math.imul(xe,Di)|0)+Math.imul(Ne,Vi)|0))<<13)|0;b=((U=U+Math.imul(Ne,Di)|0)+(P>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,Z=Math.imul(Pt,si),P=(P=Math.imul(Pt,di))+Math.imul(Vt,si)|0,U=Math.imul(Vt,di),Z=Z+Math.imul(st,Te)|0,P=(P=P+Math.imul(st,Y)|0)+Math.imul(wt,Te)|0,U=U+Math.imul(wt,Y)|0,Z=Z+Math.imul(it,Ae)|0,P=(P=P+Math.imul(it,et)|0)+Math.imul(ft,Ae)|0,U=U+Math.imul(ft,et)|0,Z=Z+Math.imul(Ce,Nt)|0,P=(P=P+Math.imul(Ce,Xt)|0)+Math.imul(Ue,Nt)|0,U=U+Math.imul(Ue,Xt)|0,Z=Z+Math.imul(q,Re)|0,P=(P=P+Math.imul(q,Fe)|0)+Math.imul(J,Re)|0,U=U+Math.imul(J,Fe)|0,Z=Z+Math.imul(he,ot)|0,P=(P=P+Math.imul(he,At)|0)+Math.imul(Ee,ot)|0,U=U+Math.imul(Ee,At)|0,Z=Z+Math.imul(vt,Ut)|0,P=(P=P+Math.imul(vt,Ft)|0)+Math.imul(Pe,Ut)|0,U=U+Math.imul(Pe,Ft)|0,Z=Z+Math.imul(we,ai)|0,P=(P=P+Math.imul(we,ci)|0)+Math.imul(ae,ai)|0,U=U+Math.imul(ae,ci)|0;var yi=(b+(Z=Z+Math.imul(Oe,Vi)|0)|0)+((8191&(P=(P=P+Math.imul(Oe,Di)|0)+Math.imul(B,Vi)|0))<<13)|0;b=((U=U+Math.imul(B,Di)|0)+(P>>>13)|0)+(yi>>>26)|0,yi&=67108863,Z=Math.imul(Pt,Te),P=(P=Math.imul(Pt,Y))+Math.imul(Vt,Te)|0,U=Math.imul(Vt,Y),Z=Z+Math.imul(st,Ae)|0,P=(P=P+Math.imul(st,et)|0)+Math.imul(wt,Ae)|0,U=U+Math.imul(wt,et)|0,Z=Z+Math.imul(it,Nt)|0,P=(P=P+Math.imul(it,Xt)|0)+Math.imul(ft,Nt)|0,U=U+Math.imul(ft,Xt)|0,Z=Z+Math.imul(Ce,Re)|0,P=(P=P+Math.imul(Ce,Fe)|0)+Math.imul(Ue,Re)|0,U=U+Math.imul(Ue,Fe)|0,Z=Z+Math.imul(q,ot)|0,P=(P=P+Math.imul(q,At)|0)+Math.imul(J,ot)|0,U=U+Math.imul(J,At)|0,Z=Z+Math.imul(he,Ut)|0,P=(P=P+Math.imul(he,Ft)|0)+Math.imul(Ee,Ut)|0,U=U+Math.imul(Ee,Ft)|0,Z=Z+Math.imul(vt,ai)|0,P=(P=P+Math.imul(vt,ci)|0)+Math.imul(Pe,ai)|0,U=U+Math.imul(Pe,ci)|0;var Ri=(b+(Z=Z+Math.imul(we,Vi)|0)|0)+((8191&(P=(P=P+Math.imul(we,Di)|0)+Math.imul(ae,Vi)|0))<<13)|0;b=((U=U+Math.imul(ae,Di)|0)+(P>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,Z=Math.imul(Pt,Ae),P=(P=Math.imul(Pt,et))+Math.imul(Vt,Ae)|0,U=Math.imul(Vt,et),Z=Z+Math.imul(st,Nt)|0,P=(P=P+Math.imul(st,Xt)|0)+Math.imul(wt,Nt)|0,U=U+Math.imul(wt,Xt)|0,Z=Z+Math.imul(it,Re)|0,P=(P=P+Math.imul(it,Fe)|0)+Math.imul(ft,Re)|0,U=U+Math.imul(ft,Fe)|0,Z=Z+Math.imul(Ce,ot)|0,P=(P=P+Math.imul(Ce,At)|0)+Math.imul(Ue,ot)|0,U=U+Math.imul(Ue,At)|0,Z=Z+Math.imul(q,Ut)|0,P=(P=P+Math.imul(q,Ft)|0)+Math.imul(J,Ut)|0,U=U+Math.imul(J,Ft)|0,Z=Z+Math.imul(he,ai)|0,P=(P=P+Math.imul(he,ci)|0)+Math.imul(Ee,ai)|0,U=U+Math.imul(Ee,ci)|0;var Ii=(b+(Z=Z+Math.imul(vt,Vi)|0)|0)+((8191&(P=(P=P+Math.imul(vt,Di)|0)+Math.imul(Pe,Vi)|0))<<13)|0;b=((U=U+Math.imul(Pe,Di)|0)+(P>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,Z=Math.imul(Pt,Nt),P=(P=Math.imul(Pt,Xt))+Math.imul(Vt,Nt)|0,U=Math.imul(Vt,Xt),Z=Z+Math.imul(st,Re)|0,P=(P=P+Math.imul(st,Fe)|0)+Math.imul(wt,Re)|0,U=U+Math.imul(wt,Fe)|0,Z=Z+Math.imul(it,ot)|0,P=(P=P+Math.imul(it,At)|0)+Math.imul(ft,ot)|0,U=U+Math.imul(ft,At)|0,Z=Z+Math.imul(Ce,Ut)|0,P=(P=P+Math.imul(Ce,Ft)|0)+Math.imul(Ue,Ut)|0,U=U+Math.imul(Ue,Ft)|0,Z=Z+Math.imul(q,ai)|0,P=(P=P+Math.imul(q,ci)|0)+Math.imul(J,ai)|0,U=U+Math.imul(J,ci)|0;var Ki=(b+(Z=Z+Math.imul(he,Vi)|0)|0)+((8191&(P=(P=P+Math.imul(he,Di)|0)+Math.imul(Ee,Vi)|0))<<13)|0;b=((U=U+Math.imul(Ee,Di)|0)+(P>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,Z=Math.imul(Pt,Re),P=(P=Math.imul(Pt,Fe))+Math.imul(Vt,Re)|0,U=Math.imul(Vt,Fe),Z=Z+Math.imul(st,ot)|0,P=(P=P+Math.imul(st,At)|0)+Math.imul(wt,ot)|0,U=U+Math.imul(wt,At)|0,Z=Z+Math.imul(it,Ut)|0,P=(P=P+Math.imul(it,Ft)|0)+Math.imul(ft,Ut)|0,U=U+Math.imul(ft,Ft)|0,Z=Z+Math.imul(Ce,ai)|0,P=(P=P+Math.imul(Ce,ci)|0)+Math.imul(Ue,ai)|0,U=U+Math.imul(Ue,ci)|0;var at=(b+(Z=Z+Math.imul(q,Vi)|0)|0)+((8191&(P=(P=P+Math.imul(q,Di)|0)+Math.imul(J,Vi)|0))<<13)|0;b=((U=U+Math.imul(J,Di)|0)+(P>>>13)|0)+(at>>>26)|0,at&=67108863,Z=Math.imul(Pt,ot),P=(P=Math.imul(Pt,At))+Math.imul(Vt,ot)|0,U=Math.imul(Vt,At),Z=Z+Math.imul(st,Ut)|0,P=(P=P+Math.imul(st,Ft)|0)+Math.imul(wt,Ut)|0,U=U+Math.imul(wt,Ft)|0,Z=Z+Math.imul(it,ai)|0,P=(P=P+Math.imul(it,ci)|0)+Math.imul(ft,ai)|0,U=U+Math.imul(ft,ci)|0;var Qt=(b+(Z=Z+Math.imul(Ce,Vi)|0)|0)+((8191&(P=(P=P+Math.imul(Ce,Di)|0)+Math.imul(Ue,Vi)|0))<<13)|0;b=((U=U+Math.imul(Ue,Di)|0)+(P>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,Z=Math.imul(Pt,Ut),P=(P=Math.imul(Pt,Ft))+Math.imul(Vt,Ut)|0,U=Math.imul(Vt,Ft),Z=Z+Math.imul(st,ai)|0,P=(P=P+Math.imul(st,ci)|0)+Math.imul(wt,ai)|0,U=U+Math.imul(wt,ci)|0;var gt=(b+(Z=Z+Math.imul(it,Vi)|0)|0)+((8191&(P=(P=P+Math.imul(it,Di)|0)+Math.imul(ft,Vi)|0))<<13)|0;b=((U=U+Math.imul(ft,Di)|0)+(P>>>13)|0)+(gt>>>26)|0,gt&=67108863,Z=Math.imul(Pt,ai),P=(P=Math.imul(Pt,ci))+Math.imul(Vt,ai)|0,U=Math.imul(Vt,ci);var Lt=(b+(Z=Z+Math.imul(st,Vi)|0)|0)+((8191&(P=(P=P+Math.imul(st,Di)|0)+Math.imul(wt,Vi)|0))<<13)|0;b=((U=U+Math.imul(wt,Di)|0)+(P>>>13)|0)+(Lt>>>26)|0,Lt&=67108863;var ui=(b+(Z=Math.imul(Pt,Vi))|0)+((8191&(P=(P=Math.imul(Pt,Di))+Math.imul(Vt,Vi)|0))<<13)|0;return b=((U=Math.imul(Vt,Di))+(P>>>13)|0)+(ui>>>26)|0,ui&=67108863,r[0]=Xi,r[1]=Ke,r[2]=mt,r[3]=ve,r[4]=qe,r[5]=_t,r[6]=ue,r[7]=$e,r[8]=St,r[9]=Rt,r[10]=yi,r[11]=Ri,r[12]=Ii,r[13]=Ki,r[14]=at,r[15]=Qt,r[16]=gt,r[17]=Lt,r[18]=ui,0!==b&&(r[19]=b,D.length++),D};function $(p,u,_){_.negative=u.negative^p.negative,_.length=p.length+u.length;for(var D=0,I=0,x=0;x<_.length-1;x++){var r=I;I=0;for(var b=67108863&D,Z=Math.min(x,u.length-1),P=Math.max(0,x-p.length+1);P<=Z;P++){var Ne=(0|p.words[x-P])*(0|u.words[P]),Be=67108863&Ne;b=67108863&(Be=Be+b|0),I+=(r=(r=r+(Ne/67108864|0)|0)+(Be>>>26)|0)>>>26,r&=67108863}_.words[x]=b,D=r,r=I}return 0!==D?_.words[x]=D:_.length--,_._strip()}function ee(p,u,_){return $(p,u,_)}function me(p,u){this.x=p,this.y=u}Math.imul||(j=W),s.prototype.mulTo=function(u,_){var I=this.length+u.length;return 10===this.length&&10===u.length?j(this,u,_):I<63?W(this,u,_):I<1024?$(this,u,_):ee(this,u,_)},me.prototype.makeRBT=function(u){for(var _=new Array(u),D=s.prototype._countBits(u)-1,I=0;I<u;I++)_[I]=this.revBin(I,D,u);return _},me.prototype.revBin=function(u,_,D){if(0===u||u===D-1)return u;for(var I=0,x=0;x<_;x++)I|=(1&u)<<_-x-1,u>>=1;return I},me.prototype.permute=function(u,_,D,I,x,r){for(var b=0;b<r;b++)I[b]=_[u[b]],x[b]=D[u[b]]},me.prototype.transform=function(u,_,D,I,x,r){this.permute(r,u,_,D,I,x);for(var b=1;b<x;b<<=1)for(var Z=b<<1,P=Math.cos(2*Math.PI/Z),U=Math.sin(2*Math.PI/Z),ye=0;ye<x;ye+=Z)for(var xe=P,Ne=U,Be=0;Be<b;Be++){var Oe=D[ye+Be],B=I[ye+Be],Me=D[ye+Be+b],we=I[ye+Be+b],ae=xe*Me-Ne*we;we=xe*we+Ne*Me,D[ye+Be]=Oe+(Me=ae),I[ye+Be]=B+we,D[ye+Be+b]=Oe-Me,I[ye+Be+b]=B-we,Be!==Z&&(ae=P*xe-U*Ne,Ne=P*Ne+U*xe,xe=ae)}},me.prototype.guessLen13b=function(u,_){var D=1|Math.max(_,u),I=1&D,x=0;for(D=D/2|0;D;D>>>=1)x++;return 1<<x+1+I},me.prototype.conjugate=function(u,_,D){if(!(D<=1))for(var I=0;I<D/2;I++){var x=u[I];u[I]=u[D-I-1],u[D-I-1]=x,x=_[I],_[I]=-_[D-I-1],_[D-I-1]=-x}},me.prototype.normalize13b=function(u,_){for(var D=0,I=0;I<_/2;I++){var x=8192*Math.round(u[2*I+1]/_)+Math.round(u[2*I]/_)+D;u[I]=67108863&x,D=x<67108864?0:x/67108864|0}return u},me.prototype.convert13b=function(u,_,D,I){for(var x=0,r=0;r<_;r++)D[2*r]=8191&(x+=0|u[r]),D[2*r+1]=8191&(x>>>=13),x>>>=13;for(r=2*_;r<I;++r)D[r]=0;v(0===x),v(0==(-8192&x))},me.prototype.stub=function(u){for(var _=new Array(u),D=0;D<u;D++)_[D]=0;return _},me.prototype.mulp=function(u,_,D){var I=2*this.guessLen13b(u.length,_.length),x=this.makeRBT(I),r=this.stub(I),b=new Array(I),Z=new Array(I),P=new Array(I),U=new Array(I),ye=new Array(I),xe=new Array(I),Ne=D.words;Ne.length=I,this.convert13b(u.words,u.length,b,I),this.convert13b(_.words,_.length,U,I),this.transform(b,r,Z,P,I,x),this.transform(U,r,ye,xe,I,x);for(var Be=0;Be<I;Be++){var Oe=Z[Be]*ye[Be]-P[Be]*xe[Be];P[Be]=Z[Be]*xe[Be]+P[Be]*ye[Be],Z[Be]=Oe}return this.conjugate(Z,P,I),this.transform(Z,P,Ne,r,I,x),this.conjugate(Ne,r,I),this.normalize13b(Ne,I),D.negative=u.negative^_.negative,D.length=u.length+_.length,D._strip()},s.prototype.mul=function(u){var _=new s(null);return _.words=new Array(this.length+u.length),this.mulTo(u,_)},s.prototype.mulf=function(u){var _=new s(null);return _.words=new Array(this.length+u.length),ee(this,u,_)},s.prototype.imul=function(u){return this.clone().mulTo(u,this)},s.prototype.imuln=function(u){var _=u<0;_&&(u=-u),v("number"==typeof u),v(u<67108864);for(var D=0,I=0;I<this.length;I++){var x=(0|this.words[I])*u,r=(67108863&x)+(67108863&D);D>>=26,D+=x/67108864|0,D+=r>>>26,this.words[I]=67108863&r}return 0!==D&&(this.words[I]=D,this.length++),_?this.ineg():this},s.prototype.muln=function(u){return this.clone().imuln(u)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(u){var _=function(p){for(var u=new Array(p.bitLength()),_=0;_<u.length;_++)u[_]=p.words[_/26|0]>>>_%26&1;return u}(u);if(0===_.length)return new s(1);for(var D=this,I=0;I<_.length&&0===_[I];I++,D=D.sqr());if(++I<_.length)for(var x=D.sqr();I<_.length;I++,x=x.sqr())0!==_[I]&&(D=D.mul(x));return D},s.prototype.iushln=function(u){v("number"==typeof u&&u>=0);var x,_=u%26,D=(u-_)/26,I=67108863>>>26-_<<26-_;if(0!==_){var r=0;for(x=0;x<this.length;x++){var b=this.words[x]&I;this.words[x]=(0|this.words[x])-b<<_|r,r=b>>>26-_}r&&(this.words[x]=r,this.length++)}if(0!==D){for(x=this.length-1;x>=0;x--)this.words[x+D]=this.words[x];for(x=0;x<D;x++)this.words[x]=0;this.length+=D}return this._strip()},s.prototype.ishln=function(u){return v(0===this.negative),this.iushln(u)},s.prototype.iushrn=function(u,_,D){var I;v("number"==typeof u&&u>=0),I=_?(_-_%26)/26:0;var x=u%26,r=Math.min((u-x)/26,this.length),b=67108863^67108863>>>x<<x,Z=D;if(I-=r,I=Math.max(0,I),Z){for(var P=0;P<r;P++)Z.words[P]=this.words[P];Z.length=r}if(0!==r)if(this.length>r)for(this.length-=r,P=0;P<this.length;P++)this.words[P]=this.words[P+r];else this.words[0]=0,this.length=1;var U=0;for(P=this.length-1;P>=0&&(0!==U||P>=I);P--){var ye=0|this.words[P];this.words[P]=U<<26-x|ye>>>x,U=ye&b}return Z&&0!==U&&(Z.words[Z.length++]=U),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(u,_,D){return v(0===this.negative),this.iushrn(u,_,D)},s.prototype.shln=function(u){return this.clone().ishln(u)},s.prototype.ushln=function(u){return this.clone().iushln(u)},s.prototype.shrn=function(u){return this.clone().ishrn(u)},s.prototype.ushrn=function(u){return this.clone().iushrn(u)},s.prototype.testn=function(u){v("number"==typeof u&&u>=0);var _=u%26,D=(u-_)/26;return!(this.length<=D||!(this.words[D]&1<<_))},s.prototype.imaskn=function(u){v("number"==typeof u&&u>=0);var _=u%26,D=(u-_)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=D?this:(0!==_&&D++,this.length=Math.min(D,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),this._strip())},s.prototype.maskn=function(u){return this.clone().imaskn(u)},s.prototype.iaddn=function(u){return v("number"==typeof u),v(u<67108864),u<0?this.isubn(-u):0!==this.negative?1===this.length&&(0|this.words[0])<=u?(this.words[0]=u-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},s.prototype._iaddn=function(u){this.words[0]+=u;for(var _=0;_<this.length&&this.words[_]>=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},s.prototype.isubn=function(u){if(v("number"==typeof u),v(u<67108864),u<0)return this.iaddn(-u);if(0!==this.negative)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_<this.length&&this.words[_]<0;_++)this.words[_]+=67108864,this.words[_+1]-=1;return this._strip()},s.prototype.addn=function(u){return this.clone().iaddn(u)},s.prototype.subn=function(u){return this.clone().isubn(u)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(u,_,D){var x;this._expand(u.length+D);var r,b=0;for(x=0;x<u.length;x++){r=(0|this.words[x+D])+b;var Z=(0|u.words[x])*_;b=((r-=67108863&Z)>>26)-(Z/67108864|0),this.words[x+D]=67108863&r}for(;x<this.length-D;x++)b=(r=(0|this.words[x+D])+b)>>26,this.words[x+D]=67108863&r;if(0===b)return this._strip();for(v(-1===b),b=0,x=0;x<this.length;x++)b=(r=-(0|this.words[x])+b)>>26,this.words[x]=67108863&r;return this.negative=1,this._strip()},s.prototype._wordDiv=function(u,_){var D,I=this.clone(),x=u,r=0|x.words[x.length-1];0!=(D=26-this._countBits(r))&&(x=x.ushln(D),I.iushln(D),r=0|x.words[x.length-1]);var P,Z=I.length-x.length;if("mod"!==_){(P=new s(null)).length=Z+1,P.words=new Array(P.length);for(var U=0;U<P.length;U++)P.words[U]=0}var ye=I.clone()._ishlnsubmul(x,1,Z);0===ye.negative&&(I=ye,P&&(P.words[Z]=1));for(var xe=Z-1;xe>=0;xe--){var Ne=67108864*(0|I.words[x.length+xe])+(0|I.words[x.length+xe-1]);for(Ne=Math.min(Ne/r|0,67108863),I._ishlnsubmul(x,Ne,xe);0!==I.negative;)Ne--,I.negative=0,I._ishlnsubmul(x,1,xe),I.isZero()||(I.negative^=1);P&&(P.words[xe]=Ne)}return P&&P._strip(),I._strip(),"div"!==_&&0!==D&&I.iushrn(D),{div:P||null,mod:I}},s.prototype.divmod=function(u,_,D){return v(!u.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===u.negative?(r=this.neg().divmod(u,_),"mod"!==_&&(I=r.div.neg()),"div"!==_&&(x=r.mod.neg(),D&&0!==x.negative&&x.iadd(u)),{div:I,mod:x}):0===this.negative&&0!==u.negative?(r=this.divmod(u.neg(),_),"mod"!==_&&(I=r.div.neg()),{div:I,mod:r.mod}):0!=(this.negative&u.negative)?(r=this.neg().divmod(u.neg(),_),"div"!==_&&(x=r.mod.neg(),D&&0!==x.negative&&x.isub(u)),{div:r.div,mod:x}):u.length>this.length||this.cmp(u)<0?{div:new s(0),mod:this}:1===u.length?"div"===_?{div:this.divn(u.words[0]),mod:null}:"mod"===_?{div:null,mod:new s(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new s(this.modrn(u.words[0]))}:this._wordDiv(u,_);var I,x,r},s.prototype.div=function(u){return this.divmod(u,"div",!1).div},s.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},s.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},s.prototype.divRound=function(u){var _=this.divmod(u);if(_.mod.isZero())return _.div;var D=0!==_.div.negative?_.mod.isub(u):_.mod,I=u.ushrn(1),x=u.andln(1),r=D.cmp(I);return r<0||1===x&&0===r?_.div:0!==_.div.negative?_.div.isubn(1):_.div.iaddn(1)},s.prototype.modrn=function(u){var _=u<0;_&&(u=-u),v(u<=67108863);for(var D=(1<<26)%u,I=0,x=this.length-1;x>=0;x--)I=(D*I+(0|this.words[x]))%u;return _?-I:I},s.prototype.modn=function(u){return this.modrn(u)},s.prototype.idivn=function(u){var _=u<0;_&&(u=-u),v(u<=67108863);for(var D=0,I=this.length-1;I>=0;I--){var x=(0|this.words[I])+67108864*D;this.words[I]=x/u|0,D=x%u}return this._strip(),_?this.ineg():this},s.prototype.divn=function(u){return this.clone().idivn(u)},s.prototype.egcd=function(u){v(0===u.negative),v(!u.isZero());var _=this,D=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var I=new s(1),x=new s(0),r=new s(0),b=new s(1),Z=0;_.isEven()&&D.isEven();)_.iushrn(1),D.iushrn(1),++Z;for(var P=D.clone(),U=_.clone();!_.isZero();){for(var ye=0,xe=1;0==(_.words[0]&xe)&&ye<26;++ye,xe<<=1);if(ye>0)for(_.iushrn(ye);ye-- >0;)(I.isOdd()||x.isOdd())&&(I.iadd(P),x.isub(U)),I.iushrn(1),x.iushrn(1);for(var Ne=0,Be=1;0==(D.words[0]&Be)&&Ne<26;++Ne,Be<<=1);if(Ne>0)for(D.iushrn(Ne);Ne-- >0;)(r.isOdd()||b.isOdd())&&(r.iadd(P),b.isub(U)),r.iushrn(1),b.iushrn(1);_.cmp(D)>=0?(_.isub(D),I.isub(r),x.isub(b)):(D.isub(_),r.isub(I),b.isub(x))}return{a:r,b,gcd:D.iushln(Z)}},s.prototype._invmp=function(u){v(0===u.negative),v(!u.isZero());var ye,_=this,D=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var I=new s(1),x=new s(0),r=D.clone();_.cmpn(1)>0&&D.cmpn(1)>0;){for(var b=0,Z=1;0==(_.words[0]&Z)&&b<26;++b,Z<<=1);if(b>0)for(_.iushrn(b);b-- >0;)I.isOdd()&&I.iadd(r),I.iushrn(1);for(var P=0,U=1;0==(D.words[0]&U)&&P<26;++P,U<<=1);if(P>0)for(D.iushrn(P);P-- >0;)x.isOdd()&&x.iadd(r),x.iushrn(1);_.cmp(D)>=0?(_.isub(D),I.isub(x)):(D.isub(_),x.isub(I))}return(ye=0===_.cmpn(1)?I:x).cmpn(0)<0&&ye.iadd(u),ye},s.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var _=this.clone(),D=u.clone();_.negative=0,D.negative=0;for(var I=0;_.isEven()&&D.isEven();I++)_.iushrn(1),D.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;D.isEven();)D.iushrn(1);var x=_.cmp(D);if(x<0){var r=_;_=D,D=r}else if(0===x||0===D.cmpn(1))break;_.isub(D)}return D.iushln(I)},s.prototype.invm=function(u){return this.egcd(u).a.umod(u)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(u){return this.words[0]&u},s.prototype.bincn=function(u){v("number"==typeof u);var _=u%26,D=(u-_)/26,I=1<<_;if(this.length<=D)return this._expand(D+1),this.words[D]|=I,this;for(var x=I,r=D;0!==x&&r<this.length;r++){var b=0|this.words[r];x=(b+=x)>>>26,this.words[r]=b&=67108863}return 0!==x&&(this.words[r]=x,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(u){var D,_=u<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this._strip(),this.length>1)D=1;else{_&&(u=-u),v(u<=67108863,"Number is too big");var I=0|this.words[0];D=I===u?0:I<u?-1:1}return 0!==this.negative?0|-D:D},s.prototype.cmp=function(u){if(0!==this.negative&&0===u.negative)return-1;if(0===this.negative&&0!==u.negative)return 1;var _=this.ucmp(u);return 0!==this.negative?0|-_:_},s.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var _=0,D=this.length-1;D>=0;D--){var I=0|this.words[D],x=0|u.words[D];if(I!==x){I<x?_=-1:I>x&&(_=1);break}}return _},s.prototype.gtn=function(u){return 1===this.cmpn(u)},s.prototype.gt=function(u){return 1===this.cmp(u)},s.prototype.gten=function(u){return this.cmpn(u)>=0},s.prototype.gte=function(u){return this.cmp(u)>=0},s.prototype.ltn=function(u){return-1===this.cmpn(u)},s.prototype.lt=function(u){return-1===this.cmp(u)},s.prototype.lten=function(u){return this.cmpn(u)<=0},s.prototype.lte=function(u){return this.cmp(u)<=0},s.prototype.eqn=function(u){return 0===this.cmpn(u)},s.prototype.eq=function(u){return 0===this.cmp(u)},s.red=function(u){return new i(u)},s.prototype.toRed=function(u){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),u.convertTo(this)._forceRed(u)},s.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(u){return this.red=u,this},s.prototype.forceRed=function(u){return v(!this.red,"Already a number in reduction context"),this._forceRed(u)},s.prototype.redAdd=function(u){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},s.prototype.redIAdd=function(u){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},s.prototype.redSub=function(u){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},s.prototype.redISub=function(u){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},s.prototype.redShl=function(u){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},s.prototype.redMul=function(u){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},s.prototype.redIMul=function(u){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},s.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(u){return v(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var ce={k256:null,p224:null,p192:null,p25519:null};function le(p,u){this.name=p,this.p=new s(u,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function te(){le.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function re(){le.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function pe(){le.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function y(){le.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(p){if("string"==typeof p){var u=s._prime(p);this.m=u.p,this.prime=u}else v(p.gtn(1),"modulus must be greater than 1"),this.m=p,this.prime=null}function a(p){i.call(this,p),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}le.prototype._tmp=function(){var u=new s(null);return u.words=new Array(Math.ceil(this.n/13)),u},le.prototype.ireduce=function(u){var D,_=u;do{this.split(_,this.tmp),D=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(D>this.n);var I=D<this.n?-1:_.ucmp(this.p);return 0===I?(_.words[0]=0,_.length=1):I>0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},le.prototype.split=function(u,_){u.iushrn(this.n,0,_)},le.prototype.imulK=function(u){return u.imul(this.k)},C(te,le),te.prototype.split=function(u,_){for(var D=4194303,I=Math.min(u.length,9),x=0;x<I;x++)_.words[x]=u.words[x];if(_.length=I,u.length<=9)return u.words[0]=0,void(u.length=1);var r=u.words[9];for(_.words[_.length++]=r&D,x=10;x<u.length;x++){var b=0|u.words[x];u.words[x-10]=(b&D)<<4|r>>>22,r=b}u.words[x-10]=r>>>=22,u.length-=0===r&&u.length>10?10:9},te.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var _=0,D=0;D<u.length;D++){var I=0|u.words[D];u.words[D]=67108863&(_+=977*I),_=64*I+(_/67108864|0)}return 0===u.words[u.length-1]&&(u.length--,0===u.words[u.length-1]&&u.length--),u},C(re,le),C(pe,le),C(y,le),y.prototype.imulK=function(u){for(var _=0,D=0;D<u.length;D++){var I=19*(0|u.words[D])+_,x=67108863&I;I>>>=26,u.words[D]=x,_=I}return 0!==_&&(u.words[u.length++]=_),u},s._prime=function(u){if(ce[u])return ce[u];var _;if("k256"===u)_=new te;else if("p224"===u)_=new re;else if("p192"===u)_=new pe;else{if("p25519"!==u)throw new Error("Unknown prime "+u);_=new y}return ce[u]=_,_},i.prototype._verify1=function(u){v(0===u.negative,"red works only with positives"),v(u.red,"red works only with red numbers")},i.prototype._verify2=function(u,_){v(0==(u.negative|_.negative),"red works only with positives"),v(u.red&&u.red===_.red,"red works only with red numbers")},i.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(L(u,u.umod(this.m)._forceRed(this)),u)},i.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},i.prototype.add=function(u,_){this._verify2(u,_);var D=u.add(_);return D.cmp(this.m)>=0&&D.isub(this.m),D._forceRed(this)},i.prototype.iadd=function(u,_){this._verify2(u,_);var D=u.iadd(_);return D.cmp(this.m)>=0&&D.isub(this.m),D},i.prototype.sub=function(u,_){this._verify2(u,_);var D=u.sub(_);return D.cmpn(0)<0&&D.iadd(this.m),D._forceRed(this)},i.prototype.isub=function(u,_){this._verify2(u,_);var D=u.isub(_);return D.cmpn(0)<0&&D.iadd(this.m),D},i.prototype.shl=function(u,_){return this._verify1(u),this.imod(u.ushln(_))},i.prototype.imul=function(u,_){return this._verify2(u,_),this.imod(u.imul(_))},i.prototype.mul=function(u,_){return this._verify2(u,_),this.imod(u.mul(_))},i.prototype.isqr=function(u){return this.imul(u,u.clone())},i.prototype.sqr=function(u){return this.mul(u,u)},i.prototype.sqrt=function(u){if(u.isZero())return u.clone();var _=this.m.andln(3);if(v(_%2==1),3===_){var D=this.m.add(new s(1)).iushrn(2);return this.pow(u,D)}for(var I=this.m.subn(1),x=0;!I.isZero()&&0===I.andln(1);)x++,I.iushrn(1);v(!I.isZero());var r=new s(1).toRed(this),b=r.redNeg(),Z=this.m.subn(1).iushrn(1),P=this.m.bitLength();for(P=new s(2*P*P).toRed(this);0!==this.pow(P,Z).cmp(b);)P.redIAdd(b);for(var U=this.pow(P,I),ye=this.pow(u,I.addn(1).iushrn(1)),xe=this.pow(u,I),Ne=x;0!==xe.cmp(r);){for(var Be=xe,Oe=0;0!==Be.cmp(r);Oe++)Be=Be.redSqr();v(Oe<Ne);var B=this.pow(U,new s(1).iushln(Ne-Oe-1));ye=ye.redMul(B),U=B.redSqr(),xe=xe.redMul(U),Ne=Oe}return ye},i.prototype.invm=function(u){var _=u._invmp(this.m);return 0!==_.negative?(_.negative=0,this.imod(_).redNeg()):this.imod(_)},i.prototype.pow=function(u,_){if(_.isZero())return new s(1).toRed(this);if(0===_.cmpn(1))return u.clone();var I=new Array(16);I[0]=new s(1).toRed(this),I[1]=u;for(var x=2;x<I.length;x++)I[x]=this.mul(I[x-1],u);var r=I[0],b=0,Z=0,P=_.bitLength()%26;for(0===P&&(P=26),x=_.length-1;x>=0;x--){for(var U=_.words[x],ye=P-1;ye>=0;ye--){var xe=U>>ye&1;r!==I[0]&&(r=this.sqr(r)),0!==xe||0!==b?(b<<=1,b|=xe,(4==++Z||0===x&&0===ye)&&(r=this.mul(r,I[b]),Z=0,b=0)):Z=0}P=26}return r},i.prototype.convertTo=function(u){var _=u.umod(this.m);return _===u?_.clone():_},i.prototype.convertFrom=function(u){var _=u.clone();return _.red=null,_},s.mont=function(u){return new a(u)},C(a,i),a.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},a.prototype.convertFrom=function(u){var _=this.imod(u.mul(this.rinv));return _.red=null,_},a.prototype.imul=function(u,_){if(u.isZero()||_.isZero())return u.words[0]=0,u.length=1,u;var D=u.imul(_),I=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=D.isub(I).iushrn(this.shift),r=x;return x.cmp(this.m)>=0?r=x.isub(this.m):x.cmpn(0)<0&&(r=x.iadd(this.m)),r._forceRed(this)},a.prototype.mul=function(u,_){if(u.isZero()||_.isZero())return new s(0)._forceRed(this);var D=u.mul(_),I=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=D.isub(I).iushrn(this.shift),r=x;return x.cmp(this.m)>=0?r=x.isub(this.m):x.cmpn(0)<0&&(r=x.iadd(this.m)),r._forceRed(this)},a.prototype.invm=function(u){return this.imod(u._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ze=m.nmd(Ze),this)},7950:(Ze,K,m)=>{var e;function t(C){this.rand=C}if(Ze.exports=function(s){return e||(e=new t(null)),e.generate(s)},Ze.exports.Rand=t,t.prototype.generate=function(s){return this._rand(s)},t.prototype._rand=function(s){if(this.rand.getBytes)return this.rand.getBytes(s);for(var M=new Uint8Array(s),c=0;c<M.length;c++)M[c]=this.rand.getByte();return M},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?t.prototype._rand=function(s){var M=new Uint8Array(s);return self.crypto.getRandomValues(M),M}:self.msCrypto&&self.msCrypto.getRandomValues?t.prototype._rand=function(s){var M=new Uint8Array(s);return self.msCrypto.getRandomValues(M),M}:"object"==typeof window&&(t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var v=m(1348);if("function"!=typeof v.randomBytes)throw new Error("Not supported");t.prototype._rand=function(s){return v.randomBytes(s)}}catch(C){}},1899:(Ze,K,m)=>{var e=m(3502).Buffer;function t(N){e.isBuffer(N)||(N=e.from(N));for(var o=N.length/4|0,L=new Array(o),O=0;O<o;O++)L[O]=N.readUInt32BE(4*O);return L}function v(N){for(;0<N.length;N++)N[0]=0}function C(N,o,L,O,A){for(var me,ce,le,te,E=L[0],k=L[1],w=L[2],V=L[3],W=N[0]^o[0],j=N[1]^o[1],$=N[2]^o[2],ee=N[3]^o[3],re=4,pe=1;pe<A;pe++)me=E[W>>>24]^k[j>>>16&255]^w[$>>>8&255]^V[255&ee]^o[re++],ce=E[j>>>24]^k[$>>>16&255]^w[ee>>>8&255]^V[255&W]^o[re++],le=E[$>>>24]^k[ee>>>16&255]^w[W>>>8&255]^V[255&j]^o[re++],te=E[ee>>>24]^k[W>>>16&255]^w[j>>>8&255]^V[255&$]^o[re++],W=me,j=ce,$=le,ee=te;return me=(O[W>>>24]<<24|O[j>>>16&255]<<16|O[$>>>8&255]<<8|O[255&ee])^o[re++],ce=(O[j>>>24]<<24|O[$>>>16&255]<<16|O[ee>>>8&255]<<8|O[255&W])^o[re++],le=(O[$>>>24]<<24|O[ee>>>16&255]<<16|O[W>>>8&255]<<8|O[255&j])^o[re++],te=(O[ee>>>24]<<24|O[W>>>16&255]<<16|O[j>>>8&255]<<8|O[255&$])^o[re++],[me>>>=0,ce>>>=0,le>>>=0,te>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],M=function(){for(var N=new Array(256),o=0;o<256;o++)N[o]=o<128?o<<1:o<<1^283;for(var L=[],O=[],A=[[],[],[],[]],E=[[],[],[],[]],k=0,w=0,V=0;V<256;++V){var W=w^w<<1^w<<2^w<<3^w<<4;L[k]=W=W>>>8^255&W^99,O[W]=k;var j=N[k],$=N[j],ee=N[$],me=257*N[W]^16843008*W;A[0][k]=me<<24|me>>>8,A[1][k]=me<<16|me>>>16,A[2][k]=me<<8|me>>>24,A[3][k]=me,E[0][W]=(me=16843009*ee^65537*$^257*j^16843008*k)<<24|me>>>8,E[1][W]=me<<16|me>>>16,E[2][W]=me<<8|me>>>24,E[3][W]=me,0===k?k=w=1:(k=j^N[N[N[ee^j]]],w^=N[N[w]])}return{SBOX:L,INV_SBOX:O,SUB_MIX:A,INV_SUB_MIX:E}}();function c(N){this._key=t(N),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var N=this._key,o=N.length,L=o+6,O=4*(L+1),A=[],E=0;E<o;E++)A[E]=N[E];for(E=o;E<O;E++){var k=A[E-1];E%o==0?(k=M.SBOX[(k=k<<8|k>>>24)>>>24]<<24|M.SBOX[k>>>16&255]<<16|M.SBOX[k>>>8&255]<<8|M.SBOX[255&k],k^=s[E/o|0]<<24):o>6&&E%o==4&&(k=M.SBOX[k>>>24]<<24|M.SBOX[k>>>16&255]<<16|M.SBOX[k>>>8&255]<<8|M.SBOX[255&k]),A[E]=A[E-o]^k}for(var w=[],V=0;V<O;V++){var W=O-V,j=A[W-(V%4?0:4)];w[V]=V<4||W<=4?j:M.INV_SUB_MIX[0][M.SBOX[j>>>24]]^M.INV_SUB_MIX[1][M.SBOX[j>>>16&255]]^M.INV_SUB_MIX[2][M.SBOX[j>>>8&255]]^M.INV_SUB_MIX[3][M.SBOX[255&j]]}this._nRounds=L,this._keySchedule=A,this._invKeySchedule=w},c.prototype.encryptBlockRaw=function(N){return C(N=t(N),this._keySchedule,M.SUB_MIX,M.SBOX,this._nRounds)},c.prototype.encryptBlock=function(N){var o=this.encryptBlockRaw(N),L=e.allocUnsafe(16);return L.writeUInt32BE(o[0],0),L.writeUInt32BE(o[1],4),L.writeUInt32BE(o[2],8),L.writeUInt32BE(o[3],12),L},c.prototype.decryptBlock=function(N){var o=(N=t(N))[1];N[1]=N[3],N[3]=o;var L=C(N,this._invKeySchedule,M.INV_SUB_MIX,M.INV_SBOX,this._nRounds),O=e.allocUnsafe(16);return O.writeUInt32BE(L[0],0),O.writeUInt32BE(L[3],4),O.writeUInt32BE(L[2],8),O.writeUInt32BE(L[1],12),O},c.prototype.scrub=function(){v(this._keySchedule),v(this._invKeySchedule),v(this._key)},Ze.exports.AES=c},9382:(Ze,K,m)=>{var e=m(1899),t=m(3502).Buffer,v=m(1052),C=m(3894),s=m(8857),M=m(8789),c=m(7968);function L(O,A,E,k){v.call(this);var w=t.alloc(4,0);this._cipher=new e.AES(A);var V=this._cipher.encryptBlock(w);this._ghash=new s(V),E=function(O,A,E){if(12===A.length)return O._finID=t.concat([A,t.from([0,0,0,1])]),t.concat([A,t.from([0,0,0,2])]);var k=new s(E),w=A.length,V=w%16;k.update(A),V&&k.update(t.alloc(V=16-V,0)),k.update(t.alloc(8,0));var W=8*w,j=t.alloc(8);j.writeUIntBE(W,0,8),k.update(j),O._finID=k.state;var $=t.from(O._finID);return c($),$}(this,E,V),this._prev=t.from(E),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=k,this._alen=0,this._len=0,this._mode=O,this._authTag=null,this._called=!1}C(L,v),L.prototype._update=function(O){if(!this._called&&this._alen){var A=16-this._alen%16;A<16&&(A=t.alloc(A,0),this._ghash.update(A))}this._called=!0;var E=this._mode.encrypt(this,O);return this._ghash.update(this._decrypt?O:E),this._len+=O.length,E},L.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var O=M(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(O,A){var E=0;O.length!==A.length&&E++;for(var k=Math.min(O.length,A.length),w=0;w<k;++w)E+=O[w]^A[w];return E}(O,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=O,this._cipher.scrub()},L.prototype.getAuthTag=function(){if(this._decrypt||!t.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},L.prototype.setAuthTag=function(A){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=A},L.prototype.setAAD=function(A){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(A),this._alen+=A.length},Ze.exports=L},4330:(Ze,K,m)=>{var e=m(6900),t=m(856),v=m(4946);K.createCipher=K.Cipher=e.createCipher,K.createCipheriv=K.Cipheriv=e.createCipheriv,K.createDecipher=K.Decipher=t.createDecipher,K.createDecipheriv=K.Decipheriv=t.createDecipheriv,K.listCiphers=K.getCiphers=function(){return Object.keys(v)}},856:(Ze,K,m)=>{var e=m(9382),t=m(3502).Buffer,v=m(9171),C=m(8441),s=m(1052),M=m(1899),c=m(347);function o(k,w,V){s.call(this),this._cache=new L,this._last=void 0,this._cipher=new M.AES(w),this._prev=t.from(V),this._mode=k,this._autopadding=!0}function L(){this.cache=t.allocUnsafe(0)}function A(k,w,V){var W=v[k.toLowerCase()];if(!W)throw new TypeError("invalid suite type");if("string"==typeof V&&(V=t.from(V)),"GCM"!==W.mode&&V.length!==W.iv)throw new TypeError("invalid iv length "+V.length);if("string"==typeof w&&(w=t.from(w)),w.length!==W.key/8)throw new TypeError("invalid key length "+w.length);return"stream"===W.type?new C(W.module,w,V,!0):"auth"===W.type?new e(W.module,w,V,!0):new o(W.module,w,V)}m(3894)(o,s),o.prototype._update=function(k){this._cache.add(k);for(var w,V,W=[];w=this._cache.get(this._autopadding);)V=this._mode.decrypt(this,w),W.push(V);return t.concat(W)},o.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return function(k){var w=k[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var V=-1;++V<w;)if(k[V+(16-w)]!==w)throw new Error("unable to decrypt data");if(16!==w)return k.slice(0,16-w)}(this._mode.decrypt(this,k));if(k)throw new Error("data not multiple of block length")},o.prototype.setAutoPadding=function(k){return this._autopadding=!!k,this},L.prototype.add=function(k){this.cache=t.concat([this.cache,k])},L.prototype.get=function(k){var w;if(k){if(this.cache.length>16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w}else if(this.cache.length>=16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w;return null},L.prototype.flush=function(){if(this.cache.length)return this.cache},K.createDecipher=function(k,w){var V=v[k.toLowerCase()];if(!V)throw new TypeError("invalid suite type");var W=c(w,!1,V.key,V.iv);return A(k,W.key,W.iv)},K.createDecipheriv=A},6900:(Ze,K,m)=>{var e=m(9171),t=m(9382),v=m(3502).Buffer,C=m(8441),s=m(1052),M=m(1899),c=m(347);function o(k,w,V){s.call(this),this._cache=new O,this._cipher=new M.AES(w),this._prev=v.from(V),this._mode=k,this._autopadding=!0}m(3894)(o,s),o.prototype._update=function(k){this._cache.add(k);for(var w,V,W=[];w=this._cache.get();)V=this._mode.encrypt(this,w),W.push(V);return v.concat(W)};var L=v.alloc(16,16);function O(){this.cache=v.allocUnsafe(0)}function A(k,w,V){var W=e[k.toLowerCase()];if(!W)throw new TypeError("invalid suite type");if("string"==typeof w&&(w=v.from(w)),w.length!==W.key/8)throw new TypeError("invalid key length "+w.length);if("string"==typeof V&&(V=v.from(V)),"GCM"!==W.mode&&V.length!==W.iv)throw new TypeError("invalid iv length "+V.length);return"stream"===W.type?new C(W.module,w,V):"auth"===W.type?new t(W.module,w,V):new o(W.module,w,V)}o.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return k=this._mode.encrypt(this,k),this._cipher.scrub(),k;if(!k.equals(L))throw this._cipher.scrub(),new Error("data not multiple of block length")},o.prototype.setAutoPadding=function(k){return this._autopadding=!!k,this},O.prototype.add=function(k){this.cache=v.concat([this.cache,k])},O.prototype.get=function(){if(this.cache.length>15){var k=this.cache.slice(0,16);return this.cache=this.cache.slice(16),k}return null},O.prototype.flush=function(){for(var k=16-this.cache.length,w=v.allocUnsafe(k),V=-1;++V<k;)w.writeUInt8(k,V);return v.concat([this.cache,w])},K.createCipheriv=A,K.createCipher=function(k,w){var V=e[k.toLowerCase()];if(!V)throw new TypeError("invalid suite type");var W=c(w,!1,V.key,V.iv);return A(k,W.key,W.iv)}},8857:(Ze,K,m)=>{var e=m(3502).Buffer,t=e.alloc(16,0);function C(M){var c=e.allocUnsafe(16);return c.writeUInt32BE(M[0]>>>0,0),c.writeUInt32BE(M[1]>>>0,4),c.writeUInt32BE(M[2]>>>0,8),c.writeUInt32BE(M[3]>>>0,12),c}function s(M){this.h=M,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}s.prototype.ghash=function(M){for(var c=-1;++c<M.length;)this.state[c]^=M[c];this._multiply()},s.prototype._multiply=function(){for(var N,L,M=function(M){return[M.readUInt32BE(0),M.readUInt32BE(4),M.readUInt32BE(8),M.readUInt32BE(12)]}(this.h),c=[0,0,0,0],O=-1;++O<128;){for(0!=(this.state[~~(O/8)]&1<<7-O%8)&&(c[0]^=M[0],c[1]^=M[1],c[2]^=M[2],c[3]^=M[3]),L=0!=(1&M[3]),N=3;N>0;N--)M[N]=M[N]>>>1|(1&M[N-1])<<31;M[0]=M[0]>>>1,L&&(M[0]=M[0]^225<<24)}this.state=C(c)},s.prototype.update=function(M){this.cache=e.concat([this.cache,M]);for(var c;this.cache.length>=16;)c=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(c)},s.prototype.final=function(M,c){return this.cache.length&&this.ghash(e.concat([this.cache,t],16)),this.ghash(C([0,M,0,c])),this.state},Ze.exports=s},7968:Ze=>{Ze.exports=function(m){for(var t,e=m.length;e--;){if(255!==(t=m.readUInt8(e))){t++,m.writeUInt8(t,e);break}m.writeUInt8(0,e)}}},4903:(Ze,K,m)=>{var e=m(8789);K.encrypt=function(t,v){var C=e(v,t._prev);return t._prev=t._cipher.encryptBlock(C),t._prev},K.decrypt=function(t,v){var C=t._prev;t._prev=v;var s=t._cipher.decryptBlock(v);return e(s,C)}},9885:(Ze,K,m)=>{var e=m(3502).Buffer,t=m(8789);function v(C,s,M){var c=s.length,N=t(s,C._cache);return C._cache=C._cache.slice(c),C._prev=e.concat([C._prev,M?s:N]),N}K.encrypt=function(C,s,M){for(var N,c=e.allocUnsafe(0);s.length;){if(0===C._cache.length&&(C._cache=C._cipher.encryptBlock(C._prev),C._prev=e.allocUnsafe(0)),!(C._cache.length<=s.length)){c=e.concat([c,v(C,s,M)]);break}c=e.concat([c,v(C,s.slice(0,N=C._cache.length),M)]),s=s.slice(N)}return c}},6531:(Ze,K,m)=>{var e=m(3502).Buffer;function t(C,s,M){for(var O,A,N=-1,L=0;++N<8;)L+=(128&(A=C._cipher.encryptBlock(C._prev)[0]^(O=s&1<<7-N?128:0)))>>N%8,C._prev=v(C._prev,M?O:A);return L}function v(C,s){var M=C.length,c=-1,N=e.allocUnsafe(C.length);for(C=e.concat([C,e.from([s])]);++c<M;)N[c]=C[c]<<1|C[c+1]>>7;return N}K.encrypt=function(C,s,M){for(var c=s.length,N=e.allocUnsafe(c),o=-1;++o<c;)N[o]=t(C,s[o],M);return N}},1641:(Ze,K,m)=>{var e=m(3502).Buffer;function t(v,C,s){var c=v._cipher.encryptBlock(v._prev)[0]^C;return v._prev=e.concat([v._prev.slice(1),e.from([s?C:c])]),c}K.encrypt=function(v,C,s){for(var M=C.length,c=e.allocUnsafe(M),N=-1;++N<M;)c[N]=t(v,C[N],s);return c}},1150:(Ze,K,m)=>{var e=m(8789),t=m(3502).Buffer,v=m(7968);function C(M){var c=M._cipher.encryptBlockRaw(M._prev);return v(M._prev),c}K.encrypt=function(M,c){var N=Math.ceil(c.length/16),o=M._cache.length;M._cache=t.concat([M._cache,t.allocUnsafe(16*N)]);for(var L=0;L<N;L++){var O=C(M),A=o+16*L;M._cache.writeUInt32BE(O[0],A+0),M._cache.writeUInt32BE(O[1],A+4),M._cache.writeUInt32BE(O[2],A+8),M._cache.writeUInt32BE(O[3],A+12)}var E=M._cache.slice(0,c.length);return M._cache=M._cache.slice(c.length),e(c,E)}},1704:(Ze,K)=>{K.encrypt=function(m,e){return m._cipher.encryptBlock(e)},K.decrypt=function(m,e){return m._cipher.decryptBlock(e)}},9171:(Ze,K,m)=>{var e={ECB:m(1704),CBC:m(4903),CFB:m(9885),CFB8:m(1641),CFB1:m(6531),OFB:m(6816),CTR:m(1150),GCM:m(1150)},t=m(4946);for(var v in t)t[v].module=e[t[v].mode];Ze.exports=t},6816:(Ze,K,m)=>{var e=m(8789);function t(v){return v._prev=v._cipher.encryptBlock(v._prev),v._prev}K.encrypt=function(v,C){for(;v._cache.length<C.length;)v._cache=Buffer.concat([v._cache,t(v)]);var s=v._cache.slice(0,C.length);return v._cache=v._cache.slice(C.length),e(C,s)}},8441:(Ze,K,m)=>{var e=m(1899),t=m(3502).Buffer,v=m(1052);function s(M,c,N,o){v.call(this),this._cipher=new e.AES(c),this._prev=t.from(N),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=o,this._mode=M}m(3894)(s,v),s.prototype._update=function(M){return this._mode.encrypt(this,M,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},Ze.exports=s},5255:(Ze,K,m)=>{var e=m(9004),t=m(4330),v=m(9171),C=m(1115),s=m(347);function N(O,A,E){if(O=O.toLowerCase(),v[O])return t.createCipheriv(O,A,E);if(C[O])return new e({key:A,iv:E,mode:O});throw new TypeError("invalid suite type")}function o(O,A,E){if(O=O.toLowerCase(),v[O])return t.createDecipheriv(O,A,E);if(C[O])return new e({key:A,iv:E,mode:O,decrypt:!0});throw new TypeError("invalid suite type")}K.createCipher=K.Cipher=function(O,A){var E,k;if(O=O.toLowerCase(),v[O])E=v[O].key,k=v[O].iv;else{if(!C[O])throw new TypeError("invalid suite type");E=8*C[O].key,k=C[O].iv}var w=s(A,!1,E,k);return N(O,w.key,w.iv)},K.createCipheriv=K.Cipheriv=N,K.createDecipher=K.Decipher=function(O,A){var E,k;if(O=O.toLowerCase(),v[O])E=v[O].key,k=v[O].iv;else{if(!C[O])throw new TypeError("invalid suite type");E=8*C[O].key,k=C[O].iv}var w=s(A,!1,E,k);return o(O,w.key,w.iv)},K.createDecipheriv=K.Decipheriv=o,K.listCiphers=K.getCiphers=function(){return Object.keys(C).concat(t.getCiphers())}},9004:(Ze,K,m)=>{var e=m(1052),t=m(3684),v=m(3894),C=m(3502).Buffer,s={"des-ede3-cbc":t.CBC.instantiate(t.EDE),"des-ede3":t.EDE,"des-ede-cbc":t.CBC.instantiate(t.EDE),"des-ede":t.EDE,"des-cbc":t.CBC.instantiate(t.DES),"des-ecb":t.DES};function M(c){e.call(this);var L,N=c.mode.toLowerCase(),o=s[N];L=c.decrypt?"decrypt":"encrypt";var O=c.key;C.isBuffer(O)||(O=C.from(O)),("des-ede"===N||"des-ede-cbc"===N)&&(O=C.concat([O,O.slice(0,8)]));var A=c.iv;C.isBuffer(A)||(A=C.from(A)),this._des=o.create({key:O,iv:A,type:L})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],Ze.exports=M,v(M,e),M.prototype._update=function(c){return C.from(this._des.update(c))},M.prototype._final=function(){return C.from(this._des.final())}},1115:(Ze,K)=>{K["des-ecb"]={key:8,iv:0},K["des-cbc"]=K.des={key:8,iv:8},K["des-ede3-cbc"]=K.des3={key:24,iv:8},K["des-ede3"]={key:24,iv:0},K["des-ede-cbc"]={key:16,iv:8},K["des-ede"]={key:16,iv:0}},8466:(Ze,K,m)=>{var e=m(8538),t=m(3753);function C(M){var N,c=M.modulus.byteLength();do{N=new e(t(c))}while(N.cmp(M.modulus)>=0||!N.umod(M.prime1)||!N.umod(M.prime2));return N}function s(M,c){var N=function(M){var c=C(M);return{blinder:c.toRed(e.mont(M.modulus)).redPow(new e(M.publicExponent)).fromRed(),unblinder:c.invm(M.modulus)}}(c),o=c.modulus.byteLength(),L=new e(M).mul(N.blinder).umod(c.modulus),O=L.toRed(e.mont(c.prime1)),A=L.toRed(e.mont(c.prime2)),E=c.coefficient,k=c.prime1,w=c.prime2,V=O.redPow(c.exponent1).fromRed(),W=A.redPow(c.exponent2).fromRed(),j=V.isub(W).imul(E).umod(k).imul(w);return W.iadd(j).imul(N.unblinder).umod(c.modulus).toArrayLike(Buffer,"be",o)}s.getr=C,Ze.exports=s},7793:(Ze,K,m)=>{Ze.exports=m(5207)},3923:(Ze,K,m)=>{var e=m(8446).Buffer,t=m(6386),v=m(5685),C=m(3894),s=m(9947),M=m(3946),c=m(5207);function N(A){v.Writable.call(this);var E=c[A];if(!E)throw new Error("Unknown message digest");this._hashType=E.hash,this._hash=t(E.hash),this._tag=E.id,this._signType=E.sign}function o(A){v.Writable.call(this);var E=c[A];if(!E)throw new Error("Unknown message digest");this._hash=t(E.hash),this._tag=E.id,this._signType=E.sign}function L(A){return new N(A)}function O(A){return new o(A)}Object.keys(c).forEach(function(A){c[A].id=e.from(c[A].id,"hex"),c[A.toLowerCase()]=c[A]}),C(N,v.Writable),N.prototype._write=function(E,k,w){this._hash.update(E),w()},N.prototype.update=function(E,k){return"string"==typeof E&&(E=e.from(E,k)),this._hash.update(E),this},N.prototype.sign=function(E,k){this.end();var w=this._hash.digest(),V=s(w,E,this._hashType,this._signType,this._tag);return k?V.toString(k):V},C(o,v.Writable),o.prototype._write=function(E,k,w){this._hash.update(E),w()},o.prototype.update=function(E,k){return"string"==typeof E&&(E=e.from(E,k)),this._hash.update(E),this},o.prototype.verify=function(E,k,w){"string"==typeof k&&(k=e.from(k,w)),this.end();var V=this._hash.digest();return M(k,V,E,this._signType,this._tag)},Ze.exports={Sign:L,Verify:O,createSign:L,createVerify:O}},9947:(Ze,K,m)=>{var e=m(8446).Buffer,t=m(4529),v=m(8466),C=m(7715).ec,s=m(8538),M=m(2772),c=m(1308);function A(W,j,$,ee){if((W=e.from(W.toArray())).length<j.byteLength()){var me=e.alloc(j.byteLength()-W.length);W=e.concat([me,W])}var ce=$.length,le=function(W,j){W=(W=E(W,j)).mod(j);var $=e.from(W.toArray());if($.length<j.byteLength()){var ee=e.alloc(j.byteLength()-$.length);$=e.concat([ee,$])}return $}($,j),te=e.alloc(ce);te.fill(1);var re=e.alloc(ce);return re=t(ee,re).update(te).update(e.from([0])).update(W).update(le).digest(),te=t(ee,re).update(te).digest(),{k:re=t(ee,re).update(te).update(e.from([1])).update(W).update(le).digest(),v:te=t(ee,re).update(te).digest()}}function E(W,j){var $=new s(W),ee=(W.length<<3)-j.bitLength();return ee>0&&$.ishrn(ee),$}function w(W,j,$){var ee,me;do{for(ee=e.alloc(0);8*ee.length<W.bitLength();)j.v=t($,j.k).update(j.v).digest(),ee=e.concat([ee,j.v]);me=E(ee,W),j.k=t($,j.k).update(j.v).update(e.from([0])).digest(),j.v=t($,j.k).update(j.v).digest()}while(-1!==me.cmp(W));return me}function V(W,j,$,ee){return W.toRed(s.mont($)).redPow(j).fromRed().mod(ee)}Ze.exports=function(W,j,$,ee,me){var ce=M(j);if(ce.curve){if("ecdsa"!==ee&&"ecdsa/rsa"!==ee)throw new Error("wrong private key type");return function(W,j){var $=c[j.curve.join(".")];if(!$)throw new Error("unknown curve "+j.curve.join("."));var ce=new C($).keyFromPrivate(j.privateKey).sign(W);return e.from(ce.toDER())}(W,ce)}if("dsa"===ce.type){if("dsa"!==ee)throw new Error("wrong private key type");return function(W,j,$){for(var re,ee=j.params.priv_key,me=j.params.p,ce=j.params.q,le=j.params.g,te=new s(0),pe=E(W,ce).mod(ce),y=!1,i=A(ee,ce,W,$);!1===y;)te=V(le,re=w(ce,i,$),me,ce),0===(y=re.invm(ce).imul(pe.add(ee.mul(te))).mod(ce)).cmpn(0)&&(y=!1,te=new s(0));return function(W,j){W=W.toArray(),j=j.toArray(),128&W[0]&&(W=[0].concat(W)),128&j[0]&&(j=[0].concat(j));var ee=[48,W.length+j.length+4,2,W.length];return ee=ee.concat(W,[2,j.length],j),e.from(ee)}(te,y)}(W,ce,$)}if("rsa"!==ee&&"ecdsa/rsa"!==ee)throw new Error("wrong private key type");W=e.concat([me,W]);for(var le=ce.modulus.byteLength(),te=[0,1];W.length+te.length+1<le;)te.push(255);te.push(0);for(var re=-1;++re<W.length;)te.push(W[re]);return v(te,ce)},Ze.exports.getKey=A,Ze.exports.makeKey=w},3946:(Ze,K,m)=>{var e=m(8446).Buffer,t=m(8538),v=m(7715).ec,C=m(2772),s=m(1308);function o(L,O){if(L.cmpn(0)<=0)throw new Error("invalid sig");if(L.cmp(O)>=O)throw new Error("invalid sig")}Ze.exports=function(L,O,A,E,k){var w=C(A);if("ec"===w.type){if("ecdsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");return function(L,O,A){var E=s[A.data.algorithm.curve.join(".")];if(!E)throw new Error("unknown curve "+A.data.algorithm.curve.join("."));return new v(E).verify(O,L,A.data.subjectPrivateKey.data)}(L,O,w)}if("dsa"===w.type){if("dsa"!==E)throw new Error("wrong public key type");return function(L,O,A){var E=A.data.p,k=A.data.q,w=A.data.g,V=A.data.pub_key,W=C.signature.decode(L,"der"),j=W.s,$=W.r;o(j,k),o($,k);var ee=t.mont(E),me=j.invm(k);return 0===w.toRed(ee).redPow(new t(O).mul(me).mod(k)).fromRed().mul(V.toRed(ee).redPow($.mul(me).mod(k)).fromRed()).mod(E).mod(k).cmp($)}(L,O,w)}if("rsa"!==E&&"ecdsa/rsa"!==E)throw new Error("wrong public key type");O=e.concat([k,O]);for(var V=w.modulus.byteLength(),W=[1],j=0;O.length+W.length+2<V;)W.push(255),j++;W.push(0);for(var $=-1;++$<O.length;)W.push(O[$]);W=e.from(W);var ee=t.mont(w.modulus);L=(L=new t(L).toRed(ee)).redPow(new t(w.publicExponent)),L=e.from(L.fromRed().toArray());var me=j<8?1:0;for(V=Math.min(L.length,W.length),L.length!==W.length&&(me=1),$=-1;++$<V;)me|=L[$]^W[$];return 0===me}},8446:(Ze,K,m)=>{var e=m(3172),t=e.Buffer;function v(s,M){for(var c in s)M[c]=s[c]}function C(s,M,c){return t(s,M,c)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ze.exports=e:(v(e,K),K.Buffer=C),C.prototype=Object.create(t.prototype),v(t,C),C.from=function(s,M,c){if("number"==typeof s)throw new TypeError("Argument must not be a number");return t(s,M,c)},C.alloc=function(s,M,c){if("number"!=typeof s)throw new TypeError("Argument must be a number");var N=t(s);return void 0!==M?"string"==typeof c?N.fill(M,c):N.fill(M):N.fill(0),N},C.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t(s)},C.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e.SlowBuffer(s)}},8789:Ze=>{Ze.exports=function(m,e){for(var t=Math.min(m.length,e.length),v=new Buffer(t),C=0;C<t;++C)v[C]=m[C]^e[C];return v}},3172:(Ze,K,m)=>{"use strict";var e=m(5343),t=m(8461),v="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;K.Buffer=c,K.SlowBuffer=function(Pe){return+Pe!=Pe&&(Pe=0),c.alloc(+Pe)},K.INSPECT_MAX_BYTES=50;var C=2147483647;function M(Pe){if(Pe>C)throw new RangeError('The value "'+Pe+'" is invalid for option "size"');var Ve=new Uint8Array(Pe);return Object.setPrototypeOf(Ve,c.prototype),Ve}function c(Pe,Ve,he){if("number"==typeof Pe){if("string"==typeof Ve)throw new TypeError('The "string" argument must be of type string. Received type number');return O(Pe)}return N(Pe,Ve,he)}function N(Pe,Ve,he){if("string"==typeof Pe)return function(Pe,Ve){if(("string"!=typeof Ve||""===Ve)&&(Ve="utf8"),!c.isEncoding(Ve))throw new TypeError("Unknown encoding: "+Ve);var he=0|$(Pe,Ve),Ee=M(he),ke=Ee.write(Pe,Ve);return ke!==he&&(Ee=Ee.slice(0,ke)),Ee}(Pe,Ve);if(ArrayBuffer.isView(Pe))return function(Pe){if(ae(Pe,Uint8Array)){var Ve=new Uint8Array(Pe);return w(Ve.buffer,Ve.byteOffset,Ve.byteLength)}return E(Pe)}(Pe);if(null==Pe)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Pe);if(ae(Pe,ArrayBuffer)||Pe&&ae(Pe.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(ae(Pe,SharedArrayBuffer)||Pe&&ae(Pe.buffer,SharedArrayBuffer)))return w(Pe,Ve,he);if("number"==typeof Pe)throw new TypeError('The "value" argument must not be of type number. Received type number');var Ee=Pe.valueOf&&Pe.valueOf();if(null!=Ee&&Ee!==Pe)return c.from(Ee,Ve,he);var ke=function(Pe){if(c.isBuffer(Pe)){var Ve=0|W(Pe.length),he=M(Ve);return 0===he.length||Pe.copy(he,0,0,Ve),he}return void 0!==Pe.length?"number"!=typeof Pe.length||We(Pe.length)?M(0):E(Pe):"Buffer"===Pe.type&&Array.isArray(Pe.data)?E(Pe.data):void 0}(Pe);if(ke)return ke;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Pe[Symbol.toPrimitive])return c.from(Pe[Symbol.toPrimitive]("string"),Ve,he);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Pe)}function o(Pe){if("number"!=typeof Pe)throw new TypeError('"size" argument must be of type number');if(Pe<0)throw new RangeError('The value "'+Pe+'" is invalid for option "size"')}function O(Pe){return o(Pe),M(Pe<0?0:0|W(Pe))}function E(Pe){for(var Ve=Pe.length<0?0:0|W(Pe.length),he=M(Ve),Ee=0;Ee<Ve;Ee+=1)he[Ee]=255&Pe[Ee];return he}function w(Pe,Ve,he){if(Ve<0||Pe.byteLength<Ve)throw new RangeError('"offset" is outside of buffer bounds');if(Pe.byteLength<Ve+(he||0))throw new RangeError('"length" is outside of buffer bounds');var Ee;return Ee=void 0===Ve&&void 0===he?new Uint8Array(Pe):void 0===he?new Uint8Array(Pe,Ve):new Uint8Array(Pe,Ve,he),Object.setPrototypeOf(Ee,c.prototype),Ee}function W(Pe){if(Pe>=C)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C.toString(16)+" bytes");return 0|Pe}function $(Pe,Ve){if(c.isBuffer(Pe))return Pe.length;if(ArrayBuffer.isView(Pe)||ae(Pe,ArrayBuffer))return Pe.byteLength;if("string"!=typeof Pe)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Pe);var he=Pe.length,Ee=arguments.length>2&&!0===arguments[2];if(!Ee&&0===he)return 0;for(var ke=!1;;)switch(Ve){case"ascii":case"latin1":case"binary":return he;case"utf8":case"utf-8":return Be(Pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*he;case"hex":return he>>>1;case"base64":return Me(Pe).length;default:if(ke)return Ee?-1:Be(Pe).length;Ve=(""+Ve).toLowerCase(),ke=!0}}function ee(Pe,Ve,he){var Ee=!1;if((void 0===Ve||Ve<0)&&(Ve=0),Ve>this.length||((void 0===he||he>this.length)&&(he=this.length),he<=0)||(he>>>=0)<=(Ve>>>=0))return"";for(Pe||(Pe="utf8");;)switch(Pe){case"hex":return x(this,Ve,he);case"utf8":case"utf-8":return p(this,Ve,he);case"ascii":return D(this,Ve,he);case"latin1":case"binary":return I(this,Ve,he);case"base64":return a(this,Ve,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r(this,Ve,he);default:if(Ee)throw new TypeError("Unknown encoding: "+Pe);Pe=(Pe+"").toLowerCase(),Ee=!0}}function me(Pe,Ve,he){var Ee=Pe[Ve];Pe[Ve]=Pe[he],Pe[he]=Ee}function ce(Pe,Ve,he,Ee,ke){if(0===Pe.length)return-1;if("string"==typeof he?(Ee=he,he=0):he>2147483647?he=2147483647:he<-2147483648&&(he=-2147483648),We(he=+he)&&(he=ke?0:Pe.length-1),he<0&&(he=Pe.length+he),he>=Pe.length){if(ke)return-1;he=Pe.length-1}else if(he<0){if(!ke)return-1;he=0}if("string"==typeof Ve&&(Ve=c.from(Ve,Ee)),c.isBuffer(Ve))return 0===Ve.length?-1:le(Pe,Ve,he,Ee,ke);if("number"==typeof Ve)return Ve&=255,"function"==typeof Uint8Array.prototype.indexOf?ke?Uint8Array.prototype.indexOf.call(Pe,Ve,he):Uint8Array.prototype.lastIndexOf.call(Pe,Ve,he):le(Pe,[Ve],he,Ee,ke);throw new TypeError("val must be string, number or Buffer")}function le(Pe,Ve,he,Ee,ke){var Ue,q=1,J=Pe.length,oe=Ve.length;if(void 0!==Ee&&("ucs2"===(Ee=String(Ee).toLowerCase())||"ucs-2"===Ee||"utf16le"===Ee||"utf-16le"===Ee)){if(Pe.length<2||Ve.length<2)return-1;q=2,J/=2,oe/=2,he/=2}function Ce(nt,st){return 1===q?nt[st]:nt.readUInt16BE(st*q)}if(ke){var ht=-1;for(Ue=he;Ue<J;Ue++)if(Ce(Pe,Ue)===Ce(Ve,-1===ht?0:Ue-ht)){if(-1===ht&&(ht=Ue),Ue-ht+1===oe)return ht*q}else-1!==ht&&(Ue-=Ue-ht),ht=-1}else for(he+oe>J&&(he=J-oe),Ue=he;Ue>=0;Ue--){for(var it=!0,ft=0;ft<oe;ft++)if(Ce(Pe,Ue+ft)!==Ce(Ve,ft)){it=!1;break}if(it)return Ue}return-1}function te(Pe,Ve,he,Ee){he=Number(he)||0;var ke=Pe.length-he;Ee?(Ee=Number(Ee))>ke&&(Ee=ke):Ee=ke;var q=Ve.length;Ee>q/2&&(Ee=q/2);for(var J=0;J<Ee;++J){var oe=parseInt(Ve.substr(2*J,2),16);if(We(oe))return J;Pe[he+J]=oe}return J}function re(Pe,Ve,he,Ee){return we(Be(Ve,Pe.length-he),Pe,he,Ee)}function pe(Pe,Ve,he,Ee){return we(function(Pe){for(var Ve=[],he=0;he<Pe.length;++he)Ve.push(255&Pe.charCodeAt(he));return Ve}(Ve),Pe,he,Ee)}function y(Pe,Ve,he,Ee){return we(Me(Ve),Pe,he,Ee)}function i(Pe,Ve,he,Ee){return we(function(Pe,Ve){for(var he,Ee,q=[],J=0;J<Pe.length&&!((Ve-=2)<0);++J)Ee=(he=Pe.charCodeAt(J))>>8,q.push(he%256),q.push(Ee);return q}(Ve,Pe.length-he),Pe,he,Ee)}function a(Pe,Ve,he){return e.fromByteArray(0===Ve&&he===Pe.length?Pe:Pe.slice(Ve,he))}function p(Pe,Ve,he){he=Math.min(Pe.length,he);for(var Ee=[],ke=Ve;ke<he;){var Ce,Ue,ht,it,q=Pe[ke],J=null,oe=q>239?4:q>223?3:q>191?2:1;if(ke+oe<=he)switch(oe){case 1:q<128&&(J=q);break;case 2:128==(192&(Ce=Pe[ke+1]))&&(it=(31&q)<<6|63&Ce)>127&&(J=it);break;case 3:Ue=Pe[ke+2],128==(192&(Ce=Pe[ke+1]))&&128==(192&Ue)&&(it=(15&q)<<12|(63&Ce)<<6|63&Ue)>2047&&(it<55296||it>57343)&&(J=it);break;case 4:Ue=Pe[ke+2],ht=Pe[ke+3],128==(192&(Ce=Pe[ke+1]))&&128==(192&Ue)&&128==(192&ht)&&(it=(15&q)<<18|(63&Ce)<<12|(63&Ue)<<6|63&ht)>65535&&it<1114112&&(J=it)}null===J?(J=65533,oe=1):J>65535&&(Ee.push((J-=65536)>>>10&1023|55296),J=56320|1023&J),Ee.push(J),ke+=oe}return function(Pe){var Ve=Pe.length;if(Ve<=u)return String.fromCharCode.apply(String,Pe);for(var he="",Ee=0;Ee<Ve;)he+=String.fromCharCode.apply(String,Pe.slice(Ee,Ee+=u));return he}(Ee)}K.kMaxLength=C,!(c.TYPED_ARRAY_SUPPORT=function(){try{var Pe=new Uint8Array(1),Ve={foo:function(){return 42}};return Object.setPrototypeOf(Ve,Uint8Array.prototype),Object.setPrototypeOf(Pe,Ve),42===Pe.foo()}catch(he){return!1}}())&&"undefined"!=typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(Pe,Ve,he){return N(Pe,Ve,he)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(Pe,Ve,he){return function(Pe,Ve,he){return o(Pe),Pe<=0?M(Pe):void 0!==Ve?"string"==typeof he?M(Pe).fill(Ve,he):M(Pe).fill(Ve):M(Pe)}(Pe,Ve,he)},c.allocUnsafe=function(Pe){return O(Pe)},c.allocUnsafeSlow=function(Pe){return O(Pe)},c.isBuffer=function(Ve){return null!=Ve&&!0===Ve._isBuffer&&Ve!==c.prototype},c.compare=function(Ve,he){if(ae(Ve,Uint8Array)&&(Ve=c.from(Ve,Ve.offset,Ve.byteLength)),ae(he,Uint8Array)&&(he=c.from(he,he.offset,he.byteLength)),!c.isBuffer(Ve)||!c.isBuffer(he))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ve===he)return 0;for(var Ee=Ve.length,ke=he.length,q=0,J=Math.min(Ee,ke);q<J;++q)if(Ve[q]!==he[q]){Ee=Ve[q],ke=he[q];break}return Ee<ke?-1:ke<Ee?1:0},c.isEncoding=function(Ve){switch(String(Ve).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(Ve,he){if(!Array.isArray(Ve))throw new TypeError('"list" argument must be an Array of Buffers');if(0===Ve.length)return c.alloc(0);var Ee;if(void 0===he)for(he=0,Ee=0;Ee<Ve.length;++Ee)he+=Ve[Ee].length;var ke=c.allocUnsafe(he),q=0;for(Ee=0;Ee<Ve.length;++Ee){var J=Ve[Ee];if(ae(J,Uint8Array))q+J.length>ke.length?c.from(J).copy(ke,q):Uint8Array.prototype.set.call(ke,J,q);else{if(!c.isBuffer(J))throw new TypeError('"list" argument must be an Array of Buffers');J.copy(ke,q)}q+=J.length}return ke},c.byteLength=$,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var Ve=this.length;if(Ve%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var he=0;he<Ve;he+=2)me(this,he,he+1);return this},c.prototype.swap32=function(){var Ve=this.length;if(Ve%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var he=0;he<Ve;he+=4)me(this,he,he+3),me(this,he+1,he+2);return this},c.prototype.swap64=function(){var Ve=this.length;if(Ve%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var he=0;he<Ve;he+=8)me(this,he,he+7),me(this,he+1,he+6),me(this,he+2,he+5),me(this,he+3,he+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var Ve=this.length;return 0===Ve?"":0===arguments.length?p(this,0,Ve):ee.apply(this,arguments)},c.prototype.equals=function(Ve){if(!c.isBuffer(Ve))throw new TypeError("Argument must be a Buffer");return this===Ve||0===c.compare(this,Ve)},c.prototype.inspect=function(){var Ve="",he=K.INSPECT_MAX_BYTES;return Ve=this.toString("hex",0,he).replace(/(.{2})/g,"$1 ").trim(),this.length>he&&(Ve+=" ... "),"<Buffer "+Ve+">"},v&&(c.prototype[v]=c.prototype.inspect),c.prototype.compare=function(Ve,he,Ee,ke,q){if(ae(Ve,Uint8Array)&&(Ve=c.from(Ve,Ve.offset,Ve.byteLength)),!c.isBuffer(Ve))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ve);if(void 0===he&&(he=0),void 0===Ee&&(Ee=Ve?Ve.length:0),void 0===ke&&(ke=0),void 0===q&&(q=this.length),he<0||Ee>Ve.length||ke<0||q>this.length)throw new RangeError("out of range index");if(ke>=q&&he>=Ee)return 0;if(ke>=q)return-1;if(he>=Ee)return 1;if(this===Ve)return 0;for(var J=(q>>>=0)-(ke>>>=0),oe=(Ee>>>=0)-(he>>>=0),Ce=Math.min(J,oe),Ue=this.slice(ke,q),ht=Ve.slice(he,Ee),it=0;it<Ce;++it)if(Ue[it]!==ht[it]){J=Ue[it],oe=ht[it];break}return J<oe?-1:oe<J?1:0},c.prototype.includes=function(Ve,he,Ee){return-1!==this.indexOf(Ve,he,Ee)},c.prototype.indexOf=function(Ve,he,Ee){return ce(this,Ve,he,Ee,!0)},c.prototype.lastIndexOf=function(Ve,he,Ee){return ce(this,Ve,he,Ee,!1)},c.prototype.write=function(Ve,he,Ee,ke){if(void 0===he)ke="utf8",Ee=this.length,he=0;else if(void 0===Ee&&"string"==typeof he)ke=he,Ee=this.length,he=0;else{if(!isFinite(he))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");he>>>=0,isFinite(Ee)?(Ee>>>=0,void 0===ke&&(ke="utf8")):(ke=Ee,Ee=void 0)}var q=this.length-he;if((void 0===Ee||Ee>q)&&(Ee=q),Ve.length>0&&(Ee<0||he<0)||he>this.length)throw new RangeError("Attempt to write outside buffer bounds");ke||(ke="utf8");for(var J=!1;;)switch(ke){case"hex":return te(this,Ve,he,Ee);case"utf8":case"utf-8":return re(this,Ve,he,Ee);case"ascii":case"latin1":case"binary":return pe(this,Ve,he,Ee);case"base64":return y(this,Ve,he,Ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,Ve,he,Ee);default:if(J)throw new TypeError("Unknown encoding: "+ke);ke=(""+ke).toLowerCase(),J=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var u=4096;function D(Pe,Ve,he){var Ee="";he=Math.min(Pe.length,he);for(var ke=Ve;ke<he;++ke)Ee+=String.fromCharCode(127&Pe[ke]);return Ee}function I(Pe,Ve,he){var Ee="";he=Math.min(Pe.length,he);for(var ke=Ve;ke<he;++ke)Ee+=String.fromCharCode(Pe[ke]);return Ee}function x(Pe,Ve,he){var Ee=Pe.length;(!Ve||Ve<0)&&(Ve=0),(!he||he<0||he>Ee)&&(he=Ee);for(var ke="",q=Ve;q<he;++q)ke+=vt[Pe[q]];return ke}function r(Pe,Ve,he){for(var Ee=Pe.slice(Ve,he),ke="",q=0;q<Ee.length-1;q+=2)ke+=String.fromCharCode(Ee[q]+256*Ee[q+1]);return ke}function b(Pe,Ve,he){if(Pe%1!=0||Pe<0)throw new RangeError("offset is not uint");if(Pe+Ve>he)throw new RangeError("Trying to access beyond buffer length")}function Z(Pe,Ve,he,Ee,ke,q){if(!c.isBuffer(Pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ve>ke||Ve<q)throw new RangeError('"value" argument is out of bounds');if(he+Ee>Pe.length)throw new RangeError("Index out of range")}function P(Pe,Ve,he,Ee,ke,q){if(he+Ee>Pe.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("Index out of range")}function U(Pe,Ve,he,Ee,ke){return Ve=+Ve,he>>>=0,ke||P(Pe,0,he,4),t.write(Pe,Ve,he,Ee,23,4),he+4}function ye(Pe,Ve,he,Ee,ke){return Ve=+Ve,he>>>=0,ke||P(Pe,0,he,8),t.write(Pe,Ve,he,Ee,52,8),he+8}c.prototype.slice=function(Ve,he){var Ee=this.length;(Ve=~~Ve)<0?(Ve+=Ee)<0&&(Ve=0):Ve>Ee&&(Ve=Ee),(he=void 0===he?Ee:~~he)<0?(he+=Ee)<0&&(he=0):he>Ee&&(he=Ee),he<Ve&&(he=Ve);var ke=this.subarray(Ve,he);return Object.setPrototypeOf(ke,c.prototype),ke},c.prototype.readUintLE=c.prototype.readUIntLE=function(Ve,he,Ee){Ve>>>=0,he>>>=0,Ee||b(Ve,he,this.length);for(var ke=this[Ve],q=1,J=0;++J<he&&(q*=256);)ke+=this[Ve+J]*q;return ke},c.prototype.readUintBE=c.prototype.readUIntBE=function(Ve,he,Ee){Ve>>>=0,he>>>=0,Ee||b(Ve,he,this.length);for(var ke=this[Ve+--he],q=1;he>0&&(q*=256);)ke+=this[Ve+--he]*q;return ke},c.prototype.readUint8=c.prototype.readUInt8=function(Ve,he){return Ve>>>=0,he||b(Ve,1,this.length),this[Ve]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(Ve,he){return Ve>>>=0,he||b(Ve,2,this.length),this[Ve]|this[Ve+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(Ve,he){return Ve>>>=0,he||b(Ve,2,this.length),this[Ve]<<8|this[Ve+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(Ve,he){return Ve>>>=0,he||b(Ve,4,this.length),(this[Ve]|this[Ve+1]<<8|this[Ve+2]<<16)+16777216*this[Ve+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(Ve,he){return Ve>>>=0,he||b(Ve,4,this.length),16777216*this[Ve]+(this[Ve+1]<<16|this[Ve+2]<<8|this[Ve+3])},c.prototype.readIntLE=function(Ve,he,Ee){Ve>>>=0,he>>>=0,Ee||b(Ve,he,this.length);for(var ke=this[Ve],q=1,J=0;++J<he&&(q*=256);)ke+=this[Ve+J]*q;return ke>=(q*=128)&&(ke-=Math.pow(2,8*he)),ke},c.prototype.readIntBE=function(Ve,he,Ee){Ve>>>=0,he>>>=0,Ee||b(Ve,he,this.length);for(var ke=he,q=1,J=this[Ve+--ke];ke>0&&(q*=256);)J+=this[Ve+--ke]*q;return J>=(q*=128)&&(J-=Math.pow(2,8*he)),J},c.prototype.readInt8=function(Ve,he){return Ve>>>=0,he||b(Ve,1,this.length),128&this[Ve]?-1*(255-this[Ve]+1):this[Ve]},c.prototype.readInt16LE=function(Ve,he){Ve>>>=0,he||b(Ve,2,this.length);var Ee=this[Ve]|this[Ve+1]<<8;return 32768&Ee?4294901760|Ee:Ee},c.prototype.readInt16BE=function(Ve,he){Ve>>>=0,he||b(Ve,2,this.length);var Ee=this[Ve+1]|this[Ve]<<8;return 32768&Ee?4294901760|Ee:Ee},c.prototype.readInt32LE=function(Ve,he){return Ve>>>=0,he||b(Ve,4,this.length),this[Ve]|this[Ve+1]<<8|this[Ve+2]<<16|this[Ve+3]<<24},c.prototype.readInt32BE=function(Ve,he){return Ve>>>=0,he||b(Ve,4,this.length),this[Ve]<<24|this[Ve+1]<<16|this[Ve+2]<<8|this[Ve+3]},c.prototype.readFloatLE=function(Ve,he){return Ve>>>=0,he||b(Ve,4,this.length),t.read(this,Ve,!0,23,4)},c.prototype.readFloatBE=function(Ve,he){return Ve>>>=0,he||b(Ve,4,this.length),t.read(this,Ve,!1,23,4)},c.prototype.readDoubleLE=function(Ve,he){return Ve>>>=0,he||b(Ve,8,this.length),t.read(this,Ve,!0,52,8)},c.prototype.readDoubleBE=function(Ve,he){return Ve>>>=0,he||b(Ve,8,this.length),t.read(this,Ve,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(Ve,he,Ee,ke){Ve=+Ve,he>>>=0,Ee>>>=0,ke||Z(this,Ve,he,Ee,Math.pow(2,8*Ee)-1,0);var J=1,oe=0;for(this[he]=255&Ve;++oe<Ee&&(J*=256);)this[he+oe]=Ve/J&255;return he+Ee},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(Ve,he,Ee,ke){Ve=+Ve,he>>>=0,Ee>>>=0,ke||Z(this,Ve,he,Ee,Math.pow(2,8*Ee)-1,0);var J=Ee-1,oe=1;for(this[he+J]=255&Ve;--J>=0&&(oe*=256);)this[he+J]=Ve/oe&255;return he+Ee},c.prototype.writeUint8=c.prototype.writeUInt8=function(Ve,he,Ee){return Ve=+Ve,he>>>=0,Ee||Z(this,Ve,he,1,255,0),this[he]=255&Ve,he+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(Ve,he,Ee){return Ve=+Ve,he>>>=0,Ee||Z(this,Ve,he,2,65535,0),this[he]=255&Ve,this[he+1]=Ve>>>8,he+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(Ve,he,Ee){return Ve=+Ve,he>>>=0,Ee||Z(this,Ve,he,2,65535,0),this[he]=Ve>>>8,this[he+1]=255&Ve,he+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(Ve,he,Ee){return Ve=+Ve,he>>>=0,Ee||Z(this,Ve,he,4,4294967295,0),this[he+3]=Ve>>>24,this[he+2]=Ve>>>16,this[he+1]=Ve>>>8,this[he]=255&Ve,he+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(Ve,he,Ee){return Ve=+Ve,he>>>=0,Ee||Z(this,Ve,he,4,4294967295,0),this[he]=Ve>>>24,this[he+1]=Ve>>>16,this[he+2]=Ve>>>8,this[he+3]=255&Ve,he+4},c.prototype.writeIntLE=function(Ve,he,Ee,ke){if(Ve=+Ve,he>>>=0,!ke){var q=Math.pow(2,8*Ee-1);Z(this,Ve,he,Ee,q-1,-q)}var J=0,oe=1,Ce=0;for(this[he]=255&Ve;++J<Ee&&(oe*=256);)Ve<0&&0===Ce&&0!==this[he+J-1]&&(Ce=1),this[he+J]=(Ve/oe>>0)-Ce&255;return he+Ee},c.prototype.writeIntBE=function(Ve,he,Ee,ke){if(Ve=+Ve,he>>>=0,!ke){var q=Math.pow(2,8*Ee-1);Z(this,Ve,he,Ee,q-1,-q)}var J=Ee-1,oe=1,Ce=0;for(this[he+J]=255&Ve;--J>=0&&(oe*=256);)Ve<0&&0===Ce&&0!==this[he+J+1]&&(Ce=1),this[he+J]=(Ve/oe>>0)-Ce&255;return he+Ee},c.prototype.writeInt8=function(Ve,he,Ee){return Ve=+Ve,he>>>=0,Ee||Z(this,Ve,he,1,127,-128),Ve<0&&(Ve=255+Ve+1),this[he]=255&Ve,he+1},c.prototype.writeInt16LE=function(Ve,he,Ee){return Ve=+Ve,he>>>=0,Ee||Z(this,Ve,he,2,32767,-32768),this[he]=255&Ve,this[he+1]=Ve>>>8,he+2},c.prototype.writeInt16BE=function(Ve,he,Ee){return Ve=+Ve,he>>>=0,Ee||Z(this,Ve,he,2,32767,-32768),this[he]=Ve>>>8,this[he+1]=255&Ve,he+2},c.prototype.writeInt32LE=function(Ve,he,Ee){return Ve=+Ve,he>>>=0,Ee||Z(this,Ve,he,4,2147483647,-2147483648),this[he]=255&Ve,this[he+1]=Ve>>>8,this[he+2]=Ve>>>16,this[he+3]=Ve>>>24,he+4},c.prototype.writeInt32BE=function(Ve,he,Ee){return Ve=+Ve,he>>>=0,Ee||Z(this,Ve,he,4,2147483647,-2147483648),Ve<0&&(Ve=4294967295+Ve+1),this[he]=Ve>>>24,this[he+1]=Ve>>>16,this[he+2]=Ve>>>8,this[he+3]=255&Ve,he+4},c.prototype.writeFloatLE=function(Ve,he,Ee){return U(this,Ve,he,!0,Ee)},c.prototype.writeFloatBE=function(Ve,he,Ee){return U(this,Ve,he,!1,Ee)},c.prototype.writeDoubleLE=function(Ve,he,Ee){return ye(this,Ve,he,!0,Ee)},c.prototype.writeDoubleBE=function(Ve,he,Ee){return ye(this,Ve,he,!1,Ee)},c.prototype.copy=function(Ve,he,Ee,ke){if(!c.isBuffer(Ve))throw new TypeError("argument should be a Buffer");if(Ee||(Ee=0),!ke&&0!==ke&&(ke=this.length),he>=Ve.length&&(he=Ve.length),he||(he=0),ke>0&&ke<Ee&&(ke=Ee),ke===Ee||0===Ve.length||0===this.length)return 0;if(he<0)throw new RangeError("targetStart out of bounds");if(Ee<0||Ee>=this.length)throw new RangeError("Index out of range");if(ke<0)throw new RangeError("sourceEnd out of bounds");ke>this.length&&(ke=this.length),Ve.length-he<ke-Ee&&(ke=Ve.length-he+Ee);var q=ke-Ee;return this===Ve&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(he,Ee,ke):Uint8Array.prototype.set.call(Ve,this.subarray(Ee,ke),he),q},c.prototype.fill=function(Ve,he,Ee,ke){if("string"==typeof Ve){if("string"==typeof he?(ke=he,he=0,Ee=this.length):"string"==typeof Ee&&(ke=Ee,Ee=this.length),void 0!==ke&&"string"!=typeof ke)throw new TypeError("encoding must be a string");if("string"==typeof ke&&!c.isEncoding(ke))throw new TypeError("Unknown encoding: "+ke);if(1===Ve.length){var q=Ve.charCodeAt(0);("utf8"===ke&&q<128||"latin1"===ke)&&(Ve=q)}}else"number"==typeof Ve?Ve&=255:"boolean"==typeof Ve&&(Ve=Number(Ve));if(he<0||this.length<he||this.length<Ee)throw new RangeError("Out of range index");if(Ee<=he)return this;var J;if(he>>>=0,Ee=void 0===Ee?this.length:Ee>>>0,Ve||(Ve=0),"number"==typeof Ve)for(J=he;J<Ee;++J)this[J]=Ve;else{var oe=c.isBuffer(Ve)?Ve:c.from(Ve,ke),Ce=oe.length;if(0===Ce)throw new TypeError('The value "'+Ve+'" is invalid for argument "value"');for(J=0;J<Ee-he;++J)this[J+he]=oe[J%Ce]}return this};var xe=/[^+/0-9A-Za-z-_]/g;function Be(Pe,Ve){Ve=Ve||1/0;for(var he,Ee=Pe.length,ke=null,q=[],J=0;J<Ee;++J){if((he=Pe.charCodeAt(J))>55295&&he<57344){if(!ke){if(he>56319){(Ve-=3)>-1&&q.push(239,191,189);continue}if(J+1===Ee){(Ve-=3)>-1&&q.push(239,191,189);continue}ke=he;continue}if(he<56320){(Ve-=3)>-1&&q.push(239,191,189),ke=he;continue}he=65536+(ke-55296<<10|he-56320)}else ke&&(Ve-=3)>-1&&q.push(239,191,189);if(ke=null,he<128){if((Ve-=1)<0)break;q.push(he)}else if(he<2048){if((Ve-=2)<0)break;q.push(he>>6|192,63&he|128)}else if(he<65536){if((Ve-=3)<0)break;q.push(he>>12|224,he>>6&63|128,63&he|128)}else{if(!(he<1114112))throw new Error("Invalid code point");if((Ve-=4)<0)break;q.push(he>>18|240,he>>12&63|128,he>>6&63|128,63&he|128)}}return q}function Me(Pe){return e.toByteArray(function(Pe){if((Pe=(Pe=Pe.split("=")[0]).trim().replace(xe,"")).length<2)return"";for(;Pe.length%4!=0;)Pe+="=";return Pe}(Pe))}function we(Pe,Ve,he,Ee){for(var ke=0;ke<Ee&&!(ke+he>=Ve.length||ke>=Pe.length);++ke)Ve[ke+he]=Pe[ke];return ke}function ae(Pe,Ve){return Pe instanceof Ve||null!=Pe&&null!=Pe.constructor&&null!=Pe.constructor.name&&Pe.constructor.name===Ve.name}function We(Pe){return Pe!=Pe}var vt=function(){for(var Pe="0123456789abcdef",Ve=new Array(256),he=0;he<16;++he)for(var Ee=16*he,ke=0;ke<16;++ke)Ve[Ee+ke]=Pe[he]+Pe[ke];return Ve}()},1052:(Ze,K,m)=>{var e=m(3502).Buffer,t=m(295).Transform,v=m(3054).s;function s(M){t.call(this),this.hashMode="string"==typeof M,this.hashMode?this[M]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}m(3894)(s,t),s.prototype.update=function(M,c,N){"string"==typeof M&&(M=e.from(M,c));var o=this._update(M);return this.hashMode?this:(N&&(o=this._toString(o,N)),o)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(M,c,N){var o;try{this.hashMode?this._update(M):this.push(this._update(M))}catch(L){o=L}finally{N(o)}},s.prototype._flush=function(M){var c;try{this.push(this.__final())}catch(N){c=N}M(c)},s.prototype._finalOrDigest=function(M){var c=this.__final()||e.alloc(0);return M&&(c=this._toString(c,M,!0)),c},s.prototype._toString=function(M,c,N){if(this._decoder||(this._decoder=new v(c),this._encoding=c),this._encoding!==c)throw new Error("can't switch encodings");var o=this._decoder.write(M);return N&&(o+=this._decoder.end()),o},Ze.exports=s},7293:(Ze,K,m)=>{"use strict";const e=m(4315),t=m(2872),v=m(717);Ze.exports=function C(c,N){switch(t(c)){case"object":return function(c,N){if("function"==typeof N)return N(c);if(N||v(c)){const o=new c.constructor;for(let L in c)o[L]=C(c[L],N);return o}return c}(c,N);case"array":return function(c,N){const o=new c.constructor(c.length);for(let L=0;L<c.length;L++)o[L]=C(c[L],N);return o}(c,N);default:return e(c)}}},6128:function(Ze){!function(K){"use strict";var m={bytesToHex:function(v){return function(v){return v.map(function(C){return function(v,C){return v.length>2?v:Array(2-v.length+1).join("0")+v}(C.toString(16))}).join("")}(v)},hexToBytes:function(v){if(v.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===v.indexOf("0x")&&(v=v.slice(2)),v.match(/../g).map(function(C){return parseInt(C,16)})}};Ze.exports?Ze.exports=m:K.convertHex=m}(this)},5612:function(Ze){!function(K){"use strict";var m={bytesToString:function(e){return e.map(function(t){return String.fromCharCode(t)}).join("")},stringToBytes:function(e){return e.split("").map(function(t){return t.charCodeAt(0)})}};m.UTF8={bytesToString:function(e){return decodeURIComponent(escape(m.bytesToString(e)))},stringToBytes:function(e){return m.stringToBytes(unescape(encodeURIComponent(e)))}},Ze.exports?Ze.exports=m:K.convertString=m}(this)},4746:(Ze,K,m)=>{var e=m(7715),t=m(6422);Ze.exports=function(c){return new C(c)};var v={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function C(M){this.curveType=v[M],this.curveType||(this.curveType={name:M}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function s(M,c,N){Array.isArray(M)||(M=M.toArray());var o=new Buffer(M);if(N&&o.length<N){var L=new Buffer(N-o.length);L.fill(0),o=Buffer.concat([L,o])}return c?o.toString(c):o}v.p224=v.secp224r1,v.p256=v.secp256r1=v.prime256v1,v.p192=v.secp192r1=v.prime192v1,v.p384=v.secp384r1,v.p521=v.secp521r1,C.prototype.generateKeys=function(M,c){return this.keys=this.curve.genKeyPair(),this.getPublicKey(M,c)},C.prototype.computeSecret=function(M,c,N){return c=c||"utf8",Buffer.isBuffer(M)||(M=new Buffer(M,c)),s(this.curve.keyFromPublic(M).getPublic().mul(this.keys.getPrivate()).getX(),N,this.curveType.byteLength)},C.prototype.getPublicKey=function(M,c){var N=this.keys.getPublic("compressed"===c,!0);return"hybrid"===c&&(N[0]=N[N.length-1]%2?7:6),s(N,M)},C.prototype.getPrivateKey=function(M){return s(this.keys.getPrivate(),M)},C.prototype.setPublicKey=function(M,c){return c=c||"utf8",Buffer.isBuffer(M)||(M=new Buffer(M,c)),this.keys._importPublic(M),this},C.prototype.setPrivateKey=function(M,c){c=c||"utf8",Buffer.isBuffer(M)||(M=new Buffer(M,c));var N=new t(M);return N=N.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(N),this}},6422:function(Ze,K,m){!function(e,t){"use strict";function v(y,i){if(!y)throw new Error(i||"Assertion failed")}function C(y,i){y.super_=i;var a=function(){};a.prototype=i.prototype,y.prototype=new a,y.prototype.constructor=y}function s(y,i,a){if(s.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,null!==y&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(y||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(8623).Buffer}catch(y){}function c(y,i){var a=y.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(y,i,a){var p=c(y,a);return a-1>=i&&(p|=c(y,a-1)<<4),p}function o(y,i,a,p){for(var u=0,_=Math.min(y.length,a),D=i;D<_;D++){var I=y.charCodeAt(D)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),v(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u<i.length&&(16===a?this._parseHex(i,u,p):(this._parseBase(i,a,u),"le"===p&&this._initArray(this.toArray(),a,p)))},s.prototype._initNumber=function(i,a,p){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(v(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===p&&this._initArray(this.toArray(),a,p)},s.prototype._initArray=function(i,a,p){if(v("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var _,D,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=D>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(D=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=D>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},s.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var I,_=0,D=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=N(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=N(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;this.strip()},s.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,I=D%u,x=Math.min(D,D-I)+p,r=0,b=p;b<x;b+=u)r=o(i,b,b+u,a),this.imuln(_),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(0!==I){var Z=1;for(r=o(i,b,i.length,a),b=0;b<I;b++)Z*=a;this.imuln(Z),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},s.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var L=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],O=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(y,i,a){a.negative=i.negative^y.negative;var p=y.length+i.length|0;a.length=p,p=p-1|0;var u=0|y.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r<p;r++){for(var b=x>>>26,Z=67108863&x,P=Math.min(r,i.length-1),U=Math.max(0,r-y.length+1);U<=P;U++)b+=(D=(u=0|y.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D<this.length;D++){var I=this.words[D],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=O[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var P=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?P+p:L[r-P.length]+P+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}v(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return v(void 0!==M),this.toArrayLike(M,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);v(u<=_,"byte array longer than desired length"),v(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,I=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[_-r-1]=x}return I},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var p=this._zeroBits(this.words[a]);if(i+=p,26!==p)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return v(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;p<a.length;p++)this.words[p]=this.words[p]&i.words[p];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return v(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;u<p.length;u++)this.words[u]=a.words[u]^p.words[u];if(this!==a)for(;u<a.length;u++)this.words[u]=a.words[u];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return v(0==(this.negative|i.negative)),this.iuxor(i)},s.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){v("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u<a;u++)this.words[u]=67108863&~this.words[u];return p>0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){v("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<<u:this.words[p]&~(1<<u),this.strip()},s.prototype.iadd=function(i){var a,p,u;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D<u.length;D++)this.words[D]=67108863&(a=(0|p.words[D])+(0|u.words[D])+_),_=a>>>26;for(;0!==_&&D<p.length;D++)this.words[D]=67108863&(a=(0|p.words[D])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;D<p.length;D++)this.words[D]=p.words[D];return this},s.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,I=0;I<_.length;I++)D=(a=(0|u.words[I])-(0|_.words[I])+D)>>26,this.words[I]=67108863&a;for(;0!==D&&I<u.length;I++)D=(a=(0|u.words[I])+D)>>26,this.words[I]=67108863&a;if(0===D&&I<u.length&&u!==this)for(;I<u.length;I++)this.words[I]=u.words[I];return this.length=Math.max(this.length,I),u!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,a,p){var x,r,b,u=i.words,_=a.words,D=p.words,I=0,Z=0|u[0],P=8191&Z,U=Z>>>13,ye=0|u[1],xe=8191&ye,Ne=ye>>>13,Be=0|u[2],Oe=8191&Be,B=Be>>>13,Me=0|u[3],we=8191&Me,ae=Me>>>13,We=0|u[4],vt=8191&We,Pe=We>>>13,Ve=0|u[5],he=8191&Ve,Ee=Ve>>>13,ke=0|u[6],q=8191&ke,J=ke>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,ht=0|u[8],it=8191&ht,ft=ht>>>13,nt=0|u[9],st=8191&nt,wt=nt>>>13,Bt=0|_[0],Pt=8191&Bt,Vt=Bt>>>13,Oi=0|_[1],jt=8191&Oi,ti=Oi>>>13,Pi=0|_[2],si=8191&Pi,di=Pi>>>13,ze=0|_[3],Te=8191&ze,Y=ze>>>13,ge=0|_[4],Ae=8191&ge,et=ge>>>13,$t=0|_[5],Nt=8191&$t,Xt=$t>>>13,lt=0|_[6],Re=8191&lt,Fe=lt>>>13,rt=0|_[7],ot=8191&rt,At=rt>>>13,li=0|_[8],Ut=8191&li,Ft=li>>>13,Si=0|_[9],ai=8191&Si,ci=Si>>>13;p.negative=i.negative^a.negative,p.length=19;var rn=(I+(x=Math.imul(P,Pt))|0)+((8191&(r=(r=Math.imul(P,Vt))+Math.imul(U,Pt)|0))<<13)|0;I=((b=Math.imul(U,Vt))+(r>>>13)|0)+(rn>>>26)|0,rn&=67108863,x=Math.imul(xe,Pt),r=(r=Math.imul(xe,Vt))+Math.imul(Ne,Pt)|0,b=Math.imul(Ne,Vt);var Vi=(I+(x=x+Math.imul(P,jt)|0)|0)+((8191&(r=(r=r+Math.imul(P,ti)|0)+Math.imul(U,jt)|0))<<13)|0;I=((b=b+Math.imul(U,ti)|0)+(r>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,x=Math.imul(Oe,Pt),r=(r=Math.imul(Oe,Vt))+Math.imul(B,Pt)|0,b=Math.imul(B,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ti)|0)+Math.imul(Ne,jt)|0,b=b+Math.imul(Ne,ti)|0;var Di=(I+(x=x+Math.imul(P,si)|0)|0)+((8191&(r=(r=r+Math.imul(P,di)|0)+Math.imul(U,si)|0))<<13)|0;I=((b=b+Math.imul(U,di)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Pt),r=(r=Math.imul(we,Vt))+Math.imul(ae,Pt)|0,b=Math.imul(ae,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ti)|0)+Math.imul(B,jt)|0,b=b+Math.imul(B,ti)|0,x=x+Math.imul(xe,si)|0,r=(r=r+Math.imul(xe,di)|0)+Math.imul(Ne,si)|0,b=b+Math.imul(Ne,di)|0;var Xi=(I+(x=x+Math.imul(P,Te)|0)|0)+((8191&(r=(r=r+Math.imul(P,Y)|0)+Math.imul(U,Te)|0))<<13)|0;I=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Pt),r=(r=Math.imul(vt,Vt))+Math.imul(Pe,Pt)|0,b=Math.imul(Pe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ti)|0)+Math.imul(ae,jt)|0,b=b+Math.imul(ae,ti)|0,x=x+Math.imul(Oe,si)|0,r=(r=r+Math.imul(Oe,di)|0)+Math.imul(B,si)|0,b=b+Math.imul(B,di)|0,x=x+Math.imul(xe,Te)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ne,Te)|0,b=b+Math.imul(Ne,Y)|0;var Ke=(I+(x=x+Math.imul(P,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(P,et)|0)+Math.imul(U,Ae)|0))<<13)|0;I=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Pt),r=(r=Math.imul(he,Vt))+Math.imul(Ee,Pt)|0,b=Math.imul(Ee,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ti)|0)+Math.imul(Pe,jt)|0,b=b+Math.imul(Pe,ti)|0,x=x+Math.imul(we,si)|0,r=(r=r+Math.imul(we,di)|0)+Math.imul(ae,si)|0,b=b+Math.imul(ae,di)|0,x=x+Math.imul(Oe,Te)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(B,Te)|0,b=b+Math.imul(B,Y)|0,x=x+Math.imul(xe,Ae)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ne,Ae)|0,b=b+Math.imul(Ne,et)|0;var mt=(I+(x=x+Math.imul(P,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(P,Xt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((b=b+Math.imul(U,Xt)|0)+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(q,Pt),r=(r=Math.imul(q,Vt))+Math.imul(J,Pt)|0,b=Math.imul(J,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ti)|0)+Math.imul(Ee,jt)|0,b=b+Math.imul(Ee,ti)|0,x=x+Math.imul(vt,si)|0,r=(r=r+Math.imul(vt,di)|0)+Math.imul(Pe,si)|0,b=b+Math.imul(Pe,di)|0,x=x+Math.imul(we,Te)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(ae,Te)|0,b=b+Math.imul(ae,Y)|0,x=x+Math.imul(Oe,Ae)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(B,Ae)|0,b=b+Math.imul(B,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Xt)|0)+Math.imul(Ne,Nt)|0,b=b+Math.imul(Ne,Xt)|0;var ve=(I+(x=x+Math.imul(P,Re)|0)|0)+((8191&(r=(r=r+Math.imul(P,Fe)|0)+Math.imul(U,Re)|0))<<13)|0;I=((b=b+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(Ce,Pt),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Pt)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ti)|0)+Math.imul(J,jt)|0,b=b+Math.imul(J,ti)|0,x=x+Math.imul(he,si)|0,r=(r=r+Math.imul(he,di)|0)+Math.imul(Ee,si)|0,b=b+Math.imul(Ee,di)|0,x=x+Math.imul(vt,Te)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Pe,Te)|0,b=b+Math.imul(Pe,Y)|0,x=x+Math.imul(we,Ae)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(ae,Ae)|0,b=b+Math.imul(ae,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Xt)|0)+Math.imul(B,Nt)|0,b=b+Math.imul(B,Xt)|0,x=x+Math.imul(xe,Re)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ne,Re)|0,b=b+Math.imul(Ne,Fe)|0;var qe=(I+(x=x+Math.imul(P,ot)|0)|0)+((8191&(r=(r=r+Math.imul(P,At)|0)+Math.imul(U,ot)|0))<<13)|0;I=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(it,Pt),r=(r=Math.imul(it,Vt))+Math.imul(ft,Pt)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ti)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ti)|0,x=x+Math.imul(q,si)|0,r=(r=r+Math.imul(q,di)|0)+Math.imul(J,si)|0,b=b+Math.imul(J,di)|0,x=x+Math.imul(he,Te)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Ee,Te)|0,b=b+Math.imul(Ee,Y)|0,x=x+Math.imul(vt,Ae)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Pe,Ae)|0,b=b+Math.imul(Pe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Xt)|0)+Math.imul(ae,Nt)|0,b=b+Math.imul(ae,Xt)|0,x=x+Math.imul(Oe,Re)|0,r=(r=r+Math.imul(Oe,Fe)|0)+Math.imul(B,Re)|0,b=b+Math.imul(B,Fe)|0,x=x+Math.imul(xe,ot)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ne,ot)|0,b=b+Math.imul(Ne,At)|0;var _t=(I+(x=x+Math.imul(P,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(P,Ft)|0)+Math.imul(U,Ut)|0))<<13)|0;I=((b=b+Math.imul(U,Ft)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(st,Pt),r=(r=Math.imul(st,Vt))+Math.imul(wt,Pt)|0,b=Math.imul(wt,Vt),x=x+Math.imul(it,jt)|0,r=(r=r+Math.imul(it,ti)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ti)|0,x=x+Math.imul(Ce,si)|0,r=(r=r+Math.imul(Ce,di)|0)+Math.imul(Ue,si)|0,b=b+Math.imul(Ue,di)|0,x=x+Math.imul(q,Te)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul(J,Te)|0,b=b+Math.imul(J,Y)|0,x=x+Math.imul(he,Ae)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Ee,Ae)|0,b=b+Math.imul(Ee,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Xt)|0)+Math.imul(Pe,Nt)|0,b=b+Math.imul(Pe,Xt)|0,x=x+Math.imul(we,Re)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(ae,Re)|0,b=b+Math.imul(ae,Fe)|0,x=x+Math.imul(Oe,ot)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(B,ot)|0,b=b+Math.imul(B,At)|0,x=x+Math.imul(xe,Ut)|0,r=(r=r+Math.imul(xe,Ft)|0)+Math.imul(Ne,Ut)|0,b=b+Math.imul(Ne,Ft)|0;var ue=(I+(x=x+Math.imul(P,ai)|0)|0)+((8191&(r=(r=r+Math.imul(P,ci)|0)+Math.imul(U,ai)|0))<<13)|0;I=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(st,jt),r=(r=Math.imul(st,ti))+Math.imul(wt,jt)|0,b=Math.imul(wt,ti),x=x+Math.imul(it,si)|0,r=(r=r+Math.imul(it,di)|0)+Math.imul(ft,si)|0,b=b+Math.imul(ft,di)|0,x=x+Math.imul(Ce,Te)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Te)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,Ae)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul(J,Ae)|0,b=b+Math.imul(J,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Xt)|0)+Math.imul(Ee,Nt)|0,b=b+Math.imul(Ee,Xt)|0,x=x+Math.imul(vt,Re)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Pe,Re)|0,b=b+Math.imul(Pe,Fe)|0,x=x+Math.imul(we,ot)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(ae,ot)|0,b=b+Math.imul(ae,At)|0,x=x+Math.imul(Oe,Ut)|0,r=(r=r+Math.imul(Oe,Ft)|0)+Math.imul(B,Ut)|0,b=b+Math.imul(B,Ft)|0;var $e=(I+(x=x+Math.imul(xe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ne,ai)|0))<<13)|0;I=((b=b+Math.imul(Ne,ci)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,x=Math.imul(st,si),r=(r=Math.imul(st,di))+Math.imul(wt,si)|0,b=Math.imul(wt,di),x=x+Math.imul(it,Te)|0,r=(r=r+Math.imul(it,Y)|0)+Math.imul(ft,Te)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,Ae)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,Ae)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Xt)|0)+Math.imul(J,Nt)|0,b=b+Math.imul(J,Xt)|0,x=x+Math.imul(he,Re)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Ee,Re)|0,b=b+Math.imul(Ee,Fe)|0,x=x+Math.imul(vt,ot)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Pe,ot)|0,b=b+Math.imul(Pe,At)|0,x=x+Math.imul(we,Ut)|0,r=(r=r+Math.imul(we,Ft)|0)+Math.imul(ae,Ut)|0,b=b+Math.imul(ae,Ft)|0;var St=(I+(x=x+Math.imul(Oe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(B,ai)|0))<<13)|0;I=((b=b+Math.imul(B,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(st,Te),r=(r=Math.imul(st,Y))+Math.imul(wt,Te)|0,b=Math.imul(wt,Y),x=x+Math.imul(it,Ae)|0,r=(r=r+Math.imul(it,et)|0)+Math.imul(ft,Ae)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Xt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Xt)|0,x=x+Math.imul(q,Re)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul(J,Re)|0,b=b+Math.imul(J,Fe)|0,x=x+Math.imul(he,ot)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Ee,ot)|0,b=b+Math.imul(Ee,At)|0,x=x+Math.imul(vt,Ut)|0,r=(r=r+Math.imul(vt,Ft)|0)+Math.imul(Pe,Ut)|0,b=b+Math.imul(Pe,Ft)|0;var Rt=(I+(x=x+Math.imul(we,ai)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(ae,ai)|0))<<13)|0;I=((b=b+Math.imul(ae,ci)|0)+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,x=Math.imul(st,Ae),r=(r=Math.imul(st,et))+Math.imul(wt,Ae)|0,b=Math.imul(wt,et),x=x+Math.imul(it,Nt)|0,r=(r=r+Math.imul(it,Xt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Xt)|0,x=x+Math.imul(Ce,Re)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Ue,Re)|0,b=b+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,ot)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul(J,ot)|0,b=b+Math.imul(J,At)|0,x=x+Math.imul(he,Ut)|0,r=(r=r+Math.imul(he,Ft)|0)+Math.imul(Ee,Ut)|0,b=b+Math.imul(Ee,Ft)|0;var yi=(I+(x=x+Math.imul(vt,ai)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Pe,ai)|0))<<13)|0;I=((b=b+Math.imul(Pe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(st,Nt),r=(r=Math.imul(st,Xt))+Math.imul(wt,Nt)|0,b=Math.imul(wt,Xt),x=x+Math.imul(it,Re)|0,r=(r=r+Math.imul(it,Fe)|0)+Math.imul(ft,Re)|0,b=b+Math.imul(ft,Fe)|0,x=x+Math.imul(Ce,ot)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,ot)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Ut)|0,r=(r=r+Math.imul(q,Ft)|0)+Math.imul(J,Ut)|0,b=b+Math.imul(J,Ft)|0;var Ri=(I+(x=x+Math.imul(he,ai)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Ee,ai)|0))<<13)|0;I=((b=b+Math.imul(Ee,ci)|0)+(r>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,x=Math.imul(st,Re),r=(r=Math.imul(st,Fe))+Math.imul(wt,Re)|0,b=Math.imul(wt,Fe),x=x+Math.imul(it,ot)|0,r=(r=r+Math.imul(it,At)|0)+Math.imul(ft,ot)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Ut)|0,r=(r=r+Math.imul(Ce,Ft)|0)+Math.imul(Ue,Ut)|0,b=b+Math.imul(Ue,Ft)|0;var Ii=(I+(x=x+Math.imul(q,ai)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul(J,ai)|0))<<13)|0;I=((b=b+Math.imul(J,ci)|0)+(r>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,x=Math.imul(st,ot),r=(r=Math.imul(st,At))+Math.imul(wt,ot)|0,b=Math.imul(wt,At),x=x+Math.imul(it,Ut)|0,r=(r=r+Math.imul(it,Ft)|0)+Math.imul(ft,Ut)|0,b=b+Math.imul(ft,Ft)|0;var Ki=(I+(x=x+Math.imul(Ce,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,ai)|0))<<13)|0;I=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,x=Math.imul(st,Ut),r=(r=Math.imul(st,Ft))+Math.imul(wt,Ut)|0,b=Math.imul(wt,Ft);var at=(I+(x=x+Math.imul(it,ai)|0)|0)+((8191&(r=(r=r+Math.imul(it,ci)|0)+Math.imul(ft,ai)|0))<<13)|0;I=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(at>>>26)|0,at&=67108863;var Qt=(I+(x=Math.imul(st,ai))|0)+((8191&(r=(r=Math.imul(st,ci))+Math.imul(wt,ai)|0))<<13)|0;return I=((b=Math.imul(wt,ci))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,D[0]=rn,D[1]=Vi,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=mt,D[6]=ve,D[7]=qe,D[8]=_t,D[9]=ue,D[10]=$e,D[11]=St,D[12]=Rt,D[13]=yi,D[14]=Ri,D[15]=Ii,D[16]=Ki,D[17]=at,D[18]=Qt,0!==I&&(D[19]=I,p.length++),p};function W(y,i,a){return(new j).mulp(y,i,a)}function j(y,i){this.x=y,this.y=i}Math.imul||(w=k),s.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?k(this,i,a):u<1024?function(y,i,a){a.negative=i.negative^y.negative,a.length=y.length+i.length;for(var p=0,u=0,_=0;_<a.length-1;_++){var D=u;u=0;for(var I=67108863&p,x=Math.min(_,i.length-1),r=Math.max(0,_-y.length+1);r<=x;r++){var U=(0|y.words[_-r])*(0|i.words[r]),ye=67108863&U;I=67108863&(ye=ye+I|0),u+=(D=(D=D+(U/67108864|0)|0)+(ye>>>26)|0)>>>26,D&=67108863}a.words[_]=I,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):W(this,i,a),p},j.prototype.makeRBT=function(i){for(var a=new Array(i),p=s.prototype._countBits(i)-1,u=0;u<i;u++)a[u]=this.revBin(u,p,i);return a},j.prototype.revBin=function(i,a,p){if(0===i||i===p-1)return i;for(var u=0,_=0;_<a;_++)u|=(1&i)<<a-_-1,i>>=1;return u},j.prototype.permute=function(i,a,p,u,_,D){for(var I=0;I<D;I++)u[I]=a[i[I]],_[I]=p[i[I]]},j.prototype.transform=function(i,a,p,u,_,D){this.permute(D,i,a,p,u,_);for(var I=1;I<_;I<<=1)for(var x=I<<1,r=Math.cos(2*Math.PI/x),b=Math.sin(2*Math.PI/x),Z=0;Z<_;Z+=x)for(var P=r,U=b,ye=0;ye<I;ye++){var xe=p[Z+ye],Ne=u[Z+ye],Be=p[Z+ye+I],Oe=u[Z+ye+I],B=P*Be-U*Oe;Oe=P*Oe+U*Be,p[Z+ye]=xe+(Be=B),u[Z+ye]=Ne+Oe,p[Z+ye+I]=xe-Be,u[Z+ye+I]=Ne-Oe,ye!==x&&(B=r*P-b*U,U=r*U+b*P,P=B)}},j.prototype.guessLen13b=function(i,a){var p=1|Math.max(a,i),u=1&p,_=0;for(p=p/2|0;p;p>>>=1)_++;return 1<<_+1+u},j.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u<p/2;u++){var _=i[u];i[u]=i[p-u-1],i[p-u-1]=_,_=a[u],a[u]=-a[p-u-1],a[p-u-1]=-_}},j.prototype.normalize13b=function(i,a){for(var p=0,u=0;u<a/2;u++){var _=8192*Math.round(i[2*u+1]/a)+Math.round(i[2*u]/a)+p;i[u]=67108863&_,p=_<67108864?0:_/67108864|0}return i},j.prototype.convert13b=function(i,a,p,u){for(var _=0,D=0;D<a;D++)p[2*D]=8191&(_+=0|i[D]),p[2*D+1]=8191&(_>>>=13),_>>>=13;for(D=2*a;D<u;++D)p[D]=0;v(0===_),v(0==(-8192&_))},j.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},j.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),D=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),b=new Array(u),Z=new Array(u),P=new Array(u),U=p.words;U.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,b,u),this.transform(I,D,x,r,u,_),this.transform(b,D,Z,P,u,_);for(var ye=0;ye<u;ye++){var xe=x[ye]*Z[ye]-r[ye]*P[ye];r[ye]=x[ye]*P[ye]+r[ye]*Z[ye],x[ye]=xe}return this.conjugate(x,r,u),this.transform(x,r,U,D,u,_),this.conjugate(U,D,u),this.normalize13b(U,u),p.negative=i.negative^a.negative,p.length=i.length+a.length,p.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),W(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){v("number"==typeof i),v(i<67108864);for(var a=0,p=0;p<this.length;p++){var u=(0|this.words[p])*i,_=(67108863&u)+(67108863&a);a>>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function(y){for(var i=new Array(y.bitLength()),a=0;a<i.length;a++){var u=a%26;i[a]=(y.words[a/26|0]&1<<u)>>>u}return i}(i);if(0===a.length)return new s(1);for(var p=this,u=0;u<a.length&&0===a[u];u++,p=p.sqr());if(++u<a.length)for(var _=p.sqr();u<a.length;u++,_=_.sqr())0!==a[u]&&(p=p.mul(_));return p},s.prototype.iushln=function(i){v("number"==typeof i&&i>=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|D,D=I>>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_<p;_++)this.words[_]=0;this.length+=p}return this.strip()},s.prototype.ishln=function(i){return v(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,p){var u;v("number"==typeof i&&i>=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;r<D;r++)x.words[r]=this.words[r];x.length=D}if(0!==D)if(this.length>D)for(this.length-=D,r=0;r<this.length;r++)this.words[r]=this.words[r+D];else this.words[0]=0,this.length=1;var b=0;for(r=this.length-1;r>=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&I}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,p){return v(0===this.negative),this.iushrn(i,a,p)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<<a))},s.prototype.imaskn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return v("number"==typeof i),v(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},s.prototype.isubn=function(i){if(v("number"==typeof i),v(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,p){var _;this._expand(i.length+p);var D,I=0;for(_=0;_<i.length;_++){D=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((D-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_<this.length-p;_++)I=(D=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&D;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_<this.length;_++)I=(D=-(0|this.words[_])+I)>>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new s(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b<r.length;b++)r.words[b]=0}var Z=u.clone()._ishlnsubmul(_,1,x);0===Z.negative&&(u=Z,r&&(r.words[x]=1));for(var P=x-1;P>=0;P--){var U=67108864*(0|u.words[_.length+P])+(0|u.words[_.length+P-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,P);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,P),u.isZero()||(u.negative^=1);r&&(r.words[P]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},s.prototype.divmod=function(i,a,p){return v(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){v(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},s.prototype.idivn=function(i){v(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){v(0===i.negative),v(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),D=new s(0),I=new s(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,P=1;0==(a.words[0]&P)&&Z<26;++Z,P<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||I.isOdd())&&(D.iadd(r),I.isub(b)),D.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(I)):(p.isub(a),D.isub(u),I.isub(_))}return{a:D,b:I,gcd:p.iushln(x)}},s.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){v("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<<a;if(this.length<=p)return this._expand(p+1),this.words[p]|=u,this;for(var _=u,D=p;0!==_&&D<this.length;D++){var I=0|this.words[D];_=(I+=_)>>>26,this.words[D]=I&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),v(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:u<i?-1:1}return 0!==this.negative?0|-p:p},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,p=this.length-1;p>=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new re(i)},s.prototype.toRed=function(i){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return v(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return v(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var $={k256:null,p224:null,p192:null,p25519:null};function ee(y,i){this.name=y,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function le(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function te(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function re(y){if("string"==typeof y){var i=s._prime(y);this.m=i.p,this.prime=i}else v(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function pe(y){re.call(this,y),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ee.prototype._tmp=function(){var i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p<this.n?-1:a.ucmp(this.p);return 0===u?(a.words[0]=0,a.length=1):u>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(me,ee),me.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_<u;_++)a.words[_]=i.words[_];if(a.length=u,i.length<=9)return i.words[0]=0,void(i.length=1);var D=i.words[9];for(a.words[a.length++]=D&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|D>>>22,D=I}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p<i.length;p++){var u=0|i.words[p];i.words[p]=67108863&(a+=977*u),a=64*u+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ce,ee),C(le,ee),C(te,ee),te.prototype.imulK=function(i){for(var a=0,p=0;p<i.length;p++){var u=19*(0|i.words[p])+a,_=67108863&u;u>>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if($[i])return $[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new ce;else if("p192"===i)a=new le;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new te}return $[i]=a,a},re.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},re.prototype._verify2=function(i,a){v(0==(i.negative|a.negative),"red works only with positives"),v(i.red&&i.red===a.red,"red works only with red numbers")},re.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},re.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},re.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},re.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},re.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},re.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},re.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},re.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},re.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},re.prototype.isqr=function(i){return this.imul(i,i.clone())},re.prototype.sqr=function(i){return this.mul(i,i)},re.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(v(a%2==1),3===a){var p=this.m.add(new s(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);v(!u.isZero());var D=new s(1).toRed(this),I=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new s(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),P=this.pow(i,u),U=_;0!==P.cmp(D);){for(var ye=P,xe=0;0!==ye.cmp(D);xe++)ye=ye.redSqr();v(xe<U);var Ne=this.pow(b,new s(1).iushln(U-xe-1));Z=Z.redMul(Ne),b=Ne.redSqr(),P=P.redMul(b),U=xe}return Z},re.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},re.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var u=new Array(16);u[0]=new s(1).toRed(this),u[1]=i;for(var _=2;_<u.length;_++)u[_]=this.mul(u[_-1],i);var D=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var P=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==P||0!==I?(I<<=1,I|=P,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[I]),x=0,I=0)):x=0}r=26}return D},re.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},re.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new pe(i)},C(pe,re),pe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},pe.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},pe.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},pe.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},pe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ze=m.nmd(Ze),this)},6386:(Ze,K,m)=>{"use strict";var e=m(3894),t=m(8095),v=m(5634),C=m(5244),s=m(1052);function M(c){s.call(this,"digest"),this._hash=c}e(M,s),M.prototype._update=function(c){this._hash.update(c)},M.prototype._final=function(){return this._hash.digest()},Ze.exports=function(N){return"md5"===(N=N.toLowerCase())?new t:"rmd160"===N||"ripemd160"===N?new v:new M(C(N))}},5640:(Ze,K,m)=>{var e=m(8095);Ze.exports=function(t){return(new e).update(t).digest()}},4529:(Ze,K,m)=>{"use strict";var e=m(3894),t=m(7309),v=m(1052),C=m(3502).Buffer,s=m(5640),M=m(5634),c=m(5244),N=C.alloc(128);function o(L,O){v.call(this,"digest"),"string"==typeof O&&(O=C.from(O));var A="sha512"===L||"sha384"===L?128:64;this._alg=L,this._key=O,O.length>A?O=("rmd160"===L?new M:c(L)).update(O).digest():O.length<A&&(O=C.concat([O,N],A));for(var k=this._ipad=C.allocUnsafe(A),w=this._opad=C.allocUnsafe(A),V=0;V<A;V++)k[V]=54^O[V],w[V]=92^O[V];this._hash="rmd160"===L?new M:c(L),this._hash.update(k)}e(o,v),o.prototype._update=function(L){this._hash.update(L)},o.prototype._final=function(){var L=this._hash.digest();return("rmd160"===this._alg?new M:c(this._alg)).update(this._opad).update(L).digest()},Ze.exports=function(O,A){return"rmd160"===(O=O.toLowerCase())||"ripemd160"===O?new o("rmd160",A):"md5"===O?new t(s,A):new o(O,A)}},7309:(Ze,K,m)=>{"use strict";var e=m(3894),t=m(3502).Buffer,v=m(1052),C=t.alloc(128),s=64;function M(c,N){v.call(this,"digest"),"string"==typeof N&&(N=t.from(N)),this._alg=c,this._key=N,N.length>s?N=c(N):N.length<s&&(N=t.concat([N,C],s));for(var o=this._ipad=t.allocUnsafe(s),L=this._opad=t.allocUnsafe(s),O=0;O<s;O++)o[O]=54^N[O],L[O]=92^N[O];this._hash=[o]}e(M,v),M.prototype._update=function(c){this._hash.push(c)},M.prototype._final=function(){var c=this._alg(t.concat(this._hash));return this._alg(t.concat([this._opad,c]))},Ze.exports=M},1348:(Ze,K,m)=>{"use strict";K.randomBytes=K.rng=K.pseudoRandomBytes=K.prng=m(3753),K.createHash=K.Hash=m(6386),K.createHmac=K.Hmac=m(4529);var e=m(7793),t=Object.keys(e),v=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);K.getHashes=function(){return v};var C=m(9357);K.pbkdf2=C.pbkdf2,K.pbkdf2Sync=C.pbkdf2Sync;var s=m(5255);K.Cipher=s.Cipher,K.createCipher=s.createCipher,K.Cipheriv=s.Cipheriv,K.createCipheriv=s.createCipheriv,K.Decipher=s.Decipher,K.createDecipher=s.createDecipher,K.Decipheriv=s.Decipheriv,K.createDecipheriv=s.createDecipheriv,K.getCiphers=s.getCiphers,K.listCiphers=s.listCiphers;var M=m(8829);K.DiffieHellmanGroup=M.DiffieHellmanGroup,K.createDiffieHellmanGroup=M.createDiffieHellmanGroup,K.getDiffieHellman=M.getDiffieHellman,K.createDiffieHellman=M.createDiffieHellman,K.DiffieHellman=M.DiffieHellman;var c=m(3923);K.createSign=c.createSign,K.Sign=c.Sign,K.createVerify=c.createVerify,K.Verify=c.Verify,K.createECDH=m(4746);var N=m(3701);K.publicEncrypt=N.publicEncrypt,K.privateEncrypt=N.privateEncrypt,K.publicDecrypt=N.publicDecrypt,K.privateDecrypt=N.privateDecrypt;var o=m(4275);K.randomFill=o.randomFill,K.randomFillSync=o.randomFillSync,K.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},K.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},3684:(Ze,K,m)=>{"use strict";K.utils=m(7451),K.Cipher=m(8170),K.DES=m(4631),K.CBC=m(9454),K.EDE=m(1862)},9454:(Ze,K,m)=>{"use strict";var e=m(2391),t=m(3894),v={};function C(M){e.equal(M.length,8,"Invalid IV length"),this.iv=new Array(8);for(var c=0;c<this.iv.length;c++)this.iv[c]=M[c]}K.instantiate=function(M){function c(O){M.call(this,O),this._cbcInit()}t(c,M);for(var N=Object.keys(v),o=0;o<N.length;o++){var L=N[o];c.prototype[L]=v[L]}return c.create=function(A){return new c(A)},c},v._cbcInit=function(){var c=new C(this.options.iv);this._cbcState=c},v._update=function(c,N,o,L){var A=this.constructor.super_.prototype,E=this._cbcState.iv;if("encrypt"===this.type){for(var k=0;k<this.blockSize;k++)E[k]^=c[N+k];for(A._update.call(this,E,0,o,L),k=0;k<this.blockSize;k++)E[k]=o[L+k]}else{for(A._update.call(this,c,N,o,L),k=0;k<this.blockSize;k++)o[L+k]^=E[k];for(k=0;k<this.blockSize;k++)E[k]=c[N+k]}}},8170:(Ze,K,m)=>{"use strict";var e=m(2391);function t(v){this.options=v,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Ze.exports=t,t.prototype._init=function(){},t.prototype.update=function(C){return 0===C.length?[]:"decrypt"===this.type?this._updateDecrypt(C):this._updateEncrypt(C)},t.prototype._buffer=function(C,s){for(var M=Math.min(this.buffer.length-this.bufferOff,C.length-s),c=0;c<M;c++)this.buffer[this.bufferOff+c]=C[s+c];return this.bufferOff+=M,M},t.prototype._flushBuffer=function(C,s){return this._update(this.buffer,0,C,s),this.bufferOff=0,this.blockSize},t.prototype._updateEncrypt=function(C){var s=0,M=0,N=new Array(((this.bufferOff+C.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(s+=this._buffer(C,s),this.bufferOff===this.buffer.length&&(M+=this._flushBuffer(N,M)));for(var o=C.length-(C.length-s)%this.blockSize;s<o;s+=this.blockSize)this._update(C,s,N,M),M+=this.blockSize;for(;s<C.length;s++,this.bufferOff++)this.buffer[this.bufferOff]=C[s];return N},t.prototype._updateDecrypt=function(C){for(var s=0,M=0,c=Math.ceil((this.bufferOff+C.length)/this.blockSize)-1,N=new Array(c*this.blockSize);c>0;c--)s+=this._buffer(C,s),M+=this._flushBuffer(N,M);return s+=this._buffer(C,s),N},t.prototype.final=function(C){var s,M;return C&&(s=this.update(C)),M="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),s?s.concat(M):M},t.prototype._pad=function(C,s){if(0===s)return!1;for(;s<C.length;)C[s++]=0;return!0},t.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var C=new Array(this.blockSize);return this._update(this.buffer,0,C,0),C},t.prototype._unpad=function(C){return C},t.prototype._finalDecrypt=function(){e.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var C=new Array(this.blockSize);return this._flushBuffer(C,0),this._unpad(C)}},4631:(Ze,K,m)=>{"use strict";var e=m(2391),t=m(3894),v=m(7451),C=m(8170);function s(){this.tmp=new Array(2),this.keys=null}function M(N){C.call(this,N);var o=new s;this._desState=o,this.deriveKeys(o,N.key)}t(M,C),Ze.exports=M,M.create=function(o){return new M(o)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];M.prototype.deriveKeys=function(o,L){o.keys=new Array(32),e.equal(L.length,this.blockSize,"Invalid key length");var O=v.readUInt32BE(L,0),A=v.readUInt32BE(L,4);v.pc1(O,A,o.tmp,0),O=o.tmp[0],A=o.tmp[1];for(var E=0;E<o.keys.length;E+=2){var k=c[E>>>1];O=v.r28shl(O,k),A=v.r28shl(A,k),v.pc2(O,A,o.keys,E)}},M.prototype._update=function(o,L,O,A){var E=this._desState,k=v.readUInt32BE(o,L),w=v.readUInt32BE(o,L+4);v.ip(k,w,E.tmp,0),k=E.tmp[0],w=E.tmp[1],"encrypt"===this.type?this._encrypt(E,k,w,E.tmp,0):this._decrypt(E,k,w,E.tmp,0),w=E.tmp[1],v.writeUInt32BE(O,k=E.tmp[0],A),v.writeUInt32BE(O,w,A+4)},M.prototype._pad=function(o,L){for(var O=o.length-L,A=L;A<o.length;A++)o[A]=O;return!0},M.prototype._unpad=function(o){for(var L=o[o.length-1],O=o.length-L;O<o.length;O++)e.equal(o[O],L);return o.slice(0,o.length-L)},M.prototype._encrypt=function(o,L,O,A,E){for(var k=L,w=O,V=0;V<o.keys.length;V+=2){var W=o.keys[V],j=o.keys[V+1];v.expand(w,o.tmp,0);var $=v.substitute(W^=o.tmp[0],j^=o.tmp[1]),me=w;w=(k^v.permute($))>>>0,k=me}v.rip(w,k,A,E)},M.prototype._decrypt=function(o,L,O,A,E){for(var k=O,w=L,V=o.keys.length-2;V>=0;V-=2){var W=o.keys[V],j=o.keys[V+1];v.expand(k,o.tmp,0);var $=v.substitute(W^=o.tmp[0],j^=o.tmp[1]),me=k;k=(w^v.permute($))>>>0,w=me}v.rip(k,w,A,E)}},1862:(Ze,K,m)=>{"use strict";var e=m(2391),t=m(3894),v=m(8170),C=m(4631);function s(c,N){e.equal(N.length,24,"Invalid key length");var o=N.slice(0,8),L=N.slice(8,16),O=N.slice(16,24);this.ciphers="encrypt"===c?[C.create({type:"encrypt",key:o}),C.create({type:"decrypt",key:L}),C.create({type:"encrypt",key:O})]:[C.create({type:"decrypt",key:O}),C.create({type:"encrypt",key:L}),C.create({type:"decrypt",key:o})]}function M(c){v.call(this,c);var N=new s(this.type,this.options.key);this._edeState=N}t(M,v),Ze.exports=M,M.create=function(N){return new M(N)},M.prototype._update=function(N,o,L,O){var A=this._edeState;A.ciphers[0]._update(N,o,L,O),A.ciphers[1]._update(L,O,L,O),A.ciphers[2]._update(L,O,L,O)},M.prototype._pad=C.prototype._pad,M.prototype._unpad=C.prototype._unpad},7451:(Ze,K)=>{"use strict";K.readUInt32BE=function(C,s){return(C[0+s]<<24|C[1+s]<<16|C[2+s]<<8|C[3+s])>>>0},K.writeUInt32BE=function(C,s,M){C[0+M]=s>>>24,C[1+M]=s>>>16&255,C[2+M]=s>>>8&255,C[3+M]=255&s},K.ip=function(C,s,M,c){for(var N=0,o=0,L=6;L>=0;L-=2){for(var O=0;O<=24;O+=8)N<<=1,N|=s>>>O+L&1;for(O=0;O<=24;O+=8)N<<=1,N|=C>>>O+L&1}for(L=6;L>=0;L-=2){for(O=1;O<=25;O+=8)o<<=1,o|=s>>>O+L&1;for(O=1;O<=25;O+=8)o<<=1,o|=C>>>O+L&1}M[c+0]=N>>>0,M[c+1]=o>>>0},K.rip=function(C,s,M,c){for(var N=0,o=0,L=0;L<4;L++)for(var O=24;O>=0;O-=8)N<<=1,N|=s>>>O+L&1,N<<=1,N|=C>>>O+L&1;for(L=4;L<8;L++)for(O=24;O>=0;O-=8)o<<=1,o|=s>>>O+L&1,o<<=1,o|=C>>>O+L&1;M[c+0]=N>>>0,M[c+1]=o>>>0},K.pc1=function(C,s,M,c){for(var N=0,o=0,L=7;L>=5;L--){for(var O=0;O<=24;O+=8)N<<=1,N|=s>>O+L&1;for(O=0;O<=24;O+=8)N<<=1,N|=C>>O+L&1}for(O=0;O<=24;O+=8)N<<=1,N|=s>>O+L&1;for(L=1;L<=3;L++){for(O=0;O<=24;O+=8)o<<=1,o|=s>>O+L&1;for(O=0;O<=24;O+=8)o<<=1,o|=C>>O+L&1}for(O=0;O<=24;O+=8)o<<=1,o|=C>>O+L&1;M[c+0]=N>>>0,M[c+1]=o>>>0},K.r28shl=function(C,s){return C<<s&268435455|C>>>28-s};var m=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];K.pc2=function(C,s,M,c){for(var N=0,o=0,L=m.length>>>1,O=0;O<L;O++)N<<=1,N|=C>>>m[O]&1;for(O=L;O<m.length;O++)o<<=1,o|=s>>>m[O]&1;M[c+0]=N>>>0,M[c+1]=o>>>0},K.expand=function(C,s,M){var c=0,N=0;c=(1&C)<<5|C>>>27;for(var o=23;o>=15;o-=4)c<<=6,c|=C>>>o&63;for(o=11;o>=3;o-=4)N|=C>>>o&63,N<<=6;N|=(31&C)<<1|C>>>31,s[M+0]=c>>>0,s[M+1]=N>>>0};var e=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];K.substitute=function(C,s){for(var M=0,c=0;c<4;c++)M<<=4,M|=e[64*c+(C>>>18-6*c&63)];for(c=0;c<4;c++)M<<=4,M|=e[256+64*c+(s>>>18-6*c&63)];return M>>>0};var t=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];K.permute=function(C){for(var s=0,M=0;M<t.length;M++)s<<=1,s|=C>>>t[M]&1;return s>>>0},K.padSplit=function(C,s,M){for(var c=C.toString(2);c.length<s;)c="0"+c;for(var N=[],o=0;o<s;o+=M)N.push(c.slice(o,o+M));return N.join(" ")}},8829:(Ze,K,m)=>{var e=m(5563),t=m(9799),v=m(1419),s={binary:!0,hex:!0,base64:!0};K.DiffieHellmanGroup=K.createDiffieHellmanGroup=K.getDiffieHellman=function(c){var N=new Buffer(t[c].prime,"hex"),o=new Buffer(t[c].gen,"hex");return new v(N,o)},K.createDiffieHellman=K.DiffieHellman=function M(c,N,o,L){return Buffer.isBuffer(N)||void 0===s[N]?M(c,"binary",N,o):(N=N||"binary",L=L||"binary",o=o||new Buffer([2]),Buffer.isBuffer(o)||(o=new Buffer(o,L)),"number"==typeof c?new v(e(c,o),o,!0):(Buffer.isBuffer(c)||(c=new Buffer(c,N)),new v(c,o,!0)))}},1419:(Ze,K,m)=>{var e=m(8313),v=new(m(7079)),C=new e(24),s=new e(11),M=new e(10),c=new e(3),N=new e(7),o=m(5563),L=m(3753);function O(W,j){return j=j||"utf8",Buffer.isBuffer(W)||(W=new Buffer(W,j)),this._pub=new e(W),this}function A(W,j){return j=j||"utf8",Buffer.isBuffer(W)||(W=new Buffer(W,j)),this._priv=new e(W),this}Ze.exports=w;var E={};function w(W,j,$){this.setGenerator(j),this.__prime=new e(W),this._prime=e.mont(this.__prime),this._primeLen=W.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,$?(this.setPublicKey=O,this.setPrivateKey=A):this._primeCode=8}function V(W,j){var $=new Buffer(W.toArray());return j?$.toString(j):$}Object.defineProperty(w.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(W,j){var $=j.toString("hex"),ee=[$,W.toString(16)].join("_");if(ee in E)return E[ee];var ce,me=0;if(W.isEven()||!o.simpleSieve||!o.fermatTest(W)||!v.test(W))return me+=1,E[ee]=me+="02"===$||"05"===$?8:4,me;switch(v.test(W.shrn(1))||(me+=2),$){case"02":W.mod(C).cmp(s)&&(me+=8);break;case"05":(ce=W.mod(M)).cmp(c)&&ce.cmp(N)&&(me+=8);break;default:me+=4}return E[ee]=me,me}(this.__prime,this.__gen)),this._primeCode}}),w.prototype.generateKeys=function(){return this._priv||(this._priv=new e(L(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},w.prototype.computeSecret=function(W){var j=(W=(W=new e(W)).toRed(this._prime)).redPow(this._priv).fromRed(),$=new Buffer(j.toArray()),ee=this.getPrime();if($.length<ee.length){var me=new Buffer(ee.length-$.length);me.fill(0),$=Buffer.concat([me,$])}return $},w.prototype.getPublicKey=function(j){return V(this._pub,j)},w.prototype.getPrivateKey=function(j){return V(this._priv,j)},w.prototype.getPrime=function(W){return V(this.__prime,W)},w.prototype.getGenerator=function(W){return V(this._gen,W)},w.prototype.setGenerator=function(W,j){return j=j||"utf8",Buffer.isBuffer(W)||(W=new Buffer(W,j)),this.__gen=W,this._gen=new e(W),this}},5563:(Ze,K,m)=>{var e=m(3753);Ze.exports=me,me.simpleSieve=$,me.fermatTest=ee;var t=m(8313),v=new t(24),s=new(m(7079)),M=new t(1),c=new t(2),N=new t(5),O=(new t(16),new t(8),new t(10)),A=new t(3),k=(new t(7),new t(11)),w=new t(4),W=(new t(12),null);function $(ce){for(var le=function(){if(null!==W)return W;var le=[];le[0]=2;for(var te=1,re=3;re<1048576;re+=2){for(var pe=Math.ceil(Math.sqrt(re)),y=0;y<te&&le[y]<=pe&&re%le[y]!=0;y++);te!==y&&le[y]<=pe||(le[te++]=re)}return W=le,le}(),te=0;te<le.length;te++)if(0===ce.modn(le[te]))return 0===ce.cmpn(le[te]);return!0}function ee(ce){var le=t.mont(ce);return 0===c.toRed(le).redPow(ce.subn(1)).fromRed().cmpn(1)}function me(ce,le){if(ce<16)return new t(2===le||5===le?[140,123]:[140,39]);le=new t(le);for(var te,re;;){for(te=new t(e(Math.ceil(ce/8)));te.bitLength()>ce;)te.ishrn(1);if(te.isEven()&&te.iadd(M),te.testn(1)||te.iadd(c),le.cmp(c)){if(!le.cmp(N))for(;te.mod(O).cmp(A);)te.iadd(w)}else for(;te.mod(v).cmp(k);)te.iadd(w);if($(re=te.shrn(1))&&$(te)&&ee(re)&&ee(te)&&s.test(re)&&s.test(te))return te}}},8313:function(Ze,K,m){!function(e,t){"use strict";function v(y,i){if(!y)throw new Error(i||"Assertion failed")}function C(y,i){y.super_=i;var a=function(){};a.prototype=i.prototype,y.prototype=new a,y.prototype.constructor=y}function s(y,i,a){if(s.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,null!==y&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(y||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(7748).Buffer}catch(y){}function c(y,i){var a=y.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(y,i,a){var p=c(y,a);return a-1>=i&&(p|=c(y,a-1)<<4),p}function o(y,i,a,p){for(var u=0,_=Math.min(y.length,a),D=i;D<_;D++){var I=y.charCodeAt(D)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),v(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u<i.length&&(16===a?this._parseHex(i,u,p):(this._parseBase(i,a,u),"le"===p&&this._initArray(this.toArray(),a,p)))},s.prototype._initNumber=function(i,a,p){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(v(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===p&&this._initArray(this.toArray(),a,p)},s.prototype._initArray=function(i,a,p){if(v("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var _,D,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=D>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(D=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=D>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},s.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var I,_=0,D=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=N(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=N(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;this.strip()},s.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,I=D%u,x=Math.min(D,D-I)+p,r=0,b=p;b<x;b+=u)r=o(i,b,b+u,a),this.imuln(_),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(0!==I){var Z=1;for(r=o(i,b,i.length,a),b=0;b<I;b++)Z*=a;this.imuln(Z),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},s.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var L=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],O=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(y,i,a){a.negative=i.negative^y.negative;var p=y.length+i.length|0;a.length=p,p=p-1|0;var u=0|y.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r<p;r++){for(var b=x>>>26,Z=67108863&x,P=Math.min(r,i.length-1),U=Math.max(0,r-y.length+1);U<=P;U++)b+=(D=(u=0|y.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D<this.length;D++){var I=this.words[D],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=O[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var P=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?P+p:L[r-P.length]+P+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}v(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return v(void 0!==M),this.toArrayLike(M,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);v(u<=_,"byte array longer than desired length"),v(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,I=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[_-r-1]=x}return I},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var p=this._zeroBits(this.words[a]);if(i+=p,26!==p)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return v(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;p<a.length;p++)this.words[p]=this.words[p]&i.words[p];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return v(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;u<p.length;u++)this.words[u]=a.words[u]^p.words[u];if(this!==a)for(;u<a.length;u++)this.words[u]=a.words[u];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return v(0==(this.negative|i.negative)),this.iuxor(i)},s.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){v("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u<a;u++)this.words[u]=67108863&~this.words[u];return p>0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){v("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<<u:this.words[p]&~(1<<u),this.strip()},s.prototype.iadd=function(i){var a,p,u;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D<u.length;D++)this.words[D]=67108863&(a=(0|p.words[D])+(0|u.words[D])+_),_=a>>>26;for(;0!==_&&D<p.length;D++)this.words[D]=67108863&(a=(0|p.words[D])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;D<p.length;D++)this.words[D]=p.words[D];return this},s.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,I=0;I<_.length;I++)D=(a=(0|u.words[I])-(0|_.words[I])+D)>>26,this.words[I]=67108863&a;for(;0!==D&&I<u.length;I++)D=(a=(0|u.words[I])+D)>>26,this.words[I]=67108863&a;if(0===D&&I<u.length&&u!==this)for(;I<u.length;I++)this.words[I]=u.words[I];return this.length=Math.max(this.length,I),u!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,a,p){var x,r,b,u=i.words,_=a.words,D=p.words,I=0,Z=0|u[0],P=8191&Z,U=Z>>>13,ye=0|u[1],xe=8191&ye,Ne=ye>>>13,Be=0|u[2],Oe=8191&Be,B=Be>>>13,Me=0|u[3],we=8191&Me,ae=Me>>>13,We=0|u[4],vt=8191&We,Pe=We>>>13,Ve=0|u[5],he=8191&Ve,Ee=Ve>>>13,ke=0|u[6],q=8191&ke,J=ke>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,ht=0|u[8],it=8191&ht,ft=ht>>>13,nt=0|u[9],st=8191&nt,wt=nt>>>13,Bt=0|_[0],Pt=8191&Bt,Vt=Bt>>>13,Oi=0|_[1],jt=8191&Oi,ti=Oi>>>13,Pi=0|_[2],si=8191&Pi,di=Pi>>>13,ze=0|_[3],Te=8191&ze,Y=ze>>>13,ge=0|_[4],Ae=8191&ge,et=ge>>>13,$t=0|_[5],Nt=8191&$t,Xt=$t>>>13,lt=0|_[6],Re=8191&lt,Fe=lt>>>13,rt=0|_[7],ot=8191&rt,At=rt>>>13,li=0|_[8],Ut=8191&li,Ft=li>>>13,Si=0|_[9],ai=8191&Si,ci=Si>>>13;p.negative=i.negative^a.negative,p.length=19;var rn=(I+(x=Math.imul(P,Pt))|0)+((8191&(r=(r=Math.imul(P,Vt))+Math.imul(U,Pt)|0))<<13)|0;I=((b=Math.imul(U,Vt))+(r>>>13)|0)+(rn>>>26)|0,rn&=67108863,x=Math.imul(xe,Pt),r=(r=Math.imul(xe,Vt))+Math.imul(Ne,Pt)|0,b=Math.imul(Ne,Vt);var Vi=(I+(x=x+Math.imul(P,jt)|0)|0)+((8191&(r=(r=r+Math.imul(P,ti)|0)+Math.imul(U,jt)|0))<<13)|0;I=((b=b+Math.imul(U,ti)|0)+(r>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,x=Math.imul(Oe,Pt),r=(r=Math.imul(Oe,Vt))+Math.imul(B,Pt)|0,b=Math.imul(B,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ti)|0)+Math.imul(Ne,jt)|0,b=b+Math.imul(Ne,ti)|0;var Di=(I+(x=x+Math.imul(P,si)|0)|0)+((8191&(r=(r=r+Math.imul(P,di)|0)+Math.imul(U,si)|0))<<13)|0;I=((b=b+Math.imul(U,di)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Pt),r=(r=Math.imul(we,Vt))+Math.imul(ae,Pt)|0,b=Math.imul(ae,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ti)|0)+Math.imul(B,jt)|0,b=b+Math.imul(B,ti)|0,x=x+Math.imul(xe,si)|0,r=(r=r+Math.imul(xe,di)|0)+Math.imul(Ne,si)|0,b=b+Math.imul(Ne,di)|0;var Xi=(I+(x=x+Math.imul(P,Te)|0)|0)+((8191&(r=(r=r+Math.imul(P,Y)|0)+Math.imul(U,Te)|0))<<13)|0;I=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Pt),r=(r=Math.imul(vt,Vt))+Math.imul(Pe,Pt)|0,b=Math.imul(Pe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ti)|0)+Math.imul(ae,jt)|0,b=b+Math.imul(ae,ti)|0,x=x+Math.imul(Oe,si)|0,r=(r=r+Math.imul(Oe,di)|0)+Math.imul(B,si)|0,b=b+Math.imul(B,di)|0,x=x+Math.imul(xe,Te)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ne,Te)|0,b=b+Math.imul(Ne,Y)|0;var Ke=(I+(x=x+Math.imul(P,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(P,et)|0)+Math.imul(U,Ae)|0))<<13)|0;I=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Pt),r=(r=Math.imul(he,Vt))+Math.imul(Ee,Pt)|0,b=Math.imul(Ee,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ti)|0)+Math.imul(Pe,jt)|0,b=b+Math.imul(Pe,ti)|0,x=x+Math.imul(we,si)|0,r=(r=r+Math.imul(we,di)|0)+Math.imul(ae,si)|0,b=b+Math.imul(ae,di)|0,x=x+Math.imul(Oe,Te)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(B,Te)|0,b=b+Math.imul(B,Y)|0,x=x+Math.imul(xe,Ae)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ne,Ae)|0,b=b+Math.imul(Ne,et)|0;var mt=(I+(x=x+Math.imul(P,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(P,Xt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((b=b+Math.imul(U,Xt)|0)+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(q,Pt),r=(r=Math.imul(q,Vt))+Math.imul(J,Pt)|0,b=Math.imul(J,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ti)|0)+Math.imul(Ee,jt)|0,b=b+Math.imul(Ee,ti)|0,x=x+Math.imul(vt,si)|0,r=(r=r+Math.imul(vt,di)|0)+Math.imul(Pe,si)|0,b=b+Math.imul(Pe,di)|0,x=x+Math.imul(we,Te)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(ae,Te)|0,b=b+Math.imul(ae,Y)|0,x=x+Math.imul(Oe,Ae)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(B,Ae)|0,b=b+Math.imul(B,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Xt)|0)+Math.imul(Ne,Nt)|0,b=b+Math.imul(Ne,Xt)|0;var ve=(I+(x=x+Math.imul(P,Re)|0)|0)+((8191&(r=(r=r+Math.imul(P,Fe)|0)+Math.imul(U,Re)|0))<<13)|0;I=((b=b+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(Ce,Pt),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Pt)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ti)|0)+Math.imul(J,jt)|0,b=b+Math.imul(J,ti)|0,x=x+Math.imul(he,si)|0,r=(r=r+Math.imul(he,di)|0)+Math.imul(Ee,si)|0,b=b+Math.imul(Ee,di)|0,x=x+Math.imul(vt,Te)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Pe,Te)|0,b=b+Math.imul(Pe,Y)|0,x=x+Math.imul(we,Ae)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(ae,Ae)|0,b=b+Math.imul(ae,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Xt)|0)+Math.imul(B,Nt)|0,b=b+Math.imul(B,Xt)|0,x=x+Math.imul(xe,Re)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ne,Re)|0,b=b+Math.imul(Ne,Fe)|0;var qe=(I+(x=x+Math.imul(P,ot)|0)|0)+((8191&(r=(r=r+Math.imul(P,At)|0)+Math.imul(U,ot)|0))<<13)|0;I=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(it,Pt),r=(r=Math.imul(it,Vt))+Math.imul(ft,Pt)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ti)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ti)|0,x=x+Math.imul(q,si)|0,r=(r=r+Math.imul(q,di)|0)+Math.imul(J,si)|0,b=b+Math.imul(J,di)|0,x=x+Math.imul(he,Te)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Ee,Te)|0,b=b+Math.imul(Ee,Y)|0,x=x+Math.imul(vt,Ae)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Pe,Ae)|0,b=b+Math.imul(Pe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Xt)|0)+Math.imul(ae,Nt)|0,b=b+Math.imul(ae,Xt)|0,x=x+Math.imul(Oe,Re)|0,r=(r=r+Math.imul(Oe,Fe)|0)+Math.imul(B,Re)|0,b=b+Math.imul(B,Fe)|0,x=x+Math.imul(xe,ot)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ne,ot)|0,b=b+Math.imul(Ne,At)|0;var _t=(I+(x=x+Math.imul(P,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(P,Ft)|0)+Math.imul(U,Ut)|0))<<13)|0;I=((b=b+Math.imul(U,Ft)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(st,Pt),r=(r=Math.imul(st,Vt))+Math.imul(wt,Pt)|0,b=Math.imul(wt,Vt),x=x+Math.imul(it,jt)|0,r=(r=r+Math.imul(it,ti)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ti)|0,x=x+Math.imul(Ce,si)|0,r=(r=r+Math.imul(Ce,di)|0)+Math.imul(Ue,si)|0,b=b+Math.imul(Ue,di)|0,x=x+Math.imul(q,Te)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul(J,Te)|0,b=b+Math.imul(J,Y)|0,x=x+Math.imul(he,Ae)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Ee,Ae)|0,b=b+Math.imul(Ee,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Xt)|0)+Math.imul(Pe,Nt)|0,b=b+Math.imul(Pe,Xt)|0,x=x+Math.imul(we,Re)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(ae,Re)|0,b=b+Math.imul(ae,Fe)|0,x=x+Math.imul(Oe,ot)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(B,ot)|0,b=b+Math.imul(B,At)|0,x=x+Math.imul(xe,Ut)|0,r=(r=r+Math.imul(xe,Ft)|0)+Math.imul(Ne,Ut)|0,b=b+Math.imul(Ne,Ft)|0;var ue=(I+(x=x+Math.imul(P,ai)|0)|0)+((8191&(r=(r=r+Math.imul(P,ci)|0)+Math.imul(U,ai)|0))<<13)|0;I=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(st,jt),r=(r=Math.imul(st,ti))+Math.imul(wt,jt)|0,b=Math.imul(wt,ti),x=x+Math.imul(it,si)|0,r=(r=r+Math.imul(it,di)|0)+Math.imul(ft,si)|0,b=b+Math.imul(ft,di)|0,x=x+Math.imul(Ce,Te)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Te)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,Ae)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul(J,Ae)|0,b=b+Math.imul(J,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Xt)|0)+Math.imul(Ee,Nt)|0,b=b+Math.imul(Ee,Xt)|0,x=x+Math.imul(vt,Re)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Pe,Re)|0,b=b+Math.imul(Pe,Fe)|0,x=x+Math.imul(we,ot)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(ae,ot)|0,b=b+Math.imul(ae,At)|0,x=x+Math.imul(Oe,Ut)|0,r=(r=r+Math.imul(Oe,Ft)|0)+Math.imul(B,Ut)|0,b=b+Math.imul(B,Ft)|0;var $e=(I+(x=x+Math.imul(xe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ne,ai)|0))<<13)|0;I=((b=b+Math.imul(Ne,ci)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,x=Math.imul(st,si),r=(r=Math.imul(st,di))+Math.imul(wt,si)|0,b=Math.imul(wt,di),x=x+Math.imul(it,Te)|0,r=(r=r+Math.imul(it,Y)|0)+Math.imul(ft,Te)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,Ae)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,Ae)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Xt)|0)+Math.imul(J,Nt)|0,b=b+Math.imul(J,Xt)|0,x=x+Math.imul(he,Re)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Ee,Re)|0,b=b+Math.imul(Ee,Fe)|0,x=x+Math.imul(vt,ot)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Pe,ot)|0,b=b+Math.imul(Pe,At)|0,x=x+Math.imul(we,Ut)|0,r=(r=r+Math.imul(we,Ft)|0)+Math.imul(ae,Ut)|0,b=b+Math.imul(ae,Ft)|0;var St=(I+(x=x+Math.imul(Oe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(B,ai)|0))<<13)|0;I=((b=b+Math.imul(B,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(st,Te),r=(r=Math.imul(st,Y))+Math.imul(wt,Te)|0,b=Math.imul(wt,Y),x=x+Math.imul(it,Ae)|0,r=(r=r+Math.imul(it,et)|0)+Math.imul(ft,Ae)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Xt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Xt)|0,x=x+Math.imul(q,Re)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul(J,Re)|0,b=b+Math.imul(J,Fe)|0,x=x+Math.imul(he,ot)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Ee,ot)|0,b=b+Math.imul(Ee,At)|0,x=x+Math.imul(vt,Ut)|0,r=(r=r+Math.imul(vt,Ft)|0)+Math.imul(Pe,Ut)|0,b=b+Math.imul(Pe,Ft)|0;var Rt=(I+(x=x+Math.imul(we,ai)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(ae,ai)|0))<<13)|0;I=((b=b+Math.imul(ae,ci)|0)+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,x=Math.imul(st,Ae),r=(r=Math.imul(st,et))+Math.imul(wt,Ae)|0,b=Math.imul(wt,et),x=x+Math.imul(it,Nt)|0,r=(r=r+Math.imul(it,Xt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Xt)|0,x=x+Math.imul(Ce,Re)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Ue,Re)|0,b=b+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,ot)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul(J,ot)|0,b=b+Math.imul(J,At)|0,x=x+Math.imul(he,Ut)|0,r=(r=r+Math.imul(he,Ft)|0)+Math.imul(Ee,Ut)|0,b=b+Math.imul(Ee,Ft)|0;var yi=(I+(x=x+Math.imul(vt,ai)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Pe,ai)|0))<<13)|0;I=((b=b+Math.imul(Pe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(st,Nt),r=(r=Math.imul(st,Xt))+Math.imul(wt,Nt)|0,b=Math.imul(wt,Xt),x=x+Math.imul(it,Re)|0,r=(r=r+Math.imul(it,Fe)|0)+Math.imul(ft,Re)|0,b=b+Math.imul(ft,Fe)|0,x=x+Math.imul(Ce,ot)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,ot)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Ut)|0,r=(r=r+Math.imul(q,Ft)|0)+Math.imul(J,Ut)|0,b=b+Math.imul(J,Ft)|0;var Ri=(I+(x=x+Math.imul(he,ai)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Ee,ai)|0))<<13)|0;I=((b=b+Math.imul(Ee,ci)|0)+(r>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,x=Math.imul(st,Re),r=(r=Math.imul(st,Fe))+Math.imul(wt,Re)|0,b=Math.imul(wt,Fe),x=x+Math.imul(it,ot)|0,r=(r=r+Math.imul(it,At)|0)+Math.imul(ft,ot)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Ut)|0,r=(r=r+Math.imul(Ce,Ft)|0)+Math.imul(Ue,Ut)|0,b=b+Math.imul(Ue,Ft)|0;var Ii=(I+(x=x+Math.imul(q,ai)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul(J,ai)|0))<<13)|0;I=((b=b+Math.imul(J,ci)|0)+(r>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,x=Math.imul(st,ot),r=(r=Math.imul(st,At))+Math.imul(wt,ot)|0,b=Math.imul(wt,At),x=x+Math.imul(it,Ut)|0,r=(r=r+Math.imul(it,Ft)|0)+Math.imul(ft,Ut)|0,b=b+Math.imul(ft,Ft)|0;var Ki=(I+(x=x+Math.imul(Ce,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,ai)|0))<<13)|0;I=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,x=Math.imul(st,Ut),r=(r=Math.imul(st,Ft))+Math.imul(wt,Ut)|0,b=Math.imul(wt,Ft);var at=(I+(x=x+Math.imul(it,ai)|0)|0)+((8191&(r=(r=r+Math.imul(it,ci)|0)+Math.imul(ft,ai)|0))<<13)|0;I=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(at>>>26)|0,at&=67108863;var Qt=(I+(x=Math.imul(st,ai))|0)+((8191&(r=(r=Math.imul(st,ci))+Math.imul(wt,ai)|0))<<13)|0;return I=((b=Math.imul(wt,ci))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,D[0]=rn,D[1]=Vi,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=mt,D[6]=ve,D[7]=qe,D[8]=_t,D[9]=ue,D[10]=$e,D[11]=St,D[12]=Rt,D[13]=yi,D[14]=Ri,D[15]=Ii,D[16]=Ki,D[17]=at,D[18]=Qt,0!==I&&(D[19]=I,p.length++),p};function W(y,i,a){return(new j).mulp(y,i,a)}function j(y,i){this.x=y,this.y=i}Math.imul||(w=k),s.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?k(this,i,a):u<1024?function(y,i,a){a.negative=i.negative^y.negative,a.length=y.length+i.length;for(var p=0,u=0,_=0;_<a.length-1;_++){var D=u;u=0;for(var I=67108863&p,x=Math.min(_,i.length-1),r=Math.max(0,_-y.length+1);r<=x;r++){var U=(0|y.words[_-r])*(0|i.words[r]),ye=67108863&U;I=67108863&(ye=ye+I|0),u+=(D=(D=D+(U/67108864|0)|0)+(ye>>>26)|0)>>>26,D&=67108863}a.words[_]=I,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):W(this,i,a),p},j.prototype.makeRBT=function(i){for(var a=new Array(i),p=s.prototype._countBits(i)-1,u=0;u<i;u++)a[u]=this.revBin(u,p,i);return a},j.prototype.revBin=function(i,a,p){if(0===i||i===p-1)return i;for(var u=0,_=0;_<a;_++)u|=(1&i)<<a-_-1,i>>=1;return u},j.prototype.permute=function(i,a,p,u,_,D){for(var I=0;I<D;I++)u[I]=a[i[I]],_[I]=p[i[I]]},j.prototype.transform=function(i,a,p,u,_,D){this.permute(D,i,a,p,u,_);for(var I=1;I<_;I<<=1)for(var x=I<<1,r=Math.cos(2*Math.PI/x),b=Math.sin(2*Math.PI/x),Z=0;Z<_;Z+=x)for(var P=r,U=b,ye=0;ye<I;ye++){var xe=p[Z+ye],Ne=u[Z+ye],Be=p[Z+ye+I],Oe=u[Z+ye+I],B=P*Be-U*Oe;Oe=P*Oe+U*Be,p[Z+ye]=xe+(Be=B),u[Z+ye]=Ne+Oe,p[Z+ye+I]=xe-Be,u[Z+ye+I]=Ne-Oe,ye!==x&&(B=r*P-b*U,U=r*U+b*P,P=B)}},j.prototype.guessLen13b=function(i,a){var p=1|Math.max(a,i),u=1&p,_=0;for(p=p/2|0;p;p>>>=1)_++;return 1<<_+1+u},j.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u<p/2;u++){var _=i[u];i[u]=i[p-u-1],i[p-u-1]=_,_=a[u],a[u]=-a[p-u-1],a[p-u-1]=-_}},j.prototype.normalize13b=function(i,a){for(var p=0,u=0;u<a/2;u++){var _=8192*Math.round(i[2*u+1]/a)+Math.round(i[2*u]/a)+p;i[u]=67108863&_,p=_<67108864?0:_/67108864|0}return i},j.prototype.convert13b=function(i,a,p,u){for(var _=0,D=0;D<a;D++)p[2*D]=8191&(_+=0|i[D]),p[2*D+1]=8191&(_>>>=13),_>>>=13;for(D=2*a;D<u;++D)p[D]=0;v(0===_),v(0==(-8192&_))},j.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},j.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),D=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),b=new Array(u),Z=new Array(u),P=new Array(u),U=p.words;U.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,b,u),this.transform(I,D,x,r,u,_),this.transform(b,D,Z,P,u,_);for(var ye=0;ye<u;ye++){var xe=x[ye]*Z[ye]-r[ye]*P[ye];r[ye]=x[ye]*P[ye]+r[ye]*Z[ye],x[ye]=xe}return this.conjugate(x,r,u),this.transform(x,r,U,D,u,_),this.conjugate(U,D,u),this.normalize13b(U,u),p.negative=i.negative^a.negative,p.length=i.length+a.length,p.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),W(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){v("number"==typeof i),v(i<67108864);for(var a=0,p=0;p<this.length;p++){var u=(0|this.words[p])*i,_=(67108863&u)+(67108863&a);a>>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function(y){for(var i=new Array(y.bitLength()),a=0;a<i.length;a++){var u=a%26;i[a]=(y.words[a/26|0]&1<<u)>>>u}return i}(i);if(0===a.length)return new s(1);for(var p=this,u=0;u<a.length&&0===a[u];u++,p=p.sqr());if(++u<a.length)for(var _=p.sqr();u<a.length;u++,_=_.sqr())0!==a[u]&&(p=p.mul(_));return p},s.prototype.iushln=function(i){v("number"==typeof i&&i>=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|D,D=I>>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_<p;_++)this.words[_]=0;this.length+=p}return this.strip()},s.prototype.ishln=function(i){return v(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,p){var u;v("number"==typeof i&&i>=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;r<D;r++)x.words[r]=this.words[r];x.length=D}if(0!==D)if(this.length>D)for(this.length-=D,r=0;r<this.length;r++)this.words[r]=this.words[r+D];else this.words[0]=0,this.length=1;var b=0;for(r=this.length-1;r>=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&I}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,p){return v(0===this.negative),this.iushrn(i,a,p)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<<a))},s.prototype.imaskn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return v("number"==typeof i),v(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},s.prototype.isubn=function(i){if(v("number"==typeof i),v(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,p){var _;this._expand(i.length+p);var D,I=0;for(_=0;_<i.length;_++){D=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((D-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_<this.length-p;_++)I=(D=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&D;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_<this.length;_++)I=(D=-(0|this.words[_])+I)>>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new s(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b<r.length;b++)r.words[b]=0}var Z=u.clone()._ishlnsubmul(_,1,x);0===Z.negative&&(u=Z,r&&(r.words[x]=1));for(var P=x-1;P>=0;P--){var U=67108864*(0|u.words[_.length+P])+(0|u.words[_.length+P-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,P);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,P),u.isZero()||(u.negative^=1);r&&(r.words[P]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},s.prototype.divmod=function(i,a,p){return v(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){v(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},s.prototype.idivn=function(i){v(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){v(0===i.negative),v(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),D=new s(0),I=new s(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,P=1;0==(a.words[0]&P)&&Z<26;++Z,P<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||I.isOdd())&&(D.iadd(r),I.isub(b)),D.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(I)):(p.isub(a),D.isub(u),I.isub(_))}return{a:D,b:I,gcd:p.iushln(x)}},s.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){v("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<<a;if(this.length<=p)return this._expand(p+1),this.words[p]|=u,this;for(var _=u,D=p;0!==_&&D<this.length;D++){var I=0|this.words[D];_=(I+=_)>>>26,this.words[D]=I&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),v(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:u<i?-1:1}return 0!==this.negative?0|-p:p},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,p=this.length-1;p>=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new re(i)},s.prototype.toRed=function(i){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return v(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return v(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var $={k256:null,p224:null,p192:null,p25519:null};function ee(y,i){this.name=y,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function le(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function te(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function re(y){if("string"==typeof y){var i=s._prime(y);this.m=i.p,this.prime=i}else v(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function pe(y){re.call(this,y),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ee.prototype._tmp=function(){var i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p<this.n?-1:a.ucmp(this.p);return 0===u?(a.words[0]=0,a.length=1):u>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(me,ee),me.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_<u;_++)a.words[_]=i.words[_];if(a.length=u,i.length<=9)return i.words[0]=0,void(i.length=1);var D=i.words[9];for(a.words[a.length++]=D&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|D>>>22,D=I}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p<i.length;p++){var u=0|i.words[p];i.words[p]=67108863&(a+=977*u),a=64*u+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ce,ee),C(le,ee),C(te,ee),te.prototype.imulK=function(i){for(var a=0,p=0;p<i.length;p++){var u=19*(0|i.words[p])+a,_=67108863&u;u>>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if($[i])return $[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new ce;else if("p192"===i)a=new le;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new te}return $[i]=a,a},re.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},re.prototype._verify2=function(i,a){v(0==(i.negative|a.negative),"red works only with positives"),v(i.red&&i.red===a.red,"red works only with red numbers")},re.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},re.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},re.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},re.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},re.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},re.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},re.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},re.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},re.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},re.prototype.isqr=function(i){return this.imul(i,i.clone())},re.prototype.sqr=function(i){return this.mul(i,i)},re.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(v(a%2==1),3===a){var p=this.m.add(new s(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);v(!u.isZero());var D=new s(1).toRed(this),I=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new s(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),P=this.pow(i,u),U=_;0!==P.cmp(D);){for(var ye=P,xe=0;0!==ye.cmp(D);xe++)ye=ye.redSqr();v(xe<U);var Ne=this.pow(b,new s(1).iushln(U-xe-1));Z=Z.redMul(Ne),b=Ne.redSqr(),P=P.redMul(b),U=xe}return Z},re.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},re.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var u=new Array(16);u[0]=new s(1).toRed(this),u[1]=i;for(var _=2;_<u.length;_++)u[_]=this.mul(u[_-1],i);var D=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var P=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==P||0!==I?(I<<=1,I|=P,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[I]),x=0,I=0)):x=0}r=26}return D},re.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},re.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new pe(i)},C(pe,re),pe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},pe.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},pe.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},pe.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},pe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ze=m.nmd(Ze),this)},4901:Ze=>{"use strict";var K={single_source_shortest_paths:function(m,e,t){var v={},C={};C[e]=0;var M,c,N,o,L,A,s=K.PriorityQueue.make();for(s.push(e,0);!s.empty();)for(N in o=(M=s.pop()).cost,L=m[c=M.value]||{})L.hasOwnProperty(N)&&(A=o+L[N],(void 0===C[N]||C[N]>A)&&(C[N]=A,s.push(N,A),v[N]=c));if(void 0!==t&&void 0===C[t]){var w=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(w)}return v},extract_shortest_path_from_predecessor_list:function(m,e){for(var t=[],v=e;v;)t.push(v),v=m[v];return t.reverse(),t},find_path:function(m,e,t){var v=K.single_source_shortest_paths(m,e,t);return K.extract_shortest_path_from_predecessor_list(v,t)},PriorityQueue:{make:function(m){var v,e=K.PriorityQueue,t={};for(v in m=m||{},e)e.hasOwnProperty(v)&&(t[v]=e[v]);return t.queue=[],t.sorter=m.sorter||e.default_sorter,t},default_sorter:function(m,e){return m.cost-e.cost},push:function(m,e){this.queue.push({value:m,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Ze.exports=K},7715:(Ze,K,m)=>{"use strict";var e=K;e.version=m(8597).i8,e.utils=m(1970),e.rand=m(7950),e.curve=m(6270),e.curves=m(2916),e.ec=m(7626),e.eddsa=m(1885)},7902:(Ze,K,m)=>{"use strict";var e=m(7433),t=m(1970),v=t.getNAF,C=t.getJSF,s=t.assert;function M(N,o){this.type=N,this.p=new e(o.p,16),this.red=o.prime?e.red(o.prime):e.mont(this.p),this.zero=new e(0).toRed(this.red),this.one=new e(1).toRed(this.red),this.two=new e(2).toRed(this.red),this.n=o.n&&new e(o.n,16),this.g=o.g&&this.pointFromJSON(o.g,o.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var L=this.n&&this.p.div(this.n);!L||L.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(N,o){this.curve=N,this.type=o,this.precomputed=null}Ze.exports=M,M.prototype.point=function(){throw new Error("Not implemented")},M.prototype.validate=function(){throw new Error("Not implemented")},M.prototype._fixedNafMul=function(o,L){s(o.precomputed);var O=o._getDoubles(),A=v(L,1,this._bitLength),E=(1<<O.step+1)-(O.step%2==0?2:1);E/=3;var w,V,k=[];for(w=0;w<A.length;w+=O.step){V=0;for(var W=w+O.step-1;W>=w;W--)V=(V<<1)+A[W];k.push(V)}for(var j=this.jpoint(null,null,null),$=this.jpoint(null,null,null),ee=E;ee>0;ee--){for(w=0;w<k.length;w++)(V=k[w])===ee?$=$.mixedAdd(O.points[w]):V===-ee&&($=$.mixedAdd(O.points[w].neg()));j=j.add($)}return j.toP()},M.prototype._wnafMul=function(o,L){for(var O=4,A=o._getNAFPoints(O),E=A.points,k=v(L,O=A.wnd,this._bitLength),w=this.jpoint(null,null,null),V=k.length-1;V>=0;V--){for(var W=0;V>=0&&0===k[V];V--)W++;if(V>=0&&W++,w=w.dblp(W),V<0)break;var j=k[V];s(0!==j),w="affine"===o.type?w.mixedAdd(j>0?E[j-1>>1]:E[-j-1>>1].neg()):w.add(j>0?E[j-1>>1]:E[-j-1>>1].neg())}return"affine"===o.type?w.toP():w},M.prototype._wnafMulAdd=function(o,L,O,A,E){var j,$,ee,k=this._wnafT1,w=this._wnafT2,V=this._wnafT3,W=0;for(j=0;j<A;j++){var me=(ee=L[j])._getNAFPoints(o);k[j]=me.wnd,w[j]=me.points}for(j=A-1;j>=1;j-=2){var ce=j-1,le=j;if(1===k[ce]&&1===k[le]){var te=[L[ce],null,null,L[le]];0===L[ce].y.cmp(L[le].y)?(te[1]=L[ce].add(L[le]),te[2]=L[ce].toJ().mixedAdd(L[le].neg())):0===L[ce].y.cmp(L[le].y.redNeg())?(te[1]=L[ce].toJ().mixedAdd(L[le]),te[2]=L[ce].add(L[le].neg())):(te[1]=L[ce].toJ().mixedAdd(L[le]),te[2]=L[ce].toJ().mixedAdd(L[le].neg()));var re=[-3,-1,-5,-7,0,7,5,1,3],pe=C(O[ce],O[le]);for(W=Math.max(pe[0].length,W),V[ce]=new Array(W),V[le]=new Array(W),$=0;$<W;$++)V[ce][$]=re[3*(1+(0|pe[0][$]))+(1+(0|pe[1][$]))],V[le][$]=0,w[ce]=te}else V[ce]=v(O[ce],k[ce],this._bitLength),V[le]=v(O[le],k[le],this._bitLength),W=Math.max(V[ce].length,W),W=Math.max(V[le].length,W)}var a=this.jpoint(null,null,null),p=this._wnafT4;for(j=W;j>=0;j--){for(var u=0;j>=0;){var _=!0;for($=0;$<A;$++)p[$]=0|V[$][j],0!==p[$]&&(_=!1);if(!_)break;u++,j--}if(j>=0&&u++,a=a.dblp(u),j<0)break;for($=0;$<A;$++){var D=p[$];0!==D&&(D>0?ee=w[$][D-1>>1]:D<0&&(ee=w[$][-D-1>>1].neg()),a="affine"===ee.type?a.mixedAdd(ee):a.add(ee))}}for(j=0;j<A;j++)w[j]=null;return E?a:a.toP()},M.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},M.prototype.decodePoint=function(o,L){o=t.toArray(o,L);var O=this.p.byteLength();if((4===o[0]||6===o[0]||7===o[0])&&o.length-1==2*O)return 6===o[0]?s(o[o.length-1]%2==0):7===o[0]&&s(o[o.length-1]%2==1),this.point(o.slice(1,1+O),o.slice(1+O,1+2*O));if((2===o[0]||3===o[0])&&o.length-1===O)return this.pointFromX(o.slice(1,1+O),3===o[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(o){return this.encode(o,!0)},c.prototype._encode=function(o){var L=this.curve.p.byteLength(),O=this.getX().toArray("be",L);return o?[this.getY().isEven()?2:3].concat(O):[4].concat(O,this.getY().toArray("be",L))},c.prototype.encode=function(o,L){return t.encode(this._encode(L),o)},c.prototype.precompute=function(o){if(this.precomputed)return this;var L={doubles:null,naf:null,beta:null};return L.naf=this._getNAFPoints(8),L.doubles=this._getDoubles(4,o),L.beta=this._getBeta(),this.precomputed=L,this},c.prototype._hasDoubles=function(o){if(!this.precomputed)return!1;var L=this.precomputed.doubles;return!!L&&L.points.length>=Math.ceil((o.bitLength()+1)/L.step)},c.prototype._getDoubles=function(o,L){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var O=[this],A=this,E=0;E<L;E+=o){for(var k=0;k<o;k++)A=A.dbl();O.push(A)}return{step:o,points:O}},c.prototype._getNAFPoints=function(o){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var L=[this],O=(1<<o)-1,A=1===O?null:this.dbl(),E=1;E<O;E++)L[E]=L[E-1].add(A);return{wnd:o,points:L}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(o){for(var L=this,O=0;O<o;O++)L=L.dbl();return L}},3835:(Ze,K,m)=>{"use strict";var e=m(1970),t=m(7433),v=m(3894),C=m(7902),s=e.assert;function M(N){this.twisted=1!=(0|N.a),this.mOneA=this.twisted&&-1==(0|N.a),this.extended=this.mOneA,C.call(this,"edwards",N),this.a=new t(N.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new t(N.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new t(N.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|N.c)}function c(N,o,L,O,A){C.BasePoint.call(this,N,"projective"),null===o&&null===L&&null===O?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new t(o,16),this.y=new t(L,16),this.z=O?new t(O,16):this.curve.one,this.t=A&&new t(A,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}v(M,C),Ze.exports=M,M.prototype._mulA=function(o){return this.mOneA?o.redNeg():this.a.redMul(o)},M.prototype._mulC=function(o){return this.oneC?o:this.c.redMul(o)},M.prototype.jpoint=function(o,L,O,A){return this.point(o,L,O,A)},M.prototype.pointFromX=function(o,L){(o=new t(o,16)).red||(o=o.toRed(this.red));var O=o.redSqr(),A=this.c2.redSub(this.a.redMul(O)),E=this.one.redSub(this.c2.redMul(this.d).redMul(O)),k=A.redMul(E.redInvm()),w=k.redSqrt();if(0!==w.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");var V=w.fromRed().isOdd();return(L&&!V||!L&&V)&&(w=w.redNeg()),this.point(o,w)},M.prototype.pointFromY=function(o,L){(o=new t(o,16)).red||(o=o.toRed(this.red));var O=o.redSqr(),A=O.redSub(this.c2),E=O.redMul(this.d).redMul(this.c2).redSub(this.a),k=A.redMul(E.redInvm());if(0===k.cmp(this.zero)){if(L)throw new Error("invalid point");return this.point(this.zero,o)}var w=k.redSqrt();if(0!==w.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");return w.fromRed().isOdd()!==L&&(w=w.redNeg()),this.point(w,o)},M.prototype.validate=function(o){if(o.isInfinity())return!0;o.normalize();var L=o.x.redSqr(),O=o.y.redSqr(),A=L.redMul(this.a).redAdd(O),E=this.c2.redMul(this.one.redAdd(this.d.redMul(L).redMul(O)));return 0===A.cmp(E)},v(c,C.BasePoint),M.prototype.pointFromJSON=function(o){return c.fromJSON(this,o)},M.prototype.point=function(o,L,O,A){return new c(this,o,L,O,A)},c.fromJSON=function(o,L){return new c(o,L[0],L[1],L[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var o=this.x.redSqr(),L=this.y.redSqr(),O=this.z.redSqr();O=O.redIAdd(O);var A=this.curve._mulA(o),E=this.x.redAdd(this.y).redSqr().redISub(o).redISub(L),k=A.redAdd(L),w=k.redSub(O),V=A.redSub(L),W=E.redMul(w),j=k.redMul(V),$=E.redMul(V),ee=w.redMul(k);return this.curve.point(W,j,ee,$)},c.prototype._projDbl=function(){var A,E,k,w,V,W,o=this.x.redAdd(this.y).redSqr(),L=this.x.redSqr(),O=this.y.redSqr();if(this.curve.twisted){var j=(w=this.curve._mulA(L)).redAdd(O);this.zOne?(A=o.redSub(L).redSub(O).redMul(j.redSub(this.curve.two)),E=j.redMul(w.redSub(O)),k=j.redSqr().redSub(j).redSub(j)):(V=this.z.redSqr(),W=j.redSub(V).redISub(V),A=o.redSub(L).redISub(O).redMul(W),E=j.redMul(w.redSub(O)),k=j.redMul(W))}else w=L.redAdd(O),V=this.curve._mulC(this.z).redSqr(),W=w.redSub(V).redSub(V),A=this.curve._mulC(o.redISub(w)).redMul(W),E=this.curve._mulC(w).redMul(L.redISub(O)),k=w.redMul(W);return this.curve.point(A,E,k)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(o){var L=this.y.redSub(this.x).redMul(o.y.redSub(o.x)),O=this.y.redAdd(this.x).redMul(o.y.redAdd(o.x)),A=this.t.redMul(this.curve.dd).redMul(o.t),E=this.z.redMul(o.z.redAdd(o.z)),k=O.redSub(L),w=E.redSub(A),V=E.redAdd(A),W=O.redAdd(L),j=k.redMul(w),$=V.redMul(W),ee=k.redMul(W),me=w.redMul(V);return this.curve.point(j,$,me,ee)},c.prototype._projAdd=function(o){var $,ee,L=this.z.redMul(o.z),O=L.redSqr(),A=this.x.redMul(o.x),E=this.y.redMul(o.y),k=this.curve.d.redMul(A).redMul(E),w=O.redSub(k),V=O.redAdd(k),W=this.x.redAdd(this.y).redMul(o.x.redAdd(o.y)).redISub(A).redISub(E),j=L.redMul(w).redMul(W);return this.curve.twisted?($=L.redMul(V).redMul(E.redSub(this.curve._mulA(A))),ee=w.redMul(V)):($=L.redMul(V).redMul(E.redSub(A)),ee=this.curve._mulC(w).redMul(V)),this.curve.point(j,$,ee)},c.prototype.add=function(o){return this.isInfinity()?o:o.isInfinity()?this:this.curve.extended?this._extAdd(o):this._projAdd(o)},c.prototype.mul=function(o){return this._hasDoubles(o)?this.curve._fixedNafMul(this,o):this.curve._wnafMul(this,o)},c.prototype.mulAdd=function(o,L,O){return this.curve._wnafMulAdd(1,[this,L],[o,O],2,!1)},c.prototype.jmulAdd=function(o,L,O){return this.curve._wnafMulAdd(1,[this,L],[o,O],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var o=this.z.redInvm();return this.x=this.x.redMul(o),this.y=this.y.redMul(o),this.t&&(this.t=this.t.redMul(o)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(o){return this===o||0===this.getX().cmp(o.getX())&&0===this.getY().cmp(o.getY())},c.prototype.eqXToP=function(o){var L=o.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(L))return!0;for(var O=o.clone(),A=this.curve.redN.redMul(this.z);;){if(O.iadd(this.curve.n),O.cmp(this.curve.p)>=0)return!1;if(L.redIAdd(A),0===this.x.cmp(L))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},6270:(Ze,K,m)=>{"use strict";var e=K;e.base=m(7902),e.short=m(1781),e.mont=m(7064),e.edwards=m(3835)},7064:(Ze,K,m)=>{"use strict";var e=m(7433),t=m(3894),v=m(7902),C=m(1970);function s(c){v.call(this,"mont",c),this.a=new e(c.a,16).toRed(this.red),this.b=new e(c.b,16).toRed(this.red),this.i4=new e(4).toRed(this.red).redInvm(),this.two=new e(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function M(c,N,o){v.BasePoint.call(this,c,"projective"),null===N&&null===o?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(N,16),this.z=new e(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}t(s,v),Ze.exports=s,s.prototype.validate=function(N){var o=N.normalize().x,L=o.redSqr(),O=L.redMul(o).redAdd(L.redMul(this.a)).redAdd(o);return 0===O.redSqrt().redSqr().cmp(O)},t(M,v.BasePoint),s.prototype.decodePoint=function(N,o){return this.point(C.toArray(N,o),1)},s.prototype.point=function(N,o){return new M(this,N,o)},s.prototype.pointFromJSON=function(N){return M.fromJSON(this,N)},M.prototype.precompute=function(){},M.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},M.fromJSON=function(N,o){return new M(N,o[0],o[1]||N.one)},M.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},M.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},M.prototype.dbl=function(){var o=this.x.redAdd(this.z).redSqr(),O=this.x.redSub(this.z).redSqr(),A=o.redSub(O),E=o.redMul(O),k=A.redMul(O.redAdd(this.curve.a24.redMul(A)));return this.curve.point(E,k)},M.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.diffAdd=function(N,o){var L=this.x.redAdd(this.z),O=this.x.redSub(this.z),A=N.x.redAdd(N.z),k=N.x.redSub(N.z).redMul(L),w=A.redMul(O),V=o.z.redMul(k.redAdd(w).redSqr()),W=o.x.redMul(k.redISub(w).redSqr());return this.curve.point(V,W)},M.prototype.mul=function(N){for(var o=N.clone(),L=this,O=this.curve.point(null,null),E=[];0!==o.cmpn(0);o.iushrn(1))E.push(o.andln(1));for(var k=E.length-1;k>=0;k--)0===E[k]?(L=L.diffAdd(O,this),O=O.dbl()):(O=L.diffAdd(O,this),L=L.dbl());return O},M.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},M.prototype.eq=function(N){return 0===this.getX().cmp(N.getX())},M.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},M.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(Ze,K,m)=>{"use strict";var e=m(1970),t=m(7433),v=m(3894),C=m(7902),s=e.assert;function M(o){C.call(this,"short",o),this.a=new t(o.a,16).toRed(this.red),this.b=new t(o.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(o),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(o,L,O,A){C.BasePoint.call(this,o,"affine"),null===L&&null===O?(this.x=null,this.y=null,this.inf=!0):(this.x=new t(L,16),this.y=new t(O,16),A&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function N(o,L,O,A){C.BasePoint.call(this,o,"jacobian"),null===L&&null===O&&null===A?(this.x=this.curve.one,this.y=this.curve.one,this.z=new t(0)):(this.x=new t(L,16),this.y=new t(O,16),this.z=new t(A,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}v(M,C),Ze.exports=M,M.prototype._getEndomorphism=function(L){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var O,A;if(L.beta)O=new t(L.beta,16).toRed(this.red);else{var E=this._getEndoRoots(this.p);O=(O=E[0].cmp(E[1])<0?E[0]:E[1]).toRed(this.red)}if(L.lambda)A=new t(L.lambda,16);else{var k=this._getEndoRoots(this.n);0===this.g.mul(k[0]).x.cmp(this.g.x.redMul(O))?A=k[0]:s(0===this.g.mul(A=k[1]).x.cmp(this.g.x.redMul(O)))}return{beta:O,lambda:A,basis:L.basis?L.basis.map(function(V){return{a:new t(V.a,16),b:new t(V.b,16)}}):this._getEndoBasis(A)}}},M.prototype._getEndoRoots=function(L){var O=L===this.p?this.red:t.mont(L),A=new t(2).toRed(O).redInvm(),E=A.redNeg(),k=new t(3).toRed(O).redNeg().redSqrt().redMul(A);return[E.redAdd(k).fromRed(),E.redSub(k).fromRed()]},M.prototype._getEndoBasis=function(L){for(var j,$,ee,me,ce,le,te,pe,y,O=this.n.ushrn(Math.floor(this.n.bitLength()/2)),A=L,E=this.n.clone(),k=new t(1),w=new t(0),V=new t(0),W=new t(1),re=0;0!==A.cmpn(0);){var i=E.div(A);pe=E.sub(i.mul(A)),y=V.sub(i.mul(k));var a=W.sub(i.mul(w));if(!ee&&pe.cmp(O)<0)j=te.neg(),$=k,ee=pe.neg(),me=y;else if(ee&&2==++re)break;te=pe,E=A,A=pe,V=k,k=y,W=w,w=a}ce=pe.neg(),le=y;var p=ee.sqr().add(me.sqr());return ce.sqr().add(le.sqr()).cmp(p)>=0&&(ce=j,le=$),ee.negative&&(ee=ee.neg(),me=me.neg()),ce.negative&&(ce=ce.neg(),le=le.neg()),[{a:ee,b:me},{a:ce,b:le}]},M.prototype._endoSplit=function(L){var O=this.endo.basis,A=O[0],E=O[1],k=E.b.mul(L).divRound(this.n),w=A.b.neg().mul(L).divRound(this.n),V=k.mul(A.a),W=w.mul(E.a),j=k.mul(A.b),$=w.mul(E.b);return{k1:L.sub(V).sub(W),k2:j.add($).neg()}},M.prototype.pointFromX=function(L,O){(L=new t(L,16)).red||(L=L.toRed(this.red));var A=L.redSqr().redMul(L).redIAdd(L.redMul(this.a)).redIAdd(this.b),E=A.redSqrt();if(0!==E.redSqr().redSub(A).cmp(this.zero))throw new Error("invalid point");var k=E.fromRed().isOdd();return(O&&!k||!O&&k)&&(E=E.redNeg()),this.point(L,E)},M.prototype.validate=function(L){if(L.inf)return!0;var O=L.x,A=L.y,E=this.a.redMul(O),k=O.redSqr().redMul(O).redIAdd(E).redIAdd(this.b);return 0===A.redSqr().redISub(k).cmpn(0)},M.prototype._endoWnafMulAdd=function(L,O,A){for(var E=this._endoWnafT1,k=this._endoWnafT2,w=0;w<L.length;w++){var V=this._endoSplit(O[w]),W=L[w],j=W._getBeta();V.k1.negative&&(V.k1.ineg(),W=W.neg(!0)),V.k2.negative&&(V.k2.ineg(),j=j.neg(!0)),E[2*w]=W,E[2*w+1]=j,k[2*w]=V.k1,k[2*w+1]=V.k2}for(var $=this._wnafMulAdd(1,E,k,2*w,A),ee=0;ee<2*w;ee++)E[ee]=null,k[ee]=null;return $},v(c,C.BasePoint),M.prototype.point=function(L,O,A){return new c(this,L,O,A)},M.prototype.pointFromJSON=function(L,O){return c.fromJSON(this,L,O)},c.prototype._getBeta=function(){if(this.curve.endo){var L=this.precomputed;if(L&&L.beta)return L.beta;var O=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(L){var A=this.curve,E=function(k){return A.point(k.x.redMul(A.endo.beta),k.y)};L.beta=O,O.precomputed={beta:null,naf:L.naf&&{wnd:L.naf.wnd,points:L.naf.points.map(E)},doubles:L.doubles&&{step:L.doubles.step,points:L.doubles.points.map(E)}}}return O}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(L,O,A){"string"==typeof O&&(O=JSON.parse(O));var E=L.point(O[0],O[1],A);if(!O[2])return E;function k(V){return L.point(V[0],V[1],A)}var w=O[2];return E.precomputed={beta:null,doubles:w.doubles&&{step:w.doubles.step,points:[E].concat(w.doubles.points.map(k))},naf:w.naf&&{wnd:w.naf.wnd,points:[E].concat(w.naf.points.map(k))}},E},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(L){if(this.inf)return L;if(L.inf)return this;if(this.eq(L))return this.dbl();if(this.neg().eq(L))return this.curve.point(null,null);if(0===this.x.cmp(L.x))return this.curve.point(null,null);var O=this.y.redSub(L.y);0!==O.cmpn(0)&&(O=O.redMul(this.x.redSub(L.x).redInvm()));var A=O.redSqr().redISub(this.x).redISub(L.x),E=O.redMul(this.x.redSub(A)).redISub(this.y);return this.curve.point(A,E)},c.prototype.dbl=function(){if(this.inf)return this;var L=this.y.redAdd(this.y);if(0===L.cmpn(0))return this.curve.point(null,null);var O=this.curve.a,A=this.x.redSqr(),E=L.redInvm(),k=A.redAdd(A).redIAdd(A).redIAdd(O).redMul(E),w=k.redSqr().redISub(this.x.redAdd(this.x)),V=k.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,V)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(L){return L=new t(L,16),this.isInfinity()?this:this._hasDoubles(L)?this.curve._fixedNafMul(this,L):this.curve.endo?this.curve._endoWnafMulAdd([this],[L]):this.curve._wnafMul(this,L)},c.prototype.mulAdd=function(L,O,A){var E=[this,O],k=[L,A];return this.curve.endo?this.curve._endoWnafMulAdd(E,k):this.curve._wnafMulAdd(1,E,k,2)},c.prototype.jmulAdd=function(L,O,A){var E=[this,O],k=[L,A];return this.curve.endo?this.curve._endoWnafMulAdd(E,k,!0):this.curve._wnafMulAdd(1,E,k,2,!0)},c.prototype.eq=function(L){return this===L||this.inf===L.inf&&(this.inf||0===this.x.cmp(L.x)&&0===this.y.cmp(L.y))},c.prototype.neg=function(L){if(this.inf)return this;var O=this.curve.point(this.x,this.y.redNeg());if(L&&this.precomputed){var A=this.precomputed,E=function(k){return k.neg()};O.precomputed={naf:A.naf&&{wnd:A.naf.wnd,points:A.naf.points.map(E)},doubles:A.doubles&&{step:A.doubles.step,points:A.doubles.points.map(E)}}}return O},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},v(N,C.BasePoint),M.prototype.jpoint=function(L,O,A){return new N(this,L,O,A)},N.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var L=this.z.redInvm(),O=L.redSqr(),A=this.x.redMul(O),E=this.y.redMul(O).redMul(L);return this.curve.point(A,E)},N.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},N.prototype.add=function(L){if(this.isInfinity())return L;if(L.isInfinity())return this;var O=L.z.redSqr(),A=this.z.redSqr(),E=this.x.redMul(O),k=L.x.redMul(A),w=this.y.redMul(O.redMul(L.z)),V=L.y.redMul(A.redMul(this.z)),W=E.redSub(k),j=w.redSub(V);if(0===W.cmpn(0))return 0!==j.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var $=W.redSqr(),ee=$.redMul(W),me=E.redMul($),ce=j.redSqr().redIAdd(ee).redISub(me).redISub(me),le=j.redMul(me.redISub(ce)).redISub(w.redMul(ee)),te=this.z.redMul(L.z).redMul(W);return this.curve.jpoint(ce,le,te)},N.prototype.mixedAdd=function(L){if(this.isInfinity())return L.toJ();if(L.isInfinity())return this;var O=this.z.redSqr(),A=this.x,E=L.x.redMul(O),k=this.y,w=L.y.redMul(O).redMul(this.z),V=A.redSub(E),W=k.redSub(w);if(0===V.cmpn(0))return 0!==W.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var j=V.redSqr(),$=j.redMul(V),ee=A.redMul(j),me=W.redSqr().redIAdd($).redISub(ee).redISub(ee),ce=W.redMul(ee.redISub(me)).redISub(k.redMul($)),le=this.z.redMul(V);return this.curve.jpoint(me,ce,le)},N.prototype.dblp=function(L){if(0===L)return this;if(this.isInfinity())return this;if(!L)return this.dbl();var O;if(this.curve.zeroA||this.curve.threeA){var A=this;for(O=0;O<L;O++)A=A.dbl();return A}var E=this.curve.a,k=this.curve.tinv,w=this.x,V=this.y,W=this.z,j=W.redSqr().redSqr(),$=V.redAdd(V);for(O=0;O<L;O++){var ee=w.redSqr(),me=$.redSqr(),ce=me.redSqr(),le=ee.redAdd(ee).redIAdd(ee).redIAdd(E.redMul(j)),te=w.redMul(me),re=le.redSqr().redISub(te.redAdd(te)),pe=te.redISub(re),y=le.redMul(pe);y=y.redIAdd(y).redISub(ce);var i=$.redMul(W);O+1<L&&(j=j.redMul(ce)),w=re,W=i,$=y}return this.curve.jpoint(w,$.redMul(k),W)},N.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},N.prototype._zeroDbl=function(){var L,O,A;if(this.zOne){var E=this.x.redSqr(),k=this.y.redSqr(),w=k.redSqr(),V=this.x.redAdd(k).redSqr().redISub(E).redISub(w);V=V.redIAdd(V);var W=E.redAdd(E).redIAdd(E),j=W.redSqr().redISub(V).redISub(V),$=w.redIAdd(w);$=($=$.redIAdd($)).redIAdd($),L=j,O=W.redMul(V.redISub(j)).redISub($),A=this.y.redAdd(this.y)}else{var ee=this.x.redSqr(),me=this.y.redSqr(),ce=me.redSqr(),le=this.x.redAdd(me).redSqr().redISub(ee).redISub(ce);le=le.redIAdd(le);var te=ee.redAdd(ee).redIAdd(ee),re=te.redSqr(),pe=ce.redIAdd(ce);pe=(pe=pe.redIAdd(pe)).redIAdd(pe),L=re.redISub(le).redISub(le),O=te.redMul(le.redISub(L)).redISub(pe),A=(A=this.y.redMul(this.z)).redIAdd(A)}return this.curve.jpoint(L,O,A)},N.prototype._threeDbl=function(){var L,O,A;if(this.zOne){var E=this.x.redSqr(),k=this.y.redSqr(),w=k.redSqr(),V=this.x.redAdd(k).redSqr().redISub(E).redISub(w);V=V.redIAdd(V);var W=E.redAdd(E).redIAdd(E).redIAdd(this.curve.a),j=W.redSqr().redISub(V).redISub(V);L=j;var $=w.redIAdd(w);$=($=$.redIAdd($)).redIAdd($),O=W.redMul(V.redISub(j)).redISub($),A=this.y.redAdd(this.y)}else{var ee=this.z.redSqr(),me=this.y.redSqr(),ce=this.x.redMul(me),le=this.x.redSub(ee).redMul(this.x.redAdd(ee));le=le.redAdd(le).redIAdd(le);var te=ce.redIAdd(ce),re=(te=te.redIAdd(te)).redAdd(te);L=le.redSqr().redISub(re),A=this.y.redAdd(this.z).redSqr().redISub(me).redISub(ee);var pe=me.redSqr();pe=(pe=(pe=pe.redIAdd(pe)).redIAdd(pe)).redIAdd(pe),O=le.redMul(te.redISub(L)).redISub(pe)}return this.curve.jpoint(L,O,A)},N.prototype._dbl=function(){var L=this.curve.a,O=this.x,A=this.y,E=this.z,k=E.redSqr().redSqr(),w=O.redSqr(),V=A.redSqr(),W=w.redAdd(w).redIAdd(w).redIAdd(L.redMul(k)),j=O.redAdd(O),$=(j=j.redIAdd(j)).redMul(V),ee=W.redSqr().redISub($.redAdd($)),me=$.redISub(ee),ce=V.redSqr();ce=(ce=(ce=ce.redIAdd(ce)).redIAdd(ce)).redIAdd(ce);var le=W.redMul(me).redISub(ce),te=A.redAdd(A).redMul(E);return this.curve.jpoint(ee,le,te)},N.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var L=this.x.redSqr(),O=this.y.redSqr(),A=this.z.redSqr(),E=O.redSqr(),k=L.redAdd(L).redIAdd(L),w=k.redSqr(),V=this.x.redAdd(O).redSqr().redISub(L).redISub(E),W=(V=(V=(V=V.redIAdd(V)).redAdd(V).redIAdd(V)).redISub(w)).redSqr(),j=E.redIAdd(E);j=(j=(j=j.redIAdd(j)).redIAdd(j)).redIAdd(j);var $=k.redIAdd(V).redSqr().redISub(w).redISub(W).redISub(j),ee=O.redMul($);ee=(ee=ee.redIAdd(ee)).redIAdd(ee);var me=this.x.redMul(W).redISub(ee);me=(me=me.redIAdd(me)).redIAdd(me);var ce=this.y.redMul($.redMul(j.redISub($)).redISub(V.redMul(W)));ce=(ce=(ce=ce.redIAdd(ce)).redIAdd(ce)).redIAdd(ce);var le=this.z.redAdd(V).redSqr().redISub(A).redISub(W);return this.curve.jpoint(me,ce,le)},N.prototype.mul=function(L,O){return L=new t(L,O),this.curve._wnafMul(this,L)},N.prototype.eq=function(L){if("affine"===L.type)return this.eq(L.toJ());if(this===L)return!0;var O=this.z.redSqr(),A=L.z.redSqr();if(0!==this.x.redMul(A).redISub(L.x.redMul(O)).cmpn(0))return!1;var E=O.redMul(this.z),k=A.redMul(L.z);return 0===this.y.redMul(k).redISub(L.y.redMul(E)).cmpn(0)},N.prototype.eqXToP=function(L){var O=this.z.redSqr(),A=L.toRed(this.curve.red).redMul(O);if(0===this.x.cmp(A))return!0;for(var E=L.clone(),k=this.curve.redN.redMul(O);;){if(E.iadd(this.curve.n),E.cmp(this.curve.p)>=0)return!1;if(A.redIAdd(k),0===this.x.cmp(A))return!0}},N.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},N.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(Ze,K,m)=>{"use strict";var N,e=K,t=m(7084),v=m(6270),s=m(1970).assert;function M(o){this.curve="short"===o.type?new v.short(o):"edwards"===o.type?new v.edwards(o):new v.mont(o),this.g=this.curve.g,this.n=this.curve.n,this.hash=o.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(o,L){Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:function(){var O=new M(L);return Object.defineProperty(e,o,{configurable:!0,enumerable:!0,value:O}),O}})}e.PresetCurve=M,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:t.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:t.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:t.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:t.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:t.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{N=m(5150)}catch(o){N=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:t.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",N]})},7626:(Ze,K,m)=>{"use strict";var e=m(7433),t=m(2438),v=m(1970),C=m(2916),s=m(7950),M=v.assert,c=m(1259),N=m(5957);function o(L){if(!(this instanceof o))return new o(L);"string"==typeof L&&(M(Object.prototype.hasOwnProperty.call(C,L),"Unknown curve "+L),L=C[L]),L instanceof C.PresetCurve&&(L={curve:L}),this.curve=L.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=L.curve.g,this.g.precompute(L.curve.n.bitLength()+1),this.hash=L.hash||L.curve.hash}Ze.exports=o,o.prototype.keyPair=function(O){return new c(this,O)},o.prototype.keyFromPrivate=function(O,A){return c.fromPrivate(this,O,A)},o.prototype.keyFromPublic=function(O,A){return c.fromPublic(this,O,A)},o.prototype.genKeyPair=function(O){O||(O={});for(var A=new t({hash:this.hash,pers:O.pers,persEnc:O.persEnc||"utf8",entropy:O.entropy||s(this.hash.hmacStrength),entropyEnc:O.entropy&&O.entropyEnc||"utf8",nonce:this.n.toArray()}),E=this.n.byteLength(),k=this.n.sub(new e(2));;){var w=new e(A.generate(E));if(!(w.cmp(k)>0))return w.iaddn(1),this.keyFromPrivate(w)}},o.prototype._truncateToN=function(O,A){var E=8*O.byteLength()-this.n.bitLength();return E>0&&(O=O.ushrn(E)),!A&&O.cmp(this.n)>=0?O.sub(this.n):O},o.prototype.sign=function(O,A,E,k){"object"==typeof E&&(k=E,E=null),k||(k={}),A=this.keyFromPrivate(A,E),O=this._truncateToN(new e(O,16));for(var w=this.n.byteLength(),V=A.getPrivate().toArray("be",w),W=O.toArray("be",w),j=new t({hash:this.hash,entropy:V,nonce:W,pers:k.pers,persEnc:k.persEnc||"utf8"}),$=this.n.sub(new e(1)),ee=0;;ee++){var me=k.k?k.k(ee):new e(j.generate(this.n.byteLength()));if(!((me=this._truncateToN(me,!0)).cmpn(1)<=0||me.cmp($)>=0)){var ce=this.g.mul(me);if(!ce.isInfinity()){var le=ce.getX(),te=le.umod(this.n);if(0!==te.cmpn(0)){var re=me.invm(this.n).mul(te.mul(A.getPrivate()).iadd(O));if(0!==(re=re.umod(this.n)).cmpn(0)){var pe=(ce.getY().isOdd()?1:0)|(0!==le.cmp(te)?2:0);return k.canonical&&re.cmp(this.nh)>0&&(re=this.n.sub(re),pe^=1),new N({r:te,s:re,recoveryParam:pe})}}}}}},o.prototype.verify=function(O,A,E,k){O=this._truncateToN(new e(O,16)),E=this.keyFromPublic(E,k);var w=(A=new N(A,"hex")).r,V=A.s;if(w.cmpn(1)<0||w.cmp(this.n)>=0||V.cmpn(1)<0||V.cmp(this.n)>=0)return!1;var ee,W=V.invm(this.n),j=W.mul(O).umod(this.n),$=W.mul(w).umod(this.n);return this.curve._maxwellTrick?!(ee=this.g.jmulAdd(j,E.getPublic(),$)).isInfinity()&&ee.eqXToP(w):!(ee=this.g.mulAdd(j,E.getPublic(),$)).isInfinity()&&0===ee.getX().umod(this.n).cmp(w)},o.prototype.recoverPubKey=function(L,O,A,E){M((3&A)===A,"The recovery param is more than two bits"),O=new N(O,E);var k=this.n,w=new e(L),V=O.r,W=O.s,j=1&A,$=A>>1;if(V.cmp(this.curve.p.umod(this.curve.n))>=0&&$)throw new Error("Unable to find sencond key candinate");V=this.curve.pointFromX($?V.add(this.curve.n):V,j);var ee=O.r.invm(k),me=k.sub(w).mul(ee).umod(k),ce=W.mul(ee).umod(k);return this.g.mulAdd(me,V,ce)},o.prototype.getKeyRecoveryParam=function(L,O,A,E){if(null!==(O=new N(O,E)).recoveryParam)return O.recoveryParam;for(var k=0;k<4;k++){var w;try{w=this.recoverPubKey(L,O,k)}catch(V){continue}if(w.eq(A))return k}throw new Error("Unable to find valid recovery factor")}},1259:(Ze,K,m)=>{"use strict";var e=m(7433),v=m(1970).assert;function C(s,M){this.ec=s,this.priv=null,this.pub=null,M.priv&&this._importPrivate(M.priv,M.privEnc),M.pub&&this._importPublic(M.pub,M.pubEnc)}Ze.exports=C,C.fromPublic=function(M,c,N){return c instanceof C?c:new C(M,{pub:c,pubEnc:N})},C.fromPrivate=function(M,c,N){return c instanceof C?c:new C(M,{priv:c,privEnc:N})},C.prototype.validate=function(){var M=this.getPublic();return M.isInfinity()?{result:!1,reason:"Invalid public key"}:M.validate()?M.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},C.prototype.getPublic=function(M,c){return"string"==typeof M&&(c=M,M=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),c?this.pub.encode(c,M):this.pub},C.prototype.getPrivate=function(M){return"hex"===M?this.priv.toString(16,2):this.priv},C.prototype._importPrivate=function(M,c){this.priv=new e(M,c||16),this.priv=this.priv.umod(this.ec.curve.n)},C.prototype._importPublic=function(M,c){if(M.x||M.y)return"mont"===this.ec.curve.type?v(M.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&v(M.x&&M.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(M.x,M.y));this.pub=this.ec.curve.decodePoint(M,c)},C.prototype.derive=function(M){return M.validate()||v(M.validate(),"public point not validated"),M.mul(this.priv).getX()},C.prototype.sign=function(M,c,N){return this.ec.sign(M,this,c,N)},C.prototype.verify=function(M,c){return this.ec.verify(M,c,this)},C.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},5957:(Ze,K,m)=>{"use strict";var e=m(7433),t=m(1970),v=t.assert;function C(o,L){if(o instanceof C)return o;this._importDER(o,L)||(v(o.r&&o.s,"Signature without r or s"),this.r=new e(o.r,16),this.s=new e(o.s,16),this.recoveryParam=void 0===o.recoveryParam?null:o.recoveryParam)}function s(){this.place=0}function M(o,L){var O=o[L.place++];if(!(128&O))return O;var A=15&O;if(0===A||A>4)return!1;for(var E=0,k=0,w=L.place;k<A;k++,w++)E<<=8,E|=o[w],E>>>=0;return!(E<=127)&&(L.place=w,E)}function c(o){for(var L=0,O=o.length-1;!o[L]&&!(128&o[L+1])&&L<O;)L++;return 0===L?o:o.slice(L)}function N(o,L){if(L<128)o.push(L);else{var O=1+(Math.log(L)/Math.LN2>>>3);for(o.push(128|O);--O;)o.push(L>>>(O<<3)&255);o.push(L)}}Ze.exports=C,C.prototype._importDER=function(L,O){L=t.toArray(L,O);var A=new s;if(48!==L[A.place++])return!1;var E=M(L,A);if(!1===E||E+A.place!==L.length||2!==L[A.place++])return!1;var k=M(L,A);if(!1===k)return!1;var w=L.slice(A.place,k+A.place);if(A.place+=k,2!==L[A.place++])return!1;var V=M(L,A);if(!1===V||L.length!==V+A.place)return!1;var W=L.slice(A.place,V+A.place);if(0===w[0]){if(!(128&w[1]))return!1;w=w.slice(1)}if(0===W[0]){if(!(128&W[1]))return!1;W=W.slice(1)}return this.r=new e(w),this.s=new e(W),this.recoveryParam=null,!0},C.prototype.toDER=function(L){var O=this.r.toArray(),A=this.s.toArray();for(128&O[0]&&(O=[0].concat(O)),128&A[0]&&(A=[0].concat(A)),O=c(O),A=c(A);!(A[0]||128&A[1]);)A=A.slice(1);var E=[2];N(E,O.length),(E=E.concat(O)).push(2),N(E,A.length);var k=E.concat(A),w=[48];return N(w,k.length),w=w.concat(k),t.encode(w,L)}},1885:(Ze,K,m)=>{"use strict";var e=m(7084),t=m(2916),v=m(1970),C=v.assert,s=v.parseBytes,M=m(7535),c=m(8241);function N(o){if(C("ed25519"===o,"only tested with ed25519 so far"),!(this instanceof N))return new N(o);this.curve=o=t[o].curve,this.g=o.g,this.g.precompute(o.n.bitLength()+1),this.pointClass=o.point().constructor,this.encodingLength=Math.ceil(o.n.bitLength()/8),this.hash=e.sha512}Ze.exports=N,N.prototype.sign=function(L,O){L=s(L);var A=this.keyFromSecret(O),E=this.hashInt(A.messagePrefix(),L),k=this.g.mul(E),w=this.encodePoint(k),V=this.hashInt(w,A.pubBytes(),L).mul(A.priv()),W=E.add(V).umod(this.curve.n);return this.makeSignature({R:k,S:W,Rencoded:w})},N.prototype.verify=function(L,O,A){L=s(L),O=this.makeSignature(O);var E=this.keyFromPublic(A),k=this.hashInt(O.Rencoded(),E.pubBytes(),L),w=this.g.mul(O.S());return O.R().add(E.pub().mul(k)).eq(w)},N.prototype.hashInt=function(){for(var L=this.hash(),O=0;O<arguments.length;O++)L.update(arguments[O]);return v.intFromLE(L.digest()).umod(this.curve.n)},N.prototype.keyFromPublic=function(L){return M.fromPublic(this,L)},N.prototype.keyFromSecret=function(L){return M.fromSecret(this,L)},N.prototype.makeSignature=function(L){return L instanceof c?L:new c(this,L)},N.prototype.encodePoint=function(L){var O=L.getY().toArray("le",this.encodingLength);return O[this.encodingLength-1]|=L.getX().isOdd()?128:0,O},N.prototype.decodePoint=function(L){var O=(L=v.parseBytes(L)).length-1,A=L.slice(0,O).concat(-129&L[O]),E=0!=(128&L[O]),k=v.intFromLE(A);return this.curve.pointFromY(k,E)},N.prototype.encodeInt=function(L){return L.toArray("le",this.encodingLength)},N.prototype.decodeInt=function(L){return v.intFromLE(L)},N.prototype.isPoint=function(L){return L instanceof this.pointClass}},7535:(Ze,K,m)=>{"use strict";var e=m(1970),t=e.assert,v=e.parseBytes,C=e.cachedProperty;function s(M,c){this.eddsa=M,this._secret=v(c.secret),M.isPoint(c.pub)?this._pub=c.pub:this._pubBytes=v(c.pub)}s.fromPublic=function(c,N){return N instanceof s?N:new s(c,{pub:N})},s.fromSecret=function(c,N){return N instanceof s?N:new s(c,{secret:N})},s.prototype.secret=function(){return this._secret},C(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),C(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),C(s,"privBytes",function(){var c=this.eddsa,N=this.hash(),o=c.encodingLength-1,L=N.slice(0,c.encodingLength);return L[0]&=248,L[o]&=127,L[o]|=64,L}),C(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),C(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),C(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(c){return t(this._secret,"KeyPair can only verify"),this.eddsa.sign(c,this)},s.prototype.verify=function(c,N){return this.eddsa.verify(c,N,this)},s.prototype.getSecret=function(c){return t(this._secret,"KeyPair is public only"),e.encode(this.secret(),c)},s.prototype.getPublic=function(c){return e.encode(this.pubBytes(),c)},Ze.exports=s},8241:(Ze,K,m)=>{"use strict";var e=m(7433),t=m(1970),v=t.assert,C=t.cachedProperty,s=t.parseBytes;function M(c,N){this.eddsa=c,"object"!=typeof N&&(N=s(N)),Array.isArray(N)&&(N={R:N.slice(0,c.encodingLength),S:N.slice(c.encodingLength)}),v(N.R&&N.S,"Signature without R or S"),c.isPoint(N.R)&&(this._R=N.R),N.S instanceof e&&(this._S=N.S),this._Rencoded=Array.isArray(N.R)?N.R:N.Rencoded,this._Sencoded=Array.isArray(N.S)?N.S:N.Sencoded}C(M,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),C(M,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),C(M,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),C(M,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),M.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},M.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},Ze.exports=M},5150:Ze=>{Ze.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},1970:(Ze,K,m)=>{"use strict";var e=K,t=m(7433),v=m(2391),C=m(8195);e.assert=v,e.toArray=C.toArray,e.zero2=C.zero2,e.toHex=C.toHex,e.encode=C.encode,e.getNAF=function(L,O,A){var E=new Array(Math.max(L.bitLength(),A)+1);E.fill(0);for(var k=1<<O+1,w=L.clone(),V=0;V<E.length;V++){var W,j=w.andln(k-1);w.isOdd()?w.isubn(W=j>(k>>1)-1?(k>>1)-j:j):W=0,E[V]=W,w.iushrn(1)}return E},e.getJSF=function(L,O){var A=[[],[]];L=L.clone(),O=O.clone();for(var w,E=0,k=0;L.cmpn(-E)>0||O.cmpn(-k)>0;){var j,$,V=L.andln(3)+E&3,W=O.andln(3)+k&3;3===V&&(V=-1),3===W&&(W=-1),j=0==(1&V)?0:3!=(w=L.andln(7)+E&7)&&5!==w||2!==W?V:-V,A[0].push(j),$=0==(1&W)?0:3!=(w=O.andln(7)+k&7)&&5!==w||2!==V?W:-W,A[1].push($),2*E===j+1&&(E=1-E),2*k===$+1&&(k=1-k),L.iushrn(1),O.iushrn(1)}return A},e.cachedProperty=function(L,O,A){var E="_"+O;L.prototype[O]=function(){return void 0!==this[E]?this[E]:this[E]=A.call(this)}},e.parseBytes=function(L){return"string"==typeof L?e.toArray(L,"hex"):L},e.intFromLE=function(L){return new t(L,"hex","le")}},7433:function(Ze,K,m){!function(e,t){"use strict";function v(y,i){if(!y)throw new Error(i||"Assertion failed")}function C(y,i){y.super_=i;var a=function(){};a.prototype=i.prototype,y.prototype=new a,y.prototype.constructor=y}function s(y,i,a){if(s.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,null!==y&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(y||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(5568).Buffer}catch(y){}function c(y,i){var a=y.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(y,i,a){var p=c(y,a);return a-1>=i&&(p|=c(y,a-1)<<4),p}function o(y,i,a,p){for(var u=0,_=Math.min(y.length,a),D=i;D<_;D++){var I=y.charCodeAt(D)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),v(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u<i.length&&(16===a?this._parseHex(i,u,p):(this._parseBase(i,a,u),"le"===p&&this._initArray(this.toArray(),a,p)))},s.prototype._initNumber=function(i,a,p){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(v(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===p&&this._initArray(this.toArray(),a,p)},s.prototype._initArray=function(i,a,p){if(v("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var _,D,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=D>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(D=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=D>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},s.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var I,_=0,D=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=N(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=N(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;this.strip()},s.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,I=D%u,x=Math.min(D,D-I)+p,r=0,b=p;b<x;b+=u)r=o(i,b,b+u,a),this.imuln(_),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(0!==I){var Z=1;for(r=o(i,b,i.length,a),b=0;b<I;b++)Z*=a;this.imuln(Z),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},s.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var L=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],O=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(y,i,a){a.negative=i.negative^y.negative;var p=y.length+i.length|0;a.length=p,p=p-1|0;var u=0|y.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r<p;r++){for(var b=x>>>26,Z=67108863&x,P=Math.min(r,i.length-1),U=Math.max(0,r-y.length+1);U<=P;U++)b+=(D=(u=0|y.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D<this.length;D++){var I=this.words[D],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=O[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var P=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?P+p:L[r-P.length]+P+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}v(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return v(void 0!==M),this.toArrayLike(M,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);v(u<=_,"byte array longer than desired length"),v(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,I=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[_-r-1]=x}return I},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var p=this._zeroBits(this.words[a]);if(i+=p,26!==p)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return v(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;p<a.length;p++)this.words[p]=this.words[p]&i.words[p];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return v(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;u<p.length;u++)this.words[u]=a.words[u]^p.words[u];if(this!==a)for(;u<a.length;u++)this.words[u]=a.words[u];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return v(0==(this.negative|i.negative)),this.iuxor(i)},s.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){v("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u<a;u++)this.words[u]=67108863&~this.words[u];return p>0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){v("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<<u:this.words[p]&~(1<<u),this.strip()},s.prototype.iadd=function(i){var a,p,u;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D<u.length;D++)this.words[D]=67108863&(a=(0|p.words[D])+(0|u.words[D])+_),_=a>>>26;for(;0!==_&&D<p.length;D++)this.words[D]=67108863&(a=(0|p.words[D])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;D<p.length;D++)this.words[D]=p.words[D];return this},s.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,I=0;I<_.length;I++)D=(a=(0|u.words[I])-(0|_.words[I])+D)>>26,this.words[I]=67108863&a;for(;0!==D&&I<u.length;I++)D=(a=(0|u.words[I])+D)>>26,this.words[I]=67108863&a;if(0===D&&I<u.length&&u!==this)for(;I<u.length;I++)this.words[I]=u.words[I];return this.length=Math.max(this.length,I),u!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,a,p){var x,r,b,u=i.words,_=a.words,D=p.words,I=0,Z=0|u[0],P=8191&Z,U=Z>>>13,ye=0|u[1],xe=8191&ye,Ne=ye>>>13,Be=0|u[2],Oe=8191&Be,B=Be>>>13,Me=0|u[3],we=8191&Me,ae=Me>>>13,We=0|u[4],vt=8191&We,Pe=We>>>13,Ve=0|u[5],he=8191&Ve,Ee=Ve>>>13,ke=0|u[6],q=8191&ke,J=ke>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,ht=0|u[8],it=8191&ht,ft=ht>>>13,nt=0|u[9],st=8191&nt,wt=nt>>>13,Bt=0|_[0],Pt=8191&Bt,Vt=Bt>>>13,Oi=0|_[1],jt=8191&Oi,ti=Oi>>>13,Pi=0|_[2],si=8191&Pi,di=Pi>>>13,ze=0|_[3],Te=8191&ze,Y=ze>>>13,ge=0|_[4],Ae=8191&ge,et=ge>>>13,$t=0|_[5],Nt=8191&$t,Xt=$t>>>13,lt=0|_[6],Re=8191&lt,Fe=lt>>>13,rt=0|_[7],ot=8191&rt,At=rt>>>13,li=0|_[8],Ut=8191&li,Ft=li>>>13,Si=0|_[9],ai=8191&Si,ci=Si>>>13;p.negative=i.negative^a.negative,p.length=19;var rn=(I+(x=Math.imul(P,Pt))|0)+((8191&(r=(r=Math.imul(P,Vt))+Math.imul(U,Pt)|0))<<13)|0;I=((b=Math.imul(U,Vt))+(r>>>13)|0)+(rn>>>26)|0,rn&=67108863,x=Math.imul(xe,Pt),r=(r=Math.imul(xe,Vt))+Math.imul(Ne,Pt)|0,b=Math.imul(Ne,Vt);var Vi=(I+(x=x+Math.imul(P,jt)|0)|0)+((8191&(r=(r=r+Math.imul(P,ti)|0)+Math.imul(U,jt)|0))<<13)|0;I=((b=b+Math.imul(U,ti)|0)+(r>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,x=Math.imul(Oe,Pt),r=(r=Math.imul(Oe,Vt))+Math.imul(B,Pt)|0,b=Math.imul(B,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ti)|0)+Math.imul(Ne,jt)|0,b=b+Math.imul(Ne,ti)|0;var Di=(I+(x=x+Math.imul(P,si)|0)|0)+((8191&(r=(r=r+Math.imul(P,di)|0)+Math.imul(U,si)|0))<<13)|0;I=((b=b+Math.imul(U,di)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Pt),r=(r=Math.imul(we,Vt))+Math.imul(ae,Pt)|0,b=Math.imul(ae,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ti)|0)+Math.imul(B,jt)|0,b=b+Math.imul(B,ti)|0,x=x+Math.imul(xe,si)|0,r=(r=r+Math.imul(xe,di)|0)+Math.imul(Ne,si)|0,b=b+Math.imul(Ne,di)|0;var Xi=(I+(x=x+Math.imul(P,Te)|0)|0)+((8191&(r=(r=r+Math.imul(P,Y)|0)+Math.imul(U,Te)|0))<<13)|0;I=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Pt),r=(r=Math.imul(vt,Vt))+Math.imul(Pe,Pt)|0,b=Math.imul(Pe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ti)|0)+Math.imul(ae,jt)|0,b=b+Math.imul(ae,ti)|0,x=x+Math.imul(Oe,si)|0,r=(r=r+Math.imul(Oe,di)|0)+Math.imul(B,si)|0,b=b+Math.imul(B,di)|0,x=x+Math.imul(xe,Te)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ne,Te)|0,b=b+Math.imul(Ne,Y)|0;var Ke=(I+(x=x+Math.imul(P,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(P,et)|0)+Math.imul(U,Ae)|0))<<13)|0;I=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Pt),r=(r=Math.imul(he,Vt))+Math.imul(Ee,Pt)|0,b=Math.imul(Ee,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ti)|0)+Math.imul(Pe,jt)|0,b=b+Math.imul(Pe,ti)|0,x=x+Math.imul(we,si)|0,r=(r=r+Math.imul(we,di)|0)+Math.imul(ae,si)|0,b=b+Math.imul(ae,di)|0,x=x+Math.imul(Oe,Te)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(B,Te)|0,b=b+Math.imul(B,Y)|0,x=x+Math.imul(xe,Ae)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ne,Ae)|0,b=b+Math.imul(Ne,et)|0;var mt=(I+(x=x+Math.imul(P,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(P,Xt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((b=b+Math.imul(U,Xt)|0)+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(q,Pt),r=(r=Math.imul(q,Vt))+Math.imul(J,Pt)|0,b=Math.imul(J,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ti)|0)+Math.imul(Ee,jt)|0,b=b+Math.imul(Ee,ti)|0,x=x+Math.imul(vt,si)|0,r=(r=r+Math.imul(vt,di)|0)+Math.imul(Pe,si)|0,b=b+Math.imul(Pe,di)|0,x=x+Math.imul(we,Te)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(ae,Te)|0,b=b+Math.imul(ae,Y)|0,x=x+Math.imul(Oe,Ae)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(B,Ae)|0,b=b+Math.imul(B,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Xt)|0)+Math.imul(Ne,Nt)|0,b=b+Math.imul(Ne,Xt)|0;var ve=(I+(x=x+Math.imul(P,Re)|0)|0)+((8191&(r=(r=r+Math.imul(P,Fe)|0)+Math.imul(U,Re)|0))<<13)|0;I=((b=b+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(Ce,Pt),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Pt)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ti)|0)+Math.imul(J,jt)|0,b=b+Math.imul(J,ti)|0,x=x+Math.imul(he,si)|0,r=(r=r+Math.imul(he,di)|0)+Math.imul(Ee,si)|0,b=b+Math.imul(Ee,di)|0,x=x+Math.imul(vt,Te)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Pe,Te)|0,b=b+Math.imul(Pe,Y)|0,x=x+Math.imul(we,Ae)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(ae,Ae)|0,b=b+Math.imul(ae,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Xt)|0)+Math.imul(B,Nt)|0,b=b+Math.imul(B,Xt)|0,x=x+Math.imul(xe,Re)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ne,Re)|0,b=b+Math.imul(Ne,Fe)|0;var qe=(I+(x=x+Math.imul(P,ot)|0)|0)+((8191&(r=(r=r+Math.imul(P,At)|0)+Math.imul(U,ot)|0))<<13)|0;I=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(it,Pt),r=(r=Math.imul(it,Vt))+Math.imul(ft,Pt)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ti)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ti)|0,x=x+Math.imul(q,si)|0,r=(r=r+Math.imul(q,di)|0)+Math.imul(J,si)|0,b=b+Math.imul(J,di)|0,x=x+Math.imul(he,Te)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Ee,Te)|0,b=b+Math.imul(Ee,Y)|0,x=x+Math.imul(vt,Ae)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Pe,Ae)|0,b=b+Math.imul(Pe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Xt)|0)+Math.imul(ae,Nt)|0,b=b+Math.imul(ae,Xt)|0,x=x+Math.imul(Oe,Re)|0,r=(r=r+Math.imul(Oe,Fe)|0)+Math.imul(B,Re)|0,b=b+Math.imul(B,Fe)|0,x=x+Math.imul(xe,ot)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ne,ot)|0,b=b+Math.imul(Ne,At)|0;var _t=(I+(x=x+Math.imul(P,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(P,Ft)|0)+Math.imul(U,Ut)|0))<<13)|0;I=((b=b+Math.imul(U,Ft)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(st,Pt),r=(r=Math.imul(st,Vt))+Math.imul(wt,Pt)|0,b=Math.imul(wt,Vt),x=x+Math.imul(it,jt)|0,r=(r=r+Math.imul(it,ti)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ti)|0,x=x+Math.imul(Ce,si)|0,r=(r=r+Math.imul(Ce,di)|0)+Math.imul(Ue,si)|0,b=b+Math.imul(Ue,di)|0,x=x+Math.imul(q,Te)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul(J,Te)|0,b=b+Math.imul(J,Y)|0,x=x+Math.imul(he,Ae)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Ee,Ae)|0,b=b+Math.imul(Ee,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Xt)|0)+Math.imul(Pe,Nt)|0,b=b+Math.imul(Pe,Xt)|0,x=x+Math.imul(we,Re)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(ae,Re)|0,b=b+Math.imul(ae,Fe)|0,x=x+Math.imul(Oe,ot)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(B,ot)|0,b=b+Math.imul(B,At)|0,x=x+Math.imul(xe,Ut)|0,r=(r=r+Math.imul(xe,Ft)|0)+Math.imul(Ne,Ut)|0,b=b+Math.imul(Ne,Ft)|0;var ue=(I+(x=x+Math.imul(P,ai)|0)|0)+((8191&(r=(r=r+Math.imul(P,ci)|0)+Math.imul(U,ai)|0))<<13)|0;I=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(st,jt),r=(r=Math.imul(st,ti))+Math.imul(wt,jt)|0,b=Math.imul(wt,ti),x=x+Math.imul(it,si)|0,r=(r=r+Math.imul(it,di)|0)+Math.imul(ft,si)|0,b=b+Math.imul(ft,di)|0,x=x+Math.imul(Ce,Te)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Te)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,Ae)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul(J,Ae)|0,b=b+Math.imul(J,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Xt)|0)+Math.imul(Ee,Nt)|0,b=b+Math.imul(Ee,Xt)|0,x=x+Math.imul(vt,Re)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Pe,Re)|0,b=b+Math.imul(Pe,Fe)|0,x=x+Math.imul(we,ot)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(ae,ot)|0,b=b+Math.imul(ae,At)|0,x=x+Math.imul(Oe,Ut)|0,r=(r=r+Math.imul(Oe,Ft)|0)+Math.imul(B,Ut)|0,b=b+Math.imul(B,Ft)|0;var $e=(I+(x=x+Math.imul(xe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ne,ai)|0))<<13)|0;I=((b=b+Math.imul(Ne,ci)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,x=Math.imul(st,si),r=(r=Math.imul(st,di))+Math.imul(wt,si)|0,b=Math.imul(wt,di),x=x+Math.imul(it,Te)|0,r=(r=r+Math.imul(it,Y)|0)+Math.imul(ft,Te)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,Ae)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,Ae)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Xt)|0)+Math.imul(J,Nt)|0,b=b+Math.imul(J,Xt)|0,x=x+Math.imul(he,Re)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Ee,Re)|0,b=b+Math.imul(Ee,Fe)|0,x=x+Math.imul(vt,ot)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Pe,ot)|0,b=b+Math.imul(Pe,At)|0,x=x+Math.imul(we,Ut)|0,r=(r=r+Math.imul(we,Ft)|0)+Math.imul(ae,Ut)|0,b=b+Math.imul(ae,Ft)|0;var St=(I+(x=x+Math.imul(Oe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(B,ai)|0))<<13)|0;I=((b=b+Math.imul(B,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(st,Te),r=(r=Math.imul(st,Y))+Math.imul(wt,Te)|0,b=Math.imul(wt,Y),x=x+Math.imul(it,Ae)|0,r=(r=r+Math.imul(it,et)|0)+Math.imul(ft,Ae)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Xt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Xt)|0,x=x+Math.imul(q,Re)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul(J,Re)|0,b=b+Math.imul(J,Fe)|0,x=x+Math.imul(he,ot)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Ee,ot)|0,b=b+Math.imul(Ee,At)|0,x=x+Math.imul(vt,Ut)|0,r=(r=r+Math.imul(vt,Ft)|0)+Math.imul(Pe,Ut)|0,b=b+Math.imul(Pe,Ft)|0;var Rt=(I+(x=x+Math.imul(we,ai)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(ae,ai)|0))<<13)|0;I=((b=b+Math.imul(ae,ci)|0)+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,x=Math.imul(st,Ae),r=(r=Math.imul(st,et))+Math.imul(wt,Ae)|0,b=Math.imul(wt,et),x=x+Math.imul(it,Nt)|0,r=(r=r+Math.imul(it,Xt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Xt)|0,x=x+Math.imul(Ce,Re)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Ue,Re)|0,b=b+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,ot)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul(J,ot)|0,b=b+Math.imul(J,At)|0,x=x+Math.imul(he,Ut)|0,r=(r=r+Math.imul(he,Ft)|0)+Math.imul(Ee,Ut)|0,b=b+Math.imul(Ee,Ft)|0;var yi=(I+(x=x+Math.imul(vt,ai)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Pe,ai)|0))<<13)|0;I=((b=b+Math.imul(Pe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(st,Nt),r=(r=Math.imul(st,Xt))+Math.imul(wt,Nt)|0,b=Math.imul(wt,Xt),x=x+Math.imul(it,Re)|0,r=(r=r+Math.imul(it,Fe)|0)+Math.imul(ft,Re)|0,b=b+Math.imul(ft,Fe)|0,x=x+Math.imul(Ce,ot)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,ot)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Ut)|0,r=(r=r+Math.imul(q,Ft)|0)+Math.imul(J,Ut)|0,b=b+Math.imul(J,Ft)|0;var Ri=(I+(x=x+Math.imul(he,ai)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Ee,ai)|0))<<13)|0;I=((b=b+Math.imul(Ee,ci)|0)+(r>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,x=Math.imul(st,Re),r=(r=Math.imul(st,Fe))+Math.imul(wt,Re)|0,b=Math.imul(wt,Fe),x=x+Math.imul(it,ot)|0,r=(r=r+Math.imul(it,At)|0)+Math.imul(ft,ot)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Ut)|0,r=(r=r+Math.imul(Ce,Ft)|0)+Math.imul(Ue,Ut)|0,b=b+Math.imul(Ue,Ft)|0;var Ii=(I+(x=x+Math.imul(q,ai)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul(J,ai)|0))<<13)|0;I=((b=b+Math.imul(J,ci)|0)+(r>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,x=Math.imul(st,ot),r=(r=Math.imul(st,At))+Math.imul(wt,ot)|0,b=Math.imul(wt,At),x=x+Math.imul(it,Ut)|0,r=(r=r+Math.imul(it,Ft)|0)+Math.imul(ft,Ut)|0,b=b+Math.imul(ft,Ft)|0;var Ki=(I+(x=x+Math.imul(Ce,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,ai)|0))<<13)|0;I=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,x=Math.imul(st,Ut),r=(r=Math.imul(st,Ft))+Math.imul(wt,Ut)|0,b=Math.imul(wt,Ft);var at=(I+(x=x+Math.imul(it,ai)|0)|0)+((8191&(r=(r=r+Math.imul(it,ci)|0)+Math.imul(ft,ai)|0))<<13)|0;I=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(at>>>26)|0,at&=67108863;var Qt=(I+(x=Math.imul(st,ai))|0)+((8191&(r=(r=Math.imul(st,ci))+Math.imul(wt,ai)|0))<<13)|0;return I=((b=Math.imul(wt,ci))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,D[0]=rn,D[1]=Vi,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=mt,D[6]=ve,D[7]=qe,D[8]=_t,D[9]=ue,D[10]=$e,D[11]=St,D[12]=Rt,D[13]=yi,D[14]=Ri,D[15]=Ii,D[16]=Ki,D[17]=at,D[18]=Qt,0!==I&&(D[19]=I,p.length++),p};function W(y,i,a){return(new j).mulp(y,i,a)}function j(y,i){this.x=y,this.y=i}Math.imul||(w=k),s.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?k(this,i,a):u<1024?function(y,i,a){a.negative=i.negative^y.negative,a.length=y.length+i.length;for(var p=0,u=0,_=0;_<a.length-1;_++){var D=u;u=0;for(var I=67108863&p,x=Math.min(_,i.length-1),r=Math.max(0,_-y.length+1);r<=x;r++){var U=(0|y.words[_-r])*(0|i.words[r]),ye=67108863&U;I=67108863&(ye=ye+I|0),u+=(D=(D=D+(U/67108864|0)|0)+(ye>>>26)|0)>>>26,D&=67108863}a.words[_]=I,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):W(this,i,a),p},j.prototype.makeRBT=function(i){for(var a=new Array(i),p=s.prototype._countBits(i)-1,u=0;u<i;u++)a[u]=this.revBin(u,p,i);return a},j.prototype.revBin=function(i,a,p){if(0===i||i===p-1)return i;for(var u=0,_=0;_<a;_++)u|=(1&i)<<a-_-1,i>>=1;return u},j.prototype.permute=function(i,a,p,u,_,D){for(var I=0;I<D;I++)u[I]=a[i[I]],_[I]=p[i[I]]},j.prototype.transform=function(i,a,p,u,_,D){this.permute(D,i,a,p,u,_);for(var I=1;I<_;I<<=1)for(var x=I<<1,r=Math.cos(2*Math.PI/x),b=Math.sin(2*Math.PI/x),Z=0;Z<_;Z+=x)for(var P=r,U=b,ye=0;ye<I;ye++){var xe=p[Z+ye],Ne=u[Z+ye],Be=p[Z+ye+I],Oe=u[Z+ye+I],B=P*Be-U*Oe;Oe=P*Oe+U*Be,p[Z+ye]=xe+(Be=B),u[Z+ye]=Ne+Oe,p[Z+ye+I]=xe-Be,u[Z+ye+I]=Ne-Oe,ye!==x&&(B=r*P-b*U,U=r*U+b*P,P=B)}},j.prototype.guessLen13b=function(i,a){var p=1|Math.max(a,i),u=1&p,_=0;for(p=p/2|0;p;p>>>=1)_++;return 1<<_+1+u},j.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u<p/2;u++){var _=i[u];i[u]=i[p-u-1],i[p-u-1]=_,_=a[u],a[u]=-a[p-u-1],a[p-u-1]=-_}},j.prototype.normalize13b=function(i,a){for(var p=0,u=0;u<a/2;u++){var _=8192*Math.round(i[2*u+1]/a)+Math.round(i[2*u]/a)+p;i[u]=67108863&_,p=_<67108864?0:_/67108864|0}return i},j.prototype.convert13b=function(i,a,p,u){for(var _=0,D=0;D<a;D++)p[2*D]=8191&(_+=0|i[D]),p[2*D+1]=8191&(_>>>=13),_>>>=13;for(D=2*a;D<u;++D)p[D]=0;v(0===_),v(0==(-8192&_))},j.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},j.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),D=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),b=new Array(u),Z=new Array(u),P=new Array(u),U=p.words;U.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,b,u),this.transform(I,D,x,r,u,_),this.transform(b,D,Z,P,u,_);for(var ye=0;ye<u;ye++){var xe=x[ye]*Z[ye]-r[ye]*P[ye];r[ye]=x[ye]*P[ye]+r[ye]*Z[ye],x[ye]=xe}return this.conjugate(x,r,u),this.transform(x,r,U,D,u,_),this.conjugate(U,D,u),this.normalize13b(U,u),p.negative=i.negative^a.negative,p.length=i.length+a.length,p.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),W(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){v("number"==typeof i),v(i<67108864);for(var a=0,p=0;p<this.length;p++){var u=(0|this.words[p])*i,_=(67108863&u)+(67108863&a);a>>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function(y){for(var i=new Array(y.bitLength()),a=0;a<i.length;a++){var u=a%26;i[a]=(y.words[a/26|0]&1<<u)>>>u}return i}(i);if(0===a.length)return new s(1);for(var p=this,u=0;u<a.length&&0===a[u];u++,p=p.sqr());if(++u<a.length)for(var _=p.sqr();u<a.length;u++,_=_.sqr())0!==a[u]&&(p=p.mul(_));return p},s.prototype.iushln=function(i){v("number"==typeof i&&i>=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|D,D=I>>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_<p;_++)this.words[_]=0;this.length+=p}return this.strip()},s.prototype.ishln=function(i){return v(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,p){var u;v("number"==typeof i&&i>=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;r<D;r++)x.words[r]=this.words[r];x.length=D}if(0!==D)if(this.length>D)for(this.length-=D,r=0;r<this.length;r++)this.words[r]=this.words[r+D];else this.words[0]=0,this.length=1;var b=0;for(r=this.length-1;r>=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&I}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,p){return v(0===this.negative),this.iushrn(i,a,p)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<<a))},s.prototype.imaskn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return v("number"==typeof i),v(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},s.prototype.isubn=function(i){if(v("number"==typeof i),v(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,p){var _;this._expand(i.length+p);var D,I=0;for(_=0;_<i.length;_++){D=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((D-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_<this.length-p;_++)I=(D=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&D;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_<this.length;_++)I=(D=-(0|this.words[_])+I)>>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new s(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b<r.length;b++)r.words[b]=0}var Z=u.clone()._ishlnsubmul(_,1,x);0===Z.negative&&(u=Z,r&&(r.words[x]=1));for(var P=x-1;P>=0;P--){var U=67108864*(0|u.words[_.length+P])+(0|u.words[_.length+P-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,P);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,P),u.isZero()||(u.negative^=1);r&&(r.words[P]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},s.prototype.divmod=function(i,a,p){return v(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){v(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},s.prototype.idivn=function(i){v(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){v(0===i.negative),v(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),D=new s(0),I=new s(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,P=1;0==(a.words[0]&P)&&Z<26;++Z,P<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||I.isOdd())&&(D.iadd(r),I.isub(b)),D.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(I)):(p.isub(a),D.isub(u),I.isub(_))}return{a:D,b:I,gcd:p.iushln(x)}},s.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){v("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<<a;if(this.length<=p)return this._expand(p+1),this.words[p]|=u,this;for(var _=u,D=p;0!==_&&D<this.length;D++){var I=0|this.words[D];_=(I+=_)>>>26,this.words[D]=I&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),v(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:u<i?-1:1}return 0!==this.negative?0|-p:p},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,p=this.length-1;p>=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new re(i)},s.prototype.toRed=function(i){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return v(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return v(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var $={k256:null,p224:null,p192:null,p25519:null};function ee(y,i){this.name=y,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function le(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function te(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function re(y){if("string"==typeof y){var i=s._prime(y);this.m=i.p,this.prime=i}else v(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function pe(y){re.call(this,y),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ee.prototype._tmp=function(){var i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p<this.n?-1:a.ucmp(this.p);return 0===u?(a.words[0]=0,a.length=1):u>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(me,ee),me.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_<u;_++)a.words[_]=i.words[_];if(a.length=u,i.length<=9)return i.words[0]=0,void(i.length=1);var D=i.words[9];for(a.words[a.length++]=D&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|D>>>22,D=I}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p<i.length;p++){var u=0|i.words[p];i.words[p]=67108863&(a+=977*u),a=64*u+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ce,ee),C(le,ee),C(te,ee),te.prototype.imulK=function(i){for(var a=0,p=0;p<i.length;p++){var u=19*(0|i.words[p])+a,_=67108863&u;u>>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if($[i])return $[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new ce;else if("p192"===i)a=new le;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new te}return $[i]=a,a},re.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},re.prototype._verify2=function(i,a){v(0==(i.negative|a.negative),"red works only with positives"),v(i.red&&i.red===a.red,"red works only with red numbers")},re.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},re.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},re.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},re.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},re.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},re.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},re.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},re.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},re.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},re.prototype.isqr=function(i){return this.imul(i,i.clone())},re.prototype.sqr=function(i){return this.mul(i,i)},re.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(v(a%2==1),3===a){var p=this.m.add(new s(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);v(!u.isZero());var D=new s(1).toRed(this),I=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new s(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),P=this.pow(i,u),U=_;0!==P.cmp(D);){for(var ye=P,xe=0;0!==ye.cmp(D);xe++)ye=ye.redSqr();v(xe<U);var Ne=this.pow(b,new s(1).iushln(U-xe-1));Z=Z.redMul(Ne),b=Ne.redSqr(),P=P.redMul(b),U=xe}return Z},re.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},re.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var u=new Array(16);u[0]=new s(1).toRed(this),u[1]=i;for(var _=2;_<u.length;_++)u[_]=this.mul(u[_-1],i);var D=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var P=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==P||0!==I?(I<<=1,I|=P,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[I]),x=0,I=0)):x=0}r=26}return D},re.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},re.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new pe(i)},C(pe,re),pe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},pe.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},pe.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},pe.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},pe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ze=m.nmd(Ze),this)},8419:Ze=>{"use strict";Ze.exports=function(m){for(var e=[],t=m.length,v=0;v<t;v++){var C=m.charCodeAt(v);if(C>=55296&&C<=56319&&t>v+1){var s=m.charCodeAt(v+1);s>=56320&&s<=57343&&(C=1024*(C-55296)+s-56320+65536,v+=1)}C<128?e.push(C):C<2048?(e.push(C>>6|192),e.push(63&C|128)):C<55296||C>=57344&&C<65536?(e.push(C>>12|224),e.push(C>>6&63|128),e.push(63&C|128)):C>=65536&&C<=1114111?(e.push(C>>18|240),e.push(C>>12&63|128),e.push(C>>6&63|128),e.push(63&C|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},9069:Ze=>{"use strict";var e,K="object"==typeof Reflect?Reflect:null,m=K&&"function"==typeof K.apply?K.apply:function(ee,me,ce){return Function.prototype.apply.call(ee,me,ce)};e=K&&"function"==typeof K.ownKeys?K.ownKeys:Object.getOwnPropertySymbols?function(ee){return Object.getOwnPropertyNames(ee).concat(Object.getOwnPropertySymbols(ee))}:function(ee){return Object.getOwnPropertyNames(ee)};var v=Number.isNaN||function(ee){return ee!=ee};function C(){C.init.call(this)}Ze.exports=C,Ze.exports.once=function($,ee){return new Promise(function(me,ce){function le(re){$.removeListener(ee,te),ce(re)}function te(){"function"==typeof $.removeListener&&$.removeListener("error",le),me([].slice.call(arguments))}j($,ee,te,{once:!0}),"error"!==ee&&function($,ee,me){"function"==typeof $.on&&j($,"error",ee,{once:!0})}($,le)})},C.EventEmitter=C,C.prototype._events=void 0,C.prototype._eventsCount=0,C.prototype._maxListeners=void 0;var s=10;function M($){if("function"!=typeof $)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof $)}function c($){return void 0===$._maxListeners?C.defaultMaxListeners:$._maxListeners}function N($,ee,me,ce){var le,te,re;if(M(me),void 0===(te=$._events)?(te=$._events=Object.create(null),$._eventsCount=0):(void 0!==te.newListener&&($.emit("newListener",ee,me.listener?me.listener:me),te=$._events),re=te[ee]),void 0===re)re=te[ee]=me,++$._eventsCount;else if("function"==typeof re?re=te[ee]=ce?[me,re]:[re,me]:ce?re.unshift(me):re.push(me),(le=c($))>0&&re.length>le&&!re.warned){re.warned=!0;var pe=new Error("Possible EventEmitter memory leak detected. "+re.length+" "+String(ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");pe.name="MaxListenersExceededWarning",pe.emitter=$,pe.type=ee,pe.count=re.length,function($){console&&console.warn&&console.warn($)}(pe)}return $}function o(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function L($,ee,me){var ce={fired:!1,wrapFn:void 0,target:$,type:ee,listener:me},le=o.bind(ce);return le.listener=me,ce.wrapFn=le,le}function O($,ee,me){var ce=$._events;if(void 0===ce)return[];var le=ce[ee];return void 0===le?[]:"function"==typeof le?me?[le.listener||le]:[le]:me?function($){for(var ee=new Array($.length),me=0;me<ee.length;++me)ee[me]=$[me].listener||$[me];return ee}(le):E(le,le.length)}function A($){var ee=this._events;if(void 0!==ee){var me=ee[$];if("function"==typeof me)return 1;if(void 0!==me)return me.length}return 0}function E($,ee){for(var me=new Array(ee),ce=0;ce<ee;++ce)me[ce]=$[ce];return me}function j($,ee,me,ce){if("function"==typeof $.on)ce.once?$.once(ee,me):$.on(ee,me);else{if("function"!=typeof $.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof $);$.addEventListener(ee,function le(te){ce.once&&$.removeEventListener(ee,le),me(te)})}}Object.defineProperty(C,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function($){if("number"!=typeof $||$<0||v($))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+$+".");s=$}}),C.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},C.prototype.setMaxListeners=function(ee){if("number"!=typeof ee||ee<0||v(ee))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ee+".");return this._maxListeners=ee,this},C.prototype.getMaxListeners=function(){return c(this)},C.prototype.emit=function(ee){for(var me=[],ce=1;ce<arguments.length;ce++)me.push(arguments[ce]);var le="error"===ee,te=this._events;if(void 0!==te)le=le&&void 0===te.error;else if(!le)return!1;if(le){var re;if(me.length>0&&(re=me[0]),re instanceof Error)throw re;var pe=new Error("Unhandled error."+(re?" ("+re.message+")":""));throw pe.context=re,pe}var y=te[ee];if(void 0===y)return!1;if("function"==typeof y)m(y,this,me);else{var i=y.length,a=E(y,i);for(ce=0;ce<i;++ce)m(a[ce],this,me)}return!0},C.prototype.on=C.prototype.addListener=function(ee,me){return N(this,ee,me,!1)},C.prototype.prependListener=function(ee,me){return N(this,ee,me,!0)},C.prototype.once=function(ee,me){return M(me),this.on(ee,L(this,ee,me)),this},C.prototype.prependOnceListener=function(ee,me){return M(me),this.prependListener(ee,L(this,ee,me)),this},C.prototype.off=C.prototype.removeListener=function(ee,me){var ce,le,te,re,pe;if(M(me),void 0===(le=this._events))return this;if(void 0===(ce=le[ee]))return this;if(ce===me||ce.listener===me)0==--this._eventsCount?this._events=Object.create(null):(delete le[ee],le.removeListener&&this.emit("removeListener",ee,ce.listener||me));else if("function"!=typeof ce){for(te=-1,re=ce.length-1;re>=0;re--)if(ce[re]===me||ce[re].listener===me){pe=ce[re].listener,te=re;break}if(te<0)return this;0===te?ce.shift():function($,ee){for(;ee+1<$.length;ee++)$[ee]=$[ee+1];$.pop()}(ce,te),1===ce.length&&(le[ee]=ce[0]),void 0!==le.removeListener&&this.emit("removeListener",ee,pe||me)}return this},C.prototype.removeAllListeners=function(ee){var me,ce,le;if(void 0===(ce=this._events))return this;if(void 0===ce.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==ce[ee]&&(0==--this._eventsCount?this._events=Object.create(null):delete ce[ee]),this;if(0===arguments.length){var re,te=Object.keys(ce);for(le=0;le<te.length;++le)"removeListener"!==(re=te[le])&&this.removeAllListeners(re);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(me=ce[ee]))this.removeListener(ee,me);else if(void 0!==me)for(le=me.length-1;le>=0;le--)this.removeListener(ee,me[le]);return this},C.prototype.listeners=function(ee){return O(this,ee,!0)},C.prototype.rawListeners=function(ee){return O(this,ee,!1)},C.listenerCount=function($,ee){return"function"==typeof $.listenerCount?$.listenerCount(ee):A.call($,ee)},C.prototype.listenerCount=A,C.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},347:(Ze,K,m)=>{var e=m(3502).Buffer,t=m(8095);Ze.exports=function(C,s,M,c){if(e.isBuffer(C)||(C=e.from(C,"binary")),s&&(e.isBuffer(s)||(s=e.from(s,"binary")),8!==s.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var N=M/8,o=e.alloc(N),L=e.alloc(c||0),O=e.alloc(0);N>0||c>0;){var A=new t;A.update(O),A.update(C),s&&A.update(s),O=A.digest();var E=0;if(N>0){var k=o.length-N;E=Math.min(N,O.length),O.copy(o,k,0,E),N-=E}if(E<O.length&&c>0){var w=L.length-c,V=Math.min(c,O.length-E);O.copy(L,w,E,E+V),c-=V}}return O.fill(0),{key:o,iv:L}}},9650:(Ze,K,m)=>{"use strict";var e=m(8444).Buffer,t=m(5685).Transform;function s(M){t.call(this),this._block=e.allocUnsafe(M),this._blockSize=M,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}m(3894)(s,t),s.prototype._transform=function(M,c,N){var o=null;try{this.update(M,c)}catch(L){o=L}N(o)},s.prototype._flush=function(M){var c=null;try{this.push(this.digest())}catch(N){c=N}M(c)},s.prototype.update=function(M,c){if(function(M,c){if(!e.isBuffer(M)&&"string"!=typeof M)throw new TypeError("Data must be a string or a buffer")}(M),this._finalized)throw new Error("Digest already called");e.isBuffer(M)||(M=e.from(M,c));for(var N=this._block,o=0;this._blockOffset+M.length-o>=this._blockSize;){for(var L=this._blockOffset;L<this._blockSize;)N[L++]=M[o++];this._update(),this._blockOffset=0}for(;o<M.length;)N[this._blockOffset++]=M[o++];for(var O=0,A=8*M.length;A>0;++O)this._length[O]+=A,(A=this._length[O]/4294967296|0)>0&&(this._length[O]-=4294967296*A);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(M){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var c=this._digest();void 0!==M&&(c=c.toString(M)),this._block.fill(0),this._blockOffset=0;for(var N=0;N<4;++N)this._length[N]=0;return c},s.prototype._digest=function(){throw new Error("_digest is not implemented")},Ze.exports=s},8444:(Ze,K,m)=>{var e=m(3172),t=e.Buffer;function v(s,M){for(var c in s)M[c]=s[c]}function C(s,M,c){return t(s,M,c)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ze.exports=e:(v(e,K),K.Buffer=C),C.prototype=Object.create(t.prototype),v(t,C),C.from=function(s,M,c){if("number"==typeof s)throw new TypeError("Argument must not be a number");return t(s,M,c)},C.alloc=function(s,M,c){if("number"!=typeof s)throw new TypeError("Argument must be a number");var N=t(s);return void 0!==M?"string"==typeof c?N.fill(M,c):N.fill(M):N.fill(0),N},C.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t(s)},C.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e.SlowBuffer(s)}},7084:(Ze,K,m)=>{var e=K;e.utils=m(9299),e.common=m(3800),e.sha=m(4962),e.ripemd=m(9458),e.hmac=m(2194),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160},3800:(Ze,K,m)=>{"use strict";var e=m(9299),t=m(2391);function v(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}K.BlockHash=v,v.prototype.update=function(s,M){if(s=e.toArray(s,M),this.pending=this.pending?this.pending.concat(s):s,this.pendingTotal+=s.length,this.pending.length>=this._delta8){var c=(s=this.pending).length%this._delta8;this.pending=s.slice(s.length-c,s.length),0===this.pending.length&&(this.pending=null),s=e.join32(s,0,s.length-c,this.endian);for(var N=0;N<s.length;N+=this._delta32)this._update(s,N,N+this._delta32)}return this},v.prototype.digest=function(s){return this.update(this._pad()),t(null===this.pending),this._digest(s)},v.prototype._pad=function(){var s=this.pendingTotal,M=this._delta8,c=M-(s+this.padLength)%M,N=new Array(c+this.padLength);N[0]=128;for(var o=1;o<c;o++)N[o]=0;if(s<<=3,"big"===this.endian){for(var L=8;L<this.padLength;L++)N[o++]=0;N[o++]=0,N[o++]=0,N[o++]=0,N[o++]=0,N[o++]=s>>>24&255,N[o++]=s>>>16&255,N[o++]=s>>>8&255,N[o++]=255&s}else for(N[o++]=255&s,N[o++]=s>>>8&255,N[o++]=s>>>16&255,N[o++]=s>>>24&255,N[o++]=0,N[o++]=0,N[o++]=0,N[o++]=0,L=8;L<this.padLength;L++)N[o++]=0;return N}},2194:(Ze,K,m)=>{"use strict";var e=m(9299),t=m(2391);function v(C,s,M){if(!(this instanceof v))return new v(C,s,M);this.Hash=C,this.blockSize=C.blockSize/8,this.outSize=C.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(s,M))}Ze.exports=v,v.prototype._init=function(s){s.length>this.blockSize&&(s=(new this.Hash).update(s).digest()),t(s.length<=this.blockSize);for(var M=s.length;M<this.blockSize;M++)s.push(0);for(M=0;M<s.length;M++)s[M]^=54;for(this.inner=(new this.Hash).update(s),M=0;M<s.length;M++)s[M]^=106;this.outer=(new this.Hash).update(s)},v.prototype.update=function(s,M){return this.inner.update(s,M),this},v.prototype.digest=function(s){return this.outer.update(this.inner.digest()),this.outer.digest(s)}},9458:(Ze,K,m)=>{"use strict";var e=m(9299),t=m(3800),v=e.rotl32,C=e.sum32,s=e.sum32_3,M=e.sum32_4,c=t.BlockHash;function N(){if(!(this instanceof N))return new N;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function o(V,W,j,$){return V<=15?W^j^$:V<=31?W&j|~W&$:V<=47?(W|~j)^$:V<=63?W&$|j&~$:W^(j|~$)}function O(V){return V<=15?1352829926:V<=31?1548603684:V<=47?1836072691:V<=63?2053994217:0}e.inherits(N,c),K.ripemd160=N,N.blockSize=512,N.outSize=160,N.hmacStrength=192,N.padLength=64,N.prototype._update=function(W,j){for(var $=this.h[0],ee=this.h[1],me=this.h[2],ce=this.h[3],le=this.h[4],te=$,re=ee,pe=me,y=ce,i=le,a=0;a<80;a++){var p=C(v(M($,o(a,ee,me,ce),W[A[a]+j],(V=a)<=15?0:V<=31?1518500249:V<=47?1859775393:V<=63?2400959708:2840853838),k[a]),le);$=le,le=ce,ce=v(me,10),me=ee,ee=p,p=C(v(M(te,o(79-a,re,pe,y),W[E[a]+j],O(a)),w[a]),i),te=i,i=y,y=v(pe,10),pe=re,re=p}var V;p=s(this.h[1],me,y),this.h[1]=s(this.h[2],ce,i),this.h[2]=s(this.h[3],le,te),this.h[3]=s(this.h[4],$,re),this.h[4]=s(this.h[0],ee,pe),this.h[0]=p},N.prototype._digest=function(W){return"hex"===W?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var A=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],E=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],k=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],w=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},4962:(Ze,K,m)=>{"use strict";K.sha1=m(9007),K.sha224=m(55),K.sha256=m(9342),K.sha384=m(8634),K.sha512=m(39)},9007:(Ze,K,m)=>{"use strict";var e=m(9299),t=m(3800),v=m(3113),C=e.rotl32,s=e.sum32,M=e.sum32_5,c=v.ft_1,N=t.BlockHash,o=[1518500249,1859775393,2400959708,3395469782];function L(){if(!(this instanceof L))return new L;N.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}e.inherits(L,N),Ze.exports=L,L.blockSize=512,L.outSize=160,L.hmacStrength=80,L.padLength=64,L.prototype._update=function(A,E){for(var k=this.W,w=0;w<16;w++)k[w]=A[E+w];for(;w<k.length;w++)k[w]=C(k[w-3]^k[w-8]^k[w-14]^k[w-16],1);var V=this.h[0],W=this.h[1],j=this.h[2],$=this.h[3],ee=this.h[4];for(w=0;w<k.length;w++){var me=~~(w/20),ce=M(C(V,5),c(me,W,j,$),ee,k[w],o[me]);ee=$,$=j,j=C(W,30),W=V,V=ce}this.h[0]=s(this.h[0],V),this.h[1]=s(this.h[1],W),this.h[2]=s(this.h[2],j),this.h[3]=s(this.h[3],$),this.h[4]=s(this.h[4],ee)},L.prototype._digest=function(A){return"hex"===A?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},55:(Ze,K,m)=>{"use strict";var e=m(9299),t=m(9342);function v(){if(!(this instanceof v))return new v;t.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}e.inherits(v,t),Ze.exports=v,v.blockSize=512,v.outSize=224,v.hmacStrength=192,v.padLength=64,v.prototype._digest=function(s){return"hex"===s?e.toHex32(this.h.slice(0,7),"big"):e.split32(this.h.slice(0,7),"big")}},9342:(Ze,K,m)=>{"use strict";var e=m(9299),t=m(3800),v=m(3113),C=m(2391),s=e.sum32,M=e.sum32_4,c=e.sum32_5,N=v.ch32,o=v.maj32,L=v.s0_256,O=v.s1_256,A=v.g0_256,E=v.g1_256,k=t.BlockHash,w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function V(){if(!(this instanceof V))return new V;k.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}e.inherits(V,k),Ze.exports=V,V.blockSize=512,V.outSize=256,V.hmacStrength=192,V.padLength=64,V.prototype._update=function(j,$){for(var ee=this.W,me=0;me<16;me++)ee[me]=j[$+me];for(;me<ee.length;me++)ee[me]=M(E(ee[me-2]),ee[me-7],A(ee[me-15]),ee[me-16]);var ce=this.h[0],le=this.h[1],te=this.h[2],re=this.h[3],pe=this.h[4],y=this.h[5],i=this.h[6],a=this.h[7];for(C(this.k.length===ee.length),me=0;me<ee.length;me++){var p=c(a,O(pe),N(pe,y,i),this.k[me],ee[me]),u=s(L(ce),o(ce,le,te));a=i,i=y,y=pe,pe=s(re,p),re=te,te=le,le=ce,ce=s(p,u)}this.h[0]=s(this.h[0],ce),this.h[1]=s(this.h[1],le),this.h[2]=s(this.h[2],te),this.h[3]=s(this.h[3],re),this.h[4]=s(this.h[4],pe),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],i),this.h[7]=s(this.h[7],a)},V.prototype._digest=function(j){return"hex"===j?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},8634:(Ze,K,m)=>{"use strict";var e=m(9299),t=m(39);function v(){if(!(this instanceof v))return new v;t.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}e.inherits(v,t),Ze.exports=v,v.blockSize=1024,v.outSize=384,v.hmacStrength=192,v.padLength=128,v.prototype._digest=function(s){return"hex"===s?e.toHex32(this.h.slice(0,12),"big"):e.split32(this.h.slice(0,12),"big")}},39:(Ze,K,m)=>{"use strict";var e=m(9299),t=m(3800),v=m(2391),C=e.rotr64_hi,s=e.rotr64_lo,M=e.shr64_hi,c=e.shr64_lo,N=e.sum64,o=e.sum64_hi,L=e.sum64_lo,O=e.sum64_4_hi,A=e.sum64_4_lo,E=e.sum64_5_hi,k=e.sum64_5_lo,w=t.BlockHash,V=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function W(){if(!(this instanceof W))return new W;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=V,this.W=new Array(160)}function j(p,u,_,D,I){var x=p&_^~p&I;return x<0&&(x+=4294967296),x}function $(p,u,_,D,I,x){var r=u&D^~u&x;return r<0&&(r+=4294967296),r}function ee(p,u,_,D,I){var x=p&_^p&I^_&I;return x<0&&(x+=4294967296),x}function me(p,u,_,D,I,x){var r=u&D^u&x^D&x;return r<0&&(r+=4294967296),r}function ce(p,u){var x=C(p,u,28)^C(u,p,2)^C(u,p,7);return x<0&&(x+=4294967296),x}function le(p,u){var x=s(p,u,28)^s(u,p,2)^s(u,p,7);return x<0&&(x+=4294967296),x}function te(p,u){var x=C(p,u,14)^C(p,u,18)^C(u,p,9);return x<0&&(x+=4294967296),x}function re(p,u){var x=s(p,u,14)^s(p,u,18)^s(u,p,9);return x<0&&(x+=4294967296),x}function pe(p,u){var x=C(p,u,1)^C(p,u,8)^M(p,u,7);return x<0&&(x+=4294967296),x}function y(p,u){var x=s(p,u,1)^s(p,u,8)^c(p,u,7);return x<0&&(x+=4294967296),x}function i(p,u){var x=C(p,u,19)^C(u,p,29)^M(p,u,6);return x<0&&(x+=4294967296),x}function a(p,u){var x=s(p,u,19)^s(u,p,29)^c(p,u,6);return x<0&&(x+=4294967296),x}e.inherits(W,w),Ze.exports=W,W.blockSize=1024,W.outSize=512,W.hmacStrength=192,W.padLength=128,W.prototype._prepareBlock=function(u,_){for(var D=this.W,I=0;I<32;I++)D[I]=u[_+I];for(;I<D.length;I+=2){var x=i(D[I-4],D[I-3]),r=a(D[I-4],D[I-3]),b=D[I-14],Z=D[I-13],P=pe(D[I-30],D[I-29]),U=y(D[I-30],D[I-29]),ye=D[I-32],xe=D[I-31];D[I]=O(x,r,b,Z,P,U,ye,xe),D[I+1]=A(x,r,b,Z,P,U,ye,xe)}},W.prototype._update=function(u,_){this._prepareBlock(u,_);var D=this.W,I=this.h[0],x=this.h[1],r=this.h[2],b=this.h[3],Z=this.h[4],P=this.h[5],U=this.h[6],ye=this.h[7],xe=this.h[8],Ne=this.h[9],Be=this.h[10],Oe=this.h[11],B=this.h[12],Me=this.h[13],we=this.h[14],ae=this.h[15];v(this.k.length===D.length);for(var We=0;We<D.length;We+=2){var vt=we,Pe=ae,Ve=te(xe,Ne),he=re(xe,Ne),Ee=j(xe,0,Be,0,B),ke=$(0,Ne,0,Oe,0,Me),q=this.k[We],J=this.k[We+1],oe=D[We],Ce=D[We+1],Ue=E(vt,Pe,Ve,he,Ee,ke,q,J,oe,Ce),ht=k(vt,Pe,Ve,he,Ee,ke,q,J,oe,Ce);vt=ce(I,x),Pe=le(I,x),Ve=ee(I,0,r,0,Z),he=me(0,x,0,b,0,P);var it=o(vt,Pe,Ve,he),ft=L(vt,Pe,Ve,he);we=B,ae=Me,B=Be,Me=Oe,Be=xe,Oe=Ne,xe=o(U,ye,Ue,ht),Ne=L(ye,ye,Ue,ht),U=Z,ye=P,Z=r,P=b,r=I,b=x,I=o(Ue,ht,it,ft),x=L(Ue,ht,it,ft)}N(this.h,0,I,x),N(this.h,2,r,b),N(this.h,4,Z,P),N(this.h,6,U,ye),N(this.h,8,xe,Ne),N(this.h,10,Be,Oe),N(this.h,12,B,Me),N(this.h,14,we,ae)},W.prototype._digest=function(u){return"hex"===u?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},3113:(Ze,K,m)=>{"use strict";var t=m(9299).rotr32;function C(O,A,E){return O&A^~O&E}function s(O,A,E){return O&A^O&E^A&E}function M(O,A,E){return O^A^E}K.ft_1=function(O,A,E,k){return 0===O?C(A,E,k):1===O||3===O?M(A,E,k):2===O?s(A,E,k):void 0},K.ch32=C,K.maj32=s,K.p32=M,K.s0_256=function(O){return t(O,2)^t(O,13)^t(O,22)},K.s1_256=function(O){return t(O,6)^t(O,11)^t(O,25)},K.g0_256=function(O){return t(O,7)^t(O,18)^O>>>3},K.g1_256=function(O){return t(O,17)^t(O,19)^O>>>10}},9299:(Ze,K,m)=>{"use strict";var e=m(2391),t=m(3894);function v(a,p){return!(55296!=(64512&a.charCodeAt(p))||p<0||p+1>=a.length)&&56320==(64512&a.charCodeAt(p+1))}function M(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(255&a)<<24)>>>0}function N(a){return 1===a.length?"0"+a:a}function o(a){return 7===a.length?"0"+a:6===a.length?"00"+a:5===a.length?"000"+a:4===a.length?"0000"+a:3===a.length?"00000"+a:2===a.length?"000000"+a:1===a.length?"0000000"+a:a}K.inherits=t,K.toArray=function(a,p){if(Array.isArray(a))return a.slice();if(!a)return[];var u=[];if("string"==typeof a)if(p){if("hex"===p)for((a=a.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(a="0"+a),D=0;D<a.length;D+=2)u.push(parseInt(a[D]+a[D+1],16))}else for(var _=0,D=0;D<a.length;D++){var I=a.charCodeAt(D);I<128?u[_++]=I:I<2048?(u[_++]=I>>6|192,u[_++]=63&I|128):v(a,D)?(I=65536+((1023&I)<<10)+(1023&a.charCodeAt(++D)),u[_++]=I>>18|240,u[_++]=I>>12&63|128,u[_++]=I>>6&63|128,u[_++]=63&I|128):(u[_++]=I>>12|224,u[_++]=I>>6&63|128,u[_++]=63&I|128)}else for(D=0;D<a.length;D++)u[D]=0|a[D];return u},K.toHex=function(a){for(var p="",u=0;u<a.length;u++)p+=N(a[u].toString(16));return p},K.htonl=M,K.toHex32=function(a,p){for(var u="",_=0;_<a.length;_++){var D=a[_];"little"===p&&(D=M(D)),u+=o(D.toString(16))}return u},K.zero2=N,K.zero8=o,K.join32=function(a,p,u,_){var D=u-p;e(D%4==0);for(var I=new Array(D/4),x=0,r=p;x<I.length;x++,r+=4)I[x]=("big"===_?a[r]<<24|a[r+1]<<16|a[r+2]<<8|a[r+3]:a[r+3]<<24|a[r+2]<<16|a[r+1]<<8|a[r])>>>0;return I},K.split32=function(a,p){for(var u=new Array(4*a.length),_=0,D=0;_<a.length;_++,D+=4){var I=a[_];"big"===p?(u[D]=I>>>24,u[D+1]=I>>>16&255,u[D+2]=I>>>8&255,u[D+3]=255&I):(u[D+3]=I>>>24,u[D+2]=I>>>16&255,u[D+1]=I>>>8&255,u[D]=255&I)}return u},K.rotr32=function(a,p){return a>>>p|a<<32-p},K.rotl32=function(a,p){return a<<p|a>>>32-p},K.sum32=function(a,p){return a+p>>>0},K.sum32_3=function(a,p,u){return a+p+u>>>0},K.sum32_4=function(a,p,u,_){return a+p+u+_>>>0},K.sum32_5=function(a,p,u,_,D){return a+p+u+_+D>>>0},K.sum64=function(a,p,u,_){var x=_+a[p+1]>>>0;a[p]=(x<_?1:0)+u+a[p]>>>0,a[p+1]=x},K.sum64_hi=function(a,p,u,_){return(p+_>>>0<p?1:0)+a+u>>>0},K.sum64_lo=function(a,p,u,_){return p+_>>>0},K.sum64_4_hi=function(a,p,u,_,D,I,x,r){var b=0,Z=p;return b+=(Z=Z+_>>>0)<p?1:0,b+=(Z=Z+I>>>0)<I?1:0,a+u+D+x+(b+=(Z=Z+r>>>0)<r?1:0)>>>0},K.sum64_4_lo=function(a,p,u,_,D,I,x,r){return p+_+I+r>>>0},K.sum64_5_hi=function(a,p,u,_,D,I,x,r,b,Z){var P=0,U=p;return P+=(U=U+_>>>0)<p?1:0,P+=(U=U+I>>>0)<I?1:0,P+=(U=U+r>>>0)<r?1:0,a+u+D+x+b+(P+=(U=U+Z>>>0)<Z?1:0)>>>0},K.sum64_5_lo=function(a,p,u,_,D,I,x,r,b,Z){return p+_+I+r+Z>>>0},K.rotr64_hi=function(a,p,u){return(p<<32-u|a>>>u)>>>0},K.rotr64_lo=function(a,p,u){return(a<<32-u|p>>>u)>>>0},K.shr64_hi=function(a,p,u){return a>>>u},K.shr64_lo=function(a,p,u){return(a<<32-u|p>>>u)>>>0}},2438:(Ze,K,m)=>{"use strict";var e=m(7084),t=m(8195),v=m(2391);function C(s){if(!(this instanceof C))return new C(s);this.hash=s.hash,this.predResist=!!s.predResist,this.outLen=this.hash.outSize,this.minEntropy=s.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var M=t.toArray(s.entropy,s.entropyEnc||"hex"),c=t.toArray(s.nonce,s.nonceEnc||"hex"),N=t.toArray(s.pers,s.persEnc||"hex");v(M.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(M,c,N)}Ze.exports=C,C.prototype._init=function(M,c,N){var o=M.concat(c).concat(N);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var L=0;L<this.V.length;L++)this.K[L]=0,this.V[L]=1;this._update(o),this._reseed=1,this.reseedInterval=281474976710656},C.prototype._hmac=function(){return new e.hmac(this.hash,this.K)},C.prototype._update=function(M){var c=this._hmac().update(this.V).update([0]);M&&(c=c.update(M)),this.K=c.digest(),this.V=this._hmac().update(this.V).digest(),M&&(this.K=this._hmac().update(this.V).update([1]).update(M).digest(),this.V=this._hmac().update(this.V).digest())},C.prototype.reseed=function(M,c,N,o){"string"!=typeof c&&(o=N,N=c,c=null),M=t.toArray(M,c),N=t.toArray(N,o),v(M.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(M.concat(N||[])),this._reseed=1},C.prototype.generate=function(M,c,N,o){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof c&&(o=N,N=c,c=null),N&&(N=t.toArray(N,o||"hex"),this._update(N));for(var L=[];L.length<M;)this.V=this._hmac().update(this.V).digest(),L=L.concat(this.V);var O=L.slice(0,M);return this._update(N),this._reseed++,t.encode(O,c)}},8461:(Ze,K)=>{K.read=function(m,e,t,v,C){var s,M,c=8*C-v-1,N=(1<<c)-1,o=N>>1,L=-7,O=t?C-1:0,A=t?-1:1,E=m[e+O];for(O+=A,s=E&(1<<-L)-1,E>>=-L,L+=c;L>0;s=256*s+m[e+O],O+=A,L-=8);for(M=s&(1<<-L)-1,s>>=-L,L+=v;L>0;M=256*M+m[e+O],O+=A,L-=8);if(0===s)s=1-o;else{if(s===N)return M?NaN:1/0*(E?-1:1);M+=Math.pow(2,v),s-=o}return(E?-1:1)*M*Math.pow(2,s-v)},K.write=function(m,e,t,v,C,s){var M,c,N,o=8*s-C-1,L=(1<<o)-1,O=L>>1,A=23===C?Math.pow(2,-24)-Math.pow(2,-77):0,E=v?0:s-1,k=v?1:-1,w=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,M=L):(M=Math.floor(Math.log(e)/Math.LN2),e*(N=Math.pow(2,-M))<1&&(M--,N*=2),(e+=M+O>=1?A/N:A*Math.pow(2,1-O))*N>=2&&(M++,N/=2),M+O>=L?(c=0,M=L):M+O>=1?(c=(e*N-1)*Math.pow(2,C),M+=O):(c=e*Math.pow(2,O-1)*Math.pow(2,C),M=0));C>=8;m[t+E]=255&c,E+=k,c/=256,C-=8);for(M=M<<C|c,o+=C;o>0;m[t+E]=255&M,E+=k,M/=256,o-=8);m[t+E-k]|=128*w}},3894:Ze=>{Ze.exports="function"==typeof Object.create?function(m,e){e&&(m.super_=e,m.prototype=Object.create(e.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}))}:function(m,e){if(e){m.super_=e;var t=function(){};t.prototype=e.prototype,m.prototype=new t,m.prototype.constructor=m}}},717:(Ze,K,m)=>{"use strict";var e=m(623);function t(v){return!0===e(v)&&"[object Object]"===Object.prototype.toString.call(v)}Ze.exports=function(C){var s,M;return!(!1===t(C)||(s=C.constructor,"function"!=typeof s)||(M=s.prototype,!1===t(M))||!1===M.hasOwnProperty("isPrototypeOf"))}},623:Ze=>{"use strict";Ze.exports=function(m){return null!=m&&"object"==typeof m&&!1===Array.isArray(m)}},2872:Ze=>{var K=Object.prototype.toString;function m(o){return"function"==typeof o.constructor?o.constructor.name:null}Ze.exports=function(L){if(void 0===L)return"undefined";if(null===L)return"null";var O=typeof L;if("boolean"===O)return"boolean";if("string"===O)return"string";if("number"===O)return"number";if("symbol"===O)return"symbol";if("function"===O)return"GeneratorFunction"===m(L)?"generatorfunction":"function";if(function(o){return Array.isArray?Array.isArray(o):o instanceof Array}(L))return"array";if(function(o){return!(!o.constructor||"function"!=typeof o.constructor.isBuffer)&&o.constructor.isBuffer(o)}(L))return"buffer";if(function(o){try{if("number"==typeof o.length&&"function"==typeof o.callee)return!0}catch(L){if(-1!==L.message.indexOf("callee"))return!0}return!1}(L))return"arguments";if(function(o){return o instanceof Date||"function"==typeof o.toDateString&&"function"==typeof o.getDate&&"function"==typeof o.setDate}(L))return"date";if(function(o){return o instanceof Error||"string"==typeof o.message&&o.constructor&&"number"==typeof o.constructor.stackTraceLimit}(L))return"error";if(function(o){return o instanceof RegExp||"string"==typeof o.flags&&"boolean"==typeof o.ignoreCase&&"boolean"==typeof o.multiline&&"boolean"==typeof o.global}(L))return"regexp";switch(m(L)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(o){return"function"==typeof o.throw&&"function"==typeof o.return&&"function"==typeof o.next}(L))return"generator";switch(O=K.call(L)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return O.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(Ze,K,m)=>{"use strict";var e=m(3894),t=m(9650),v=m(3502).Buffer,C=new Array(16);function s(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function M(O,A){return O<<A|O>>>32-A}function c(O,A,E,k,w,V,W){return M(O+(A&E|~A&k)+w+V|0,W)+A|0}function N(O,A,E,k,w,V,W){return M(O+(A&k|E&~k)+w+V|0,W)+A|0}function o(O,A,E,k,w,V,W){return M(O+(A^E^k)+w+V|0,W)+A|0}function L(O,A,E,k,w,V,W){return M(O+(E^(A|~k))+w+V|0,W)+A|0}e(s,t),s.prototype._update=function(){for(var O=C,A=0;A<16;++A)O[A]=this._block.readInt32LE(4*A);var E=this._a,k=this._b,w=this._c,V=this._d;E=c(E,k,w,V,O[0],3614090360,7),V=c(V,E,k,w,O[1],3905402710,12),w=c(w,V,E,k,O[2],606105819,17),k=c(k,w,V,E,O[3],3250441966,22),E=c(E,k,w,V,O[4],4118548399,7),V=c(V,E,k,w,O[5],1200080426,12),w=c(w,V,E,k,O[6],2821735955,17),k=c(k,w,V,E,O[7],4249261313,22),E=c(E,k,w,V,O[8],1770035416,7),V=c(V,E,k,w,O[9],2336552879,12),w=c(w,V,E,k,O[10],4294925233,17),k=c(k,w,V,E,O[11],2304563134,22),E=c(E,k,w,V,O[12],1804603682,7),V=c(V,E,k,w,O[13],4254626195,12),w=c(w,V,E,k,O[14],2792965006,17),E=N(E,k=c(k,w,V,E,O[15],1236535329,22),w,V,O[1],4129170786,5),V=N(V,E,k,w,O[6],3225465664,9),w=N(w,V,E,k,O[11],643717713,14),k=N(k,w,V,E,O[0],3921069994,20),E=N(E,k,w,V,O[5],3593408605,5),V=N(V,E,k,w,O[10],38016083,9),w=N(w,V,E,k,O[15],3634488961,14),k=N(k,w,V,E,O[4],3889429448,20),E=N(E,k,w,V,O[9],568446438,5),V=N(V,E,k,w,O[14],3275163606,9),w=N(w,V,E,k,O[3],4107603335,14),k=N(k,w,V,E,O[8],1163531501,20),E=N(E,k,w,V,O[13],2850285829,5),V=N(V,E,k,w,O[2],4243563512,9),w=N(w,V,E,k,O[7],1735328473,14),E=o(E,k=N(k,w,V,E,O[12],2368359562,20),w,V,O[5],4294588738,4),V=o(V,E,k,w,O[8],2272392833,11),w=o(w,V,E,k,O[11],1839030562,16),k=o(k,w,V,E,O[14],4259657740,23),E=o(E,k,w,V,O[1],2763975236,4),V=o(V,E,k,w,O[4],1272893353,11),w=o(w,V,E,k,O[7],4139469664,16),k=o(k,w,V,E,O[10],3200236656,23),E=o(E,k,w,V,O[13],681279174,4),V=o(V,E,k,w,O[0],3936430074,11),w=o(w,V,E,k,O[3],3572445317,16),k=o(k,w,V,E,O[6],76029189,23),E=o(E,k,w,V,O[9],3654602809,4),V=o(V,E,k,w,O[12],3873151461,11),w=o(w,V,E,k,O[15],530742520,16),E=L(E,k=o(k,w,V,E,O[2],3299628645,23),w,V,O[0],4096336452,6),V=L(V,E,k,w,O[7],1126891415,10),w=L(w,V,E,k,O[14],2878612391,15),k=L(k,w,V,E,O[5],4237533241,21),E=L(E,k,w,V,O[12],1700485571,6),V=L(V,E,k,w,O[3],2399980690,10),w=L(w,V,E,k,O[10],4293915773,15),k=L(k,w,V,E,O[1],2240044497,21),E=L(E,k,w,V,O[8],1873313359,6),V=L(V,E,k,w,O[15],4264355552,10),w=L(w,V,E,k,O[6],2734768916,15),k=L(k,w,V,E,O[13],1309151649,21),E=L(E,k,w,V,O[4],4149444226,6),V=L(V,E,k,w,O[11],3174756917,10),w=L(w,V,E,k,O[2],718787259,15),k=L(k,w,V,E,O[9],3951481745,21),this._a=this._a+E|0,this._b=this._b+k|0,this._c=this._c+w|0,this._d=this._d+V|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var O=v.allocUnsafe(16);return O.writeInt32LE(this._a,0),O.writeInt32LE(this._b,4),O.writeInt32LE(this._c,8),O.writeInt32LE(this._d,12),O},Ze.exports=s},7079:(Ze,K,m)=>{var e=m(1378),t=m(7950);function v(C){this.rand=C||new t.Rand}Ze.exports=v,v.create=function(s){return new v(s)},v.prototype._randbelow=function(s){var M=s.bitLength(),c=Math.ceil(M/8);do{var N=new e(this.rand.generate(c))}while(N.cmp(s)>=0);return N},v.prototype._randrange=function(s,M){var c=M.sub(s);return s.add(this._randbelow(c))},v.prototype.test=function(s,M,c){var N=s.bitLength(),o=e.mont(s),L=new e(1).toRed(o);M||(M=Math.max(1,N/48|0));for(var O=s.subn(1),A=0;!O.testn(A);A++);for(var E=s.shrn(A),k=O.toRed(o);M>0;M--){var V=this._randrange(new e(2),O);c&&c(V);var W=V.toRed(o).redPow(E);if(0!==W.cmp(L)&&0!==W.cmp(k)){for(var j=1;j<A;j++){if(0===(W=W.redSqr()).cmp(L))return!1;if(0===W.cmp(k))break}if(j===A)return!1}}return!0},v.prototype.getDivisor=function(s,M){var c=s.bitLength(),N=e.mont(s),o=new e(1).toRed(N);M||(M=Math.max(1,c/48|0));for(var L=s.subn(1),O=0;!L.testn(O);O++);for(var A=s.shrn(O),E=L.toRed(N);M>0;M--){var k=this._randrange(new e(2),L),w=s.gcd(k);if(0!==w.cmpn(1))return w;var V=k.toRed(N).redPow(A);if(0!==V.cmp(o)&&0!==V.cmp(E)){for(var W=1;W<O;W++){if(0===(V=V.redSqr()).cmp(o))return V.fromRed().subn(1).gcd(s);if(0===V.cmp(E))break}if(W===O)return(V=V.redSqr()).fromRed().subn(1).gcd(s)}}return!1}},1378:function(Ze,K,m){!function(e,t){"use strict";function v(y,i){if(!y)throw new Error(i||"Assertion failed")}function C(y,i){y.super_=i;var a=function(){};a.prototype=i.prototype,y.prototype=new a,y.prototype.constructor=y}function s(y,i,a){if(s.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,null!==y&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(y||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(6619).Buffer}catch(y){}function c(y,i){var a=y.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(y,i,a){var p=c(y,a);return a-1>=i&&(p|=c(y,a-1)<<4),p}function o(y,i,a,p){for(var u=0,_=Math.min(y.length,a),D=i;D<_;D++){var I=y.charCodeAt(D)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),v(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u<i.length&&(16===a?this._parseHex(i,u,p):(this._parseBase(i,a,u),"le"===p&&this._initArray(this.toArray(),a,p)))},s.prototype._initNumber=function(i,a,p){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(v(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===p&&this._initArray(this.toArray(),a,p)},s.prototype._initArray=function(i,a,p){if(v("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var _,D,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=D>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(D=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=D>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},s.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var I,_=0,D=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=N(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=N(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;this.strip()},s.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,I=D%u,x=Math.min(D,D-I)+p,r=0,b=p;b<x;b+=u)r=o(i,b,b+u,a),this.imuln(_),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(0!==I){var Z=1;for(r=o(i,b,i.length,a),b=0;b<I;b++)Z*=a;this.imuln(Z),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},s.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var L=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],O=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(y,i,a){a.negative=i.negative^y.negative;var p=y.length+i.length|0;a.length=p,p=p-1|0;var u=0|y.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r<p;r++){for(var b=x>>>26,Z=67108863&x,P=Math.min(r,i.length-1),U=Math.max(0,r-y.length+1);U<=P;U++)b+=(D=(u=0|y.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D<this.length;D++){var I=this.words[D],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=O[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var P=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?P+p:L[r-P.length]+P+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}v(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return v(void 0!==M),this.toArrayLike(M,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);v(u<=_,"byte array longer than desired length"),v(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,I=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[_-r-1]=x}return I},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var p=this._zeroBits(this.words[a]);if(i+=p,26!==p)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return v(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;p<a.length;p++)this.words[p]=this.words[p]&i.words[p];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return v(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;u<p.length;u++)this.words[u]=a.words[u]^p.words[u];if(this!==a)for(;u<a.length;u++)this.words[u]=a.words[u];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return v(0==(this.negative|i.negative)),this.iuxor(i)},s.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){v("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u<a;u++)this.words[u]=67108863&~this.words[u];return p>0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){v("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<<u:this.words[p]&~(1<<u),this.strip()},s.prototype.iadd=function(i){var a,p,u;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D<u.length;D++)this.words[D]=67108863&(a=(0|p.words[D])+(0|u.words[D])+_),_=a>>>26;for(;0!==_&&D<p.length;D++)this.words[D]=67108863&(a=(0|p.words[D])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;D<p.length;D++)this.words[D]=p.words[D];return this},s.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,I=0;I<_.length;I++)D=(a=(0|u.words[I])-(0|_.words[I])+D)>>26,this.words[I]=67108863&a;for(;0!==D&&I<u.length;I++)D=(a=(0|u.words[I])+D)>>26,this.words[I]=67108863&a;if(0===D&&I<u.length&&u!==this)for(;I<u.length;I++)this.words[I]=u.words[I];return this.length=Math.max(this.length,I),u!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,a,p){var x,r,b,u=i.words,_=a.words,D=p.words,I=0,Z=0|u[0],P=8191&Z,U=Z>>>13,ye=0|u[1],xe=8191&ye,Ne=ye>>>13,Be=0|u[2],Oe=8191&Be,B=Be>>>13,Me=0|u[3],we=8191&Me,ae=Me>>>13,We=0|u[4],vt=8191&We,Pe=We>>>13,Ve=0|u[5],he=8191&Ve,Ee=Ve>>>13,ke=0|u[6],q=8191&ke,J=ke>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,ht=0|u[8],it=8191&ht,ft=ht>>>13,nt=0|u[9],st=8191&nt,wt=nt>>>13,Bt=0|_[0],Pt=8191&Bt,Vt=Bt>>>13,Oi=0|_[1],jt=8191&Oi,ti=Oi>>>13,Pi=0|_[2],si=8191&Pi,di=Pi>>>13,ze=0|_[3],Te=8191&ze,Y=ze>>>13,ge=0|_[4],Ae=8191&ge,et=ge>>>13,$t=0|_[5],Nt=8191&$t,Xt=$t>>>13,lt=0|_[6],Re=8191&lt,Fe=lt>>>13,rt=0|_[7],ot=8191&rt,At=rt>>>13,li=0|_[8],Ut=8191&li,Ft=li>>>13,Si=0|_[9],ai=8191&Si,ci=Si>>>13;p.negative=i.negative^a.negative,p.length=19;var rn=(I+(x=Math.imul(P,Pt))|0)+((8191&(r=(r=Math.imul(P,Vt))+Math.imul(U,Pt)|0))<<13)|0;I=((b=Math.imul(U,Vt))+(r>>>13)|0)+(rn>>>26)|0,rn&=67108863,x=Math.imul(xe,Pt),r=(r=Math.imul(xe,Vt))+Math.imul(Ne,Pt)|0,b=Math.imul(Ne,Vt);var Vi=(I+(x=x+Math.imul(P,jt)|0)|0)+((8191&(r=(r=r+Math.imul(P,ti)|0)+Math.imul(U,jt)|0))<<13)|0;I=((b=b+Math.imul(U,ti)|0)+(r>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,x=Math.imul(Oe,Pt),r=(r=Math.imul(Oe,Vt))+Math.imul(B,Pt)|0,b=Math.imul(B,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ti)|0)+Math.imul(Ne,jt)|0,b=b+Math.imul(Ne,ti)|0;var Di=(I+(x=x+Math.imul(P,si)|0)|0)+((8191&(r=(r=r+Math.imul(P,di)|0)+Math.imul(U,si)|0))<<13)|0;I=((b=b+Math.imul(U,di)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Pt),r=(r=Math.imul(we,Vt))+Math.imul(ae,Pt)|0,b=Math.imul(ae,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ti)|0)+Math.imul(B,jt)|0,b=b+Math.imul(B,ti)|0,x=x+Math.imul(xe,si)|0,r=(r=r+Math.imul(xe,di)|0)+Math.imul(Ne,si)|0,b=b+Math.imul(Ne,di)|0;var Xi=(I+(x=x+Math.imul(P,Te)|0)|0)+((8191&(r=(r=r+Math.imul(P,Y)|0)+Math.imul(U,Te)|0))<<13)|0;I=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Pt),r=(r=Math.imul(vt,Vt))+Math.imul(Pe,Pt)|0,b=Math.imul(Pe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ti)|0)+Math.imul(ae,jt)|0,b=b+Math.imul(ae,ti)|0,x=x+Math.imul(Oe,si)|0,r=(r=r+Math.imul(Oe,di)|0)+Math.imul(B,si)|0,b=b+Math.imul(B,di)|0,x=x+Math.imul(xe,Te)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ne,Te)|0,b=b+Math.imul(Ne,Y)|0;var Ke=(I+(x=x+Math.imul(P,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(P,et)|0)+Math.imul(U,Ae)|0))<<13)|0;I=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Pt),r=(r=Math.imul(he,Vt))+Math.imul(Ee,Pt)|0,b=Math.imul(Ee,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ti)|0)+Math.imul(Pe,jt)|0,b=b+Math.imul(Pe,ti)|0,x=x+Math.imul(we,si)|0,r=(r=r+Math.imul(we,di)|0)+Math.imul(ae,si)|0,b=b+Math.imul(ae,di)|0,x=x+Math.imul(Oe,Te)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(B,Te)|0,b=b+Math.imul(B,Y)|0,x=x+Math.imul(xe,Ae)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ne,Ae)|0,b=b+Math.imul(Ne,et)|0;var mt=(I+(x=x+Math.imul(P,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(P,Xt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((b=b+Math.imul(U,Xt)|0)+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(q,Pt),r=(r=Math.imul(q,Vt))+Math.imul(J,Pt)|0,b=Math.imul(J,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ti)|0)+Math.imul(Ee,jt)|0,b=b+Math.imul(Ee,ti)|0,x=x+Math.imul(vt,si)|0,r=(r=r+Math.imul(vt,di)|0)+Math.imul(Pe,si)|0,b=b+Math.imul(Pe,di)|0,x=x+Math.imul(we,Te)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(ae,Te)|0,b=b+Math.imul(ae,Y)|0,x=x+Math.imul(Oe,Ae)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(B,Ae)|0,b=b+Math.imul(B,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Xt)|0)+Math.imul(Ne,Nt)|0,b=b+Math.imul(Ne,Xt)|0;var ve=(I+(x=x+Math.imul(P,Re)|0)|0)+((8191&(r=(r=r+Math.imul(P,Fe)|0)+Math.imul(U,Re)|0))<<13)|0;I=((b=b+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(Ce,Pt),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Pt)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ti)|0)+Math.imul(J,jt)|0,b=b+Math.imul(J,ti)|0,x=x+Math.imul(he,si)|0,r=(r=r+Math.imul(he,di)|0)+Math.imul(Ee,si)|0,b=b+Math.imul(Ee,di)|0,x=x+Math.imul(vt,Te)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Pe,Te)|0,b=b+Math.imul(Pe,Y)|0,x=x+Math.imul(we,Ae)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(ae,Ae)|0,b=b+Math.imul(ae,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Xt)|0)+Math.imul(B,Nt)|0,b=b+Math.imul(B,Xt)|0,x=x+Math.imul(xe,Re)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ne,Re)|0,b=b+Math.imul(Ne,Fe)|0;var qe=(I+(x=x+Math.imul(P,ot)|0)|0)+((8191&(r=(r=r+Math.imul(P,At)|0)+Math.imul(U,ot)|0))<<13)|0;I=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(it,Pt),r=(r=Math.imul(it,Vt))+Math.imul(ft,Pt)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ti)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ti)|0,x=x+Math.imul(q,si)|0,r=(r=r+Math.imul(q,di)|0)+Math.imul(J,si)|0,b=b+Math.imul(J,di)|0,x=x+Math.imul(he,Te)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Ee,Te)|0,b=b+Math.imul(Ee,Y)|0,x=x+Math.imul(vt,Ae)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Pe,Ae)|0,b=b+Math.imul(Pe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Xt)|0)+Math.imul(ae,Nt)|0,b=b+Math.imul(ae,Xt)|0,x=x+Math.imul(Oe,Re)|0,r=(r=r+Math.imul(Oe,Fe)|0)+Math.imul(B,Re)|0,b=b+Math.imul(B,Fe)|0,x=x+Math.imul(xe,ot)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ne,ot)|0,b=b+Math.imul(Ne,At)|0;var _t=(I+(x=x+Math.imul(P,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(P,Ft)|0)+Math.imul(U,Ut)|0))<<13)|0;I=((b=b+Math.imul(U,Ft)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(st,Pt),r=(r=Math.imul(st,Vt))+Math.imul(wt,Pt)|0,b=Math.imul(wt,Vt),x=x+Math.imul(it,jt)|0,r=(r=r+Math.imul(it,ti)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ti)|0,x=x+Math.imul(Ce,si)|0,r=(r=r+Math.imul(Ce,di)|0)+Math.imul(Ue,si)|0,b=b+Math.imul(Ue,di)|0,x=x+Math.imul(q,Te)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul(J,Te)|0,b=b+Math.imul(J,Y)|0,x=x+Math.imul(he,Ae)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Ee,Ae)|0,b=b+Math.imul(Ee,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Xt)|0)+Math.imul(Pe,Nt)|0,b=b+Math.imul(Pe,Xt)|0,x=x+Math.imul(we,Re)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(ae,Re)|0,b=b+Math.imul(ae,Fe)|0,x=x+Math.imul(Oe,ot)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(B,ot)|0,b=b+Math.imul(B,At)|0,x=x+Math.imul(xe,Ut)|0,r=(r=r+Math.imul(xe,Ft)|0)+Math.imul(Ne,Ut)|0,b=b+Math.imul(Ne,Ft)|0;var ue=(I+(x=x+Math.imul(P,ai)|0)|0)+((8191&(r=(r=r+Math.imul(P,ci)|0)+Math.imul(U,ai)|0))<<13)|0;I=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(st,jt),r=(r=Math.imul(st,ti))+Math.imul(wt,jt)|0,b=Math.imul(wt,ti),x=x+Math.imul(it,si)|0,r=(r=r+Math.imul(it,di)|0)+Math.imul(ft,si)|0,b=b+Math.imul(ft,di)|0,x=x+Math.imul(Ce,Te)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Te)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,Ae)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul(J,Ae)|0,b=b+Math.imul(J,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Xt)|0)+Math.imul(Ee,Nt)|0,b=b+Math.imul(Ee,Xt)|0,x=x+Math.imul(vt,Re)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Pe,Re)|0,b=b+Math.imul(Pe,Fe)|0,x=x+Math.imul(we,ot)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(ae,ot)|0,b=b+Math.imul(ae,At)|0,x=x+Math.imul(Oe,Ut)|0,r=(r=r+Math.imul(Oe,Ft)|0)+Math.imul(B,Ut)|0,b=b+Math.imul(B,Ft)|0;var $e=(I+(x=x+Math.imul(xe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ne,ai)|0))<<13)|0;I=((b=b+Math.imul(Ne,ci)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,x=Math.imul(st,si),r=(r=Math.imul(st,di))+Math.imul(wt,si)|0,b=Math.imul(wt,di),x=x+Math.imul(it,Te)|0,r=(r=r+Math.imul(it,Y)|0)+Math.imul(ft,Te)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,Ae)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,Ae)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Xt)|0)+Math.imul(J,Nt)|0,b=b+Math.imul(J,Xt)|0,x=x+Math.imul(he,Re)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Ee,Re)|0,b=b+Math.imul(Ee,Fe)|0,x=x+Math.imul(vt,ot)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Pe,ot)|0,b=b+Math.imul(Pe,At)|0,x=x+Math.imul(we,Ut)|0,r=(r=r+Math.imul(we,Ft)|0)+Math.imul(ae,Ut)|0,b=b+Math.imul(ae,Ft)|0;var St=(I+(x=x+Math.imul(Oe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(B,ai)|0))<<13)|0;I=((b=b+Math.imul(B,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(st,Te),r=(r=Math.imul(st,Y))+Math.imul(wt,Te)|0,b=Math.imul(wt,Y),x=x+Math.imul(it,Ae)|0,r=(r=r+Math.imul(it,et)|0)+Math.imul(ft,Ae)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Xt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Xt)|0,x=x+Math.imul(q,Re)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul(J,Re)|0,b=b+Math.imul(J,Fe)|0,x=x+Math.imul(he,ot)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Ee,ot)|0,b=b+Math.imul(Ee,At)|0,x=x+Math.imul(vt,Ut)|0,r=(r=r+Math.imul(vt,Ft)|0)+Math.imul(Pe,Ut)|0,b=b+Math.imul(Pe,Ft)|0;var Rt=(I+(x=x+Math.imul(we,ai)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(ae,ai)|0))<<13)|0;I=((b=b+Math.imul(ae,ci)|0)+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,x=Math.imul(st,Ae),r=(r=Math.imul(st,et))+Math.imul(wt,Ae)|0,b=Math.imul(wt,et),x=x+Math.imul(it,Nt)|0,r=(r=r+Math.imul(it,Xt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Xt)|0,x=x+Math.imul(Ce,Re)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Ue,Re)|0,b=b+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,ot)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul(J,ot)|0,b=b+Math.imul(J,At)|0,x=x+Math.imul(he,Ut)|0,r=(r=r+Math.imul(he,Ft)|0)+Math.imul(Ee,Ut)|0,b=b+Math.imul(Ee,Ft)|0;var yi=(I+(x=x+Math.imul(vt,ai)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Pe,ai)|0))<<13)|0;I=((b=b+Math.imul(Pe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(st,Nt),r=(r=Math.imul(st,Xt))+Math.imul(wt,Nt)|0,b=Math.imul(wt,Xt),x=x+Math.imul(it,Re)|0,r=(r=r+Math.imul(it,Fe)|0)+Math.imul(ft,Re)|0,b=b+Math.imul(ft,Fe)|0,x=x+Math.imul(Ce,ot)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,ot)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Ut)|0,r=(r=r+Math.imul(q,Ft)|0)+Math.imul(J,Ut)|0,b=b+Math.imul(J,Ft)|0;var Ri=(I+(x=x+Math.imul(he,ai)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Ee,ai)|0))<<13)|0;I=((b=b+Math.imul(Ee,ci)|0)+(r>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,x=Math.imul(st,Re),r=(r=Math.imul(st,Fe))+Math.imul(wt,Re)|0,b=Math.imul(wt,Fe),x=x+Math.imul(it,ot)|0,r=(r=r+Math.imul(it,At)|0)+Math.imul(ft,ot)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Ut)|0,r=(r=r+Math.imul(Ce,Ft)|0)+Math.imul(Ue,Ut)|0,b=b+Math.imul(Ue,Ft)|0;var Ii=(I+(x=x+Math.imul(q,ai)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul(J,ai)|0))<<13)|0;I=((b=b+Math.imul(J,ci)|0)+(r>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,x=Math.imul(st,ot),r=(r=Math.imul(st,At))+Math.imul(wt,ot)|0,b=Math.imul(wt,At),x=x+Math.imul(it,Ut)|0,r=(r=r+Math.imul(it,Ft)|0)+Math.imul(ft,Ut)|0,b=b+Math.imul(ft,Ft)|0;var Ki=(I+(x=x+Math.imul(Ce,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,ai)|0))<<13)|0;I=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,x=Math.imul(st,Ut),r=(r=Math.imul(st,Ft))+Math.imul(wt,Ut)|0,b=Math.imul(wt,Ft);var at=(I+(x=x+Math.imul(it,ai)|0)|0)+((8191&(r=(r=r+Math.imul(it,ci)|0)+Math.imul(ft,ai)|0))<<13)|0;I=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(at>>>26)|0,at&=67108863;var Qt=(I+(x=Math.imul(st,ai))|0)+((8191&(r=(r=Math.imul(st,ci))+Math.imul(wt,ai)|0))<<13)|0;return I=((b=Math.imul(wt,ci))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,D[0]=rn,D[1]=Vi,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=mt,D[6]=ve,D[7]=qe,D[8]=_t,D[9]=ue,D[10]=$e,D[11]=St,D[12]=Rt,D[13]=yi,D[14]=Ri,D[15]=Ii,D[16]=Ki,D[17]=at,D[18]=Qt,0!==I&&(D[19]=I,p.length++),p};function W(y,i,a){return(new j).mulp(y,i,a)}function j(y,i){this.x=y,this.y=i}Math.imul||(w=k),s.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?k(this,i,a):u<1024?function(y,i,a){a.negative=i.negative^y.negative,a.length=y.length+i.length;for(var p=0,u=0,_=0;_<a.length-1;_++){var D=u;u=0;for(var I=67108863&p,x=Math.min(_,i.length-1),r=Math.max(0,_-y.length+1);r<=x;r++){var U=(0|y.words[_-r])*(0|i.words[r]),ye=67108863&U;I=67108863&(ye=ye+I|0),u+=(D=(D=D+(U/67108864|0)|0)+(ye>>>26)|0)>>>26,D&=67108863}a.words[_]=I,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):W(this,i,a),p},j.prototype.makeRBT=function(i){for(var a=new Array(i),p=s.prototype._countBits(i)-1,u=0;u<i;u++)a[u]=this.revBin(u,p,i);return a},j.prototype.revBin=function(i,a,p){if(0===i||i===p-1)return i;for(var u=0,_=0;_<a;_++)u|=(1&i)<<a-_-1,i>>=1;return u},j.prototype.permute=function(i,a,p,u,_,D){for(var I=0;I<D;I++)u[I]=a[i[I]],_[I]=p[i[I]]},j.prototype.transform=function(i,a,p,u,_,D){this.permute(D,i,a,p,u,_);for(var I=1;I<_;I<<=1)for(var x=I<<1,r=Math.cos(2*Math.PI/x),b=Math.sin(2*Math.PI/x),Z=0;Z<_;Z+=x)for(var P=r,U=b,ye=0;ye<I;ye++){var xe=p[Z+ye],Ne=u[Z+ye],Be=p[Z+ye+I],Oe=u[Z+ye+I],B=P*Be-U*Oe;Oe=P*Oe+U*Be,p[Z+ye]=xe+(Be=B),u[Z+ye]=Ne+Oe,p[Z+ye+I]=xe-Be,u[Z+ye+I]=Ne-Oe,ye!==x&&(B=r*P-b*U,U=r*U+b*P,P=B)}},j.prototype.guessLen13b=function(i,a){var p=1|Math.max(a,i),u=1&p,_=0;for(p=p/2|0;p;p>>>=1)_++;return 1<<_+1+u},j.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u<p/2;u++){var _=i[u];i[u]=i[p-u-1],i[p-u-1]=_,_=a[u],a[u]=-a[p-u-1],a[p-u-1]=-_}},j.prototype.normalize13b=function(i,a){for(var p=0,u=0;u<a/2;u++){var _=8192*Math.round(i[2*u+1]/a)+Math.round(i[2*u]/a)+p;i[u]=67108863&_,p=_<67108864?0:_/67108864|0}return i},j.prototype.convert13b=function(i,a,p,u){for(var _=0,D=0;D<a;D++)p[2*D]=8191&(_+=0|i[D]),p[2*D+1]=8191&(_>>>=13),_>>>=13;for(D=2*a;D<u;++D)p[D]=0;v(0===_),v(0==(-8192&_))},j.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},j.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),D=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),b=new Array(u),Z=new Array(u),P=new Array(u),U=p.words;U.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,b,u),this.transform(I,D,x,r,u,_),this.transform(b,D,Z,P,u,_);for(var ye=0;ye<u;ye++){var xe=x[ye]*Z[ye]-r[ye]*P[ye];r[ye]=x[ye]*P[ye]+r[ye]*Z[ye],x[ye]=xe}return this.conjugate(x,r,u),this.transform(x,r,U,D,u,_),this.conjugate(U,D,u),this.normalize13b(U,u),p.negative=i.negative^a.negative,p.length=i.length+a.length,p.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),W(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){v("number"==typeof i),v(i<67108864);for(var a=0,p=0;p<this.length;p++){var u=(0|this.words[p])*i,_=(67108863&u)+(67108863&a);a>>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function(y){for(var i=new Array(y.bitLength()),a=0;a<i.length;a++){var u=a%26;i[a]=(y.words[a/26|0]&1<<u)>>>u}return i}(i);if(0===a.length)return new s(1);for(var p=this,u=0;u<a.length&&0===a[u];u++,p=p.sqr());if(++u<a.length)for(var _=p.sqr();u<a.length;u++,_=_.sqr())0!==a[u]&&(p=p.mul(_));return p},s.prototype.iushln=function(i){v("number"==typeof i&&i>=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|D,D=I>>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_<p;_++)this.words[_]=0;this.length+=p}return this.strip()},s.prototype.ishln=function(i){return v(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,p){var u;v("number"==typeof i&&i>=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;r<D;r++)x.words[r]=this.words[r];x.length=D}if(0!==D)if(this.length>D)for(this.length-=D,r=0;r<this.length;r++)this.words[r]=this.words[r+D];else this.words[0]=0,this.length=1;var b=0;for(r=this.length-1;r>=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&I}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,p){return v(0===this.negative),this.iushrn(i,a,p)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<<a))},s.prototype.imaskn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return v("number"==typeof i),v(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},s.prototype.isubn=function(i){if(v("number"==typeof i),v(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,p){var _;this._expand(i.length+p);var D,I=0;for(_=0;_<i.length;_++){D=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((D-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_<this.length-p;_++)I=(D=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&D;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_<this.length;_++)I=(D=-(0|this.words[_])+I)>>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new s(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b<r.length;b++)r.words[b]=0}var Z=u.clone()._ishlnsubmul(_,1,x);0===Z.negative&&(u=Z,r&&(r.words[x]=1));for(var P=x-1;P>=0;P--){var U=67108864*(0|u.words[_.length+P])+(0|u.words[_.length+P-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,P);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,P),u.isZero()||(u.negative^=1);r&&(r.words[P]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},s.prototype.divmod=function(i,a,p){return v(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){v(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},s.prototype.idivn=function(i){v(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){v(0===i.negative),v(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),D=new s(0),I=new s(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,P=1;0==(a.words[0]&P)&&Z<26;++Z,P<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||I.isOdd())&&(D.iadd(r),I.isub(b)),D.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(I)):(p.isub(a),D.isub(u),I.isub(_))}return{a:D,b:I,gcd:p.iushln(x)}},s.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){v("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<<a;if(this.length<=p)return this._expand(p+1),this.words[p]|=u,this;for(var _=u,D=p;0!==_&&D<this.length;D++){var I=0|this.words[D];_=(I+=_)>>>26,this.words[D]=I&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),v(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:u<i?-1:1}return 0!==this.negative?0|-p:p},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,p=this.length-1;p>=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new re(i)},s.prototype.toRed=function(i){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return v(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return v(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var $={k256:null,p224:null,p192:null,p25519:null};function ee(y,i){this.name=y,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function le(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function te(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function re(y){if("string"==typeof y){var i=s._prime(y);this.m=i.p,this.prime=i}else v(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function pe(y){re.call(this,y),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ee.prototype._tmp=function(){var i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p<this.n?-1:a.ucmp(this.p);return 0===u?(a.words[0]=0,a.length=1):u>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(me,ee),me.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_<u;_++)a.words[_]=i.words[_];if(a.length=u,i.length<=9)return i.words[0]=0,void(i.length=1);var D=i.words[9];for(a.words[a.length++]=D&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|D>>>22,D=I}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p<i.length;p++){var u=0|i.words[p];i.words[p]=67108863&(a+=977*u),a=64*u+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ce,ee),C(le,ee),C(te,ee),te.prototype.imulK=function(i){for(var a=0,p=0;p<i.length;p++){var u=19*(0|i.words[p])+a,_=67108863&u;u>>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if($[i])return $[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new ce;else if("p192"===i)a=new le;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new te}return $[i]=a,a},re.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},re.prototype._verify2=function(i,a){v(0==(i.negative|a.negative),"red works only with positives"),v(i.red&&i.red===a.red,"red works only with red numbers")},re.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},re.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},re.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},re.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},re.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},re.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},re.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},re.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},re.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},re.prototype.isqr=function(i){return this.imul(i,i.clone())},re.prototype.sqr=function(i){return this.mul(i,i)},re.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(v(a%2==1),3===a){var p=this.m.add(new s(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);v(!u.isZero());var D=new s(1).toRed(this),I=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new s(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),P=this.pow(i,u),U=_;0!==P.cmp(D);){for(var ye=P,xe=0;0!==ye.cmp(D);xe++)ye=ye.redSqr();v(xe<U);var Ne=this.pow(b,new s(1).iushln(U-xe-1));Z=Z.redMul(Ne),b=Ne.redSqr(),P=P.redMul(b),U=xe}return Z},re.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},re.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var u=new Array(16);u[0]=new s(1).toRed(this),u[1]=i;for(var _=2;_<u.length;_++)u[_]=this.mul(u[_-1],i);var D=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var P=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==P||0!==I?(I<<=1,I|=P,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[I]),x=0,I=0)):x=0}r=26}return D},re.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},re.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new pe(i)},C(pe,re),pe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},pe.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},pe.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},pe.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},pe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ze=m.nmd(Ze),this)},2391:Ze=>{function K(m,e){if(!m)throw new Error(e||"Assertion failed")}Ze.exports=K,K.equal=function(e,t,v){if(e!=t)throw new Error(v||"Assertion failed: "+e+" != "+t)}},8195:(Ze,K)=>{"use strict";var m=K;function t(C){return 1===C.length?"0"+C:C}function v(C){for(var s="",M=0;M<C.length;M++)s+=t(C[M].toString(16));return s}m.toArray=function(C,s){if(Array.isArray(C))return C.slice();if(!C)return[];var M=[];if("string"!=typeof C){for(var c=0;c<C.length;c++)M[c]=0|C[c];return M}if("hex"===s)for((C=C.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(C="0"+C),c=0;c<C.length;c+=2)M.push(parseInt(C[c]+C[c+1],16));else for(c=0;c<C.length;c++){var N=C.charCodeAt(c),o=N>>8,L=255&N;o?M.push(o,L):M.push(L)}return M},m.zero2=t,m.toHex=v,m.encode=function(s,M){return"hex"===M?v(s):s}},644:(Ze,K,m)=>{"use strict";m.d(K,{op:()=>ze,$V:()=>et,Xd:()=>Xt});var e=m(7579),t=m(4968),C=(m(6451),m(3601)),s=m(2722),N=(m(1884),m(9718),m(5e3)),o=m(9808);function L(lt){return getComputedStyle(lt)}function O(lt,Re){for(var Fe in Re){var rt=Re[Fe];"number"==typeof rt&&(rt+="px"),lt.style[Fe]=rt}return lt}function A(lt){var Re=document.createElement("div");return Re.className=lt,Re}var E="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function k(lt,Re){if(!E)throw new Error("No element matching method supported");return E.call(lt,Re)}function w(lt){lt.remove?lt.remove():lt.parentNode&&lt.parentNode.removeChild(lt)}function V(lt,Re){return Array.prototype.filter.call(lt.children,function(Fe){return k(Fe,Re)})}var W_element_thumb=function(lt){return"ps__thumb-"+lt},W_element_rail=function(lt){return"ps__rail-"+lt},W_element_consuming="ps__child--consume",W_state_focus="ps--focus",W_state_clicking="ps--clicking",W_state_active=function(lt){return"ps--active-"+lt},W_state_scrolling=function(lt){return"ps--scrolling-"+lt},j={x:null,y:null};function $(lt,Re){var Fe=lt.element.classList,rt=W_state_scrolling(Re);Fe.contains(rt)?clearTimeout(j[Re]):Fe.add(rt)}function ee(lt,Re){j[Re]=setTimeout(function(){return lt.isAlive&&lt.element.classList.remove(W_state_scrolling(Re))},lt.settings.scrollingThreshold)}var ce=function(Re){this.element=Re,this.handlers={}},le={isEmpty:{configurable:!0}};ce.prototype.bind=function(Re,Fe){void 0===this.handlers[Re]&&(this.handlers[Re]=[]),this.handlers[Re].push(Fe),this.element.addEventListener(Re,Fe,!1)},ce.prototype.unbind=function(Re,Fe){var rt=this;this.handlers[Re]=this.handlers[Re].filter(function(ot){return!(!Fe||ot===Fe)||(rt.element.removeEventListener(Re,ot,!1),!1)})},ce.prototype.unbindAll=function(){for(var Re in this.handlers)this.unbind(Re)},le.isEmpty.get=function(){var lt=this;return Object.keys(this.handlers).every(function(Re){return 0===lt.handlers[Re].length})},Object.defineProperties(ce.prototype,le);var te=function(){this.eventElements=[]};function re(lt){if("function"==typeof window.CustomEvent)return new CustomEvent(lt);var Re=document.createEvent("CustomEvent");return Re.initCustomEvent(lt,!1,!1,void 0),Re}function pe(lt,Re,Fe,rt,ot){var At;if(void 0===rt&&(rt=!0),void 0===ot&&(ot=!1),"top"===Re)At=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==Re)throw new Error("A proper axis should be provided");At=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(lt,Re,Fe,rt,ot){var At=Fe[0],li=Fe[1],Ut=Fe[2],Ft=Fe[3],Si=Fe[4],ai=Fe[5];void 0===rt&&(rt=!0),void 0===ot&&(ot=!1);var ci=lt.element;lt.reach[Ft]=null,ci[Ut]<1&&(lt.reach[Ft]="start"),ci[Ut]>lt[At]-lt[li]-1&&(lt.reach[Ft]="end"),Re&&(ci.dispatchEvent(re("ps-scroll-"+Ft)),Re<0?ci.dispatchEvent(re("ps-scroll-"+Si)):Re>0&&ci.dispatchEvent(re("ps-scroll-"+ai)),rt&&function(lt,Re){$(lt,Re),ee(lt,Re)}(lt,Ft)),lt.reach[Ft]&&(Re||ot)&&ci.dispatchEvent(re("ps-"+Ft+"-reach-"+lt.reach[Ft]))}(lt,Fe,At,rt,ot)}function i(lt){return parseInt(lt,10)||0}te.prototype.eventElement=function(Re){var Fe=this.eventElements.filter(function(rt){return rt.element===Re})[0];return Fe||(Fe=new ce(Re),this.eventElements.push(Fe)),Fe},te.prototype.bind=function(Re,Fe,rt){this.eventElement(Re).bind(Fe,rt)},te.prototype.unbind=function(Re,Fe,rt){var ot=this.eventElement(Re);ot.unbind(Fe,rt),ot.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(ot),1)},te.prototype.unbindAll=function(){this.eventElements.forEach(function(Re){return Re.unbindAll()}),this.eventElements=[]},te.prototype.once=function(Re,Fe,rt){var ot=this.eventElement(Re),At=function(li){ot.unbind(Fe,At),rt(li)};ot.bind(Fe,At)};var u={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function _(lt){var Re=lt.element,Fe=Math.floor(Re.scrollTop),rt=Re.getBoundingClientRect();lt.containerWidth=Math.ceil(rt.width),lt.containerHeight=Math.ceil(rt.height),lt.contentWidth=Re.scrollWidth,lt.contentHeight=Re.scrollHeight,Re.contains(lt.scrollbarXRail)||(V(Re,W_element_rail("x")).forEach(function(ot){return w(ot)}),Re.appendChild(lt.scrollbarXRail)),Re.contains(lt.scrollbarYRail)||(V(Re,W_element_rail("y")).forEach(function(ot){return w(ot)}),Re.appendChild(lt.scrollbarYRail)),!lt.settings.suppressScrollX&&lt.containerWidth+lt.settings.scrollXMarginOffset<lt.contentWidth?(lt.scrollbarXActive=!0,lt.railXWidth=lt.containerWidth-lt.railXMarginWidth,lt.railXRatio=lt.containerWidth/lt.railXWidth,lt.scrollbarXWidth=D(lt,i(lt.railXWidth*lt.containerWidth/lt.contentWidth)),lt.scrollbarXLeft=i((lt.negativeScrollAdjustment+Re.scrollLeft)*(lt.railXWidth-lt.scrollbarXWidth)/(lt.contentWidth-lt.containerWidth))):lt.scrollbarXActive=!1,!lt.settings.suppressScrollY&&lt.containerHeight+lt.settings.scrollYMarginOffset<lt.contentHeight?(lt.scrollbarYActive=!0,lt.railYHeight=lt.containerHeight-lt.railYMarginHeight,lt.railYRatio=lt.containerHeight/lt.railYHeight,lt.scrollbarYHeight=D(lt,i(lt.railYHeight*lt.containerHeight/lt.contentHeight)),lt.scrollbarYTop=i(Fe*(lt.railYHeight-lt.scrollbarYHeight)/(lt.contentHeight-lt.containerHeight))):lt.scrollbarYActive=!1,lt.scrollbarXLeft>=lt.railXWidth-lt.scrollbarXWidth&&(lt.scrollbarXLeft=lt.railXWidth-lt.scrollbarXWidth),lt.scrollbarYTop>=lt.railYHeight-lt.scrollbarYHeight&&(lt.scrollbarYTop=lt.railYHeight-lt.scrollbarYHeight),function(lt,Re){var Fe={width:Re.railXWidth},rt=Math.floor(lt.scrollTop);Fe.left=Re.isRtl?Re.negativeScrollAdjustment+lt.scrollLeft+Re.containerWidth-Re.contentWidth:lt.scrollLeft,Re.isScrollbarXUsingBottom?Fe.bottom=Re.scrollbarXBottom-rt:Fe.top=Re.scrollbarXTop+rt,O(Re.scrollbarXRail,Fe);var ot={top:rt,height:Re.railYHeight};Re.isScrollbarYUsingRight?ot.right=Re.isRtl?Re.contentWidth-(Re.negativeScrollAdjustment+lt.scrollLeft)-Re.scrollbarYRight-Re.scrollbarYOuterWidth-9:Re.scrollbarYRight-lt.scrollLeft:ot.left=Re.isRtl?Re.negativeScrollAdjustment+lt.scrollLeft+2*Re.containerWidth-Re.contentWidth-Re.scrollbarYLeft-Re.scrollbarYOuterWidth:Re.scrollbarYLeft+lt.scrollLeft,O(Re.scrollbarYRail,ot),O(Re.scrollbarX,{left:Re.scrollbarXLeft,width:Re.scrollbarXWidth-Re.railBorderXWidth}),O(Re.scrollbarY,{top:Re.scrollbarYTop,height:Re.scrollbarYHeight-Re.railBorderYWidth})}(Re,lt),lt.scrollbarXActive?Re.classList.add(W_state_active("x")):(Re.classList.remove(W_state_active("x")),lt.scrollbarXWidth=0,lt.scrollbarXLeft=0,Re.scrollLeft=!0===lt.isRtl?lt.contentWidth:0),lt.scrollbarYActive?Re.classList.add(W_state_active("y")):(Re.classList.remove(W_state_active("y")),lt.scrollbarYHeight=0,lt.scrollbarYTop=0,Re.scrollTop=0)}function D(lt,Re){return lt.settings.minScrollbarLength&&(Re=Math.max(Re,lt.settings.minScrollbarLength)),lt.settings.maxScrollbarLength&&(Re=Math.min(Re,lt.settings.maxScrollbarLength)),Re}function b(lt,Re){var Fe=Re[0],rt=Re[1],ot=Re[2],At=Re[3],li=Re[4],Ut=Re[5],Ft=Re[6],Si=Re[7],ai=Re[8],ci=lt.element,rn=null,Vi=null,Di=null;function Xi(ve){ve.touches&&ve.touches[0]&&(ve[ot]=ve.touches[0].pageY),ci[Ft]=rn+Di*(ve[ot]-Vi),$(lt,Si),_(lt),ve.stopPropagation(),ve.preventDefault()}function Ke(){ee(lt,Si),lt[ai].classList.remove(W_state_clicking),lt.event.unbind(lt.ownerDocument,"mousemove",Xi)}function mt(ve,qe){rn=ci[Ft],qe&&ve.touches&&(ve[ot]=ve.touches[0].pageY),Vi=ve[ot],Di=(lt[rt]-lt[Fe])/(lt[At]-lt[Ut]),qe?lt.event.bind(lt.ownerDocument,"touchmove",Xi):(lt.event.bind(lt.ownerDocument,"mousemove",Xi),lt.event.once(lt.ownerDocument,"mouseup",Ke),ve.preventDefault()),lt[ai].classList.add(W_state_clicking),ve.stopPropagation()}lt.event.bind(lt[li],"mousedown",function(ve){mt(ve)}),lt.event.bind(lt[li],"touchstart",function(ve){mt(ve,!0)})}var xe={"click-rail":function(lt){lt.event.bind(lt.scrollbarY,"mousedown",function(Fe){return Fe.stopPropagation()}),lt.event.bind(lt.scrollbarYRail,"mousedown",function(Fe){var rt=Fe.pageY-window.pageYOffset-lt.scrollbarYRail.getBoundingClientRect().top;lt.element.scrollTop+=(rt>lt.scrollbarYTop?1:-1)*lt.containerHeight,_(lt),Fe.stopPropagation()}),lt.event.bind(lt.scrollbarX,"mousedown",function(Fe){return Fe.stopPropagation()}),lt.event.bind(lt.scrollbarXRail,"mousedown",function(Fe){var rt=Fe.pageX-window.pageXOffset-lt.scrollbarXRail.getBoundingClientRect().left;lt.element.scrollLeft+=(rt>lt.scrollbarXLeft?1:-1)*lt.containerWidth,_(lt),Fe.stopPropagation()})},"drag-thumb":function(lt){b(lt,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),b(lt,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(lt){var Re=lt.element;lt.event.bind(lt.ownerDocument,"keydown",function(At){if(!(At.isDefaultPrevented&&At.isDefaultPrevented()||At.defaultPrevented)&&(k(Re,":hover")||k(lt.scrollbarX,":focus")||k(lt.scrollbarY,":focus"))){var li=document.activeElement?document.activeElement:lt.ownerDocument.activeElement;if(li){if("IFRAME"===li.tagName)li=li.contentDocument.activeElement;else for(;li.shadowRoot;)li=li.shadowRoot.activeElement;if(function(lt){return k(lt,"input,[contenteditable]")||k(lt,"select,[contenteditable]")||k(lt,"textarea,[contenteditable]")||k(lt,"button,[contenteditable]")}(li))return}var Ut=0,Ft=0;switch(At.which){case 37:Ut=At.metaKey?-lt.contentWidth:At.altKey?-lt.containerWidth:-30;break;case 38:Ft=At.metaKey?lt.contentHeight:At.altKey?lt.containerHeight:30;break;case 39:Ut=At.metaKey?lt.contentWidth:At.altKey?lt.containerWidth:30;break;case 40:Ft=At.metaKey?-lt.contentHeight:At.altKey?-lt.containerHeight:-30;break;case 32:Ft=At.shiftKey?lt.containerHeight:-lt.containerHeight;break;case 33:Ft=lt.containerHeight;break;case 34:Ft=-lt.containerHeight;break;case 36:Ft=lt.contentHeight;break;case 35:Ft=-lt.contentHeight;break;default:return}lt.settings.suppressScrollX&&0!==Ut||lt.settings.suppressScrollY&&0!==Ft||(Re.scrollTop-=Ft,Re.scrollLeft+=Ut,_(lt),function(At,li){var Ut=Math.floor(Re.scrollTop);if(0===At){if(!lt.scrollbarYActive)return!1;if(0===Ut&&li>0||Ut>=lt.contentHeight-lt.containerHeight&&li<0)return!lt.settings.wheelPropagation}var Ft=Re.scrollLeft;if(0===li){if(!lt.scrollbarXActive)return!1;if(0===Ft&&At<0||Ft>=lt.contentWidth-lt.containerWidth&&At>0)return!lt.settings.wheelPropagation}return!0}(Ut,Ft)&&At.preventDefault())}})},wheel:function(lt){var Re=lt.element;function At(li){var Ut=function(li){var Ut=li.deltaX,Ft=-1*li.deltaY;return(void 0===Ut||void 0===Ft)&&(Ut=-1*li.wheelDeltaX/6,Ft=li.wheelDeltaY/6),li.deltaMode&&1===li.deltaMode&&(Ut*=10,Ft*=10),Ut!=Ut&&Ft!=Ft&&(Ut=0,Ft=li.wheelDelta),li.shiftKey?[-Ft,-Ut]:[Ut,Ft]}(li),Ft=Ut[0],Si=Ut[1];if(!function(li,Ut,Ft){if(!u.isWebKit&&Re.querySelector("select:focus"))return!0;if(!Re.contains(li))return!1;for(var Si=li;Si&&Si!==Re;){if(Si.classList.contains(W_element_consuming))return!0;var ai=L(Si);if(Ft&&ai.overflowY.match(/(scroll|auto)/)){var ci=Si.scrollHeight-Si.clientHeight;if(ci>0&&(Si.scrollTop>0&&Ft<0||Si.scrollTop<ci&&Ft>0))return!0}if(Ut&&ai.overflowX.match(/(scroll|auto)/)){var rn=Si.scrollWidth-Si.clientWidth;if(rn>0&&(Si.scrollLeft>0&&Ut<0||Si.scrollLeft<rn&&Ut>0))return!0}Si=Si.parentNode}return!1}(li.target,Ft,Si)){var ai=!1;lt.settings.useBothWheelAxes?lt.scrollbarYActive&&!lt.scrollbarXActive?(Si?Re.scrollTop-=Si*lt.settings.wheelSpeed:Re.scrollTop+=Ft*lt.settings.wheelSpeed,ai=!0):lt.scrollbarXActive&&!lt.scrollbarYActive&&(Ft?Re.scrollLeft+=Ft*lt.settings.wheelSpeed:Re.scrollLeft-=Si*lt.settings.wheelSpeed,ai=!0):(Re.scrollTop-=Si*lt.settings.wheelSpeed,Re.scrollLeft+=Ft*lt.settings.wheelSpeed),_(lt),ai=ai||function(li,Ut){var Ft=Math.floor(Re.scrollTop),Si=0===Re.scrollTop,ai=Ft+Re.offsetHeight===Re.scrollHeight,ci=0===Re.scrollLeft,rn=Re.scrollLeft+Re.offsetWidth===Re.scrollWidth;return!(Math.abs(Ut)>Math.abs(li)?Si||ai:ci||rn)||!lt.settings.wheelPropagation}(Ft,Si),ai&&!li.ctrlKey&&(li.stopPropagation(),li.preventDefault())}}void 0!==window.onwheel?lt.event.bind(Re,"wheel",At):void 0!==window.onmousewheel&&lt.event.bind(Re,"mousewheel",At)},touch:function(lt){if(u.supportsTouch||u.supportsIePointer){var Re=lt.element,ot={},At=0,li={},Ut=null;u.supportsTouch?(lt.event.bind(Re,"touchstart",ai),lt.event.bind(Re,"touchmove",rn),lt.event.bind(Re,"touchend",Vi)):u.supportsIePointer&&(window.PointerEvent?(lt.event.bind(Re,"pointerdown",ai),lt.event.bind(Re,"pointermove",rn),lt.event.bind(Re,"pointerup",Vi)):window.MSPointerEvent&&(lt.event.bind(Re,"MSPointerDown",ai),lt.event.bind(Re,"MSPointerMove",rn),lt.event.bind(Re,"MSPointerUp",Vi)))}function rt(Di,Xi){Re.scrollTop-=Xi,Re.scrollLeft-=Di,_(lt)}function Ft(Di){return Di.targetTouches?Di.targetTouches[0]:Di}function Si(Di){return!(Di.pointerType&&"pen"===Di.pointerType&&0===Di.buttons||!(Di.targetTouches&&1===Di.targetTouches.length||Di.pointerType&&"mouse"!==Di.pointerType&&Di.pointerType!==Di.MSPOINTER_TYPE_MOUSE))}function ai(Di){if(Si(Di)){var Xi=Ft(Di);ot.pageX=Xi.pageX,ot.pageY=Xi.pageY,At=(new Date).getTime(),null!==Ut&&clearInterval(Ut)}}function rn(Di){if(Si(Di)){var Xi=Ft(Di),Ke={pageX:Xi.pageX,pageY:Xi.pageY},mt=Ke.pageX-ot.pageX,ve=Ke.pageY-ot.pageY;if(function(Di,Xi,Ke){if(!Re.contains(Di))return!1;for(var mt=Di;mt&&mt!==Re;){if(mt.classList.contains(W_element_consuming))return!0;var ve=L(mt);if(Ke&&ve.overflowY.match(/(scroll|auto)/)){var qe=mt.scrollHeight-mt.clientHeight;if(qe>0&&(mt.scrollTop>0&&Ke<0||mt.scrollTop<qe&&Ke>0))return!0}if(Xi&&ve.overflowX.match(/(scroll|auto)/)){var _t=mt.scrollWidth-mt.clientWidth;if(_t>0&&(mt.scrollLeft>0&&Xi<0||mt.scrollLeft<_t&&Xi>0))return!0}mt=mt.parentNode}return!1}(Di.target,mt,ve))return;rt(mt,ve),ot=Ke;var qe=(new Date).getTime(),_t=qe-At;_t>0&&(li.x=mt/_t,li.y=ve/_t,At=qe),function(Di,Xi){var Ke=Math.floor(Re.scrollTop),mt=Re.scrollLeft,ve=Math.abs(Di),qe=Math.abs(Xi);if(qe>ve){if(Xi<0&&Ke===lt.contentHeight-lt.containerHeight||Xi>0&&0===Ke)return 0===window.scrollY&&Xi>0&&u.isChrome}else if(ve>qe&&(Di<0&&mt===lt.contentWidth-lt.containerWidth||Di>0&&0===mt))return!0;return!0}(mt,ve)&&Di.preventDefault()}}function Vi(){lt.settings.swipeEasing&&(clearInterval(Ut),Ut=setInterval(function(){lt.isInitialized?clearInterval(Ut):li.x||li.y?Math.abs(li.x)<.01&&Math.abs(li.y)<.01?clearInterval(Ut):(rt(30*li.x,30*li.y),li.x*=.8,li.y*=.8):clearInterval(Ut)},10))}}},Ne=function(Re,Fe){var rt=this;if(void 0===Fe&&(Fe={}),"string"==typeof Re&&(Re=document.querySelector(Re)),!Re||!Re.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var ot in this.element=Re,Re.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},Fe)this.settings[ot]=Fe[ot];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var ai,Si,At=function(){return Re.classList.add(W_state_focus)},li=function(){return Re.classList.remove(W_state_focus)};this.isRtl="rtl"===L(Re).direction,!0===this.isRtl&&Re.classList.add("ps__rtl"),this.isNegativeScroll=(Si=Re.scrollLeft,Re.scrollLeft=-1,ai=Re.scrollLeft<0,Re.scrollLeft=Si,ai),this.negativeScrollAdjustment=this.isNegativeScroll?Re.scrollWidth-Re.clientWidth:0,this.event=new te,this.ownerDocument=Re.ownerDocument||document,this.scrollbarXRail=A(W_element_rail("x")),Re.appendChild(this.scrollbarXRail),this.scrollbarX=A(W_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",At),this.event.bind(this.scrollbarX,"blur",li),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var Ut=L(this.scrollbarXRail);this.scrollbarXBottom=parseInt(Ut.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=i(Ut.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=i(Ut.borderLeftWidth)+i(Ut.borderRightWidth),O(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=i(Ut.marginLeft)+i(Ut.marginRight),O(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=A(W_element_rail("y")),Re.appendChild(this.scrollbarYRail),this.scrollbarY=A(W_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",At),this.event.bind(this.scrollbarY,"blur",li),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var Ft=L(this.scrollbarYRail);this.scrollbarYRight=parseInt(Ft.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=i(Ft.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(lt){var Re=L(lt);return i(Re.width)+i(Re.paddingLeft)+i(Re.paddingRight)+i(Re.borderLeftWidth)+i(Re.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=i(Ft.borderTopWidth)+i(Ft.borderBottomWidth),O(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=i(Ft.marginTop)+i(Ft.marginBottom),O(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:Re.scrollLeft<=0?"start":Re.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:Re.scrollTop<=0?"start":Re.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Si){return xe[Si](rt)}),this.lastScrollTop=Math.floor(Re.scrollTop),this.lastScrollLeft=Re.scrollLeft,this.event.bind(this.element,"scroll",function(Si){return rt.onScroll(Si)}),_(this)};Ne.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,O(this.scrollbarXRail,{display:"block"}),O(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=i(L(this.scrollbarXRail).marginLeft)+i(L(this.scrollbarXRail).marginRight),this.railYMarginHeight=i(L(this.scrollbarYRail).marginTop)+i(L(this.scrollbarYRail).marginBottom),O(this.scrollbarXRail,{display:"none"}),O(this.scrollbarYRail,{display:"none"}),_(this),pe(this,"top",0,!1,!0),pe(this,"left",0,!1,!0),O(this.scrollbarXRail,{display:""}),O(this.scrollbarYRail,{display:""}))},Ne.prototype.onScroll=function(Re){!this.isAlive||(_(this),pe(this,"top",this.element.scrollTop-this.lastScrollTop),pe(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Ne.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),w(this.scrollbarX),w(this.scrollbarY),w(this.scrollbarXRail),w(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Ne.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Re){return!Re.match(/^ps([-_].+|)$/)}).join(" ")};const Be=Ne;var Oe=function(){if("undefined"!=typeof Map)return Map;function lt(Re,Fe){var rt=-1;return Re.some(function(ot,At){return ot[0]===Fe&&(rt=At,!0)}),rt}return function(){function Re(){this.__entries__=[]}return Object.defineProperty(Re.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),Re.prototype.get=function(Fe){var rt=lt(this.__entries__,Fe),ot=this.__entries__[rt];return ot&&ot[1]},Re.prototype.set=function(Fe,rt){var ot=lt(this.__entries__,Fe);~ot?this.__entries__[ot][1]=rt:this.__entries__.push([Fe,rt])},Re.prototype.delete=function(Fe){var rt=this.__entries__,ot=lt(rt,Fe);~ot&&rt.splice(ot,1)},Re.prototype.has=function(Fe){return!!~lt(this.__entries__,Fe)},Re.prototype.clear=function(){this.__entries__.splice(0)},Re.prototype.forEach=function(Fe,rt){void 0===rt&&(rt=null);for(var ot=0,At=this.__entries__;ot<At.length;ot++){var li=At[ot];Fe.call(rt,li[1],li[0])}},Re}()}(),B="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Me="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),we="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Me):function(lt){return setTimeout(function(){return lt(Date.now())},1e3/60)},Pe=["top","right","bottom","left","width","height","size","weight"],Ve="undefined"!=typeof MutationObserver,he=function(){function lt(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(lt,Re){var Fe=!1,rt=!1,ot=0;function At(){Fe&&(Fe=!1,lt()),rt&&Ut()}function li(){we(At)}function Ut(){var Ft=Date.now();if(Fe){if(Ft-ot<2)return;rt=!0}else Fe=!0,rt=!1,setTimeout(li,20);ot=Ft}return Ut}(this.refresh.bind(this))}return lt.prototype.addObserver=function(Re){~this.observers_.indexOf(Re)||this.observers_.push(Re),this.connected_||this.connect_()},lt.prototype.removeObserver=function(Re){var Fe=this.observers_,rt=Fe.indexOf(Re);~rt&&Fe.splice(rt,1),!Fe.length&&this.connected_&&this.disconnect_()},lt.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},lt.prototype.updateObservers_=function(){var Re=this.observers_.filter(function(Fe){return Fe.gatherActive(),Fe.hasActive()});return Re.forEach(function(Fe){return Fe.broadcastActive()}),Re.length>0},lt.prototype.connect_=function(){!B||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ve?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},lt.prototype.disconnect_=function(){!B||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},lt.prototype.onTransitionEnd_=function(Re){var Fe=Re.propertyName,rt=void 0===Fe?"":Fe;Pe.some(function(At){return!!~rt.indexOf(At)})&&this.refresh()},lt.getInstance=function(){return this.instance_||(this.instance_=new lt),this.instance_},lt.instance_=null,lt}(),Ee=function(lt,Re){for(var Fe=0,rt=Object.keys(Re);Fe<rt.length;Fe++){var ot=rt[Fe];Object.defineProperty(lt,ot,{value:Re[ot],enumerable:!1,writable:!1,configurable:!0})}return lt},ke=function(lt){return lt&&lt.ownerDocument&&lt.ownerDocument.defaultView||Me},q=wt(0,0,0,0);function J(lt){return parseFloat(lt)||0}function oe(lt){for(var Re=[],Fe=1;Fe<arguments.length;Fe++)Re[Fe-1]=arguments[Fe];return Re.reduce(function(rt,ot){return rt+J(lt["border-"+ot+"-width"])},0)}var it="undefined"!=typeof SVGGraphicsElement?function(lt){return lt instanceof ke(lt).SVGGraphicsElement}:function(lt){return lt instanceof ke(lt).SVGElement&&"function"==typeof lt.getBBox};function nt(lt){return B?it(lt)?function(lt){var Re=lt.getBBox();return wt(0,0,Re.width,Re.height)}(lt):function(lt){var Re=lt.clientWidth,Fe=lt.clientHeight;if(!Re&&!Fe)return q;var rt=ke(lt).getComputedStyle(lt),ot=function(lt){for(var Fe={},rt=0,ot=["top","right","bottom","left"];rt<ot.length;rt++){var At=ot[rt];Fe[At]=J(lt["padding-"+At])}return Fe}(rt),At=ot.left+ot.right,li=ot.top+ot.bottom,Ut=J(rt.width),Ft=J(rt.height);if("border-box"===rt.boxSizing&&(Math.round(Ut+At)!==Re&&(Ut-=oe(rt,"left","right")+At),Math.round(Ft+li)!==Fe&&(Ft-=oe(rt,"top","bottom")+li)),!function(lt){return lt===ke(lt).document.documentElement}(lt)){var Si=Math.round(Ut+At)-Re,ai=Math.round(Ft+li)-Fe;1!==Math.abs(Si)&&(Ut-=Si),1!==Math.abs(ai)&&(Ft-=ai)}return wt(ot.left,ot.top,Ut,Ft)}(lt):q}function wt(lt,Re,Fe,rt){return{x:lt,y:Re,width:Fe,height:rt}}var Bt=function(){function lt(Re){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=wt(0,0,0,0),this.target=Re}return lt.prototype.isActive=function(){var Re=nt(this.target);return this.contentRect_=Re,Re.width!==this.broadcastWidth||Re.height!==this.broadcastHeight},lt.prototype.broadcastRect=function(){var Re=this.contentRect_;return this.broadcastWidth=Re.width,this.broadcastHeight=Re.height,Re},lt}(),Pt=function(Re,Fe){var rt=function(lt){var Re=lt.x,Fe=lt.y,rt=lt.width,ot=lt.height,At="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,li=Object.create(At.prototype);return Ee(li,{x:Re,y:Fe,width:rt,height:ot,top:Fe,right:Re+rt,bottom:ot+Fe,left:Re}),li}(Fe);Ee(this,{target:Re,contentRect:rt})},Vt=function(){function lt(Re,Fe,rt){if(this.activeObservations_=[],this.observations_=new Oe,"function"!=typeof Re)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=Re,this.controller_=Fe,this.callbackCtx_=rt}return lt.prototype.observe=function(Re){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(Re instanceof ke(Re).Element))throw new TypeError('parameter 1 is not of type "Element".');var Fe=this.observations_;Fe.has(Re)||(Fe.set(Re,new Bt(Re)),this.controller_.addObserver(this),this.controller_.refresh())}},lt.prototype.unobserve=function(Re){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(Re instanceof ke(Re).Element))throw new TypeError('parameter 1 is not of type "Element".');var Fe=this.observations_;!Fe.has(Re)||(Fe.delete(Re),Fe.size||this.controller_.removeObserver(this))}},lt.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},lt.prototype.gatherActive=function(){var Re=this;this.clearActive(),this.observations_.forEach(function(Fe){Fe.isActive()&&Re.activeObservations_.push(Fe)})},lt.prototype.broadcastActive=function(){if(this.hasActive()){var Re=this.callbackCtx_,Fe=this.activeObservations_.map(function(rt){return new Pt(rt.target,rt.broadcastRect())});this.callback_.call(Re,Fe,Re),this.clearActive()}},lt.prototype.clearActive=function(){this.activeObservations_.splice(0)},lt.prototype.hasActive=function(){return this.activeObservations_.length>0},lt}(),Oi="undefined"!=typeof WeakMap?new WeakMap:new Oe,jt=function lt(Re){if(!(this instanceof lt))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Fe=he.getInstance(),rt=new Vt(Re,Fe,this);Oi.set(this,rt)};["observe","unobserve","disconnect"].forEach(function(lt){jt.prototype[lt]=function(){var Re;return(Re=Oi.get(this))[lt].apply(Re,arguments)}});const Pi=void 0!==Me.ResizeObserver?Me.ResizeObserver:jt,ze=new N.OlP("PERFECT_SCROLLBAR_CONFIG");class Te{constructor(Re,Fe,rt,ot){this.x=Re,this.y=Fe,this.w=rt,this.h=ot}}class Y{constructor(Re,Fe){this.x=Re,this.y=Fe}}const ge=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class Ae{constructor(Re={}){this.assign(Re)}assign(Re={}){for(const Fe in Re)this[Fe]=Re[Fe]}}let et=(()=>{class lt{constructor(Fe,rt,ot,At,li){this.zone=Fe,this.differs=rt,this.elementRef=ot,this.platformId=At,this.defaults=li,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new e.x,this.disabled=!1,this.psScrollY=new N.vpe,this.psScrollX=new N.vpe,this.psScrollUp=new N.vpe,this.psScrollDown=new N.vpe,this.psScrollLeft=new N.vpe,this.psScrollRight=new N.vpe,this.psYReachEnd=new N.vpe,this.psYReachStart=new N.vpe,this.psXReachEnd=new N.vpe,this.psXReachStart=new N.vpe}ngOnInit(){if(!this.disabled&&(0,o.NF)(this.platformId)){const Fe=new Ae(this.defaults);Fe.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Be(this.elementRef.nativeElement,Fe)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new Pi(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{ge.forEach(rt=>{const ot=rt.replace(/([A-Z])/g,At=>`-${At.toLowerCase()}`);(0,t.R)(this.elementRef.nativeElement,ot).pipe((0,C.e)(20),(0,s.R)(this.ngDestroy)).subscribe(At=>{this[rt].emit(At)})})})}}ngOnDestroy(){(0,o.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,o.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(Fe){Fe.disabled&&!Fe.disabled.isFirstChange()&&(0,o.NF)(this.platformId)&&Fe.disabled.currentValue!==Fe.disabled.previousValue&&(!0===Fe.disabled.currentValue?this.ngOnDestroy():!1===Fe.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(Fe){}},0))}geometry(Fe="scroll"){return new Te(this.elementRef.nativeElement[Fe+"Left"],this.elementRef.nativeElement[Fe+"Top"],this.elementRef.nativeElement[Fe+"Width"],this.elementRef.nativeElement[Fe+"Height"])}position(Fe=!1){return!Fe&&this.instance?new Y(this.instance.reach.x||0,this.instance.reach.y||0):new Y(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(Fe="any"){const rt=this.elementRef.nativeElement;return"any"===Fe?rt.classList.contains("ps--active-x")||rt.classList.contains("ps--active-y"):"both"===Fe?rt.classList.contains("ps--active-x")&&rt.classList.contains("ps--active-y"):rt.classList.contains("ps--active-"+Fe)}scrollTo(Fe,rt,ot){this.disabled||(null==rt&&null==ot?this.animateScrolling("scrollTop",Fe,ot):(null!=Fe&&this.animateScrolling("scrollLeft",Fe,ot),null!=rt&&this.animateScrolling("scrollTop",rt,ot)))}scrollToX(Fe,rt){this.animateScrolling("scrollLeft",Fe,rt)}scrollToY(Fe,rt){this.animateScrolling("scrollTop",Fe,rt)}scrollToTop(Fe,rt){this.animateScrolling("scrollTop",Fe||0,rt)}scrollToLeft(Fe,rt){this.animateScrolling("scrollLeft",Fe||0,rt)}scrollToRight(Fe,rt){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(Fe||0),rt)}scrollToBottom(Fe,rt){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(Fe||0),rt)}scrollToElement(Fe,rt,ot){if("string"==typeof Fe&&(Fe=this.elementRef.nativeElement.querySelector(Fe)),Fe){const At=Fe.getBoundingClientRect(),li=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",At.left-li.left+this.elementRef.nativeElement.scrollLeft+(rt||0),ot),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",At.top-li.top+this.elementRef.nativeElement.scrollTop+(rt||0),ot)}}animateScrolling(Fe,rt,ot){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),ot&&"undefined"!=typeof window){if(rt!==this.elementRef.nativeElement[Fe]){let At=0,li=0,Ut=performance.now(),Ft=this.elementRef.nativeElement[Fe];const Si=(Ft-rt)/2,ai=ci=>{li+=Math.PI/(ot/(ci-Ut)),At=Math.round(rt+Si+Si*Math.cos(li)),this.elementRef.nativeElement[Fe]===Ft&&(li>=Math.PI?this.animateScrolling(Fe,rt,0):(this.elementRef.nativeElement[Fe]=At,Ft=this.elementRef.nativeElement[Fe],Ut=ci,this.animation=window.requestAnimationFrame(ai)))};window.requestAnimationFrame(ai)}}else this.elementRef.nativeElement[Fe]=rt}}return lt.\u0275fac=function(Fe){return new(Fe||lt)(N.Y36(N.R0b),N.Y36(N.aQg),N.Y36(N.SBq),N.Y36(N.Lbi),N.Y36(ze,8))},lt.\u0275dir=N.lG2({type:lt,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[N.TTD]}),lt})(),Xt=(()=>{class lt{}return lt.\u0275fac=function(Fe){return new(Fe||lt)},lt.\u0275mod=N.oAB({type:lt}),lt.\u0275inj=N.cJS({imports:[[o.ez],o.ez]}),lt})()},5768:(Ze,K,m)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var e=m(842);Object.keys(e).forEach(function(t){"default"!==t&&Object.defineProperty(K,t,{enumerable:!0,get:function(){return e[t]}})})},2999:(Ze,K,m)=>{"use strict";var e=m(7977);K.certificate=m(2390);var t=e.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});K.RSAPrivateKey=t;var v=e.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});K.RSAPublicKey=v;var C=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});K.PublicKey=C;var s=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),M=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});K.PrivateKey=M;var c=e.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});K.EncryptedPrivateKey=c;var N=e.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});K.DSAPrivateKey=N,K.DSAparam=e.define("DSAparam",function(){this.int()});var o=e.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(L),this.key("publicKey").optional().explicit(1).bitstr())});K.ECPrivateKey=o;var L=e.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});K.signature=e.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(Ze,K,m)=>{"use strict";var e=m(7977),t=e.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),v=e.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),C=e.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(C),this.key("subjectPublicKey").bitstr())}),M=e.define("RelativeDistinguishedName",function(){this.setof(v)}),c=e.define("RDNSequence",function(){this.seqof(M)}),N=e.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),o=e.define("Validity",function(){this.seq().obj(this.key("notBefore").use(t),this.key("notAfter").use(t))}),L=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),O=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(C),this.key("issuer").use(N),this.key("validity").use(o),this.key("subject").use(N),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(L).optional())}),A=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(O),this.key("signatureAlgorithm").use(C),this.key("signatureValue").bitstr())});Ze.exports=A},5269:(Ze,K,m)=>{var e=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,t=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,v=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,C=m(347),s=m(4330),M=m(3502).Buffer;Ze.exports=function(c,N){var O,o=c.toString(),L=o.match(e);if(L){var E="aes"+L[1],k=M.from(L[2],"hex"),w=M.from(L[3].replace(/[\r\n]/g,""),"base64"),V=C(N,k.slice(0,8),parseInt(L[1],10)).key,W=[],j=s.createDecipheriv(E,V,k);W.push(j.update(w)),W.push(j.final()),O=M.concat(W)}else{var A=o.match(v);O=M.from(A[2].replace(/[\r\n]/g,""),"base64")}return{tag:o.match(t)[1],data:O}}},2772:(Ze,K,m)=>{var e=m(2999),t=m(2562),v=m(5269),C=m(4330),s=m(9357),M=m(3502).Buffer;function c(o){var L;"object"==typeof o&&!M.isBuffer(o)&&(L=o.passphrase,o=o.key),"string"==typeof o&&(o=M.from(o));var k,w,O=v(o,L),A=O.tag,E=O.data;switch(A){case"CERTIFICATE":w=e.certificate.decode(E,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=e.PublicKey.decode(E,"der")),k=w.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=e.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw new Error("unknown key id "+k)}case"ENCRYPTED PRIVATE KEY":E=function(o,L){var O=o.algorithm.decrypt.kde.kdeparams.salt,A=parseInt(o.algorithm.decrypt.kde.kdeparams.iters.toString(),10),E=t[o.algorithm.decrypt.cipher.algo.join(".")],k=o.algorithm.decrypt.cipher.iv,w=o.subjectPrivateKey,V=parseInt(E.split("-")[1],10)/8,W=s.pbkdf2Sync(L,O,A,V,"sha1"),j=C.createDecipheriv(E,W,k),$=[];return $.push(j.update(w)),$.push(j.final()),M.concat($)}(E=e.EncryptedPrivateKey.decode(E,"der"),L);case"PRIVATE KEY":switch(k=(w=e.PrivateKey.decode(E,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:e.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=e.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw new Error("unknown key id "+k)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(E,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(E,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(E,"der")};case"EC PRIVATE KEY":return{curve:(E=e.ECPrivateKey.decode(E,"der")).parameters.value,privateKey:E.privateKey};default:throw new Error("unknown key type "+A)}}Ze.exports=c,c.signature=e.signature},9357:(Ze,K,m)=>{K.pbkdf2=m(415),K.pbkdf2Sync=m(7472)},415:(Ze,K,m)=>{var M,O,e=m(3502).Buffer,t=m(2697),v=m(8867),C=m(7472),s=m(4566),c=global.crypto&&global.crypto.subtle,N={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},o=[];function A(){return O||(O=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function E(w,V,W,j,$){return c.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ee){return c.deriveBits({name:"PBKDF2",salt:V,iterations:W,hash:{name:$}},ee,j<<3)}).then(function(ee){return e.from(ee)})}Ze.exports=function(w,V,W,j,$,ee){"function"==typeof $&&(ee=$,$=void 0);var me=N[($=$||"sha1").toLowerCase()];if(me&&"function"==typeof global.Promise){if(t(W,j),w=s(w,v,"Password"),V=s(V,v,"Salt"),"function"!=typeof ee)throw new Error("No callback provided to pbkdf2");!function(w,V){w.then(function(W){A()(function(){V(null,W)})},function(W){A()(function(){V(W)})})}(function(w){if(global.process&&!global.process.browser||!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==o[w])return o[w];var V=E(M=M||e.alloc(8),M,10,128,w).then(function(){return!0}).catch(function(){return!1});return o[w]=V,V}(me).then(function(ce){return ce?E(w,V,W,j,me):C(w,V,W,j,$)}),ee)}else A()(function(){var ce;try{ce=C(w,V,W,j,$)}catch(le){return ee(le)}ee(null,ce)})}},8867:Ze=>{var K;K=global.process&&global.process.browser?"utf-8":global.process&&global.process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",Ze.exports=K},2697:Ze=>{var K=Math.pow(2,30)-1;Ze.exports=function(m,e){if("number"!=typeof m)throw new TypeError("Iterations not a number");if(m<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>K||e!=e)throw new TypeError("Bad key length")}},7472:(Ze,K,m)=>{var e=m(5640),t=m(5634),v=m(5244),C=m(3502).Buffer,s=m(2697),M=m(8867),c=m(4566),N=C.alloc(128),o={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function L(E,k,w){var V=function(E){return"rmd160"===E||"ripemd160"===E?function(V){return(new t).update(V).digest()}:"md5"===E?e:function(V){return v(E).update(V).digest()}}(E),W="sha512"===E||"sha384"===E?128:64;k.length>W?k=V(k):k.length<W&&(k=C.concat([k,N],W));for(var j=C.allocUnsafe(W+o[E]),$=C.allocUnsafe(W+o[E]),ee=0;ee<W;ee++)j[ee]=54^k[ee],$[ee]=92^k[ee];var me=C.allocUnsafe(W+w+4);j.copy(me,0,0,W),this.ipad1=me,this.ipad2=j,this.opad=$,this.alg=E,this.blocksize=W,this.hash=V,this.size=o[E]}L.prototype.run=function(E,k){return E.copy(k,this.blocksize),this.hash(k).copy(this.opad,this.blocksize),this.hash(this.opad)},Ze.exports=function(E,k,w,V,W){s(w,V);var j=new L(W=W||"sha1",E=c(E,M,"Password"),(k=c(k,M,"Salt")).length),$=C.allocUnsafe(V),ee=C.allocUnsafe(k.length+4);k.copy(ee,0,0,k.length);for(var me=0,ce=o[W],le=Math.ceil(V/ce),te=1;te<=le;te++){ee.writeUInt32BE(te,k.length);for(var re=j.run(ee,j.ipad1),pe=re,y=1;y<w;y++){pe=j.run(pe,j.ipad2);for(var i=0;i<ce;i++)re[i]^=pe[i]}re.copy($,me),me+=ce}return $}},4566:(Ze,K,m)=>{var e=m(3502).Buffer;Ze.exports=function(t,v,C){if(e.isBuffer(t))return t;if("string"==typeof t)return e.from(t,v);if(ArrayBuffer.isView(t))return e.from(t.buffer);throw new TypeError(C+" must be a string, a Buffer, a typed array or a DataView")}},3701:(Ze,K,m)=>{K.publicEncrypt=m(6562),K.privateDecrypt=m(6705),K.privateEncrypt=function(t,v){return K.publicEncrypt(t,v,!0)},K.publicDecrypt=function(t,v){return K.privateDecrypt(t,v,!0)}},6945:(Ze,K,m)=>{var e=m(6386),t=m(3502).Buffer;function v(C){var s=t.allocUnsafe(4);return s.writeUInt32BE(C,0),s}Ze.exports=function(C,s){for(var N,M=t.alloc(0),c=0;M.length<s;)N=v(c++),M=t.concat([M,e("sha1").update(C).update(N).digest()]);return M.slice(0,s)}},2057:function(Ze,K,m){!function(e,t){"use strict";function v(y,i){if(!y)throw new Error(i||"Assertion failed")}function C(y,i){y.super_=i;var a=function(){};a.prototype=i.prototype,y.prototype=new a,y.prototype.constructor=y}function s(y,i,a){if(s.isBN(y))return y;this.negative=0,this.words=null,this.length=0,this.red=null,null!==y&&(("le"===i||"be"===i)&&(a=i,i=10),this._init(y||0,i||10,a||"be"))}var M;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{M="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:m(7108).Buffer}catch(y){}function c(y,i){var a=y.charCodeAt(i);return a>=65&&a<=70?a-55:a>=97&&a<=102?a-87:a-48&15}function N(y,i,a){var p=c(y,a);return a-1>=i&&(p|=c(y,a-1)<<4),p}function o(y,i,a,p){for(var u=0,_=Math.min(y.length,a),D=i;D<_;D++){var I=y.charCodeAt(D)-48;u*=p,u+=I>=49?I-49+10:I>=17?I-17+10:I}return u}s.isBN=function(i){return i instanceof s||null!==i&&"object"==typeof i&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,a){return i.cmp(a)>0?i:a},s.min=function(i,a){return i.cmp(a)<0?i:a},s.prototype._init=function(i,a,p){if("number"==typeof i)return this._initNumber(i,a,p);if("object"==typeof i)return this._initArray(i,a,p);"hex"===a&&(a=16),v(a===(0|a)&&a>=2&&a<=36);var u=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u<i.length&&(16===a?this._parseHex(i,u,p):(this._parseBase(i,a,u),"le"===p&&this._initArray(this.toArray(),a,p)))},s.prototype._initNumber=function(i,a,p){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(v(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),"le"===p&&this._initArray(this.toArray(),a,p)},s.prototype._initArray=function(i,a,p){if(v("number"==typeof i.length),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var _,D,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(D=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=D>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(D=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=D>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);return this.strip()},s.prototype._parseHex=function(i,a,p){this.length=Math.ceil((i.length-a)/6),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var I,_=0,D=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=N(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=N(i,a,u)<<_,this.words[D]|=67108863&I,_>=18?(_-=18,this.words[D+=1]|=I>>>26):_+=8;this.strip()},s.prototype._parseBase=function(i,a,p){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=a)u++;u--,_=_/a|0;for(var D=i.length-p,I=D%u,x=Math.min(D,D-I)+p,r=0,b=p;b<x;b+=u)r=o(i,b,b+u,a),this.imuln(_),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(0!==I){var Z=1;for(r=o(i,b,i.length,a),b=0;b<I;b++)Z*=a;this.imuln(Z),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},s.prototype.copy=function(i){i.words=new Array(this.length);for(var a=0;a<this.length;a++)i.words[a]=this.words[a];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var L=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],O=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function k(y,i,a){a.negative=i.negative^y.negative;var p=y.length+i.length|0;a.length=p,p=p-1|0;var u=0|y.words[0],_=0|i.words[0],D=u*_,x=D/67108864|0;a.words[0]=67108863&D;for(var r=1;r<p;r++){for(var b=x>>>26,Z=67108863&x,P=Math.min(r,i.length-1),U=Math.max(0,r-y.length+1);U<=P;U++)b+=(D=(u=0|y.words[r-U|0])*(_=0|i.words[U])+Z)/67108864|0,Z=67108863&D;a.words[r]=0|Z,x=0|b}return 0!==x?a.words[r]=0|x:a.length--,a.strip()}s.prototype.toString=function(i,a){var p;if(a=0|a||1,16===(i=i||10)||"hex"===i){p="";for(var u=0,_=0,D=0;D<this.length;D++){var I=this.words[D],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||D!==this.length-1?L[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,D--)}for(0!==_&&(p=_.toString(16)+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}if(i===(0|i)&&i>=2&&i<=36){var r=O[i],b=A[i];p="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var P=Z.modn(b).toString(i);p=(Z=Z.idivn(b)).isZero()?P+p:L[r-P.length]+P+p}for(this.isZero()&&(p="0"+p);p.length%a!=0;)p="0"+p;return 0!==this.negative&&(p="-"+p),p}v(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(i,a){return v(void 0!==M),this.toArrayLike(M,i,a)},s.prototype.toArray=function(i,a){return this.toArrayLike(Array,i,a)},s.prototype.toArrayLike=function(i,a,p){var u=this.byteLength(),_=p||Math.max(1,u);v(u<=_,"byte array longer than desired length"),v(_>0,"Requested array length <= 0"),this.strip();var x,r,D="le"===a,I=new i(_),b=this.clone();if(D){for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[r]=x;for(;r<_;r++)I[r]=0}else{for(r=0;r<_-u;r++)I[r]=0;for(r=0;!b.isZero();r++)x=b.andln(255),b.iushrn(8),I[_-r-1]=x}return I},s.prototype._countBits=Math.clz32?function(i){return 32-Math.clz32(i)}:function(i){var a=i,p=0;return a>=4096&&(p+=13,a>>>=13),a>=64&&(p+=7,a>>>=7),a>=8&&(p+=4,a>>>=4),a>=2&&(p+=2,a>>>=2),p+a},s.prototype._zeroBits=function(i){if(0===i)return 26;var a=i,p=0;return 0==(8191&a)&&(p+=13,a>>>=13),0==(127&a)&&(p+=7,a>>>=7),0==(15&a)&&(p+=4,a>>>=4),0==(3&a)&&(p+=2,a>>>=2),0==(1&a)&&p++,p},s.prototype.bitLength=function(){var a=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+a},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,a=0;a<this.length;a++){var p=this._zeroBits(this.words[a]);if(i+=p,26!==p)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return 0!==this.negative?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var a=0;a<i.length;a++)this.words[a]=this.words[a]|i.words[a];return this.strip()},s.prototype.ior=function(i){return v(0==(this.negative|i.negative)),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var a;a=this.length>i.length?i:this;for(var p=0;p<a.length;p++)this.words[p]=this.words[p]&i.words[p];return this.length=a.length,this.strip()},s.prototype.iand=function(i){return v(0==(this.negative|i.negative)),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var a,p;this.length>i.length?(a=this,p=i):(a=i,p=this);for(var u=0;u<p.length;u++)this.words[u]=a.words[u]^p.words[u];if(this!==a)for(;u<a.length;u++)this.words[u]=a.words[u];return this.length=a.length,this.strip()},s.prototype.ixor=function(i){return v(0==(this.negative|i.negative)),this.iuxor(i)},s.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){v("number"==typeof i&&i>=0);var a=0|Math.ceil(i/26),p=i%26;this._expand(a),p>0&&a--;for(var u=0;u<a;u++)this.words[u]=67108863&~this.words[u];return p>0&&(this.words[u]=~this.words[u]&67108863>>26-p),this.strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,a){v("number"==typeof i&&i>=0);var p=i/26|0,u=i%26;return this._expand(p+1),this.words[p]=a?this.words[p]|1<<u:this.words[p]&~(1<<u),this.strip()},s.prototype.iadd=function(i){var a,p,u;if(0!==this.negative&&0===i.negative)return this.negative=0,a=this.isub(i),this.negative^=1,this._normSign();if(0===this.negative&&0!==i.negative)return i.negative=0,a=this.isub(i),i.negative=1,a._normSign();this.length>i.length?(p=this,u=i):(p=i,u=this);for(var _=0,D=0;D<u.length;D++)this.words[D]=67108863&(a=(0|p.words[D])+(0|u.words[D])+_),_=a>>>26;for(;0!==_&&D<p.length;D++)this.words[D]=67108863&(a=(0|p.words[D])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;D<p.length;D++)this.words[D]=p.words[D];return this},s.prototype.add=function(i){var a;return 0!==i.negative&&0===this.negative?(i.negative=0,a=this.sub(i),i.negative^=1,a):0===i.negative&&0!==this.negative?(this.negative=0,a=i.sub(this),this.negative=1,a):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var a=this.iadd(i);return i.negative=1,a._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var u,_,p=this.cmp(i);if(0===p)return this.negative=0,this.length=1,this.words[0]=0,this;p>0?(u=this,_=i):(u=i,_=this);for(var D=0,I=0;I<_.length;I++)D=(a=(0|u.words[I])-(0|_.words[I])+D)>>26,this.words[I]=67108863&a;for(;0!==D&&I<u.length;I++)D=(a=(0|u.words[I])+D)>>26,this.words[I]=67108863&a;if(0===D&&I<u.length&&u!==this)for(;I<u.length;I++)this.words[I]=u.words[I];return this.length=Math.max(this.length,I),u!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var w=function(i,a,p){var x,r,b,u=i.words,_=a.words,D=p.words,I=0,Z=0|u[0],P=8191&Z,U=Z>>>13,ye=0|u[1],xe=8191&ye,Ne=ye>>>13,Be=0|u[2],Oe=8191&Be,B=Be>>>13,Me=0|u[3],we=8191&Me,ae=Me>>>13,We=0|u[4],vt=8191&We,Pe=We>>>13,Ve=0|u[5],he=8191&Ve,Ee=Ve>>>13,ke=0|u[6],q=8191&ke,J=ke>>>13,oe=0|u[7],Ce=8191&oe,Ue=oe>>>13,ht=0|u[8],it=8191&ht,ft=ht>>>13,nt=0|u[9],st=8191&nt,wt=nt>>>13,Bt=0|_[0],Pt=8191&Bt,Vt=Bt>>>13,Oi=0|_[1],jt=8191&Oi,ti=Oi>>>13,Pi=0|_[2],si=8191&Pi,di=Pi>>>13,ze=0|_[3],Te=8191&ze,Y=ze>>>13,ge=0|_[4],Ae=8191&ge,et=ge>>>13,$t=0|_[5],Nt=8191&$t,Xt=$t>>>13,lt=0|_[6],Re=8191&lt,Fe=lt>>>13,rt=0|_[7],ot=8191&rt,At=rt>>>13,li=0|_[8],Ut=8191&li,Ft=li>>>13,Si=0|_[9],ai=8191&Si,ci=Si>>>13;p.negative=i.negative^a.negative,p.length=19;var rn=(I+(x=Math.imul(P,Pt))|0)+((8191&(r=(r=Math.imul(P,Vt))+Math.imul(U,Pt)|0))<<13)|0;I=((b=Math.imul(U,Vt))+(r>>>13)|0)+(rn>>>26)|0,rn&=67108863,x=Math.imul(xe,Pt),r=(r=Math.imul(xe,Vt))+Math.imul(Ne,Pt)|0,b=Math.imul(Ne,Vt);var Vi=(I+(x=x+Math.imul(P,jt)|0)|0)+((8191&(r=(r=r+Math.imul(P,ti)|0)+Math.imul(U,jt)|0))<<13)|0;I=((b=b+Math.imul(U,ti)|0)+(r>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,x=Math.imul(Oe,Pt),r=(r=Math.imul(Oe,Vt))+Math.imul(B,Pt)|0,b=Math.imul(B,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ti)|0)+Math.imul(Ne,jt)|0,b=b+Math.imul(Ne,ti)|0;var Di=(I+(x=x+Math.imul(P,si)|0)|0)+((8191&(r=(r=r+Math.imul(P,di)|0)+Math.imul(U,si)|0))<<13)|0;I=((b=b+Math.imul(U,di)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(we,Pt),r=(r=Math.imul(we,Vt))+Math.imul(ae,Pt)|0,b=Math.imul(ae,Vt),x=x+Math.imul(Oe,jt)|0,r=(r=r+Math.imul(Oe,ti)|0)+Math.imul(B,jt)|0,b=b+Math.imul(B,ti)|0,x=x+Math.imul(xe,si)|0,r=(r=r+Math.imul(xe,di)|0)+Math.imul(Ne,si)|0,b=b+Math.imul(Ne,di)|0;var Xi=(I+(x=x+Math.imul(P,Te)|0)|0)+((8191&(r=(r=r+Math.imul(P,Y)|0)+Math.imul(U,Te)|0))<<13)|0;I=((b=b+Math.imul(U,Y)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(vt,Pt),r=(r=Math.imul(vt,Vt))+Math.imul(Pe,Pt)|0,b=Math.imul(Pe,Vt),x=x+Math.imul(we,jt)|0,r=(r=r+Math.imul(we,ti)|0)+Math.imul(ae,jt)|0,b=b+Math.imul(ae,ti)|0,x=x+Math.imul(Oe,si)|0,r=(r=r+Math.imul(Oe,di)|0)+Math.imul(B,si)|0,b=b+Math.imul(B,di)|0,x=x+Math.imul(xe,Te)|0,r=(r=r+Math.imul(xe,Y)|0)+Math.imul(Ne,Te)|0,b=b+Math.imul(Ne,Y)|0;var Ke=(I+(x=x+Math.imul(P,Ae)|0)|0)+((8191&(r=(r=r+Math.imul(P,et)|0)+Math.imul(U,Ae)|0))<<13)|0;I=((b=b+Math.imul(U,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(he,Pt),r=(r=Math.imul(he,Vt))+Math.imul(Ee,Pt)|0,b=Math.imul(Ee,Vt),x=x+Math.imul(vt,jt)|0,r=(r=r+Math.imul(vt,ti)|0)+Math.imul(Pe,jt)|0,b=b+Math.imul(Pe,ti)|0,x=x+Math.imul(we,si)|0,r=(r=r+Math.imul(we,di)|0)+Math.imul(ae,si)|0,b=b+Math.imul(ae,di)|0,x=x+Math.imul(Oe,Te)|0,r=(r=r+Math.imul(Oe,Y)|0)+Math.imul(B,Te)|0,b=b+Math.imul(B,Y)|0,x=x+Math.imul(xe,Ae)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Ne,Ae)|0,b=b+Math.imul(Ne,et)|0;var mt=(I+(x=x+Math.imul(P,Nt)|0)|0)+((8191&(r=(r=r+Math.imul(P,Xt)|0)+Math.imul(U,Nt)|0))<<13)|0;I=((b=b+Math.imul(U,Xt)|0)+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(q,Pt),r=(r=Math.imul(q,Vt))+Math.imul(J,Pt)|0,b=Math.imul(J,Vt),x=x+Math.imul(he,jt)|0,r=(r=r+Math.imul(he,ti)|0)+Math.imul(Ee,jt)|0,b=b+Math.imul(Ee,ti)|0,x=x+Math.imul(vt,si)|0,r=(r=r+Math.imul(vt,di)|0)+Math.imul(Pe,si)|0,b=b+Math.imul(Pe,di)|0,x=x+Math.imul(we,Te)|0,r=(r=r+Math.imul(we,Y)|0)+Math.imul(ae,Te)|0,b=b+Math.imul(ae,Y)|0,x=x+Math.imul(Oe,Ae)|0,r=(r=r+Math.imul(Oe,et)|0)+Math.imul(B,Ae)|0,b=b+Math.imul(B,et)|0,x=x+Math.imul(xe,Nt)|0,r=(r=r+Math.imul(xe,Xt)|0)+Math.imul(Ne,Nt)|0,b=b+Math.imul(Ne,Xt)|0;var ve=(I+(x=x+Math.imul(P,Re)|0)|0)+((8191&(r=(r=r+Math.imul(P,Fe)|0)+Math.imul(U,Re)|0))<<13)|0;I=((b=b+Math.imul(U,Fe)|0)+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,x=Math.imul(Ce,Pt),r=(r=Math.imul(Ce,Vt))+Math.imul(Ue,Pt)|0,b=Math.imul(Ue,Vt),x=x+Math.imul(q,jt)|0,r=(r=r+Math.imul(q,ti)|0)+Math.imul(J,jt)|0,b=b+Math.imul(J,ti)|0,x=x+Math.imul(he,si)|0,r=(r=r+Math.imul(he,di)|0)+Math.imul(Ee,si)|0,b=b+Math.imul(Ee,di)|0,x=x+Math.imul(vt,Te)|0,r=(r=r+Math.imul(vt,Y)|0)+Math.imul(Pe,Te)|0,b=b+Math.imul(Pe,Y)|0,x=x+Math.imul(we,Ae)|0,r=(r=r+Math.imul(we,et)|0)+Math.imul(ae,Ae)|0,b=b+Math.imul(ae,et)|0,x=x+Math.imul(Oe,Nt)|0,r=(r=r+Math.imul(Oe,Xt)|0)+Math.imul(B,Nt)|0,b=b+Math.imul(B,Xt)|0,x=x+Math.imul(xe,Re)|0,r=(r=r+Math.imul(xe,Fe)|0)+Math.imul(Ne,Re)|0,b=b+Math.imul(Ne,Fe)|0;var qe=(I+(x=x+Math.imul(P,ot)|0)|0)+((8191&(r=(r=r+Math.imul(P,At)|0)+Math.imul(U,ot)|0))<<13)|0;I=((b=b+Math.imul(U,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(it,Pt),r=(r=Math.imul(it,Vt))+Math.imul(ft,Pt)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Ce,jt)|0,r=(r=r+Math.imul(Ce,ti)|0)+Math.imul(Ue,jt)|0,b=b+Math.imul(Ue,ti)|0,x=x+Math.imul(q,si)|0,r=(r=r+Math.imul(q,di)|0)+Math.imul(J,si)|0,b=b+Math.imul(J,di)|0,x=x+Math.imul(he,Te)|0,r=(r=r+Math.imul(he,Y)|0)+Math.imul(Ee,Te)|0,b=b+Math.imul(Ee,Y)|0,x=x+Math.imul(vt,Ae)|0,r=(r=r+Math.imul(vt,et)|0)+Math.imul(Pe,Ae)|0,b=b+Math.imul(Pe,et)|0,x=x+Math.imul(we,Nt)|0,r=(r=r+Math.imul(we,Xt)|0)+Math.imul(ae,Nt)|0,b=b+Math.imul(ae,Xt)|0,x=x+Math.imul(Oe,Re)|0,r=(r=r+Math.imul(Oe,Fe)|0)+Math.imul(B,Re)|0,b=b+Math.imul(B,Fe)|0,x=x+Math.imul(xe,ot)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Ne,ot)|0,b=b+Math.imul(Ne,At)|0;var _t=(I+(x=x+Math.imul(P,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(P,Ft)|0)+Math.imul(U,Ut)|0))<<13)|0;I=((b=b+Math.imul(U,Ft)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(st,Pt),r=(r=Math.imul(st,Vt))+Math.imul(wt,Pt)|0,b=Math.imul(wt,Vt),x=x+Math.imul(it,jt)|0,r=(r=r+Math.imul(it,ti)|0)+Math.imul(ft,jt)|0,b=b+Math.imul(ft,ti)|0,x=x+Math.imul(Ce,si)|0,r=(r=r+Math.imul(Ce,di)|0)+Math.imul(Ue,si)|0,b=b+Math.imul(Ue,di)|0,x=x+Math.imul(q,Te)|0,r=(r=r+Math.imul(q,Y)|0)+Math.imul(J,Te)|0,b=b+Math.imul(J,Y)|0,x=x+Math.imul(he,Ae)|0,r=(r=r+Math.imul(he,et)|0)+Math.imul(Ee,Ae)|0,b=b+Math.imul(Ee,et)|0,x=x+Math.imul(vt,Nt)|0,r=(r=r+Math.imul(vt,Xt)|0)+Math.imul(Pe,Nt)|0,b=b+Math.imul(Pe,Xt)|0,x=x+Math.imul(we,Re)|0,r=(r=r+Math.imul(we,Fe)|0)+Math.imul(ae,Re)|0,b=b+Math.imul(ae,Fe)|0,x=x+Math.imul(Oe,ot)|0,r=(r=r+Math.imul(Oe,At)|0)+Math.imul(B,ot)|0,b=b+Math.imul(B,At)|0,x=x+Math.imul(xe,Ut)|0,r=(r=r+Math.imul(xe,Ft)|0)+Math.imul(Ne,Ut)|0,b=b+Math.imul(Ne,Ft)|0;var ue=(I+(x=x+Math.imul(P,ai)|0)|0)+((8191&(r=(r=r+Math.imul(P,ci)|0)+Math.imul(U,ai)|0))<<13)|0;I=((b=b+Math.imul(U,ci)|0)+(r>>>13)|0)+(ue>>>26)|0,ue&=67108863,x=Math.imul(st,jt),r=(r=Math.imul(st,ti))+Math.imul(wt,jt)|0,b=Math.imul(wt,ti),x=x+Math.imul(it,si)|0,r=(r=r+Math.imul(it,di)|0)+Math.imul(ft,si)|0,b=b+Math.imul(ft,di)|0,x=x+Math.imul(Ce,Te)|0,r=(r=r+Math.imul(Ce,Y)|0)+Math.imul(Ue,Te)|0,b=b+Math.imul(Ue,Y)|0,x=x+Math.imul(q,Ae)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul(J,Ae)|0,b=b+Math.imul(J,et)|0,x=x+Math.imul(he,Nt)|0,r=(r=r+Math.imul(he,Xt)|0)+Math.imul(Ee,Nt)|0,b=b+Math.imul(Ee,Xt)|0,x=x+Math.imul(vt,Re)|0,r=(r=r+Math.imul(vt,Fe)|0)+Math.imul(Pe,Re)|0,b=b+Math.imul(Pe,Fe)|0,x=x+Math.imul(we,ot)|0,r=(r=r+Math.imul(we,At)|0)+Math.imul(ae,ot)|0,b=b+Math.imul(ae,At)|0,x=x+Math.imul(Oe,Ut)|0,r=(r=r+Math.imul(Oe,Ft)|0)+Math.imul(B,Ut)|0,b=b+Math.imul(B,Ft)|0;var $e=(I+(x=x+Math.imul(xe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Ne,ai)|0))<<13)|0;I=((b=b+Math.imul(Ne,ci)|0)+(r>>>13)|0)+($e>>>26)|0,$e&=67108863,x=Math.imul(st,si),r=(r=Math.imul(st,di))+Math.imul(wt,si)|0,b=Math.imul(wt,di),x=x+Math.imul(it,Te)|0,r=(r=r+Math.imul(it,Y)|0)+Math.imul(ft,Te)|0,b=b+Math.imul(ft,Y)|0,x=x+Math.imul(Ce,Ae)|0,r=(r=r+Math.imul(Ce,et)|0)+Math.imul(Ue,Ae)|0,b=b+Math.imul(Ue,et)|0,x=x+Math.imul(q,Nt)|0,r=(r=r+Math.imul(q,Xt)|0)+Math.imul(J,Nt)|0,b=b+Math.imul(J,Xt)|0,x=x+Math.imul(he,Re)|0,r=(r=r+Math.imul(he,Fe)|0)+Math.imul(Ee,Re)|0,b=b+Math.imul(Ee,Fe)|0,x=x+Math.imul(vt,ot)|0,r=(r=r+Math.imul(vt,At)|0)+Math.imul(Pe,ot)|0,b=b+Math.imul(Pe,At)|0,x=x+Math.imul(we,Ut)|0,r=(r=r+Math.imul(we,Ft)|0)+Math.imul(ae,Ut)|0,b=b+Math.imul(ae,Ft)|0;var St=(I+(x=x+Math.imul(Oe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Oe,ci)|0)+Math.imul(B,ai)|0))<<13)|0;I=((b=b+Math.imul(B,ci)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,x=Math.imul(st,Te),r=(r=Math.imul(st,Y))+Math.imul(wt,Te)|0,b=Math.imul(wt,Y),x=x+Math.imul(it,Ae)|0,r=(r=r+Math.imul(it,et)|0)+Math.imul(ft,Ae)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Ce,Nt)|0,r=(r=r+Math.imul(Ce,Xt)|0)+Math.imul(Ue,Nt)|0,b=b+Math.imul(Ue,Xt)|0,x=x+Math.imul(q,Re)|0,r=(r=r+Math.imul(q,Fe)|0)+Math.imul(J,Re)|0,b=b+Math.imul(J,Fe)|0,x=x+Math.imul(he,ot)|0,r=(r=r+Math.imul(he,At)|0)+Math.imul(Ee,ot)|0,b=b+Math.imul(Ee,At)|0,x=x+Math.imul(vt,Ut)|0,r=(r=r+Math.imul(vt,Ft)|0)+Math.imul(Pe,Ut)|0,b=b+Math.imul(Pe,Ft)|0;var Rt=(I+(x=x+Math.imul(we,ai)|0)|0)+((8191&(r=(r=r+Math.imul(we,ci)|0)+Math.imul(ae,ai)|0))<<13)|0;I=((b=b+Math.imul(ae,ci)|0)+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,x=Math.imul(st,Ae),r=(r=Math.imul(st,et))+Math.imul(wt,Ae)|0,b=Math.imul(wt,et),x=x+Math.imul(it,Nt)|0,r=(r=r+Math.imul(it,Xt)|0)+Math.imul(ft,Nt)|0,b=b+Math.imul(ft,Xt)|0,x=x+Math.imul(Ce,Re)|0,r=(r=r+Math.imul(Ce,Fe)|0)+Math.imul(Ue,Re)|0,b=b+Math.imul(Ue,Fe)|0,x=x+Math.imul(q,ot)|0,r=(r=r+Math.imul(q,At)|0)+Math.imul(J,ot)|0,b=b+Math.imul(J,At)|0,x=x+Math.imul(he,Ut)|0,r=(r=r+Math.imul(he,Ft)|0)+Math.imul(Ee,Ut)|0,b=b+Math.imul(Ee,Ft)|0;var yi=(I+(x=x+Math.imul(vt,ai)|0)|0)+((8191&(r=(r=r+Math.imul(vt,ci)|0)+Math.imul(Pe,ai)|0))<<13)|0;I=((b=b+Math.imul(Pe,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(st,Nt),r=(r=Math.imul(st,Xt))+Math.imul(wt,Nt)|0,b=Math.imul(wt,Xt),x=x+Math.imul(it,Re)|0,r=(r=r+Math.imul(it,Fe)|0)+Math.imul(ft,Re)|0,b=b+Math.imul(ft,Fe)|0,x=x+Math.imul(Ce,ot)|0,r=(r=r+Math.imul(Ce,At)|0)+Math.imul(Ue,ot)|0,b=b+Math.imul(Ue,At)|0,x=x+Math.imul(q,Ut)|0,r=(r=r+Math.imul(q,Ft)|0)+Math.imul(J,Ut)|0,b=b+Math.imul(J,Ft)|0;var Ri=(I+(x=x+Math.imul(he,ai)|0)|0)+((8191&(r=(r=r+Math.imul(he,ci)|0)+Math.imul(Ee,ai)|0))<<13)|0;I=((b=b+Math.imul(Ee,ci)|0)+(r>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,x=Math.imul(st,Re),r=(r=Math.imul(st,Fe))+Math.imul(wt,Re)|0,b=Math.imul(wt,Fe),x=x+Math.imul(it,ot)|0,r=(r=r+Math.imul(it,At)|0)+Math.imul(ft,ot)|0,b=b+Math.imul(ft,At)|0,x=x+Math.imul(Ce,Ut)|0,r=(r=r+Math.imul(Ce,Ft)|0)+Math.imul(Ue,Ut)|0,b=b+Math.imul(Ue,Ft)|0;var Ii=(I+(x=x+Math.imul(q,ai)|0)|0)+((8191&(r=(r=r+Math.imul(q,ci)|0)+Math.imul(J,ai)|0))<<13)|0;I=((b=b+Math.imul(J,ci)|0)+(r>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,x=Math.imul(st,ot),r=(r=Math.imul(st,At))+Math.imul(wt,ot)|0,b=Math.imul(wt,At),x=x+Math.imul(it,Ut)|0,r=(r=r+Math.imul(it,Ft)|0)+Math.imul(ft,Ut)|0,b=b+Math.imul(ft,Ft)|0;var Ki=(I+(x=x+Math.imul(Ce,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Ce,ci)|0)+Math.imul(Ue,ai)|0))<<13)|0;I=((b=b+Math.imul(Ue,ci)|0)+(r>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,x=Math.imul(st,Ut),r=(r=Math.imul(st,Ft))+Math.imul(wt,Ut)|0,b=Math.imul(wt,Ft);var at=(I+(x=x+Math.imul(it,ai)|0)|0)+((8191&(r=(r=r+Math.imul(it,ci)|0)+Math.imul(ft,ai)|0))<<13)|0;I=((b=b+Math.imul(ft,ci)|0)+(r>>>13)|0)+(at>>>26)|0,at&=67108863;var Qt=(I+(x=Math.imul(st,ai))|0)+((8191&(r=(r=Math.imul(st,ci))+Math.imul(wt,ai)|0))<<13)|0;return I=((b=Math.imul(wt,ci))+(r>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,D[0]=rn,D[1]=Vi,D[2]=Di,D[3]=Xi,D[4]=Ke,D[5]=mt,D[6]=ve,D[7]=qe,D[8]=_t,D[9]=ue,D[10]=$e,D[11]=St,D[12]=Rt,D[13]=yi,D[14]=Ri,D[15]=Ii,D[16]=Ki,D[17]=at,D[18]=Qt,0!==I&&(D[19]=I,p.length++),p};function W(y,i,a){return(new j).mulp(y,i,a)}function j(y,i){this.x=y,this.y=i}Math.imul||(w=k),s.prototype.mulTo=function(i,a){var p,u=this.length+i.length;return p=10===this.length&&10===i.length?w(this,i,a):u<63?k(this,i,a):u<1024?function(y,i,a){a.negative=i.negative^y.negative,a.length=y.length+i.length;for(var p=0,u=0,_=0;_<a.length-1;_++){var D=u;u=0;for(var I=67108863&p,x=Math.min(_,i.length-1),r=Math.max(0,_-y.length+1);r<=x;r++){var U=(0|y.words[_-r])*(0|i.words[r]),ye=67108863&U;I=67108863&(ye=ye+I|0),u+=(D=(D=D+(U/67108864|0)|0)+(ye>>>26)|0)>>>26,D&=67108863}a.words[_]=I,p=D,D=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):W(this,i,a),p},j.prototype.makeRBT=function(i){for(var a=new Array(i),p=s.prototype._countBits(i)-1,u=0;u<i;u++)a[u]=this.revBin(u,p,i);return a},j.prototype.revBin=function(i,a,p){if(0===i||i===p-1)return i;for(var u=0,_=0;_<a;_++)u|=(1&i)<<a-_-1,i>>=1;return u},j.prototype.permute=function(i,a,p,u,_,D){for(var I=0;I<D;I++)u[I]=a[i[I]],_[I]=p[i[I]]},j.prototype.transform=function(i,a,p,u,_,D){this.permute(D,i,a,p,u,_);for(var I=1;I<_;I<<=1)for(var x=I<<1,r=Math.cos(2*Math.PI/x),b=Math.sin(2*Math.PI/x),Z=0;Z<_;Z+=x)for(var P=r,U=b,ye=0;ye<I;ye++){var xe=p[Z+ye],Ne=u[Z+ye],Be=p[Z+ye+I],Oe=u[Z+ye+I],B=P*Be-U*Oe;Oe=P*Oe+U*Be,p[Z+ye]=xe+(Be=B),u[Z+ye]=Ne+Oe,p[Z+ye+I]=xe-Be,u[Z+ye+I]=Ne-Oe,ye!==x&&(B=r*P-b*U,U=r*U+b*P,P=B)}},j.prototype.guessLen13b=function(i,a){var p=1|Math.max(a,i),u=1&p,_=0;for(p=p/2|0;p;p>>>=1)_++;return 1<<_+1+u},j.prototype.conjugate=function(i,a,p){if(!(p<=1))for(var u=0;u<p/2;u++){var _=i[u];i[u]=i[p-u-1],i[p-u-1]=_,_=a[u],a[u]=-a[p-u-1],a[p-u-1]=-_}},j.prototype.normalize13b=function(i,a){for(var p=0,u=0;u<a/2;u++){var _=8192*Math.round(i[2*u+1]/a)+Math.round(i[2*u]/a)+p;i[u]=67108863&_,p=_<67108864?0:_/67108864|0}return i},j.prototype.convert13b=function(i,a,p,u){for(var _=0,D=0;D<a;D++)p[2*D]=8191&(_+=0|i[D]),p[2*D+1]=8191&(_>>>=13),_>>>=13;for(D=2*a;D<u;++D)p[D]=0;v(0===_),v(0==(-8192&_))},j.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},j.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),D=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),b=new Array(u),Z=new Array(u),P=new Array(u),U=p.words;U.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,b,u),this.transform(I,D,x,r,u,_),this.transform(b,D,Z,P,u,_);for(var ye=0;ye<u;ye++){var xe=x[ye]*Z[ye]-r[ye]*P[ye];r[ye]=x[ye]*P[ye]+r[ye]*Z[ye],x[ye]=xe}return this.conjugate(x,r,u),this.transform(x,r,U,D,u,_),this.conjugate(U,D,u),this.normalize13b(U,u),p.negative=i.negative^a.negative,p.length=i.length+a.length,p.strip()},s.prototype.mul=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),this.mulTo(i,a)},s.prototype.mulf=function(i){var a=new s(null);return a.words=new Array(this.length+i.length),W(this,i,a)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){v("number"==typeof i),v(i<67108864);for(var a=0,p=0;p<this.length;p++){var u=(0|this.words[p])*i,_=(67108863&u)+(67108863&a);a>>=26,a+=u/67108864|0,a+=_>>>26,this.words[p]=67108863&_}return 0!==a&&(this.words[p]=a,this.length++),this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var a=function(y){for(var i=new Array(y.bitLength()),a=0;a<i.length;a++){var u=a%26;i[a]=(y.words[a/26|0]&1<<u)>>>u}return i}(i);if(0===a.length)return new s(1);for(var p=this,u=0;u<a.length&&0===a[u];u++,p=p.sqr());if(++u<a.length)for(var _=p.sqr();u<a.length;u++,_=_.sqr())0!==a[u]&&(p=p.mul(_));return p},s.prototype.iushln=function(i){v("number"==typeof i&&i>=0);var _,a=i%26,p=(i-a)/26,u=67108863>>>26-a<<26-a;if(0!==a){var D=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|D,D=I>>>26-a}D&&(this.words[_]=D,this.length++)}if(0!==p){for(_=this.length-1;_>=0;_--)this.words[_+p]=this.words[_];for(_=0;_<p;_++)this.words[_]=0;this.length+=p}return this.strip()},s.prototype.ishln=function(i){return v(0===this.negative),this.iushln(i)},s.prototype.iushrn=function(i,a,p){var u;v("number"==typeof i&&i>=0),u=a?(a-a%26)/26:0;var _=i%26,D=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=D,u=Math.max(0,u),x){for(var r=0;r<D;r++)x.words[r]=this.words[r];x.length=D}if(0!==D)if(this.length>D)for(this.length-=D,r=0;r<this.length;r++)this.words[r]=this.words[r+D];else this.words[0]=0,this.length=1;var b=0;for(r=this.length-1;r>=0&&(0!==b||r>=u);r--){var Z=0|this.words[r];this.words[r]=b<<26-_|Z>>>_,b=Z&I}return x&&0!==b&&(x.words[x.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(i,a,p){return v(0===this.negative),this.iushrn(i,a,p)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return!(this.length<=p||!(this.words[p]&1<<a))},s.prototype.imaskn=function(i){v("number"==typeof i&&i>=0);var a=i%26,p=(i-a)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=p?this:(0!==a&&p++,this.length=Math.min(p,this.length),0!==a&&(this.words[this.length-1]&=67108863^67108863>>>a<<a),this.strip())},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return v("number"==typeof i),v(i<67108864),i<0?this.isubn(-i):0!==this.negative?1===this.length&&(0|this.words[0])<i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var a=0;a<this.length&&this.words[a]>=67108864;a++)this.words[a]-=67108864,a===this.length-1?this.words[a+1]=1:this.words[a+1]++;return this.length=Math.max(this.length,a+1),this},s.prototype.isubn=function(i){if(v("number"==typeof i),v(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var a=0;a<this.length&&this.words[a]<0;a++)this.words[a]+=67108864,this.words[a+1]-=1;return this.strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,a,p){var _;this._expand(i.length+p);var D,I=0;for(_=0;_<i.length;_++){D=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((D-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&D}for(;_<this.length-p;_++)I=(D=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&D;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_<this.length;_++)I=(D=-(0|this.words[_])+I)>>26,this.words[_]=67108863&D;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,D=0|_.words[_.length-1];0!=(p=26-this._countBits(D))&&(_=_.ushln(p),u.iushln(p),D=0|_.words[_.length-1]);var r,x=u.length-_.length;if("mod"!==a){(r=new s(null)).length=x+1,r.words=new Array(r.length);for(var b=0;b<r.length;b++)r.words[b]=0}var Z=u.clone()._ishlnsubmul(_,1,x);0===Z.negative&&(u=Z,r&&(r.words[x]=1));for(var P=x-1;P>=0;P--){var U=67108864*(0|u.words[_.length+P])+(0|u.words[_.length+P-1]);for(U=Math.min(U/D|0,67108863),u._ishlnsubmul(_,U,P);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,P),u.isZero()||(u.negative^=1);r&&(r.words[P]=U)}return r&&r.strip(),u.strip(),"div"!==a&&0!==p&&u.iushrn(p),{div:r||null,mod:u}},s.prototype.divmod=function(i,a,p){return v(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===i.negative?(D=this.neg().divmod(i,a),"mod"!==a&&(u=D.div.neg()),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(D=this.divmod(i.neg(),a),"mod"!==a&&(u=D.div.neg()),{div:u,mod:D.mod}):0!=(this.negative&i.negative)?(D=this.neg().divmod(i.neg(),a),"div"!==a&&(_=D.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:D.div,mod:_}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:1===i.length?"div"===a?{div:this.divn(i.words[0]),mod:null}:"mod"===a?{div:null,mod:new s(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modn(i.words[0]))}:this._wordDiv(i,a);var u,_,D},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var a=this.divmod(i);if(a.mod.isZero())return a.div;var p=0!==a.div.negative?a.mod.isub(i):a.mod,u=i.ushrn(1),_=i.andln(1),D=p.cmp(u);return D<0||1===_&&0===D?a.div:0!==a.div.negative?a.div.isubn(1):a.div.iaddn(1)},s.prototype.modn=function(i){v(i<=67108863);for(var a=(1<<26)%i,p=0,u=this.length-1;u>=0;u--)p=(a*p+(0|this.words[u]))%i;return p},s.prototype.idivn=function(i){v(i<=67108863);for(var a=0,p=this.length-1;p>=0;p--){var u=(0|this.words[p])+67108864*a;this.words[p]=u/i|0,a=u%i}return this.strip()},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){v(0===i.negative),v(!i.isZero());var a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),D=new s(0),I=new s(1),x=0;a.isEven()&&p.isEven();)a.iushrn(1),p.iushrn(1),++x;for(var r=p.clone(),b=a.clone();!a.isZero();){for(var Z=0,P=1;0==(a.words[0]&P)&&Z<26;++Z,P<<=1);if(Z>0)for(a.iushrn(Z);Z-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var U=0,ye=1;0==(p.words[0]&ye)&&U<26;++U,ye<<=1);if(U>0)for(p.iushrn(U);U-- >0;)(D.isOdd()||I.isOdd())&&(D.iadd(r),I.isub(b)),D.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(D),_.isub(I)):(p.isub(a),D.isub(u),I.isub(_))}return{a:D,b:I,gcd:p.iushln(x)}},s.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var Z,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),D=p.clone();a.cmpn(1)>0&&p.cmpn(1)>0;){for(var I=0,x=1;0==(a.words[0]&x)&&I<26;++I,x<<=1);if(I>0)for(a.iushrn(I);I-- >0;)u.isOdd()&&u.iadd(D),u.iushrn(1);for(var r=0,b=1;0==(p.words[0]&b)&&r<26;++r,b<<=1);if(r>0)for(p.iushrn(r);r-- >0;)_.isOdd()&&_.iadd(D),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(Z=0===a.cmpn(1)?u:_).cmpn(0)<0&&Z.iadd(i),Z},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var a=this.clone(),p=i.clone();a.negative=0,p.negative=0;for(var u=0;a.isEven()&&p.isEven();u++)a.iushrn(1),p.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;p.isEven();)p.iushrn(1);var _=a.cmp(p);if(_<0){var D=a;a=p,p=D}else if(0===_||0===p.cmpn(1))break;a.isub(p)}return p.iushln(u)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){v("number"==typeof i);var a=i%26,p=(i-a)/26,u=1<<a;if(this.length<=p)return this._expand(p+1),this.words[p]|=u,this;for(var _=u,D=p;0!==_&&D<this.length;D++){var I=0|this.words[D];_=(I+=_)>>>26,this.words[D]=I&=67108863}return 0!==_&&(this.words[D]=_,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(i){var p,a=i<0;if(0!==this.negative&&!a)return-1;if(0===this.negative&&a)return 1;if(this.strip(),this.length>1)p=1;else{a&&(i=-i),v(i<=67108863,"Number is too big");var u=0|this.words[0];p=u===i?0:u<i?-1:1}return 0!==this.negative?0|-p:p},s.prototype.cmp=function(i){if(0!==this.negative&&0===i.negative)return-1;if(0===this.negative&&0!==i.negative)return 1;var a=this.ucmp(i);return 0!==this.negative?0|-a:a},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var a=0,p=this.length-1;p>=0;p--){var u=0|this.words[p],_=0|i.words[p];if(u!==_){u<_?a=-1:u>_&&(a=1);break}}return a},s.prototype.gtn=function(i){return 1===this.cmpn(i)},s.prototype.gt=function(i){return 1===this.cmp(i)},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return-1===this.cmpn(i)},s.prototype.lt=function(i){return-1===this.cmp(i)},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return 0===this.cmpn(i)},s.prototype.eq=function(i){return 0===this.cmp(i)},s.red=function(i){return new re(i)},s.prototype.toRed=function(i){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return v(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return v(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var $={k256:null,p224:null,p192:null,p25519:null};function ee(y,i){this.name=y,this.p=new s(i,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function me(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ce(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function le(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function te(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function re(y){if("string"==typeof y){var i=s._prime(y);this.m=i.p,this.prime=i}else v(y.gtn(1),"modulus must be greater than 1"),this.m=y,this.prime=null}function pe(y){re.call(this,y),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ee.prototype._tmp=function(){var i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var p,a=i;do{this.split(a,this.tmp),p=(a=(a=this.imulK(a)).iadd(this.tmp)).bitLength()}while(p>this.n);var u=p<this.n?-1:a.ucmp(this.p);return 0===u?(a.words[0]=0,a.length=1):u>0?a.isub(this.p):void 0!==a.strip?a.strip():a._strip(),a},ee.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ee.prototype.imulK=function(i){return i.imul(this.k)},C(me,ee),me.prototype.split=function(i,a){for(var p=4194303,u=Math.min(i.length,9),_=0;_<u;_++)a.words[_]=i.words[_];if(a.length=u,i.length<=9)return i.words[0]=0,void(i.length=1);var D=i.words[9];for(a.words[a.length++]=D&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|D>>>22,D=I}i.words[_-10]=D>>>=22,i.length-=0===D&&i.length>10?10:9},me.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var a=0,p=0;p<i.length;p++){var u=0|i.words[p];i.words[p]=67108863&(a+=977*u),a=64*u+(a/67108864|0)}return 0===i.words[i.length-1]&&(i.length--,0===i.words[i.length-1]&&i.length--),i},C(ce,ee),C(le,ee),C(te,ee),te.prototype.imulK=function(i){for(var a=0,p=0;p<i.length;p++){var u=19*(0|i.words[p])+a,_=67108863&u;u>>>=26,i.words[p]=_,a=u}return 0!==a&&(i.words[i.length++]=a),i},s._prime=function(i){if($[i])return $[i];var a;if("k256"===i)a=new me;else if("p224"===i)a=new ce;else if("p192"===i)a=new le;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new te}return $[i]=a,a},re.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},re.prototype._verify2=function(i,a){v(0==(i.negative|a.negative),"red works only with positives"),v(i.red&&i.red===a.red,"red works only with red numbers")},re.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},re.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},re.prototype.add=function(i,a){this._verify2(i,a);var p=i.add(a);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},re.prototype.iadd=function(i,a){this._verify2(i,a);var p=i.iadd(a);return p.cmp(this.m)>=0&&p.isub(this.m),p},re.prototype.sub=function(i,a){this._verify2(i,a);var p=i.sub(a);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},re.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},re.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},re.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},re.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},re.prototype.isqr=function(i){return this.imul(i,i.clone())},re.prototype.sqr=function(i){return this.mul(i,i)},re.prototype.sqrt=function(i){if(i.isZero())return i.clone();var a=this.m.andln(3);if(v(a%2==1),3===a){var p=this.m.add(new s(1)).iushrn(2);return this.pow(i,p)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);v(!u.isZero());var D=new s(1).toRed(this),I=D.redNeg(),x=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new s(2*r*r).toRed(this);0!==this.pow(r,x).cmp(I);)r.redIAdd(I);for(var b=this.pow(r,u),Z=this.pow(i,u.addn(1).iushrn(1)),P=this.pow(i,u),U=_;0!==P.cmp(D);){for(var ye=P,xe=0;0!==ye.cmp(D);xe++)ye=ye.redSqr();v(xe<U);var Ne=this.pow(b,new s(1).iushln(U-xe-1));Z=Z.redMul(Ne),b=Ne.redSqr(),P=P.redMul(b),U=xe}return Z},re.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},re.prototype.pow=function(i,a){if(a.isZero())return new s(1).toRed(this);if(0===a.cmpn(1))return i.clone();var u=new Array(16);u[0]=new s(1).toRed(this),u[1]=i;for(var _=2;_<u.length;_++)u[_]=this.mul(u[_-1],i);var D=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var b=a.words[_],Z=r-1;Z>=0;Z--){var P=b>>Z&1;D!==u[0]&&(D=this.sqr(D)),0!==P||0!==I?(I<<=1,I|=P,(4==++x||0===_&&0===Z)&&(D=this.mul(D,u[I]),x=0,I=0)):x=0}r=26}return D},re.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},re.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new pe(i)},C(pe,re),pe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},pe.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},pe.prototype.imul=function(i,a){if(i.isZero()||a.isZero())return i.words[0]=0,i.length=1,i;var p=i.imul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},pe.prototype.mul=function(i,a){if(i.isZero()||a.isZero())return new s(0)._forceRed(this);var p=i.mul(a),u=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=p.isub(u).iushrn(this.shift),D=_;return _.cmp(this.m)>=0?D=_.isub(this.m):_.cmpn(0)<0&&(D=_.iadd(this.m)),D._forceRed(this)},pe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ze=m.nmd(Ze),this)},6705:(Ze,K,m)=>{var e=m(2772),t=m(6945),v=m(9401),C=m(2057),s=m(8466),M=m(6386),c=m(8651),N=m(3502).Buffer;Ze.exports=function(E,k,w){var V;V=E.padding?E.padding:w?1:4;var $,W=e(E),j=W.modulus.byteLength();if(k.length>j||new C(k).cmp(W.modulus)>=0)throw new Error("decryption error");$=w?c(new C(k),W):s(k,W);var ee=N.alloc(j-$.length);if($=N.concat([ee,$],j),4===V)return function(A,E){var k=A.modulus.byteLength(),w=M("sha1").update(N.alloc(0)).digest(),V=w.length;if(0!==E[0])throw new Error("decryption error");var W=E.slice(1,V+1),j=E.slice(V+1),$=v(W,t(j,V)),ee=v(j,t($,k-V-1));if(function(A,E){A=N.from(A),E=N.from(E);var k=0,w=A.length;A.length!==E.length&&(k++,w=Math.min(A.length,E.length));for(var V=-1;++V<w;)k+=A[V]^E[V];return k}(w,ee.slice(0,V)))throw new Error("decryption error");for(var me=V;0===ee[me];)me++;if(1!==ee[me++])throw new Error("decryption error");return ee.slice(me)}(W,$);if(1===V)return function(A,E,k){for(var w=E.slice(0,2),V=2,W=0;0!==E[V++];)if(V>=E.length){W++;break}var j=E.slice(2,V-1);if(("0002"!==w.toString("hex")&&!k||"0001"!==w.toString("hex")&&k)&&W++,j.length<8&&W++,W)throw new Error("decryption error");return E.slice(V)}(0,$,w);if(3===V)return $;throw new Error("unknown padding")}},6562:(Ze,K,m)=>{var e=m(2772),t=m(3753),v=m(6386),C=m(6945),s=m(9401),M=m(2057),c=m(8651),N=m(8466),o=m(3502).Buffer;Ze.exports=function(k,w,V){var W;W=k.padding?k.padding:V?1:4;var $,j=e(k);if(4===W)$=function(E,k){var w=E.modulus.byteLength(),V=k.length,W=v("sha1").update(o.alloc(0)).digest(),j=W.length,$=2*j;if(V>w-$-2)throw new Error("message too long");var ee=o.alloc(w-V-$-2),me=w-j-1,ce=t(j),le=s(o.concat([W,ee,o.alloc(1,1),k],me),C(ce,me)),te=s(ce,C(le,j));return new M(o.concat([o.alloc(1),te,le],w))}(j,w);else if(1===W)$=function(E,k,w){var j,V=k.length,W=E.modulus.byteLength();if(V>W-11)throw new Error("message too long");return j=w?o.alloc(W-V-3,255):function(E){for(var j,k=o.allocUnsafe(E),w=0,V=t(2*E),W=0;w<E;)W===V.length&&(V=t(2*E),W=0),(j=V[W++])&&(k[w++]=j);return k}(W-V-3),new M(o.concat([o.from([0,w?1:2]),j,o.alloc(1),k],W))}(j,w,V);else{if(3!==W)throw new Error("unknown padding");if(($=new M(w)).cmp(j.modulus)>=0)throw new Error("data too long for modulus")}return V?N($,j):c($,j)}},8651:(Ze,K,m)=>{var e=m(2057),t=m(3502).Buffer;Ze.exports=function(C,s){return t.from(C.toRed(e.mont(s.modulus)).redPow(new e(s.publicExponent)).fromRed().toArray())}},9401:Ze=>{Ze.exports=function(m,e){for(var t=m.length,v=-1;++v<t;)m[v]^=e[v];return m}},3259:(Ze,K,m)=>{const e=m(8695),t=m(1465),v=m(3210),C=m(2334);function s(M,c,N,o,L){const O=[].slice.call(arguments,1),A=O.length,E="function"==typeof O[A-1];if(!E&&!e())throw new Error("Callback required as last argument");if(!E){if(A<1)throw new Error("Too few arguments provided");return 1===A?(N=c,c=o=void 0):2===A&&!c.getContext&&(o=N,N=c,c=void 0),new Promise(function(k,w){try{const V=t.create(N,o);k(M(V,c,o))}catch(V){w(V)}})}if(A<2)throw new Error("Too few arguments provided");2===A?(L=N,N=c,c=o=void 0):3===A&&(c.getContext&&void 0===L?(L=o,o=void 0):(L=o,o=N,N=c,c=void 0));try{const k=t.create(N,o);L(null,M(k,c,o))}catch(k){L(k)}}K.create=t.create,K.toCanvas=s.bind(null,v.render),K.toDataURL=s.bind(null,v.renderToDataURL),K.toString=s.bind(null,function(M,c,N){return C.render(M,N)})},8695:Ze=>{Ze.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Ze,K,m)=>{const e=m(4792).getSymbolSize;K.getRowColCoords=function(v){if(1===v)return[];const C=Math.floor(v/7)+2,s=e(v),M=145===s?26:2*Math.ceil((s-13)/(2*C-2)),c=[s-7];for(let N=1;N<C-1;N++)c[N]=c[N-1]-M;return c.push(6),c.reverse()},K.getPositions=function(v){const C=[],s=K.getRowColCoords(v),M=s.length;for(let c=0;c<M;c++)for(let N=0;N<M;N++)0===c&&0===N||0===c&&N===M-1||c===M-1&&0===N||C.push([s[c],s[N]]);return C}},2424:(Ze,K,m)=>{const e=m(4016),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function v(C){this.mode=e.ALPHANUMERIC,this.data=C}v.getBitsLength=function(s){return 11*Math.floor(s/2)+s%2*6},v.prototype.getLength=function(){return this.data.length},v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)},v.prototype.write=function(s){let M;for(M=0;M+2<=this.data.length;M+=2){let c=45*t.indexOf(this.data[M]);c+=t.indexOf(this.data[M+1]),s.put(c,11)}this.data.length%2&&s.put(t.indexOf(this.data[M]),6)},Ze.exports=v},2118:Ze=>{function K(){this.buffer=[],this.length=0}K.prototype={get:function(m){const e=Math.floor(m/8);return 1==(this.buffer[e]>>>7-m%8&1)},put:function(m,e){for(let t=0;t<e;t++)this.putBit(1==(m>>>e-t-1&1))},getLengthInBits:function(){return this.length},putBit:function(m){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),m&&(this.buffer[e]|=128>>>this.length%8),this.length++}},Ze.exports=K},4425:Ze=>{function K(m){if(!m||m<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=m,this.data=new Uint8Array(m*m),this.reservedBit=new Uint8Array(m*m)}K.prototype.set=function(m,e,t,v){const C=m*this.size+e;this.data[C]=t,v&&(this.reservedBit[C]=!0)},K.prototype.get=function(m,e){return this.data[m*this.size+e]},K.prototype.xor=function(m,e,t){this.data[m*this.size+e]^=t},K.prototype.isReserved=function(m,e){return this.reservedBit[m*this.size+e]},Ze.exports=K},5663:(Ze,K,m)=>{const e=m(8419),t=m(4016);function v(C){this.mode=t.BYTE,this.data=new Uint8Array(e(C))}v.getBitsLength=function(s){return 8*s},v.prototype.getLength=function(){return this.data.length},v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)},v.prototype.write=function(C){for(let s=0,M=this.data.length;s<M;s++)C.put(this.data[s],8)},Ze.exports=v},4655:(Ze,K,m)=>{const e=m(2259),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],v=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];K.getBlocksCount=function(s,M){switch(M){case e.L:return t[4*(s-1)+0];case e.M:return t[4*(s-1)+1];case e.Q:return t[4*(s-1)+2];case e.H:return t[4*(s-1)+3];default:return}},K.getTotalCodewordsCount=function(s,M){switch(M){case e.L:return v[4*(s-1)+0];case e.M:return v[4*(s-1)+1];case e.Q:return v[4*(s-1)+2];case e.H:return v[4*(s-1)+3];default:return}}},2259:(Ze,K)=>{K.L={bit:1},K.M={bit:0},K.Q={bit:3},K.H={bit:2},K.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},K.from=function(t,v){if(K.isValid(t))return t;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return K.L;case"m":case"medium":return K.M;case"q":case"quartile":return K.Q;case"h":case"high":return K.H;default:throw new Error("Unknown EC Level: "+e)}}(t)}catch(C){return v}}},3114:(Ze,K,m)=>{const e=m(4792).getSymbolSize;K.getPositions=function(C){const s=e(C);return[[0,0],[s-7,0],[0,s-7]]}},7078:(Ze,K,m)=>{const e=m(4792),C=e.getBCHDigit(1335);K.getEncodedBits=function(M,c){const N=M.bit<<3|c;let o=N<<10;for(;e.getBCHDigit(o)-C>=0;)o^=1335<<e.getBCHDigit(o)-C;return 21522^(N<<10|o)}},5339:(Ze,K)=>{const m=new Uint8Array(512),e=new Uint8Array(256);(function(){let v=1;for(let C=0;C<255;C++)m[C]=v,e[v]=C,v<<=1,256&v&&(v^=285);for(let C=255;C<512;C++)m[C]=m[C-255]})(),K.log=function(v){if(v<1)throw new Error("log("+v+")");return e[v]},K.exp=function(v){return m[v]},K.mul=function(v,C){return 0===v||0===C?0:m[e[v]+e[C]]}},4388:(Ze,K,m)=>{const e=m(4016),t=m(4792);function v(C){this.mode=e.KANJI,this.data=C}v.getBitsLength=function(s){return 13*s},v.prototype.getLength=function(){return this.data.length},v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)},v.prototype.write=function(C){let s;for(s=0;s<this.data.length;s++){let M=t.toSJIS(this.data[s]);if(M>=33088&&M<=40956)M-=33088;else{if(!(M>=57408&&M<=60351))throw new Error("Invalid SJIS character: "+this.data[s]+"\nMake sure your charset is UTF-8");M-=49472}M=192*(M>>>8&255)+(255&M),C.put(M,13)}},Ze.exports=v},3667:(Ze,K)=>{K.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(t,v,C){switch(t){case K.Patterns.PATTERN000:return(v+C)%2==0;case K.Patterns.PATTERN001:return v%2==0;case K.Patterns.PATTERN010:return C%3==0;case K.Patterns.PATTERN011:return(v+C)%3==0;case K.Patterns.PATTERN100:return(Math.floor(v/2)+Math.floor(C/3))%2==0;case K.Patterns.PATTERN101:return v*C%2+v*C%3==0;case K.Patterns.PATTERN110:return(v*C%2+v*C%3)%2==0;case K.Patterns.PATTERN111:return(v*C%3+(v+C)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}K.isValid=function(v){return null!=v&&""!==v&&!isNaN(v)&&v>=0&&v<=7},K.from=function(v){return K.isValid(v)?parseInt(v,10):void 0},K.getPenaltyN1=function(v){const C=v.size;let s=0,M=0,c=0,N=null,o=null;for(let L=0;L<C;L++){M=c=0,N=o=null;for(let O=0;O<C;O++){let A=v.get(L,O);A===N?M++:(M>=5&&(s+=M-5+3),N=A,M=1),A=v.get(O,L),A===o?c++:(c>=5&&(s+=c-5+3),o=A,c=1)}M>=5&&(s+=M-5+3),c>=5&&(s+=c-5+3)}return s},K.getPenaltyN2=function(v){const C=v.size;let s=0;for(let M=0;M<C-1;M++)for(let c=0;c<C-1;c++){const N=v.get(M,c)+v.get(M,c+1)+v.get(M+1,c)+v.get(M+1,c+1);(4===N||0===N)&&s++}return 3*s},K.getPenaltyN3=function(v){const C=v.size;let s=0,M=0,c=0;for(let N=0;N<C;N++){M=c=0;for(let o=0;o<C;o++)M=M<<1&2047|v.get(N,o),o>=10&&(1488===M||93===M)&&s++,c=c<<1&2047|v.get(o,N),o>=10&&(1488===c||93===c)&&s++}return 40*s},K.getPenaltyN4=function(v){let C=0;const s=v.data.length;for(let c=0;c<s;c++)C+=v.data[c];return 10*Math.abs(Math.ceil(100*C/s/5)-10)},K.applyMask=function(v,C){const s=C.size;for(let M=0;M<s;M++)for(let c=0;c<s;c++)C.isReserved(c,M)||C.xor(c,M,e(v,c,M))},K.getBestMask=function(v,C){const s=Object.keys(K.Patterns).length;let M=0,c=1/0;for(let N=0;N<s;N++){C(N),K.applyMask(N,v);const o=K.getPenaltyN1(v)+K.getPenaltyN2(v)+K.getPenaltyN3(v)+K.getPenaltyN4(v);K.applyMask(N,v),o<c&&(c=o,M=N)}return M}},4016:(Ze,K,m)=>{const e=m(4406),t=m(2699);K.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},K.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},K.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},K.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},K.MIXED={bit:-1},K.getCharCountIndicator=function(s,M){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!e.isValid(M))throw new Error("Invalid version: "+M);return M>=1&&M<10?s.ccBits[0]:M<27?s.ccBits[1]:s.ccBits[2]},K.getBestModeForData=function(s){return t.testNumeric(s)?K.NUMERIC:t.testAlphanumeric(s)?K.ALPHANUMERIC:t.testKanji(s)?K.KANJI:K.BYTE},K.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},K.isValid=function(s){return s&&s.bit&&s.ccBits},K.from=function(s,M){if(K.isValid(s))return s;try{return function(C){if("string"!=typeof C)throw new Error("Param is not a string");switch(C.toLowerCase()){case"numeric":return K.NUMERIC;case"alphanumeric":return K.ALPHANUMERIC;case"kanji":return K.KANJI;case"byte":return K.BYTE;default:throw new Error("Unknown mode: "+C)}}(s)}catch(c){return M}}},7783:(Ze,K,m)=>{const e=m(4016);function t(v){this.mode=e.NUMERIC,this.data=v.toString()}t.getBitsLength=function(C){return 10*Math.floor(C/3)+(C%3?C%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(C){let s,M,c;for(s=0;s+3<=this.data.length;s+=3)M=this.data.substr(s,3),c=parseInt(M,10),C.put(c,10);const N=this.data.length-s;N>0&&(M=this.data.substr(s),c=parseInt(M,10),C.put(c,3*N+1))},Ze.exports=t},1106:(Ze,K,m)=>{const e=m(5339);K.mul=function(v,C){const s=new Uint8Array(v.length+C.length-1);for(let M=0;M<v.length;M++)for(let c=0;c<C.length;c++)s[M+c]^=e.mul(v[M],C[c]);return s},K.mod=function(v,C){let s=new Uint8Array(v);for(;s.length-C.length>=0;){const M=s[0];for(let N=0;N<C.length;N++)s[N]^=e.mul(C[N],M);let c=0;for(;c<s.length&&0===s[c];)c++;s=s.slice(c)}return s},K.generateECPolynomial=function(v){let C=new Uint8Array([1]);for(let s=0;s<v;s++)C=K.mul(C,new Uint8Array([1,e.exp(s)]));return C}},1465:(Ze,K,m)=>{const e=m(4792),t=m(2259),v=m(2118),C=m(4425),s=m(6221),M=m(3114),c=m(3667),N=m(4655),o=m(2636),L=m(2088),O=m(7078),A=m(4016),E=m(2033);function j(le,te,re){const pe=le.size,y=O.getEncodedBits(te,re);let i,a;for(i=0;i<15;i++)a=1==(y>>i&1),le.set(i<6?i:i<8?i+1:pe-15+i,8,a,!0),le.set(8,i<8?pe-i-1:i<9?15-i-1+1:15-i-1,a,!0);le.set(pe-8,8,1,!0)}function ce(le,te,re,pe){let y;if(Array.isArray(le))y=E.fromArray(le);else{if("string"!=typeof le)throw new Error("Invalid data");{let _=te;if(!_){const D=E.rawSplit(le);_=L.getBestVersionForData(D,re)}y=E.fromString(le,_||40)}}const i=L.getBestVersionForData(y,re);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(te){if(te<i)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+i+".\n")}else te=i;const a=function(le,te,re){const pe=new v;re.forEach(function(u){pe.put(u.mode.bit,4),pe.put(u.getLength(),A.getCharCountIndicator(u.mode,le)),u.write(pe)});const a=8*(e.getSymbolTotalCodewords(le)-N.getTotalCodewordsCount(le,te));for(pe.getLengthInBits()+4<=a&&pe.put(0,4);pe.getLengthInBits()%8!=0;)pe.putBit(0);const p=(a-pe.getLengthInBits())/8;for(let u=0;u<p;u++)pe.put(u%2?17:236,8);return function(le,te,re){const pe=e.getSymbolTotalCodewords(te),i=pe-N.getTotalCodewordsCount(te,re),a=N.getBlocksCount(te,re),u=a-pe%a,_=Math.floor(pe/a),D=Math.floor(i/a),I=D+1,x=_-D,r=new o(x);let b=0;const Z=new Array(a),P=new Array(a);let U=0;const ye=new Uint8Array(le.buffer);for(let B=0;B<a;B++){const Me=B<u?D:I;Z[B]=ye.slice(b,b+Me),P[B]=r.encode(Z[B]),b+=Me,U=Math.max(U,Me)}const xe=new Uint8Array(pe);let Be,Oe,Ne=0;for(Be=0;Be<U;Be++)for(Oe=0;Oe<a;Oe++)Be<Z[Oe].length&&(xe[Ne++]=Z[Oe][Be]);for(Be=0;Be<x;Be++)for(Oe=0;Oe<a;Oe++)xe[Ne++]=P[Oe][Be];return xe}(pe,le,te)}(te,re,y),p=e.getSymbolSize(te),u=new C(p);return function(le,te){const re=le.size,pe=M.getPositions(te);for(let y=0;y<pe.length;y++){const i=pe[y][0],a=pe[y][1];for(let p=-1;p<=7;p++)if(!(i+p<=-1||re<=i+p))for(let u=-1;u<=7;u++)a+u<=-1||re<=a+u||le.set(i+p,a+u,p>=0&&p<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===p||6===p)||p>=2&&p<=4&&u>=2&&u<=4,!0)}}(u,te),function(le){const te=le.size;for(let re=8;re<te-8;re++){const pe=re%2==0;le.set(re,6,pe,!0),le.set(6,re,pe,!0)}}(u),function(le,te){const re=s.getPositions(te);for(let pe=0;pe<re.length;pe++){const y=re[pe][0],i=re[pe][1];for(let a=-2;a<=2;a++)for(let p=-2;p<=2;p++)le.set(y+a,i+p,-2===a||2===a||-2===p||2===p||0===a&&0===p,!0)}}(u,te),j(u,re,0),te>=7&&function(le,te){const re=le.size,pe=L.getEncodedBits(te);let y,i,a;for(let p=0;p<18;p++)y=Math.floor(p/3),i=p%3+re-8-3,a=1==(pe>>p&1),le.set(y,i,a,!0),le.set(i,y,a,!0)}(u,te),function(le,te){const re=le.size;let pe=-1,y=re-1,i=7,a=0;for(let p=re-1;p>0;p-=2)for(6===p&&p--;;){for(let u=0;u<2;u++)if(!le.isReserved(y,p-u)){let _=!1;a<te.length&&(_=1==(te[a]>>>i&1)),le.set(y,p-u,_),i--,-1===i&&(a++,i=7)}if(y+=pe,y<0||re<=y){y-=pe,pe=-pe;break}}}(u,a),isNaN(pe)&&(pe=c.getBestMask(u,j.bind(null,u,re))),c.applyMask(pe,u),j(u,re,pe),{modules:u,version:te,errorCorrectionLevel:re,maskPattern:pe,segments:y}}K.create=function(te,re){if(void 0===te||""===te)throw new Error("No input text");let y,i,pe=t.M;return void 0!==re&&(pe=t.from(re.errorCorrectionLevel,t.M),y=L.from(re.version),i=c.from(re.maskPattern),re.toSJISFunc&&e.setToSJISFunction(re.toSJISFunc)),ce(te,y,pe,i)}},2636:(Ze,K,m)=>{const e=m(1106);function t(v){this.genPoly=void 0,this.degree=v,this.degree&&this.initialize(this.degree)}t.prototype.initialize=function(C){this.degree=C,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(C){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(C.length+this.degree);s.set(C);const M=e.mod(s,this.genPoly),c=this.degree-M.length;if(c>0){const N=new Uint8Array(this.degree);return N.set(M,c),N}return M},Ze.exports=t},2699:(Ze,K)=>{const m="[0-9]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const v="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+")(?:.|[\r\n]))+";K.KANJI=new RegExp(t,"g"),K.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),K.BYTE=new RegExp(v,"g"),K.NUMERIC=new RegExp(m,"g"),K.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const C=new RegExp("^"+t+"$"),s=new RegExp("^"+m+"$"),M=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");K.testKanji=function(N){return C.test(N)},K.testNumeric=function(N){return s.test(N)},K.testAlphanumeric=function(N){return M.test(N)}},2033:(Ze,K,m)=>{const e=m(4016),t=m(7783),v=m(2424),C=m(5663),s=m(4388),M=m(2699),c=m(4792),N=m(4901);function o(W){return unescape(encodeURIComponent(W)).length}function L(W,j,$){const ee=[];let me;for(;null!==(me=W.exec($));)ee.push({data:me[0],index:me.index,mode:j,length:me[0].length});return ee}function O(W){const j=L(M.NUMERIC,e.NUMERIC,W),$=L(M.ALPHANUMERIC,e.ALPHANUMERIC,W);let ee,me;return c.isKanjiModeEnabled()?(ee=L(M.BYTE,e.BYTE,W),me=L(M.KANJI,e.KANJI,W)):(ee=L(M.BYTE_KANJI,e.BYTE,W),me=[]),j.concat($,ee,me).sort(function(le,te){return le.index-te.index}).map(function(le){return{data:le.data,mode:le.mode,length:le.length}})}function A(W,j){switch(j){case e.NUMERIC:return t.getBitsLength(W);case e.ALPHANUMERIC:return v.getBitsLength(W);case e.KANJI:return s.getBitsLength(W);case e.BYTE:return C.getBitsLength(W)}}function V(W,j){let $;const ee=e.getBestModeForData(W);if($=e.from(j,ee),$!==e.BYTE&&$.bit<ee.bit)throw new Error('"'+W+'" cannot be encoded with mode '+e.toString($)+".\n Suggested mode is: "+e.toString(ee));switch($===e.KANJI&&!c.isKanjiModeEnabled()&&($=e.BYTE),$){case e.NUMERIC:return new t(W);case e.ALPHANUMERIC:return new v(W);case e.KANJI:return new s(W);case e.BYTE:return new C(W)}}K.fromArray=function(j){return j.reduce(function($,ee){return"string"==typeof ee?$.push(V(ee,null)):ee.data&&$.push(V(ee.data,ee.mode)),$},[])},K.fromString=function(j,$){const me=function(W){const j=[];for(let $=0;$<W.length;$++){const ee=W[$];switch(ee.mode){case e.NUMERIC:j.push([ee,{data:ee.data,mode:e.ALPHANUMERIC,length:ee.length},{data:ee.data,mode:e.BYTE,length:ee.length}]);break;case e.ALPHANUMERIC:j.push([ee,{data:ee.data,mode:e.BYTE,length:ee.length}]);break;case e.KANJI:j.push([ee,{data:ee.data,mode:e.BYTE,length:o(ee.data)}]);break;case e.BYTE:j.push([{data:ee.data,mode:e.BYTE,length:o(ee.data)}])}}return j}(O(j,c.isKanjiModeEnabled())),ce=function(W,j){const $={},ee={start:{}};let me=["start"];for(let ce=0;ce<W.length;ce++){const le=W[ce],te=[];for(let re=0;re<le.length;re++){const pe=le[re],y=""+ce+re;te.push(y),$[y]={node:pe,lastCount:0},ee[y]={};for(let i=0;i<me.length;i++){const a=me[i];$[a]&&$[a].node.mode===pe.mode?(ee[a][y]=A($[a].lastCount+pe.length,pe.mode)-A($[a].lastCount,pe.mode),$[a].lastCount+=pe.length):($[a]&&($[a].lastCount=pe.length),ee[a][y]=A(pe.length,pe.mode)+4+e.getCharCountIndicator(pe.mode,j))}}me=te}for(let ce=0;ce<me.length;ce++)ee[me[ce]].end=0;return{map:ee,table:$}}(me,$),le=N.find_path(ce.map,"start","end"),te=[];for(let re=1;re<le.length-1;re++)te.push(ce.table[le[re]].node);return K.fromArray(te.reduce(function(j,$){const ee=j.length-1>=0?j[j.length-1]:null;return ee&&ee.mode===$.mode?(j[j.length-1].data+=$.data,j):(j.push($),j)},[]))},K.rawSplit=function(j){return K.fromArray(O(j,c.isKanjiModeEnabled()))}},4792:(Ze,K)=>{let m;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];K.getSymbolSize=function(v){if(!v)throw new Error('"version" cannot be null or undefined');if(v<1||v>40)throw new Error('"version" should be in range from 1 to 40');return 4*v+17},K.getSymbolTotalCodewords=function(v){return e[v]},K.getBCHDigit=function(t){let v=0;for(;0!==t;)v++,t>>>=1;return v},K.setToSJISFunction=function(v){if("function"!=typeof v)throw new Error('"toSJISFunc" is not a valid function.');m=v},K.isKanjiModeEnabled=function(){return void 0!==m},K.toSJIS=function(v){return m(v)}},4406:(Ze,K)=>{K.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},2088:(Ze,K,m)=>{const e=m(4792),t=m(4655),v=m(2259),C=m(4016),s=m(4406),c=e.getBCHDigit(7973);function o(A,E){return C.getCharCountIndicator(A,E)+4}function L(A,E){let k=0;return A.forEach(function(w){k+=o(w.mode,E)+w.getBitsLength()}),k}K.from=function(E,k){return s.isValid(E)?parseInt(E,10):k},K.getCapacity=function(E,k,w){if(!s.isValid(E))throw new Error("Invalid QR Code version");void 0===w&&(w=C.BYTE);const j=8*(e.getSymbolTotalCodewords(E)-t.getTotalCodewordsCount(E,k));if(w===C.MIXED)return j;const $=j-o(w,E);switch(w){case C.NUMERIC:return Math.floor($/10*3);case C.ALPHANUMERIC:return Math.floor($/11*2);case C.KANJI:return Math.floor($/13);default:return Math.floor($/8)}},K.getBestVersionForData=function(E,k){let w;const V=v.from(k,v.M);if(Array.isArray(E)){if(E.length>1)return function(A,E){for(let k=1;k<=40;k++)if(L(A,k)<=K.getCapacity(k,E,C.MIXED))return k}(E,V);if(0===E.length)return 1;w=E[0]}else w=E;return function(A,E,k){for(let w=1;w<=40;w++)if(E<=K.getCapacity(w,k,A))return w}(w.mode,w.getLength(),V)},K.getEncodedBits=function(E){if(!s.isValid(E)||E<7)throw new Error("Invalid QR Code version");let k=E<<12;for(;e.getBCHDigit(k)-c>=0;)k^=7973<<e.getBCHDigit(k)-c;return E<<12|k}},3210:(Ze,K,m)=>{const e=m(6355);K.render=function(s,M,c){let N=c,o=M;void 0===N&&(!M||!M.getContext)&&(N=M,M=void 0),M||(o=function(){try{return document.createElement("canvas")}catch(C){throw new Error("You need to specify a canvas element")}}()),N=e.getOptions(N);const L=e.getImageWidth(s.modules.size,N),O=o.getContext("2d"),A=O.createImageData(L,L);return e.qrToImageData(A.data,s,N),function(C,s,M){C.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=M,s.width=M,s.style.height=M+"px",s.style.width=M+"px"}(O,o,L),O.putImageData(A,0,0),o},K.renderToDataURL=function(s,M,c){let N=c;return void 0===N&&(!M||!M.getContext)&&(N=M,M=void 0),N||(N={}),K.render(s,M,N).toDataURL(N.type||"image/png",(N.rendererOpts||{}).quality)}},2334:(Ze,K,m)=>{const e=m(6355);function t(s,M){const c=s.a/255,N=M+'="'+s.hex+'"';return c<1?N+" "+M+'-opacity="'+c.toFixed(2).slice(1)+'"':N}function v(s,M,c){let N=s+M;return void 0!==c&&(N+=" "+c),N}K.render=function(M,c,N){const o=e.getOptions(c),L=M.modules.size,O=M.modules.data,A=L+2*o.margin,E=o.color.light.a?"<path "+t(o.color.light,"fill")+' d="M0 0h'+A+"v"+A+'H0z"/>':"",k="<path "+t(o.color.dark,"stroke")+' d="'+function(s,M,c){let N="",o=0,L=!1,O=0;for(let A=0;A<s.length;A++){const E=Math.floor(A%M),k=Math.floor(A/M);!E&&!L&&(L=!0),s[A]?(O++,A>0&&E>0&&s[A-1]||(N+=L?v("M",E+c,.5+k+c):v("m",o,0),o=0,L=!1),E+1<M&&s[A+1]||(N+=v("h",O),O=0)):o++}return N}(O,L,o.margin)+'"/>',W='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+'viewBox="0 0 '+A+" "+A+'" shape-rendering="crispEdges">'+E+k+"</svg>\n";return"function"==typeof N&&N(null,W),W}},6355:(Ze,K)=>{function m(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(C){return[C,C]}))),6===t.length&&t.push("F","F");const v=parseInt(t.join(""),16);return{r:v>>24&255,g:v>>16&255,b:v>>8&255,a:255&v,hex:"#"+t.slice(0,6).join("")}}K.getOptions=function(t){t||(t={}),t.color||(t.color={});const C=t.width&&t.width>=21?t.width:void 0;return{width:C,scale:C?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:m(t.color.dark||"#000000ff"),light:m(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},K.getScale=function(t,v){return v.width&&v.width>=t+2*v.margin?v.width/(t+2*v.margin):v.scale},K.getImageWidth=function(t,v){const C=K.getScale(t,v);return Math.floor((t+2*v.margin)*C)},K.qrToImageData=function(t,v,C){const s=v.modules.size,M=v.modules.data,c=K.getScale(s,C),N=Math.floor((s+2*C.margin)*c),o=C.margin*c,L=[C.color.light,C.color.dark];for(let O=0;O<N;O++)for(let A=0;A<N;A++){let E=4*(O*N+A),k=C.color.light;O>=o&&A>=o&&O<N-o&&A<N-o&&(k=L[M[Math.floor((O-o)/c)*s+Math.floor((A-o)/c)]?1:0]),t[E++]=k.r,t[E++]=k.g,t[E++]=k.b,t[E]=k.a}}},3753:(Ze,K,m)=>{"use strict";var e=65536,C=m(3502).Buffer,s=global.crypto||global.msCrypto;Ze.exports=s&&s.getRandomValues?function(c,N){if(c>4294967295)throw new RangeError("requested too many random bytes");var o=C.allocUnsafe(c);if(c>0)if(c>e)for(var L=0;L<c;L+=e)s.getRandomValues(o.slice(L,L+e));else s.getRandomValues(o);return"function"==typeof N?process.nextTick(function(){N(null,o)}):o}:function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},4275:(Ze,K,m)=>{"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=m(3502),v=m(3753),C=t.Buffer,s=t.kMaxLength,M=global.crypto||global.msCrypto,c=Math.pow(2,32)-1;function N(E,k){if("number"!=typeof E||E!=E)throw new TypeError("offset must be a number");if(E>c||E<0)throw new TypeError("offset must be a uint32");if(E>s||E>k)throw new RangeError("offset out of range")}function o(E,k,w){if("number"!=typeof E||E!=E)throw new TypeError("size must be a number");if(E>c||E<0)throw new TypeError("size must be a uint32");if(E+k>w||E>s)throw new RangeError("buffer too small")}function O(E,k,w,V){if(process.browser){var j=new Uint8Array(E.buffer,k,w);return M.getRandomValues(j),V?void process.nextTick(function(){V(null,E)}):E}if(!V)return v(w).copy(E,k),E;v(w,function(ee,me){if(ee)return V(ee);me.copy(E,k),V(null,E)})}M&&M.getRandomValues||!process.browser?(K.randomFill=function(E,k,w,V){if(!(C.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof k)V=k,k=0,w=E.length;else if("function"==typeof w)V=w,w=E.length-k;else if("function"!=typeof V)throw new TypeError('"cb" argument must be a function');return N(k,E.length),o(w,k,E.length),O(E,k,w,V)},K.randomFillSync=function(E,k,w){if(void 0===k&&(k=0),!(C.isBuffer(E)||E instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return N(k,E.length),void 0===w&&(w=E.length-k),o(w,k,E.length),O(E,k,w)}):(K.randomFill=e,K.randomFillSync=e)},891:Ze=>{"use strict";var m={};function e(M,c,N){N||(N=Error);var L=function(O){function A(E,k,w){return O.call(this,function(O,A,E){return"string"==typeof c?c:c(O,A,E)}(E,k,w))||this}return function(M,c){M.prototype=Object.create(c.prototype),M.prototype.constructor=M,M.__proto__=c}(A,O),A}(N);L.prototype.name=N.name,L.prototype.code=M,m[M]=L}function t(M,c){if(Array.isArray(M)){var N=M.length;return M=M.map(function(o){return String(o)}),N>2?"one of ".concat(c," ").concat(M.slice(0,N-1).join(", "),", or ")+M[N-1]:2===N?"one of ".concat(c," ").concat(M[0]," or ").concat(M[1]):"of ".concat(c," ").concat(M[0])}return"of ".concat(c," ").concat(String(M))}e("ERR_INVALID_OPT_VALUE",function(M,c){return'The value "'+c+'" is invalid for option "'+M+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(M,c,N){var o,L;if("string"==typeof c&&function(M,c,N){return M.substr(0,c.length)===c}(c,"not ")?(o="must not be",c=c.replace(/^not /,"")):o="must be",function(M,c,N){return(void 0===N||N>M.length)&&(N=M.length),M.substring(N-c.length,N)===c}(M," argument"))L="The ".concat(M," ").concat(o," ").concat(t(c,"type"));else{var O=function(M,c,N){return"number"!=typeof N&&(N=0),!(N+".".length>M.length)&&-1!==M.indexOf(".",N)}(M)?"property":"argument";L='The "'.concat(M,'" ').concat(O," ").concat(o," ").concat(t(c,"type"))}return L+". Received type ".concat(typeof N)},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(M){return"The "+M+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(M){return"Cannot call "+M+" after a stream was destroyed"}),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",function(M){return"Unknown encoding: "+M},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ze.exports.q=m},1339:(Ze,K,m)=>{"use strict";var e=Object.keys||function(L){var O=[];for(var A in L)O.push(A);return O};Ze.exports=c;var t=m(3154),v=m(520);m(3894)(c,t);for(var C=e(v.prototype),s=0;s<C.length;s++){var M=C[s];c.prototype[M]||(c.prototype[M]=v.prototype[M])}function c(L){if(!(this instanceof c))return new c(L);t.call(this,L),v.call(this,L),this.allowHalfOpen=!0,L&&(!1===L.readable&&(this.readable=!1),!1===L.writable&&(this.writable=!1),!1===L.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",N)))}function N(){this._writableState.ended||process.nextTick(o,this)}function o(L){L.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(O){void 0===this._readableState||void 0===this._writableState||(this._readableState.destroyed=O,this._writableState.destroyed=O)}})},6071:(Ze,K,m)=>{"use strict";Ze.exports=t;var e=m(6025);function t(v){if(!(this instanceof t))return new t(v);e.call(this,v)}m(3894)(t,e),t.prototype._transform=function(v,C,s){s(null,v)}},3154:(Ze,K,m)=>{"use strict";var e;Ze.exports=y,y.ReadableState=pe,m(9069);var L,v=function(We,vt){return We.listeners(vt).length},C=m(4970),s=m(3172).Buffer,M=global.Uint8Array||function(){},o=m(4616);L=o&&o.debuglog?o.debuglog("stream"):function(){};var ee,me,ce,O=m(5019),A=m(1920),k=m(7102).getHighWaterMark,w=m(891).q,V=w.ERR_INVALID_ARG_TYPE,W=w.ERR_STREAM_PUSH_AFTER_EOF,j=w.ERR_METHOD_NOT_IMPLEMENTED,$=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;m(3894)(y,C);var le=A.errorOrDestroy,te=["error","close","destroy","pause","resume"];function pe(ae,We,vt){e=e||m(1339),"boolean"!=typeof vt&&(vt=We instanceof e),this.objectMode=!!(ae=ae||{}).objectMode,vt&&(this.objectMode=this.objectMode||!!ae.readableObjectMode),this.highWaterMark=k(this,ae,"readableHighWaterMark",vt),this.buffer=new O,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==ae.emitClose,this.autoDestroy=!!ae.autoDestroy,this.destroyed=!1,this.defaultEncoding=ae.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ae.encoding&&(ee||(ee=m(3054).s),this.decoder=new ee(ae.encoding),this.encoding=ae.encoding)}function y(ae){if(e=e||m(1339),!(this instanceof y))return new y(ae);this._readableState=new pe(ae,this,this instanceof e),this.readable=!0,ae&&("function"==typeof ae.read&&(this._read=ae.read),"function"==typeof ae.destroy&&(this._destroy=ae.destroy)),C.call(this)}function i(ae,We,vt,Pe,Ve){L("readableAddChunk",We);var Ee,he=ae._readableState;if(null===We)he.reading=!1,function(ae,We){if(L("onEofChunk"),!We.ended){if(We.decoder){var vt=We.decoder.end();vt&&vt.length&&(We.buffer.push(vt),We.length+=We.objectMode?1:vt.length)}We.ended=!0,We.sync?x(ae):(We.needReadable=!1,We.emittedReadable||(We.emittedReadable=!0,r(ae)))}}(ae,he);else if(Ve||(Ee=function(ae,We){var vt;return!function(ae){return s.isBuffer(ae)||ae instanceof M}(We)&&"string"!=typeof We&&void 0!==We&&!ae.objectMode&&(vt=new V("chunk",["string","Buffer","Uint8Array"],We)),vt}(he,We)),Ee)le(ae,Ee);else if(he.objectMode||We&&We.length>0)if("string"!=typeof We&&!he.objectMode&&Object.getPrototypeOf(We)!==s.prototype&&(We=function(ae){return s.from(ae)}(We)),Pe)he.endEmitted?le(ae,new $):a(ae,he,We,!0);else if(he.ended)le(ae,new W);else{if(he.destroyed)return!1;he.reading=!1,he.decoder&&!vt?(We=he.decoder.write(We),he.objectMode||0!==We.length?a(ae,he,We,!1):b(ae,he)):a(ae,he,We,!1)}else Pe||(he.reading=!1,b(ae,he));return!he.ended&&(he.length<he.highWaterMark||0===he.length)}function a(ae,We,vt,Pe){We.flowing&&0===We.length&&!We.sync?(We.awaitDrain=0,ae.emit("data",vt)):(We.length+=We.objectMode?1:vt.length,Pe?We.buffer.unshift(vt):We.buffer.push(vt),We.needReadable&&x(ae)),b(ae,We)}Object.defineProperty(y.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(We){!this._readableState||(this._readableState.destroyed=We)}}),y.prototype.destroy=A.destroy,y.prototype._undestroy=A.undestroy,y.prototype._destroy=function(ae,We){We(ae)},y.prototype.push=function(ae,We){var Pe,vt=this._readableState;return vt.objectMode?Pe=!0:"string"==typeof ae&&((We=We||vt.defaultEncoding)!==vt.encoding&&(ae=s.from(ae,We),We=""),Pe=!0),i(this,ae,We,!1,Pe)},y.prototype.unshift=function(ae){return i(this,ae,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(ae){ee||(ee=m(3054).s);var We=new ee(ae);this._readableState.decoder=We,this._readableState.encoding=this._readableState.decoder.encoding;for(var vt=this._readableState.buffer.head,Pe="";null!==vt;)Pe+=We.write(vt.data),vt=vt.next;return this._readableState.buffer.clear(),""!==Pe&&this._readableState.buffer.push(Pe),this._readableState.length=Pe.length,this};var u=1073741824;function D(ae,We){return ae<=0||0===We.length&&We.ended?0:We.objectMode?1:ae!=ae?We.flowing&&We.length?We.buffer.head.data.length:We.length:(ae>We.highWaterMark&&(We.highWaterMark=function(ae){return ae>=u?ae=u:(ae--,ae|=ae>>>1,ae|=ae>>>2,ae|=ae>>>4,ae|=ae>>>8,ae|=ae>>>16,ae++),ae}(ae)),ae<=We.length?ae:We.ended?We.length:(We.needReadable=!0,0))}function x(ae){var We=ae._readableState;L("emitReadable",We.needReadable,We.emittedReadable),We.needReadable=!1,We.emittedReadable||(L("emitReadable",We.flowing),We.emittedReadable=!0,process.nextTick(r,ae))}function r(ae){var We=ae._readableState;L("emitReadable_",We.destroyed,We.length,We.ended),!We.destroyed&&(We.length||We.ended)&&(ae.emit("readable"),We.emittedReadable=!1),We.needReadable=!We.flowing&&!We.ended&&We.length<=We.highWaterMark,Be(ae)}function b(ae,We){We.readingMore||(We.readingMore=!0,process.nextTick(Z,ae,We))}function Z(ae,We){for(;!We.reading&&!We.ended&&(We.length<We.highWaterMark||We.flowing&&0===We.length);){var vt=We.length;if(L("maybeReadMore read 0"),ae.read(0),vt===We.length)break}We.readingMore=!1}function U(ae){var We=ae._readableState;We.readableListening=ae.listenerCount("readable")>0,We.resumeScheduled&&!We.paused?We.flowing=!0:ae.listenerCount("data")>0&&ae.resume()}function ye(ae){L("readable nexttick read 0"),ae.read(0)}function Ne(ae,We){L("resume",We.reading),We.reading||ae.read(0),We.resumeScheduled=!1,ae.emit("resume"),Be(ae),We.flowing&&!We.reading&&ae.read(0)}function Be(ae){var We=ae._readableState;for(L("flow",We.flowing);We.flowing&&null!==ae.read(););}function Oe(ae,We){return 0===We.length?null:(We.objectMode?vt=We.buffer.shift():!ae||ae>=We.length?(vt=We.decoder?We.buffer.join(""):1===We.buffer.length?We.buffer.first():We.buffer.concat(We.length),We.buffer.clear()):vt=We.buffer.consume(ae,We.decoder),vt);var vt}function B(ae){var We=ae._readableState;L("endReadable",We.endEmitted),We.endEmitted||(We.ended=!0,process.nextTick(Me,We,ae))}function Me(ae,We){if(L("endReadableNT",ae.endEmitted,ae.length),!ae.endEmitted&&0===ae.length&&(ae.endEmitted=!0,We.readable=!1,We.emit("end"),ae.autoDestroy)){var vt=We._writableState;(!vt||vt.autoDestroy&&vt.finished)&&We.destroy()}}function we(ae,We){for(var vt=0,Pe=ae.length;vt<Pe;vt++)if(ae[vt]===We)return vt;return-1}y.prototype.read=function(ae){L("read",ae),ae=parseInt(ae,10);var We=this._readableState,vt=ae;if(0!==ae&&(We.emittedReadable=!1),0===ae&&We.needReadable&&((0!==We.highWaterMark?We.length>=We.highWaterMark:We.length>0)||We.ended))return L("read: emitReadable",We.length,We.ended),0===We.length&&We.ended?B(this):x(this),null;if(0===(ae=D(ae,We))&&We.ended)return 0===We.length&&B(this),null;var Ve,Pe=We.needReadable;return L("need readable",Pe),(0===We.length||We.length-ae<We.highWaterMark)&&L("length less than watermark",Pe=!0),We.ended||We.reading?L("reading or ended",Pe=!1):Pe&&(L("do read"),We.reading=!0,We.sync=!0,0===We.length&&(We.needReadable=!0),this._read(We.highWaterMark),We.sync=!1,We.reading||(ae=D(vt,We))),null===(Ve=ae>0?Oe(ae,We):null)?(We.needReadable=We.length<=We.highWaterMark,ae=0):(We.length-=ae,We.awaitDrain=0),0===We.length&&(We.ended||(We.needReadable=!0),vt!==ae&&We.ended&&B(this)),null!==Ve&&this.emit("data",Ve),Ve},y.prototype._read=function(ae){le(this,new j("_read()"))},y.prototype.pipe=function(ae,We){var vt=this,Pe=this._readableState;switch(Pe.pipesCount){case 0:Pe.pipes=ae;break;case 1:Pe.pipes=[Pe.pipes,ae];break;default:Pe.pipes.push(ae)}Pe.pipesCount+=1,L("pipe count=%d opts=%j",Pe.pipesCount,We);var he=We&&!1===We.end||ae===process.stdout||ae===process.stderr?ft:ke;function ke(){L("onend"),ae.end()}Pe.endEmitted?process.nextTick(he):vt.once("end",he),ae.on("unpipe",function Ee(nt,st){L("onunpipe"),nt===vt&&st&&!1===st.hasUnpiped&&(st.hasUnpiped=!0,L("cleanup"),ae.removeListener("close",ht),ae.removeListener("finish",it),ae.removeListener("drain",q),ae.removeListener("error",Ue),ae.removeListener("unpipe",Ee),vt.removeListener("end",ke),vt.removeListener("end",ft),vt.removeListener("data",Ce),J=!0,Pe.awaitDrain&&(!ae._writableState||ae._writableState.needDrain)&&q())});var q=function(ae){return function(){var vt=ae._readableState;L("pipeOnDrain",vt.awaitDrain),vt.awaitDrain&&vt.awaitDrain--,0===vt.awaitDrain&&v(ae,"data")&&(vt.flowing=!0,Be(ae))}}(vt);ae.on("drain",q);var J=!1;function Ce(nt){L("ondata");var st=ae.write(nt);L("dest.write",st),!1===st&&((1===Pe.pipesCount&&Pe.pipes===ae||Pe.pipesCount>1&&-1!==we(Pe.pipes,ae))&&!J&&(L("false write response, pause",Pe.awaitDrain),Pe.awaitDrain++),vt.pause())}function Ue(nt){L("onerror",nt),ft(),ae.removeListener("error",Ue),0===v(ae,"error")&&le(ae,nt)}function ht(){ae.removeListener("finish",it),ft()}function it(){L("onfinish"),ae.removeListener("close",ht),ft()}function ft(){L("unpipe"),vt.unpipe(ae)}return vt.on("data",Ce),function(ae,We,vt){if("function"==typeof ae.prependListener)return ae.prependListener(We,vt);ae._events&&ae._events[We]?Array.isArray(ae._events[We])?ae._events[We].unshift(vt):ae._events[We]=[vt,ae._events[We]]:ae.on(We,vt)}(ae,"error",Ue),ae.once("close",ht),ae.once("finish",it),ae.emit("pipe",vt),Pe.flowing||(L("pipe resume"),vt.resume()),ae},y.prototype.unpipe=function(ae){var We=this._readableState,vt={hasUnpiped:!1};if(0===We.pipesCount)return this;if(1===We.pipesCount)return ae&&ae!==We.pipes||(ae||(ae=We.pipes),We.pipes=null,We.pipesCount=0,We.flowing=!1,ae&&ae.emit("unpipe",this,vt)),this;if(!ae){var Pe=We.pipes,Ve=We.pipesCount;We.pipes=null,We.pipesCount=0,We.flowing=!1;for(var he=0;he<Ve;he++)Pe[he].emit("unpipe",this,{hasUnpiped:!1});return this}var Ee=we(We.pipes,ae);return-1===Ee||(We.pipes.splice(Ee,1),We.pipesCount-=1,1===We.pipesCount&&(We.pipes=We.pipes[0]),ae.emit("unpipe",this,vt)),this},y.prototype.addListener=y.prototype.on=function(ae,We){var vt=C.prototype.on.call(this,ae,We),Pe=this._readableState;return"data"===ae?(Pe.readableListening=this.listenerCount("readable")>0,!1!==Pe.flowing&&this.resume()):"readable"===ae&&!Pe.endEmitted&&!Pe.readableListening&&(Pe.readableListening=Pe.needReadable=!0,Pe.flowing=!1,Pe.emittedReadable=!1,L("on readable",Pe.length,Pe.reading),Pe.length?x(this):Pe.reading||process.nextTick(ye,this)),vt},y.prototype.removeListener=function(ae,We){var vt=C.prototype.removeListener.call(this,ae,We);return"readable"===ae&&process.nextTick(U,this),vt},y.prototype.removeAllListeners=function(ae){var We=C.prototype.removeAllListeners.apply(this,arguments);return("readable"===ae||void 0===ae)&&process.nextTick(U,this),We},y.prototype.resume=function(){var ae=this._readableState;return ae.flowing||(L("resume"),ae.flowing=!ae.readableListening,function(ae,We){We.resumeScheduled||(We.resumeScheduled=!0,process.nextTick(Ne,ae,We))}(this,ae)),ae.paused=!1,this},y.prototype.pause=function(){return L("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(L("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},y.prototype.wrap=function(ae){var We=this,vt=this._readableState,Pe=!1;for(var Ve in ae.on("end",function(){if(L("wrapped end"),vt.decoder&&!vt.ended){var Ee=vt.decoder.end();Ee&&Ee.length&&We.push(Ee)}We.push(null)}),ae.on("data",function(Ee){L("wrapped data"),vt.decoder&&(Ee=vt.decoder.write(Ee)),vt.objectMode&&null==Ee||!(vt.objectMode||Ee&&Ee.length)||We.push(Ee)||(Pe=!0,ae.pause())}),ae)void 0===this[Ve]&&"function"==typeof ae[Ve]&&(this[Ve]=function(ke){return function(){return ae[ke].apply(ae,arguments)}}(Ve));for(var he=0;he<te.length;he++)ae.on(te[he],this.emit.bind(this,te[he]));return this._read=function(Ee){L("wrapped _read",Ee),Pe&&(Pe=!1,ae.resume())},this},"function"==typeof Symbol&&(y.prototype[Symbol.asyncIterator]=function(){return void 0===me&&(me=m(3872)),me(this)}),Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(y.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(y.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(We){this._readableState&&(this._readableState.flowing=We)}}),y._fromList=Oe,Object.defineProperty(y.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(y.from=function(ae,We){return void 0===ce&&(ce=m(7412)),ce(y,ae,We)})},6025:(Ze,K,m)=>{"use strict";Ze.exports=N;var e=m(891).q,t=e.ERR_METHOD_NOT_IMPLEMENTED,v=e.ERR_MULTIPLE_CALLBACK,C=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=e.ERR_TRANSFORM_WITH_LENGTH_0,M=m(1339);function c(O,A){var E=this._transformState;E.transforming=!1;var k=E.writecb;if(null===k)return this.emit("error",new v);E.writechunk=null,E.writecb=null,null!=A&&this.push(A),k(O);var w=this._readableState;w.reading=!1,(w.needReadable||w.length<w.highWaterMark)&&this._read(w.highWaterMark)}function N(O){if(!(this instanceof N))return new N(O);M.call(this,O),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,O&&("function"==typeof O.transform&&(this._transform=O.transform),"function"==typeof O.flush&&(this._flush=O.flush)),this.on("prefinish",o)}function o(){var O=this;"function"!=typeof this._flush||this._readableState.destroyed?L(this,null,null):this._flush(function(A,E){L(O,A,E)})}function L(O,A,E){if(A)return O.emit("error",A);if(null!=E&&O.push(E),O._writableState.length)throw new s;if(O._transformState.transforming)throw new C;return O.push(null)}m(3894)(N,M),N.prototype.push=function(O,A){return this._transformState.needTransform=!1,M.prototype.push.call(this,O,A)},N.prototype._transform=function(O,A,E){E(new t("_transform()"))},N.prototype._write=function(O,A,E){var k=this._transformState;if(k.writecb=E,k.writechunk=O,k.writeencoding=A,!k.transforming){var w=this._readableState;(k.needTransform||w.needReadable||w.length<w.highWaterMark)&&this._read(w.highWaterMark)}},N.prototype._read=function(O){var A=this._transformState;null===A.writechunk||A.transforming?A.needTransform=!0:(A.transforming=!0,this._transform(A.writechunk,A.writeencoding,A.afterTransform))},N.prototype._destroy=function(O,A){M.prototype._destroy.call(this,O,function(E){A(E)})}},520:(Ze,K,m)=>{"use strict";function t(Be){var Oe=this;this.next=null,this.entry=null,this.finish=function(){!function(Be,Oe,B){var Me=Be.entry;for(Be.entry=null;Me;){var we=Me.callback;Oe.pendingcb--,we(undefined),Me=Me.next}Oe.corkedRequestsFree.next=Be}(Oe,Be)}}var v;Ze.exports=pe,pe.WritableState=te;var re,C={deprecate:m(4364)},s=m(4970),M=m(3172).Buffer,c=global.Uint8Array||function(){},L=m(1920),A=m(7102).getHighWaterMark,E=m(891).q,k=E.ERR_INVALID_ARG_TYPE,w=E.ERR_METHOD_NOT_IMPLEMENTED,V=E.ERR_MULTIPLE_CALLBACK,W=E.ERR_STREAM_CANNOT_PIPE,j=E.ERR_STREAM_DESTROYED,$=E.ERR_STREAM_NULL_VALUES,ee=E.ERR_STREAM_WRITE_AFTER_END,me=E.ERR_UNKNOWN_ENCODING,ce=L.errorOrDestroy;function le(){}function te(Be,Oe,B){v=v||m(1339),"boolean"!=typeof B&&(B=Oe instanceof v),this.objectMode=!!(Be=Be||{}).objectMode,B&&(this.objectMode=this.objectMode||!!Be.writableObjectMode),this.highWaterMark=A(this,Be,"writableHighWaterMark",B),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===Be.decodeStrings),this.defaultEncoding=Be.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(we){!function(Be,Oe){var B=Be._writableState,Me=B.sync,we=B.writecb;if("function"!=typeof we)throw new V;if(function(Be){Be.writing=!1,Be.writecb=null,Be.length-=Be.writelen,Be.writelen=0}(B),Oe)!function(Be,Oe,B,Me,we){--Oe.pendingcb,B?(process.nextTick(we,Me),process.nextTick(ye,Be,Oe),Be._writableState.errorEmitted=!0,ce(Be,Me)):(we(Me),Be._writableState.errorEmitted=!0,ce(Be,Me),ye(Be,Oe))}(Be,B,Me,Oe,we);else{var ae=Z(B)||Be.destroyed;!ae&&!B.corked&&!B.bufferProcessing&&B.bufferedRequest&&b(Be,B),Me?process.nextTick(x,Be,B,ae,we):x(Be,B,ae,we)}}(Oe,we)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==Be.emitClose,this.autoDestroy=!!Be.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function pe(Be){var Oe=this instanceof(v=v||m(1339));if(!Oe&&!re.call(pe,this))return new pe(Be);this._writableState=new te(Be,this,Oe),this.writable=!0,Be&&("function"==typeof Be.write&&(this._write=Be.write),"function"==typeof Be.writev&&(this._writev=Be.writev),"function"==typeof Be.destroy&&(this._destroy=Be.destroy),"function"==typeof Be.final&&(this._final=Be.final)),s.call(this)}function u(Be,Oe,B,Me,we,ae,We){Oe.writelen=Me,Oe.writecb=We,Oe.writing=!0,Oe.sync=!0,Oe.destroyed?Oe.onwrite(new j("write")):B?Be._writev(we,Oe.onwrite):Be._write(we,ae,Oe.onwrite),Oe.sync=!1}function x(Be,Oe,B,Me){B||function(Be,Oe){0===Oe.length&&Oe.needDrain&&(Oe.needDrain=!1,Be.emit("drain"))}(Be,Oe),Oe.pendingcb--,Me(),ye(Be,Oe)}function b(Be,Oe){Oe.bufferProcessing=!0;var B=Oe.bufferedRequest;if(Be._writev&&B&&B.next){var we=new Array(Oe.bufferedRequestCount),ae=Oe.corkedRequestsFree;ae.entry=B;for(var We=0,vt=!0;B;)we[We]=B,B.isBuf||(vt=!1),B=B.next,We+=1;we.allBuffers=vt,u(Be,Oe,!0,Oe.length,we,"",ae.finish),Oe.pendingcb++,Oe.lastBufferedRequest=null,ae.next?(Oe.corkedRequestsFree=ae.next,ae.next=null):Oe.corkedRequestsFree=new t(Oe),Oe.bufferedRequestCount=0}else{for(;B;){var Pe=B.chunk;if(u(Be,Oe,!1,Oe.objectMode?1:Pe.length,Pe,B.encoding,B.callback),B=B.next,Oe.bufferedRequestCount--,Oe.writing)break}null===B&&(Oe.lastBufferedRequest=null)}Oe.bufferedRequest=B,Oe.bufferProcessing=!1}function Z(Be){return Be.ending&&0===Be.length&&null===Be.bufferedRequest&&!Be.finished&&!Be.writing}function P(Be,Oe){Be._final(function(B){Oe.pendingcb--,B&&ce(Be,B),Oe.prefinished=!0,Be.emit("prefinish"),ye(Be,Oe)})}function ye(Be,Oe){var B=Z(Oe);if(B&&(function(Be,Oe){!Oe.prefinished&&!Oe.finalCalled&&("function"!=typeof Be._final||Oe.destroyed?(Oe.prefinished=!0,Be.emit("prefinish")):(Oe.pendingcb++,Oe.finalCalled=!0,process.nextTick(P,Be,Oe)))}(Be,Oe),0===Oe.pendingcb&&(Oe.finished=!0,Be.emit("finish"),Oe.autoDestroy))){var Me=Be._readableState;(!Me||Me.autoDestroy&&Me.endEmitted)&&Be.destroy()}return B}m(3894)(pe,s),te.prototype.getBuffer=function(){for(var Oe=this.bufferedRequest,B=[];Oe;)B.push(Oe),Oe=Oe.next;return B},function(){try{Object.defineProperty(te.prototype,"buffer",{get:C.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Be){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(re=Function.prototype[Symbol.hasInstance],Object.defineProperty(pe,Symbol.hasInstance,{value:function(Oe){return!!re.call(this,Oe)||this===pe&&Oe&&Oe._writableState instanceof te}})):re=function(Oe){return Oe instanceof this},pe.prototype.pipe=function(){ce(this,new W)},pe.prototype.write=function(Be,Oe,B){var Me=this._writableState,we=!1,ae=!Me.objectMode&&function(Be){return M.isBuffer(Be)||Be instanceof c}(Be);return ae&&!M.isBuffer(Be)&&(Be=function(Be){return M.from(Be)}(Be)),"function"==typeof Oe&&(B=Oe,Oe=null),ae?Oe="buffer":Oe||(Oe=Me.defaultEncoding),"function"!=typeof B&&(B=le),Me.ending?function(Be,Oe){var B=new ee;ce(Be,B),process.nextTick(Oe,B)}(this,B):(ae||function(Be,Oe,B,Me){var we;return null===B?we=new $:"string"!=typeof B&&!Oe.objectMode&&(we=new k("chunk",["string","Buffer"],B)),!we||(ce(Be,we),process.nextTick(Me,we),!1)}(this,Me,Be,B))&&(Me.pendingcb++,we=function(Be,Oe,B,Me,we,ae){if(!B){var We=function(Be,Oe,B){return!Be.objectMode&&!1!==Be.decodeStrings&&"string"==typeof Oe&&(Oe=M.from(Oe,B)),Oe}(Oe,Me,we);Me!==We&&(B=!0,we="buffer",Me=We)}var vt=Oe.objectMode?1:Me.length;Oe.length+=vt;var Pe=Oe.length<Oe.highWaterMark;if(Pe||(Oe.needDrain=!0),Oe.writing||Oe.corked){var Ve=Oe.lastBufferedRequest;Oe.lastBufferedRequest={chunk:Me,encoding:we,isBuf:B,callback:ae,next:null},Ve?Ve.next=Oe.lastBufferedRequest:Oe.bufferedRequest=Oe.lastBufferedRequest,Oe.bufferedRequestCount+=1}else u(Be,Oe,!1,vt,Me,we,ae);return Pe}(this,Me,ae,Be,Oe,B)),we},pe.prototype.cork=function(){this._writableState.corked++},pe.prototype.uncork=function(){var Be=this._writableState;Be.corked&&(Be.corked--,!Be.writing&&!Be.corked&&!Be.bufferProcessing&&Be.bufferedRequest&&b(this,Be))},pe.prototype.setDefaultEncoding=function(Oe){if("string"==typeof Oe&&(Oe=Oe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Oe+"").toLowerCase())>-1))throw new me(Oe);return this._writableState.defaultEncoding=Oe,this},Object.defineProperty(pe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(pe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),pe.prototype._write=function(Be,Oe,B){B(new w("_write()"))},pe.prototype._writev=null,pe.prototype.end=function(Be,Oe,B){var Me=this._writableState;return"function"==typeof Be?(B=Be,Be=null,Oe=null):"function"==typeof Oe&&(B=Oe,Oe=null),null!=Be&&this.write(Be,Oe),Me.corked&&(Me.corked=1,this.uncork()),Me.ending||function(Be,Oe,B){Oe.ending=!0,ye(Be,Oe),B&&(Oe.finished?process.nextTick(B):Be.once("finish",B)),Oe.ended=!0,Be.writable=!1}(this,Me,B),this},Object.defineProperty(pe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(pe.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Oe){!this._writableState||(this._writableState.destroyed=Oe)}}),pe.prototype.destroy=L.destroy,pe.prototype._undestroy=L.undestroy,pe.prototype._destroy=function(Be,Oe){Oe(Be)}},3872:(Ze,K,m)=>{"use strict";var e;function t(j,$,ee){return $ in j?Object.defineProperty(j,$,{value:ee,enumerable:!0,configurable:!0,writable:!0}):j[$]=ee,j}var v=m(7542),C=Symbol("lastResolve"),s=Symbol("lastReject"),M=Symbol("error"),c=Symbol("ended"),N=Symbol("lastPromise"),o=Symbol("handlePromise"),L=Symbol("stream");function O(j,$){return{value:j,done:$}}function A(j){var $=j[C];if(null!==$){var ee=j[L].read();null!==ee&&(j[N]=null,j[C]=null,j[s]=null,$(O(ee,!1)))}}function E(j){process.nextTick(A,j)}var w=Object.getPrototypeOf(function(){}),V=Object.setPrototypeOf((t(e={get stream(){return this[L]},next:function(){var $=this,ee=this[M];if(null!==ee)return Promise.reject(ee);if(this[c])return Promise.resolve(O(void 0,!0));if(this[L].destroyed)return new Promise(function(te,re){process.nextTick(function(){$[M]?re($[M]):te(O(void 0,!0))})});var ce,me=this[N];if(me)ce=new Promise(function(j,$){return function(ee,me){j.then(function(){$[c]?ee(O(void 0,!0)):$[o](ee,me)},me)}}(me,this));else{var le=this[L].read();if(null!==le)return Promise.resolve(O(le,!1));ce=new Promise(this[o])}return this[N]=ce,ce}},Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var $=this;return new Promise(function(ee,me){$[L].destroy(null,function(ce){ce?me(ce):ee(O(void 0,!0))})})}),e),w);Ze.exports=function($){var ee,me=Object.create(V,(t(ee={},L,{value:$,writable:!0}),t(ee,C,{value:null,writable:!0}),t(ee,s,{value:null,writable:!0}),t(ee,M,{value:null,writable:!0}),t(ee,c,{value:$._readableState.endEmitted,writable:!0}),t(ee,o,{value:function(le,te){var re=me[L].read();re?(me[N]=null,me[C]=null,me[s]=null,le(O(re,!1))):(me[C]=le,me[s]=te)},writable:!0}),ee));return me[N]=null,v($,function(ce){if(ce&&"ERR_STREAM_PREMATURE_CLOSE"!==ce.code){var le=me[s];return null!==le&&(me[N]=null,me[C]=null,me[s]=null,le(ce)),void(me[M]=ce)}var te=me[C];null!==te&&(me[N]=null,me[C]=null,me[s]=null,te(O(void 0,!0))),me[c]=!0}),$.on("readable",E.bind(null,me)),me}},5019:(Ze,K,m)=>{"use strict";function e(E,k){var w=Object.keys(E);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(E);k&&(V=V.filter(function(W){return Object.getOwnPropertyDescriptor(E,W).enumerable})),w.push.apply(w,V)}return w}function v(E,k,w){return k in E?Object.defineProperty(E,k,{value:w,enumerable:!0,configurable:!0,writable:!0}):E[k]=w,E}function s(E,k){for(var w=0;w<k.length;w++){var V=k[w];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(E,V.key,V)}}var N=m(3172).Buffer,L=m(2361).inspect,O=L&&L.custom||"inspect";function A(E,k,w){N.prototype.copy.call(E,k,w)}Ze.exports=function(){function E(){(function(E,k){if(!(E instanceof k))throw new TypeError("Cannot call a class as a function")})(this,E),this.head=null,this.tail=null,this.length=0}return function(E,k,w){k&&s(E.prototype,k)}(E,[{key:"push",value:function(w){var V={data:w,next:null};this.length>0?this.tail.next=V:this.head=V,this.tail=V,++this.length}},{key:"unshift",value:function(w){var V={data:w,next:this.head};0===this.length&&(this.tail=V),this.head=V,++this.length}},{key:"shift",value:function(){if(0!==this.length){var w=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,w}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(w){if(0===this.length)return"";for(var V=this.head,W=""+V.data;V=V.next;)W+=w+V.data;return W}},{key:"concat",value:function(w){if(0===this.length)return N.alloc(0);for(var V=N.allocUnsafe(w>>>0),W=this.head,j=0;W;)A(W.data,V,j),j+=W.data.length,W=W.next;return V}},{key:"consume",value:function(w,V){var W;return w<this.head.data.length?(W=this.head.data.slice(0,w),this.head.data=this.head.data.slice(w)):W=w===this.head.data.length?this.shift():V?this._getString(w):this._getBuffer(w),W}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(w){var V=this.head,W=1,j=V.data;for(w-=j.length;V=V.next;){var $=V.data,ee=w>$.length?$.length:w;if(j+=ee===$.length?$:$.slice(0,w),0==(w-=ee)){ee===$.length?(++W,this.head=V.next?V.next:this.tail=null):(this.head=V,V.data=$.slice(ee));break}++W}return this.length-=W,j}},{key:"_getBuffer",value:function(w){var V=N.allocUnsafe(w),W=this.head,j=1;for(W.data.copy(V),w-=W.data.length;W=W.next;){var $=W.data,ee=w>$.length?$.length:w;if($.copy(V,V.length-w,0,ee),0==(w-=ee)){ee===$.length?(++j,this.head=W.next?W.next:this.tail=null):(this.head=W,W.data=$.slice(ee));break}++j}return this.length-=j,V}},{key:O,value:function(w,V){return L(this,function(E){for(var k=1;k<arguments.length;k++){var w=null!=arguments[k]?arguments[k]:{};k%2?e(Object(w),!0).forEach(function(V){v(E,V,w[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(w)):e(Object(w)).forEach(function(V){Object.defineProperty(E,V,Object.getOwnPropertyDescriptor(w,V))})}return E}({},V,{depth:0,customInspect:!1}))}}]),E}()},1920:Ze=>{"use strict";function m(s,M){v(s,M),e(s)}function e(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function v(s,M){s.emit("error",M)}Ze.exports={destroy:function(s,M){var c=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(M?M(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(v,this,s)):process.nextTick(v,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(L){!M&&L?c._writableState?c._writableState.errorEmitted?process.nextTick(e,c):(c._writableState.errorEmitted=!0,process.nextTick(m,c,L)):process.nextTick(m,c,L):M?(process.nextTick(e,c),M(L)):process.nextTick(e,c)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(s,M){var c=s._readableState,N=s._writableState;c&&c.autoDestroy||N&&N.autoDestroy?s.destroy(M):s.emit("error",M)}}},7542:(Ze,K,m)=>{"use strict";var e=m(891).q.ERR_STREAM_PREMATURE_CLOSE;function v(){}Ze.exports=function s(M,c,N){if("function"==typeof c)return s(M,null,c);c||(c={}),N=function(M){var c=!1;return function(){if(!c){c=!0;for(var N=arguments.length,o=new Array(N),L=0;L<N;L++)o[L]=arguments[L];M.apply(this,o)}}}(N||v);var o=c.readable||!1!==c.readable&&M.readable,L=c.writable||!1!==c.writable&&M.writable,O=function(){M.writable||E()},A=M._writableState&&M._writableState.finished,E=function(){L=!1,A=!0,o||N.call(M)},k=M._readableState&&M._readableState.endEmitted,w=function(){o=!1,k=!0,L||N.call(M)},V=function(ee){N.call(M,ee)},W=function(){var ee;return o&&!k?((!M._readableState||!M._readableState.ended)&&(ee=new e),N.call(M,ee)):L&&!A?((!M._writableState||!M._writableState.ended)&&(ee=new e),N.call(M,ee)):void 0},j=function(){M.req.on("finish",E)};return function(M){return M.setHeader&&"function"==typeof M.abort}(M)?(M.on("complete",E),M.on("abort",W),M.req?j():M.on("request",j)):L&&!M._writableState&&(M.on("end",O),M.on("close",O)),M.on("end",w),M.on("finish",E),!1!==c.error&&M.on("error",V),M.on("close",W),function(){M.removeListener("complete",E),M.removeListener("abort",W),M.removeListener("request",j),M.req&&M.req.removeListener("finish",E),M.removeListener("end",O),M.removeListener("close",O),M.removeListener("finish",E),M.removeListener("end",w),M.removeListener("error",V),M.removeListener("close",W)}}},7412:Ze=>{Ze.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(Ze,K,m)=>{"use strict";var e,v=m(891).q,C=v.ERR_MISSING_ARGS,s=v.ERR_STREAM_DESTROYED;function M(E){if(E)throw E}function N(E,k,w,V){V=function(E){var k=!1;return function(){k||(k=!0,E.apply(void 0,arguments))}}(V);var W=!1;E.on("close",function(){W=!0}),void 0===e&&(e=m(7542)),e(E,{readable:k,writable:w},function($){if($)return V($);W=!0,V()});var j=!1;return function($){if(!W&&!j){if(j=!0,function(E){return E.setHeader&&"function"==typeof E.abort}(E))return E.abort();if("function"==typeof E.destroy)return E.destroy();V($||new s("pipe"))}}}function o(E){E()}function L(E,k){return E.pipe(k)}function O(E){return E.length&&"function"==typeof E[E.length-1]?E.pop():M}Ze.exports=function(){for(var E=arguments.length,k=new Array(E),w=0;w<E;w++)k[w]=arguments[w];var V=O(k);if(Array.isArray(k[0])&&(k=k[0]),k.length<2)throw new C("streams");var W,j=k.map(function($,ee){var me=ee<k.length-1;return N($,me,ee>0,function(le){W||(W=le),le&&j.forEach(o),!me&&(j.forEach(o),V(W))})});return k.reduce(L)}},7102:(Ze,K,m)=>{"use strict";var e=m(891).q.ERR_INVALID_OPT_VALUE;Ze.exports={getHighWaterMark:function(C,s,M,c){var N=function(C,s,M){return null!=C.highWaterMark?C.highWaterMark:s?C[M]:null}(s,c,M);if(null!=N){if(!isFinite(N)||Math.floor(N)!==N||N<0)throw new e(c?M:"highWaterMark",N);return Math.floor(N)}return C.objectMode?16:16384}}},4970:(Ze,K,m)=>{Ze.exports=m(9069).EventEmitter},5685:(Ze,K,m)=>{(K=Ze.exports=m(3154)).Stream=K,K.Readable=K,K.Writable=m(520),K.Duplex=m(1339),K.Transform=m(6025),K.PassThrough=m(6071),K.finished=m(7542),K.pipeline=m(954)},5634:(Ze,K,m)=>{"use strict";var e=m(3172).Buffer,t=m(3894),v=m(9650),C=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],M=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],N=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],o=[0,1518500249,1859775393,2400959708,2840853838],L=[1352829926,1548603684,1836072691,2053994217,0];function O(){v.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function A(j,$){return j<<$|j>>>32-$}function E(j,$,ee,me,ce,le,te,re){return A(j+($^ee^me)+le+te|0,re)+ce|0}function k(j,$,ee,me,ce,le,te,re){return A(j+($&ee|~$&me)+le+te|0,re)+ce|0}function w(j,$,ee,me,ce,le,te,re){return A(j+(($|~ee)^me)+le+te|0,re)+ce|0}function V(j,$,ee,me,ce,le,te,re){return A(j+($&me|ee&~me)+le+te|0,re)+ce|0}function W(j,$,ee,me,ce,le,te,re){return A(j+($^(ee|~me))+le+te|0,re)+ce|0}t(O,v),O.prototype._update=function(){for(var j=C,$=0;$<16;++$)j[$]=this._block.readInt32LE(4*$);for(var ee=0|this._a,me=0|this._b,ce=0|this._c,le=0|this._d,te=0|this._e,re=0|this._a,pe=0|this._b,y=0|this._c,i=0|this._d,a=0|this._e,p=0;p<80;p+=1){var u,_;p<16?(u=E(ee,me,ce,le,te,j[s[p]],o[0],c[p]),_=W(re,pe,y,i,a,j[M[p]],L[0],N[p])):p<32?(u=k(ee,me,ce,le,te,j[s[p]],o[1],c[p]),_=V(re,pe,y,i,a,j[M[p]],L[1],N[p])):p<48?(u=w(ee,me,ce,le,te,j[s[p]],o[2],c[p]),_=w(re,pe,y,i,a,j[M[p]],L[2],N[p])):p<64?(u=V(ee,me,ce,le,te,j[s[p]],o[3],c[p]),_=k(re,pe,y,i,a,j[M[p]],L[3],N[p])):(u=W(ee,me,ce,le,te,j[s[p]],o[4],c[p]),_=E(re,pe,y,i,a,j[M[p]],L[4],N[p])),ee=te,te=le,le=A(ce,10),ce=me,me=u,re=a,a=i,i=A(y,10),y=pe,pe=_}var D=this._b+ce+i|0;this._b=this._c+le+a|0,this._c=this._d+te+re|0,this._d=this._e+ee+pe|0,this._e=this._a+me+y|0,this._a=D},O.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var j=e.alloc?e.alloc(20):new e(20);return j.writeInt32LE(this._a,0),j.writeInt32LE(this._b,4),j.writeInt32LE(this._c,8),j.writeInt32LE(this._d,12),j.writeInt32LE(this._e,16),j},Ze.exports=O},1135:(Ze,K,m)=>{"use strict";m.d(K,{X:()=>t});var e=m(7579);class t extends e.x{constructor(C){super(),this._value=C}get value(){return this.getValue()}_subscribe(C){const s=super._subscribe(C);return!s.closed&&C.next(this._value),s}getValue(){const{hasError:C,thrownError:s,_value:M}=this;if(C)throw s;return this._throwIfClosed(),M}next(C){super.next(this._value=C)}}},8306:(Ze,K,m)=>{"use strict";m.d(K,{y:()=>L});var e=m(930),t=m(727),v=m(8822),C=m(4671);var c=m(2416),N=m(576),o=m(2806);let L=(()=>{class k{constructor(V){V&&(this._subscribe=V)}lift(V){const W=new k;return W.source=this,W.operator=V,W}subscribe(V,W,j){const $=function(k){return k&&k instanceof e.Lv||function(k){return k&&(0,N.m)(k.next)&&(0,N.m)(k.error)&&(0,N.m)(k.complete)}(k)&&(0,t.Nn)(k)}(V)?V:new e.Hp(V,W,j);return(0,o.x)(()=>{const{operator:ee,source:me}=this;$.add(ee?ee.call($,me):me?this._subscribe($):this._trySubscribe($))}),$}_trySubscribe(V){try{return this._subscribe(V)}catch(W){V.error(W)}}forEach(V,W){return new(W=O(W))((j,$)=>{let ee;ee=this.subscribe(me=>{try{V(me)}catch(ce){$(ce),null==ee||ee.unsubscribe()}},$,j)})}_subscribe(V){var W;return null===(W=this.source)||void 0===W?void 0:W.subscribe(V)}[v.L](){return this}pipe(...V){return function(k){return 0===k.length?C.y:1===k.length?k[0]:function(V){return k.reduce((W,j)=>j(W),V)}}(V)(this)}toPromise(V){return new(V=O(V))((W,j)=>{let $;this.subscribe(ee=>$=ee,ee=>j(ee),()=>W($))})}}return k.create=w=>new k(w),k})();function O(k){var w;return null!==(w=null!=k?k:c.v.Promise)&&void 0!==w?w:Promise}},4707:(Ze,K,m)=>{"use strict";m.d(K,{t:()=>v});var e=m(7579),t=m(6063);class v extends e.x{constructor(s=1/0,M=1/0,c=t.l){super(),this._bufferSize=s,this._windowTime=M,this._timestampProvider=c,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=M===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,M)}next(s){const{isStopped:M,_buffer:c,_infiniteTimeWindow:N,_timestampProvider:o,_windowTime:L}=this;M||(c.push(s),!N&&c.push(o.now()+L)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const M=this._innerSubscribe(s),{_infiniteTimeWindow:c,_buffer:N}=this,o=N.slice();for(let L=0;L<o.length&&!s.closed;L+=c?1:2)s.next(o[L]);return this._checkFinalizedStatuses(s),M}_trimBuffer(){const{_bufferSize:s,_timestampProvider:M,_buffer:c,_infiniteTimeWindow:N}=this,o=(N?1:2)*s;if(s<1/0&&o<c.length&&c.splice(0,c.length-o),!N){const L=M.now();let O=0;for(let A=1;A<c.length&&c[A]<=L;A+=2)O=A;O&&c.splice(0,O+1)}}}},7579:(Ze,K,m)=>{"use strict";m.d(K,{u:()=>N,x:()=>c});var e=m(8306),t=m(727);const C=(0,m(3888).d)(o=>function(){o(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var s=m(8737),M=m(2806);let c=(()=>{class o extends e.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(O){const A=new N(this,this);return A.operator=O,A}_throwIfClosed(){if(this.closed)throw new C}next(O){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const A=this.observers.slice();for(const E of A)E.next(O)}})}error(O){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=O;const{observers:A}=this;for(;A.length;)A.shift().error(O)}})}complete(){(0,M.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:O}=this;for(;O.length;)O.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var O;return(null===(O=this.observers)||void 0===O?void 0:O.length)>0}_trySubscribe(O){return this._throwIfClosed(),super._trySubscribe(O)}_subscribe(O){return this._throwIfClosed(),this._checkFinalizedStatuses(O),this._innerSubscribe(O)}_innerSubscribe(O){const{hasError:A,isStopped:E,observers:k}=this;return A||E?t.Lc:(k.push(O),new t.w0(()=>(0,s.P)(k,O)))}_checkFinalizedStatuses(O){const{hasError:A,thrownError:E,isStopped:k}=this;A?O.error(E):k&&O.complete()}asObservable(){const O=new e.y;return O.source=this,O}}return o.create=(L,O)=>new N(L,O),o})();class N extends c{constructor(L,O){super(),this.destination=L,this.source=O}next(L){var O,A;null===(A=null===(O=this.destination)||void 0===O?void 0:O.next)||void 0===A||A.call(O,L)}error(L){var O,A;null===(A=null===(O=this.destination)||void 0===O?void 0:O.error)||void 0===A||A.call(O,L)}complete(){var L,O;null===(O=null===(L=this.destination)||void 0===L?void 0:L.complete)||void 0===O||O.call(L)}_subscribe(L){var O,A;return null!==(A=null===(O=this.source)||void 0===O?void 0:O.subscribe(L))&&void 0!==A?A:t.Lc}}},930:(Ze,K,m)=>{"use strict";m.d(K,{Hp:()=>E,Lv:()=>A});var e=m(576),t=m(727),v=m(2416),C=m(7849),s=m(5032);const M=o("C",void 0,void 0);function o(j,$,ee){return{kind:j,value:$,error:ee}}var L=m(3410),O=m(2806);class A extends t.w0{constructor($){super(),this.isStopped=!1,$?(this.destination=$,(0,t.Nn)($)&&$.add(this)):this.destination=W}static create($,ee,me){return new E($,ee,me)}next($){this.isStopped?V(o("N",$,void 0),this):this._next($)}error($){this.isStopped?V(o("E",void 0,$),this):(this.isStopped=!0,this._error($))}complete(){this.isStopped?V(M,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next($){this.destination.next($)}_error($){try{this.destination.error($)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class E extends A{constructor($,ee,me){let ce;if(super(),(0,e.m)($))ce=$;else if($){let le;({next:ce,error:ee,complete:me}=$),this&&v.v.useDeprecatedNextContext?(le=Object.create($),le.unsubscribe=()=>this.unsubscribe()):le=$,ce=null==ce?void 0:ce.bind(le),ee=null==ee?void 0:ee.bind(le),me=null==me?void 0:me.bind(le)}this.destination={next:ce?k(ce):s.Z,error:k(null!=ee?ee:w),complete:me?k(me):s.Z}}}function k(j,$){return(...ee)=>{try{j(...ee)}catch(me){v.v.useDeprecatedSynchronousErrorHandling?(0,O.O)(me):(0,C.h)(me)}}}function w(j){throw j}function V(j,$){const{onStoppedNotification:ee}=v.v;ee&&L.z.setTimeout(()=>ee(j,$))}const W={closed:!0,next:s.Z,error:w,complete:s.Z}},727:(Ze,K,m)=>{"use strict";m.d(K,{Lc:()=>M,w0:()=>s,Nn:()=>c});var e=m(576);const v=(0,m(3888).d)(o=>function(O){o(this),this.message=O?`${O.length} errors occurred during unsubscription:\n${O.map((A,E)=>`${E+1}) ${A.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=O});var C=m(8737);class s{constructor(L){this.initialTeardown=L,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let L;if(!this.closed){this.closed=!0;const{_parentage:O}=this;if(O)if(this._parentage=null,Array.isArray(O))for(const k of O)k.remove(this);else O.remove(this);const{initialTeardown:A}=this;if((0,e.m)(A))try{A()}catch(k){L=k instanceof v?k.errors:[k]}const{_teardowns:E}=this;if(E){this._teardowns=null;for(const k of E)try{N(k)}catch(w){L=null!=L?L:[],w instanceof v?L=[...L,...w.errors]:L.push(w)}}if(L)throw new v(L)}}add(L){var O;if(L&&L!==this)if(this.closed)N(L);else{if(L instanceof s){if(L.closed||L._hasParent(this))return;L._addParent(this)}(this._teardowns=null!==(O=this._teardowns)&&void 0!==O?O:[]).push(L)}}_hasParent(L){const{_parentage:O}=this;return O===L||Array.isArray(O)&&O.includes(L)}_addParent(L){const{_parentage:O}=this;this._parentage=Array.isArray(O)?(O.push(L),O):O?[O,L]:L}_removeParent(L){const{_parentage:O}=this;O===L?this._parentage=null:Array.isArray(O)&&(0,C.P)(O,L)}remove(L){const{_teardowns:O}=this;O&&(0,C.P)(O,L),L instanceof s&&L._removeParent(this)}}s.EMPTY=(()=>{const o=new s;return o.closed=!0,o})();const M=s.EMPTY;function c(o){return o instanceof s||o&&"closed"in o&&(0,e.m)(o.remove)&&(0,e.m)(o.add)&&(0,e.m)(o.unsubscribe)}function N(o){(0,e.m)(o)?o():o.unsubscribe()}},2416:(Ze,K,m)=>{"use strict";m.d(K,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Ze,K,m)=>{"use strict";m.d(K,{a:()=>L});var e=m(8306),t=m(4742),v=m(457),C=m(4671),s=m(3268),M=m(3269),c=m(1810),N=m(5403),o=m(9672);function L(...E){const k=(0,M.yG)(E),w=(0,M.jO)(E),{args:V,keys:W}=(0,t.D)(E);if(0===V.length)return(0,v.D)([],k);const j=new e.y(function(E,k,w=C.y){return V=>{A(k,()=>{const{length:W}=E,j=new Array(W);let $=W,ee=W;for(let me=0;me<W;me++)A(k,()=>{const ce=(0,v.D)(E[me],k);let le=!1;ce.subscribe(new N.Q(V,te=>{j[me]=te,le||(le=!0,ee--),ee||V.next(w(j.slice()))},()=>{--$||V.complete()}))},V)},V)}}(V,k,W?$=>(0,c.n)(W,$):C.y));return w?j.pipe((0,s.Z)(w)):j}function A(E,k,w){E?(0,o.f)(w,E,k):k()}},7272:(Ze,K,m)=>{"use strict";m.d(K,{z:()=>s});var e=m(8189),v=m(3269),C=m(457);function s(...M){return(0,e.J)(1)((0,C.D)(M,(0,v.yG)(M)))}},9770:(Ze,K,m)=>{"use strict";m.d(K,{P:()=>v});var e=m(8306),t=m(8421);function v(C){return new e.y(s=>{(0,t.Xf)(C()).subscribe(s)})}},515:(Ze,K,m)=>{"use strict";m.d(K,{E:()=>t});const t=new(m(8306).y)(s=>s.complete())},4128:(Ze,K,m)=>{"use strict";m.d(K,{D:()=>N});var e=m(8306),t=m(4742),v=m(8421),C=m(3269),s=m(5403),M=m(3268),c=m(1810);function N(...o){const L=(0,C.jO)(o),{args:O,keys:A}=(0,t.D)(o),E=new e.y(k=>{const{length:w}=O;if(!w)return void k.complete();const V=new Array(w);let W=w,j=w;for(let $=0;$<w;$++){let ee=!1;(0,v.Xf)(O[$]).subscribe(new s.Q(k,me=>{ee||(ee=!0,j--),V[$]=me},()=>W--,void 0,()=>{(!W||!ee)&&(j||k.next(A?(0,c.n)(A,V):V),k.complete())}))}});return L?E.pipe((0,M.Z)(L)):E}},457:(Ze,K,m)=>{"use strict";m.d(K,{D:()=>le});var e=m(8421),t=m(5363),v=m(4482);function C(te,re=0){return(0,v.e)((pe,y)=>{y.add(te.schedule(()=>pe.subscribe(y),re))})}var c=m(8306),o=m(2202),L=m(576),O=m(9672);function E(te,re){if(!te)throw new Error("Iterable cannot be null");return new c.y(pe=>{(0,O.f)(pe,re,()=>{const y=te[Symbol.asyncIterator]();(0,O.f)(pe,re,()=>{y.next().then(i=>{i.done?pe.complete():pe.next(i.value)})},0,!0)})})}var k=m(3670),w=m(8239),V=m(1144),W=m(6495),j=m(2206),$=m(4532),ee=m(3260);function le(te,re){return re?function(te,re){if(null!=te){if((0,k.c)(te))return function(te,re){return(0,e.Xf)(te).pipe(C(re),(0,t.Q)(re))}(te,re);if((0,V.z)(te))return function(te,re){return new c.y(pe=>{let y=0;return re.schedule(function(){y===te.length?pe.complete():(pe.next(te[y++]),pe.closed||this.schedule())})})}(te,re);if((0,w.t)(te))return function(te,re){return(0,e.Xf)(te).pipe(C(re),(0,t.Q)(re))}(te,re);if((0,j.D)(te))return E(te,re);if((0,W.T)(te))return function(te,re){return new c.y(pe=>{let y;return(0,O.f)(pe,re,()=>{y=te[o.h](),(0,O.f)(pe,re,()=>{let i,a;try{({value:i,done:a}=y.next())}catch(p){return void pe.error(p)}a?pe.complete():pe.next(i)},0,!0)}),()=>(0,L.m)(null==y?void 0:y.return)&&y.return()})}(te,re);if((0,ee.L)(te))return function(te,re){return E((0,ee.Q)(te),re)}(te,re)}throw(0,$.z)(te)}(te,re):(0,e.Xf)(te)}},4968:(Ze,K,m)=>{"use strict";m.d(K,{R:()=>L});var e=m(8421),t=m(8306),v=m(5577),C=m(1144),s=m(576),M=m(3268);const c=["addListener","removeListener"],N=["addEventListener","removeEventListener"],o=["on","off"];function L(w,V,W,j){if((0,s.m)(W)&&(j=W,W=void 0),j)return L(w,V,W).pipe((0,M.Z)(j));const[$,ee]=function(w){return(0,s.m)(w.addEventListener)&&(0,s.m)(w.removeEventListener)}(w)?N.map(me=>ce=>w[me](V,ce,W)):function(w){return(0,s.m)(w.addListener)&&(0,s.m)(w.removeListener)}(w)?c.map(O(w,V)):function(w){return(0,s.m)(w.on)&&(0,s.m)(w.off)}(w)?o.map(O(w,V)):[];if(!$&&(0,C.z)(w))return(0,v.z)(me=>L(me,V,W))((0,e.Xf)(w));if(!$)throw new TypeError("Invalid event target");return new t.y(me=>{const ce=(...le)=>me.next(1<le.length?le:le[0]);return $(ce),()=>ee(ce)})}function O(w,V){return W=>j=>w[W](V,j)}},8421:(Ze,K,m)=>{"use strict";m.d(K,{Xf:()=>E});var e=m(5987),t=m(1144),v=m(8239),C=m(8306),s=m(3670),M=m(2206),c=m(4532),N=m(6495),o=m(3260),L=m(576),O=m(7849),A=m(8822);function E(me){if(me instanceof C.y)return me;if(null!=me){if((0,s.c)(me))return function(me){return new C.y(ce=>{const le=me[A.L]();if((0,L.m)(le.subscribe))return le.subscribe(ce);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(me);if((0,t.z)(me))return function(me){return new C.y(ce=>{for(let le=0;le<me.length&&!ce.closed;le++)ce.next(me[le]);ce.complete()})}(me);if((0,v.t)(me))return function(me){return new C.y(ce=>{me.then(le=>{ce.closed||(ce.next(le),ce.complete())},le=>ce.error(le)).then(null,O.h)})}(me);if((0,M.D)(me))return j(me);if((0,N.T)(me))return function(me){return new C.y(ce=>{for(const le of me)if(ce.next(le),ce.closed)return;ce.complete()})}(me);if((0,o.L)(me))return function(me){return j((0,o.Q)(me))}(me)}throw(0,c.z)(me)}function j(me){return new C.y(ce=>{(function(me,ce){var le,te,re,pe;return(0,e.mG)(this,void 0,void 0,function*(){try{for(le=(0,e.KL)(me);!(te=yield le.next()).done;)if(ce.next(te.value),ce.closed)return}catch(y){re={error:y}}finally{try{te&&!te.done&&(pe=le.return)&&(yield pe.call(le))}finally{if(re)throw re.error}}ce.complete()})})(me,ce).catch(le=>ce.error(le))})}},6451:(Ze,K,m)=>{"use strict";m.d(K,{T:()=>M});var e=m(8189),t=m(8421),v=m(515),C=m(3269),s=m(457);function M(...c){const N=(0,C.yG)(c),o=(0,C._6)(c,1/0),L=c;return L.length?1===L.length?(0,t.Xf)(L[0]):(0,e.J)(o)((0,s.D)(L,N)):v.E}},9646:(Ze,K,m)=>{"use strict";m.d(K,{of:()=>v});var e=m(3269),t=m(457);function v(...C){const s=(0,e.yG)(C);return(0,t.D)(C,s)}},2843:(Ze,K,m)=>{"use strict";m.d(K,{_:()=>v});var e=m(8306),t=m(576);function v(C,s){const M=(0,t.m)(C)?C:()=>C,c=N=>N.error(M());return new e.y(s?N=>s.schedule(c,0,N):c)}},2805:(Ze,K,m)=>{"use strict";m.d(K,{H:()=>s});var e=m(8306),t=m(4986),v=m(3532),C=m(1165);function s(M=0,c,N=t.P){let o=-1;return null!=c&&((0,v.K)(c)?N=c:o=c),new e.y(L=>{let O=(0,C.q)(M)?+M-N.now():M;O<0&&(O=0);let A=0;return N.schedule(function(){L.closed||(L.next(A++),0<=o?this.schedule(void 0,o):L.complete())},O)})}},5403:(Ze,K,m)=>{"use strict";m.d(K,{Q:()=>t});var e=m(930);class t extends e.Lv{constructor(C,s,M,c,N){super(C),this.onFinalize=N,this._next=s?function(o){try{s(o)}catch(L){C.error(L)}}:super._next,this._error=c?function(o){try{c(o)}catch(L){C.error(L)}finally{this.unsubscribe()}}:super._error,this._complete=M?function(){try{M()}catch(o){C.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var C;const{closed:s}=this;super.unsubscribe(),!s&&(null===(C=this.onFinalize)||void 0===C||C.call(this))}}},3601:(Ze,K,m)=>{"use strict";m.d(K,{e:()=>c});var e=m(4986),t=m(4482),v=m(8421),C=m(5403),M=m(2805);function c(N,o=e.P){return function(N){return(0,t.e)((o,L)=>{let O=!1,A=null,E=null,k=!1;const w=()=>{if(null==E||E.unsubscribe(),E=null,O){O=!1;const W=A;A=null,L.next(W)}k&&L.complete()},V=()=>{E=null,k&&L.complete()};o.subscribe(new C.Q(L,W=>{O=!0,A=W,E||(0,v.Xf)(N()).subscribe(E=new C.Q(L,w,V))},()=>{k=!0,(!O||!E||E.closed)&&L.complete()}))})}(()=>(0,M.H)(N,o))}},262:(Ze,K,m)=>{"use strict";m.d(K,{K:()=>C});var e=m(8421),t=m(5403),v=m(4482);function C(s){return(0,v.e)((M,c)=>{let L,N=null,o=!1;N=M.subscribe(new t.Q(c,void 0,void 0,O=>{L=(0,e.Xf)(s(O,C(s)(M))),N?(N.unsubscribe(),N=null,L.subscribe(c)):o=!0})),o&&(N.unsubscribe(),N=null,L.subscribe(c))})}},4351:(Ze,K,m)=>{"use strict";m.d(K,{b:()=>v});var e=m(5577),t=m(576);function v(C,s){return(0,t.m)(s)?(0,e.z)(C,s,1):(0,e.z)(C,1)}},8372:(Ze,K,m)=>{"use strict";m.d(K,{b:()=>C});var e=m(4986),t=m(4482),v=m(5403);function C(s,M=e.z){return(0,t.e)((c,N)=>{let o=null,L=null,O=null;const A=()=>{if(o){o.unsubscribe(),o=null;const k=L;L=null,N.next(k)}};function E(){const k=O+s,w=M.now();if(w<k)return o=this.schedule(void 0,k-w),void N.add(o);A()}c.subscribe(new v.Q(N,k=>{L=k,O=M.now(),o||(o=M.schedule(E,s),N.add(o))},()=>{A(),N.complete()},void 0,()=>{L=o=null}))})}},4086:(Ze,K,m)=>{"use strict";m.d(K,{g:()=>o});var e=m(4986),t=m(7272),v=m(5698),C=m(8502),s=m(9718),M=m(5577);function c(L,O){return O?A=>(0,t.z)(O.pipe((0,v.q)(1),(0,C.l)()),A.pipe(c(L))):(0,M.z)((A,E)=>L(A,E).pipe((0,v.q)(1),(0,s.h)(A)))}var N=m(2805);function o(L,O=e.z){const A=(0,N.H)(L,O);return c(()=>A)}},1884:(Ze,K,m)=>{"use strict";m.d(K,{x:()=>C});var e=m(4671),t=m(4482),v=m(5403);function C(M,c=e.y){return M=null!=M?M:s,(0,t.e)((N,o)=>{let L,O=!0;N.subscribe(new v.Q(o,A=>{const E=c(A);(O||!M(L,E))&&(O=!1,L=E,o.next(A))}))})}function s(M,c){return M===c}},9300:(Ze,K,m)=>{"use strict";m.d(K,{h:()=>v});var e=m(4482),t=m(5403);function v(C,s){return(0,e.e)((M,c)=>{let N=0;M.subscribe(new t.Q(c,o=>C.call(s,o,N++)&&c.next(o)))})}},8746:(Ze,K,m)=>{"use strict";m.d(K,{x:()=>t});var e=m(4482);function t(v){return(0,e.e)((C,s)=>{try{C.subscribe(s)}finally{s.add(v)}})}},8502:(Ze,K,m)=>{"use strict";m.d(K,{l:()=>C});var e=m(4482),t=m(5403),v=m(5032);function C(){return(0,e.e)((s,M)=>{s.subscribe(new t.Q(M,v.Z))})}},4004:(Ze,K,m)=>{"use strict";m.d(K,{U:()=>v});var e=m(4482),t=m(5403);function v(C,s){return(0,e.e)((M,c)=>{let N=0;M.subscribe(new t.Q(c,o=>{c.next(C.call(s,o,N++))}))})}},9718:(Ze,K,m)=>{"use strict";m.d(K,{h:()=>t});var e=m(4004);function t(v){return(0,e.U)(()=>v)}},8189:(Ze,K,m)=>{"use strict";m.d(K,{J:()=>v});var e=m(5577),t=m(4671);function v(C=1/0){return(0,e.z)(t.y,C)}},5577:(Ze,K,m)=>{"use strict";m.d(K,{z:()=>N});var e=m(4004),t=m(8421),v=m(4482),s=(m(9672),m(5403)),c=m(576);function N(o,L,O=1/0){return(0,c.m)(L)?N((A,E)=>(0,e.U)((k,w)=>L(A,k,E,w))((0,t.Xf)(o(A,E))),O):("number"==typeof L&&(O=L),(0,v.e)((A,E)=>function(o,L,O,A,E,k,w,V){const W=[];let j=0,$=0,ee=!1;const me=()=>{ee&&!W.length&&!j&&L.complete()},ce=te=>j<A?le(te):W.push(te),le=te=>{j++;let re=!1;(0,t.Xf)(O(te,$++)).subscribe(new s.Q(L,pe=>{L.next(pe)},()=>{re=!0},void 0,()=>{if(re)try{for(j--;W.length&&j<A;){const pe=W.shift();le(pe)}me()}catch(pe){L.error(pe)}}))};return o.subscribe(new s.Q(L,ce,()=>{ee=!0,me()})),()=>{}}(A,E,o,O)))}},5363:(Ze,K,m)=>{"use strict";m.d(K,{Q:()=>C});var e=m(9672),t=m(4482),v=m(5403);function C(s,M=0){return(0,t.e)((c,N)=>{c.subscribe(new v.Q(N,o=>(0,e.f)(N,s,()=>N.next(o),M),()=>(0,e.f)(N,s,()=>N.complete(),M),o=>(0,e.f)(N,s,()=>N.error(o),M)))})}},5026:(Ze,K,m)=>{"use strict";m.d(K,{R:()=>C});var e=m(4482),t=m(5403);function v(s,M,c,N,o){return(L,O)=>{let A=c,E=M,k=0;L.subscribe(new t.Q(O,w=>{const V=k++;E=A?s(E,w,V):(A=!0,w),N&&O.next(E)},o&&(()=>{A&&O.next(E),O.complete()})))}}function C(s,M){return(0,e.e)(v(s,M,arguments.length>=2,!0))}},3099:(Ze,K,m)=>{"use strict";m.d(K,{B:()=>M});var e=m(457),t=m(5698),v=m(7579),C=m(930),s=m(4482);function M(N={}){const{connector:o=(()=>new v.x),resetOnError:L=!0,resetOnComplete:O=!0,resetOnRefCountZero:A=!0}=N;return E=>{let k=null,w=null,V=null,W=0,j=!1,$=!1;const ee=()=>{null==w||w.unsubscribe(),w=null},me=()=>{ee(),k=V=null,j=$=!1},ce=()=>{const le=k;me(),null==le||le.unsubscribe()};return(0,s.e)((le,te)=>{W++,!$&&!j&&ee();const re=V=null!=V?V:o();te.add(()=>{W--,0===W&&!$&&!j&&(w=c(ce,A))}),re.subscribe(te),k||(k=new C.Hp({next:pe=>re.next(pe),error:pe=>{$=!0,ee(),w=c(me,L,pe),re.error(pe)},complete:()=>{j=!0,ee(),w=c(me,O),re.complete()}}),(0,e.D)(le).subscribe(k))})(E)}}function c(N,o,...L){return!0===o?(N(),null):!1===o?null:o(...L).pipe((0,t.q)(1)).subscribe(()=>N())}},5684:(Ze,K,m)=>{"use strict";m.d(K,{T:()=>t});var e=m(9300);function t(v){return(0,e.h)((C,s)=>v<=s)}},8675:(Ze,K,m)=>{"use strict";m.d(K,{O:()=>C});var e=m(7272),t=m(3269),v=m(4482);function C(...s){const M=(0,t.yG)(s);return(0,v.e)((c,N)=>{(M?(0,e.z)(s,c,M):(0,e.z)(s,c)).subscribe(N)})}},3900:(Ze,K,m)=>{"use strict";m.d(K,{w:()=>C});var e=m(8421),t=m(4482),v=m(5403);function C(s,M){return(0,t.e)((c,N)=>{let o=null,L=0,O=!1;const A=()=>O&&!o&&N.complete();c.subscribe(new v.Q(N,E=>{null==o||o.unsubscribe();let k=0;const w=L++;(0,e.Xf)(s(E,w)).subscribe(o=new v.Q(N,V=>N.next(M?M(E,V,w,k++):V),()=>{o=null,A()}))},()=>{O=!0,A()}))})}},5698:(Ze,K,m)=>{"use strict";m.d(K,{q:()=>C});var e=m(515),t=m(4482),v=m(5403);function C(s){return s<=0?()=>e.E:(0,t.e)((M,c)=>{let N=0;M.subscribe(new v.Q(c,o=>{++N<=s&&(c.next(o),s<=N&&c.complete())}))})}},2722:(Ze,K,m)=>{"use strict";m.d(K,{R:()=>s});var e=m(4482),t=m(5403),v=m(8421),C=m(5032);function s(M){return(0,e.e)((c,N)=>{(0,v.Xf)(M).subscribe(new t.Q(N,()=>N.complete(),C.Z)),!N.closed&&c.subscribe(N)})}},8505:(Ze,K,m)=>{"use strict";m.d(K,{b:()=>s});var e=m(576),t=m(4482),v=m(5403),C=m(4671);function s(M,c,N){const o=(0,e.m)(M)||c||N?{next:M,error:c,complete:N}:M;return o?(0,t.e)((L,O)=>{var A;null===(A=o.subscribe)||void 0===A||A.call(o);let E=!0;L.subscribe(new v.Q(O,k=>{var w;null===(w=o.next)||void 0===w||w.call(o,k),O.next(k)},()=>{var k;E=!1,null===(k=o.complete)||void 0===k||k.call(o),O.complete()},k=>{var w;E=!1,null===(w=o.error)||void 0===w||w.call(o,k),O.error(k)},()=>{var k,w;E&&(null===(k=o.unsubscribe)||void 0===k||k.call(o)),null===(w=o.finalize)||void 0===w||w.call(o)}))}):C.y}},7414:(Ze,K,m)=>{"use strict";m.d(K,{V:()=>o});var e=m(4986),t=m(1165),v=m(4482),C=m(8421),s=m(3888),M=m(5403),c=m(9672);const N=(0,s.d)(O=>function(E=null){O(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=E});function o(O,A){const{first:E,each:k,with:w=L,scheduler:V=(null!=A?A:e.z),meta:W=null}=(0,t.q)(O)?{first:O}:"number"==typeof O?{each:O}:O;if(null==E&&null==k)throw new TypeError("No timeout provided.");return(0,v.e)((j,$)=>{let ee,me,ce=null,le=0;const te=re=>{me=(0,c.f)($,V,()=>{try{ee.unsubscribe(),(0,C.Xf)(w({meta:W,lastValue:ce,seen:le})).subscribe($)}catch(pe){$.error(pe)}},re)};ee=j.subscribe(new M.Q($,re=>{null==me||me.unsubscribe(),le++,$.next(ce=re),k>0&&te(k)},void 0,void 0,()=>{(null==me?void 0:me.closed)||null==me||me.unsubscribe(),ce=null})),te(null!=E?"number"==typeof E?E:+E-V.now():k)})}function L(O){throw new N(O)}},1365:(Ze,K,m)=>{"use strict";m.d(K,{M:()=>c});var e=m(4482),t=m(5403),v=m(8421),C=m(4671),s=m(5032),M=m(3269);function c(...N){const o=(0,M.jO)(N);return(0,e.e)((L,O)=>{const A=N.length,E=new Array(A);let k=N.map(()=>!1),w=!1;for(let V=0;V<A;V++)(0,v.Xf)(N[V]).subscribe(new t.Q(O,W=>{E[V]=W,!w&&!k[V]&&(k[V]=!0,(w=k.every(C.y))&&(k=null))},s.Z));L.subscribe(new t.Q(O,V=>{if(w){const W=[V,...E];O.next(o?o(...W):W)}}))})}},4408:(Ze,K,m)=>{"use strict";m.d(K,{o:()=>s});var e=m(727);class t extends e.w0{constructor(c,N){super()}schedule(c,N=0){return this}}const v={setInterval(...M){const{delegate:c}=v;return((null==c?void 0:c.setInterval)||setInterval)(...M)},clearInterval(M){const{delegate:c}=v;return((null==c?void 0:c.clearInterval)||clearInterval)(M)},delegate:void 0};var C=m(8737);class s extends t{constructor(c,N){super(c,N),this.scheduler=c,this.work=N,this.pending=!1}schedule(c,N=0){if(this.closed)return this;this.state=c;const o=this.id,L=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(L,o,N)),this.pending=!0,this.delay=N,this.id=this.id||this.requestAsyncId(L,this.id,N),this}requestAsyncId(c,N,o=0){return v.setInterval(c.flush.bind(c,this),o)}recycleAsyncId(c,N,o=0){if(null!=o&&this.delay===o&&!1===this.pending)return N;v.clearInterval(N)}execute(c,N){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const o=this._execute(c,N);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(c,N){let L,o=!1;try{this.work(c)}catch(O){o=!0,L=O||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),L}unsubscribe(){if(!this.closed){const{id:c,scheduler:N}=this,{actions:o}=N;this.work=this.state=this.scheduler=null,this.pending=!1,(0,C.P)(o,this),null!=c&&(this.id=this.recycleAsyncId(N,c,null)),this.delay=null,super.unsubscribe()}}}},7565:(Ze,K,m)=>{"use strict";m.d(K,{v:()=>v});var e=m(6063);class t{constructor(s,M=t.now){this.schedulerActionCtor=s,this.now=M}schedule(s,M=0,c){return new this.schedulerActionCtor(this,s).schedule(c,M)}}t.now=e.l.now;class v extends t{constructor(s,M=t.now){super(s,M),this.actions=[],this._active=!1,this._scheduled=void 0}flush(s){const{actions:M}=this;if(this._active)return void M.push(s);let c;this._active=!0;do{if(c=s.execute(s.state,s.delay))break}while(s=M.shift());if(this._active=!1,c){for(;s=M.shift();)s.unsubscribe();throw c}}}},3101:(Ze,K,m)=>{"use strict";m.d(K,{E:()=>k});var e=m(4408);let v,t=1;const C={};function s(V){return V in C&&(delete C[V],!0)}const M={setImmediate(V){const W=t++;return C[W]=!0,v||(v=Promise.resolve()),v.then(()=>s(W)&&V()),W},clearImmediate(V){s(V)}},{setImmediate:N,clearImmediate:o}=M,L={setImmediate(...V){const{delegate:W}=L;return((null==W?void 0:W.setImmediate)||N)(...V)},clearImmediate(V){const{delegate:W}=L;return((null==W?void 0:W.clearImmediate)||o)(V)},delegate:void 0};var A=m(7565);const k=new class extends A.v{flush(W){this._active=!0,this._scheduled=void 0;const{actions:j}=this;let $,ee=-1;W=W||j.shift();const me=j.length;do{if($=W.execute(W.state,W.delay))break}while(++ee<me&&(W=j.shift()));if(this._active=!1,$){for(;++ee<me&&(W=j.shift());)W.unsubscribe();throw $}}}(class extends e.o{constructor(W,j){super(W,j),this.scheduler=W,this.work=j}requestAsyncId(W,j,$=0){return null!==$&&$>0?super.requestAsyncId(W,j,$):(W.actions.push(this),W._scheduled||(W._scheduled=L.setImmediate(W.flush.bind(W,void 0))))}recycleAsyncId(W,j,$=0){if(null!=$&&$>0||null==$&&this.delay>0)return super.recycleAsyncId(W,j,$);0===W.actions.length&&(L.clearImmediate(j),W._scheduled=void 0)}})},4986:(Ze,K,m)=>{"use strict";m.d(K,{z:()=>v,P:()=>C});var e=m(4408);const v=new(m(7565).v)(e.o),C=v},6063:(Ze,K,m)=>{"use strict";m.d(K,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},233:(Ze,K,m)=>{"use strict";m.d(K,{N:()=>s});var e=m(4408),v=m(7565);const s=new class extends v.v{}(class extends e.o{constructor(N,o){super(N,o),this.scheduler=N,this.work=o}schedule(N,o=0){return o>0?super.schedule(N,o):(this.delay=o,this.state=N,this.scheduler.flush(this),this)}execute(N,o){return o>0||this.closed?super.execute(N,o):this._execute(N,o)}requestAsyncId(N,o,L=0){return null!=L&&L>0||null==L&&this.delay>0?super.requestAsyncId(N,o,L):N.flush(this)}})},3410:(Ze,K,m)=>{"use strict";m.d(K,{z:()=>e});const e={setTimeout(...t){const{delegate:v}=e;return((null==v?void 0:v.setTimeout)||setTimeout)(...t)},clearTimeout(t){const{delegate:v}=e;return((null==v?void 0:v.clearTimeout)||clearTimeout)(t)},delegate:void 0}},2202:(Ze,K,m)=>{"use strict";m.d(K,{h:()=>t});const t="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},8822:(Ze,K,m)=>{"use strict";m.d(K,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},3269:(Ze,K,m)=>{"use strict";m.d(K,{jO:()=>C,yG:()=>s,_6:()=>M});var e=m(576),t=m(3532);function v(c){return c[c.length-1]}function C(c){return(0,e.m)(v(c))?c.pop():void 0}function s(c){return(0,t.K)(v(c))?c.pop():void 0}function M(c,N){return"number"==typeof v(c)?c.pop():N}},4742:(Ze,K,m)=>{"use strict";m.d(K,{D:()=>s});const{isArray:e}=Array,{getPrototypeOf:t,prototype:v,keys:C}=Object;function s(c){if(1===c.length){const N=c[0];if(e(N))return{args:N,keys:null};if(function(c){return c&&"object"==typeof c&&t(c)===v}(N)){const o=C(N);return{args:o.map(L=>N[L]),keys:o}}}return{args:c,keys:null}}},8737:(Ze,K,m)=>{"use strict";function e(t,v){if(t){const C=t.indexOf(v);0<=C&&t.splice(C,1)}}m.d(K,{P:()=>e})},3888:(Ze,K,m)=>{"use strict";function e(t){const C=t(s=>{Error.call(s),s.stack=(new Error).stack});return C.prototype=Object.create(Error.prototype),C.prototype.constructor=C,C}m.d(K,{d:()=>e})},1810:(Ze,K,m)=>{"use strict";function e(t,v){return t.reduce((C,s,M)=>(C[s]=v[M],C),{})}m.d(K,{n:()=>e})},2806:(Ze,K,m)=>{"use strict";m.d(K,{x:()=>v,O:()=>C});var e=m(2416);let t=null;function v(s){if(e.v.useDeprecatedSynchronousErrorHandling){const M=!t;if(M&&(t={errorThrown:!1,error:null}),s(),M){const{errorThrown:c,error:N}=t;if(t=null,c)throw N}}else s()}function C(s){e.v.useDeprecatedSynchronousErrorHandling&&t&&(t.errorThrown=!0,t.error=s)}},9672:(Ze,K,m)=>{"use strict";function e(t,v,C,s=0,M=!1){const c=v.schedule(function(){C(),M?t.add(this.schedule(null,s)):this.unsubscribe()},s);if(t.add(c),!M)return c}m.d(K,{f:()=>e})},4671:(Ze,K,m)=>{"use strict";function e(t){return t}m.d(K,{y:()=>e})},1144:(Ze,K,m)=>{"use strict";m.d(K,{z:()=>e});const e=t=>t&&"number"==typeof t.length&&"function"!=typeof t},2206:(Ze,K,m)=>{"use strict";m.d(K,{D:()=>t});var e=m(576);function t(v){return Symbol.asyncIterator&&(0,e.m)(null==v?void 0:v[Symbol.asyncIterator])}},1165:(Ze,K,m)=>{"use strict";function e(t){return t instanceof Date&&!isNaN(t)}m.d(K,{q:()=>e})},576:(Ze,K,m)=>{"use strict";function e(t){return"function"==typeof t}m.d(K,{m:()=>e})},3670:(Ze,K,m)=>{"use strict";m.d(K,{c:()=>v});var e=m(8822),t=m(576);function v(C){return(0,t.m)(C[e.L])}},6495:(Ze,K,m)=>{"use strict";m.d(K,{T:()=>v});var e=m(2202),t=m(576);function v(C){return(0,t.m)(null==C?void 0:C[e.h])}},5191:(Ze,K,m)=>{"use strict";m.d(K,{b:()=>v});var e=m(8306),t=m(576);function v(C){return!!C&&(C instanceof e.y||(0,t.m)(C.lift)&&(0,t.m)(C.subscribe))}},8239:(Ze,K,m)=>{"use strict";m.d(K,{t:()=>t});var e=m(576);function t(v){return(0,e.m)(null==v?void 0:v.then)}},3260:(Ze,K,m)=>{"use strict";m.d(K,{Q:()=>v,L:()=>C});var e=m(5987),t=m(576);function v(s){return(0,e.FC)(this,arguments,function*(){const c=s.getReader();try{for(;;){const{value:N,done:o}=yield(0,e.qq)(c.read());if(o)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(N)}}finally{c.releaseLock()}})}function C(s){return(0,t.m)(null==s?void 0:s.getReader)}},3532:(Ze,K,m)=>{"use strict";m.d(K,{K:()=>t});var e=m(576);function t(v){return v&&(0,e.m)(v.schedule)}},4482:(Ze,K,m)=>{"use strict";m.d(K,{A:()=>t,e:()=>v});var e=m(576);function t(C){return(0,e.m)(null==C?void 0:C.lift)}function v(C){return s=>{if(t(s))return s.lift(function(M){try{return C(M,this)}catch(c){this.error(c)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Ze,K,m)=>{"use strict";m.d(K,{Z:()=>C});var e=m(4004);const{isArray:t}=Array;function C(s){return(0,e.U)(M=>function(s,M){return t(M)?s(...M):s(M)}(s,M))}},5032:(Ze,K,m)=>{"use strict";function e(){}m.d(K,{Z:()=>e})},7849:(Ze,K,m)=>{"use strict";m.d(K,{h:()=>v});var e=m(2416),t=m(3410);function v(C){t.z.setTimeout(()=>{const{onUnhandledError:s}=e.v;if(!s)throw C;s(C)})}},4532:(Ze,K,m)=>{"use strict";function e(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}m.d(K,{z:()=>e})},3502:(Ze,K,m)=>{var e=m(3172),t=e.Buffer;function v(s,M){for(var c in s)M[c]=s[c]}function C(s,M,c){return t(s,M,c)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ze.exports=e:(v(e,K),K.Buffer=C),v(t,C),C.from=function(s,M,c){if("number"==typeof s)throw new TypeError("Argument must not be a number");return t(s,M,c)},C.alloc=function(s,M,c){if("number"!=typeof s)throw new TypeError("Argument must be a number");var N=t(s);return void 0!==M?"string"==typeof c?N.fill(M,c):N.fill(M):N.fill(0),N},C.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t(s)},C.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e.SlowBuffer(s)}},2038:(Ze,K,m)=>{"use strict";var C,e=m(3172),t=e.Buffer,v={};for(C in e)!e.hasOwnProperty(C)||"SlowBuffer"===C||"Buffer"===C||(v[C]=e[C]);var s=v.Buffer={};for(C in t)!t.hasOwnProperty(C)||"allocUnsafe"===C||"allocUnsafeSlow"===C||(s[C]=t[C]);if(v.Buffer.prototype=t.prototype,(!s.from||s.from===Uint8Array.from)&&(s.from=function(M,c,N){if("number"==typeof M)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof M);if(M&&void 0===M.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof M);return t(M,c,N)}),s.alloc||(s.alloc=function(M,c,N){if("number"!=typeof M)throw new TypeError('The "size" argument must be of type number. Received type '+typeof M);if(M<0||M>=2*(1<<30))throw new RangeError('The value "'+M+'" is invalid for option "size"');var o=t(M);return c&&0!==c.length?"string"==typeof N?o.fill(c,N):o.fill(c):o.fill(0),o}),!v.kStringMaxLength)try{v.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(M){}v.constants||(v.constants={MAX_LENGTH:v.kMaxLength},v.kStringMaxLength&&(v.constants.MAX_STRING_LENGTH=v.kStringMaxLength)),Ze.exports=v},6692:(Ze,K,m)=>{var e=m(3502).Buffer;function t(v,C){this._block=e.alloc(v),this._finalSize=C,this._blockSize=v,this._len=0}t.prototype.update=function(v,C){"string"==typeof v&&(v=e.from(v,C=C||"utf8"));for(var s=this._block,M=this._blockSize,c=v.length,N=this._len,o=0;o<c;){for(var L=N%M,O=Math.min(c-o,M-L),A=0;A<O;A++)s[L+A]=v[o+A];o+=O,(N+=O)%M==0&&this._update(s)}return this._len+=c,this},t.prototype.digest=function(v){var C=this._len%this._blockSize;this._block[C]=128,this._block.fill(0,C+1),C>=this._finalSize&&(this._update(this._block),this._block.fill(0));var s=8*this._len;if(s<=4294967295)this._block.writeUInt32BE(s,this._blockSize-4);else{var M=(4294967295&s)>>>0;this._block.writeUInt32BE((s-M)/4294967296,this._blockSize-8),this._block.writeUInt32BE(M,this._blockSize-4)}this._update(this._block);var N=this._hash();return v?N.toString(v):N},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Ze.exports=t},5244:(Ze,K,m)=>{var e=Ze.exports=function(v){v=v.toLowerCase();var C=e[v];if(!C)throw new Error(v+" is not supported (we accept pull requests)");return new C};e.sha=m(8932),e.sha1=m(7736),e.sha224=m(5044),e.sha256=m(5014),e.sha384=m(6540),e.sha512=m(117)},8932:(Ze,K,m)=>{var e=m(3894),t=m(6692),v=m(3502).Buffer,C=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function M(){this.init(),this._w=s,t.call(this,64,56)}function c(L){return L<<5|L>>>27}function N(L){return L<<30|L>>>2}function o(L,O,A,E){return 0===L?O&A|~O&E:2===L?O&A|O&E|A&E:O^A^E}e(M,t),M.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},M.prototype._update=function(L){for(var O=this._w,A=0|this._a,E=0|this._b,k=0|this._c,w=0|this._d,V=0|this._e,W=0;W<16;++W)O[W]=L.readInt32BE(4*W);for(;W<80;++W)O[W]=O[W-3]^O[W-8]^O[W-14]^O[W-16];for(var j=0;j<80;++j){var $=~~(j/20),ee=c(A)+o($,E,k,w)+V+O[j]+C[$]|0;V=w,w=k,k=N(E),E=A,A=ee}this._a=A+this._a|0,this._b=E+this._b|0,this._c=k+this._c|0,this._d=w+this._d|0,this._e=V+this._e|0},M.prototype._hash=function(){var L=v.allocUnsafe(20);return L.writeInt32BE(0|this._a,0),L.writeInt32BE(0|this._b,4),L.writeInt32BE(0|this._c,8),L.writeInt32BE(0|this._d,12),L.writeInt32BE(0|this._e,16),L},Ze.exports=M},7736:(Ze,K,m)=>{var e=m(3894),t=m(6692),v=m(3502).Buffer,C=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function M(){this.init(),this._w=s,t.call(this,64,56)}function c(O){return O<<1|O>>>31}function N(O){return O<<5|O>>>27}function o(O){return O<<30|O>>>2}function L(O,A,E,k){return 0===O?A&E|~A&k:2===O?A&E|A&k|E&k:A^E^k}e(M,t),M.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},M.prototype._update=function(O){for(var A=this._w,E=0|this._a,k=0|this._b,w=0|this._c,V=0|this._d,W=0|this._e,j=0;j<16;++j)A[j]=O.readInt32BE(4*j);for(;j<80;++j)A[j]=c(A[j-3]^A[j-8]^A[j-14]^A[j-16]);for(var $=0;$<80;++$){var ee=~~($/20),me=N(E)+L(ee,k,w,V)+W+A[$]+C[ee]|0;W=V,V=w,w=o(k),k=E,E=me}this._a=E+this._a|0,this._b=k+this._b|0,this._c=w+this._c|0,this._d=V+this._d|0,this._e=W+this._e|0},M.prototype._hash=function(){var O=v.allocUnsafe(20);return O.writeInt32BE(0|this._a,0),O.writeInt32BE(0|this._b,4),O.writeInt32BE(0|this._c,8),O.writeInt32BE(0|this._d,12),O.writeInt32BE(0|this._e,16),O},Ze.exports=M},5044:(Ze,K,m)=>{var e=m(3894),t=m(5014),v=m(6692),C=m(3502).Buffer,s=new Array(64);function M(){this.init(),this._w=s,v.call(this,64,56)}e(M,t),M.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},M.prototype._hash=function(){var c=C.allocUnsafe(28);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c},Ze.exports=M},5014:(Ze,K,m)=>{var e=m(3894),t=m(6692),v=m(3502).Buffer,C=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function M(){this.init(),this._w=s,t.call(this,64,56)}function c(E,k,w){return w^E&(k^w)}function N(E,k,w){return E&k|w&(E|k)}function o(E){return(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10)}function L(E){return(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7)}function O(E){return(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3}function A(E){return(E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10}e(M,t),M.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},M.prototype._update=function(E){for(var k=this._w,w=0|this._a,V=0|this._b,W=0|this._c,j=0|this._d,$=0|this._e,ee=0|this._f,me=0|this._g,ce=0|this._h,le=0;le<16;++le)k[le]=E.readInt32BE(4*le);for(;le<64;++le)k[le]=A(k[le-2])+k[le-7]+O(k[le-15])+k[le-16]|0;for(var te=0;te<64;++te){var re=ce+L($)+c($,ee,me)+C[te]+k[te]|0,pe=o(w)+N(w,V,W)|0;ce=me,me=ee,ee=$,$=j+re|0,j=W,W=V,V=w,w=re+pe|0}this._a=w+this._a|0,this._b=V+this._b|0,this._c=W+this._c|0,this._d=j+this._d|0,this._e=$+this._e|0,this._f=ee+this._f|0,this._g=me+this._g|0,this._h=ce+this._h|0},M.prototype._hash=function(){var E=v.allocUnsafe(32);return E.writeInt32BE(this._a,0),E.writeInt32BE(this._b,4),E.writeInt32BE(this._c,8),E.writeInt32BE(this._d,12),E.writeInt32BE(this._e,16),E.writeInt32BE(this._f,20),E.writeInt32BE(this._g,24),E.writeInt32BE(this._h,28),E},Ze.exports=M},6540:(Ze,K,m)=>{var e=m(3894),t=m(117),v=m(6692),C=m(3502).Buffer,s=new Array(160);function M(){this.init(),this._w=s,v.call(this,128,112)}e(M,t),M.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},M.prototype._hash=function(){var c=C.allocUnsafe(48);function N(o,L,O){c.writeInt32BE(o,O),c.writeInt32BE(L,O+4)}return N(this._ah,this._al,0),N(this._bh,this._bl,8),N(this._ch,this._cl,16),N(this._dh,this._dl,24),N(this._eh,this._el,32),N(this._fh,this._fl,40),c},Ze.exports=M},117:(Ze,K,m)=>{var e=m(3894),t=m(6692),v=m(3502).Buffer,C=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function M(){this.init(),this._w=s,t.call(this,128,112)}function c(V,W,j){return j^V&(W^j)}function N(V,W,j){return V&W|j&(V|W)}function o(V,W){return(V>>>28|W<<4)^(W>>>2|V<<30)^(W>>>7|V<<25)}function L(V,W){return(V>>>14|W<<18)^(V>>>18|W<<14)^(W>>>9|V<<23)}function O(V,W){return(V>>>1|W<<31)^(V>>>8|W<<24)^V>>>7}function A(V,W){return(V>>>1|W<<31)^(V>>>8|W<<24)^(V>>>7|W<<25)}function E(V,W){return(V>>>19|W<<13)^(W>>>29|V<<3)^V>>>6}function k(V,W){return(V>>>19|W<<13)^(W>>>29|V<<3)^(V>>>6|W<<26)}function w(V,W){return V>>>0<W>>>0?1:0}e(M,t),M.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},M.prototype._update=function(V){for(var W=this._w,j=0|this._ah,$=0|this._bh,ee=0|this._ch,me=0|this._dh,ce=0|this._eh,le=0|this._fh,te=0|this._gh,re=0|this._hh,pe=0|this._al,y=0|this._bl,i=0|this._cl,a=0|this._dl,p=0|this._el,u=0|this._fl,_=0|this._gl,D=0|this._hl,I=0;I<32;I+=2)W[I]=V.readInt32BE(4*I),W[I+1]=V.readInt32BE(4*I+4);for(;I<160;I+=2){var x=W[I-30],r=W[I-30+1],b=O(x,r),Z=A(r,x),P=E(x=W[I-4],r=W[I-4+1]),U=k(r,x),Ne=W[I-32],Be=W[I-32+1],Oe=Z+W[I-14+1]|0,B=b+W[I-14]+w(Oe,Z)|0;B=(B=B+P+w(Oe=Oe+U|0,U)|0)+Ne+w(Oe=Oe+Be|0,Be)|0,W[I]=B,W[I+1]=Oe}for(var Me=0;Me<160;Me+=2){B=W[Me],Oe=W[Me+1];var we=N(j,$,ee),ae=N(pe,y,i),We=o(j,pe),vt=o(pe,j),Pe=L(ce,p),Ve=L(p,ce),he=C[Me],Ee=C[Me+1],ke=c(ce,le,te),q=c(p,u,_),J=D+Ve|0,oe=re+Pe+w(J,D)|0;oe=(oe=(oe=oe+ke+w(J=J+q|0,q)|0)+he+w(J=J+Ee|0,Ee)|0)+B+w(J=J+Oe|0,Oe)|0;var Ce=vt+ae|0,Ue=We+we+w(Ce,vt)|0;re=te,D=_,te=le,_=u,le=ce,u=p,ce=me+oe+w(p=a+J|0,a)|0,me=ee,a=i,ee=$,i=y,$=j,y=pe,j=oe+Ue+w(pe=J+Ce|0,J)|0}this._al=this._al+pe|0,this._bl=this._bl+y|0,this._cl=this._cl+i|0,this._dl=this._dl+a|0,this._el=this._el+p|0,this._fl=this._fl+u|0,this._gl=this._gl+_|0,this._hl=this._hl+D|0,this._ah=this._ah+j+w(this._al,pe)|0,this._bh=this._bh+$+w(this._bl,y)|0,this._ch=this._ch+ee+w(this._cl,i)|0,this._dh=this._dh+me+w(this._dl,a)|0,this._eh=this._eh+ce+w(this._el,p)|0,this._fh=this._fh+le+w(this._fl,u)|0,this._gh=this._gh+te+w(this._gl,_)|0,this._hh=this._hh+re+w(this._hl,D)|0},M.prototype._hash=function(){var V=v.allocUnsafe(64);function W(j,$,ee){V.writeInt32BE(j,ee),V.writeInt32BE($,ee+4)}return W(this._ah,this._al,0),W(this._bh,this._bl,8),W(this._ch,this._cl,16),W(this._dh,this._dl,24),W(this._eh,this._el,32),W(this._fh,this._fl,40),W(this._gh,this._gl,48),W(this._hh,this._hl,56),V},Ze.exports=M},8012:function(Ze,K,m){!function(e){"use strict";var t={};Ze.exports?(t.bytesToHex=m(6128).bytesToHex,t.convertString=m(5612),Ze.exports=N):(t.bytesToHex=e.convertHex.bytesToHex,t.convertString=e.convertString,e.sha256=N);var v=[];!function(){function o(E){for(var k=Math.sqrt(E),w=2;w<=k;w++)if(!(E%w))return!1;return!0}for(var O=2,A=0;A<64;)o(O)&&(v[A]=4294967296*((E=Math.pow(O,1/3))-(0|E))|0,A++),O++;var E}();var M=[],c=function(o,L,O){for(var A=o[0],E=o[1],k=o[2],w=o[3],V=o[4],W=o[5],j=o[6],$=o[7],ee=0;ee<64;ee++){if(ee<16)M[ee]=0|L[O+ee];else{var me=M[ee-15],le=M[ee-2];M[ee]=((me<<25|me>>>7)^(me<<14|me>>>18)^me>>>3)+M[ee-7]+((le<<15|le>>>17)^(le<<13|le>>>19)^le>>>10)+M[ee-16]}var pe=A&E^A&k^E&k,a=$+((V<<26|V>>>6)^(V<<21|V>>>11)^(V<<7|V>>>25))+(V&W^~V&j)+v[ee]+M[ee];$=j,j=W,W=V,V=w+a|0,w=k,k=E,E=A,A=a+(((A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22))+pe)|0}o[0]=o[0]+A|0,o[1]=o[1]+E|0,o[2]=o[2]+k|0,o[3]=o[3]+w|0,o[4]=o[4]+V|0,o[5]=o[5]+W|0,o[6]=o[6]+j|0,o[7]=o[7]+$|0};function N(o,L){o.constructor===String&&(o=t.convertString.UTF8.stringToBytes(o));var O=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],A=function(o){for(var L=[],O=0,A=0;O<o.length;O++,A+=8)L[A>>>5]|=o[O]<<24-A%32;return L}(o),E=8*o.length;A[E>>5]|=128<<24-E%32,A[15+(E+64>>9<<4)]=E;for(var k=0;k<A.length;k+=16)c(O,A,k);var w=function(o){for(var L=[],O=0;O<32*o.length;O+=8)L.push(o[O>>>5]>>>24-O%32&255);return L}(O);return L&&L.asBytes?w:L&&L.asString?t.convertString.bytesToString(w):t.bytesToHex(w)}N.x2=function(o,L){return N(N(o,{asBytes:!0}),L)}}(this)},4315:(Ze,K,m)=>{"use strict";const e=Symbol.prototype.valueOf,t=m(2872);Ze.exports=function(o,L){switch(t(o)){case"array":return o.slice();case"object":return Object.assign({},o);case"date":return new o.constructor(Number(o));case"map":return new Map(o);case"set":return new Set(o);case"buffer":return function(o){const L=o.length,O=Buffer.allocUnsafe?Buffer.allocUnsafe(L):Buffer.from(L);return o.copy(O),O}(o);case"symbol":return function(o){return e?Object(e.call(o)):{}}(o);case"arraybuffer":return function(o){const L=new o.constructor(o.byteLength);return new Uint8Array(L).set(new Uint8Array(o)),L}(o);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function(o,L){return new o.constructor(o.buffer,o.byteOffset,o.length)}(o);case"regexp":return function(o){const L=void 0!==o.flags?o.flags:/\w+$/.exec(o)||void 0,O=new o.constructor(o.source,L);return O.lastIndex=o.lastIndex,O}(o);case"error":return Object.create(o);default:return o}}},295:(Ze,K,m)=>{Ze.exports=v;var e=m(9069).EventEmitter;function v(){e.call(this)}m(3894)(v,e),v.Readable=m(3154),v.Writable=m(520),v.Duplex=m(1339),v.Transform=m(6025),v.PassThrough=m(6071),v.finished=m(7542),v.pipeline=m(954),v.Stream=v,v.prototype.pipe=function(C,s){var M=this;function c(k){C.writable&&!1===C.write(k)&&M.pause&&M.pause()}function N(){M.readable&&M.resume&&M.resume()}M.on("data",c),C.on("drain",N),!C._isStdio&&(!s||!1!==s.end)&&(M.on("end",L),M.on("close",O));var o=!1;function L(){o||(o=!0,C.end())}function O(){o||(o=!0,"function"==typeof C.destroy&&C.destroy())}function A(k){if(E(),0===e.listenerCount(this,"error"))throw k}function E(){M.removeListener("data",c),C.removeListener("drain",N),M.removeListener("end",L),M.removeListener("close",O),M.removeListener("error",A),C.removeListener("error",A),M.removeListener("end",E),M.removeListener("close",E),C.removeListener("close",E)}return M.on("error",A),C.on("error",A),M.on("end",E),M.on("close",E),C.on("close",E),C.emit("pipe",M),C}},3054:(Ze,K,m)=>{"use strict";var e=m(858).Buffer,t=e.isEncoding||function(j){switch((j=""+j)&&j.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(j){var $;switch(this.encoding=function(j){var $=function(j){if(!j)return"utf8";for(var $;;)switch(j){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return j;default:if($)return;j=(""+j).toLowerCase(),$=!0}}(j);if("string"!=typeof $&&(e.isEncoding===t||!t(j)))throw new Error("Unknown encoding: "+j);return $||j}(j),this.encoding){case"utf16le":this.text=A,this.end=E,$=4;break;case"utf8":this.fillLast=o,$=4;break;case"base64":this.text=k,this.end=w,$=3;break;default:return this.write=V,void(this.end=W)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe($)}function M(j){return j<=127?0:j>>5==6?2:j>>4==14?3:j>>3==30?4:j>>6==2?-1:-2}function o(j){var $=this.lastTotal-this.lastNeed,ee=function(j,$,ee){if(128!=(192&$[0]))return j.lastNeed=0,"\ufffd";if(j.lastNeed>1&&$.length>1){if(128!=(192&$[1]))return j.lastNeed=1,"\ufffd";if(j.lastNeed>2&&$.length>2&&128!=(192&$[2]))return j.lastNeed=2,"\ufffd"}}(this,j);return void 0!==ee?ee:this.lastNeed<=j.length?(j.copy(this.lastChar,$,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(j.copy(this.lastChar,$,0,j.length),void(this.lastNeed-=j.length))}function A(j,$){if((j.length-$)%2==0){var ee=j.toString("utf16le",$);if(ee){var me=ee.charCodeAt(ee.length-1);if(me>=55296&&me<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=j[j.length-2],this.lastChar[1]=j[j.length-1],ee.slice(0,-1)}return ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=j[j.length-1],j.toString("utf16le",$,j.length-1)}function E(j){var $=j&&j.length?this.write(j):"";return this.lastNeed?$+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):$}function k(j,$){var ee=(j.length-$)%3;return 0===ee?j.toString("base64",$):(this.lastNeed=3-ee,this.lastTotal=3,1===ee?this.lastChar[0]=j[j.length-1]:(this.lastChar[0]=j[j.length-2],this.lastChar[1]=j[j.length-1]),j.toString("base64",$,j.length-ee))}function w(j){var $=j&&j.length?this.write(j):"";return this.lastNeed?$+this.lastChar.toString("base64",0,3-this.lastNeed):$}function V(j){return j.toString(this.encoding)}function W(j){return j&&j.length?this.write(j):""}K.s=s,s.prototype.write=function(j){if(0===j.length)return"";var $,ee;if(this.lastNeed){if(void 0===($=this.fillLast(j)))return"";ee=this.lastNeed,this.lastNeed=0}else ee=0;return ee<j.length?$?$+this.text(j,ee):this.text(j,ee):$||""},s.prototype.end=function(j){var $=j&&j.length?this.write(j):"";return this.lastNeed?$+"\ufffd":$},s.prototype.text=function(j,$){var ee=function(j,$,ee){var me=$.length-1;if(me<ee)return 0;var ce=M($[me]);return ce>=0?(ce>0&&(j.lastNeed=ce-1),ce):--me<ee||-2===ce?0:(ce=M($[me]))>=0?(ce>0&&(j.lastNeed=ce-2),ce):--me<ee||-2===ce?0:(ce=M($[me]))>=0?(ce>0&&(2===ce?ce=0:j.lastNeed=ce-3),ce):0}(this,j,$);if(!this.lastNeed)return j.toString("utf8",$);this.lastTotal=ee;var me=j.length-(ee-this.lastNeed);return j.copy(this.lastChar,0,me),j.toString("utf8",$,me)},s.prototype.fillLast=function(j){if(this.lastNeed<=j.length)return j.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);j.copy(this.lastChar,this.lastTotal-this.lastNeed,0,j.length),this.lastNeed-=j.length}},858:(Ze,K,m)=>{var e=m(3172),t=e.Buffer;function v(s,M){for(var c in s)M[c]=s[c]}function C(s,M,c){return t(s,M,c)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ze.exports=e:(v(e,K),K.Buffer=C),C.prototype=Object.create(t.prototype),v(t,C),C.from=function(s,M,c){if("number"==typeof s)throw new TypeError("Argument must not be a number");return t(s,M,c)},C.alloc=function(s,M,c){if("number"!=typeof s)throw new TypeError("Argument must be a number");var N=t(s);return void 0!==M?"string"==typeof c?N.fill(M,c):N.fill(M):N.fill(0),N},C.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t(s)},C.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e.SlowBuffer(s)}},2167:(Ze,K,m)=>{var e=m(4606);K.encode=e.encode,K.decode=e.decode},4606:(Ze,K)=>{"use strict";var e=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];K.encode=function(v){Buffer.isBuffer(v)||(v=new Buffer(v));for(var C=0,s=0,M=0,c=0,N=new Buffer(8*function(v){var C=Math.floor(v.length/5);return v.length%5==0?C:C+1}(v));C<v.length;){var o=v[C];M>3?(c=(c=o&255>>M)<<(M=(M+5)%8)|(C+1<v.length?v[C+1]:0)>>8-M,C++):(c=o>>8-(M+5)&31,0==(M=(M+5)%8)&&C++),N[s]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(c),s++}for(C=s;C<N.length;C++)N[C]=61;return N},K.decode=function(v){var M,C=0,s=0,c=0;Buffer.isBuffer(v)||(v=new Buffer(v));for(var N=new Buffer(Math.ceil(5*v.length/8)),o=0;o<v.length&&61!==v[o];o++){var L=v[o]-48;if(!(L<e.length))throw new Error("Invalid input - it is not base32 encoded string");s=e[L],C<=3?0==(C=(C+5)%8)?(N[c]=M|=s,c++,M=0):M|=255&s<<8-C:(N[c]=M|=255&s>>>(C=(C+5)%8),c++,M=255&s<<8-C)}return N.slice(0,c)}},4364:Ze=>{function m(e){try{if(!global.localStorage)return!1}catch(v){return!1}var t=global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}Ze.exports=function(e,t){if(m("noDeprecation"))return e;var v=!1;return function(){if(!v){if(m("throwDeprecation"))throw new Error(t);m("traceDeprecation")?console.trace(t):console.warn(t),v=!0}return e.apply(this,arguments)}}},5987:(Ze,K,m)=>{"use strict";function N(y,i,a,p){return new(a||(a=Promise))(function(_,D){function I(b){try{r(p.next(b))}catch(Z){D(Z)}}function x(b){try{r(p.throw(b))}catch(Z){D(Z)}}function r(b){b.done?_(b.value):function(_){return _ instanceof a?_:new a(function(D){D(_)})}(b.value).then(I,x)}r((p=p.apply(y,i||[])).next())})}function W(y){return this instanceof W?(this.v=y,this):new W(y)}function j(y,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,p=a.apply(y,i||[]),_=[];return u={},D("next"),D("throw"),D("return"),u[Symbol.asyncIterator]=function(){return this},u;function D(P){p[P]&&(u[P]=function(U){return new Promise(function(ye,xe){_.push([P,U,ye,xe])>1||I(P,U)})})}function I(P,U){try{!function(P){P.value instanceof W?Promise.resolve(P.value.v).then(r,b):Z(_[0][2],P)}(p[P](U))}catch(ye){Z(_[0][3],ye)}}function r(P){I("next",P)}function b(P){I("throw",P)}function Z(P,U){P(U),_.shift(),_.length&&I(_[0][0],_[0][1])}}function ee(y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,i=y[Symbol.asyncIterator];return i?i.call(y):(y=function(y){var i="function"==typeof Symbol&&Symbol.iterator,a=i&&y[i],p=0;if(a)return a.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&p>=y.length&&(y=void 0),{value:y&&y[p++],done:!y}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(y),a={},p("next"),p("throw"),p("return"),a[Symbol.asyncIterator]=function(){return this},a);function p(_){a[_]=y[_]&&function(D){return new Promise(function(I,x){!function(_,D,I,x){Promise.resolve(x).then(function(r){_({value:r,done:I})},D)}(I,x,(D=y[_](D)).done,D.value)})}}}m.d(K,{mG:()=>N,qq:()=>W,FC:()=>j,KL:()=>ee})},655:(Ze,K,m)=>{"use strict";function s(y,i,a,p){var D,u=arguments.length,_=u<3?i:null===p?p=Object.getOwnPropertyDescriptor(i,a):p;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(y,i,a,p);else for(var I=y.length-1;I>=0;I--)(D=y[I])&&(_=(u<3?D(_):u>3?D(i,a,_):D(i,a))||_);return u>3&&_&&Object.defineProperty(i,a,_),_}function N(y,i,a,p){return new(a||(a=Promise))(function(_,D){function I(b){try{r(p.next(b))}catch(Z){D(Z)}}function x(b){try{r(p.throw(b))}catch(Z){D(Z)}}function r(b){b.done?_(b.value):function(_){return _ instanceof a?_:new a(function(D){D(_)})}(b.value).then(I,x)}r((p=p.apply(y,i||[])).next())})}m.d(K,{gn:()=>s,mG:()=>N})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(Ze,K,m)=>{"use strict";m.d(K,{l3:()=>v,_j:()=>e,LC:()=>t,ZN:()=>j,jt:()=>s,pV:()=>E,ru:()=>M,F4:()=>L,IO:()=>w,vP:()=>c,SB:()=>o,oB:()=>N,eR:()=>O,X$:()=>C,ZE:()=>$,k1:()=>ee});class e{}class t{}const v="*";function C(me,ce){return{type:7,name:me,definitions:ce,options:{}}}function s(me,ce=null){return{type:4,styles:ce,timings:me}}function M(me,ce=null){return{type:3,steps:me,options:ce}}function c(me,ce=null){return{type:2,steps:me,options:ce}}function N(me){return{type:6,styles:me,offset:null}}function o(me,ce,le){return{type:0,name:me,styles:ce,options:le}}function L(me){return{type:5,steps:me}}function O(me,ce,le=null){return{type:1,expr:me,animation:ce,options:le}}function E(me=null){return{type:9,options:me}}function w(me,ce,le=null){return{type:11,selector:me,animation:ce,options:le}}function W(me){Promise.resolve(null).then(me)}class j{constructor(ce=0,le=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ce+le}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ce=>ce()),this._onDoneFns=[])}onStart(ce){this._onStartFns.push(ce)}onDone(ce){this._onDoneFns.push(ce)}onDestroy(ce){this._onDestroyFns.push(ce)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){W(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ce=>ce()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ce=>ce()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ce){this._position=this.totalTime?ce*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ce){const le="start"==ce?this._onStartFns:this._onDoneFns;le.forEach(te=>te()),le.length=0}}class ${constructor(ce){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ce;let le=0,te=0,re=0;const pe=this.players.length;0==pe?W(()=>this._onFinish()):this.players.forEach(y=>{y.onDone(()=>{++le==pe&&this._onFinish()}),y.onDestroy(()=>{++te==pe&&this._onDestroy()}),y.onStart(()=>{++re==pe&&this._onStart()})}),this.totalTime=this.players.reduce((y,i)=>Math.max(y,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ce=>ce()),this._onDoneFns=[])}init(){this.players.forEach(ce=>ce.init())}onStart(ce){this._onStartFns.push(ce)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ce=>ce()),this._onStartFns=[])}onDone(ce){this._onDoneFns.push(ce)}onDestroy(ce){this._onDestroyFns.push(ce)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ce=>ce.play())}pause(){this.players.forEach(ce=>ce.pause())}restart(){this.players.forEach(ce=>ce.restart())}finish(){this._onFinish(),this.players.forEach(ce=>ce.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ce=>ce.destroy()),this._onDestroyFns.forEach(ce=>ce()),this._onDestroyFns=[])}reset(){this.players.forEach(ce=>ce.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ce){const le=ce*this.totalTime;this.players.forEach(te=>{const re=te.totalTime?Math.min(1,le/te.totalTime):1;te.setPosition(re)})}getPosition(){const ce=this.players.reduce((le,te)=>null===le||te.totalTime>le.totalTime?te:le,null);return null!=ce?ce.getPosition():0}beforeDestroy(){this.players.forEach(ce=>{ce.beforeDestroy&&ce.beforeDestroy()})}triggerCallback(ce){const le="start"==ce?this._onStartFns:this._onDoneFns;le.forEach(te=>te()),le.length=0}}const ee="!"},5664:(Ze,K,m)=>{"use strict";m.d(K,{rt:()=>ze,s1:()=>D,$s:()=>a,Qr:()=>Bt,kH:()=>jt,mK:()=>vt,Em:()=>I,tE:()=>Oi,qV:()=>We,qm:()=>di,ic:()=>r,Kd:()=>wt,X6:()=>q,yG:()=>J});var e=m(9808),t=m(5e3),v=m(7579),C=m(727),s=m(1135),M=m(9646),c=m(1159),N=m(8505),o=m(8372),L=m(9300),O=m(4004),A=m(5698),E=m(5684),k=m(1884),w=m(2722),V=m(3191),W=m(925),j=m(7144);function ce(Te,Y){return(Te.getAttribute(Y)||"").match(/\S+/g)||[]}const le="cdk-describedby-message-container",te="cdk-describedby-message",re="cdk-describedby-host";let pe=0;const y=new Map;let i=null,a=(()=>{class Te{constructor(ge){this._document=ge}describe(ge,Ae,et){if(!this._canBeDescribed(ge,Ae))return;const $t=p(Ae,et);"string"!=typeof Ae?(u(Ae),y.set($t,{messageElement:Ae,referenceCount:0})):y.has($t)||this._createMessageElement(Ae,et),this._isElementDescribedByMessage(ge,$t)||this._addMessageReference(ge,$t)}removeDescription(ge,Ae,et){if(!Ae||!this._isElementNode(ge))return;const $t=p(Ae,et);if(this._isElementDescribedByMessage(ge,$t)&&this._removeMessageReference(ge,$t),"string"==typeof Ae){const Nt=y.get($t);Nt&&0===Nt.referenceCount&&this._deleteMessageElement($t)}i&&0===i.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const ge=this._document.querySelectorAll(`[${re}]`);for(let Ae=0;Ae<ge.length;Ae++)this._removeCdkDescribedByReferenceIds(ge[Ae]),ge[Ae].removeAttribute(re);i&&this._deleteMessagesContainer(),y.clear()}_createMessageElement(ge,Ae){const et=this._document.createElement("div");u(et),et.textContent=ge,Ae&&et.setAttribute("role",Ae),this._createMessagesContainer(),i.appendChild(et),y.set(p(ge,Ae),{messageElement:et,referenceCount:0})}_deleteMessageElement(ge){var Ae;const et=y.get(ge);null===(Ae=null==et?void 0:et.messageElement)||void 0===Ae||Ae.remove(),y.delete(ge)}_createMessagesContainer(){if(!i){const ge=this._document.getElementById(le);null==ge||ge.remove(),i=this._document.createElement("div"),i.id=le,i.style.visibility="hidden",i.classList.add("cdk-visually-hidden"),this._document.body.appendChild(i)}}_deleteMessagesContainer(){i&&(i.remove(),i=null)}_removeCdkDescribedByReferenceIds(ge){const Ae=ce(ge,"aria-describedby").filter(et=>0!=et.indexOf(te));ge.setAttribute("aria-describedby",Ae.join(" "))}_addMessageReference(ge,Ae){const et=y.get(Ae);(function(Te,Y,ge){const Ae=ce(Te,Y);Ae.some(et=>et.trim()==ge.trim())||(Ae.push(ge.trim()),Te.setAttribute(Y,Ae.join(" ")))})(ge,"aria-describedby",et.messageElement.id),ge.setAttribute(re,""),et.referenceCount++}_removeMessageReference(ge,Ae){const et=y.get(Ae);et.referenceCount--,function(Te,Y,ge){const et=ce(Te,Y).filter($t=>$t!=ge.trim());et.length?Te.setAttribute(Y,et.join(" ")):Te.removeAttribute(Y)}(ge,"aria-describedby",et.messageElement.id),ge.removeAttribute(re)}_isElementDescribedByMessage(ge,Ae){const et=ce(ge,"aria-describedby"),$t=y.get(Ae),Nt=$t&&$t.messageElement.id;return!!Nt&&-1!=et.indexOf(Nt)}_canBeDescribed(ge,Ae){if(!this._isElementNode(ge))return!1;if(Ae&&"object"==typeof Ae)return!0;const et=null==Ae?"":`${Ae}`.trim(),$t=ge.getAttribute("aria-label");return!(!et||$t&&$t.trim()===et)}_isElementNode(ge){return ge.nodeType===this._document.ELEMENT_NODE}}return Te.\u0275fac=function(ge){return new(ge||Te)(t.LFG(e.K0))},Te.\u0275prov=t.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();function p(Te,Y){return"string"==typeof Te?`${Y||""}/${Te}`:Te}function u(Te){Te.id||(Te.id=`${te}-${pe++}`)}class _{constructor(Y){this._items=Y,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new v.x,this._typeaheadSubscription=C.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=ge=>ge.disabled,this._pressedLetters=[],this.tabOut=new v.x,this.change=new v.x,Y instanceof t.n_E&&Y.changes.subscribe(ge=>{if(this._activeItem){const et=ge.toArray().indexOf(this._activeItem);et>-1&&et!==this._activeItemIndex&&(this._activeItemIndex=et)}})}skipPredicate(Y){return this._skipPredicateFn=Y,this}withWrap(Y=!0){return this._wrap=Y,this}withVerticalOrientation(Y=!0){return this._vertical=Y,this}withHorizontalOrientation(Y){return this._horizontal=Y,this}withAllowedModifierKeys(Y){return this._allowedModifierKeys=Y,this}withTypeAhead(Y=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,N.b)(ge=>this._pressedLetters.push(ge)),(0,o.b)(Y),(0,L.h)(()=>this._pressedLetters.length>0),(0,O.U)(()=>this._pressedLetters.join(""))).subscribe(ge=>{const Ae=this._getItemsArray();for(let et=1;et<Ae.length+1;et++){const $t=(this._activeItemIndex+et)%Ae.length,Nt=Ae[$t];if(!this._skipPredicateFn(Nt)&&0===Nt.getLabel().toUpperCase().trim().indexOf(ge)){this.setActiveItem($t);break}}this._pressedLetters=[]}),this}withHomeAndEnd(Y=!0){return this._homeAndEnd=Y,this}setActiveItem(Y){const ge=this._activeItem;this.updateActiveItem(Y),this._activeItem!==ge&&this.change.next(this._activeItemIndex)}onKeydown(Y){const ge=Y.keyCode,et=["altKey","ctrlKey","metaKey","shiftKey"].every($t=>!Y[$t]||this._allowedModifierKeys.indexOf($t)>-1);switch(ge){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&et){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&et){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&et){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&et){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&et){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&et){this.setLastItemActive();break}return;default:return void((et||(0,c.Vb)(Y,"shiftKey"))&&(Y.key&&1===Y.key.length?this._letterKeyStream.next(Y.key.toLocaleUpperCase()):(ge>=c.A&&ge<=c.Z||ge>=c.xE&&ge<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(ge))))}this._pressedLetters=[],Y.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Y){const ge=this._getItemsArray(),Ae="number"==typeof Y?Y:ge.indexOf(Y),et=ge[Ae];this._activeItem=null==et?null:et,this._activeItemIndex=Ae}_setActiveItemByDelta(Y){this._wrap?this._setActiveInWrapMode(Y):this._setActiveInDefaultMode(Y)}_setActiveInWrapMode(Y){const ge=this._getItemsArray();for(let Ae=1;Ae<=ge.length;Ae++){const et=(this._activeItemIndex+Y*Ae+ge.length)%ge.length;if(!this._skipPredicateFn(ge[et]))return void this.setActiveItem(et)}}_setActiveInDefaultMode(Y){this._setActiveItemByIndex(this._activeItemIndex+Y,Y)}_setActiveItemByIndex(Y,ge){const Ae=this._getItemsArray();if(Ae[Y]){for(;this._skipPredicateFn(Ae[Y]);)if(!Ae[Y+=ge])return;this.setActiveItem(Y)}}_getItemsArray(){return this._items instanceof t.n_E?this._items.toArray():this._items}}class D extends _{setActiveItem(Y){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Y),this.activeItem&&this.activeItem.setActiveStyles()}}class I extends _{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Y){return this._origin=Y,this}setActiveItem(Y){super.setActiveItem(Y),this.activeItem&&this.activeItem.focus(this._origin)}}let r=(()=>{class Te{constructor(ge){this._platform=ge}isDisabled(ge){return ge.hasAttribute("disabled")}isVisible(ge){return function(Te){return!!(Te.offsetWidth||Te.offsetHeight||"function"==typeof Te.getClientRects&&Te.getClientRects().length)}(ge)&&"visible"===getComputedStyle(ge).visibility}isTabbable(ge){if(!this._platform.isBrowser)return!1;const Ae=function(Te){try{return Te.frameElement}catch(Y){return null}}(function(Te){return Te.ownerDocument&&Te.ownerDocument.defaultView||window}(ge));if(Ae&&(-1===Oe(Ae)||!this.isVisible(Ae)))return!1;let et=ge.nodeName.toLowerCase(),$t=Oe(ge);return ge.hasAttribute("contenteditable")?-1!==$t:!("iframe"===et||"object"===et||this._platform.WEBKIT&&this._platform.IOS&&!function(Te){let Y=Te.nodeName.toLowerCase(),ge="input"===Y&&Te.type;return"text"===ge||"password"===ge||"select"===Y||"textarea"===Y}(ge))&&("audio"===et?!!ge.hasAttribute("controls")&&-1!==$t:"video"===et?-1!==$t&&(null!==$t||this._platform.FIREFOX||ge.hasAttribute("controls")):ge.tabIndex>=0)}isFocusable(ge,Ae){return function(Te){return!function(Te){return function(Te){return"input"==Te.nodeName.toLowerCase()}(Te)&&"hidden"==Te.type}(Te)&&(function(Te){let Y=Te.nodeName.toLowerCase();return"input"===Y||"select"===Y||"button"===Y||"textarea"===Y}(Te)||function(Te){return function(Te){return"a"==Te.nodeName.toLowerCase()}(Te)&&Te.hasAttribute("href")}(Te)||Te.hasAttribute("contenteditable")||Be(Te))}(ge)&&!this.isDisabled(ge)&&((null==Ae?void 0:Ae.ignoreVisibility)||this.isVisible(ge))}}return Te.\u0275fac=function(ge){return new(ge||Te)(t.LFG(W.t4))},Te.\u0275prov=t.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();function Be(Te){if(!Te.hasAttribute("tabindex")||void 0===Te.tabIndex)return!1;let Y=Te.getAttribute("tabindex");return!(!Y||isNaN(parseInt(Y,10)))}function Oe(Te){if(!Be(Te))return null;const Y=parseInt(Te.getAttribute("tabindex")||"",10);return isNaN(Y)?-1:Y}class ae{constructor(Y,ge,Ae,et,$t=!1){this._element=Y,this._checker=ge,this._ngZone=Ae,this._document=et,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,$t||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Y){this._enabled=Y,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Y,this._startAnchor),this._toggleAnchorTabIndex(Y,this._endAnchor))}destroy(){const Y=this._startAnchor,ge=this._endAnchor;Y&&(Y.removeEventListener("focus",this.startAnchorListener),Y.remove()),ge&&(ge.removeEventListener("focus",this.endAnchorListener),ge.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Y){return new Promise(ge=>{this._executeOnStable(()=>ge(this.focusInitialElement(Y)))})}focusFirstTabbableElementWhenReady(Y){return new Promise(ge=>{this._executeOnStable(()=>ge(this.focusFirstTabbableElement(Y)))})}focusLastTabbableElementWhenReady(Y){return new Promise(ge=>{this._executeOnStable(()=>ge(this.focusLastTabbableElement(Y)))})}_getRegionBoundary(Y){const ge=this._element.querySelectorAll(`[cdk-focus-region-${Y}], [cdkFocusRegion${Y}], [cdk-focus-${Y}]`);return"start"==Y?ge.length?ge[0]:this._getFirstTabbableElement(this._element):ge.length?ge[ge.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Y){const ge=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ge){if(!this._checker.isFocusable(ge)){const Ae=this._getFirstTabbableElement(ge);return null==Ae||Ae.focus(Y),!!Ae}return ge.focus(Y),!0}return this.focusFirstTabbableElement(Y)}focusFirstTabbableElement(Y){const ge=this._getRegionBoundary("start");return ge&&ge.focus(Y),!!ge}focusLastTabbableElement(Y){const ge=this._getRegionBoundary("end");return ge&&ge.focus(Y),!!ge}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Y){if(this._checker.isFocusable(Y)&&this._checker.isTabbable(Y))return Y;const ge=Y.children;for(let Ae=0;Ae<ge.length;Ae++){const et=ge[Ae].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(ge[Ae]):null;if(et)return et}return null}_getLastTabbableElement(Y){if(this._checker.isFocusable(Y)&&this._checker.isTabbable(Y))return Y;const ge=Y.children;for(let Ae=ge.length-1;Ae>=0;Ae--){const et=ge[Ae].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ge[Ae]):null;if(et)return et}return null}_createAnchor(){const Y=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Y),Y.classList.add("cdk-visually-hidden"),Y.classList.add("cdk-focus-trap-anchor"),Y.setAttribute("aria-hidden","true"),Y}_toggleAnchorTabIndex(Y,ge){Y?ge.setAttribute("tabindex","0"):ge.removeAttribute("tabindex")}toggleAnchors(Y){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Y,this._startAnchor),this._toggleAnchorTabIndex(Y,this._endAnchor))}_executeOnStable(Y){this._ngZone.isStable?Y():this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(Y)}}let We=(()=>{class Te{constructor(ge,Ae,et){this._checker=ge,this._ngZone=Ae,this._document=et}create(ge,Ae=!1){return new ae(ge,this._checker,this._ngZone,this._document,Ae)}}return Te.\u0275fac=function(ge){return new(ge||Te)(t.LFG(r),t.LFG(t.R0b),t.LFG(e.K0))},Te.\u0275prov=t.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})(),vt=(()=>{class Te{constructor(ge,Ae,et){this._elementRef=ge,this._focusTrapFactory=Ae,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(ge){this.focusTrap.enabled=(0,V.Ig)(ge)}get autoCapture(){return this._autoCapture}set autoCapture(ge){this._autoCapture=(0,V.Ig)(ge)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(ge){const Ae=ge.autoCapture;Ae&&!Ae.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,W.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Te.\u0275fac=function(ge){return new(ge||Te)(t.Y36(t.SBq),t.Y36(We),t.Y36(e.K0))},Te.\u0275dir=t.lG2({type:Te,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[t.TTD]}),Te})();function q(Te){return 0===Te.offsetX&&0===Te.offsetY}function J(Te){const Y=Te.touches&&Te.touches[0]||Te.changedTouches&&Te.changedTouches[0];return!(!Y||-1!==Y.identifier||null!=Y.radiusX&&1!==Y.radiusX||null!=Y.radiusY&&1!==Y.radiusY)}const oe=new t.OlP("cdk-input-modality-detector-options"),Ce={ignoreKeys:[c.zL,c.jx,c.b2,c.MW,c.JU]},ht=(0,W.i$)({passive:!0,capture:!0});let it=(()=>{class Te{constructor(ge,Ae,et,$t){this._platform=ge,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=Nt=>{var Xt,lt;(null===(lt=null===(Xt=this._options)||void 0===Xt?void 0:Xt.ignoreKeys)||void 0===lt?void 0:lt.some(Re=>Re===Nt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,W.sA)(Nt))},this._onMousedown=Nt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(q(Nt)?"keyboard":"mouse"),this._mostRecentTarget=(0,W.sA)(Nt))},this._onTouchstart=Nt=>{J(Nt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,W.sA)(Nt))},this._options=Object.assign(Object.assign({},Ce),$t),this.modalityDetected=this._modality.pipe((0,E.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,k.x)()),ge.isBrowser&&Ae.runOutsideAngular(()=>{et.addEventListener("keydown",this._onKeydown,ht),et.addEventListener("mousedown",this._onMousedown,ht),et.addEventListener("touchstart",this._onTouchstart,ht)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ht),document.removeEventListener("mousedown",this._onMousedown,ht),document.removeEventListener("touchstart",this._onTouchstart,ht))}}return Te.\u0275fac=function(ge){return new(ge||Te)(t.LFG(W.t4),t.LFG(t.R0b),t.LFG(e.K0),t.LFG(oe,8))},Te.\u0275prov=t.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();const ft=new t.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),st=new t.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let wt=(()=>{class Te{constructor(ge,Ae,et,$t){this._ngZone=Ae,this._defaultOptions=$t,this._document=et,this._liveElement=ge||this._createLiveElement()}announce(ge,...Ae){const et=this._defaultOptions;let $t,Nt;return 1===Ae.length&&"number"==typeof Ae[0]?Nt=Ae[0]:[$t,Nt]=Ae,this.clear(),clearTimeout(this._previousTimeout),$t||($t=et&&et.politeness?et.politeness:"polite"),null==Nt&&et&&(Nt=et.duration),this._liveElement.setAttribute("aria-live",$t),this._ngZone.runOutsideAngular(()=>new Promise(Xt=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=ge,Xt(),"number"==typeof Nt&&(this._previousTimeout=setTimeout(()=>this.clear(),Nt))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var ge;clearTimeout(this._previousTimeout),null===(ge=this._liveElement)||void 0===ge||ge.remove(),this._liveElement=null}_createLiveElement(){const ge="cdk-live-announcer-element",Ae=this._document.getElementsByClassName(ge),et=this._document.createElement("div");for(let $t=0;$t<Ae.length;$t++)Ae[$t].remove();return et.classList.add(ge),et.classList.add("cdk-visually-hidden"),et.setAttribute("aria-atomic","true"),et.setAttribute("aria-live","polite"),this._document.body.appendChild(et),et}}return Te.\u0275fac=function(ge){return new(ge||Te)(t.LFG(ft,8),t.LFG(t.R0b),t.LFG(e.K0),t.LFG(st,8))},Te.\u0275prov=t.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})(),Bt=(()=>{class Te{constructor(ge,Ae,et,$t){this._elementRef=ge,this._liveAnnouncer=Ae,this._contentObserver=et,this._ngZone=$t,this._politeness="polite"}get politeness(){return this._politeness}set politeness(ge){this._politeness="off"===ge||"assertive"===ge?ge:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const Ae=this._elementRef.nativeElement.textContent;Ae!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(Ae,this._politeness),this._previousAnnouncedText=Ae)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return Te.\u0275fac=function(ge){return new(ge||Te)(t.Y36(t.SBq),t.Y36(wt),t.Y36(j.yq),t.Y36(t.R0b))},Te.\u0275dir=t.lG2({type:Te,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),Te})();const Pt=new t.OlP("cdk-focus-monitor-default-options"),Vt=(0,W.i$)({passive:!0,capture:!0});let Oi=(()=>{class Te{constructor(ge,Ae,et,$t,Nt){this._ngZone=ge,this._platform=Ae,this._inputModalityDetector=et,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new v.x,this._rootNodeFocusAndBlurListener=Xt=>{const lt=(0,W.sA)(Xt),Re="focus"===Xt.type?this._onFocus:this._onBlur;for(let Fe=lt;Fe;Fe=Fe.parentElement)Re.call(this,Xt,Fe)},this._document=$t,this._detectionMode=(null==Nt?void 0:Nt.detectionMode)||0}monitor(ge,Ae=!1){const et=(0,V.fI)(ge);if(!this._platform.isBrowser||1!==et.nodeType)return(0,M.of)(null);const $t=(0,W.kV)(et)||this._getDocument(),Nt=this._elementInfo.get(et);if(Nt)return Ae&&(Nt.checkChildren=!0),Nt.subject;const Xt={checkChildren:Ae,subject:new v.x,rootNode:$t};return this._elementInfo.set(et,Xt),this._registerGlobalListeners(Xt),Xt.subject}stopMonitoring(ge){const Ae=(0,V.fI)(ge),et=this._elementInfo.get(Ae);et&&(et.subject.complete(),this._setClasses(Ae),this._elementInfo.delete(Ae),this._removeGlobalListeners(et))}focusVia(ge,Ae,et){const $t=(0,V.fI)(ge);$t===this._getDocument().activeElement?this._getClosestElementsInfo($t).forEach(([Xt,lt])=>this._originChanged(Xt,Ae,lt)):(this._setOrigin(Ae),"function"==typeof $t.focus&&$t.focus(et))}ngOnDestroy(){this._elementInfo.forEach((ge,Ae)=>this.stopMonitoring(Ae))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ge){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ge)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(ge){return 1===this._detectionMode||!!(null==ge?void 0:ge.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(ge,Ae){ge.classList.toggle("cdk-focused",!!Ae),ge.classList.toggle("cdk-touch-focused","touch"===Ae),ge.classList.toggle("cdk-keyboard-focused","keyboard"===Ae),ge.classList.toggle("cdk-mouse-focused","mouse"===Ae),ge.classList.toggle("cdk-program-focused","program"===Ae)}_setOrigin(ge,Ae=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ge,this._originFromTouchInteraction="touch"===ge&&Ae,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ge,Ae){const et=this._elementInfo.get(Ae),$t=(0,W.sA)(ge);!et||!et.checkChildren&&Ae!==$t||this._originChanged(Ae,this._getFocusOrigin($t),et)}_onBlur(ge,Ae){const et=this._elementInfo.get(Ae);!et||et.checkChildren&&ge.relatedTarget instanceof Node&&Ae.contains(ge.relatedTarget)||(this._setClasses(Ae),this._emitOrigin(et.subject,null))}_emitOrigin(ge,Ae){this._ngZone.run(()=>ge.next(Ae))}_registerGlobalListeners(ge){if(!this._platform.isBrowser)return;const Ae=ge.rootNode,et=this._rootNodeFocusListenerCount.get(Ae)||0;et||this._ngZone.runOutsideAngular(()=>{Ae.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),Ae.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vt)}),this._rootNodeFocusListenerCount.set(Ae,et+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,w.R)(this._stopInputModalityDetector)).subscribe($t=>{this._setOrigin($t,!0)}))}_removeGlobalListeners(ge){const Ae=ge.rootNode;if(this._rootNodeFocusListenerCount.has(Ae)){const et=this._rootNodeFocusListenerCount.get(Ae);et>1?this._rootNodeFocusListenerCount.set(Ae,et-1):(Ae.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),Ae.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vt),this._rootNodeFocusListenerCount.delete(Ae))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ge,Ae,et){this._setClasses(ge,Ae),this._emitOrigin(et.subject,Ae),this._lastFocusOrigin=Ae}_getClosestElementsInfo(ge){const Ae=[];return this._elementInfo.forEach((et,$t)=>{($t===ge||et.checkChildren&&$t.contains(ge))&&Ae.push([$t,et])}),Ae}}return Te.\u0275fac=function(ge){return new(ge||Te)(t.LFG(t.R0b),t.LFG(W.t4),t.LFG(it),t.LFG(e.K0,8),t.LFG(Pt,8))},Te.\u0275prov=t.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})(),jt=(()=>{class Te{constructor(ge,Ae){this._elementRef=ge,this._focusMonitor=Ae,this.cdkFocusChange=new t.vpe}ngAfterViewInit(){const ge=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ge,1===ge.nodeType&&ge.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Ae=>this.cdkFocusChange.emit(Ae))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Te.\u0275fac=function(ge){return new(ge||Te)(t.Y36(t.SBq),t.Y36(Oi))},Te.\u0275dir=t.lG2({type:Te,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Te})();const ti="cdk-high-contrast-black-on-white",Pi="cdk-high-contrast-white-on-black",si="cdk-high-contrast-active";let di=(()=>{class Te{constructor(ge,Ae){this._platform=ge,this._document=Ae}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ge=this._document.createElement("div");ge.style.backgroundColor="rgb(1,2,3)",ge.style.position="absolute",this._document.body.appendChild(ge);const Ae=this._document.defaultView||window,et=Ae&&Ae.getComputedStyle?Ae.getComputedStyle(ge):null,$t=(et&&et.backgroundColor||"").replace(/ /g,"");switch(ge.remove(),$t){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const ge=this._document.body.classList;ge.remove(si),ge.remove(ti),ge.remove(Pi),this._hasCheckedHighContrastMode=!0;const Ae=this.getHighContrastMode();1===Ae?(ge.add(si),ge.add(ti)):2===Ae&&(ge.add(si),ge.add(Pi))}}}return Te.\u0275fac=function(ge){return new(ge||Te)(t.LFG(W.t4),t.LFG(e.K0))},Te.\u0275prov=t.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})(),ze=(()=>{class Te{constructor(ge){ge._applyBodyHighContrastModeCssClasses()}}return Te.\u0275fac=function(ge){return new(ge||Te)(t.LFG(di))},Te.\u0275mod=t.oAB({type:Te}),Te.\u0275inj=t.cJS({imports:[[W.ud,j.Q8]]}),Te})()},226:(Ze,K,m)=>{"use strict";m.d(K,{vT:()=>o,Is:()=>c});var e=m(5e3),t=m(9808);const v=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,e.f3M)(t.K0)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let c=(()=>{class L{constructor(A){if(this.value="ltr",this.change=new e.vpe,A){const k=A.documentElement?A.documentElement.dir:null;this.value=function(L){const O=(null==L?void 0:L.toLowerCase())||"";return"auto"===O&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?s.test(navigator.language)?"rtl":"ltr":"rtl"===O?"rtl":"ltr"}((A.body?A.body.dir:null)||k||"ltr")}}ngOnDestroy(){this.change.complete()}}return L.\u0275fac=function(A){return new(A||L)(e.LFG(v,8))},L.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),o=(()=>{class L{}return L.\u0275fac=function(A){return new(A||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({}),L})()},3191:(Ze,K,m)=>{"use strict";m.d(K,{t6:()=>C,Eq:()=>s,Ig:()=>t,HM:()=>M,fI:()=>c,su:()=>v,du:()=>N});var e=m(5e3);function t(o){return null!=o&&"false"!=`${o}`}function v(o,L=0){return C(o)?Number(o):L}function C(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}function s(o){return Array.isArray(o)?o:[o]}function M(o){return null==o?"":"string"==typeof o?o:`${o}px`}function c(o){return o instanceof e.SBq?o.nativeElement:o}function N(o,L=/\s+/){const O=[];if(null!=o){const A=Array.isArray(o)?o:`${o}`.split(L);for(const E of A){const k=`${E}`.trim();k&&O.push(k)}}return O}},449:(Ze,K,m)=>{"use strict";m.d(K,{o2:()=>v,Ov:()=>N,A8:()=>L,yy:()=>M,eX:()=>c,k:()=>O,Z9:()=>C});var e=m(7579),t=m(5e3);class v{}function C(A){return A&&"function"==typeof A.connect}class M{applyChanges(E,k,w,V,W){E.forEachOperation((j,$,ee)=>{let me,ce;if(null==j.previousIndex){const le=w(j,$,ee);me=k.createEmbeddedView(le.templateRef,le.context,le.index),ce=1}else null==ee?(k.remove($),ce=3):(me=k.get($),k.move(me,ee),ce=2);W&&W({context:null==me?void 0:me.context,operation:ce,record:j})})}detach(){}}class c{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(E,k,w,V,W){E.forEachOperation((j,$,ee)=>{let me,ce;null==j.previousIndex?(me=this._insertView(()=>w(j,$,ee),ee,k,V(j)),ce=me?1:0):null==ee?(this._detachAndCacheView($,k),ce=3):(me=this._moveView($,ee,k,V(j)),ce=2),W&&W({context:null==me?void 0:me.context,operation:ce,record:j})})}detach(){for(const E of this._viewCache)E.destroy();this._viewCache=[]}_insertView(E,k,w,V){const W=this._insertViewFromCache(k,w);if(W)return void(W.context.$implicit=V);const j=E();return w.createEmbeddedView(j.templateRef,j.context,j.index)}_detachAndCacheView(E,k){const w=k.detach(E);this._maybeCacheView(w,k)}_moveView(E,k,w,V){const W=w.get(E);return w.move(W,k),W.context.$implicit=V,W}_maybeCacheView(E,k){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(E);else{const w=k.indexOf(E);-1===w?E.destroy():k.remove(w)}}_insertViewFromCache(E,k){const w=this._viewCache.pop();return w&&k.insert(w,E),w||null}}class N{constructor(E=!1,k,w=!0){this._multiple=E,this._emitChanges=w,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new e.x,k&&k.length&&(E?k.forEach(V=>this._markSelected(V)):this._markSelected(k[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...E){this._verifyValueAssignment(E),E.forEach(k=>this._markSelected(k)),this._emitChangeEvent()}deselect(...E){this._verifyValueAssignment(E),E.forEach(k=>this._unmarkSelected(k)),this._emitChangeEvent()}toggle(E){this.isSelected(E)?this.deselect(E):this.select(E)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(E){return this._selection.has(E)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(E){this._multiple&&this.selected&&this._selected.sort(E)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(E){this.isSelected(E)||(this._multiple||this._unmarkAll(),this._selection.add(E),this._emitChanges&&this._selectedToEmit.push(E))}_unmarkSelected(E){this.isSelected(E)&&(this._selection.delete(E),this._emitChanges&&this._deselectedToEmit.push(E))}_unmarkAll(){this.isEmpty()||this._selection.forEach(E=>this._unmarkSelected(E))}_verifyValueAssignment(E){}}let L=(()=>{class A{constructor(){this._listeners=[]}notify(k,w){for(let V of this._listeners)V(k,w)}listen(k){return this._listeners.push(k),()=>{this._listeners=this._listeners.filter(w=>k!==w)}}ngOnDestroy(){this._listeners=[]}}return A.\u0275fac=function(k){return new(k||A)},A.\u0275prov=t.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})();const O=new t.OlP("_ViewRepeater")},1159:(Ze,K,m)=>{"use strict";m.d(K,{A:()=>P,zL:()=>N,jx:()=>c,JH:()=>ee,uR:()=>w,K5:()=>s,hY:()=>O,Sd:()=>V,oh:()=>W,b2:()=>ui,MW:()=>nt,aO:()=>I,VM:()=>k,Ku:()=>E,SV:()=>$,JU:()=>M,L_:()=>A,Mf:()=>v,LH:()=>j,Z:()=>ft,xE:()=>re,Vb:()=>Ci});const v=9,s=13,M=16,c=17,N=18,O=27,A=32,E=33,k=34,w=35,V=36,W=37,j=38,$=39,ee=40,re=48,I=57,P=65,ft=90,nt=91,ui=224;function Ci(Wi,...$i){return $i.length?$i.some(An=>Wi[An]):Wi.altKey||Wi.shiftKey||Wi.ctrlKey||Wi.metaKey}},5113:(Ze,K,m)=>{"use strict";m.d(K,{Yg:()=>ee,u3:()=>ce,xu:()=>k});var e=m(5e3),t=m(3191),v=m(7579),C=m(9841),s=m(7272),M=m(8306),c=m(5698),N=m(5684),o=m(8372),L=m(4004),O=m(8675),A=m(2722),E=m(925);let k=(()=>{class le{}return le.\u0275fac=function(re){return new(re||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({}),le})();const w=new Set;let V,W=(()=>{class le{constructor(re){this._platform=re,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):$}matchMedia(re){return(this._platform.WEBKIT||this._platform.BLINK)&&function(le){if(!w.has(le))try{V||(V=document.createElement("style"),V.setAttribute("type","text/css"),document.head.appendChild(V)),V.sheet&&(V.sheet.insertRule(`@media ${le} {body{ }}`,0),w.add(le))}catch(te){console.error(te)}}(re),this._matchMedia(re)}}return le.\u0275fac=function(re){return new(re||le)(e.LFG(E.t4))},le.\u0275prov=e.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();function $(le){return{matches:"all"===le||""===le,media:le,addListener:()=>{},removeListener:()=>{}}}let ee=(()=>{class le{constructor(re,pe){this._mediaMatcher=re,this._zone=pe,this._queries=new Map,this._destroySubject=new v.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(re){return me((0,t.Eq)(re)).some(y=>this._registerQuery(y).mql.matches)}observe(re){const y=me((0,t.Eq)(re)).map(a=>this._registerQuery(a).observable);let i=(0,C.a)(y);return i=(0,s.z)(i.pipe((0,c.q)(1)),i.pipe((0,N.T)(1),(0,o.b)(0))),i.pipe((0,L.U)(a=>{const p={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:_})=>{p.matches=p.matches||u,p.breakpoints[_]=u}),p}))}_registerQuery(re){if(this._queries.has(re))return this._queries.get(re);const pe=this._mediaMatcher.matchMedia(re),i={observable:new M.y(a=>{const p=u=>this._zone.run(()=>a.next(u));return pe.addListener(p),()=>{pe.removeListener(p)}}).pipe((0,O.O)(pe),(0,L.U)(({matches:a})=>({query:re,matches:a})),(0,A.R)(this._destroySubject)),mql:pe};return this._queries.set(re,i),i}}return le.\u0275fac=function(re){return new(re||le)(e.LFG(W),e.LFG(e.R0b))},le.\u0275prov=e.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();function me(le){return le.map(te=>te.split(",")).reduce((te,re)=>te.concat(re)).map(te=>te.trim())}const ce={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(Ze,K,m)=>{"use strict";m.d(K,{wD:()=>N,yq:()=>c,Q8:()=>o});var e=m(3191),t=m(5e3),v=m(8306),C=m(7579),s=m(8372);let M=(()=>{class L{create(A){return"undefined"==typeof MutationObserver?null:new MutationObserver(A)}}return L.\u0275fac=function(A){return new(A||L)},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),c=(()=>{class L{constructor(A){this._mutationObserverFactory=A,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((A,E)=>this._cleanupObserver(E))}observe(A){const E=(0,e.fI)(A);return new v.y(k=>{const V=this._observeElement(E).subscribe(k);return()=>{V.unsubscribe(),this._unobserveElement(E)}})}_observeElement(A){if(this._observedElements.has(A))this._observedElements.get(A).count++;else{const E=new C.x,k=this._mutationObserverFactory.create(w=>E.next(w));k&&k.observe(A,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(A,{observer:k,stream:E,count:1})}return this._observedElements.get(A).stream}_unobserveElement(A){this._observedElements.has(A)&&(this._observedElements.get(A).count--,this._observedElements.get(A).count||this._cleanupObserver(A))}_cleanupObserver(A){if(this._observedElements.has(A)){const{observer:E,stream:k}=this._observedElements.get(A);E&&E.disconnect(),k.complete(),this._observedElements.delete(A)}}}return L.\u0275fac=function(A){return new(A||L)(t.LFG(M))},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),N=(()=>{class L{constructor(A,E,k){this._contentObserver=A,this._elementRef=E,this._ngZone=k,this.event=new t.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(A){this._disabled=(0,e.Ig)(A),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(A){this._debounce=(0,e.su)(A),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const A=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?A.pipe((0,s.b)(this.debounce)):A).subscribe(this.event)})}_unsubscribe(){var A;null===(A=this._currentSubscription)||void 0===A||A.unsubscribe()}}return L.\u0275fac=function(A){return new(A||L)(t.Y36(c),t.Y36(t.SBq),t.Y36(t.R0b))},L.\u0275dir=t.lG2({type:L,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),L})(),o=(()=>{class L{}return L.\u0275fac=function(A){return new(A||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({providers:[M]}),L})()},9776:(Ze,K,m)=>{"use strict";m.d(K,{pI:()=>vt,xu:()=>We,_G:()=>r,aV:()=>Me,X_:()=>pe,Xj:()=>D,U8:()=>he});var e=m(5303),t=m(9808),v=m(5e3),C=m(3191),s=m(925),M=m(226),c=m(7429),N=m(7579),o=m(727),L=m(6451),O=m(4482),A=m(5403),k=m(5698),w=m(2722),V=m(1159);const W=(0,s.Mq)();class j{constructor(q,J){this._viewportRuler=q,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=J}attach(){}enable(){if(this._canBeEnabled()){const q=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=q.style.left||"",this._previousHTMLStyles.top=q.style.top||"",q.style.left=(0,C.HM)(-this._previousScrollPosition.left),q.style.top=(0,C.HM)(-this._previousScrollPosition.top),q.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const q=this._document.documentElement,oe=q.style,Ce=this._document.body.style,Ue=oe.scrollBehavior||"",ht=Ce.scrollBehavior||"";this._isEnabled=!1,oe.left=this._previousHTMLStyles.left,oe.top=this._previousHTMLStyles.top,q.classList.remove("cdk-global-scrollblock"),W&&(oe.scrollBehavior=Ce.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),W&&(oe.scrollBehavior=Ue,Ce.scrollBehavior=ht)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const J=this._document.body,oe=this._viewportRuler.getViewportSize();return J.scrollHeight>oe.height||J.scrollWidth>oe.width}}class ee{constructor(q,J,oe,Ce){this._scrollDispatcher=q,this._ngZone=J,this._viewportRuler=oe,this._config=Ce,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(q){this._overlayRef=q}enable(){if(this._scrollSubscription)return;const q=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=q.subscribe(()=>{const J=this._viewportRuler.getViewportScrollPosition().top;Math.abs(J-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=q.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class me{enable(){}disable(){}attach(){}}function ce(ke,q){return q.some(J=>ke.bottom<J.top||ke.top>J.bottom||ke.right<J.left||ke.left>J.right)}function le(ke,q){return q.some(J=>ke.top<J.top||ke.bottom>J.bottom||ke.left<J.left||ke.right>J.right)}class te{constructor(q,J,oe,Ce){this._scrollDispatcher=q,this._viewportRuler=J,this._ngZone=oe,this._config=Ce,this._scrollSubscription=null}attach(q){this._overlayRef=q}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const J=this._overlayRef.overlayElement.getBoundingClientRect(),{width:oe,height:Ce}=this._viewportRuler.getViewportSize();ce(J,[{width:oe,height:Ce,bottom:Ce,right:oe,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let re=(()=>{class ke{constructor(J,oe,Ce,Ue){this._scrollDispatcher=J,this._viewportRuler=oe,this._ngZone=Ce,this.noop=()=>new me,this.close=ht=>new ee(this._scrollDispatcher,this._ngZone,this._viewportRuler,ht),this.block=()=>new j(this._viewportRuler,this._document),this.reposition=ht=>new te(this._scrollDispatcher,this._viewportRuler,this._ngZone,ht),this._document=Ue}}return ke.\u0275fac=function(J){return new(J||ke)(v.LFG(e.mF),v.LFG(e.rL),v.LFG(v.R0b),v.LFG(t.K0))},ke.\u0275prov=v.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();class pe{constructor(q){if(this.scrollStrategy=new me,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,q){const J=Object.keys(q);for(const oe of J)void 0!==q[oe]&&(this[oe]=q[oe])}}}class a{constructor(q,J){this.connectionPair=q,this.scrollableViewProperties=J}}class _{constructor(q,J,oe,Ce,Ue,ht,it,ft,nt){this._portalOutlet=q,this._host=J,this._pane=oe,this._config=Ce,this._ngZone=Ue,this._keyboardDispatcher=ht,this._document=it,this._location=ft,this._outsideClickDispatcher=nt,this._backdropElement=null,this._backdropClick=new N.x,this._attachments=new N.x,this._detachments=new N.x,this._locationChanges=o.w0.EMPTY,this._backdropClickHandler=st=>this._backdropClick.next(st),this._keydownEvents=new N.x,this._outsidePointerEvents=new N.x,Ce.scrollStrategy&&(this._scrollStrategy=Ce.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Ce.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(q){let J=this._portalOutlet.attach(q);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),J}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const q=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),q}dispose(){var q;const J=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(q=this._host)||void 0===q||q.remove(),this._previousHostParent=this._pane=this._host=null,J&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(q){q!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=q,this.hasAttached()&&(q.attach(this),this.updatePosition()))}updateSize(q){this._config=Object.assign(Object.assign({},this._config),q),this._updateElementSize()}setDirection(q){this._config=Object.assign(Object.assign({},this._config),{direction:q}),this._updateElementDirection()}addPanelClass(q){this._pane&&this._toggleClasses(this._pane,q,!0)}removePanelClass(q){this._pane&&this._toggleClasses(this._pane,q,!1)}getDirection(){const q=this._config.direction;return q?"string"==typeof q?q:q.value:"ltr"}updateScrollStrategy(q){q!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=q,this.hasAttached()&&(q.attach(this),q.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const q=this._pane.style;q.width=(0,C.HM)(this._config.width),q.height=(0,C.HM)(this._config.height),q.minWidth=(0,C.HM)(this._config.minWidth),q.minHeight=(0,C.HM)(this._config.minHeight),q.maxWidth=(0,C.HM)(this._config.maxWidth),q.maxHeight=(0,C.HM)(this._config.maxHeight)}_togglePointerEvents(q){this._pane.style.pointerEvents=q?"":"none"}_attachBackdrop(){const q="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(q)})}):this._backdropElement.classList.add(q)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const q=this._backdropElement;if(!q)return;let J;const oe=()=>{q&&(q.removeEventListener("click",this._backdropClickHandler),q.removeEventListener("transitionend",oe),this._disposeBackdrop(q)),this._config.backdropClass&&this._toggleClasses(q,this._config.backdropClass,!1),clearTimeout(J)};q.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{q.addEventListener("transitionend",oe)}),q.style.pointerEvents="none",J=this._ngZone.runOutsideAngular(()=>setTimeout(oe,500))}_toggleClasses(q,J,oe){const Ce=(0,C.Eq)(J||[]).filter(Ue=>!!Ue);Ce.length&&(oe?q.classList.add(...Ce):q.classList.remove(...Ce))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const q=this._ngZone.onStable.pipe((0,w.R)((0,L.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),q.unsubscribe())})})}_disposeScrollStrategy(){const q=this._scrollStrategy;q&&(q.disable(),q.detach&&q.detach())}_disposeBackdrop(q){q&&(q.remove(),this._backdropElement===q&&(this._backdropElement=null))}}let D=(()=>{class ke{constructor(J,oe){this._platform=oe,this._document=J}ngOnDestroy(){var J;null===(J=this._containerElement)||void 0===J||J.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const J="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const Ce=this._document.querySelectorAll(`.${J}[platform="server"], .${J}[platform="test"]`);for(let Ue=0;Ue<Ce.length;Ue++)Ce[Ue].remove()}const oe=this._document.createElement("div");oe.classList.add(J),(0,s.Oy)()?oe.setAttribute("platform","test"):this._platform.isBrowser||oe.setAttribute("platform","server"),this._document.body.appendChild(oe),this._containerElement=oe}}return ke.\u0275fac=function(J){return new(J||ke)(v.LFG(t.K0),v.LFG(s.t4))},ke.\u0275prov=v.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const I="cdk-overlay-connected-position-bounding-box",x=/([A-Za-z%]+)$/;class r{constructor(q,J,oe,Ce,Ue){this._viewportRuler=J,this._document=oe,this._platform=Ce,this._overlayContainer=Ue,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new N.x,this._resizeSubscription=o.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(q)}get positions(){return this._preferredPositions}attach(q){this._validatePositions(),q.hostElement.classList.add(I),this._overlayRef=q,this._boundingBox=q.hostElement,this._pane=q.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const q=this._originRect,J=this._overlayRect,oe=this._viewportRect,Ce=[];let Ue;for(let ht of this._preferredPositions){let it=this._getOriginPoint(q,ht),ft=this._getOverlayPoint(it,J,ht),nt=this._getOverlayFit(ft,J,oe,ht);if(nt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ht,it);this._canFitWithFlexibleDimensions(nt,ft,oe)?Ce.push({position:ht,origin:it,overlayRect:J,boundingBoxRect:this._calculateBoundingBoxRect(it,ht)}):(!Ue||Ue.overlayFit.visibleArea<nt.visibleArea)&&(Ue={overlayFit:nt,overlayPoint:ft,originPoint:it,position:ht,overlayRect:J})}if(Ce.length){let ht=null,it=-1;for(const ft of Ce){const nt=ft.boundingBoxRect.width*ft.boundingBoxRect.height*(ft.position.weight||1);nt>it&&(it=nt,ht=ft)}return this._isPushed=!1,void this._applyPosition(ht.position,ht.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ue.position,Ue.originPoint);this._applyPosition(Ue.position,Ue.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&b(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(I),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const q=this._lastPosition||this._preferredPositions[0],J=this._getOriginPoint(this._originRect,q);this._applyPosition(q,J)}}withScrollableContainers(q){return this._scrollables=q,this}withPositions(q){return this._preferredPositions=q,-1===q.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(q){return this._viewportMargin=q,this}withFlexibleDimensions(q=!0){return this._hasFlexibleDimensions=q,this}withGrowAfterOpen(q=!0){return this._growAfterOpen=q,this}withPush(q=!0){return this._canPush=q,this}withLockedPosition(q=!0){return this._positionLocked=q,this}setOrigin(q){return this._origin=q,this}withDefaultOffsetX(q){return this._offsetX=q,this}withDefaultOffsetY(q){return this._offsetY=q,this}withTransformOriginOn(q){return this._transformOriginSelector=q,this}_getOriginPoint(q,J){let oe,Ce;if("center"==J.originX)oe=q.left+q.width/2;else{const Ue=this._isRtl()?q.right:q.left,ht=this._isRtl()?q.left:q.right;oe="start"==J.originX?Ue:ht}return Ce="center"==J.originY?q.top+q.height/2:"top"==J.originY?q.top:q.bottom,{x:oe,y:Ce}}_getOverlayPoint(q,J,oe){let Ce,Ue;return Ce="center"==oe.overlayX?-J.width/2:"start"===oe.overlayX?this._isRtl()?-J.width:0:this._isRtl()?0:-J.width,Ue="center"==oe.overlayY?-J.height/2:"top"==oe.overlayY?0:-J.height,{x:q.x+Ce,y:q.y+Ue}}_getOverlayFit(q,J,oe,Ce){const Ue=P(J);let{x:ht,y:it}=q,ft=this._getOffset(Ce,"x"),nt=this._getOffset(Ce,"y");ft&&(ht+=ft),nt&&(it+=nt);let Bt=0-it,Pt=it+Ue.height-oe.height,Vt=this._subtractOverflows(Ue.width,0-ht,ht+Ue.width-oe.width),Oi=this._subtractOverflows(Ue.height,Bt,Pt),jt=Vt*Oi;return{visibleArea:jt,isCompletelyWithinViewport:Ue.width*Ue.height===jt,fitsInViewportVertically:Oi===Ue.height,fitsInViewportHorizontally:Vt==Ue.width}}_canFitWithFlexibleDimensions(q,J,oe){if(this._hasFlexibleDimensions){const Ce=oe.bottom-J.y,Ue=oe.right-J.x,ht=Z(this._overlayRef.getConfig().minHeight),it=Z(this._overlayRef.getConfig().minWidth),nt=q.fitsInViewportHorizontally||null!=it&&it<=Ue;return(q.fitsInViewportVertically||null!=ht&&ht<=Ce)&&nt}return!1}_pushOverlayOnScreen(q,J,oe){if(this._previousPushAmount&&this._positionLocked)return{x:q.x+this._previousPushAmount.x,y:q.y+this._previousPushAmount.y};const Ce=P(J),Ue=this._viewportRect,ht=Math.max(q.x+Ce.width-Ue.width,0),it=Math.max(q.y+Ce.height-Ue.height,0),ft=Math.max(Ue.top-oe.top-q.y,0),nt=Math.max(Ue.left-oe.left-q.x,0);let st=0,wt=0;return st=Ce.width<=Ue.width?nt||-ht:q.x<this._viewportMargin?Ue.left-oe.left-q.x:0,wt=Ce.height<=Ue.height?ft||-it:q.y<this._viewportMargin?Ue.top-oe.top-q.y:0,this._previousPushAmount={x:st,y:wt},{x:q.x+st,y:q.y+wt}}_applyPosition(q,J){if(this._setTransformOrigin(q),this._setOverlayElementStyles(J,q),this._setBoundingBoxStyles(J,q),q.panelClass&&this._addPanelClasses(q.panelClass),this._lastPosition=q,this._positionChanges.observers.length){const oe=this._getScrollVisibility(),Ce=new a(q,oe);this._positionChanges.next(Ce)}this._isInitialRender=!1}_setTransformOrigin(q){if(!this._transformOriginSelector)return;const J=this._boundingBox.querySelectorAll(this._transformOriginSelector);let oe,Ce=q.overlayY;oe="center"===q.overlayX?"center":this._isRtl()?"start"===q.overlayX?"right":"left":"start"===q.overlayX?"left":"right";for(let Ue=0;Ue<J.length;Ue++)J[Ue].style.transformOrigin=`${oe} ${Ce}`}_calculateBoundingBoxRect(q,J){const oe=this._viewportRect,Ce=this._isRtl();let Ue,ht,it,st,wt,Bt;if("top"===J.overlayY)ht=q.y,Ue=oe.height-ht+this._viewportMargin;else if("bottom"===J.overlayY)it=oe.height-q.y+2*this._viewportMargin,Ue=oe.height-it+this._viewportMargin;else{const Pt=Math.min(oe.bottom-q.y+oe.top,q.y),Vt=this._lastBoundingBoxSize.height;Ue=2*Pt,ht=q.y-Pt,Ue>Vt&&!this._isInitialRender&&!this._growAfterOpen&&(ht=q.y-Vt/2)}if("end"===J.overlayX&&!Ce||"start"===J.overlayX&&Ce)Bt=oe.width-q.x+this._viewportMargin,st=q.x-this._viewportMargin;else if("start"===J.overlayX&&!Ce||"end"===J.overlayX&&Ce)wt=q.x,st=oe.right-q.x;else{const Pt=Math.min(oe.right-q.x+oe.left,q.x),Vt=this._lastBoundingBoxSize.width;st=2*Pt,wt=q.x-Pt,st>Vt&&!this._isInitialRender&&!this._growAfterOpen&&(wt=q.x-Vt/2)}return{top:ht,left:wt,bottom:it,right:Bt,width:st,height:Ue}}_setBoundingBoxStyles(q,J){const oe=this._calculateBoundingBoxRect(q,J);!this._isInitialRender&&!this._growAfterOpen&&(oe.height=Math.min(oe.height,this._lastBoundingBoxSize.height),oe.width=Math.min(oe.width,this._lastBoundingBoxSize.width));const Ce={};if(this._hasExactPosition())Ce.top=Ce.left="0",Ce.bottom=Ce.right=Ce.maxHeight=Ce.maxWidth="",Ce.width=Ce.height="100%";else{const Ue=this._overlayRef.getConfig().maxHeight,ht=this._overlayRef.getConfig().maxWidth;Ce.height=(0,C.HM)(oe.height),Ce.top=(0,C.HM)(oe.top),Ce.bottom=(0,C.HM)(oe.bottom),Ce.width=(0,C.HM)(oe.width),Ce.left=(0,C.HM)(oe.left),Ce.right=(0,C.HM)(oe.right),Ce.alignItems="center"===J.overlayX?"center":"end"===J.overlayX?"flex-end":"flex-start",Ce.justifyContent="center"===J.overlayY?"center":"bottom"===J.overlayY?"flex-end":"flex-start",Ue&&(Ce.maxHeight=(0,C.HM)(Ue)),ht&&(Ce.maxWidth=(0,C.HM)(ht))}this._lastBoundingBoxSize=oe,b(this._boundingBox.style,Ce)}_resetBoundingBoxStyles(){b(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){b(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(q,J){const oe={},Ce=this._hasExactPosition(),Ue=this._hasFlexibleDimensions,ht=this._overlayRef.getConfig();if(Ce){const st=this._viewportRuler.getViewportScrollPosition();b(oe,this._getExactOverlayY(J,q,st)),b(oe,this._getExactOverlayX(J,q,st))}else oe.position="static";let it="",ft=this._getOffset(J,"x"),nt=this._getOffset(J,"y");ft&&(it+=`translateX(${ft}px) `),nt&&(it+=`translateY(${nt}px)`),oe.transform=it.trim(),ht.maxHeight&&(Ce?oe.maxHeight=(0,C.HM)(ht.maxHeight):Ue&&(oe.maxHeight="")),ht.maxWidth&&(Ce?oe.maxWidth=(0,C.HM)(ht.maxWidth):Ue&&(oe.maxWidth="")),b(this._pane.style,oe)}_getExactOverlayY(q,J,oe){let Ce={top:"",bottom:""},Ue=this._getOverlayPoint(J,this._overlayRect,q);this._isPushed&&(Ue=this._pushOverlayOnScreen(Ue,this._overlayRect,oe));let ht=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return Ue.y-=ht,"bottom"===q.overlayY?Ce.bottom=this._document.documentElement.clientHeight-(Ue.y+this._overlayRect.height)+"px":Ce.top=(0,C.HM)(Ue.y),Ce}_getExactOverlayX(q,J,oe){let ht,Ce={left:"",right:""},Ue=this._getOverlayPoint(J,this._overlayRect,q);return this._isPushed&&(Ue=this._pushOverlayOnScreen(Ue,this._overlayRect,oe)),ht=this._isRtl()?"end"===q.overlayX?"left":"right":"end"===q.overlayX?"right":"left","right"===ht?Ce.right=this._document.documentElement.clientWidth-(Ue.x+this._overlayRect.width)+"px":Ce.left=(0,C.HM)(Ue.x),Ce}_getScrollVisibility(){const q=this._getOriginRect(),J=this._pane.getBoundingClientRect(),oe=this._scrollables.map(Ce=>Ce.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:le(q,oe),isOriginOutsideView:ce(q,oe),isOverlayClipped:le(J,oe),isOverlayOutsideView:ce(J,oe)}}_subtractOverflows(q,...J){return J.reduce((oe,Ce)=>oe-Math.max(Ce,0),q)}_getNarrowedViewportRect(){const q=this._document.documentElement.clientWidth,J=this._document.documentElement.clientHeight,oe=this._viewportRuler.getViewportScrollPosition();return{top:oe.top+this._viewportMargin,left:oe.left+this._viewportMargin,right:oe.left+q-this._viewportMargin,bottom:oe.top+J-this._viewportMargin,width:q-2*this._viewportMargin,height:J-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(q,J){return"x"===J?null==q.offsetX?this._offsetX:q.offsetX:null==q.offsetY?this._offsetY:q.offsetY}_validatePositions(){}_addPanelClasses(q){this._pane&&(0,C.Eq)(q).forEach(J=>{""!==J&&-1===this._appliedPanelClasses.indexOf(J)&&(this._appliedPanelClasses.push(J),this._pane.classList.add(J))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(q=>{this._pane.classList.remove(q)}),this._appliedPanelClasses=[])}_getOriginRect(){const q=this._origin;if(q instanceof v.SBq)return q.nativeElement.getBoundingClientRect();if(q instanceof Element)return q.getBoundingClientRect();const J=q.width||0,oe=q.height||0;return{top:q.y,bottom:q.y+oe,left:q.x,right:q.x+J,height:oe,width:J}}}function b(ke,q){for(let J in q)q.hasOwnProperty(J)&&(ke[J]=q[J]);return ke}function Z(ke){if("number"!=typeof ke&&null!=ke){const[q,J]=ke.split(x);return J&&"px"!==J?null:parseFloat(q)}return ke||null}function P(ke){return{top:Math.floor(ke.top),right:Math.floor(ke.right),bottom:Math.floor(ke.bottom),left:Math.floor(ke.left),width:Math.floor(ke.width),height:Math.floor(ke.height)}}const U="cdk-global-overlay-wrapper";class ye{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(q){const J=q.getConfig();this._overlayRef=q,this._width&&!J.width&&q.updateSize({width:this._width}),this._height&&!J.height&&q.updateSize({height:this._height}),q.hostElement.classList.add(U),this._isDisposed=!1}top(q=""){return this._bottomOffset="",this._topOffset=q,this._alignItems="flex-start",this}left(q=""){return this._rightOffset="",this._leftOffset=q,this._justifyContent="flex-start",this}bottom(q=""){return this._topOffset="",this._bottomOffset=q,this._alignItems="flex-end",this}right(q=""){return this._leftOffset="",this._rightOffset=q,this._justifyContent="flex-end",this}width(q=""){return this._overlayRef?this._overlayRef.updateSize({width:q}):this._width=q,this}height(q=""){return this._overlayRef?this._overlayRef.updateSize({height:q}):this._height=q,this}centerHorizontally(q=""){return this.left(q),this._justifyContent="center",this}centerVertically(q=""){return this.top(q),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const q=this._overlayRef.overlayElement.style,J=this._overlayRef.hostElement.style,oe=this._overlayRef.getConfig(),{width:Ce,height:Ue,maxWidth:ht,maxHeight:it}=oe,ft=!("100%"!==Ce&&"100vw"!==Ce||ht&&"100%"!==ht&&"100vw"!==ht),nt=!("100%"!==Ue&&"100vh"!==Ue||it&&"100%"!==it&&"100vh"!==it);q.position=this._cssPosition,q.marginLeft=ft?"0":this._leftOffset,q.marginTop=nt?"0":this._topOffset,q.marginBottom=this._bottomOffset,q.marginRight=this._rightOffset,ft?J.justifyContent="flex-start":"center"===this._justifyContent?J.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?J.justifyContent="flex-end":"flex-end"===this._justifyContent&&(J.justifyContent="flex-start"):J.justifyContent=this._justifyContent,J.alignItems=nt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const q=this._overlayRef.overlayElement.style,J=this._overlayRef.hostElement,oe=J.style;J.classList.remove(U),oe.justifyContent=oe.alignItems=q.marginTop=q.marginBottom=q.marginLeft=q.marginRight=q.position="",this._overlayRef=null,this._isDisposed=!0}}let xe=(()=>{class ke{constructor(J,oe,Ce,Ue){this._viewportRuler=J,this._document=oe,this._platform=Ce,this._overlayContainer=Ue}global(){return new ye}flexibleConnectedTo(J){return new r(J,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return ke.\u0275fac=function(J){return new(J||ke)(v.LFG(e.rL),v.LFG(t.K0),v.LFG(s.t4),v.LFG(D))},ke.\u0275prov=v.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Ne=(()=>{class ke{constructor(J){this._attachedOverlays=[],this._document=J}ngOnDestroy(){this.detach()}add(J){this.remove(J),this._attachedOverlays.push(J)}remove(J){const oe=this._attachedOverlays.indexOf(J);oe>-1&&this._attachedOverlays.splice(oe,1),0===this._attachedOverlays.length&&this.detach()}}return ke.\u0275fac=function(J){return new(J||ke)(v.LFG(t.K0))},ke.\u0275prov=v.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Be=(()=>{class ke extends Ne{constructor(J){super(J),this._keydownListener=oe=>{const Ce=this._attachedOverlays;for(let Ue=Ce.length-1;Ue>-1;Ue--)if(Ce[Ue]._keydownEvents.observers.length>0){Ce[Ue]._keydownEvents.next(oe);break}}}add(J){super.add(J),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return ke.\u0275fac=function(J){return new(J||ke)(v.LFG(t.K0))},ke.\u0275prov=v.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Oe=(()=>{class ke extends Ne{constructor(J,oe){super(J),this._platform=oe,this._cursorStyleIsSet=!1,this._pointerDownListener=Ce=>{this._pointerDownEventTarget=(0,s.sA)(Ce)},this._clickListener=Ce=>{const Ue=(0,s.sA)(Ce),ht="click"===Ce.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ue;this._pointerDownEventTarget=null;const it=this._attachedOverlays.slice();for(let ft=it.length-1;ft>-1;ft--){const nt=it[ft];if(!(nt._outsidePointerEvents.observers.length<1)&&nt.hasAttached()){if(nt.overlayElement.contains(Ue)||nt.overlayElement.contains(ht))break;nt._outsidePointerEvents.next(Ce)}}}}add(J){if(super.add(J),!this._isAttached){const oe=this._document.body;oe.addEventListener("pointerdown",this._pointerDownListener,!0),oe.addEventListener("click",this._clickListener,!0),oe.addEventListener("auxclick",this._clickListener,!0),oe.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=oe.style.cursor,oe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const J=this._document.body;J.removeEventListener("pointerdown",this._pointerDownListener,!0),J.removeEventListener("click",this._clickListener,!0),J.removeEventListener("auxclick",this._clickListener,!0),J.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(J.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return ke.\u0275fac=function(J){return new(J||ke)(v.LFG(t.K0),v.LFG(s.t4))},ke.\u0275prov=v.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),B=0,Me=(()=>{class ke{constructor(J,oe,Ce,Ue,ht,it,ft,nt,st,wt,Bt){this.scrollStrategies=J,this._overlayContainer=oe,this._componentFactoryResolver=Ce,this._positionBuilder=Ue,this._keyboardDispatcher=ht,this._injector=it,this._ngZone=ft,this._document=nt,this._directionality=st,this._location=wt,this._outsideClickDispatcher=Bt}create(J){const oe=this._createHostElement(),Ce=this._createPaneElement(oe),Ue=this._createPortalOutlet(Ce),ht=new pe(J);return ht.direction=ht.direction||this._directionality.value,new _(Ue,oe,Ce,ht,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(J){const oe=this._document.createElement("div");return oe.id="cdk-overlay-"+B++,oe.classList.add("cdk-overlay-pane"),J.appendChild(oe),oe}_createHostElement(){const J=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(J),J}_createPortalOutlet(J){return this._appRef||(this._appRef=this._injector.get(v.z2F)),new c.u0(J,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return ke.\u0275fac=function(J){return new(J||ke)(v.LFG(re),v.LFG(D),v.LFG(v._Vd),v.LFG(xe),v.LFG(Be),v.LFG(v.zs3),v.LFG(v.R0b),v.LFG(t.K0),v.LFG(M.Is),v.LFG(t.Ye),v.LFG(Oe))},ke.\u0275prov=v.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const we=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ae=new v.OlP("cdk-connected-overlay-scroll-strategy");let We=(()=>{class ke{constructor(J){this.elementRef=J}}return ke.\u0275fac=function(J){return new(J||ke)(v.Y36(v.SBq))},ke.\u0275dir=v.lG2({type:ke,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ke})(),vt=(()=>{class ke{constructor(J,oe,Ce,Ue,ht){this._overlay=J,this._dir=ht,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=o.w0.EMPTY,this._attachSubscription=o.w0.EMPTY,this._detachSubscription=o.w0.EMPTY,this._positionSubscription=o.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new v.vpe,this.positionChange=new v.vpe,this.attach=new v.vpe,this.detach=new v.vpe,this.overlayKeydown=new v.vpe,this.overlayOutsideClick=new v.vpe,this._templatePortal=new c.UE(oe,Ce),this._scrollStrategyFactory=Ue,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(J){this._offsetX=J,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(J){this._offsetY=J,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(J){this._hasBackdrop=(0,C.Ig)(J)}get lockPosition(){return this._lockPosition}set lockPosition(J){this._lockPosition=(0,C.Ig)(J)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(J){this._flexibleDimensions=(0,C.Ig)(J)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(J){this._growAfterOpen=(0,C.Ig)(J)}get push(){return this._push}set push(J){this._push=(0,C.Ig)(J)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(J){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),J.origin&&this.open&&this._position.apply()),J.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=we);const J=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=J.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=J.detachments().subscribe(()=>this.detach.emit()),J.keydownEvents().subscribe(oe=>{this.overlayKeydown.next(oe),oe.keyCode===V.hY&&!this.disableClose&&!(0,V.Vb)(oe)&&(oe.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(oe=>{this.overlayOutsideClick.next(oe)})}_buildConfig(){const J=this._position=this.positionStrategy||this._createPositionStrategy(),oe=new pe({direction:this._dir,positionStrategy:J,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(oe.width=this.width),(this.height||0===this.height)&&(oe.height=this.height),(this.minWidth||0===this.minWidth)&&(oe.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(oe.minHeight=this.minHeight),this.backdropClass&&(oe.backdropClass=this.backdropClass),this.panelClass&&(oe.panelClass=this.panelClass),oe}_updatePositionStrategy(J){const oe=this.positions.map(Ce=>({originX:Ce.originX,originY:Ce.originY,overlayX:Ce.overlayX,overlayY:Ce.overlayY,offsetX:Ce.offsetX||this.offsetX,offsetY:Ce.offsetY||this.offsetY,panelClass:Ce.panelClass||void 0}));return J.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(oe).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const J=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(J),J}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof We?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(J=>{this.backdropClick.emit(J)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(ke,q=!1){return(0,O.e)((J,oe)=>{let Ce=0;J.subscribe(new A.Q(oe,Ue=>{const ht=ke(Ue,Ce++);(ht||q)&&oe.next(Ue),!ht&&oe.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(J=>{this.positionChange.emit(J),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return ke.\u0275fac=function(J){return new(J||ke)(v.Y36(Me),v.Y36(v.Rgc),v.Y36(v.s_b),v.Y36(ae),v.Y36(M.Is,8))},ke.\u0275dir=v.lG2({type:ke,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[v.TTD]}),ke})();const Ve={provide:ae,deps:[Me],useFactory:function(ke){return()=>ke.scrollStrategies.reposition()}};let he=(()=>{class ke{}return ke.\u0275fac=function(J){return new(J||ke)},ke.\u0275mod=v.oAB({type:ke}),ke.\u0275inj=v.cJS({providers:[Me,Ve],imports:[[M.vT,c.eL,e.Cl],e.Cl]}),ke})()},925:(Ze,K,m)=>{"use strict";m.d(K,{t4:()=>C,ud:()=>s,sA:()=>ee,ht:()=>$,kV:()=>j,Oy:()=>me,_i:()=>w,qK:()=>N,i$:()=>O,Mq:()=>k});var e=m(5e3),t=m(9808);let v;try{v="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ce){v=!1}let M,C=(()=>{class ce{constructor(te){this._platformId=te,this.isBrowser=this._platformId?(0,t.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!v)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return ce.\u0275fac=function(te){return new(te||ce)(e.LFG(e.Lbi))},ce.\u0275prov=e.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),s=(()=>{class ce{}return ce.\u0275fac=function(te){return new(te||ce)},ce.\u0275mod=e.oAB({type:ce}),ce.\u0275inj=e.cJS({}),ce})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function N(){if(M)return M;if("object"!=typeof document||!document)return M=new Set(c),M;let ce=document.createElement("input");return M=new Set(c.filter(le=>(ce.setAttribute("type",le),ce.type===le))),M}let o,A,E,V;function O(ce){return function(){if(null==o&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>o=!0}))}finally{o=o||!1}return o}()?ce:!!ce.capture}function k(){if(null==E){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return E=!1,E;if("scrollBehavior"in document.documentElement.style)E=!0;else{const ce=Element.prototype.scrollTo;E=!!ce&&!/\{\s*\[native code\]\s*\}/.test(ce.toString())}}return E}function w(){if("object"!=typeof document||!document)return 0;if(null==A){const ce=document.createElement("div"),le=ce.style;ce.dir="rtl",le.width="1px",le.overflow="auto",le.visibility="hidden",le.pointerEvents="none",le.position="absolute";const te=document.createElement("div"),re=te.style;re.width="2px",re.height="1px",ce.appendChild(te),document.body.appendChild(ce),A=0,0===ce.scrollLeft&&(ce.scrollLeft=1,A=0===ce.scrollLeft?1:2),ce.remove()}return A}function j(ce){if(function(){if(null==V){const ce="undefined"!=typeof document?document.head:null;V=!(!ce||!ce.createShadowRoot&&!ce.attachShadow)}return V}()){const le=ce.getRootNode?ce.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&le instanceof ShadowRoot)return le}return null}function $(){let ce="undefined"!=typeof document&&document?document.activeElement:null;for(;ce&&ce.shadowRoot;){const le=ce.shadowRoot.activeElement;if(le===ce)break;ce=le}return ce}function ee(ce){return ce.composedPath?ce.composedPath()[0]:ce.target}function me(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Ze,K,m)=>{"use strict";m.d(K,{en:()=>E,ig:()=>W,Pl:()=>$,C5:()=>L,u0:()=>w,eL:()=>me,UE:()=>O});var e=m(5e3),t=m(9808);class o{attach(te){return this._attachedHost=te,te.attach(this)}detach(){let te=this._attachedHost;null!=te&&(this._attachedHost=null,te.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(te){this._attachedHost=te}}class L extends o{constructor(te,re,pe,y){super(),this.component=te,this.viewContainerRef=re,this.injector=pe,this.componentFactoryResolver=y}}class O extends o{constructor(te,re,pe){super(),this.templateRef=te,this.viewContainerRef=re,this.context=pe}get origin(){return this.templateRef.elementRef}attach(te,re=this.context){return this.context=re,super.attach(te)}detach(){return this.context=void 0,super.detach()}}class A extends o{constructor(te){super(),this.element=te instanceof e.SBq?te.nativeElement:te}}class E{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(te){return te instanceof L?(this._attachedPortal=te,this.attachComponentPortal(te)):te instanceof O?(this._attachedPortal=te,this.attachTemplatePortal(te)):this.attachDomPortal&&te instanceof A?(this._attachedPortal=te,this.attachDomPortal(te)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(te){this._disposeFn=te}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class w extends E{constructor(te,re,pe,y,i){super(),this.outletElement=te,this._componentFactoryResolver=re,this._appRef=pe,this._defaultInjector=y,this.attachDomPortal=a=>{const p=a.element,u=this._document.createComment("dom-portal");p.parentNode.insertBefore(u,p),this.outletElement.appendChild(p),this._attachedPortal=a,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(p,u)})},this._document=i}attachComponentPortal(te){const pe=(te.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(te.component);let y;return te.viewContainerRef?(y=te.viewContainerRef.createComponent(pe,te.viewContainerRef.length,te.injector||te.viewContainerRef.injector),this.setDisposeFn(()=>y.destroy())):(y=pe.create(te.injector||this._defaultInjector),this._appRef.attachView(y.hostView),this.setDisposeFn(()=>{this._appRef.detachView(y.hostView),y.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(y)),this._attachedPortal=te,y}attachTemplatePortal(te){let re=te.viewContainerRef,pe=re.createEmbeddedView(te.templateRef,te.context);return pe.rootNodes.forEach(y=>this.outletElement.appendChild(y)),pe.detectChanges(),this.setDisposeFn(()=>{let y=re.indexOf(pe);-1!==y&&re.remove(y)}),this._attachedPortal=te,pe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(te){return te.hostView.rootNodes[0]}}let W=(()=>{class le extends O{constructor(re,pe){super(re,pe)}}return le.\u0275fac=function(re){return new(re||le)(e.Y36(e.Rgc),e.Y36(e.s_b))},le.\u0275dir=e.lG2({type:le,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),le})(),$=(()=>{class le extends E{constructor(re,pe,y){super(),this._componentFactoryResolver=re,this._viewContainerRef=pe,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=i=>{const a=i.element,p=this._document.createComment("dom-portal");i.setAttachedHost(this),a.parentNode.insertBefore(p,a),this._getRootNode().appendChild(a),this._attachedPortal=i,super.setDisposeFn(()=>{p.parentNode&&p.parentNode.replaceChild(a,p)})},this._document=y}get portal(){return this._attachedPortal}set portal(re){this.hasAttached()&&!re&&!this._isInitialized||(this.hasAttached()&&super.detach(),re&&super.attach(re),this._attachedPortal=re)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(re){re.setAttachedHost(this);const pe=null!=re.viewContainerRef?re.viewContainerRef:this._viewContainerRef,i=(re.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(re.component),a=pe.createComponent(i,pe.length,re.injector||pe.injector);return pe!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=re,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(re){re.setAttachedHost(this);const pe=this._viewContainerRef.createEmbeddedView(re.templateRef,re.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=re,this._attachedRef=pe,this.attached.emit(pe),pe}_getRootNode(){const re=this._viewContainerRef.element.nativeElement;return re.nodeType===re.ELEMENT_NODE?re:re.parentNode}}return le.\u0275fac=function(re){return new(re||le)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(t.K0))},le.\u0275dir=e.lG2({type:le,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),le})(),me=(()=>{class le{}return le.\u0275fac=function(re){return new(re||le)},le.\u0275mod=e.oAB({type:le}),le.\u0275inj=e.cJS({}),le})()},5303:(Ze,K,m)=>{"use strict";m.d(K,{PQ:()=>p,ZD:()=>Z,mF:()=>a,Cl:()=>P,rL:()=>_});var e=m(3191),t=m(5e3),v=m(4408),C=m(727);const s={schedule(U){let ye=requestAnimationFrame,xe=cancelAnimationFrame;const{delegate:Ne}=s;Ne&&(ye=Ne.requestAnimationFrame,xe=Ne.cancelAnimationFrame);const Be=ye(Oe=>{xe=void 0,U(Oe)});return new C.w0(()=>null==xe?void 0:xe(Be))},requestAnimationFrame(...U){const{delegate:ye}=s;return((null==ye?void 0:ye.requestAnimationFrame)||requestAnimationFrame)(...U)},cancelAnimationFrame(...U){const{delegate:ye}=s;return((null==ye?void 0:ye.cancelAnimationFrame)||cancelAnimationFrame)(...U)},delegate:void 0};var c=m(7565);new class extends c.v{flush(ye){this._active=!0,this._scheduled=void 0;const{actions:xe}=this;let Ne,Be=-1;ye=ye||xe.shift();const Oe=xe.length;do{if(Ne=ye.execute(ye.state,ye.delay))break}while(++Be<Oe&&(ye=xe.shift()));if(this._active=!1,Ne){for(;++Be<Oe&&(ye=xe.shift());)ye.unsubscribe();throw Ne}}}(class extends v.o{constructor(ye,xe){super(ye,xe),this.scheduler=ye,this.work=xe}requestAsyncId(ye,xe,Ne=0){return null!==Ne&&Ne>0?super.requestAsyncId(ye,xe,Ne):(ye.actions.push(this),ye._scheduled||(ye._scheduled=s.requestAnimationFrame(()=>ye.flush(void 0))))}recycleAsyncId(ye,xe,Ne=0){if(null!=Ne&&Ne>0||null==Ne&&this.delay>0)return super.recycleAsyncId(ye,xe,Ne);0===ye.actions.length&&(s.cancelAnimationFrame(xe),ye._scheduled=void 0)}});var O=m(7579),A=m(9646),E=m(8306),k=m(4968),V=(m(3101),m(3601)),W=m(9300),j=m(2722),$=m(9808),ee=m(925),me=m(226);let a=(()=>{class U{constructor(xe,Ne,Be){this._ngZone=xe,this._platform=Ne,this._scrolled=new O.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Be}register(xe){this.scrollContainers.has(xe)||this.scrollContainers.set(xe,xe.elementScrolled().subscribe(()=>this._scrolled.next(xe)))}deregister(xe){const Ne=this.scrollContainers.get(xe);Ne&&(Ne.unsubscribe(),this.scrollContainers.delete(xe))}scrolled(xe=20){return this._platform.isBrowser?new E.y(Ne=>{this._globalSubscription||this._addGlobalListener();const Be=xe>0?this._scrolled.pipe((0,V.e)(xe)).subscribe(Ne):this._scrolled.subscribe(Ne);return this._scrolledCount++,()=>{Be.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,A.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((xe,Ne)=>this.deregister(Ne)),this._scrolled.complete()}ancestorScrolled(xe,Ne){const Be=this.getAncestorScrollContainers(xe);return this.scrolled(Ne).pipe((0,W.h)(Oe=>!Oe||Be.indexOf(Oe)>-1))}getAncestorScrollContainers(xe){const Ne=[];return this.scrollContainers.forEach((Be,Oe)=>{this._scrollableContainsElement(Oe,xe)&&Ne.push(Oe)}),Ne}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(xe,Ne){let Be=(0,e.fI)(Ne),Oe=xe.getElementRef().nativeElement;do{if(Be==Oe)return!0}while(Be=Be.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const xe=this._getWindow();return(0,k.R)(xe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return U.\u0275fac=function(xe){return new(xe||U)(t.LFG(t.R0b),t.LFG(ee.t4),t.LFG($.K0,8))},U.\u0275prov=t.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),p=(()=>{class U{constructor(xe,Ne,Be,Oe){this.elementRef=xe,this.scrollDispatcher=Ne,this.ngZone=Be,this.dir=Oe,this._destroyed=new O.x,this._elementScrolled=new E.y(B=>this.ngZone.runOutsideAngular(()=>(0,k.R)(this.elementRef.nativeElement,"scroll").pipe((0,j.R)(this._destroyed)).subscribe(B)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(xe){const Ne=this.elementRef.nativeElement,Be=this.dir&&"rtl"==this.dir.value;null==xe.left&&(xe.left=Be?xe.end:xe.start),null==xe.right&&(xe.right=Be?xe.start:xe.end),null!=xe.bottom&&(xe.top=Ne.scrollHeight-Ne.clientHeight-xe.bottom),Be&&0!=(0,ee._i)()?(null!=xe.left&&(xe.right=Ne.scrollWidth-Ne.clientWidth-xe.left),2==(0,ee._i)()?xe.left=xe.right:1==(0,ee._i)()&&(xe.left=xe.right?-xe.right:xe.right)):null!=xe.right&&(xe.left=Ne.scrollWidth-Ne.clientWidth-xe.right),this._applyScrollToOptions(xe)}_applyScrollToOptions(xe){const Ne=this.elementRef.nativeElement;(0,ee.Mq)()?Ne.scrollTo(xe):(null!=xe.top&&(Ne.scrollTop=xe.top),null!=xe.left&&(Ne.scrollLeft=xe.left))}measureScrollOffset(xe){const Ne="left",Oe=this.elementRef.nativeElement;if("top"==xe)return Oe.scrollTop;if("bottom"==xe)return Oe.scrollHeight-Oe.clientHeight-Oe.scrollTop;const B=this.dir&&"rtl"==this.dir.value;return"start"==xe?xe=B?"right":Ne:"end"==xe&&(xe=B?Ne:"right"),B&&2==(0,ee._i)()?xe==Ne?Oe.scrollWidth-Oe.clientWidth-Oe.scrollLeft:Oe.scrollLeft:B&&1==(0,ee._i)()?xe==Ne?Oe.scrollLeft+Oe.scrollWidth-Oe.clientWidth:-Oe.scrollLeft:xe==Ne?Oe.scrollLeft:Oe.scrollWidth-Oe.clientWidth-Oe.scrollLeft}}return U.\u0275fac=function(xe){return new(xe||U)(t.Y36(t.SBq),t.Y36(a),t.Y36(t.R0b),t.Y36(me.Is,8))},U.\u0275dir=t.lG2({type:U,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),U})(),_=(()=>{class U{constructor(xe,Ne,Be){this._platform=xe,this._change=new O.x,this._changeListener=Oe=>{this._change.next(Oe)},this._document=Be,Ne.runOutsideAngular(()=>{if(xe.isBrowser){const Oe=this._getWindow();Oe.addEventListener("resize",this._changeListener),Oe.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const xe=this._getWindow();xe.removeEventListener("resize",this._changeListener),xe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const xe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),xe}getViewportRect(){const xe=this.getViewportScrollPosition(),{width:Ne,height:Be}=this.getViewportSize();return{top:xe.top,left:xe.left,bottom:xe.top+Be,right:xe.left+Ne,height:Be,width:Ne}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const xe=this._document,Ne=this._getWindow(),Be=xe.documentElement,Oe=Be.getBoundingClientRect();return{top:-Oe.top||xe.body.scrollTop||Ne.scrollY||Be.scrollTop||0,left:-Oe.left||xe.body.scrollLeft||Ne.scrollX||Be.scrollLeft||0}}change(xe=20){return xe>0?this._change.pipe((0,V.e)(xe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const xe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:xe.innerWidth,height:xe.innerHeight}:{width:0,height:0}}}return U.\u0275fac=function(xe){return new(xe||U)(t.LFG(ee.t4),t.LFG(t.R0b),t.LFG($.K0,8))},U.\u0275prov=t.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Z=(()=>{class U{}return U.\u0275fac=function(xe){return new(xe||U)},U.\u0275mod=t.oAB({type:U}),U.\u0275inj=t.cJS({}),U})(),P=(()=>{class U{}return U.\u0275fac=function(xe){return new(xe||U)},U.\u0275mod=t.oAB({type:U}),U.\u0275inj=t.cJS({imports:[[me.vT,ee.ud,Z],me.vT,Z]}),U})()},1555:(Ze,K,m)=>{"use strict";m.d(K,{be:()=>ee,KL:()=>k,u6:()=>w,B8:()=>me,U5:()=>te,st:()=>ce,po:()=>le,gx:()=>$});var e=m(5664),t=m(3191),v=m(1159),C=m(9808),s=m(5e3),M=m(925),c=m(7579),N=m(9646),o=m(8675),L=m(2722),O=m(226);function A(re,pe){1&re&&s.Hsn(0)}const E=["*"];let k=(()=>{class re{constructor(y){this._elementRef=y}focus(){this._elementRef.nativeElement.focus()}}return re.\u0275fac=function(y){return new(y||re)(s.Y36(s.SBq))},re.\u0275dir=s.lG2({type:re,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),re})(),w=(()=>{class re{constructor(y){this.template=y}}return re.\u0275fac=function(y){return new(y||re)(s.Y36(s.Rgc))},re.\u0275dir=s.lG2({type:re,selectors:[["","cdkStepLabel",""]]}),re})(),V=0;const $=new s.OlP("STEPPER_GLOBAL_OPTIONS");let ee=(()=>{class re{constructor(y,i){this._stepper=y,this.interacted=!1,this.interactedStream=new s.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(y){this._editable=(0,t.Ig)(y)}get optional(){return this._optional}set optional(y){this._optional=(0,t.Ig)(y)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(y){this._completedOverride=(0,t.Ig)(y)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(y){this._customError=(0,t.Ig)(y)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var y;return null!==(y=this._stepperOptions.showError)&&void 0!==y?y:null!=this._customError}}return re.\u0275fac=function(y){return new(y||re)(s.Y36((0,s.Gpc)(()=>me)),s.Y36($,8))},re.\u0275cmp=s.Xpm({type:re,selectors:[["cdk-step"]],contentQueries:function(y,i,a){if(1&y&&s.Suo(a,w,5),2&y){let p;s.iGM(p=s.CRH())&&(i.stepLabel=p.first)}},viewQuery:function(y,i){if(1&y&&s.Gf(s.Rgc,7),2&y){let a;s.iGM(a=s.CRH())&&(i.content=a.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[s.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(y,i){1&y&&(s.F$t(),s.YNc(0,A,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),re})(),me=(()=>{class re{constructor(y,i,a,p){this._dir=y,this._changeDetectorRef=i,this._elementRef=a,this._destroyed=new c.x,this.steps=new s.n_E,this._sortedHeaders=new s.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new s.vpe,this._orientation="horizontal",this._groupId=V++}get linear(){return this._linear}set linear(y){this._linear=(0,t.Ig)(y)}get selectedIndex(){return this._selectedIndex}set selectedIndex(y){var i;const a=(0,t.su)(y);this.steps&&this._steps?(this._isValidIndex(y),null===(i=this.selected)||void 0===i||i._markAsInteracted(),this._selectedIndex!==a&&!this._anyControlsInvalidOrPending(a)&&(a>=this._selectedIndex||this.steps.toArray()[a].editable)&&this._updateSelectedItemIndex(y)):this._selectedIndex=a}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(y){this.selectedIndex=y&&this.steps?this.steps.toArray().indexOf(y):-1}get orientation(){return this._orientation}set orientation(y){this._orientation=y,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===y)}ngAfterContentInit(){this._steps.changes.pipe((0,o.O)(this._steps),(0,L.R)(this._destroyed)).subscribe(y=>{this.steps.reset(y.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,o.O)(this._stepHeader),(0,L.R)(this._destroyed)).subscribe(y=>{this._sortedHeaders.reset(y.toArray().sort((i,a)=>i._elementRef.nativeElement.compareDocumentPosition(a._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new e.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,N.of)()).pipe((0,o.O)(this._layoutDirection()),(0,L.R)(this._destroyed)).subscribe(y=>this._keyManager.withHorizontalOrientation(y)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(y=>y.reset()),this._stateChanged()}_getStepLabelId(y){return`cdk-step-label-${this._groupId}-${y}`}_getStepContentId(y){return`cdk-step-content-${this._groupId}-${y}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(y){const i=y-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(y,i="number"){const a=this.steps.toArray()[y],p=this._isCurrentStep(y);return a._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(a,p):this._getGuidelineLogic(a,p,i)}_getDefaultIndicatorLogic(y,i){return y._showError()&&y.hasError&&!i?"error":!y.completed||i?"number":y.editable?"edit":"done"}_getGuidelineLogic(y,i,a="number"){return y._showError()&&y.hasError&&!i?"error":y.completed&&!i?"done":y.completed&&i?a:y.editable&&i?"edit":a}_isCurrentStep(y){return this._selectedIndex===y}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(y){const i=this.steps.toArray();this.selectionChange.emit({selectedIndex:y,previouslySelectedIndex:this._selectedIndex,selectedStep:i[y],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(y):this._keyManager.updateActiveItem(y),this._selectedIndex=y,this._stateChanged()}_onKeydown(y){const i=(0,v.Vb)(y),a=y.keyCode,p=this._keyManager;null==p.activeItemIndex||i||a!==v.L_&&a!==v.K5?p.onKeydown(y):(this.selectedIndex=p.activeItemIndex,y.preventDefault())}_anyControlsInvalidOrPending(y){return!!(this._linear&&y>=0)&&this.steps.toArray().slice(0,y).some(i=>{const a=i.stepControl;return(a?a.invalid||a.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const y=this._elementRef.nativeElement,i=(0,M.ht)();return y===i||y.contains(i)}_isValidIndex(y){return y>-1&&(!this.steps||y<this.steps.length)}}return re.\u0275fac=function(y){return new(y||re)(s.Y36(O.Is,8),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(C.K0))},re.\u0275dir=s.lG2({type:re,selectors:[["","cdkStepper",""]],contentQueries:function(y,i,a){if(1&y&&(s.Suo(a,ee,5),s.Suo(a,k,5)),2&y){let p;s.iGM(p=s.CRH())&&(i._steps=p),s.iGM(p=s.CRH())&&(i._stepHeader=p)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),re})(),ce=(()=>{class re{constructor(y){this._stepper=y,this.type="submit"}}return re.\u0275fac=function(y){return new(y||re)(s.Y36(me))},re.\u0275dir=s.lG2({type:re,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(y,i){1&y&&s.NdJ("click",function(){return i._stepper.next()}),2&y&&s.Ikx("type",i.type)},inputs:{type:"type"}}),re})(),le=(()=>{class re{constructor(y){this._stepper=y,this.type="button"}}return re.\u0275fac=function(y){return new(y||re)(s.Y36(me))},re.\u0275dir=s.lG2({type:re,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(y,i){1&y&&s.NdJ("click",function(){return i._stepper.previous()}),2&y&&s.Ikx("type",i.type)},inputs:{type:"type"}}),re})(),te=(()=>{class re{}return re.\u0275fac=function(y){return new(y||re)},re.\u0275mod=s.oAB({type:re}),re.\u0275inj=s.cJS({imports:[[O.vT]]}),re})()},8258:(Ze,K,m)=>{"use strict";m.d(K,{HI:()=>w,Xx:()=>i,_0:()=>te,nZ:()=>D,Hs:()=>re,rO:()=>j,cu:()=>V,XJ:()=>p,Ud:()=>u,VY:()=>k});var e=m(449),t=m(5191),v=m(7579),C=m(1135),s=m(9646),M=m(5698),c=m(9300),N=m(2722),o=m(5e3),L=m(3191),O=m(226);class k extends class{constructor(){this.expansionModel=new e.Ov(!0)}toggle(x){this.expansionModel.toggle(this._trackByValue(x))}expand(x){this.expansionModel.select(this._trackByValue(x))}collapse(x){this.expansionModel.deselect(this._trackByValue(x))}isExpanded(x){return this.expansionModel.isSelected(this._trackByValue(x))}toggleDescendants(x){this.expansionModel.isSelected(this._trackByValue(x))?this.collapseDescendants(x):this.expandDescendants(x)}collapseAll(){this.expansionModel.clear()}expandDescendants(x){let r=[x];r.push(...this.getDescendants(x)),this.expansionModel.select(...r.map(b=>this._trackByValue(b)))}collapseDescendants(x){let r=[x];r.push(...this.getDescendants(x)),this.expansionModel.deselect(...r.map(b=>this._trackByValue(b)))}_trackByValue(x){return this.trackBy?this.trackBy(x):x}}{constructor(x,r){super(),this.getChildren=x,this.options=r,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const x=this.dataNodes.reduce((r,b)=>[...r,...this.getDescendants(b),b],[]);this.expansionModel.select(...x.map(r=>this._trackByValue(r)))}getDescendants(x){const r=[];return this._getDescendants(r,x),r.splice(1)}_getDescendants(x,r){x.push(r);const b=this.getChildren(r);Array.isArray(b)?b.forEach(Z=>this._getDescendants(x,Z)):(0,t.b)(b)&&b.pipe((0,M.q)(1),(0,c.h)(Boolean)).subscribe(Z=>{for(const P of Z)this._getDescendants(x,P)})}}const w=new o.OlP("CDK_TREE_NODE_OUTLET_NODE");let V=(()=>{class I{constructor(r,b){this.viewContainer=r,this._node=b}}return I.\u0275fac=function(r){return new(r||I)(o.Y36(o.s_b),o.Y36(w,8))},I.\u0275dir=o.lG2({type:I,selectors:[["","cdkTreeNodeOutlet",""]]}),I})();class W{constructor(x){this.$implicit=x}}let j=(()=>{class I{constructor(r){this.template=r}}return I.\u0275fac=function(r){return new(r||I)(o.Y36(o.Rgc))},I.\u0275dir=o.lG2({type:I,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),I})(),te=(()=>{class I{constructor(r,b){this._differs=r,this._changeDetectorRef=b,this._onDestroy=new v.x,this._levels=new Map,this.viewChange=new C.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(r){this._dataSource!==r&&this._switchDataSource(r)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const r=this._nodeDefs.filter(b=>!b.when);this._defaultNodeDef=r[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(r){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),r||this._nodeOutlet.viewContainer.clear(),this._dataSource=r,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let r;(0,e.Z9)(this._dataSource)?r=this._dataSource.connect(this):(0,t.b)(this._dataSource)?r=this._dataSource:Array.isArray(this._dataSource)&&(r=(0,s.of)(this._dataSource)),r&&(this._dataSubscription=r.pipe((0,N.R)(this._onDestroy)).subscribe(b=>this.renderNodeChanges(b)))}renderNodeChanges(r,b=this._dataDiffer,Z=this._nodeOutlet.viewContainer,P){const U=b.diff(r);!U||(U.forEachOperation((ye,xe,Ne)=>{if(null==ye.previousIndex)this.insertNode(r[Ne],Ne,Z,P);else if(null==Ne)Z.remove(xe),this._levels.delete(ye.item);else{const Be=Z.get(xe);Z.move(Be,Ne)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(r,b){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(P=>P.when&&P.when(b,r))||this._defaultNodeDef}insertNode(r,b,Z,P){const U=this._getNodeDef(r,b),ye=new W(r);ye.level=this.treeControl.getLevel?this.treeControl.getLevel(r):void 0!==P&&this._levels.has(P)?this._levels.get(P)+1:0,this._levels.set(r,ye.level),(Z||this._nodeOutlet.viewContainer).createEmbeddedView(U.template,ye,b),re.mostRecentTreeNode&&(re.mostRecentTreeNode.data=r)}}return I.\u0275fac=function(r){return new(r||I)(o.Y36(o.ZZ4),o.Y36(o.sBO))},I.\u0275cmp=o.Xpm({type:I,selectors:[["cdk-tree"]],contentQueries:function(r,b,Z){if(1&r&&o.Suo(Z,j,5),2&r){let P;o.iGM(P=o.CRH())&&(b._nodeDefs=P)}},viewQuery:function(r,b){if(1&r&&o.Gf(V,7),2&r){let Z;o.iGM(Z=o.CRH())&&(b._nodeOutlet=Z.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(r,b){1&r&&o.GkF(0,0)},directives:[V],encapsulation:2}),I})(),re=(()=>{class I{constructor(r,b){this._elementRef=r,this._tree=b,this._destroyed=new v.x,this._dataChanges=new v.x,I.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(r){this._elementRef.nativeElement.setAttribute("role",r)}get data(){return this._data}set data(r){r!==this._data&&(this._data=r,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function(I){let x=I.parentElement;for(;x&&!y(x);)x=x.parentElement;return x?x.classList.contains("cdk-nested-tree-node")?(0,L.su)(x.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){I.mostRecentTreeNode===this&&(I.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return I.mostRecentTreeNode=null,I.\u0275fac=function(r){return new(r||I)(o.Y36(o.SBq),o.Y36(te))},I.\u0275dir=o.lG2({type:I,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(r,b){2&r&&o.uIk("aria-expanded",b.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),I})();function y(I){const x=I.classList;return!(!(null==x?void 0:x.contains("cdk-nested-tree-node"))&&!(null==x?void 0:x.contains("cdk-tree")))}let i=(()=>{class I extends re{constructor(r,b,Z){super(r,b),this._differs=Z}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const r=this._tree.treeControl.getChildren(this.data);Array.isArray(r)?this.updateChildrenNodes(r):(0,t.b)(r)&&r.pipe((0,N.R)(this._destroyed)).subscribe(b=>this.updateChildrenNodes(b)),this.nodeOutlet.changes.pipe((0,N.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(r){const b=this._getNodeOutlet();r&&(this._children=r),b&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,b.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const r=this._getNodeOutlet();r&&(r.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const r=this.nodeOutlet;return r&&r.find(b=>!b._node||b._node===this)}}return I.\u0275fac=function(r){return new(r||I)(o.Y36(o.SBq),o.Y36(te),o.Y36(o.ZZ4))},I.\u0275dir=o.lG2({type:I,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,b,Z){if(1&r&&o.Suo(Z,V,5),2&r){let P;o.iGM(P=o.CRH())&&(b.nodeOutlet=P)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[o._Bn([{provide:re,useExisting:I},{provide:w,useExisting:I}]),o.qOj]}),I})();const a=/([A-Za-z%]+)$/;let p=(()=>{class I{constructor(r,b,Z,P){this._treeNode=r,this._tree=b,this._element=Z,this._dir=P,this._destroyed=new v.x,this.indentUnits="px",this._indent=40,this._setPadding(),P&&P.change.pipe((0,N.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),r._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(r){this._setLevelInput(r)}get indent(){return this._indent}set indent(r){this._setIndentInput(r)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const r=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,b=null==this._level?r:this._level;return"number"==typeof b?`${b*this._indent}${this.indentUnits}`:null}_setPadding(r=!1){const b=this._paddingIndent();if(b!==this._currentPadding||r){const Z=this._element.nativeElement,P=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",U="paddingLeft"===P?"paddingRight":"paddingLeft";Z.style[P]=b||"",Z.style[U]="",this._currentPadding=b}}_setLevelInput(r){this._level=(0,L.su)(r,null),this._setPadding()}_setIndentInput(r){let b=r,Z="px";if("string"==typeof r){const P=r.split(a);b=P[0],Z=P[1]||Z}this.indentUnits=Z,this._indent=(0,L.su)(b),this._setPadding()}}return I.\u0275fac=function(r){return new(r||I)(o.Y36(re),o.Y36(te),o.Y36(o.SBq),o.Y36(O.Is,8))},I.\u0275dir=o.lG2({type:I,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),I})(),u=(()=>{class I{constructor(r,b){this._tree=r,this._treeNode=b,this._recursive=!1}get recursive(){return this._recursive}set recursive(r){this._recursive=(0,L.Ig)(r)}_toggle(r){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),r.stopPropagation()}}return I.\u0275fac=function(r){return new(r||I)(o.Y36(te),o.Y36(re))},I.\u0275dir=o.lG2({type:I,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,b){1&r&&o.NdJ("click",function(P){return b._toggle(P)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),I})(),D=(()=>{class I{}return I.\u0275fac=function(r){return new(r||I)},I.\u0275mod=o.oAB({type:I}),I.\u0275inj=o.cJS({}),I})()},9808:(Ze,K,m)=>{"use strict";m.d(K,{mr:()=>$,Ov:()=>zr,ez:()=>Na,K0:()=>c,uU:()=>ka,JJ:()=>Jr,Do:()=>me,Ts:()=>xr,Nd:()=>Kn,V_:()=>L,Ye:()=>ce,S$:()=>W,i8:()=>ts,mk:()=>Ki,sg:()=>gt,O5:()=>Ci,PC:()=>sn,RF:()=>On,n9:()=>pn,ED:()=>Nn,tP:()=>Sr,b0:()=>ee,lw:()=>N,OU:()=>Vr,rS:()=>ua,gd:()=>la,EM:()=>fa,JF:()=>Wa,NF:()=>na,PM:()=>Cr,w_:()=>M,bD:()=>hr,q:()=>v,Mx:()=>Ii,HT:()=>s});var e=m(5e3);let t=null;function v(){return t}function s(Xe){t||(t=Xe)}class M{}const c=new e.OlP("DocumentToken");let N=(()=>{class Xe{historyGo(Q){throw new Error("Not implemented")}}return Xe.\u0275fac=function(Q){return new(Q||Xe)},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return(0,e.LFG)(O)},providedIn:"platform"}),Xe})();const L=new e.OlP("Location Initialized");let O=(()=>{class Xe extends N{constructor(Q){super(),this._doc=Q,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v().getBaseHref(this._doc)}onPopState(Q){const ne=v().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("popstate",Q,!1),()=>ne.removeEventListener("popstate",Q)}onHashChange(Q){const ne=v().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("hashchange",Q,!1),()=>ne.removeEventListener("hashchange",Q)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(Q){this.location.pathname=Q}pushState(Q,ne,Qe){A()?this._history.pushState(Q,ne,Qe):this.location.hash=Qe}replaceState(Q,ne,Qe){A()?this._history.replaceState(Q,ne,Qe):this.location.hash=Qe}forward(){this._history.forward()}back(){this._history.back()}historyGo(Q=0){this._history.go(Q)}getState(){return this._history.state}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.LFG(c))},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return new O((0,e.LFG)(c))},providedIn:"platform"}),Xe})();function A(){return!!window.history.pushState}function k(Xe,_e){if(0==Xe.length)return _e;if(0==_e.length)return Xe;let Q=0;return Xe.endsWith("/")&&Q++,_e.startsWith("/")&&Q++,2==Q?Xe+_e.substring(1):1==Q?Xe+_e:Xe+"/"+_e}function w(Xe){const _e=Xe.match(/#|\?|$/),Q=_e&&_e.index||Xe.length;return Xe.slice(0,Q-("/"===Xe[Q-1]?1:0))+Xe.slice(Q)}function V(Xe){return Xe&&"?"!==Xe[0]?"?"+Xe:Xe}let W=(()=>{class Xe{historyGo(Q){throw new Error("Not implemented")}}return Xe.\u0275fac=function(Q){return new(Q||Xe)},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return function(Xe){const _e=(0,e.LFG)(c).location;return new ee((0,e.LFG)(N),_e&&_e.origin||"")}()},providedIn:"root"}),Xe})();const $=new e.OlP("appBaseHref");let ee=(()=>{class Xe extends W{constructor(Q,ne){if(super(),this._platformLocation=Q,this._removeListenerFns=[],null==ne&&(ne=this._platformLocation.getBaseHrefFromDOM()),null==ne)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=ne}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Q){this._removeListenerFns.push(this._platformLocation.onPopState(Q),this._platformLocation.onHashChange(Q))}getBaseHref(){return this._baseHref}prepareExternalUrl(Q){return k(this._baseHref,Q)}path(Q=!1){const ne=this._platformLocation.pathname+V(this._platformLocation.search),Qe=this._platformLocation.hash;return Qe&&Q?`${ne}${Qe}`:ne}pushState(Q,ne,Qe,Yt){const pi=this.prepareExternalUrl(Qe+V(Yt));this._platformLocation.pushState(Q,ne,pi)}replaceState(Q,ne,Qe,Yt){const pi=this.prepareExternalUrl(Qe+V(Yt));this._platformLocation.replaceState(Q,ne,pi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Q=0){var ne,Qe;null===(Qe=(ne=this._platformLocation).historyGo)||void 0===Qe||Qe.call(ne,Q)}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.LFG(N),e.LFG($,8))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),me=(()=>{class Xe extends W{constructor(Q,ne){super(),this._platformLocation=Q,this._baseHref="",this._removeListenerFns=[],null!=ne&&(this._baseHref=ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Q){this._removeListenerFns.push(this._platformLocation.onPopState(Q),this._platformLocation.onHashChange(Q))}getBaseHref(){return this._baseHref}path(Q=!1){let ne=this._platformLocation.hash;return null==ne&&(ne="#"),ne.length>0?ne.substring(1):ne}prepareExternalUrl(Q){const ne=k(this._baseHref,Q);return ne.length>0?"#"+ne:ne}pushState(Q,ne,Qe,Yt){let pi=this.prepareExternalUrl(Qe+V(Yt));0==pi.length&&(pi=this._platformLocation.pathname),this._platformLocation.pushState(Q,ne,pi)}replaceState(Q,ne,Qe,Yt){let pi=this.prepareExternalUrl(Qe+V(Yt));0==pi.length&&(pi=this._platformLocation.pathname),this._platformLocation.replaceState(Q,ne,pi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Q=0){var ne,Qe;null===(Qe=(ne=this._platformLocation).historyGo)||void 0===Qe||Qe.call(ne,Q)}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.LFG(N),e.LFG($,8))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),ce=(()=>{class Xe{constructor(Q,ne){this._subject=new e.vpe,this._urlChangeListeners=[],this._platformStrategy=Q;const Qe=this._platformStrategy.getBaseHref();this._platformLocation=ne,this._baseHref=w(re(Qe)),this._platformStrategy.onPopState(Yt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Yt.state,type:Yt.type})})}path(Q=!1){return this.normalize(this._platformStrategy.path(Q))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(Q,ne=""){return this.path()==this.normalize(Q+V(ne))}normalize(Q){return Xe.stripTrailingSlash(function(Xe,_e){return Xe&&_e.startsWith(Xe)?_e.substring(Xe.length):_e}(this._baseHref,re(Q)))}prepareExternalUrl(Q){return Q&&"/"!==Q[0]&&(Q="/"+Q),this._platformStrategy.prepareExternalUrl(Q)}go(Q,ne="",Qe=null){this._platformStrategy.pushState(Qe,"",Q,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(Q+V(ne)),Qe)}replaceState(Q,ne="",Qe=null){this._platformStrategy.replaceState(Qe,"",Q,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(Q+V(ne)),Qe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(Q=0){var ne,Qe;null===(Qe=(ne=this._platformStrategy).historyGo)||void 0===Qe||Qe.call(ne,Q)}onUrlChange(Q){this._urlChangeListeners.push(Q),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ne=>{this._notifyUrlChangeListeners(ne.url,ne.state)}))}_notifyUrlChangeListeners(Q="",ne){this._urlChangeListeners.forEach(Qe=>Qe(Q,ne))}subscribe(Q,ne,Qe){return this._subject.subscribe({next:Q,error:ne,complete:Qe})}}return Xe.normalizeQueryParams=V,Xe.joinWithSlash=k,Xe.stripTrailingSlash=w,Xe.\u0275fac=function(Q){return new(Q||Xe)(e.LFG(W),e.LFG(N))},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return new ce((0,e.LFG)(W),(0,e.LFG)(N))},providedIn:"root"}),Xe})();function re(Xe){return Xe.replace(/\/index.html$/,"")}var y=(()=>((y=y||{})[y.Decimal=0]="Decimal",y[y.Percent=1]="Percent",y[y.Currency=2]="Currency",y[y.Scientific=3]="Scientific",y))(),i=(()=>((i=i||{})[i.Zero=0]="Zero",i[i.One=1]="One",i[i.Two=2]="Two",i[i.Few=3]="Few",i[i.Many=4]="Many",i[i.Other=5]="Other",i))(),a=(()=>((a=a||{})[a.Format=0]="Format",a[a.Standalone=1]="Standalone",a))(),p=(()=>((p=p||{})[p.Narrow=0]="Narrow",p[p.Abbreviated=1]="Abbreviated",p[p.Wide=2]="Wide",p[p.Short=3]="Short",p))(),u=(()=>((u=u||{})[u.Short=0]="Short",u[u.Medium=1]="Medium",u[u.Long=2]="Long",u[u.Full=3]="Full",u))(),_=(()=>((_=_||{})[_.Decimal=0]="Decimal",_[_.Group=1]="Group",_[_.List=2]="List",_[_.PercentSign=3]="PercentSign",_[_.PlusSign=4]="PlusSign",_[_.MinusSign=5]="MinusSign",_[_.Exponential=6]="Exponential",_[_.SuperscriptingExponent=7]="SuperscriptingExponent",_[_.PerMille=8]="PerMille",_[_.Infinity=9]="Infinity",_[_.NaN=10]="NaN",_[_.TimeSeparator=11]="TimeSeparator",_[_.CurrencyDecimal=12]="CurrencyDecimal",_[_.CurrencyGroup=13]="CurrencyGroup",_))();function ye(Xe,_e){return Ee((0,e.cg1)(Xe)[e.wAp.DateFormat],_e)}function xe(Xe,_e){return Ee((0,e.cg1)(Xe)[e.wAp.TimeFormat],_e)}function Ne(Xe,_e){return Ee((0,e.cg1)(Xe)[e.wAp.DateTimeFormat],_e)}function Be(Xe,_e){const Q=(0,e.cg1)(Xe),ne=Q[e.wAp.NumberSymbols][_e];if(void 0===ne){if(_e===_.CurrencyDecimal)return Q[e.wAp.NumberSymbols][_.Decimal];if(_e===_.CurrencyGroup)return Q[e.wAp.NumberSymbols][_.Group]}return ne}const We=e.kL8;function vt(Xe){if(!Xe[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Xe[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ee(Xe,_e){for(let Q=_e;Q>-1;Q--)if(void 0!==Xe[Q])return Xe[Q];throw new Error("Locale data API: locale data undefined")}function ke(Xe){const[_e,Q]=Xe.split(":");return{hours:+_e,minutes:+Q}}const Ce=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ue={},ht=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var it=(()=>((it=it||{})[it.Short=0]="Short",it[it.ShortGMT=1]="ShortGMT",it[it.Long=2]="Long",it[it.Extended=3]="Extended",it))(),ft=(()=>((ft=ft||{})[ft.FullYear=0]="FullYear",ft[ft.Month=1]="Month",ft[ft.Date=2]="Date",ft[ft.Hours=3]="Hours",ft[ft.Minutes=4]="Minutes",ft[ft.Seconds=5]="Seconds",ft[ft.FractionalSeconds=6]="FractionalSeconds",ft[ft.Day=7]="Day",ft))(),nt=(()=>((nt=nt||{})[nt.DayPeriods=0]="DayPeriods",nt[nt.Days=1]="Days",nt[nt.Months=2]="Months",nt[nt.Eras=3]="Eras",nt))();function st(Xe,_e,Q,ne){let Qe=function(Xe){if(ot(Xe))return Xe;if("number"==typeof Xe&&!isNaN(Xe))return new Date(Xe);if("string"==typeof Xe){if(Xe=Xe.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Xe)){const[Qe,Yt=1,pi=1]=Xe.split("-").map(xt=>+xt);return wt(Qe,Yt-1,pi)}const Q=parseFloat(Xe);if(!isNaN(Xe-Q))return new Date(Q);let ne;if(ne=Xe.match(Ce))return function(Xe){const _e=new Date(0);let Q=0,ne=0;const Qe=Xe[8]?_e.setUTCFullYear:_e.setFullYear,Yt=Xe[8]?_e.setUTCHours:_e.setHours;Xe[9]&&(Q=Number(Xe[9]+Xe[10]),ne=Number(Xe[9]+Xe[11])),Qe.call(_e,Number(Xe[1]),Number(Xe[2])-1,Number(Xe[3]));const pi=Number(Xe[4]||0)-Q,xt=Number(Xe[5]||0)-ne,ei=Number(Xe[6]||0),yt=Math.floor(1e3*parseFloat("0."+(Xe[7]||0)));return Yt.call(_e,pi,xt,ei,yt),_e}(ne)}const _e=new Date(Xe);if(!ot(_e))throw new Error(`Unable to convert "${Xe}" into a date`);return _e}(Xe);_e=Bt(Q,_e)||_e;let xt,pi=[];for(;_e;){if(xt=ht.exec(_e),!xt){pi.push(_e);break}{pi=pi.concat(xt.slice(1));const Wt=pi.pop();if(!Wt)break;_e=Wt}}let ei=Qe.getTimezoneOffset();ne&&(ei=Xt(ne,ei),Qe=function(Xe,_e,Q){const Qe=Xe.getTimezoneOffset();return function(Xe,_e){return(Xe=new Date(Xe.getTime())).setMinutes(Xe.getMinutes()+_e),Xe}(Xe,-1*(Xt(_e,Qe)-Qe))}(Qe,ne));let yt="";return pi.forEach(Wt=>{const xi=function(Xe){if($t[Xe])return $t[Xe];let _e;switch(Xe){case"G":case"GG":case"GGG":_e=Pi(nt.Eras,p.Abbreviated);break;case"GGGG":_e=Pi(nt.Eras,p.Wide);break;case"GGGGG":_e=Pi(nt.Eras,p.Narrow);break;case"y":_e=jt(ft.FullYear,1,0,!1,!0);break;case"yy":_e=jt(ft.FullYear,2,0,!0,!0);break;case"yyy":_e=jt(ft.FullYear,3,0,!1,!0);break;case"yyyy":_e=jt(ft.FullYear,4,0,!1,!0);break;case"Y":_e=et(1);break;case"YY":_e=et(2,!0);break;case"YYY":_e=et(3);break;case"YYYY":_e=et(4);break;case"M":case"L":_e=jt(ft.Month,1,1);break;case"MM":case"LL":_e=jt(ft.Month,2,1);break;case"MMM":_e=Pi(nt.Months,p.Abbreviated);break;case"MMMM":_e=Pi(nt.Months,p.Wide);break;case"MMMMM":_e=Pi(nt.Months,p.Narrow);break;case"LLL":_e=Pi(nt.Months,p.Abbreviated,a.Standalone);break;case"LLLL":_e=Pi(nt.Months,p.Wide,a.Standalone);break;case"LLLLL":_e=Pi(nt.Months,p.Narrow,a.Standalone);break;case"w":_e=Ae(1);break;case"ww":_e=Ae(2);break;case"W":_e=Ae(1,!0);break;case"d":_e=jt(ft.Date,1);break;case"dd":_e=jt(ft.Date,2);break;case"c":case"cc":_e=jt(ft.Day,1);break;case"ccc":_e=Pi(nt.Days,p.Abbreviated,a.Standalone);break;case"cccc":_e=Pi(nt.Days,p.Wide,a.Standalone);break;case"ccccc":_e=Pi(nt.Days,p.Narrow,a.Standalone);break;case"cccccc":_e=Pi(nt.Days,p.Short,a.Standalone);break;case"E":case"EE":case"EEE":_e=Pi(nt.Days,p.Abbreviated);break;case"EEEE":_e=Pi(nt.Days,p.Wide);break;case"EEEEE":_e=Pi(nt.Days,p.Narrow);break;case"EEEEEE":_e=Pi(nt.Days,p.Short);break;case"a":case"aa":case"aaa":_e=Pi(nt.DayPeriods,p.Abbreviated);break;case"aaaa":_e=Pi(nt.DayPeriods,p.Wide);break;case"aaaaa":_e=Pi(nt.DayPeriods,p.Narrow);break;case"b":case"bb":case"bbb":_e=Pi(nt.DayPeriods,p.Abbreviated,a.Standalone,!0);break;case"bbbb":_e=Pi(nt.DayPeriods,p.Wide,a.Standalone,!0);break;case"bbbbb":_e=Pi(nt.DayPeriods,p.Narrow,a.Standalone,!0);break;case"B":case"BB":case"BBB":_e=Pi(nt.DayPeriods,p.Abbreviated,a.Format,!0);break;case"BBBB":_e=Pi(nt.DayPeriods,p.Wide,a.Format,!0);break;case"BBBBB":_e=Pi(nt.DayPeriods,p.Narrow,a.Format,!0);break;case"h":_e=jt(ft.Hours,1,-12);break;case"hh":_e=jt(ft.Hours,2,-12);break;case"H":_e=jt(ft.Hours,1);break;case"HH":_e=jt(ft.Hours,2);break;case"m":_e=jt(ft.Minutes,1);break;case"mm":_e=jt(ft.Minutes,2);break;case"s":_e=jt(ft.Seconds,1);break;case"ss":_e=jt(ft.Seconds,2);break;case"S":_e=jt(ft.FractionalSeconds,1);break;case"SS":_e=jt(ft.FractionalSeconds,2);break;case"SSS":_e=jt(ft.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":_e=di(it.Short);break;case"ZZZZZ":_e=di(it.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":_e=di(it.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":_e=di(it.Long);break;default:return null}return $t[Xe]=_e,_e}(Wt);yt+=xi?xi(Qe,Q,ei):"''"===Wt?"'":Wt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),yt}function wt(Xe,_e,Q){const ne=new Date(0);return ne.setFullYear(Xe,_e,Q),ne.setHours(0,0,0),ne}function Bt(Xe,_e){const Q=function(Xe){return(0,e.cg1)(Xe)[e.wAp.LocaleId]}(Xe);if(Ue[Q]=Ue[Q]||{},Ue[Q][_e])return Ue[Q][_e];let ne="";switch(_e){case"shortDate":ne=ye(Xe,u.Short);break;case"mediumDate":ne=ye(Xe,u.Medium);break;case"longDate":ne=ye(Xe,u.Long);break;case"fullDate":ne=ye(Xe,u.Full);break;case"shortTime":ne=xe(Xe,u.Short);break;case"mediumTime":ne=xe(Xe,u.Medium);break;case"longTime":ne=xe(Xe,u.Long);break;case"fullTime":ne=xe(Xe,u.Full);break;case"short":const Qe=Bt(Xe,"shortTime"),Yt=Bt(Xe,"shortDate");ne=Pt(Ne(Xe,u.Short),[Qe,Yt]);break;case"medium":const pi=Bt(Xe,"mediumTime"),xt=Bt(Xe,"mediumDate");ne=Pt(Ne(Xe,u.Medium),[pi,xt]);break;case"long":const ei=Bt(Xe,"longTime"),yt=Bt(Xe,"longDate");ne=Pt(Ne(Xe,u.Long),[ei,yt]);break;case"full":const Wt=Bt(Xe,"fullTime"),xi=Bt(Xe,"fullDate");ne=Pt(Ne(Xe,u.Full),[Wt,xi])}return ne&&(Ue[Q][_e]=ne),ne}function Pt(Xe,_e){return _e&&(Xe=Xe.replace(/\{([^}]+)}/g,function(Q,ne){return null!=_e&&ne in _e?_e[ne]:Q})),Xe}function Vt(Xe,_e,Q="-",ne,Qe){let Yt="";(Xe<0||Qe&&Xe<=0)&&(Qe?Xe=1-Xe:(Xe=-Xe,Yt=Q));let pi=String(Xe);for(;pi.length<_e;)pi="0"+pi;return ne&&(pi=pi.substr(pi.length-_e)),Yt+pi}function jt(Xe,_e,Q=0,ne=!1,Qe=!1){return function(Yt,pi){let xt=function(Xe,_e){switch(Xe){case ft.FullYear:return _e.getFullYear();case ft.Month:return _e.getMonth();case ft.Date:return _e.getDate();case ft.Hours:return _e.getHours();case ft.Minutes:return _e.getMinutes();case ft.Seconds:return _e.getSeconds();case ft.FractionalSeconds:return _e.getMilliseconds();case ft.Day:return _e.getDay();default:throw new Error(`Unknown DateType value "${Xe}".`)}}(Xe,Yt);if((Q>0||xt>-Q)&&(xt+=Q),Xe===ft.Hours)0===xt&&-12===Q&&(xt=12);else if(Xe===ft.FractionalSeconds)return function(Xe,_e){return Vt(Xe,3).substr(0,_e)}(xt,_e);const ei=Be(pi,_.MinusSign);return Vt(xt,_e,ei,ne,Qe)}}function Pi(Xe,_e,Q=a.Format,ne=!1){return function(Qe,Yt){return function(Xe,_e,Q,ne,Qe,Yt){switch(Q){case nt.Months:return function(Xe,_e,Q){const ne=(0,e.cg1)(Xe),Yt=Ee([ne[e.wAp.MonthsFormat],ne[e.wAp.MonthsStandalone]],_e);return Ee(Yt,Q)}(_e,Qe,ne)[Xe.getMonth()];case nt.Days:return function(Xe,_e,Q){const ne=(0,e.cg1)(Xe),Yt=Ee([ne[e.wAp.DaysFormat],ne[e.wAp.DaysStandalone]],_e);return Ee(Yt,Q)}(_e,Qe,ne)[Xe.getDay()];case nt.DayPeriods:const pi=Xe.getHours(),xt=Xe.getMinutes();if(Yt){const yt=function(Xe){const _e=(0,e.cg1)(Xe);return vt(_e),(_e[e.wAp.ExtraData][2]||[]).map(ne=>"string"==typeof ne?ke(ne):[ke(ne[0]),ke(ne[1])])}(_e),Wt=function(Xe,_e,Q){const ne=(0,e.cg1)(Xe);vt(ne);const Yt=Ee([ne[e.wAp.ExtraData][0],ne[e.wAp.ExtraData][1]],_e)||[];return Ee(Yt,Q)||[]}(_e,Qe,ne),xi=yt.findIndex(zi=>{if(Array.isArray(zi)){const[vn,wn]=zi,Qi=pi>=vn.hours&&xt>=vn.minutes,pr=pi<wn.hours||pi===wn.hours&&xt<wn.minutes;if(vn.hours<wn.hours){if(Qi&&pr)return!0}else if(Qi||pr)return!0}else if(zi.hours===pi&&zi.minutes===xt)return!0;return!1});if(-1!==xi)return Wt[xi]}return function(Xe,_e,Q){const ne=(0,e.cg1)(Xe),Yt=Ee([ne[e.wAp.DayPeriodsFormat],ne[e.wAp.DayPeriodsStandalone]],_e);return Ee(Yt,Q)}(_e,Qe,ne)[pi<12?0:1];case nt.Eras:return function(Xe,_e){return Ee((0,e.cg1)(Xe)[e.wAp.Eras],_e)}(_e,ne)[Xe.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${Q}`)}}(Qe,Yt,Xe,_e,Q,ne)}}function di(Xe){return function(_e,Q,ne){const Qe=-1*ne,Yt=Be(Q,_.MinusSign),pi=Qe>0?Math.floor(Qe/60):Math.ceil(Qe/60);switch(Xe){case it.Short:return(Qe>=0?"+":"")+Vt(pi,2,Yt)+Vt(Math.abs(Qe%60),2,Yt);case it.ShortGMT:return"GMT"+(Qe>=0?"+":"")+Vt(pi,1,Yt);case it.Long:return"GMT"+(Qe>=0?"+":"")+Vt(pi,2,Yt)+":"+Vt(Math.abs(Qe%60),2,Yt);case it.Extended:return 0===ne?"Z":(Qe>=0?"+":"")+Vt(pi,2,Yt)+":"+Vt(Math.abs(Qe%60),2,Yt);default:throw new Error(`Unknown zone width "${Xe}"`)}}}function ge(Xe){return wt(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()+(4-Xe.getDay()))}function Ae(Xe,_e=!1){return function(Q,ne){let Qe;if(_e){const Yt=new Date(Q.getFullYear(),Q.getMonth(),1).getDay()-1,pi=Q.getDate();Qe=1+Math.floor((pi+Yt)/7)}else{const Yt=ge(Q),pi=function(Xe){const _e=wt(Xe,0,1).getDay();return wt(Xe,0,1+(_e<=4?4:11)-_e)}(Yt.getFullYear()),xt=Yt.getTime()-pi.getTime();Qe=1+Math.round(xt/6048e5)}return Vt(Qe,Xe,Be(ne,_.MinusSign))}}function et(Xe,_e=!1){return function(Q,ne){return Vt(ge(Q).getFullYear(),Xe,Be(ne,_.MinusSign),_e)}}const $t={};function Xt(Xe,_e){Xe=Xe.replace(/:/g,"");const Q=Date.parse("Jan 01, 1970 00:00:00 "+Xe)/6e4;return isNaN(Q)?_e:Q}function ot(Xe){return Xe instanceof Date&&!isNaN(Xe.valueOf())}const At=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function $e(Xe){const _e=parseInt(Xe);if(isNaN(_e))throw new Error("Invalid integer literal when parsing "+Xe);return _e}class St{}let yi=(()=>{class Xe extends St{constructor(Q){super(),this.locale=Q}getPluralCategory(Q,ne){switch(We(ne||this.locale)(Q)){case i.Zero:return"zero";case i.One:return"one";case i.Two:return"two";case i.Few:return"few";case i.Many:return"many";default:return"other"}}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.LFG(e.soG))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();function Ii(Xe,_e){_e=encodeURIComponent(_e);for(const Q of Xe.split(";")){const ne=Q.indexOf("="),[Qe,Yt]=-1==ne?[Q,""]:[Q.slice(0,ne),Q.slice(ne+1)];if(Qe.trim()===_e)return decodeURIComponent(Yt)}return null}let Ki=(()=>{class Xe{constructor(Q,ne,Qe,Yt){this._iterableDiffers=Q,this._keyValueDiffers=ne,this._ngEl=Qe,this._renderer=Yt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Q){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Q?Q.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Q){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Q?Q.split(/\s+/):Q,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Q=this._iterableDiffer.diff(this._rawClass);Q&&this._applyIterableChanges(Q)}else if(this._keyValueDiffer){const Q=this._keyValueDiffer.diff(this._rawClass);Q&&this._applyKeyValueChanges(Q)}}_applyKeyValueChanges(Q){Q.forEachAddedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),Q.forEachChangedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),Q.forEachRemovedItem(ne=>{ne.previousValue&&this._toggleClass(ne.key,!1)})}_applyIterableChanges(Q){Q.forEachAddedItem(ne=>{if("string"!=typeof ne.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(ne.item)}`);this._toggleClass(ne.item,!0)}),Q.forEachRemovedItem(ne=>this._toggleClass(ne.item,!1))}_applyClasses(Q){Q&&(Array.isArray(Q)||Q instanceof Set?Q.forEach(ne=>this._toggleClass(ne,!0)):Object.keys(Q).forEach(ne=>this._toggleClass(ne,!!Q[ne])))}_removeClasses(Q){Q&&(Array.isArray(Q)||Q instanceof Set?Q.forEach(ne=>this._toggleClass(ne,!1)):Object.keys(Q).forEach(ne=>this._toggleClass(ne,!1)))}_toggleClass(Q,ne){(Q=Q.trim())&&Q.split(/\s+/g).forEach(Qe=>{ne?this._renderer.addClass(this._ngEl.nativeElement,Qe):this._renderer.removeClass(this._ngEl.nativeElement,Qe)})}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Xe})();class Qt{constructor(_e,Q,ne,Qe){this.$implicit=_e,this.ngForOf=Q,this.index=ne,this.count=Qe}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let gt=(()=>{class Xe{constructor(Q,ne,Qe){this._viewContainer=Q,this._template=ne,this._differs=Qe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Q){this._ngForOf=Q,this._ngForOfDirty=!0}set ngForTrackBy(Q){this._trackByFn=Q}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Q){Q&&(this._template=Q)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Q=this._ngForOf;if(!this._differ&&Q)try{this._differ=this._differs.find(Q).create(this.ngForTrackBy)}catch(ne){throw new Error(`Cannot find a differ supporting object '${Q}' of type '${function(Xe){return Xe.name||typeof Xe}(Q)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const Q=this._differ.diff(this._ngForOf);Q&&this._applyChanges(Q)}}_applyChanges(Q){const ne=[];Q.forEachOperation((Qe,Yt,pi)=>{if(null==Qe.previousIndex){const xt=this._viewContainer.createEmbeddedView(this._template,new Qt(null,this._ngForOf,-1,-1),null===pi?void 0:pi),ei=new Lt(Qe,xt);ne.push(ei)}else if(null==pi)this._viewContainer.remove(null===Yt?void 0:Yt);else if(null!==Yt){const xt=this._viewContainer.get(Yt);this._viewContainer.move(xt,pi);const ei=new Lt(Qe,xt);ne.push(ei)}});for(let Qe=0;Qe<ne.length;Qe++)this._perViewChange(ne[Qe].view,ne[Qe].record);for(let Qe=0,Yt=this._viewContainer.length;Qe<Yt;Qe++){const pi=this._viewContainer.get(Qe);pi.context.index=Qe,pi.context.count=Yt,pi.context.ngForOf=this._ngForOf}Q.forEachIdentityChange(Qe=>{this._viewContainer.get(Qe.currentIndex).context.$implicit=Qe.item})}_perViewChange(Q,ne){Q.context.$implicit=ne.item}static ngTemplateContextGuard(Q,ne){return!0}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),Xe})();class Lt{constructor(_e,Q){this.record=_e,this.view=Q}}let Ci=(()=>{class Xe{constructor(Q,ne){this._viewContainer=Q,this._context=new Wi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ne}set ngIf(Q){this._context.$implicit=this._context.ngIf=Q,this._updateView()}set ngIfThen(Q){$i("ngIfThen",Q),this._thenTemplateRef=Q,this._thenViewRef=null,this._updateView()}set ngIfElse(Q){$i("ngIfElse",Q),this._elseTemplateRef=Q,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Q,ne){return!0}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),Xe})();class Wi{constructor(){this.$implicit=null,this.ngIf=null}}function $i(Xe,_e){if(_e&&!_e.createEmbeddedView)throw new Error(`${Xe} must be a TemplateRef, but received '${(0,e.AaK)(_e)}'.`)}class An{constructor(_e,Q){this._viewContainerRef=_e,this._templateRef=Q,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(_e){_e&&!this._created?this.create():!_e&&this._created&&this.destroy()}}let On=(()=>{class Xe{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Q){this._ngSwitch=Q,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Q){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Q)}_matchCase(Q){const ne=Q==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ne}_updateDefaultCases(Q){if(this._defaultViews&&Q!==this._defaultUsed){this._defaultUsed=Q;for(let ne=0;ne<this._defaultViews.length;ne++)this._defaultViews[ne].enforceState(Q)}}}return Xe.\u0275fac=function(Q){return new(Q||Xe)},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),Xe})(),pn=(()=>{class Xe{constructor(Q,ne,Qe){this.ngSwitch=Qe,Qe._addCase(),this._view=new An(Q,ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(On,9))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),Xe})(),Nn=(()=>{class Xe{constructor(Q,ne,Qe){Qe._addDefault(new An(Q,ne))}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(On,9))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngSwitchDefault",""]]}),Xe})(),sn=(()=>{class Xe{constructor(Q,ne,Qe){this._ngEl=Q,this._differs=ne,this._renderer=Qe,this._ngStyle=null,this._differ=null}set ngStyle(Q){this._ngStyle=Q,!this._differ&&Q&&(this._differ=this._differs.find(Q).create())}ngDoCheck(){if(this._differ){const Q=this._differ.diff(this._ngStyle);Q&&this._applyChanges(Q)}}_setStyle(Q,ne){const[Qe,Yt]=Q.split(".");null!=(ne=null!=ne&&Yt?`${ne}${Yt}`:ne)?this._renderer.setStyle(this._ngEl.nativeElement,Qe,ne):this._renderer.removeStyle(this._ngEl.nativeElement,Qe)}_applyChanges(Q){Q.forEachRemovedItem(ne=>this._setStyle(ne.key,null)),Q.forEachAddedItem(ne=>this._setStyle(ne.key,ne.currentValue)),Q.forEachChangedItem(ne=>this._setStyle(ne.key,ne.currentValue))}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),Xe})(),Sr=(()=>{class Xe{constructor(Q){this._viewContainerRef=Q,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(Q){if(Q.ngTemplateOutlet){const ne=this._viewContainerRef;this._viewRef&&ne.remove(ne.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ne.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&Q.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.Y36(e.s_b))},Xe.\u0275dir=e.lG2({type:Xe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[e.TTD]}),Xe})();function qn(Xe,_e){return Error(`InvalidPipeArgument: '${_e}' for pipe '${(0,e.AaK)(Xe)}'`)}class Rr{createSubscription(_e,Q){return _e.subscribe({next:Q,error:ne=>{throw ne}})}dispose(_e){_e.unsubscribe()}onDestroy(_e){_e.unsubscribe()}}class ba{createSubscription(_e,Q){return _e.then(Q,ne=>{throw ne})}dispose(_e){}onDestroy(_e){}}const xa=new ba,Za=new Rr;let zr=(()=>{class Xe{constructor(Q){this._ref=Q,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(Q){return this._obj?Q!==this._obj?(this._dispose(),this.transform(Q)):this._latestValue:(Q&&this._subscribe(Q),this._latestValue)}_subscribe(Q){this._obj=Q,this._strategy=this._selectStrategy(Q),this._subscription=this._strategy.createSubscription(Q,ne=>this._updateLatestValue(Q,ne))}_selectStrategy(Q){if((0,e.QGY)(Q))return xa;if((0,e.F4k)(Q))return Za;throw qn(Xe,Q)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Q,ne){Q===this._obj&&(this._latestValue=ne,this._ref.markForCheck())}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.Y36(e.sBO,16))},Xe.\u0275pipe=e.Yjl({name:"async",type:Xe,pure:!1}),Xe})(),ts=(()=>{class Xe{transform(Q){if(null==Q)return null;if("string"!=typeof Q)throw qn(Xe,Q);return Q.toLowerCase()}}return Xe.\u0275fac=function(Q){return new(Q||Xe)},Xe.\u0275pipe=e.Yjl({name:"lowercase",type:Xe,pure:!0}),Xe})();const rr=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let ua=(()=>{class Xe{transform(Q){if(null==Q)return null;if("string"!=typeof Q)throw qn(Xe,Q);return Q.replace(rr,ne=>ne[0].toUpperCase()+ne.substr(1).toLowerCase())}}return Xe.\u0275fac=function(Q){return new(Q||Xe)},Xe.\u0275pipe=e.Yjl({name:"titlecase",type:Xe,pure:!0}),Xe})(),la=(()=>{class Xe{transform(Q){if(null==Q)return null;if("string"!=typeof Q)throw qn(Xe,Q);return Q.toUpperCase()}}return Xe.\u0275fac=function(Q){return new(Q||Xe)},Xe.\u0275pipe=e.Yjl({name:"uppercase",type:Xe,pure:!0}),Xe})();const Ur=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let ka=(()=>{class Xe{constructor(Q,ne){this.locale=Q,this.defaultTimezone=ne}transform(Q,ne="mediumDate",Qe,Yt){var pi;if(null==Q||""===Q||Q!=Q)return null;try{return st(Q,ne,Yt||this.locale,null!==(pi=null!=Qe?Qe:this.defaultTimezone)&&void 0!==pi?pi:void 0)}catch(xt){throw qn(Xe,xt.message)}}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.Y36(e.soG,16),e.Y36(Ur,24))},Xe.\u0275pipe=e.Yjl({name:"date",type:Xe,pure:!0}),Xe})(),xr=(()=>{class Xe{transform(Q){return JSON.stringify(Q,null,2)}}return Xe.\u0275fac=function(Q){return new(Q||Xe)},Xe.\u0275pipe=e.Yjl({name:"json",type:Xe,pure:!1}),Xe})(),Kn=(()=>{class Xe{constructor(Q){this.differs=Q,this.keyValues=[],this.compareFn=Dr}transform(Q,ne=Dr){if(!Q||!(Q instanceof Map)&&"object"!=typeof Q)return null;this.differ||(this.differ=this.differs.find(Q).create());const Qe=this.differ.diff(Q),Yt=ne!==this.compareFn;return Qe&&(this.keyValues=[],Qe.forEachItem(pi=>{this.keyValues.push(function(Xe,_e){return{key:Xe,value:_e}}(pi.key,pi.currentValue))})),(Qe||Yt)&&(this.keyValues.sort(ne),this.compareFn=ne),this.keyValues}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.Y36(e.aQg,16))},Xe.\u0275pipe=e.Yjl({name:"keyvalue",type:Xe,pure:!1}),Xe})();function Dr(Xe,_e){const Q=Xe.key,ne=_e.key;if(Q===ne)return 0;if(void 0===Q)return 1;if(void 0===ne)return-1;if(null===Q)return 1;if(null===ne)return-1;if("string"==typeof Q&&"string"==typeof ne)return Q<ne?-1:1;if("number"==typeof Q&&"number"==typeof ne)return Q-ne;if("boolean"==typeof Q&&"boolean"==typeof ne)return Q<ne?-1:1;const Qe=String(Q),Yt=String(ne);return Qe==Yt?0:Qe<Yt?-1:1}let Jr=(()=>{class Xe{constructor(Q){this._locale=Q}transform(Q,ne,Qe){if(!function(Xe){return!(null==Xe||""===Xe||Xe!=Xe)}(Q))return null;Qe=Qe||this._locale;try{return function(Xe,_e,Q){return function(Xe,_e,Q,ne,Qe,Yt,pi=!1){let xt="",ei=!1;if(isFinite(Xe)){let yt=function(Xe){let ne,Qe,Yt,pi,xt,_e=Math.abs(Xe)+"",Q=0;for((Qe=_e.indexOf("."))>-1&&(_e=_e.replace(".","")),(Yt=_e.search(/e/i))>0?(Qe<0&&(Qe=Yt),Qe+=+_e.slice(Yt+1),_e=_e.substring(0,Yt)):Qe<0&&(Qe=_e.length),Yt=0;"0"===_e.charAt(Yt);Yt++);if(Yt===(xt=_e.length))ne=[0],Qe=1;else{for(xt--;"0"===_e.charAt(xt);)xt--;for(Qe-=Yt,ne=[],pi=0;Yt<=xt;Yt++,pi++)ne[pi]=Number(_e.charAt(Yt))}return Qe>22&&(ne=ne.splice(0,21),Q=Qe-1,Qe=1),{digits:ne,exponent:Q,integerLen:Qe}}(Xe);pi&&(yt=function(Xe){if(0===Xe.digits[0])return Xe;const _e=Xe.digits.length-Xe.integerLen;return Xe.exponent?Xe.exponent+=2:(0===_e?Xe.digits.push(0,0):1===_e&&Xe.digits.push(0),Xe.integerLen+=2),Xe}(yt));let Wt=_e.minInt,xi=_e.minFrac,zi=_e.maxFrac;if(Yt){const Gn=Yt.match(At);if(null===Gn)throw new Error(`${Yt} is not a valid digit info`);const ma=Gn[1],Lr=Gn[3],us=Gn[5];null!=ma&&(Wt=$e(ma)),null!=Lr&&(xi=$e(Lr)),null!=us?zi=$e(us):null!=Lr&&xi>zi&&(zi=xi)}!function(Xe,_e,Q){if(_e>Q)throw new Error(`The minimum number of digits after fraction (${_e}) is higher than the maximum (${Q}).`);let ne=Xe.digits,Qe=ne.length-Xe.integerLen;const Yt=Math.min(Math.max(_e,Qe),Q);let pi=Yt+Xe.integerLen,xt=ne[pi];if(pi>0){ne.splice(Math.max(Xe.integerLen,pi));for(let xi=pi;xi<ne.length;xi++)ne[xi]=0}else{Qe=Math.max(0,Qe),Xe.integerLen=1,ne.length=Math.max(1,pi=Yt+1),ne[0]=0;for(let xi=1;xi<pi;xi++)ne[xi]=0}if(xt>=5)if(pi-1<0){for(let xi=0;xi>pi;xi--)ne.unshift(0),Xe.integerLen++;ne.unshift(1),Xe.integerLen++}else ne[pi-1]++;for(;Qe<Math.max(0,Yt);Qe++)ne.push(0);let ei=0!==Yt;const yt=_e+Xe.integerLen,Wt=ne.reduceRight(function(xi,zi,vn,wn){return wn[vn]=(zi+=xi)<10?zi:zi-10,ei&&(0===wn[vn]&&vn>=yt?wn.pop():ei=!1),zi>=10?1:0},0);Wt&&(ne.unshift(Wt),Xe.integerLen++)}(yt,xi,zi);let vn=yt.digits,wn=yt.integerLen;const Qi=yt.exponent;let pr=[];for(ei=vn.every(Gn=>!Gn);wn<Wt;wn++)vn.unshift(0);for(;wn<0;wn++)vn.unshift(0);wn>0?pr=vn.splice(wn,vn.length):(pr=vn,vn=[0]);const Bn=[];for(vn.length>=_e.lgSize&&Bn.unshift(vn.splice(-_e.lgSize,vn.length).join(""));vn.length>_e.gSize;)Bn.unshift(vn.splice(-_e.gSize,vn.length).join(""));vn.length&&Bn.unshift(vn.join("")),xt=Bn.join(Be(Q,ne)),pr.length&&(xt+=Be(Q,Qe)+pr.join("")),Qi&&(xt+=Be(Q,_.Exponential)+"+"+Qi)}else xt=Be(Q,_.Infinity);return xt=Xe<0&&!ei?_e.negPre+xt+_e.negSuf:_e.posPre+xt+_e.posSuf,xt}(Xe,function(Xe,_e="-"){const Q={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ne=Xe.split(";"),Qe=ne[0],Yt=ne[1],pi=-1!==Qe.indexOf(".")?Qe.split("."):[Qe.substring(0,Qe.lastIndexOf("0")+1),Qe.substring(Qe.lastIndexOf("0")+1)],xt=pi[0],ei=pi[1]||"";Q.posPre=xt.substr(0,xt.indexOf("#"));for(let Wt=0;Wt<ei.length;Wt++){const xi=ei.charAt(Wt);"0"===xi?Q.minFrac=Q.maxFrac=Wt+1:"#"===xi?Q.maxFrac=Wt+1:Q.posSuf+=xi}const yt=xt.split(",");if(Q.gSize=yt[1]?yt[1].length:0,Q.lgSize=yt[2]||yt[1]?(yt[2]||yt[1]).length:0,Yt){const Wt=Qe.length-Q.posPre.length-Q.posSuf.length,xi=Yt.indexOf("#");Q.negPre=Yt.substr(0,xi).replace(/'/g,""),Q.negSuf=Yt.substr(xi+Wt).replace(/'/g,"")}else Q.negPre=_e+Q.posPre,Q.negSuf=Q.posSuf;return Q}(function(Xe,_e){return(0,e.cg1)(Xe)[e.wAp.NumberFormats][_e]}(_e,y.Decimal),Be(_e,_.MinusSign)),_e,_.Group,_.Decimal,Q)}(function(Xe){if("string"==typeof Xe&&!isNaN(Number(Xe)-parseFloat(Xe)))return Number(Xe);if("number"!=typeof Xe)throw new Error(`${Xe} is not a number`);return Xe}(Q),Qe,ne)}catch(Yt){throw qn(Xe,Yt.message)}}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.Y36(e.soG,16))},Xe.\u0275pipe=e.Yjl({name:"number",type:Xe,pure:!0}),Xe})();let Vr=(()=>{class Xe{transform(Q,ne,Qe){if(null==Q)return null;if(!this.supports(Q))throw qn(Xe,Q);return Q.slice(ne,Qe)}supports(Q){return"string"==typeof Q||Array.isArray(Q)}}return Xe.\u0275fac=function(Q){return new(Q||Xe)},Xe.\u0275pipe=e.Yjl({name:"slice",type:Xe,pure:!1}),Xe})(),Na=(()=>{class Xe{}return Xe.\u0275fac=function(Q){return new(Q||Xe)},Xe.\u0275mod=e.oAB({type:Xe}),Xe.\u0275inj=e.cJS({providers:[{provide:St,useClass:yi}]}),Xe})();const hr="browser";function na(Xe){return Xe===hr}function Cr(Xe){return"server"===Xe}let fa=(()=>{class Xe{}return Xe.\u0275prov=(0,e.Yz7)({token:Xe,providedIn:"root",factory:()=>new ra((0,e.LFG)(c),window)}),Xe})();class ra{constructor(_e,Q){this.document=_e,this.window=Q,this.offset=()=>[0,0]}setOffset(_e){this.offset=Array.isArray(_e)?()=>_e:_e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(_e){this.supportsScrolling()&&this.window.scrollTo(_e[0],_e[1])}scrollToAnchor(_e){if(!this.supportsScrolling())return;const Q=function(Xe,_e){const Q=Xe.getElementById(_e)||Xe.getElementsByName(_e)[0];if(Q)return Q;if("function"==typeof Xe.createTreeWalker&&Xe.body&&(Xe.body.createShadowRoot||Xe.body.attachShadow)){const ne=Xe.createTreeWalker(Xe.body,NodeFilter.SHOW_ELEMENT);let Qe=ne.currentNode;for(;Qe;){const Yt=Qe.shadowRoot;if(Yt){const pi=Yt.getElementById(_e)||Yt.querySelector(`[name="${_e}"]`);if(pi)return pi}Qe=ne.nextNode()}}return null}(this.document,_e);Q&&(this.scrollToElement(Q),this.attemptFocus(Q))}setHistoryScrollRestoration(_e){if(this.supportScrollRestoration()){const Q=this.window.history;Q&&Q.scrollRestoration&&(Q.scrollRestoration=_e)}}scrollToElement(_e){const Q=_e.getBoundingClientRect(),ne=Q.left+this.window.pageXOffset,Qe=Q.top+this.window.pageYOffset,Yt=this.offset();this.window.scrollTo(ne-Yt[0],Qe-Yt[1])}attemptFocus(_e){return _e.focus(),this.document.activeElement===_e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const _e=pa(this.window.history)||pa(Object.getPrototypeOf(this.window.history));return!(!_e||!_e.writable&&!_e.set)}catch(_e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(_e){return!1}}}function pa(Xe){return Object.getOwnPropertyDescriptor(Xe,"scrollRestoration")}class Wa{}},8138:(Ze,K,m)=>{"use strict";m.d(K,{TP:()=>I,eN:()=>_,JF:()=>Ee,LE:()=>W});var e=m(9808),t=m(5e3),v=m(9646),C=m(8306),s=m(4351),M=m(9300),c=m(4004);class N{}class o{}class L{constructor(oe){this.normalizedNames=new Map,this.lazyUpdate=null,oe?this.lazyInit="string"==typeof oe?()=>{this.headers=new Map,oe.split("\n").forEach(Ce=>{const Ue=Ce.indexOf(":");if(Ue>0){const ht=Ce.slice(0,Ue),it=ht.toLowerCase(),ft=Ce.slice(Ue+1).trim();this.maybeSetNormalizedName(ht,it),this.headers.has(it)?this.headers.get(it).push(ft):this.headers.set(it,[ft])}})}:()=>{this.headers=new Map,Object.keys(oe).forEach(Ce=>{let Ue=oe[Ce];const ht=Ce.toLowerCase();"string"==typeof Ue&&(Ue=[Ue]),Ue.length>0&&(this.headers.set(ht,Ue),this.maybeSetNormalizedName(Ce,ht))})}:this.headers=new Map}has(oe){return this.init(),this.headers.has(oe.toLowerCase())}get(oe){this.init();const Ce=this.headers.get(oe.toLowerCase());return Ce&&Ce.length>0?Ce[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(oe){return this.init(),this.headers.get(oe.toLowerCase())||null}append(oe,Ce){return this.clone({name:oe,value:Ce,op:"a"})}set(oe,Ce){return this.clone({name:oe,value:Ce,op:"s"})}delete(oe,Ce){return this.clone({name:oe,value:Ce,op:"d"})}maybeSetNormalizedName(oe,Ce){this.normalizedNames.has(Ce)||this.normalizedNames.set(Ce,oe)}init(){this.lazyInit&&(this.lazyInit instanceof L?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(oe=>this.applyUpdate(oe)),this.lazyUpdate=null))}copyFrom(oe){oe.init(),Array.from(oe.headers.keys()).forEach(Ce=>{this.headers.set(Ce,oe.headers.get(Ce)),this.normalizedNames.set(Ce,oe.normalizedNames.get(Ce))})}clone(oe){const Ce=new L;return Ce.lazyInit=this.lazyInit&&this.lazyInit instanceof L?this.lazyInit:this,Ce.lazyUpdate=(this.lazyUpdate||[]).concat([oe]),Ce}applyUpdate(oe){const Ce=oe.name.toLowerCase();switch(oe.op){case"a":case"s":let Ue=oe.value;if("string"==typeof Ue&&(Ue=[Ue]),0===Ue.length)return;this.maybeSetNormalizedName(oe.name,Ce);const ht=("a"===oe.op?this.headers.get(Ce):void 0)||[];ht.push(...Ue),this.headers.set(Ce,ht);break;case"d":const it=oe.value;if(it){let ft=this.headers.get(Ce);if(!ft)return;ft=ft.filter(nt=>-1===it.indexOf(nt)),0===ft.length?(this.headers.delete(Ce),this.normalizedNames.delete(Ce)):this.headers.set(Ce,ft)}else this.headers.delete(Ce),this.normalizedNames.delete(Ce)}}forEach(oe){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ce=>oe(this.normalizedNames.get(Ce),this.headers.get(Ce)))}}class O{encodeKey(oe){return w(oe)}encodeValue(oe){return w(oe)}decodeKey(oe){return decodeURIComponent(oe)}decodeValue(oe){return decodeURIComponent(oe)}}const E=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function w(J){return encodeURIComponent(J).replace(E,(oe,Ce)=>{var Ue;return null!==(Ue=k[Ce])&&void 0!==Ue?Ue:oe})}function V(J){return`${J}`}class W{constructor(oe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=oe.encoder||new O,oe.fromString){if(oe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(J,oe){const Ce=new Map;return J.length>0&&J.replace(/^\?/,"").split("&").forEach(ht=>{const it=ht.indexOf("="),[ft,nt]=-1==it?[oe.decodeKey(ht),""]:[oe.decodeKey(ht.slice(0,it)),oe.decodeValue(ht.slice(it+1))],st=Ce.get(ft)||[];st.push(nt),Ce.set(ft,st)}),Ce}(oe.fromString,this.encoder)}else oe.fromObject?(this.map=new Map,Object.keys(oe.fromObject).forEach(Ce=>{const Ue=oe.fromObject[Ce];this.map.set(Ce,Array.isArray(Ue)?Ue:[Ue])})):this.map=null}has(oe){return this.init(),this.map.has(oe)}get(oe){this.init();const Ce=this.map.get(oe);return Ce?Ce[0]:null}getAll(oe){return this.init(),this.map.get(oe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(oe,Ce){return this.clone({param:oe,value:Ce,op:"a"})}appendAll(oe){const Ce=[];return Object.keys(oe).forEach(Ue=>{const ht=oe[Ue];Array.isArray(ht)?ht.forEach(it=>{Ce.push({param:Ue,value:it,op:"a"})}):Ce.push({param:Ue,value:ht,op:"a"})}),this.clone(Ce)}set(oe,Ce){return this.clone({param:oe,value:Ce,op:"s"})}delete(oe,Ce){return this.clone({param:oe,value:Ce,op:"d"})}toString(){return this.init(),this.keys().map(oe=>{const Ce=this.encoder.encodeKey(oe);return this.map.get(oe).map(Ue=>Ce+"="+this.encoder.encodeValue(Ue)).join("&")}).filter(oe=>""!==oe).join("&")}clone(oe){const Ce=new W({encoder:this.encoder});return Ce.cloneFrom=this.cloneFrom||this,Ce.updates=(this.updates||[]).concat(oe),Ce}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(oe=>this.map.set(oe,this.cloneFrom.map.get(oe))),this.updates.forEach(oe=>{switch(oe.op){case"a":case"s":const Ce=("a"===oe.op?this.map.get(oe.param):void 0)||[];Ce.push(V(oe.value)),this.map.set(oe.param,Ce);break;case"d":if(void 0===oe.value){this.map.delete(oe.param);break}{let Ue=this.map.get(oe.param)||[];const ht=Ue.indexOf(V(oe.value));-1!==ht&&Ue.splice(ht,1),Ue.length>0?this.map.set(oe.param,Ue):this.map.delete(oe.param)}}}),this.cloneFrom=this.updates=null)}}class ${constructor(){this.map=new Map}set(oe,Ce){return this.map.set(oe,Ce),this}get(oe){return this.map.has(oe)||this.map.set(oe,oe.defaultValue()),this.map.get(oe)}delete(oe){return this.map.delete(oe),this}keys(){return this.map.keys()}}function me(J){return"undefined"!=typeof ArrayBuffer&&J instanceof ArrayBuffer}function ce(J){return"undefined"!=typeof Blob&&J instanceof Blob}function le(J){return"undefined"!=typeof FormData&&J instanceof FormData}class re{constructor(oe,Ce,Ue,ht){let it;if(this.url=Ce,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=oe.toUpperCase(),function(J){switch(J){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ht?(this.body=void 0!==Ue?Ue:null,it=ht):it=Ue,it&&(this.reportProgress=!!it.reportProgress,this.withCredentials=!!it.withCredentials,it.responseType&&(this.responseType=it.responseType),it.headers&&(this.headers=it.headers),it.context&&(this.context=it.context),it.params&&(this.params=it.params)),this.headers||(this.headers=new L),this.context||(this.context=new $),this.params){const ft=this.params.toString();if(0===ft.length)this.urlWithParams=Ce;else{const nt=Ce.indexOf("?");this.urlWithParams=Ce+(-1===nt?"?":nt<Ce.length-1?"&":"")+ft}}else this.params=new W,this.urlWithParams=Ce}serializeBody(){return null===this.body?null:me(this.body)||ce(this.body)||le(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof W?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||le(this.body)?null:ce(this.body)?this.body.type||null:me(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof W?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(oe={}){var Ce;const Ue=oe.method||this.method,ht=oe.url||this.url,it=oe.responseType||this.responseType,ft=void 0!==oe.body?oe.body:this.body,nt=void 0!==oe.withCredentials?oe.withCredentials:this.withCredentials,st=void 0!==oe.reportProgress?oe.reportProgress:this.reportProgress;let wt=oe.headers||this.headers,Bt=oe.params||this.params;const Pt=null!==(Ce=oe.context)&&void 0!==Ce?Ce:this.context;return void 0!==oe.setHeaders&&(wt=Object.keys(oe.setHeaders).reduce((Vt,Oi)=>Vt.set(Oi,oe.setHeaders[Oi]),wt)),oe.setParams&&(Bt=Object.keys(oe.setParams).reduce((Vt,Oi)=>Vt.set(Oi,oe.setParams[Oi]),Bt)),new re(Ue,ht,ft,{params:Bt,headers:wt,context:Pt,reportProgress:st,responseType:it,withCredentials:nt})}}var pe=(()=>((pe=pe||{})[pe.Sent=0]="Sent",pe[pe.UploadProgress=1]="UploadProgress",pe[pe.ResponseHeader=2]="ResponseHeader",pe[pe.DownloadProgress=3]="DownloadProgress",pe[pe.Response=4]="Response",pe[pe.User=5]="User",pe))();class y{constructor(oe,Ce=200,Ue="OK"){this.headers=oe.headers||new L,this.status=void 0!==oe.status?oe.status:Ce,this.statusText=oe.statusText||Ue,this.url=oe.url||null,this.ok=this.status>=200&&this.status<300}}class i extends y{constructor(oe={}){super(oe),this.type=pe.ResponseHeader}clone(oe={}){return new i({headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class a extends y{constructor(oe={}){super(oe),this.type=pe.Response,this.body=void 0!==oe.body?oe.body:null}clone(oe={}){return new a({body:void 0!==oe.body?oe.body:this.body,headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class p extends y{constructor(oe){super(oe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${oe.url||"(unknown url)"}`:`Http failure response for ${oe.url||"(unknown url)"}: ${oe.status} ${oe.statusText}`,this.error=oe.error||null}}function u(J,oe){return{body:oe,headers:J.headers,context:J.context,observe:J.observe,params:J.params,reportProgress:J.reportProgress,responseType:J.responseType,withCredentials:J.withCredentials}}let _=(()=>{class J{constructor(Ce){this.handler=Ce}request(Ce,Ue,ht={}){let it;if(Ce instanceof re)it=Ce;else{let st,wt;st=ht.headers instanceof L?ht.headers:new L(ht.headers),ht.params&&(wt=ht.params instanceof W?ht.params:new W({fromObject:ht.params})),it=new re(Ce,Ue,void 0!==ht.body?ht.body:null,{headers:st,context:ht.context,params:wt,reportProgress:ht.reportProgress,responseType:ht.responseType||"json",withCredentials:ht.withCredentials})}const ft=(0,v.of)(it).pipe((0,s.b)(st=>this.handler.handle(st)));if(Ce instanceof re||"events"===ht.observe)return ft;const nt=ft.pipe((0,M.h)(st=>st instanceof a));switch(ht.observe||"body"){case"body":switch(it.responseType){case"arraybuffer":return nt.pipe((0,c.U)(st=>{if(null!==st.body&&!(st.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return st.body}));case"blob":return nt.pipe((0,c.U)(st=>{if(null!==st.body&&!(st.body instanceof Blob))throw new Error("Response is not a Blob.");return st.body}));case"text":return nt.pipe((0,c.U)(st=>{if(null!==st.body&&"string"!=typeof st.body)throw new Error("Response is not a string.");return st.body}));default:return nt.pipe((0,c.U)(st=>st.body))}case"response":return nt;default:throw new Error(`Unreachable: unhandled observe type ${ht.observe}}`)}}delete(Ce,Ue={}){return this.request("DELETE",Ce,Ue)}get(Ce,Ue={}){return this.request("GET",Ce,Ue)}head(Ce,Ue={}){return this.request("HEAD",Ce,Ue)}jsonp(Ce,Ue){return this.request("JSONP",Ce,{params:(new W).append(Ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ce,Ue={}){return this.request("OPTIONS",Ce,Ue)}patch(Ce,Ue,ht={}){return this.request("PATCH",Ce,u(ht,Ue))}post(Ce,Ue,ht={}){return this.request("POST",Ce,u(ht,Ue))}put(Ce,Ue,ht={}){return this.request("PUT",Ce,u(ht,Ue))}}return J.\u0275fac=function(Ce){return new(Ce||J)(t.LFG(N))},J.\u0275prov=t.Yz7({token:J,factory:J.\u0275fac}),J})();class D{constructor(oe,Ce){this.next=oe,this.interceptor=Ce}handle(oe){return this.interceptor.intercept(oe,this.next)}}const I=new t.OlP("HTTP_INTERCEPTORS");let x=(()=>{class J{intercept(Ce,Ue){return Ue.handle(Ce)}}return J.\u0275fac=function(Ce){return new(Ce||J)},J.\u0275prov=t.Yz7({token:J,factory:J.\u0275fac}),J})();const Ne=/^\)\]\}',?\n/;let Oe=(()=>{class J{constructor(Ce){this.xhrFactory=Ce}handle(Ce){if("JSONP"===Ce.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new C.y(Ue=>{const ht=this.xhrFactory.build();if(ht.open(Ce.method,Ce.urlWithParams),Ce.withCredentials&&(ht.withCredentials=!0),Ce.headers.forEach((Oi,jt)=>ht.setRequestHeader(Oi,jt.join(","))),Ce.headers.has("Accept")||ht.setRequestHeader("Accept","application/json, text/plain, */*"),!Ce.headers.has("Content-Type")){const Oi=Ce.detectContentTypeHeader();null!==Oi&&ht.setRequestHeader("Content-Type",Oi)}if(Ce.responseType){const Oi=Ce.responseType.toLowerCase();ht.responseType="json"!==Oi?Oi:"text"}const it=Ce.serializeBody();let ft=null;const nt=()=>{if(null!==ft)return ft;const Oi=1223===ht.status?204:ht.status,jt=ht.statusText||"OK",ti=new L(ht.getAllResponseHeaders()),Pi=function(J){return"responseURL"in J&&J.responseURL?J.responseURL:/^X-Request-URL:/m.test(J.getAllResponseHeaders())?J.getResponseHeader("X-Request-URL"):null}(ht)||Ce.url;return ft=new i({headers:ti,status:Oi,statusText:jt,url:Pi}),ft},st=()=>{let{headers:Oi,status:jt,statusText:ti,url:Pi}=nt(),si=null;204!==jt&&(si=void 0===ht.response?ht.responseText:ht.response),0===jt&&(jt=si?200:0);let di=jt>=200&&jt<300;if("json"===Ce.responseType&&"string"==typeof si){const ze=si;si=si.replace(Ne,"");try{si=""!==si?JSON.parse(si):null}catch(Te){si=ze,di&&(di=!1,si={error:Te,text:si})}}di?(Ue.next(new a({body:si,headers:Oi,status:jt,statusText:ti,url:Pi||void 0})),Ue.complete()):Ue.error(new p({error:si,headers:Oi,status:jt,statusText:ti,url:Pi||void 0}))},wt=Oi=>{const{url:jt}=nt(),ti=new p({error:Oi,status:ht.status||0,statusText:ht.statusText||"Unknown Error",url:jt||void 0});Ue.error(ti)};let Bt=!1;const Pt=Oi=>{Bt||(Ue.next(nt()),Bt=!0);let jt={type:pe.DownloadProgress,loaded:Oi.loaded};Oi.lengthComputable&&(jt.total=Oi.total),"text"===Ce.responseType&&!!ht.responseText&&(jt.partialText=ht.responseText),Ue.next(jt)},Vt=Oi=>{let jt={type:pe.UploadProgress,loaded:Oi.loaded};Oi.lengthComputable&&(jt.total=Oi.total),Ue.next(jt)};return ht.addEventListener("load",st),ht.addEventListener("error",wt),ht.addEventListener("timeout",wt),ht.addEventListener("abort",wt),Ce.reportProgress&&(ht.addEventListener("progress",Pt),null!==it&&ht.upload&&ht.upload.addEventListener("progress",Vt)),ht.send(it),Ue.next({type:pe.Sent}),()=>{ht.removeEventListener("error",wt),ht.removeEventListener("abort",wt),ht.removeEventListener("load",st),ht.removeEventListener("timeout",wt),Ce.reportProgress&&(ht.removeEventListener("progress",Pt),null!==it&&ht.upload&&ht.upload.removeEventListener("progress",Vt)),ht.readyState!==ht.DONE&&ht.abort()}})}}return J.\u0275fac=function(Ce){return new(Ce||J)(t.LFG(e.JF))},J.\u0275prov=t.Yz7({token:J,factory:J.\u0275fac}),J})();const B=new t.OlP("XSRF_COOKIE_NAME"),Me=new t.OlP("XSRF_HEADER_NAME");class we{}let ae=(()=>{class J{constructor(Ce,Ue,ht){this.doc=Ce,this.platform=Ue,this.cookieName=ht,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ce=this.doc.cookie||"";return Ce!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(Ce,this.cookieName),this.lastCookieString=Ce),this.lastToken}}return J.\u0275fac=function(Ce){return new(Ce||J)(t.LFG(e.K0),t.LFG(t.Lbi),t.LFG(B))},J.\u0275prov=t.Yz7({token:J,factory:J.\u0275fac}),J})(),We=(()=>{class J{constructor(Ce,Ue){this.tokenService=Ce,this.headerName=Ue}intercept(Ce,Ue){const ht=Ce.url.toLowerCase();if("GET"===Ce.method||"HEAD"===Ce.method||ht.startsWith("http://")||ht.startsWith("https://"))return Ue.handle(Ce);const it=this.tokenService.getToken();return null!==it&&!Ce.headers.has(this.headerName)&&(Ce=Ce.clone({headers:Ce.headers.set(this.headerName,it)})),Ue.handle(Ce)}}return J.\u0275fac=function(Ce){return new(Ce||J)(t.LFG(we),t.LFG(Me))},J.\u0275prov=t.Yz7({token:J,factory:J.\u0275fac}),J})(),vt=(()=>{class J{constructor(Ce,Ue){this.backend=Ce,this.injector=Ue,this.chain=null}handle(Ce){if(null===this.chain){const Ue=this.injector.get(I,[]);this.chain=Ue.reduceRight((ht,it)=>new D(ht,it),this.backend)}return this.chain.handle(Ce)}}return J.\u0275fac=function(Ce){return new(Ce||J)(t.LFG(o),t.LFG(t.zs3))},J.\u0275prov=t.Yz7({token:J,factory:J.\u0275fac}),J})(),he=(()=>{class J{static disable(){return{ngModule:J,providers:[{provide:We,useClass:x}]}}static withOptions(Ce={}){return{ngModule:J,providers:[Ce.cookieName?{provide:B,useValue:Ce.cookieName}:[],Ce.headerName?{provide:Me,useValue:Ce.headerName}:[]]}}}return J.\u0275fac=function(Ce){return new(Ce||J)},J.\u0275mod=t.oAB({type:J}),J.\u0275inj=t.cJS({providers:[We,{provide:I,useExisting:We,multi:!0},{provide:we,useClass:ae},{provide:B,useValue:"XSRF-TOKEN"},{provide:Me,useValue:"X-XSRF-TOKEN"}]}),J})(),Ee=(()=>{class J{}return J.\u0275fac=function(Ce){return new(Ce||J)},J.\u0275mod=t.oAB({type:J}),J.\u0275inj=t.cJS({providers:[_,{provide:N,useClass:vt},Oe,{provide:o,useExisting:Oe}],imports:[[he.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),J})()},5e3:(Ze,K,m)=>{"use strict";m.d(K,{deG:()=>pc,tb:()=>Vm,AFp:()=>zm,ip1:()=>_p,CZH:()=>Wu,hGG:()=>C5,z2F:()=>L4,sBO:()=>Jg,Sil:()=>yp,_Vd:()=>M4,EJc:()=>Wm,SBq:()=>w4,qLn:()=>Dc,vpe:()=>hc,tBr:()=>yo,XFs:()=>he,OlP:()=>Gr,zs3:()=>Vs,ZZ4:()=>Y3,aQg:()=>j3,soG:()=>G3,YKP:()=>qp,h0i:()=>Zu,PXZ:()=>Vg,R0b:()=>Io,FiY:()=>bo,Lbi:()=>Zm,g9A:()=>Um,n_E:()=>B3,Qsj:()=>D8,FYo:()=>Gp,JOm:()=>cs,q3G:()=>ha,PiD:()=>zl,tp0:()=>zs,Rgc:()=>S4,dDg:()=>qm,GfV:()=>Wp,s_b:()=>z3,ifc:()=>ft,eFA:()=>Jm,Ez6:()=>Ne,G48:()=>Qg,Gpc:()=>O,f3M:()=>ol,X6Q:()=>Kg,_c5:()=>m5,VLi:()=>Hg,c2e:()=>Gm,zSh:()=>v2,wAp:()=>Mn,vHH:()=>w,EiD:()=>yh,mCW:()=>ul,qzn:()=>Ul,JVY:()=>ju,pB0:()=>R4,eBb:()=>I4,L6k:()=>qu,LAX:()=>k4,cg1:()=>l0,kL8:()=>Nu,yhl:()=>dl,dqk:()=>Pt,sIi:()=>Vc,CqO:()=>pu,QGY:()=>B2,F4k:()=>fu,RDi:()=>fa,AaK:()=>N,z3N:()=>Ao,qOj:()=>w2,TTD:()=>Ca,_Bn:()=>Up,xp6:()=>N1,uIk:()=>T2,Tol:()=>e0,Gre:()=>a0,ekj:()=>sc,Suo:()=>vm,Xpm:()=>Ae,lG2:()=>rt,Yz7:()=>xe,cJS:()=>Be,oAB:()=>lt,Yjl:()=>ot,Y36:()=>Wc,_UZ:()=>P2,GkF:()=>du,BQk:()=>F2,ynx:()=>N2,qZA:()=>J1,TgZ:()=>R2,EpF:()=>uu,n5z:()=>Ns,Ikx:()=>th,LFG:()=>Ia,$8M:()=>a1,$Z:()=>hu,NdJ:()=>X1,CRH:()=>ym,kcU:()=>Rn,O4$:()=>an,oxw:()=>z2,ALo:()=>om,lcZ:()=>lm,xi3:()=>cm,Dn7:()=>hm,Hsn:()=>gu,F$t:()=>mu,Q6J:()=>I2,s9C:()=>Yc,MGl:()=>vr,DdM:()=>Xp,VKq:()=>$p,WLB:()=>em,kEZ:()=>tm,iGM:()=>gm,MAs:()=>Xd,Jf7:()=>Ih,CHM:()=>fs,oJD:()=>E0,LSH:()=>T0,kYT:()=>Re,Udp:()=>El,WFA:()=>H2,d8E:()=>Ru,YNc:()=>Jd,W1O:()=>Mm,_uU:()=>J2,Oqu:()=>qr,hij:()=>Tl,AsE:()=>io,HOy:()=>X2,Gf:()=>_m});var e=m(7579),t=m(727),v=m(8306),C=m(6451),s=m(3099);function M(l){for(let h in l)if(l[h]===M)return h;throw Error("Could not find renamed property on target object.")}function c(l,h){for(const g in h)h.hasOwnProperty(g)&&!l.hasOwnProperty(g)&&(l[g]=h[g])}function N(l){if("string"==typeof l)return l;if(Array.isArray(l))return"["+l.map(N).join(", ")+"]";if(null==l)return""+l;if(l.overriddenName)return`${l.overriddenName}`;if(l.name)return`${l.name}`;const h=l.toString();if(null==h)return""+h;const g=h.indexOf("\n");return-1===g?h:h.substring(0,g)}function o(l,h){return null==l||""===l?null===h?"":h:null==h||""===h?l:l+" "+h}const L=M({__forward_ref__:M});function O(l){return l.__forward_ref__=O,l.toString=function(){return N(this())},l}function A(l){return E(l)?l():l}function E(l){return"function"==typeof l&&l.hasOwnProperty(L)&&l.__forward_ref__===O}class w extends Error{constructor(h,g){super(function(l,h){return`${l?`NG0${l}: `:""}${h}`}(h,g)),this.code=h}}function j(l){return"string"==typeof l?l:null==l?"":String(l)}function $(l){return"function"==typeof l?l.name||l.toString():"object"==typeof l&&null!=l&&"function"==typeof l.type?l.type.name||l.type.toString():j(l)}function le(l,h){const g=h?` in ${h}`:"";throw new w("201",`No provider for ${$(l)} found${g}`)}function b(l,h){null==l&&function(l,h,g,S){throw new Error(`ASSERTION ERROR: ${l}`+(null==S?"":` [Expected=> ${g} ${S} ${h} <=Actual]`))}(h,l,null,"!=")}function xe(l){return{token:l.token,providedIn:l.providedIn||null,factory:l.factory,value:void 0}}const Ne=xe;function Be(l){return{providers:l.providers||[],imports:l.imports||[]}}function Oe(l){return B(l,We)||B(l,Pe)}function B(l,h){return l.hasOwnProperty(h)?l[h]:null}function ae(l){return l&&(l.hasOwnProperty(vt)||l.hasOwnProperty(Ve))?l[vt]:null}const We=M({\u0275prov:M}),vt=M({\u0275inj:M}),Pe=M({ngInjectableDef:M}),Ve=M({ngInjectorDef:M});var he=(()=>((he=he||{})[he.Default=0]="Default",he[he.Host=1]="Host",he[he.Self=2]="Self",he[he.SkipSelf=4]="SkipSelf",he[he.Optional=8]="Optional",he))();let Ee;function q(l){const h=Ee;return Ee=l,h}function J(l,h,g){const S=Oe(l);return S&&"root"==S.providedIn?void 0===S.value?S.value=S.factory():S.value:g&he.Optional?null:void 0!==h?h:void le(N(l),"Injector")}function Ce(l){return{toString:l}.toString()}var Ue=(()=>((Ue=Ue||{})[Ue.OnPush=0]="OnPush",Ue[Ue.Default=1]="Default",Ue))(),ft=(()=>{return(l=ft||(ft={}))[l.Emulated=0]="Emulated",l[l.None=2]="None",l[l.ShadowDom=3]="ShadowDom",ft;var l})();const nt="undefined"!=typeof globalThis&&globalThis,st="undefined"!=typeof window&&window,wt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Pt=nt||"undefined"!=typeof global&&global||st||wt,jt={},ti=[],Pi=M({\u0275cmp:M}),si=M({\u0275dir:M}),di=M({\u0275pipe:M}),ze=M({\u0275mod:M}),Te=M({\u0275fac:M}),Y=M({__NG_ELEMENT_ID__:M});let ge=0;function Ae(l){return Ce(()=>{const g={},S={type:l.type,providersResolver:null,decls:l.decls,vars:l.vars,factory:null,template:l.template||null,consts:l.consts||null,ngContentSelectors:l.ngContentSelectors,hostBindings:l.hostBindings||null,hostVars:l.hostVars||0,hostAttrs:l.hostAttrs||null,contentQueries:l.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:l.exportAs||null,onPush:l.changeDetection===Ue.OnPush,directiveDefs:null,pipeDefs:null,selectors:l.selectors||ti,viewQuery:l.viewQuery||null,features:l.features||null,data:l.data||{},encapsulation:l.encapsulation||ft.Emulated,id:"c",styles:l.styles||ti,_:null,setInput:null,schemas:l.schemas||null,tView:null},F=l.directives,G=l.features,fe=l.pipes;return S.id+=ge++,S.inputs=Fe(l.inputs,g),S.outputs=Fe(l.outputs),G&&G.forEach(Ie=>Ie(S)),S.directiveDefs=F?()=>("function"==typeof F?F():F).map($t):null,S.pipeDefs=fe?()=>("function"==typeof fe?fe():fe).map(Nt):null,S})}function $t(l){return At(l)||function(l){return l[si]||null}(l)}function Nt(l){return function(l){return l[di]||null}(l)}const Xt={};function lt(l){return Ce(()=>{const h={type:l.type,bootstrap:l.bootstrap||ti,declarations:l.declarations||ti,imports:l.imports||ti,exports:l.exports||ti,transitiveCompileScopes:null,schemas:l.schemas||null,id:l.id||null};return null!=l.id&&(Xt[l.id]=l.type),h})}function Re(l,h){return Ce(()=>{const g=Ft(l,!0);g.declarations=h.declarations||ti,g.imports=h.imports||ti,g.exports=h.exports||ti})}function Fe(l,h){if(null==l)return jt;const g={};for(const S in l)if(l.hasOwnProperty(S)){let F=l[S],G=F;Array.isArray(F)&&(G=F[1],F=F[0]),g[F]=S,h&&(h[F]=G)}return g}const rt=Ae;function ot(l){return{type:l.type,name:l.name,factory:null,pure:!1!==l.pure,onDestroy:l.type.prototype.ngOnDestroy||null}}function At(l){return l[Pi]||null}function Ft(l,h){const g=l[ze]||null;if(!g&&!0===h)throw new Error(`Type ${N(l)} does not have '\u0275mod' property.`);return g}function pn(l){return Array.isArray(l)&&"object"==typeof l[1]}function Nn(l){return Array.isArray(l)&&!0===l[1]}function br(l){return 0!=(8&l.flags)}function wi(l){return 2==(2&l.flags)}function Fi(l){return 1==(1&l.flags)}function sn(l){return null!==l.template}function Sr(l){return 0!=(512&l[2])}function Pr(l,h){return l.hasOwnProperty(Te)?l[Te]:null}class Pa{constructor(h,g,S){this.previousValue=h,this.currentValue=g,this.firstChange=S}isFirstChange(){return this.firstChange}}function Ca(){return Vr}function Vr(l){return l.type.prototype.ngOnChanges&&(l.setInput=Na),er}function er(){const l=ia(this),h=null==l?void 0:l.current;if(h){const g=l.previous;if(g===jt)l.previous=h;else for(let S in h)g[S]=h[S];l.current=null,this.ngOnChanges(h)}}function Na(l,h,g,S){const F=ia(l)||function(l,h){return l[hr]=h}(l,{previous:jt,current:null}),G=F.current||(F.current={}),fe=F.previous,Ie=this.declaredInputs[g],Ye=fe[Ie];G[Ie]=new Pa(Ye&&Ye.currentValue,h,fe===jt),l[S]=h}Ca.ngInherit=!0;const hr="__ngSimpleChanges__";function ia(l){return l[hr]||null}const is="http://www.w3.org/2000/svg";let fr;function fa(l){fr=l}function ra(){return void 0!==fr?fr:"undefined"!=typeof document?document:void 0}function Zn(l){return!!l.listen}const ns={createRenderer:(l,h)=>ra()};function Xe(l){for(;Array.isArray(l);)l=l[0];return l}function ne(l,h){return Xe(h[l])}function Qe(l,h){return Xe(h[l.index])}function pi(l,h){return l.data[h]}function xt(l,h){return l[h]}function ei(l,h){const g=h[l];return pn(g)?g:g[0]}function yt(l){return 4==(4&l[2])}function Wt(l){return 128==(128&l[2])}function zi(l,h){return null==h?null:l[h]}function vn(l){l[18]=0}function wn(l,h){l[5]+=h;let g=l,S=l[3];for(;null!==S&&(1===h&&1===g[5]||-1===h&&0===g[5]);)S[5]+=h,g=S,S=S[3]}const Qi={lFrame:yn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Lr(){return Qi.bindingsEnabled}function ki(){return Qi.lFrame.lView}function Fn(){return Qi.lFrame.tView}function fs(l){return Qi.lFrame.contextLView=l,l[8]}function cr(){let l=js();for(;null!==l&&64===l.type;)l=l.parent;return l}function js(){return Qi.lFrame.currentTNode}function bt(l,h){const g=Qi.lFrame;g.currentTNode=l,g.isParent=h}function ie(){return Qi.lFrame.isParent}function de(){Qi.lFrame.isParent=!1}function kt(){return Qi.isInCheckNoChangesMode}function Kt(l){Qi.isInCheckNoChangesMode=l}function Jt(){const l=Qi.lFrame;let h=l.bindingRootIndex;return-1===h&&(h=l.bindingRootIndex=l.tView.bindingStartIndex),h}function fi(){return Qi.lFrame.bindingIndex}function Zi(){return Qi.lFrame.bindingIndex++}function en(l){const h=Qi.lFrame,g=h.bindingIndex;return h.bindingIndex=h.bindingIndex+l,g}function tt(l,h){const g=Qi.lFrame;g.bindingIndex=g.bindingRootIndex=l,It(h)}function It(l){Qi.lFrame.currentDirectiveIndex=l}function zt(l){const h=Qi.lFrame.currentDirectiveIndex;return-1===h?null:l[h]}function ri(){return Qi.lFrame.currentQueryIndex}function vi(l){Qi.lFrame.currentQueryIndex=l}function Mi(l){const h=l[1];return 2===h.type?h.declTNode:1===h.type?l[6]:null}function Ei(l,h,g){if(g&he.SkipSelf){let F=h,G=l;for(;!(F=F.parent,null!==F||g&he.Host||(F=Mi(G),null===F||(G=G[15],10&F.type))););if(null===F)return!1;h=F,l=G}const S=Qi.lFrame=hn();return S.currentTNode=h,S.lView=l,!0}function ji(l){const h=hn(),g=l[1];Qi.lFrame=h,h.currentTNode=g.firstChild,h.lView=l,h.tView=g,h.contextLView=l,h.bindingIndex=g.bindingStartIndex,h.inI18n=!1}function hn(){const l=Qi.lFrame,h=null===l?null:l.child;return null===h?yn(l):h}function yn(l){const h={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:l,child:null,inI18n:!1};return null!==l&&(l.child=h),h}function Sn(){const l=Qi.lFrame;return Qi.lFrame=l.parent,l.currentTNode=null,l.lView=null,l}const Vn=Sn;function Mr(){const l=Sn();l.isParent=!0,l.tView=null,l.selectedIndex=-1,l.contextLView=null,l.elementDepthCount=0,l.currentDirectiveIndex=-1,l.currentNamespace=null,l.bindingRootIndex=-1,l.bindingIndex=-1,l.currentQueryIndex=0}function Yn(){return Qi.lFrame.selectedIndex}function mr(l){Qi.lFrame.selectedIndex=l}function Bi(){const l=Qi.lFrame;return pi(l.tView,l.selectedIndex)}function an(){Qi.lFrame.currentNamespace=is}function Rn(){Qi.lFrame.currentNamespace=null}function ca(l,h){for(let g=h.directiveStart,S=h.directiveEnd;g<S;g++){const G=l.data[g].type.prototype,{ngAfterContentInit:fe,ngAfterContentChecked:Ie,ngAfterViewInit:Ye,ngAfterViewChecked:ut,ngOnDestroy:Tt}=G;fe&&(l.contentHooks||(l.contentHooks=[])).push(-g,fe),Ie&&((l.contentHooks||(l.contentHooks=[])).push(g,Ie),(l.contentCheckHooks||(l.contentCheckHooks=[])).push(g,Ie)),Ye&&(l.viewHooks||(l.viewHooks=[])).push(-g,Ye),ut&&((l.viewHooks||(l.viewHooks=[])).push(g,ut),(l.viewCheckHooks||(l.viewCheckHooks=[])).push(g,ut)),null!=Tt&&(l.destroyHooks||(l.destroyHooks=[])).push(g,Tt)}}function Wn(l,h,g){Rs(l,h,3,g)}function ps(l,h,g,S){(3&l[2])===g&&Rs(l,h,g,S)}function La(l,h){let g=l[2];(3&g)===h&&(g&=2047,g+=1,l[2]=g)}function Rs(l,h,g,S){const G=null!=S?S:-1,fe=h.length-1;let Ie=0;for(let Ye=void 0!==S?65535&l[18]:0;Ye<fe;Ye++)if("number"==typeof h[Ye+1]){if(Ie=h[Ye],null!=S&&Ie>=S)break}else h[Ye]<0&&(l[18]+=65536),(Ie<G||-1==G)&&(qs(l,g,h,Ye),l[18]=(4294901760&l[18])+Ye+2),Ye++}function qs(l,h,g,S){const F=g[S]<0,G=g[S+1],Ie=l[F?-g[S]:g[S]];if(F){if(l[2]>>11<l[18]>>16&&(3&l[2])===h){l[2]+=2048;try{G.call(Ie)}finally{}}}else try{G.call(Ie)}finally{}}class vs{constructor(h,g,S){this.factory=h,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=S}}function Po(l,h,g){const S=Zn(l);let F=0;for(;F<g.length;){const G=g[F];if("number"==typeof G){if(0!==G)break;F++;const fe=g[F++],Ie=g[F++],Ye=g[F++];S?l.setAttribute(h,Ie,Ye,fe):h.setAttributeNS(fe,Ie,Ye)}else{const fe=G,Ie=g[++F];Xo(fe)?S&&l.setProperty(h,fe,Ie):S?l.setAttribute(h,fe,Ie):h.setAttribute(fe,Ie),F++}}return F}function Rl(l){return 3===l||4===l||6===l}function Xo(l){return 64===l.charCodeAt(0)}function go(l,h){if(null!==h&&0!==h.length)if(null===l||0===l.length)l=h.slice();else{let g=-1;for(let S=0;S<h.length;S++){const F=h[S];"number"==typeof F?g=F:0===g||Pl(l,g,F,null,-1===g||2===g?h[++S]:null)}}return l}function Pl(l,h,g,S,F){let G=0,fe=l.length;if(-1===h)fe=-1;else for(;G<l.length;){const Ie=l[G++];if("number"==typeof Ie){if(Ie===h){fe=-1;break}if(Ie>h){fe=G-1;break}}}for(;G<l.length;){const Ie=l[G];if("number"==typeof Ie)break;if(Ie===g){if(null===S)return void(null!==F&&(l[G+1]=F));if(S===l[G+1])return void(l[G+2]=F)}G++,null!==S&&G++,null!==F&&G++}-1!==fe&&(l.splice(fe,0,h),G=fe+1),l.splice(G++,0,g),null!==S&&l.splice(G++,0,S),null!==F&&l.splice(G++,0,F)}function Nl(l){return-1!==l}function ao(l){return 32767&l}function so(l,h){let g=function(l){return l>>16}(l),S=h;for(;g>0;)S=S[15],g--;return S}let el=!0;function _o(l){const h=el;return el=l,h}let Se=0;function Je(l,h){const g=Ot(l,h);if(-1!==g)return g;const S=h[1];S.firstCreatePass&&(l.injectorIndex=h.length,ct(S.data,l),ct(h,null),ct(S.blueprint,null));const F=qt(l,h),G=l.injectorIndex;if(Nl(F)){const fe=ao(F),Ie=so(F,h),Ye=Ie[1].data;for(let ut=0;ut<8;ut++)h[G+ut]=Ie[fe+ut]|Ye[fe+ut]}return h[G+8]=F,G}function ct(l,h){l.push(0,0,0,0,0,0,0,0,h)}function Ot(l,h){return-1===l.injectorIndex||l.parent&&l.parent.injectorIndex===l.injectorIndex||null===h[l.injectorIndex+8]?-1:l.injectorIndex}function qt(l,h){if(l.parent&&-1!==l.parent.injectorIndex)return l.parent.injectorIndex;let g=0,S=null,F=h;for(;null!==F;){const G=F[1],fe=G.type;if(S=2===fe?G.declTNode:1===fe?F[6]:null,null===S)return-1;if(g++,F=F[15],-1!==S.injectorIndex)return S.injectorIndex|g<<16}return-1}function ii(l,h,g){!function(l,h,g){let S;"string"==typeof g?S=g.charCodeAt(0)||0:g.hasOwnProperty(Y)&&(S=g[Y]),null==S&&(S=g[Y]=Se++);const F=255&S;h.data[l+(F>>5)]|=1<<F}(l,h,g)}function on(l,h,g){if(g&he.Optional)return l;le(h,"NodeInjector")}function jn(l,h,g,S){if(g&he.Optional&&void 0===S&&(S=null),0==(g&(he.Self|he.Host))){const F=l[9],G=q(void 0);try{return F?F.get(h,S,g&he.Optional):J(h,S,g&he.Optional)}finally{q(G)}}return on(S,h,g)}function xn(l,h,g,S=he.Default,F){if(null!==l){const G=function(l){if("string"==typeof l)return l.charCodeAt(0)||0;const h=l.hasOwnProperty(Y)?l[Y]:void 0;return"number"==typeof h?h>=0?255&h:Hn:h}(g);if("function"==typeof G){if(!Ei(h,l,S))return S&he.Host?on(F,g,S):jn(h,g,S,F);try{const fe=G(S);if(null!=fe||S&he.Optional)return fe;le(g)}finally{Vn()}}else if("number"==typeof G){let fe=null,Ie=Ot(l,h),Ye=-1,ut=S&he.Host?h[16][6]:null;for((-1===Ie||S&he.SkipSelf)&&(Ye=-1===Ie?qt(l,h):h[Ie+8],-1!==Ye&&ys(S,!1)?(fe=h[1],Ie=ao(Ye),h=so(Ye,h)):Ie=-1);-1!==Ie;){const Tt=h[1];if(Fa(G,Ie,Tt.data)){const Gt=vo(Ie,h,g,fe,S,ut);if(Gt!==Xn)return Gt}Ye=h[Ie+8],-1!==Ye&&ys(S,h[1].data[Ie+8]===ut)&&Fa(G,Ie,h)?(fe=Tt,Ie=ao(Ye),h=so(Ye,h)):Ie=-1}}}return jn(h,g,S,F)}const Xn={};function Hn(){return new ss(cr(),ki())}function vo(l,h,g,S,F,G){const fe=h[1],Ie=fe.data[l+8],Tt=as(Ie,fe,g,null==S?wi(Ie)&&el:S!=fe&&0!=(3&Ie.type),F&he.Host&&G===Ie);return null!==Tt?ja(h,fe,Tt,Ie):Xn}function as(l,h,g,S,F){const G=l.providerIndexes,fe=h.data,Ie=1048575&G,Ye=l.directiveStart,Tt=G>>20,oi=F?Ie+Tt:l.directiveEnd;for(let gi=S?Ie:Ie+Tt;gi<oi;gi++){const Li=fe[gi];if(gi<Ye&&g===Li||gi>=Ye&&Li.type===g)return gi}if(F){const gi=fe[Ye];if(gi&&sn(gi)&&gi.type===g)return Ye}return null}function ja(l,h,g,S){let F=l[g];const G=h.data;if(function(l){return l instanceof vs}(F)){const fe=F;fe.resolving&&function(l,h){throw new w("200",`Circular dependency in DI detected for ${l}`)}($(G[g]));const Ie=_o(fe.canSeeViewProviders);fe.resolving=!0;const Ye=fe.injectImpl?q(fe.injectImpl):null;Ei(l,S,he.Default);try{F=l[g]=fe.factory(void 0,G,l,S),h.firstCreatePass&&g>=S.directiveStart&&function(l,h,g){const{ngOnChanges:S,ngOnInit:F,ngDoCheck:G}=h.type.prototype;if(S){const fe=Vr(h);(g.preOrderHooks||(g.preOrderHooks=[])).push(l,fe),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(l,fe)}F&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-l,F),G&&((g.preOrderHooks||(g.preOrderHooks=[])).push(l,G),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(l,G))}(g,G[g],h)}finally{null!==Ye&&q(Ye),_o(Ie),fe.resolving=!1,Vn()}}return F}function Fa(l,h,g){return!!(g[h+(l>>5)]&1<<l)}function ys(l,h){return!(l&he.Self||l&he.Host&&h)}class ss{constructor(h,g){this._tNode=h,this._lView=g}get(h,g,S){return xn(this._tNode,this._lView,h,S,g)}}function Ns(l){return Ce(()=>{const h=l.prototype.constructor,g=h[Te]||r1(h),S=Object.prototype;let F=Object.getPrototypeOf(l.prototype).constructor;for(;F&&F!==S;){const G=F[Te]||r1(F);if(G&&G!==g)return G;F=Object.getPrototypeOf(F)}return G=>new G})}function r1(l){return E(l)?()=>{const h=r1(A(l));return h&&h()}:Pr(l)}function a1(l){return function(l,h){if("class"===h)return l.classes;if("style"===h)return l.styles;const g=l.attrs;if(g){const S=g.length;let F=0;for(;F<S;){const G=g[F];if(Rl(G))break;if(0===G)F+=2;else if("number"==typeof G)for(F++;F<S&&"string"==typeof g[F];)F++;else{if(G===h)return g[F+1];F+=2}}}return null}(cr(),l)}const Fo="__parameters__";function Ho(l,h,g){return Ce(()=>{const S=function(l){return function(...g){if(l){const S=l(...g);for(const F in S)this[F]=S[F]}}}(h);function F(...G){if(this instanceof F)return S.apply(this,G),this;const fe=new F(...G);return Ie.annotation=fe,Ie;function Ie(Ye,ut,Tt){const Gt=Ye.hasOwnProperty(Fo)?Ye[Fo]:Object.defineProperty(Ye,Fo,{value:[]})[Fo];for(;Gt.length<=Tt;)Gt.push(null);return(Gt[Tt]=Gt[Tt]||[]).push(fe),Ye}}return g&&(F.prototype=Object.create(g.prototype)),F.prototype.ngMetadataName=l,F.annotationCls=F,F})}class Gr{constructor(h,g){this._desc=h,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=xe({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const pc=new Gr("AnalyzeForEntryComponents");function bs(l,h){void 0===h&&(h=l);for(let g=0;g<l.length;g++){let S=l[g];Array.isArray(S)?(h===l&&(h=l.slice(0,g)),bs(S,h)):h!==l&&h.push(S)}return h}function Bs(l,h){l.forEach(g=>Array.isArray(g)?Bs(g,h):h(g))}function oo(l,h,g){h>=l.length?l.push(g):l.splice(h,0,g)}function nl(l,h){return h>=l.length-1?l.pop():l.splice(h,1)[0]}function Ks(l,h){const g=[];for(let S=0;S<l;S++)g.push(h);return g}function ms(l,h,g){let S=rl(l,h);return S>=0?l[1|S]=g:(S=~S,function(l,h,g,S){let F=l.length;if(F==h)l.push(g,S);else if(1===F)l.push(S,l[0]),l[0]=g;else{for(F--,l.push(l[F-1],l[F]);F>h;)l[F]=l[F-2],F--;l[h]=g,l[h+1]=S}}(l,S,h,g)),S}function d1(l,h){const g=rl(l,h);if(g>=0)return l[1|g]}function rl(l,h){return function(l,h,g){let S=0,F=l.length>>g;for(;F!==S;){const G=S+(F-S>>1),fe=l[G<<g];if(h===fe)return G<<g;fe>h?F=G:S=G+1}return~(F<<g)}(l,h,1)}const Ba={},Ms="__NG_DI_FLAG__",Hs="ngTempTokenPath",p1=/\n/gm,Hl="__source",xc=M({provide:String,useValue:M});let $r;function sl(l){const h=$r;return $r=l,h}function v0(l,h=he.Default){if(void 0===$r)throw new Error("inject() must be called from an injection context");return null===$r?J(l,void 0,h):$r.get(l,h&he.Optional?null:void 0,h)}function Ia(l,h=he.Default){return(Ee||v0)(A(l),h)}const ol=Ia;function m1(l){const h=[];for(let g=0;g<l.length;g++){const S=A(l[g]);if(Array.isArray(S)){if(0===S.length)throw new Error("Arguments array must have arguments.");let F,G=he.Default;for(let fe=0;fe<S.length;fe++){const Ie=S[fe],Ye=g1(Ie);"number"==typeof Ye?-1===Ye?F=Ie.token:G|=Ye:F=Ie}h.push(Ia(F,G))}else h.push(Ia(S))}return h}function Zo(l,h){return l[Ms]=h,l.prototype[Ms]=h,l}function g1(l){return l[Ms]}const yo=Zo(Ho("Inject",l=>({token:l})),-1),bo=Zo(Ho("Optional"),8),zl=Zo(Ho("Self"),2),zs=Zo(Ho("SkipSelf"),4);let En,os;function In(l){var h;return(null===(h=function(){if(void 0===En&&(En=null,Pt.trustedTypes))try{En=Pt.trustedTypes.createPolicy("angular",{createHTML:l=>l,createScript:l=>l,createScriptURL:l=>l})}catch(l){}return En}())||void 0===h?void 0:h.createHTML(l))||l}function Zs(l){var h;return(null===(h=function(){if(void 0===os&&(os=null,Pt.trustedTypes))try{os=Pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:l=>l,createScript:l=>l,createScriptURL:l=>l})}catch(l){}return os}())||void 0===h?void 0:h.createHTML(l))||l}class Js{constructor(h){this.changingThisBreaksApplicationSecurity=h}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class C0 extends Js{getTypeName(){return"HTML"}}class O4 extends Js{getTypeName(){return"Style"}}class hl extends Js{getTypeName(){return"Script"}}class M0 extends Js{getTypeName(){return"URL"}}class _1 extends Js{getTypeName(){return"ResourceURL"}}function Ao(l){return l instanceof Js?l.changingThisBreaksApplicationSecurity:l}function Ul(l,h){const g=dl(l);if(null!=g&&g!==h){if("ResourceURL"===g&&"URL"===h)return!0;throw new Error(`Required a safe ${h}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===h}function dl(l){return l instanceof Js&&l.getTypeName()||null}function ju(l){return new C0(l)}function qu(l){return new O4(l)}function I4(l){return new hl(l)}function k4(l){return new M0(l)}function R4(l){return new _1(l)}class P4{constructor(h){this.inertDocumentHelper=h}getInertBodyElement(h){h="<body><remove></remove>"+h;try{const g=(new window.DOMParser).parseFromString(In(h),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(h):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class N4{constructor(h){if(this.defaultDoc=h,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const S=this.inertDocument.createElement("body");g.appendChild(S)}}getInertBodyElement(h){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=In(h),g;const S=this.inertDocument.createElement("body");return S.innerHTML=In(h),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(S),S}stripCustomNsAttrs(h){const g=h.attributes;for(let F=g.length-1;0<F;F--){const fe=g.item(F).name;("xmlns:ns1"===fe||0===fe.indexOf("ns1:"))&&h.removeAttribute(fe)}let S=h.firstChild;for(;S;)S.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(S),S=S.nextSibling}}const fh=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,H4=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ul(l){return(l=String(l)).match(fh)||l.match(H4)?l:"unsafe:"+l}function Eo(l){const h={};for(const g of l.split(","))h[g]=!0;return h}function Zl(...l){const h={};for(const g of l)for(const S in g)g.hasOwnProperty(S)&&(h[S]=!0);return h}const Qu=Eo("area,br,col,hr,img,wbr"),Ju=Eo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ph=Eo("rp,rt"),pl=Zl(Qu,Zl(Ju,Eo("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Zl(ph,Eo("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Zl(ph,Ju)),w0=Eo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),v1=Eo("srcset"),_h=Zl(w0,v1,Eo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Eo("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),ar=Eo("script,style,template");class Xu{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(h){let g=h.firstChild,S=!0;for(;g;)if(g.nodeType===Node.ELEMENT_NODE?S=this.startElement(g):g.nodeType===Node.TEXT_NODE?this.chars(g.nodeValue):this.sanitizedSomething=!0,S&&g.firstChild)g=g.firstChild;else for(;g;){g.nodeType===Node.ELEMENT_NODE&&this.endElement(g);let F=this.checkClobberedElement(g,g.nextSibling);if(F){g=F;break}g=this.checkClobberedElement(g,g.parentNode)}return this.buf.join("")}startElement(h){const g=h.nodeName.toLowerCase();if(!pl.hasOwnProperty(g))return this.sanitizedSomething=!0,!ar.hasOwnProperty(g);this.buf.push("<"),this.buf.push(g);const S=h.attributes;for(let F=0;F<S.length;F++){const G=S.item(F),fe=G.name,Ie=fe.toLowerCase();if(!_h.hasOwnProperty(Ie)){this.sanitizedSomething=!0;continue}let Ye=G.value;w0[Ie]&&(Ye=ul(Ye)),v1[Ie]&&(l=Ye,Ye=(l=String(l)).split(",").map(h=>ul(h.trim())).join(", ")),this.buf.push(" ",fe,'="',vh(Ye),'"')}var l;return this.buf.push(">"),!0}endElement(h){const g=h.nodeName.toLowerCase();pl.hasOwnProperty(g)&&!Qu.hasOwnProperty(g)&&(this.buf.push("</"),this.buf.push(g),this.buf.push(">"))}chars(h){this.buf.push(vh(h))}checkClobberedElement(h,g){if(g&&(h.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${h.outerHTML}`);return g}}const Ac=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ec=/([^\#-~ |!])/g;function vh(l){return l.replace(/&/g,"&amp;").replace(Ac,function(h){return"&#"+(1024*(h.charCodeAt(0)-55296)+(h.charCodeAt(1)-56320)+65536)+";"}).replace(Ec,function(h){return"&#"+h.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let y1;function yh(l,h){let g=null;try{y1=y1||function(l){const h=new N4(l);return function(){try{return!!(new window.DOMParser).parseFromString(In(""),"text/html")}catch(l){return!1}}()?new P4(h):h}(l);let S=h?String(h):"";g=y1.getInertBodyElement(S);let F=5,G=S;do{if(0===F)throw new Error("Failed to sanitize html because the input is unstable");F--,S=G,G=g.innerHTML,g=y1.getInertBodyElement(S)}while(S!==G);return In((new Xu).sanitizeChildren(A0(g)||g))}finally{if(g){const S=A0(g)||g;for(;S.firstChild;)S.removeChild(S.firstChild)}}}function A0(l){return"content"in l&&function(l){return l.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===l.nodeName}(l)?l.content:null}var ha=(()=>((ha=ha||{})[ha.NONE=0]="NONE",ha[ha.HTML=1]="HTML",ha[ha.STYLE=2]="STYLE",ha[ha.SCRIPT=3]="SCRIPT",ha[ha.URL=4]="URL",ha[ha.RESOURCE_URL=5]="RESOURCE_URL",ha))();function E0(l){const h=Tc();return h?Zs(h.sanitize(ha.HTML,l)||""):Ul(l,"HTML")?Zs(Ao(l)):yh(ra(),j(l))}function T0(l){const h=Tc();return h?h.sanitize(ha.URL,l)||"":Ul(l,"URL")?Ao(l):ul(j(l))}function Tc(){const l=ki();return l&&l[12]}const Mh="__ngContext__";function ls(l,h){l[Mh]=h}function b1(l){const h=function(l){return l[Mh]||null}(l);return h?Array.isArray(h)?h:h.lView:null}function I0(l){return l.ngOriginalError}function pf(l,...h){l.error(...h)}class Dc{constructor(){this._console=console}handleError(h){const g=this._findOriginalError(h),S=(l=h)&&l.ngErrorLogger||pf;var l;S(this._console,"ERROR",h),g&&S(this._console,"ORIGINAL ERROR",g)}_findOriginalError(h){let g=h&&I0(h);for(;g&&I0(g);)g=I0(g);return g||null}}const Oh=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function Ih(l){return l.ownerDocument.defaultView}function ho(l){return l instanceof Function?l():l}var cs=(()=>((cs=cs||{})[cs.Important=1]="Important",cs[cs.DashCase=2]="DashCase",cs))();function C1(l,h){return undefined(l,h)}function Lc(l){const h=l[3];return Nn(h)?h[3]:h}function M1(l){return Tf(l[13])}function P0(l){return Tf(l[4])}function Tf(l){for(;null!==l&&!Nn(l);)l=l[4];return l}function ml(l,h,g,S,F){if(null!=S){let G,fe=!1;Nn(S)?G=S:pn(S)&&(fe=!0,S=S[0]);const Ie=Xe(S);0===l&&null!==g?null==F?H0(h,g,Ie):ws(h,g,Ie,F||null,!0):1===l&&null!==g?ws(h,g,Ie,F||null,!0):2===l?function(l,h,g){const S=T1(l,h);S&&function(l,h,g,S){Zn(l)?l.removeChild(h,g,S):h.removeChild(g)}(l,S,h,g)}(h,Ie,fe):3===l&&h.destroyNode(Ie),null!=G&&function(l,h,g,S,F){const G=g[7];G!==Xe(g)&&ml(h,l,S,G,F);for(let Ie=10;Ie<g.length;Ie++){const Ye=g[Ie];Wl(Ye[1],Ye,l,h,S,G)}}(h,l,G,g,F)}}function w1(l,h,g){return Zn(l)?l.createElement(h,g):null===g?l.createElement(h):l.createElementNS(g,h)}function Fh(l,h){const g=l[9],S=g.indexOf(h),F=h[3];1024&h[2]&&(h[2]&=-1025,wn(F,-1)),g.splice(S,1)}function A1(l,h){if(l.length<=10)return;const g=10+h,S=l[g];if(S){const F=S[17];null!==F&&F!==l&&Fh(F,S),h>0&&(l[g-1][4]=S[4]);const G=nl(l,10+h);!function(l,h){Wl(l,h,h[11],2,null,null),h[0]=null,h[6]=null}(S[1],S);const fe=G[19];null!==fe&&fe.detachView(G[1]),S[3]=null,S[4]=null,S[2]&=-129}return S}function gl(l,h){if(!(256&h[2])){const g=h[11];Zn(g)&&g.destroyNode&&Wl(l,h,g,3,null,null),function(l){let h=l[13];if(!h)return Bh(l[1],l);for(;h;){let g=null;if(pn(h))g=h[13];else{const S=h[10];S&&(g=S)}if(!g){for(;h&&!h[4]&&h!==l;)pn(h)&&Bh(h[1],h),h=h[3];null===h&&(h=l),pn(h)&&Bh(h[1],h),g=h&&h[4]}h=g}}(h)}}function Bh(l,h){if(!(256&h[2])){h[2]&=-129,h[2]|=256,function(l,h){let g;if(null!=l&&null!=(g=l.destroyHooks))for(let S=0;S<g.length;S+=2){const F=h[g[S]];if(!(F instanceof vs)){const G=g[S+1];if(Array.isArray(G))for(let fe=0;fe<G.length;fe+=2){const Ie=F[G[fe]],Ye=G[fe+1];try{Ye.call(Ie)}finally{}}else try{G.call(F)}finally{}}}}(l,h),function(l,h){const g=l.cleanup,S=h[7];let F=-1;if(null!==g)for(let G=0;G<g.length-1;G+=2)if("string"==typeof g[G]){const fe=g[G+1],Ie="function"==typeof fe?fe(h):Xe(h[fe]),Ye=S[F=g[G+2]],ut=g[G+3];"boolean"==typeof ut?Ie.removeEventListener(g[G],Ye,ut):ut>=0?S[F=ut]():S[F=-ut].unsubscribe(),G+=2}else{const fe=S[F=g[G+1]];g[G].call(fe)}if(null!==S){for(let G=F+1;G<S.length;G++)S[G]();h[7]=null}}(l,h),1===h[1].type&&Zn(h[11])&&h[11].destroy();const g=h[17];if(null!==g&&Nn(h[3])){g!==h[3]&&Fh(g,h);const S=h[19];null!==S&&S.detachView(l)}}}function Hh(l,h,g){return function(l,h,g){let S=h;for(;null!==S&&40&S.type;)S=(h=S).parent;if(null===S)return g[0];if(2&S.flags){const F=l.data[S.directiveStart].encapsulation;if(F===ft.None||F===ft.Emulated)return null}return Qe(S,g)}(l,h.parent,g)}function ws(l,h,g,S,F){Zn(l)?l.insertBefore(h,g,S,F):h.insertBefore(g,S,F)}function H0(l,h,g){Zn(l)?l.appendChild(h,g):h.appendChild(g)}function Oc(l,h,g,S,F){null!==S?ws(l,h,g,S,F):H0(l,h,g)}function T1(l,h){return Zn(l)?l.parentNode(h):h.parentNode}function _l(l,h,g){return Uh(l,h,g)}let Uh=function(l,h,g){return 40&l.type?Qe(l,g):null};function Ic(l,h,g,S){const F=Hh(l,S,h),G=h[11],Ie=_l(S.parent||h[6],S,h);if(null!=F)if(Array.isArray(g))for(let Ye=0;Ye<g.length;Ye++)Oc(G,F,g[Ye],Ie,!1);else Oc(G,F,g,Ie,!1)}function D1(l,h){if(null!==h){const g=h.type;if(3&g)return Qe(h,l);if(4&g)return L1(-1,l[h.index]);if(8&g){const S=h.child;if(null!==S)return D1(l,S);{const F=l[h.index];return Nn(F)?L1(-1,F):Xe(F)}}if(32&g)return C1(h,l)()||Xe(l[h.index]);{const S=Z0(l,h);return null!==S?Array.isArray(S)?S[0]:D1(Lc(l[16]),S):D1(l,h.next)}}return null}function Z0(l,h){return null!==h?l[16][6].projection[h.projection]:null}function L1(l,h){const g=10+l+1;if(g<h.length){const S=h[g],F=S[1].firstChild;if(null!==F)return D1(S,F)}return h[7]}function O1(l,h,g,S,F,G,fe){for(;null!=g;){const Ie=S[g.index],Ye=g.type;if(fe&&0===h&&(Ie&&ls(Xe(Ie),S),g.flags|=4),64!=(64&g.flags))if(8&Ye)O1(l,h,g.child,S,F,G,!1),ml(h,l,F,Ie,G);else if(32&Ye){const ut=C1(g,S);let Tt;for(;Tt=ut();)ml(h,l,F,Tt,G);ml(h,l,F,Ie,G)}else 16&Ye?kc(l,h,S,g,F,G):ml(h,l,F,Ie,G);g=fe?g.projectionNext:g.next}}function Wl(l,h,g,S,F,G){O1(g,S,l.firstChild,h,F,G,!1)}function kc(l,h,g,S,F,G){const fe=g[16],Ye=fe[6].projection[S.projection];if(Array.isArray(Ye))for(let ut=0;ut<Ye.length;ut++)ml(h,l,F,Ye[ut],G);else O1(l,h,Ye,fe[3],F,G,!0)}function Vh(l,h,g){Zn(l)?l.setAttribute(h,"style",g):h.style.cssText=g}function W0(l,h,g){Zn(l)?""===g?l.removeAttribute(h,"class"):l.setAttribute(h,"class",g):h.className=g}function Gh(l,h,g){let S=l.length;for(;;){const F=l.indexOf(h,g);if(-1===F)return F;if(0===F||l.charCodeAt(F-1)<=32){const G=h.length;if(F+G===S||l.charCodeAt(F+G)<=32)return F}g=F+1}}const Wh="ng-template";function Er(l,h,g){let S=0;for(;S<l.length;){let F=l[S++];if(g&&"class"===F){if(F=l[S],-1!==Gh(F.toLowerCase(),h,0))return!0}else if(1===F){for(;S<l.length&&"string"==typeof(F=l[S++]);)if(F.toLowerCase()===h)return!0;return!1}}return!1}function Y0(l){return 4===l.type&&l.value!==Wh}function Yh(l,h,g){return h===(4!==l.type||g?l.value:Wh)}function I1(l,h,g){let S=4;const F=l.attrs||[],G=function(l){for(let h=0;h<l.length;h++)if(Rl(l[h]))return h;return l.length}(F);let fe=!1;for(let Ie=0;Ie<h.length;Ie++){const Ye=h[Ie];if("number"!=typeof Ye){if(!fe)if(4&S){if(S=2|1&S,""!==Ye&&!Yh(l,Ye,g)||""===Ye&&1===h.length){if(Tr(S))return!1;fe=!0}}else{const ut=8&S?Ye:h[++Ie];if(8&S&&null!==l.attrs){if(!Er(l.attrs,ut,g)){if(Tr(S))return!1;fe=!0}continue}const Gt=jh(8&S?"class":Ye,F,Y0(l),g);if(-1===Gt){if(Tr(S))return!1;fe=!0;continue}if(""!==ut){let oi;oi=Gt>G?"":F[Gt+1].toLowerCase();const gi=8&S?oi:null;if(gi&&-1!==Gh(gi,ut,0)||2&S&&ut!==oi){if(Tr(S))return!1;fe=!0}}}}else{if(!fe&&!Tr(S)&&!Tr(Ye))return!1;if(fe&&Tr(Ye))continue;fe=!1,S=Ye|1&S}}return Tr(S)||fe}function Tr(l){return 0==(1&l)}function jh(l,h,g,S){if(null===h)return-1;let F=0;if(S||!g){let G=!1;for(;F<h.length;){const fe=h[F];if(fe===l)return F;if(3===fe||6===fe)G=!0;else{if(1===fe||2===fe){let Ie=h[++F];for(;"string"==typeof Ie;)Ie=h[++F];continue}if(4===fe)break;if(0===fe){F+=4;continue}}F+=G?1:2}return-1}return function(l,h){let g=l.indexOf(4);if(g>-1)for(g++;g<l.length;){const S=l[g];if("number"==typeof S)return-1;if(S===h)return g;g++}return-1}(h,l)}function Go(l,h,g=!1){for(let S=0;S<h.length;S++)if(I1(l,h[S],g))return!0;return!1}function Rc(l,h){e:for(let g=0;g<h.length;g++){const S=h[g];if(l.length===S.length){for(let F=0;F<l.length;F++)if(l[F]!==S[F])continue e;return!0}}return!1}function P1(l,h){return l?":not("+h.trim()+")":h}function Pf(l){let h=l[0],g=1,S=2,F="",G=!1;for(;g<l.length;){let fe=l[g];if("string"==typeof fe)if(2&S){const Ie=l[++g];F+="["+fe+(Ie.length>0?'="'+Ie+'"':"")+"]"}else 8&S?F+="."+fe:4&S&&(F+=" "+fe);else""!==F&&!Tr(fe)&&(h+=P1(G,F),F=""),S=fe,G=G||!Tr(S);g++}return""!==F&&(h+=P1(G,F)),h}const Dn={};function N1(l){F1(Fn(),ki(),Yn()+l,kt())}function F1(l,h,g,S){if(!S)if(3==(3&h[2])){const G=l.preOrderCheckHooks;null!==G&&Wn(h,G,g)}else{const G=l.preOrderHooks;null!==G&&ps(h,G,0,g)}mr(g)}function B1(l,h){return l<<17|h<<2}function As(l){return l>>17&32767}function Jh(l){return 2|l}function Xs(l){return(131068&l)>>2}function Jn(l,h){return-131069&l|h<<2}function H1(l){return 1|l}function nd(l,h){const g=l.contentQueries;if(null!==g)for(let S=0;S<g.length;S+=2){const F=g[S],G=g[S+1];if(-1!==G){const fe=l.data[G];vi(F),fe.contentQueries(2,h[G],G)}}}function Fc(l,h,g,S,F,G,fe,Ie,Ye,ut){const Tt=h.blueprint.slice();return Tt[0]=F,Tt[2]=140|S,vn(Tt),Tt[3]=Tt[15]=l,Tt[8]=g,Tt[10]=fe||l&&l[10],Tt[11]=Ie||l&&l[11],Tt[12]=Ye||l&&l[12]||null,Tt[9]=ut||l&&l[9]||null,Tt[6]=G,Tt[16]=2==h.type?l[16]:Tt,Tt}function ql(l,h,g,S,F){let G=l.data[h];if(null===G)G=function(l,h,g,S,F){const G=js(),fe=ie(),Ye=l.data[h]=function(l,h,g,S,F,G){return{type:g,index:S,insertBeforeIndex:null,injectorIndex:h?h.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:F,attrs:G,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:h,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,fe?G:G&&G.parent,g,h,S,F);return null===l.firstChild&&(l.firstChild=Ye),null!==G&&(fe?null==G.child&&null!==Ye.parent&&(G.child=Ye):null===G.next&&(G.next=Ye)),Ye}(l,h,g,S,F),Qi.lFrame.inI18n&&(G.flags|=64);else if(64&G.type){G.type=g,G.value=S,G.attrs=F;const fe=function(){const l=Qi.lFrame,h=l.currentTNode;return l.isParent?h:h.parent}();G.injectorIndex=null===fe?-1:fe.injectorIndex}return bt(G,!0),G}function Bc(l,h,g,S){if(0===g)return-1;const F=h.length;for(let G=0;G<g;G++)h.push(S),l.blueprint.push(S),l.data.push(null);return F}function jo(l,h,g){ji(h);try{const S=l.viewQuery;null!==S&&m2(1,S,g);const F=l.template;null!==F&&rd(l,h,F,1,g),l.firstCreatePass&&(l.firstCreatePass=!1),l.staticContentQueries&&nd(l,h),l.staticViewQueries&&m2(2,l.viewQuery,g);const G=l.components;null!==G&&function(l,h){for(let g=0;g<h.length;g++)a6(l,h[g])}(h,G)}catch(S){throw l.firstCreatePass&&(l.incompleteFirstPass=!0,l.firstCreatePass=!1),S}finally{h[2]&=-5,Mr()}}function uo(l,h,g,S){const F=h[2];if(256==(256&F))return;ji(h);const G=kt();try{vn(h),function(l){Qi.lFrame.bindingIndex=l}(l.bindingStartIndex),null!==g&&rd(l,h,g,2,S);const fe=3==(3&F);if(!G)if(fe){const ut=l.preOrderCheckHooks;null!==ut&&Wn(h,ut,null)}else{const ut=l.preOrderHooks;null!==ut&&ps(h,ut,0,null),La(h,0)}if(function(l){for(let h=M1(l);null!==h;h=P0(h)){if(!h[2])continue;const g=h[9];for(let S=0;S<g.length;S++){const F=g[S],G=F[3];0==(1024&F[2])&&wn(G,1),F[2]|=1024}}}(h),function(l){for(let h=M1(l);null!==h;h=P0(h))for(let g=10;g<h.length;g++){const S=h[g],F=S[1];Wt(S)&&uo(F,S,F.template,S[8])}}(h),null!==l.contentQueries&&nd(l,h),!G)if(fe){const ut=l.contentCheckHooks;null!==ut&&Wn(h,ut)}else{const ut=l.contentHooks;null!==ut&&ps(h,ut,1),La(h,1)}!function(l,h){const g=l.hostBindingOpCodes;if(null!==g)try{for(let S=0;S<g.length;S++){const F=g[S];if(F<0)mr(~F);else{const G=F,fe=g[++S],Ie=g[++S];tt(fe,G),Ie(2,h[G])}}}finally{mr(-1)}}(l,h);const Ie=l.components;null!==Ie&&function(l,h){for(let g=0;g<h.length;g++)bd(l,h[g])}(h,Ie);const Ye=l.viewQuery;if(null!==Ye&&m2(2,Ye,S),!G)if(fe){const ut=l.viewCheckHooks;null!==ut&&Wn(h,ut)}else{const ut=l.viewHooks;null!==ut&&ps(h,ut,2),La(h,2)}!0===l.firstUpdatePass&&(l.firstUpdatePass=!1),G||(h[2]&=-73),1024&h[2]&&(h[2]&=-1025,wn(h[3],-1))}finally{Mr()}}function Hc(l,h,g,S){const F=h[10],G=!kt(),fe=yt(h);try{G&&!fe&&F.begin&&F.begin(),fe&&jo(l,h,S),uo(l,h,g,S)}finally{G&&!fe&&F.end&&F.end()}}function rd(l,h,g,S,F){const G=Yn(),fe=2&S;try{mr(-1),fe&&h.length>20&&F1(l,h,20,kt()),g(S,F)}finally{mr(G)}}function ad(l,h,g){if(br(h)){const F=h.directiveEnd;for(let G=h.directiveStart;G<F;G++){const fe=l.data[G];fe.contentQueries&&fe.contentQueries(1,g[G],G)}}}function l2(l,h,g){!Lr()||(function(l,h,g,S){const F=g.directiveStart,G=g.directiveEnd;l.firstCreatePass||Je(g,h),ls(S,h);const fe=g.initialInputs;for(let Ie=F;Ie<G;Ie++){const Ye=l.data[Ie],ut=sn(Ye);ut&&vd(h,g,Ye);const Tt=ja(h,l,Ie,g);ls(Tt,h),null!==fe&&t6(0,Ie-F,Tt,Ye,0,fe),ut&&(ei(g.index,h)[8]=Tt)}}(l,h,g,Qe(g,h)),128==(128&g.flags)&&function(l,h,g){const S=g.directiveStart,F=g.directiveEnd,fe=g.index,Ie=Qi.lFrame.currentDirectiveIndex;try{mr(fe);for(let Ye=S;Ye<F;Ye++){const ut=l.data[Ye],Tt=h[Ye];It(Ye),(null!==ut.hostBindings||0!==ut.hostVars||null!==ut.hostAttrs)&&pd(ut,Tt)}}finally{mr(-1),It(Ie)}}(l,h,g))}function c2(l,h,g=Qe){const S=h.localNames;if(null!==S){let F=h.index+1;for(let G=0;G<S.length;G+=2){const fe=S[G+1],Ie=-1===fe?g(h,l):l[fe];l[F++]=Ie}}}function sd(l){const h=l.tView;return null===h||h.incompleteFirstPass?l.tView=zc(1,null,l.template,l.decls,l.vars,l.directiveDefs,l.pipeDefs,l.viewQuery,l.schemas,l.consts):h}function zc(l,h,g,S,F,G,fe,Ie,Ye,ut){const Tt=20+S,Gt=Tt+F,oi=function(l,h){const g=[];for(let S=0;S<h;S++)g.push(S<l?null:Dn);return g}(Tt,Gt),gi="function"==typeof ut?ut():ut;return oi[1]={type:l,blueprint:oi,template:g,queries:null,viewQuery:Ie,declTNode:h,data:oi.slice().fill(null,Tt),bindingStartIndex:Tt,expandoStartIndex:Gt,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof G?G():G,pipeRegistry:"function"==typeof fe?fe():fe,firstChild:null,schemas:Ye,consts:gi,incompleteFirstPass:!1}}function cd(l,h,g,S){const F=g2(h);null===g?F.push(S):(F.push(g),l.firstCreatePass&&Cd(l).push(S,F.length-1))}function hd(l,h,g){for(let S in l)if(l.hasOwnProperty(S)){const F=l[S];(g=null===g?{}:g).hasOwnProperty(S)?g[S].push(h,F):g[S]=[h,F]}return g}function Es(l,h,g,S,F,G,fe,Ie){const Ye=Qe(h,g);let Tt,ut=h.inputs;!Ie&&null!=ut&&(Tt=ut[S])?(Ad(l,g,Tt,S,F),wi(h)&&function(l,h){const g=ei(h,l);16&g[2]||(g[2]|=64)}(g,h.index)):3&h.type&&(S=function(l){return"class"===l?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l}(S),F=null!=fe?fe(F,h.value||"",S):F,Zn(G)?G.setProperty(Ye,S,F):Xo(S)||(Ye.setProperty?Ye.setProperty(S,F):Ye[S]=F))}function h2(l,h,g,S){let F=!1;if(Lr()){const G=function(l,h,g){const S=l.directiveRegistry;let F=null;if(S)for(let G=0;G<S.length;G++){const fe=S[G];Go(g,fe.selectors,!1)&&(F||(F=[]),ii(Je(g,h),l,fe.type),sn(fe)?(md(l,g),F.unshift(fe)):F.push(fe))}return F}(l,h,g),fe=null===S?null:{"":-1};if(null!==G){F=!0,gd(g,l.data.length,G.length);for(let Tt=0;Tt<G.length;Tt++){const Gt=G[Tt];Gt.providersResolver&&Gt.providersResolver(Gt)}let Ie=!1,Ye=!1,ut=Bc(l,h,G.length,null);for(let Tt=0;Tt<G.length;Tt++){const Gt=G[Tt];g.mergedAttrs=go(g.mergedAttrs,Gt.hostAttrs),_d(l,g,h,ut,Gt),e6(ut,Gt,fe),null!==Gt.contentQueries&&(g.flags|=8),(null!==Gt.hostBindings||null!==Gt.hostAttrs||0!==Gt.hostVars)&&(g.flags|=128);const oi=Gt.type.prototype;!Ie&&(oi.ngOnChanges||oi.ngOnInit||oi.ngDoCheck)&&((l.preOrderHooks||(l.preOrderHooks=[])).push(g.index),Ie=!0),!Ye&&(oi.ngOnChanges||oi.ngDoCheck)&&((l.preOrderCheckHooks||(l.preOrderCheckHooks=[])).push(g.index),Ye=!0),ut++}!function(l,h){const S=h.directiveEnd,F=l.data,G=h.attrs,fe=[];let Ie=null,Ye=null;for(let ut=h.directiveStart;ut<S;ut++){const Tt=F[ut],Gt=Tt.inputs,oi=null===G||Y0(h)?null:i6(Gt,G);fe.push(oi),Ie=hd(Gt,ut,Ie),Ye=hd(Tt.outputs,ut,Ye)}null!==Ie&&(Ie.hasOwnProperty("class")&&(h.flags|=16),Ie.hasOwnProperty("style")&&(h.flags|=32)),h.initialInputs=fe,h.inputs=Ie,h.outputs=Ye}(l,g)}fe&&function(l,h,g){if(h){const S=l.localNames=[];for(let F=0;F<h.length;F+=2){const G=g[h[F+1]];if(null==G)throw new w("301",`Export of name '${h[F+1]}' not found!`);S.push(h[F],G)}}}(g,S,fe)}return g.mergedAttrs=go(g.mergedAttrs,g.attrs),F}function d2(l,h,g,S,F,G){const fe=G.hostBindings;if(fe){let Ie=l.hostBindingOpCodes;null===Ie&&(Ie=l.hostBindingOpCodes=[]);const Ye=~h.index;(function(l){let h=l.length;for(;h>0;){const g=l[--h];if("number"==typeof g&&g<0)return g}return 0})(Ie)!=Ye&&Ie.push(Ye),Ie.push(S,F,fe)}}function pd(l,h){null!==l.hostBindings&&l.hostBindings(1,h)}function md(l,h){h.flags|=2,(l.components||(l.components=[])).push(h.index)}function e6(l,h,g){if(g){if(h.exportAs)for(let S=0;S<h.exportAs.length;S++)g[h.exportAs[S]]=l;sn(h)&&(g[""]=l)}}function gd(l,h,g){l.flags|=1,l.directiveStart=h,l.directiveEnd=h+g,l.providerIndexes=h}function _d(l,h,g,S,F){l.data[S]=F;const G=F.factory||(F.factory=Pr(F.type)),fe=new vs(G,sn(F),null);l.blueprint[S]=fe,g[S]=fe,d2(l,h,0,S,Bc(l,g,F.hostVars,Dn),F)}function vd(l,h,g){const S=Qe(h,l),F=sd(g),G=l[10],fe=G1(l,Fc(l,F,null,g.onPush?64:16,S,h,G,G.createRenderer(S,g),null,null));l[h.index]=fe}function fo(l,h,g,S,F,G){const fe=Qe(l,h);!function(l,h,g,S,F,G,fe){if(null==G)Zn(l)?l.removeAttribute(h,F,g):h.removeAttribute(F);else{const Ie=null==fe?j(G):fe(G,S||"",F);Zn(l)?l.setAttribute(h,F,Ie,g):g?h.setAttributeNS(g,F,Ie):h.setAttribute(F,Ie)}}(h[11],fe,G,l.value,g,S,F)}function t6(l,h,g,S,F,G){const fe=G[h];if(null!==fe){const Ie=S.setInput;for(let Ye=0;Ye<fe.length;){const ut=fe[Ye++],Tt=fe[Ye++],Gt=fe[Ye++];null!==Ie?S.setInput(g,Gt,ut,Tt):g[Tt]=Gt}}}function i6(l,h){let g=null,S=0;for(;S<h.length;){const F=h[S];if(0!==F)if(5!==F){if("number"==typeof F)break;l.hasOwnProperty(F)&&(null===g&&(g=[]),g.push(F,l[F],h[S+1])),S+=2}else S+=2;else S+=4}return g}function yd(l,h,g,S){return new Array(l,!0,!1,h,null,0,S,g,null,null)}function bd(l,h){const g=ei(h,l);if(Wt(g)){const S=g[1];80&g[2]?uo(S,g,S.template,g[8]):g[5]>0&&u2(g)}}function u2(l){for(let S=M1(l);null!==S;S=P0(S))for(let F=10;F<S.length;F++){const G=S[F];if(1024&G[2]){const fe=G[1];uo(fe,G,fe.template,G[8])}else G[5]>0&&u2(G)}const g=l[1].components;if(null!==g)for(let S=0;S<g.length;S++){const F=ei(g[S],l);Wt(F)&&F[5]>0&&u2(F)}}function a6(l,h){const g=ei(h,l),S=g[1];(function(l,h){for(let g=h.length;g<l.blueprint.length;g++)h.push(l.blueprint[g])})(S,g),jo(S,g,g[8])}function G1(l,h){return l[13]?l[14][4]=h:l[13]=h,l[14]=h,h}function W1(l){for(;l;){l[2]|=64;const h=Lc(l);if(Sr(l)&&!h)return l;l=h}return null}function p2(l,h,g){const S=h[10];S.begin&&S.begin();try{uo(l,h,l.template,g)}catch(F){throw wd(h,F),F}finally{S.end&&S.end()}}function xd(l){!function(l){for(let h=0;h<l.components.length;h++){const g=l.components[h],S=b1(g),F=S[1];Hc(F,S,F.template,g)}}(l[8])}function m2(l,h,g){vi(0),h(l,g)}const h6=(()=>Promise.resolve(null))();function g2(l){return l[7]||(l[7]=[])}function Cd(l){return l.cleanup||(l.cleanup=[])}function Md(l,h,g){return(null===l||sn(l))&&(g=function(l){for(;Array.isArray(l);){if("object"==typeof l[1])return l;l=l[0]}return null}(g[h.index])),g[11]}function wd(l,h){const g=l[9],S=g?g.get(Dc,null):null;S&&S.handleError(h)}function Ad(l,h,g,S,F){for(let G=0;G<g.length;){const fe=g[G++],Ie=g[G++],Ye=h[fe],ut=l.data[fe];null!==ut.setInput?ut.setInput(Ye,F,S,Ie):Ye[Ie]=F}}function To(l,h,g){const S=ne(h,l);!function(l,h,g){Zn(l)?l.setValue(h,g):h.textContent=g}(l[11],S,g)}function Y1(l,h,g){let S=g?l.styles:null,F=g?l.classes:null,G=0;if(null!==h)for(let fe=0;fe<h.length;fe++){const Ie=h[fe];"number"==typeof Ie?G=Ie:1==G?F=o(F,Ie):2==G&&(S=o(S,Ie+": "+h[++fe]+";"))}g?l.styles=S:l.stylesWithoutHost=S,g?l.classes=F:l.classesWithoutHost=F}const _2=new Gr("INJECTOR",-1);class Ed{get(h,g=Ba){if(g===Ba){const S=new Error(`NullInjectorError: No provider for ${N(h)}!`);throw S.name="NullInjectorError",S}return g}}const v2=new Gr("Set Injector scope."),Zc={},f6={};let y2;function Td(){return void 0===y2&&(y2=new Ed),y2}function b2(l,h=null,g=null,S){const F=Sd(l,h,g,S);return F._resolveInjectorDefTypes(),F}function Sd(l,h=null,g=null,S){return new p6(l,g,h||Td(),S)}class p6{constructor(h,g,S,F=null){this.parent=S,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const G=[];g&&Bs(g,Ie=>this.processProvider(Ie,h,g)),Bs([h],Ie=>this.processInjectorType(Ie,[],G)),this.records.set(_2,Kl(void 0,this));const fe=this.records.get(v2);this.scope=null!=fe?fe.value:null,this.source=F||("object"==typeof h?null:N(h))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(h=>h.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(h,g=Ba,S=he.Default){this.assertNotDestroyed();const F=sl(this),G=q(void 0);try{if(!(S&he.SkipSelf)){let Ie=this.records.get(h);if(void 0===Ie){const Ye=("function"==typeof(l=h)||"object"==typeof l&&l instanceof Gr)&&Oe(h);Ie=Ye&&this.injectableDefInScope(Ye)?Kl(x2(h),Zc):null,this.records.set(h,Ie)}if(null!=Ie)return this.hydrate(h,Ie)}return(S&he.Self?Td():this.parent).get(h,g=S&he.Optional&&g===Ba?null:g)}catch(fe){if("NullInjectorError"===fe.name){if((fe[Hs]=fe[Hs]||[]).unshift(N(h)),F)throw fe;return function(l,h,g,S){const F=l[Hs];throw h[Hl]&&F.unshift(h[Hl]),l.message=function(l,h,g,S=null){l=l&&"\n"===l.charAt(0)&&"\u0275"==l.charAt(1)?l.substr(2):l;let F=N(h);if(Array.isArray(h))F=h.map(N).join(" -> ");else if("object"==typeof h){let G=[];for(let fe in h)if(h.hasOwnProperty(fe)){let Ie=h[fe];G.push(fe+":"+("string"==typeof Ie?JSON.stringify(Ie):N(Ie)))}F=`{${G.join(", ")}}`}return`${g}${S?"("+S+")":""}[${F}]: ${l.replace(p1,"\n ")}`}("\n"+l.message,F,g,S),l.ngTokenPath=F,l[Hs]=null,l}(fe,h,"R3InjectorError",this.source)}throw fe}finally{q(G),sl(F)}var l}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(h=>this.get(h))}toString(){const h=[];return this.records.forEach((S,F)=>h.push(N(F))),`R3Injector[${h.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(h,g,S){if(!(h=A(h)))return!1;let F=ae(h);const G=null==F&&h.ngModule||void 0,fe=void 0===G?h:G,Ie=-1!==S.indexOf(fe);if(void 0!==G&&(F=ae(G)),null==F)return!1;if(null!=F.imports&&!Ie){let Tt;S.push(fe);try{Bs(F.imports,Gt=>{this.processInjectorType(Gt,g,S)&&(void 0===Tt&&(Tt=[]),Tt.push(Gt))})}finally{}if(void 0!==Tt)for(let Gt=0;Gt<Tt.length;Gt++){const{ngModule:oi,providers:gi}=Tt[Gt];Bs(gi,Li=>this.processProvider(Li,oi,gi||ti))}}this.injectorDefTypes.add(fe);const Ye=Pr(fe)||(()=>new fe);this.records.set(fe,Kl(Ye,Zc));const ut=F.providers;if(null!=ut&&!Ie){const Tt=h;Bs(ut,Gt=>this.processProvider(Gt,Tt,ut))}return void 0!==G&&void 0!==h.providers}processProvider(h,g,S){let F=Fr(h=A(h))?h:A(h&&h.provide);const G=(l=h,Ld(l)?Kl(void 0,l.useValue):Kl(Dd(l),Zc));var l;if(Fr(h)||!0!==h.multi)this.records.get(F);else{let fe=this.records.get(F);fe||(fe=Kl(void 0,Zc,!0),fe.factory=()=>m1(fe.multi),this.records.set(F,fe)),F=h,fe.multi.push(h)}this.records.set(F,G)}hydrate(h,g){return g.value===Zc&&(g.value=f6,g.value=g.factory()),"object"==typeof g.value&&g.value&&null!==(l=g.value)&&"object"==typeof l&&"function"==typeof l.ngOnDestroy&&this.onDestroy.add(g.value),g.value;var l}injectableDefInScope(h){if(!h.providedIn)return!1;const g=A(h.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function x2(l){const h=Oe(l),g=null!==h?h.factory:Pr(l);if(null!==g)return g;if(l instanceof Gr)throw new Error(`Token ${N(l)} is missing a \u0275prov definition.`);if(l instanceof Function)return function(l){const h=l.length;if(h>0){const S=Ks(h,"?");throw new Error(`Can't resolve all parameters for ${N(l)}: (${S.join(", ")}).`)}const g=function(l){const h=l&&(l[We]||l[Pe]);if(h){const g=function(l){if(l.hasOwnProperty("name"))return l.name;const h=(""+l).match(/^function\s*([^\s(]+)/);return null===h?"":h[1]}(l);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${g}" class.`),h}return null}(l);return null!==g?()=>g.factory(l):()=>new l}(l);throw new Error("unreachable")}function Dd(l,h,g){let S;if(Fr(l)){const F=A(l);return Pr(F)||x2(F)}if(Ld(l))S=()=>A(l.useValue);else if(function(l){return!(!l||!l.useFactory)}(l))S=()=>l.useFactory(...m1(l.deps||[]));else if(function(l){return!(!l||!l.useExisting)}(l))S=()=>Ia(A(l.useExisting));else{const F=A(l&&(l.useClass||l.provide));if(!function(l){return!!l.deps}(l))return Pr(F)||x2(F);S=()=>new F(...m1(l.deps))}return S}function Kl(l,h,g=!1){return{factory:l,value:h,multi:g?[]:void 0}}function Ld(l){return null!==l&&"object"==typeof l&&xc in l}function Fr(l){return"function"==typeof l}let Vs=(()=>{class l{static create(g,S){var F;if(Array.isArray(g))return b2({name:""},S,g,"");{const G=null!==(F=g.name)&&void 0!==F?F:"";return b2({name:G},g.parent,g.providers,G)}}}return l.THROW_IF_NOT_FOUND=Ba,l.NULL=new Ed,l.\u0275prov=xe({token:l,providedIn:"any",factory:()=>Ia(_2)}),l.__NG_ELEMENT_ID__=-1,l})();function S6(l,h){ca(b1(l)[1],cr())}function w2(l){let h=function(l){return Object.getPrototypeOf(l.prototype).constructor}(l.type),g=!0;const S=[l];for(;h;){let F;if(sn(l))F=h.\u0275cmp||h.\u0275dir;else{if(h.\u0275cmp)throw new Error("Directives cannot inherit Components");F=h.\u0275dir}if(F){if(g){S.push(F);const fe=l;fe.inputs=A2(l.inputs),fe.declaredInputs=A2(l.declaredInputs),fe.outputs=A2(l.outputs);const Ie=F.hostBindings;Ie&&I6(l,Ie);const Ye=F.viewQuery,ut=F.contentQueries;if(Ye&&L6(l,Ye),ut&&O6(l,ut),c(l.inputs,F.inputs),c(l.declaredInputs,F.declaredInputs),c(l.outputs,F.outputs),sn(F)&&F.data.animation){const Tt=l.data;Tt.animation=(Tt.animation||[]).concat(F.data.animation)}}const G=F.features;if(G)for(let fe=0;fe<G.length;fe++){const Ie=G[fe];Ie&&Ie.ngInherit&&Ie(l),Ie===w2&&(g=!1)}}h=Object.getPrototypeOf(h)}!function(l){let h=0,g=null;for(let S=l.length-1;S>=0;S--){const F=l[S];F.hostVars=h+=F.hostVars,F.hostAttrs=go(F.hostAttrs,g=go(g,F.hostAttrs))}}(S)}function A2(l){return l===jt?{}:l===ti?[]:l}function L6(l,h){const g=l.viewQuery;l.viewQuery=g?(S,F)=>{h(S,F),g(S,F)}:h}function O6(l,h){const g=l.contentQueries;l.contentQueries=g?(S,F,G)=>{h(S,F,G),g(S,F,G)}:h}function I6(l,h){const g=l.hostBindings;l.hostBindings=g?(S,F)=>{h(S,F),g(S,F)}:h}let q1=null;function Ql(){if(!q1){const l=Pt.Symbol;if(l&&l.iterator)q1=l.iterator;else{const h=Object.getOwnPropertyNames(Map.prototype);for(let g=0;g<h.length;++g){const S=h[g];"entries"!==S&&"size"!==S&&Map.prototype[S]===Map.prototype.entries&&(q1=S)}}}return q1}function Vc(l){return!!E2(l)&&(Array.isArray(l)||!(l instanceof Map)&&Ql()in l)}function E2(l){return null!==l&&("function"==typeof l||"object"==typeof l)}function po(l,h,g){return l[h]=g}function hs(l,h,g){return!Object.is(l[h],g)&&(l[h]=g,!0)}function Cl(l,h,g,S){const F=hs(l,h,g);return hs(l,h+1,S)||F}function T2(l,h,g,S){const F=ki();return hs(F,Zi(),h)&&(Fn(),fo(Bi(),F,l,h,g,S)),T2}function Xl(l,h,g,S){return hs(l,Zi(),g)?h+j(g)+S:Dn}function tc(l,h,g,S,F,G,fe,Ie,Ye,ut){const Gt=function(l,h,g,S,F,G){const fe=Cl(l,h,g,S);return Cl(l,h+2,F,G)||fe}(l,fi(),g,F,fe,Ye);return en(4),Gt?h+j(g)+S+j(F)+G+j(fe)+Ie+j(Ye)+ut:Dn}function Jd(l,h,g,S,F,G,fe,Ie){const Ye=ki(),ut=Fn(),Tt=l+20,Gt=ut.firstCreatePass?function(l,h,g,S,F,G,fe,Ie,Ye){const ut=h.consts,Tt=ql(h,l,4,fe||null,zi(ut,Ie));h2(h,g,Tt,zi(ut,Ye)),ca(h,Tt);const Gt=Tt.tViews=zc(2,Tt,S,F,G,h.directiveRegistry,h.pipeRegistry,null,h.schemas,ut);return null!==h.queries&&(h.queries.template(h,Tt),Gt.queries=h.queries.embeddedTView(Tt)),Tt}(Tt,ut,Ye,h,g,S,F,G,fe):ut.data[Tt];bt(Gt,!1);const oi=Ye[11].createComment("");Ic(ut,Ye,oi,Gt),ls(oi,Ye),G1(Ye,Ye[Tt]=yd(oi,Ye,oi,Gt)),Fi(Gt)&&l2(ut,Ye,Gt),null!=fe&&c2(Ye,Gt,Ie)}function Xd(l){return xt(Qi.lFrame.contextLView,20+l)}function Wc(l,h=he.Default){const g=ki();return null===g?Ia(l,h):xn(cr(),g,A(l),h)}function hu(){throw new Error("invalid")}function I2(l,h,g){const S=ki();return hs(S,Zi(),h)&&Es(Fn(),Bi(),S,l,h,S[11],g,!1),I2}function k2(l,h,g,S,F){const fe=F?"class":"style";Ad(l,g,h.inputs[fe],fe,S)}function R2(l,h,g,S){const F=ki(),G=Fn(),fe=20+l,Ie=F[11],Ye=F[fe]=w1(Ie,h,Qi.lFrame.currentNamespace),ut=G.firstCreatePass?function(l,h,g,S,F,G,fe){const Ie=h.consts,ut=ql(h,l,2,F,zi(Ie,G));return h2(h,g,ut,zi(Ie,fe)),null!==ut.attrs&&Y1(ut,ut.attrs,!1),null!==ut.mergedAttrs&&Y1(ut,ut.mergedAttrs,!0),null!==h.queries&&h.queries.elementStart(h,ut),ut}(fe,G,F,0,h,g,S):G.data[fe];bt(ut,!0);const Tt=ut.mergedAttrs;null!==Tt&&Po(Ie,Ye,Tt);const Gt=ut.classes;null!==Gt&&W0(Ie,Ye,Gt);const oi=ut.styles;null!==oi&&Vh(Ie,Ye,oi),64!=(64&ut.flags)&&Ic(G,F,Ye,ut),0===Qi.lFrame.elementDepthCount&&ls(Ye,F),Qi.lFrame.elementDepthCount++,Fi(ut)&&(l2(G,F,ut),ad(G,ut,F)),null!==S&&c2(F,ut)}function J1(){let l=cr();ie()?de():(l=l.parent,bt(l,!1));const h=l;Qi.lFrame.elementDepthCount--;const g=Fn();g.firstCreatePass&&(ca(g,l),br(l)&&g.queries.elementEnd(l)),null!=h.classesWithoutHost&&function(l){return 0!=(16&l.flags)}(h)&&k2(g,h,ki(),h.classesWithoutHost,!0),null!=h.stylesWithoutHost&&function(l){return 0!=(32&l.flags)}(h)&&k2(g,h,ki(),h.stylesWithoutHost,!1)}function P2(l,h,g,S){R2(l,h,g,S),J1()}function N2(l,h,g){const S=ki(),F=Fn(),G=l+20,fe=F.firstCreatePass?function(l,h,g,S,F){const G=h.consts,fe=zi(G,S),Ie=ql(h,l,8,"ng-container",fe);return null!==fe&&Y1(Ie,fe,!0),h2(h,g,Ie,zi(G,F)),null!==h.queries&&h.queries.elementStart(h,Ie),Ie}(G,F,S,h,g):F.data[G];bt(fe,!0);const Ie=S[G]=S[11].createComment("");Ic(F,S,Ie,fe),ls(Ie,S),Fi(fe)&&(l2(F,S,fe),ad(F,fe,S)),null!=g&&c2(S,fe)}function F2(){let l=cr();const h=Fn();ie()?de():(l=l.parent,bt(l,!1)),h.firstCreatePass&&(ca(h,l),br(l)&&h.queries.elementEnd(l))}function du(l,h,g){N2(l,h,g),F2()}function uu(){return ki()}function B2(l){return!!l&&"function"==typeof l.then}function fu(l){return!!l&&"function"==typeof l.subscribe}const pu=fu;function X1(l,h,g,S){const F=ki(),G=Fn(),fe=cr();return Ln(G,F,F[11],fe,l,h,!!g,S),X1}function H2(l,h){const g=cr(),S=ki(),F=Fn();return Ln(F,S,Md(zt(F.data),g,S),g,l,h,!1),H2}function Ln(l,h,g,S,F,G,fe,Ie){const Ye=Fi(S),Tt=l.firstCreatePass&&Cd(l),Gt=h[8],oi=g2(h);let gi=!0;if(3&S.type||Ie){const nn=Qe(S,h),mn=Ie?Ie(nn):nn,Ni=oi.length,Tn=Ie?nr=>Ie(Xe(nr[S.index])):S.index;if(Zn(g)){let nr=null;if(!Ie&&Ye&&(nr=function(l,h,g,S){const F=l.cleanup;if(null!=F)for(let G=0;G<F.length-1;G+=2){const fe=F[G];if(fe===g&&F[G+1]===S){const Ie=h[7],Ye=F[G+2];return Ie.length>Ye?Ie[Ye]:null}"string"==typeof fe&&(G+=2)}return null}(l,h,F,S.index)),null!==nr)(nr.__ngLastListenerFn__||nr).__ngNextListenerFn__=G,nr.__ngLastListenerFn__=G,gi=!1;else{G=$1(S,h,Gt,G,!1);const Hr=g.listen(mn,F,G);oi.push(G,Hr),Tt&&Tt.push(F,Tn,Ni,Ni+1)}}else G=$1(S,h,Gt,G,!0),mn.addEventListener(F,G,fe),oi.push(G),Tt&&Tt.push(F,Tn,Ni,fe)}else G=$1(S,h,Gt,G,!1);const Li=S.outputs;let Ji;if(gi&&null!==Li&&(Ji=Li[F])){const nn=Ji.length;if(nn)for(let mn=0;mn<nn;mn+=2){const ko=h[Ji[mn]][Ji[mn+1]].subscribe(G),hh=oi.length;oi.push(G,ko),Tt&&Tt.push(F,S.index,hh,-(hh+1))}}}function So(l,h,g,S){try{return!1!==g(S)}catch(F){return wd(l,F),!1}}function $1(l,h,g,S,F){return function G(fe){if(fe===Function)return S;const Ie=2&l.flags?ei(l.index,h):h;0==(32&h[2])&&W1(Ie);let Ye=So(h,0,S,fe),ut=G.__ngNextListenerFn__;for(;ut;)Ye=So(h,0,ut,fe)&&Ye,ut=ut.__ngNextListenerFn__;return F&&!1===Ye&&(fe.preventDefault(),fe.returnValue=!1),Ye}}function z2(l=1){return function(l){return(Qi.lFrame.contextLView=function(l,h){for(;l>0;)h=h[15],l--;return h}(l,Qi.lFrame.contextLView))[8]}(l)}function Ts(l,h){let g=null;const S=function(l){const h=l.attrs;if(null!=h){const g=h.indexOf(5);if(0==(1&g))return h[g+1]}return null}(l);for(let F=0;F<h.length;F++){const G=h[F];if("*"!==G){if(null===S?Go(l,G,!0):Rc(S,G))return F}else g=F}return g}function mu(l){const h=ki()[16][6];if(!h.projection){const S=h.projection=Ks(l?l.length:1,null),F=S.slice();let G=h.child;for(;null!==G;){const fe=l?Ts(G,l):0;null!==fe&&(F[fe]?F[fe].projectionNext=G:S[fe]=G,F[fe]=G),G=G.next}}}function gu(l,h=0,g){const S=ki(),F=Fn(),G=ql(F,20+l,16,null,g||null);null===G.projection&&(G.projection=h),de(),64!=(64&G.flags)&&function(l,h,g){kc(h[11],0,h,g,Hh(l,g,h),_l(g.parent||h[6],g,h))}(F,S,G)}function Yc(l,h,g){return vr(l,"",h,"",g),Yc}function vr(l,h,g,S,F){const G=ki(),fe=Xl(G,h,g,S);return fe!==Dn&&Es(Fn(),Bi(),G,l,fe,G[11],F,!1),vr}function Ja(l,h,g,S,F){const G=l[g+1],fe=null===h;let Ie=S?As(G):Xs(G),Ye=!1;for(;0!==Ie&&(!1===Ye||fe);){const Tt=l[Ie+1];bu(l[Ie],h)&&(Ye=!0,l[Ie+1]=S?H1(Tt):Jh(Tt)),Ie=S?As(Tt):Xs(Tt)}Ye&&(l[g+1]=S?Jh(G):H1(G))}function bu(l,h){return null===l||null==h||(Array.isArray(l)?l[1]:l)===h||!(!Array.isArray(l)||"string"!=typeof h)&&rl(l,h)>=0}const tr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ws(l){return l.substring(tr.key,tr.keyEnd)}function Z2(l,h){const g=tr.textEnd;return g===h?-1:(h=tr.keyEnd=function(l,h,g){for(;h<g&&l.charCodeAt(h)>32;)h++;return h}(l,tr.key=h,g),wl(l,h,g))}function wl(l,h,g){for(;h<g&&l.charCodeAt(h)<=32;)h++;return h}function El(l,h,g){return Ds(l,h,g,!1),El}function sc(l,h){return Ds(l,h,null,!0),sc}function e0(l){Ls(ms,es,l,!0)}function es(l,h){for(let g=function(l){return function(l){tr.key=0,tr.keyEnd=0,tr.value=0,tr.valueEnd=0,tr.textEnd=l.length}(l),Z2(l,wl(l,0,tr.textEnd))}(h);g>=0;g=Z2(h,g))ms(l,Ws(h),!0)}function Ds(l,h,g,S){const F=ki(),G=Fn(),fe=en(2);G.firstUpdatePass&&W2(G,l,fe,S),h!==Dn&&hs(F,fe,h)&&q2(G,G.data[Yn()],F,F[11],l,F[fe+1]=function(l,h){return null==l||("string"==typeof h?l+=h:"object"==typeof l&&(l=N(Ao(l)))),l}(h,g),S,fe)}function Ls(l,h,g,S){const F=Fn(),G=en(2);F.firstUpdatePass&&W2(F,null,G,S);const fe=ki();if(g!==Dn&&hs(fe,G,g)){const Ie=F.data[Yn()];if(jr(Ie,S)&&!G2(F,G)){let Ye=S?Ie.classesWithoutHost:Ie.stylesWithoutHost;null!==Ye&&(g=o(Ye,g||"")),k2(F,Ie,fe,g,S)}else!function(l,h,g,S,F,G,fe,Ie){F===Dn&&(F=ti);let Ye=0,ut=0,Tt=0<F.length?F[0]:null,Gt=0<G.length?G[0]:null;for(;null!==Tt||null!==Gt;){const oi=Ye<F.length?F[Ye+1]:void 0,gi=ut<G.length?G[ut+1]:void 0;let Ji,Li=null;Tt===Gt?(Ye+=2,ut+=2,oi!==gi&&(Li=Gt,Ji=gi)):null===Gt||null!==Tt&&Tt<Gt?(Ye+=2,Li=Tt):(ut+=2,Li=Gt,Ji=gi),null!==Li&&q2(l,h,g,S,Li,Ji,fe,Ie),Tt=Ye<F.length?F[Ye]:null,Gt=ut<G.length?G[ut]:null}}(F,Ie,fe,fe[11],fe[G+1],fe[G+1]=function(l,h,g){if(null==g||""===g)return ti;const S=[],F=Ao(g);if(Array.isArray(F))for(let G=0;G<F.length;G++)l(S,F[G],!0);else if("object"==typeof F)for(const G in F)F.hasOwnProperty(G)&&l(S,G,F[G]);else"string"==typeof F&&h(S,F);return S}(l,h,g),S,G)}}function G2(l,h){return h>=l.expandoStartIndex}function W2(l,h,g,S){const F=l.data;if(null===F[g+1]){const G=F[Yn()],fe=G2(l,g);jr(G,S)&&null===h&&!fe&&(h=!1),h=function(l,h,g,S){const F=zt(l);let G=S?h.residualClasses:h.residualStyles;if(null===F)0===(S?h.classBindings:h.styleBindings)&&(g=Lo(g=qc(null,l,h,g,S),h.attrs,S),G=null);else{const fe=h.directiveStylingLast;if(-1===fe||l[fe]!==F)if(g=qc(F,l,h,g,S),null===G){let Ye=function(l,h,g){const S=g?h.classBindings:h.styleBindings;if(0!==Xs(S))return l[As(S)]}(l,h,S);void 0!==Ye&&Array.isArray(Ye)&&(Ye=qc(null,l,h,Ye[1],S),Ye=Lo(Ye,h.attrs,S),function(l,h,g,S){l[As(g?h.classBindings:h.styleBindings)]=S}(l,h,S,Ye))}else G=function(l,h,g){let S;const F=h.directiveEnd;for(let G=1+h.directiveStylingLast;G<F;G++)S=Lo(S,l[G].hostAttrs,g);return Lo(S,h.attrs,g)}(l,h,S)}return void 0!==G&&(S?h.residualClasses=G:h.residualStyles=G),g}(F,G,h,S),function(l,h,g,S,F,G){let fe=G?h.classBindings:h.styleBindings,Ie=As(fe),Ye=Xs(fe);l[S]=g;let Tt,ut=!1;if(Array.isArray(g)){const Gt=g;Tt=Gt[1],(null===Tt||rl(Gt,Tt)>0)&&(ut=!0)}else Tt=g;if(F)if(0!==Ye){const oi=As(l[Ie+1]);l[S+1]=B1(oi,Ie),0!==oi&&(l[oi+1]=Jn(l[oi+1],S)),l[Ie+1]=function(l,h){return 131071&l|h<<17}(l[Ie+1],S)}else l[S+1]=B1(Ie,0),0!==Ie&&(l[Ie+1]=Jn(l[Ie+1],S)),Ie=S;else l[S+1]=B1(Ye,0),0===Ie?Ie=S:l[Ye+1]=Jn(l[Ye+1],S),Ye=S;ut&&(l[S+1]=Jh(l[S+1])),Ja(l,Tt,S,!0),Ja(l,Tt,S,!1),function(l,h,g,S,F){const G=F?l.residualClasses:l.residualStyles;null!=G&&"string"==typeof h&&rl(G,h)>=0&&(g[S+1]=H1(g[S+1]))}(h,Tt,l,S,G),fe=B1(Ie,Ye),G?h.classBindings=fe:h.styleBindings=fe}(F,G,h,g,fe,S)}}function qc(l,h,g,S,F){let G=null;const fe=g.directiveEnd;let Ie=g.directiveStylingLast;for(-1===Ie?Ie=g.directiveStart:Ie++;Ie<fe&&(G=h[Ie],S=Lo(S,G.hostAttrs,F),G!==l);)Ie++;return null!==l&&(g.directiveStylingLast=Ie),S}function Lo(l,h,g){const S=g?1:2;let F=-1;if(null!==h)for(let G=0;G<h.length;G++){const fe=h[G];"number"==typeof fe?F=fe:F===S&&(Array.isArray(l)||(l=void 0===l?[]:["",l]),ms(l,fe,!!g||h[++G]))}return void 0===l?null:l}function q2(l,h,g,S,F,G,fe,Ie){if(!(3&h.type))return;const Ye=l.data,ut=Ye[Ie+1];Q2(function(l){return 1==(1&l)}(ut)?K2(Ye,h,g,F,Xs(ut),fe):void 0)||(Q2(G)||function(l){return 2==(2&l)}(ut)&&(G=K2(Ye,null,g,F,Ie,fe)),function(l,h,g,S,F){const G=Zn(l);if(h)F?G?l.addClass(g,S):g.classList.add(S):G?l.removeClass(g,S):g.classList.remove(S);else{let fe=-1===S.indexOf("-")?void 0:cs.DashCase;if(null==F)G?l.removeStyle(g,S,fe):g.style.removeProperty(S);else{const Ie="string"==typeof F&&F.endsWith("!important");Ie&&(F=F.slice(0,-10),fe|=cs.Important),G?l.setStyle(g,S,F,fe):g.style.setProperty(S,F,Ie?"important":"")}}}(S,fe,ne(Yn(),g),F,G))}function K2(l,h,g,S,F,G){const fe=null===h;let Ie;for(;F>0;){const Ye=l[F],ut=Array.isArray(Ye),Tt=ut?Ye[1]:Ye,Gt=null===Tt;let oi=g[F+1];oi===Dn&&(oi=Gt?ti:void 0);let gi=Gt?d1(oi,S):Tt===S?oi:void 0;if(ut&&!Q2(gi)&&(gi=d1(Ye,S)),Q2(gi)&&(Ie=gi,fe))return Ie;const Li=l[F+1];F=fe?As(Li):Xs(Li)}if(null!==h){let Ye=G?h.residualClasses:h.residualStyles;null!=Ye&&(Ie=d1(Ye,S))}return Ie}function Q2(l){return void 0!==l}function jr(l,h){return 0!=(l.flags&(h?16:32))}function J2(l,h=""){const g=ki(),S=Fn(),F=l+20,G=S.firstCreatePass?ql(S,F,1,h,null):S.data[F],fe=g[F]=function(l,h){return Zn(l)?l.createText(h):l.createTextNode(h)}(g[11],h);Ic(S,g,fe,G),bt(G,!1)}function qr(l){return Tl("",l,""),qr}function Tl(l,h,g){const S=ki(),F=Xl(S,l,h,g);return F!==Dn&&To(S,Yn(),F),Tl}function io(l,h,g,S,F){const G=ki(),fe=function(l,h,g,S,F,G){const Ie=Cl(l,fi(),g,F);return en(2),Ie?h+j(g)+S+j(F)+G:Dn}(G,l,h,g,S,F);return fe!==Dn&&To(G,Yn(),fe),io}function X2(l,h,g,S,F,G,fe,Ie,Ye){const ut=ki(),Tt=tc(ut,l,h,g,S,F,G,fe,Ie,Ye);return Tt!==Dn&&To(ut,Yn(),Tt),X2}function a0(l,h,g){Ls(ms,es,Xl(ki(),l,h,g),!0)}function th(l,h,g){const S=ki();return hs(S,Zi(),h)&&Es(Fn(),Bi(),S,l,h,S[11],g,!0),th}function Ru(l,h,g){const S=ki();if(hs(S,Zi(),h)){const G=Fn(),fe=Bi();Es(G,fe,S,l,h,Md(zt(G.data),fe,S),g,!0)}return Ru}const Sl=void 0;var D3=["en",[["a","p"],["AM","PM"],Sl],[["AM","PM"],Sl,Sl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Sl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Sl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Sl,"{1} 'at' {0}",Sl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(l){const g=Math.floor(Math.abs(l)),S=l.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===S?1:5}];let lc={};function l0(l){const h=function(l){return l.toLowerCase().replace(/_/g,"-")}(l);let g=g4(h);if(g)return g;const S=h.split("-")[0];if(g=g4(S),g)return g;if("en"===S)return D3;throw new Error(`Missing locale data for the locale "${l}".`)}function Nu(l){return l0(l)[Mn.PluralCase]}function g4(l){return l in lc||(lc[l]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[l]),lc[l]}var Mn=(()=>((Mn=Mn||{})[Mn.LocaleId=0]="LocaleId",Mn[Mn.DayPeriodsFormat=1]="DayPeriodsFormat",Mn[Mn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mn[Mn.DaysFormat=3]="DaysFormat",Mn[Mn.DaysStandalone=4]="DaysStandalone",Mn[Mn.MonthsFormat=5]="MonthsFormat",Mn[Mn.MonthsStandalone=6]="MonthsStandalone",Mn[Mn.Eras=7]="Eras",Mn[Mn.FirstDayOfWeek=8]="FirstDayOfWeek",Mn[Mn.WeekendRange=9]="WeekendRange",Mn[Mn.DateFormat=10]="DateFormat",Mn[Mn.TimeFormat=11]="TimeFormat",Mn[Mn.DateTimeFormat=12]="DateTimeFormat",Mn[Mn.NumberSymbols=13]="NumberSymbols",Mn[Mn.NumberFormats=14]="NumberFormats",Mn[Mn.CurrencyCode=15]="CurrencyCode",Mn[Mn.CurrencySymbol=16]="CurrencySymbol",Mn[Mn.CurrencyName=17]="CurrencyName",Mn[Mn.Currencies=18]="Currencies",Mn[Mn.Directionality=19]="Directionality",Mn[Mn.PluralCase=20]="PluralCase",Mn[Mn.ExtraData=21]="ExtraData",Mn))();const c0="en-US";let nh=c0;function X3(l,h,g,S,F){if(l=A(l),Array.isArray(l))for(let G=0;G<l.length;G++)X3(l[G],h,g,S,F);else{const G=Fn(),fe=ki();let Ie=Fr(l)?l:A(l.provide),Ye=Dd(l);const ut=cr(),Tt=1048575&ut.providerIndexes,Gt=ut.directiveStart,oi=ut.providerIndexes>>20;if(Fr(l)||!l.multi){const gi=new vs(Ye,F,Wc),Li=ep(Ie,h,F?Tt:Tt+oi,Gt);-1===Li?(ii(Je(ut,fe),G,Ie),$3(G,l,h.length),h.push(Ie),ut.directiveStart++,ut.directiveEnd++,F&&(ut.providerIndexes+=1048576),g.push(gi),fe.push(gi)):(g[Li]=gi,fe[Li]=gi)}else{const gi=ep(Ie,h,Tt+oi,Gt),Li=ep(Ie,h,Tt,Tt+oi),Ji=gi>=0&&g[gi],nn=Li>=0&&g[Li];if(F&&!nn||!F&&!Ji){ii(Je(ut,fe),G,Ie);const mn=function(l,h,g,S,F){const G=new vs(l,g,Wc);return G.multi=[],G.index=h,G.componentProviders=0,zp(G,F,S&&!g),G}(F?C8:x8,g.length,F,S,Ye);!F&&nn&&(g[Li].providerFactory=mn),$3(G,l,h.length,0),h.push(Ie),ut.directiveStart++,ut.directiveEnd++,F&&(ut.providerIndexes+=1048576),g.push(mn),fe.push(mn)}else $3(G,l,gi>-1?gi:Li,zp(g[F?Li:gi],Ye,!F&&S));!F&&S&&nn&&g[Li].componentProviders++}}}function $3(l,h,g,S){const F=Fr(h),G=function(l){return!!l.useClass}(h);if(F||G){const Ye=(G?A(h.useClass):h).prototype.ngOnDestroy;if(Ye){const ut=l.destroyHooks||(l.destroyHooks=[]);if(!F&&h.multi){const Tt=ut.indexOf(g);-1===Tt?ut.push(g,[S,Ye]):ut[Tt+1].push(S,Ye)}else ut.push(g,Ye)}}}function zp(l,h,g){return g&&l.componentProviders++,l.multi.push(h)-1}function ep(l,h,g,S){for(let F=g;F<S;F++)if(h[F]===l)return F;return-1}function x8(l,h,g,S){return tp(this.multi,[])}function C8(l,h,g,S){const F=this.multi;let G;if(this.providerFactory){const fe=this.providerFactory.componentProviders,Ie=ja(g,g[1],this.providerFactory.index,S);G=Ie.slice(0,fe),tp(F,G);for(let Ye=fe;Ye<Ie.length;Ye++)G.push(Ie[Ye])}else G=[],tp(F,G);return G}function tp(l,h){for(let g=0;g<l.length;g++)h.push((0,l[g])());return h}function Up(l,h=[]){return g=>{g.providersResolver=(S,F)=>function(l,h,g){const S=Fn();if(S.firstCreatePass){const F=sn(l);X3(g,S.data,S.blueprint,F,!0),X3(h,S.data,S.blueprint,F,!1)}}(S,F?F(l):l,h)}}class Zp{}class E8{resolveComponentFactory(h){throw function(l){const h=Error(`No component factory found for ${N(l)}. Did you add it to @NgModule.entryComponents?`);return h.ngComponent=l,h}(h)}}let M4=(()=>{class l{}return l.NULL=new E8,l})();function T8(){return Uu(cr(),ki())}function Uu(l,h){return new w4(Qe(l,h))}let w4=(()=>{class l{constructor(g){this.nativeElement=g}}return l.__NG_ELEMENT_ID__=T8,l})();function S8(l){return l instanceof w4?l.nativeElement:l}class Gp{}let D8=(()=>{class l{}return l.__NG_ELEMENT_ID__=()=>function(){const l=ki(),g=ei(cr().index,l);return function(l){return l[11]}(pn(g)?g:l)}(),l})(),I8=(()=>{class l{}return l.\u0275prov=xe({token:l,providedIn:"root",factory:()=>null}),l})();class Wp{constructor(h){this.full=h,this.major=h.split(".")[0],this.minor=h.split(".")[1],this.patch=h.split(".").slice(2).join(".")}}const k8=new Wp("13.0.3"),ip={};function F3(l,h,g,S,F=!1){for(;null!==g;){const G=h[g.index];if(null!==G&&S.push(Xe(G)),Nn(G))for(let Ie=10;Ie<G.length;Ie++){const Ye=G[Ie],ut=Ye[1].firstChild;null!==ut&&F3(Ye[1],Ye,ut,S)}const fe=g.type;if(8&fe)F3(l,h,g.child,S);else if(32&fe){const Ie=C1(g,h);let Ye;for(;Ye=Ie();)S.push(Ye)}else if(16&fe){const Ie=Z0(h,g);if(Array.isArray(Ie))S.push(...Ie);else{const Ye=Lc(h[16]);F3(Ye[1],Ye,Ie,S,!0)}}g=F?g.projectionNext:g.next}return S}class A4{constructor(h,g){this._lView=h,this._cdRefInjectingView=g,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const h=this._lView,g=h[1];return F3(g,h,g.firstChild,[])}get context(){return this._lView[8]}set context(h){this._lView[8]=h}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const h=this._lView[3];if(Nn(h)){const g=h[8],S=g?g.indexOf(this):-1;S>-1&&(A1(h,S),nl(g,S))}this._attachedToViewContainer=!1}gl(this._lView[1],this._lView)}onDestroy(h){cd(this._lView[1],this._lView,null,h)}markForCheck(){W1(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){p2(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(l,h,g){Kt(!0);try{p2(l,h,g)}finally{Kt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var h;this._appRef=null,Wl(this._lView[1],h=this._lView,h[11],2,null,null)}attachToAppRef(h){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=h}}class R8 extends A4{constructor(h){super(h),this._view=h}detectChanges(){xd(this._view)}checkNoChanges(){!function(l){Kt(!0);try{xd(l)}finally{Kt(!1)}}(this._view)}get context(){return null}}class Yp extends M4{constructor(h){super(),this.ngModule=h}resolveComponentFactory(h){const g=At(h);return new np(g,this.ngModule)}}function jp(l){const h=[];for(let g in l)l.hasOwnProperty(g)&&h.push({propName:l[g],templateName:g});return h}const N8=new Gr("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Oh});class np extends Zp{constructor(h,g){super(),this.componentDef=h,this.ngModule=g,this.componentType=h.type,this.selector=h.selectors.map(Pf).join(","),this.ngContentSelectors=h.ngContentSelectors?h.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return jp(this.componentDef.inputs)}get outputs(){return jp(this.componentDef.outputs)}create(h,g,S,F){const G=(F=F||this.ngModule)?function(l,h){return{get:(g,S,F)=>{const G=l.get(g,ip,F);return G!==ip||S===ip?G:h.get(g,S,F)}}}(h,F.injector):h,fe=G.get(Gp,ns),Ie=G.get(I8,null),Ye=fe.createRenderer(null,this.componentDef),ut=this.componentDef.selectors[0][0]||"div",Tt=S?function(l,h,g){if(Zn(l))return l.selectRootElement(h,g===ft.ShadowDom);let S="string"==typeof h?l.querySelector(h):h;return S.textContent="",S}(Ye,S,this.componentDef.encapsulation):w1(fe.createRenderer(null,this.componentDef),ut,function(l){const h=l.toLowerCase();return"svg"===h?is:"math"===h?"http://www.w3.org/1998/MathML/":null}(ut)),Gt=this.componentDef.onPush?576:528,oi=function(l,h){return{components:[],scheduler:l||Oh,clean:h6,playerHandler:h||null,flags:0}}(),gi=zc(0,null,null,1,0,null,null,null,null,null),Li=Fc(null,gi,oi,Gt,null,null,fe,Ye,Ie,G);let Ji,nn;ji(Li);try{const mn=function(l,h,g,S,F,G){const fe=g[1];g[20]=l;const Ye=ql(fe,20,2,"#host",null),ut=Ye.mergedAttrs=h.hostAttrs;null!==ut&&(Y1(Ye,ut,!0),null!==l&&(Po(F,l,ut),null!==Ye.classes&&W0(F,l,Ye.classes),null!==Ye.styles&&Vh(F,l,Ye.styles)));const Tt=S.createRenderer(l,h),Gt=Fc(g,sd(h),null,h.onPush?64:16,g[20],Ye,S,Tt,G||null,null);return fe.firstCreatePass&&(ii(Je(Ye,g),fe,h.type),md(fe,Ye),gd(Ye,g.length,1)),G1(g,Gt),g[20]=Gt}(Tt,this.componentDef,Li,fe,Ye);if(Tt)if(S)Po(Ye,Tt,["ng-version",k8.full]);else{const{attrs:Ni,classes:Tn}=function(l){const h=[],g=[];let S=1,F=2;for(;S<l.length;){let G=l[S];if("string"==typeof G)2===F?""!==G&&h.push(G,l[++S]):8===F&&g.push(G);else{if(!Tr(F))break;F=G}S++}return{attrs:h,classes:g}}(this.componentDef.selectors[0]);Ni&&Po(Ye,Tt,Ni),Tn&&Tn.length>0&&W0(Ye,Tt,Tn.join(" "))}if(nn=pi(gi,20),void 0!==g){const Ni=nn.projection=[];for(let Tn=0;Tn<this.ngContentSelectors.length;Tn++){const nr=g[Tn];Ni.push(null!=nr?Array.from(nr):null)}}Ji=function(l,h,g,S,F){const G=g[1],fe=function(l,h,g){const S=cr();l.firstCreatePass&&(g.providersResolver&&g.providersResolver(g),_d(l,S,h,Bc(l,h,1,null),g));const F=ja(h,l,S.directiveStart,S);ls(F,h);const G=Qe(S,h);return G&&ls(G,h),F}(G,g,h);if(S.components.push(fe),l[8]=fe,F&&F.forEach(Ye=>Ye(fe,h)),h.contentQueries){const Ye=cr();h.contentQueries(1,fe,Ye.directiveStart)}const Ie=cr();return!G.firstCreatePass||null===h.hostBindings&&null===h.hostAttrs||(mr(Ie.index),d2(g[1],Ie,0,Ie.directiveStart,Ie.directiveEnd,h),pd(h,fe)),fe}(mn,this.componentDef,Li,oi,[S6]),jo(gi,Li,null)}finally{Mr()}return new H8(this.componentType,Ji,Uu(nn,Li),Li,nn)}}class H8 extends class{}{constructor(h,g,S,F,G){super(),this.location=S,this._rootLView=F,this._tNode=G,this.instance=g,this.hostView=this.changeDetectorRef=new R8(F),this.componentType=h}get injector(){return new ss(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(h){this.hostView.onDestroy(h)}}class Zu{}class qp{}const Vu=new Map;class Jp extends Zu{constructor(h,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Yp(this);const S=Ft(h);this._bootstrapComponents=ho(S.bootstrap),this._r3Injector=Sd(h,g,[{provide:Zu,useValue:this},{provide:M4,useValue:this.componentFactoryResolver}],N(h)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(h)}get(h,g=Vs.THROW_IF_NOT_FOUND,S=he.Default){return h===Vs||h===Zu||h===_2?this:this._r3Injector.get(h,g,S)}destroy(){const h=this._r3Injector;!h.destroyed&&h.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(h){this.destroyCbs.push(h)}}class rp extends qp{constructor(h){super(),this.moduleType=h,null!==Ft(h)&&function(l){const h=new Set;!function g(S){const F=Ft(S,!0),G=F.id;null!==G&&(function(l,h,g){if(h&&h!==g)throw new Error(`Duplicate module registered for ${l} - ${N(h)} vs ${N(h.name)}`)}(G,Vu.get(G),S),Vu.set(G,S));const fe=ho(F.imports);for(const Ie of fe)h.has(Ie)||(h.add(Ie),g(Ie))}(l)}(h)}create(h){return new Jp(this.moduleType,h)}}function Xp(l,h,g){const S=Jt()+l,F=ki();return F[S]===Dn?po(F,S,g?h.call(g):h()):function(l,h){return l[h]}(F,S)}function $p(l,h,g,S){return im(ki(),Jt(),l,h,g,S)}function em(l,h,g,S,F){return nm(ki(),Jt(),l,h,g,S,F)}function tm(l,h,g,S,F,G){return rm(ki(),Jt(),l,h,g,S,F,G)}function E4(l,h){const g=l[h];return g===Dn?void 0:g}function im(l,h,g,S,F,G){const fe=h+g;return hs(l,fe,F)?po(l,fe+1,G?S.call(G,F):S(F)):E4(l,fe+1)}function nm(l,h,g,S,F,G,fe){const Ie=h+g;return Cl(l,Ie,F,G)?po(l,Ie+2,fe?S.call(fe,F,G):S(F,G)):E4(l,Ie+2)}function rm(l,h,g,S,F,G,fe,Ie){const Ye=h+g;return function(l,h,g,S,F){const G=Cl(l,h,g,S);return hs(l,h+2,F)||G}(l,Ye,F,G,fe)?po(l,Ye+3,Ie?S.call(Ie,F,G,fe):S(F,G,fe)):E4(l,Ye+3)}function om(l,h){const g=Fn();let S;const F=l+20;g.firstCreatePass?(S=function(l,h){if(h)for(let g=h.length-1;g>=0;g--){const S=h[g];if(l===S.name)return S}}(h,g.pipeRegistry),g.data[F]=S,S.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(F,S.onDestroy)):S=g.data[F];const G=S.factory||(S.factory=Pr(S.type)),fe=q(Wc);try{const Ie=_o(!1),Ye=G();return _o(Ie),function(l,h,g,S){g>=l.data.length&&(l.data[g]=null,l.blueprint[g]=null),h[g]=S}(g,ki(),F,Ye),Ye}finally{q(fe)}}function lm(l,h,g){const S=l+20,F=ki(),G=xt(F,S);return T4(F,S)?im(F,Jt(),h,G.transform,g,G):G.transform(g)}function cm(l,h,g,S){const F=l+20,G=ki(),fe=xt(G,F);return T4(G,F)?nm(G,Jt(),h,fe.transform,g,S,fe):fe.transform(g,S)}function hm(l,h,g,S,F){const G=l+20,fe=ki(),Ie=xt(fe,G);return T4(fe,G)?rm(fe,Jt(),h,Ie.transform,g,S,F,Ie):Ie.transform(g,S,F)}function T4(l,h){return l[1].data[h].pure}function ap(l){return h=>{setTimeout(l,void 0,h)}}const hc=class extends e.x{constructor(h=!1){super(),this.__isAsync=h}emit(h){super.next(h)}subscribe(h,g,S){var F,G,fe;let Ie=h,Ye=g||(()=>null),ut=S;if(h&&"object"==typeof h){const Gt=h;Ie=null===(F=Gt.next)||void 0===F?void 0:F.bind(Gt),Ye=null===(G=Gt.error)||void 0===G?void 0:G.bind(Gt),ut=null===(fe=Gt.complete)||void 0===fe?void 0:fe.bind(Gt)}this.__isAsync&&(Ye=ap(Ye),Ie&&(Ie=ap(Ie)),ut&&(ut=ap(ut)));const Tt=super.subscribe({next:Ie,error:Ye,complete:ut});return h instanceof t.w0&&h.add(Tt),Tt}};function X8(){return this._results[Ql()]()}class B3{constructor(h=!1){this._emitDistinctChangesOnly=h,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Ql(),S=B3.prototype;S[g]||(S[g]=X8)}get changes(){return this._changes||(this._changes=new hc)}get(h){return this._results[h]}map(h){return this._results.map(h)}filter(h){return this._results.filter(h)}find(h){return this._results.find(h)}reduce(h,g){return this._results.reduce(h,g)}forEach(h){this._results.forEach(h)}some(h){return this._results.some(h)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(h,g){const S=this;S.dirty=!1;const F=bs(h);(this._changesDetected=!function(l,h,g){if(l.length!==h.length)return!1;for(let S=0;S<l.length;S++){let F=l[S],G=h[S];if(g&&(F=g(F),G=g(G)),G!==F)return!1}return!0}(S._results,F,g))&&(S._results=F,S.length=F.length,S.last=F[this.length-1],S.first=F[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let S4=(()=>{class l{}return l.__NG_ELEMENT_ID__=tg,l})();const $8=S4,eg=class extends $8{constructor(h,g,S){super(),this._declarationLView=h,this._declarationTContainer=g,this.elementRef=S}createEmbeddedView(h){const g=this._declarationTContainer.tViews,S=Fc(this._declarationLView,g,h,16,null,g.declTNode,null,null,null,null);S[17]=this._declarationLView[this._declarationTContainer.index];const G=this._declarationLView[19];return null!==G&&(S[19]=G.createEmbeddedView(g)),jo(g,S,h),new A4(S)}};function tg(){return H3(cr(),ki())}function H3(l,h){return 4&l.type?new eg(h,l,Uu(l,h)):null}let z3=(()=>{class l{}return l.__NG_ELEMENT_ID__=ig,l})();function ig(){return fm(cr(),ki())}const ng=z3,dm=class extends ng{constructor(h,g,S){super(),this._lContainer=h,this._hostTNode=g,this._hostLView=S}get element(){return Uu(this._hostTNode,this._hostLView)}get injector(){return new ss(this._hostTNode,this._hostLView)}get parentInjector(){const h=qt(this._hostTNode,this._hostLView);if(Nl(h)){const g=so(h,this._hostLView),S=ao(h);return new ss(g[1].data[S+8],g)}return new ss(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(h){const g=um(this._lContainer);return null!==g&&g[h]||null}get length(){return this._lContainer.length-10}createEmbeddedView(h,g,S){const F=h.createEmbeddedView(g||{});return this.insert(F,S),F}createComponent(h,g,S,F,G){const fe=h&&!("function"==typeof h);let Ie;if(fe)Ie=g;else{const Gt=g||{};Ie=Gt.index,S=Gt.injector,F=Gt.projectableNodes,G=Gt.ngModuleRef}const Ye=fe?h:new np(At(h)),ut=S||this.parentInjector;if(!G&&null==Ye.ngModule&&ut){const Gt=ut.get(Zu,null);Gt&&(G=Gt)}const Tt=Ye.create(ut,F,void 0,G);return this.insert(Tt.hostView,Ie),Tt}insert(h,g){const S=h._lView,F=S[1];if(Nn(S[3])){const Tt=this.indexOf(h);if(-1!==Tt)this.detach(Tt);else{const Gt=S[3],oi=new dm(Gt,Gt[6],Gt[3]);oi.detach(oi.indexOf(h))}}const G=this._adjustIndex(g),fe=this._lContainer;!function(l,h,g,S){const F=10+S,G=g.length;S>0&&(g[F-1][4]=h),S<G-10?(h[4]=g[F],oo(g,10+S,h)):(g.push(h),h[4]=null),h[3]=g;const fe=h[17];null!==fe&&g!==fe&&function(l,h){const g=l[9];h[16]!==h[3][3][16]&&(l[2]=!0),null===g?l[9]=[h]:g.push(h)}(fe,h);const Ie=h[19];null!==Ie&&Ie.insertView(l),h[2]|=128}(F,S,fe,G);const Ie=L1(G,fe),Ye=S[11],ut=T1(Ye,fe[7]);return null!==ut&&function(l,h,g,S,F,G){S[0]=F,S[6]=h,Wl(l,S,g,1,F,G)}(F,fe[6],Ye,S,ut,Ie),h.attachToViewContainerRef(),oo(sp(fe),G,h),h}move(h,g){return this.insert(h,g)}indexOf(h){const g=um(this._lContainer);return null!==g?g.indexOf(h):-1}remove(h){const g=this._adjustIndex(h,-1),S=A1(this._lContainer,g);S&&(nl(sp(this._lContainer),g),gl(S[1],S))}detach(h){const g=this._adjustIndex(h,-1),S=A1(this._lContainer,g);return S&&null!=nl(sp(this._lContainer),g)?new A4(S):null}_adjustIndex(h,g=0){return null==h?this.length+g:h}};function um(l){return l[8]}function sp(l){return l[8]||(l[8]=[])}function fm(l,h){let g;const S=h[l.index];if(Nn(S))g=S;else{let F;if(8&l.type)F=Xe(S);else{const G=h[11];F=G.createComment("");const fe=Qe(l,h);ws(G,T1(G,fe),F,function(l,h){return Zn(l)?l.nextSibling(h):h.nextSibling}(G,fe),!1)}h[l.index]=g=yd(S,h,F,l),G1(h,g)}return new dm(g,l,h)}class op{constructor(h){this.queryList=h,this.matches=null}clone(){return new op(this.queryList)}setDirty(){this.queryList.setDirty()}}class lp{constructor(h=[]){this.queries=h}createEmbeddedView(h){const g=h.queries;if(null!==g){const S=null!==h.contentQueries?h.contentQueries[0]:g.length,F=[];for(let G=0;G<S;G++){const fe=g.getByIndex(G);F.push(this.queries[fe.indexInDeclarationView].clone())}return new lp(F)}return null}insertView(h){this.dirtyQueriesWithMatches(h)}detachView(h){this.dirtyQueriesWithMatches(h)}dirtyQueriesWithMatches(h){for(let g=0;g<this.queries.length;g++)null!==Cm(h,g).matches&&this.queries[g].setDirty()}}class pm{constructor(h,g,S=null){this.predicate=h,this.flags=g,this.read=S}}class cp{constructor(h=[]){this.queries=h}elementStart(h,g){for(let S=0;S<this.queries.length;S++)this.queries[S].elementStart(h,g)}elementEnd(h){for(let g=0;g<this.queries.length;g++)this.queries[g].elementEnd(h)}embeddedTView(h){let g=null;for(let S=0;S<this.length;S++){const F=null!==g?g.length:0,G=this.getByIndex(S).embeddedTView(h,F);G&&(G.indexInDeclarationView=S,null!==g?g.push(G):g=[G])}return null!==g?new cp(g):null}template(h,g){for(let S=0;S<this.queries.length;S++)this.queries[S].template(h,g)}getByIndex(h){return this.queries[h]}get length(){return this.queries.length}track(h){this.queries.push(h)}}class hp{constructor(h,g=-1){this.metadata=h,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=g}elementStart(h,g){this.isApplyingToNode(g)&&this.matchTNode(h,g)}elementEnd(h){this._declarationNodeIndex===h.index&&(this._appliesToNextNode=!1)}template(h,g){this.elementStart(h,g)}embeddedTView(h,g){return this.isApplyingToNode(h)?(this.crossesNgTemplate=!0,this.addMatch(-h.index,g),new hp(this.metadata)):null}isApplyingToNode(h){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const g=this._declarationNodeIndex;let S=h.parent;for(;null!==S&&8&S.type&&S.index!==g;)S=S.parent;return g===(null!==S?S.index:-1)}return this._appliesToNextNode}matchTNode(h,g){const S=this.metadata.predicate;if(Array.isArray(S))for(let F=0;F<S.length;F++){const G=S[F];this.matchTNodeWithReadOption(h,g,sg(g,G)),this.matchTNodeWithReadOption(h,g,as(g,h,G,!1,!1))}else S===S4?4&g.type&&this.matchTNodeWithReadOption(h,g,-1):this.matchTNodeWithReadOption(h,g,as(g,h,S,!1,!1))}matchTNodeWithReadOption(h,g,S){if(null!==S){const F=this.metadata.read;if(null!==F)if(F===w4||F===z3||F===S4&&4&g.type)this.addMatch(g.index,-2);else{const G=as(g,h,F,!1,!1);null!==G&&this.addMatch(g.index,G)}else this.addMatch(g.index,S)}}addMatch(h,g){null===this.matches?this.matches=[h,g]:this.matches.push(h,g)}}function sg(l,h){const g=l.localNames;if(null!==g)for(let S=0;S<g.length;S+=2)if(g[S]===h)return g[S+1];return null}function lg(l,h,g,S){return-1===g?function(l,h){return 11&l.type?Uu(l,h):4&l.type?H3(l,h):null}(h,l):-2===g?function(l,h,g){return g===w4?Uu(h,l):g===S4?H3(h,l):g===z3?fm(h,l):void 0}(l,h,S):ja(l,l[1],g,h)}function mm(l,h,g,S){const F=h[19].queries[S];if(null===F.matches){const G=l.data,fe=g.matches,Ie=[];for(let Ye=0;Ye<fe.length;Ye+=2){const ut=fe[Ye];Ie.push(ut<0?null:lg(h,G[ut],fe[Ye+1],g.metadata.read))}F.matches=Ie}return F.matches}function dp(l,h,g,S){const F=l.queries.getByIndex(g),G=F.matches;if(null!==G){const fe=mm(l,h,F,g);for(let Ie=0;Ie<G.length;Ie+=2){const Ye=G[Ie];if(Ye>0)S.push(fe[Ie/2]);else{const ut=G[Ie+1],Tt=h[-Ye];for(let Gt=10;Gt<Tt.length;Gt++){const oi=Tt[Gt];oi[17]===oi[3]&&dp(oi[1],oi,ut,S)}if(null!==Tt[9]){const Gt=Tt[9];for(let oi=0;oi<Gt.length;oi++){const gi=Gt[oi];dp(gi[1],gi,ut,S)}}}}}return S}function gm(l){const h=ki(),g=Fn(),S=ri();vi(S+1);const F=Cm(g,S);if(l.dirty&&yt(h)===(2==(2&F.metadata.flags))){if(null===F.matches)l.reset([]);else{const G=F.crossesNgTemplate?dp(g,h,S,[]):mm(g,h,F,S);l.reset(G,S8),l.notifyOnChanges()}return!0}return!1}function _m(l,h,g){const S=Fn();S.firstCreatePass&&(xm(S,new pm(l,h,g),-1),2==(2&h)&&(S.staticViewQueries=!0)),bm(S,ki(),h)}function vm(l,h,g,S){const F=Fn();if(F.firstCreatePass){const G=cr();xm(F,new pm(h,g,S),G.index),function(l,h){const g=l.contentQueries||(l.contentQueries=[]);h!==(g.length?g[g.length-1]:-1)&&g.push(l.queries.length-1,h)}(F,l),2==(2&g)&&(F.staticContentQueries=!0)}bm(F,ki(),g)}function ym(){return l=ki(),h=ri(),l[19].queries[h].queryList;var l,h}function bm(l,h,g){const S=new B3(4==(4&g));cd(l,h,S,S.destroy),null===h[19]&&(h[19]=new lp),h[19].queries.push(new op(S))}function xm(l,h,g){null===l.queries&&(l.queries=new cp),l.queries.track(new hp(h,g))}function Cm(l,h){return l.queries.getByIndex(h)}function Mm(l,h){return H3(l,h)}function V3(...l){}const _p=new Gr("Application Initializer");let Wu=(()=>{class l{constructor(g){this.appInits=g,this.resolve=V3,this.reject=V3,this.initialized=!1,this.done=!1,this.donePromise=new Promise((S,F)=>{this.resolve=S,this.reject=F})}runInitializers(){if(this.initialized)return;const g=[],S=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let F=0;F<this.appInits.length;F++){const G=this.appInits[F]();if(B2(G))g.push(G);else if(pu(G)){const fe=new Promise((Ie,Ye)=>{G.subscribe({complete:Ie,error:Ye})});g.push(fe)}}Promise.all(g).then(()=>{S()}).catch(F=>{this.reject(F)}),0===g.length&&S(),this.initialized=!0}}return l.\u0275fac=function(g){return new(g||l)(Ia(_p,8))},l.\u0275prov=xe({token:l,factory:l.\u0275fac}),l})();const zm=new Gr("AppId"),Dg={provide:zm,useFactory:function(){return`${vp()}${vp()}${vp()}`},deps:[]};function vp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Um=new Gr("Platform Initializer"),Zm=new Gr("Platform ID"),Vm=new Gr("appBootstrapListener");let Gm=(()=>{class l{log(g){console.log(g)}warn(g){console.warn(g)}}return l.\u0275fac=function(g){return new(g||l)},l.\u0275prov=xe({token:l,factory:l.\u0275fac}),l})();const G3=new Gr("LocaleId"),Wm=new Gr("DefaultCurrencyCode");class Lg{constructor(h,g){this.ngModuleFactory=h,this.componentFactories=g}}let yp=(()=>{class l{compileModuleSync(g){return new rp(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const S=this.compileModuleSync(g),G=ho(Ft(g).declarations).reduce((fe,Ie)=>{const Ye=At(Ie);return Ye&&fe.push(new np(Ye)),fe},[]);return new Lg(S,G)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return l.\u0275fac=function(g){return new(g||l)},l.\u0275prov=xe({token:l,factory:l.\u0275fac}),l})();const Ig=(()=>Promise.resolve(0))();function bp(l){"undefined"==typeof Zone?Ig.then(()=>{l&&l.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",l)}class Io{constructor({enableLongStackTrace:h=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:S=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new hc(!1),this.onMicrotaskEmpty=new hc(!1),this.onStable=new hc(!1),this.onError=new hc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const F=this;F._nesting=0,F._outer=F._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(F._inner=F._inner.fork(new Zone.TaskTrackingZoneSpec)),h&&Zone.longStackTraceZoneSpec&&(F._inner=F._inner.fork(Zone.longStackTraceZoneSpec)),F.shouldCoalesceEventChangeDetection=!S&&g,F.shouldCoalesceRunChangeDetection=S,F.lastRequestAnimationFrameId=-1,F.nativeRequestAnimationFrame=function(){let l=Pt.requestAnimationFrame,h=Pt.cancelAnimationFrame;if("undefined"!=typeof Zone&&l&&h){const g=l[Zone.__symbol__("OriginalDelegate")];g&&(l=g);const S=h[Zone.__symbol__("OriginalDelegate")];S&&(h=S)}return{nativeRequestAnimationFrame:l,nativeCancelAnimationFrame:h}}().nativeRequestAnimationFrame,function(l){const h=()=>{!function(l){l.isCheckStableRunning||-1!==l.lastRequestAnimationFrameId||(l.lastRequestAnimationFrameId=l.nativeRequestAnimationFrame.call(Pt,()=>{l.fakeTopEventTask||(l.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{l.lastRequestAnimationFrameId=-1,Cp(l),l.isCheckStableRunning=!0,xp(l),l.isCheckStableRunning=!1},void 0,()=>{},()=>{})),l.fakeTopEventTask.invoke()}),Cp(l))}(l)};l._inner=l._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,S,F,G,fe,Ie)=>{try{return Ym(l),g.invokeTask(F,G,fe,Ie)}finally{(l.shouldCoalesceEventChangeDetection&&"eventTask"===G.type||l.shouldCoalesceRunChangeDetection)&&h(),jm(l)}},onInvoke:(g,S,F,G,fe,Ie,Ye)=>{try{return Ym(l),g.invoke(F,G,fe,Ie,Ye)}finally{l.shouldCoalesceRunChangeDetection&&h(),jm(l)}},onHasTask:(g,S,F,G)=>{g.hasTask(F,G),S===F&&("microTask"==G.change?(l._hasPendingMicrotasks=G.microTask,Cp(l),xp(l)):"macroTask"==G.change&&(l.hasPendingMacrotasks=G.macroTask))},onHandleError:(g,S,F,G)=>(g.handleError(F,G),l.runOutsideAngular(()=>l.onError.emit(G)),!1)})}(F)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Io.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Io.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(h,g,S){return this._inner.run(h,g,S)}runTask(h,g,S,F){const G=this._inner,fe=G.scheduleEventTask("NgZoneEvent: "+F,h,Rg,V3,V3);try{return G.runTask(fe,g,S)}finally{G.cancelTask(fe)}}runGuarded(h,g,S){return this._inner.runGuarded(h,g,S)}runOutsideAngular(h){return this._outer.run(h)}}const Rg={};function xp(l){if(0==l._nesting&&!l.hasPendingMicrotasks&&!l.isStable)try{l._nesting++,l.onMicrotaskEmpty.emit(null)}finally{if(l._nesting--,!l.hasPendingMicrotasks)try{l.runOutsideAngular(()=>l.onStable.emit(null))}finally{l.isStable=!0}}}function Cp(l){l.hasPendingMicrotasks=!!(l._hasPendingMicrotasks||(l.shouldCoalesceEventChangeDetection||l.shouldCoalesceRunChangeDetection)&&-1!==l.lastRequestAnimationFrameId)}function Ym(l){l._nesting++,l.isStable&&(l.isStable=!1,l.onUnstable.emit(null))}function jm(l){l._nesting--,xp(l)}class Fg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new hc,this.onMicrotaskEmpty=new hc,this.onStable=new hc,this.onError=new hc}run(h,g,S){return h.apply(g,S)}runGuarded(h,g,S){return h.apply(g,S)}runOutsideAngular(h){return h()}runTask(h,g,S,F){return h.apply(g,S)}}let qm=(()=>{class l{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Io.assertNotInAngularZone(),bp(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())bp(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(S=>!S.updateCb||!S.updateCb(g)||(clearTimeout(S.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,S,F){let G=-1;S&&S>0&&(G=setTimeout(()=>{this._callbacks=this._callbacks.filter(fe=>fe.timeoutId!==G),g(this._didWork,this.getPendingTasks())},S)),this._callbacks.push({doneCb:g,timeoutId:G,updateCb:F})}whenStable(g,S,F){if(F&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(g,S,F),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,S,F){return[]}}return l.\u0275fac=function(g){return new(g||l)(Ia(Io))},l.\u0275prov=xe({token:l,factory:l.\u0275fac}),l})(),Km=(()=>{class l{constructor(){this._applications=new Map,Mp.addToWindow(this)}registerApplication(g,S){this._applications.set(g,S)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,S=!0){return Mp.findTestabilityInTree(this,g,S)}}return l.\u0275fac=function(g){return new(g||l)},l.\u0275prov=xe({token:l,factory:l.\u0275fac}),l})();class Bg{addToWindow(h){}findTestabilityInTree(h,g,S){return null}}function Hg(l){Mp=l}let Ol,Mp=new Bg;const Qm=new Gr("AllowMultipleToken");class Vg{constructor(h,g){this.name=h,this.token=g}}function Jm(l,h,g=[]){const S=`Platform: ${h}`,F=new Gr(S);return(G=[])=>{let fe=Xm();if(!fe||fe.injector.get(Qm,!1))if(l)l(g.concat(G).concat({provide:F,useValue:!0}));else{const Ie=g.concat(G).concat({provide:F,useValue:!0},{provide:v2,useValue:"platform"});!function(l){if(Ol&&!Ol.destroyed&&!Ol.injector.get(Qm,!1))throw new w("400","");Ol=l.get($m);const h=l.get(Um,null);h&&h.forEach(g=>g())}(Vs.create({providers:Ie,name:S}))}return function(l){const h=Xm();if(!h)throw new w("401","");return h}()}}function Xm(){return Ol&&!Ol.destroyed?Ol:null}let $m=(()=>{class l{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,S){const Ie=function(l,h){let g;return g="noop"===l?new Fg:("zone.js"===l?void 0:l)||new Io({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==h?void 0:h.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==h?void 0:h.ngZoneRunCoalescing)}),g}(S?S.ngZone:void 0,{ngZoneEventCoalescing:S&&S.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:S&&S.ngZoneRunCoalescing||!1}),Ye=[{provide:Io,useValue:Ie}];return Ie.run(()=>{const ut=Vs.create({providers:Ye,parent:this.injector,name:g.moduleType.name}),Tt=g.create(ut),Gt=Tt.injector.get(Dc,null);if(!Gt)throw new w("402","");return Ie.runOutsideAngular(()=>{const oi=Ie.onError.subscribe({next:gi=>{Gt.handleError(gi)}});Tt.onDestroy(()=>{wp(this._modules,Tt),oi.unsubscribe()})}),function(l,h,g){try{const S=g();return B2(S)?S.catch(F=>{throw h.runOutsideAngular(()=>l.handleError(F)),F}):S}catch(S){throw h.runOutsideAngular(()=>l.handleError(S)),S}}(Gt,Ie,()=>{const oi=Tt.injector.get(Wu);return oi.runInitializers(),oi.donePromise.then(()=>(function(l){b(l,"Expected localeId to be defined"),"string"==typeof l&&(nh=l.toLowerCase().replace(/_/g,"-"))}(Tt.injector.get(G3,c0)||c0),this._moduleDoBootstrap(Tt),Tt))})})}bootstrapModule(g,S=[]){const F=e8({},S);return function(l,h,g){const S=new rp(g);return Promise.resolve(S)}(0,0,g).then(G=>this.bootstrapModuleFactory(G,F))}_moduleDoBootstrap(g){const S=g.injector.get(L4);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(F=>S.bootstrap(F));else{if(!g.instance.ngDoBootstrap)throw new w("403","");g.instance.ngDoBootstrap(S)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w("404","");this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g()),this._destroyed=!0}get destroyed(){return this._destroyed}}return l.\u0275fac=function(g){return new(g||l)(Ia(Vs))},l.\u0275prov=xe({token:l,factory:l.\u0275fac}),l})();function e8(l,h){return Array.isArray(h)?h.reduce(e8,l):Object.assign(Object.assign({},l),h)}let L4=(()=>{class l{constructor(g,S,F,G,fe){this._zone=g,this._injector=S,this._exceptionHandler=F,this._componentFactoryResolver=G,this._initStatus=fe,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const Ie=new v.y(ut=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{ut.next(this._stable),ut.complete()})}),Ye=new v.y(ut=>{let Tt;this._zone.runOutsideAngular(()=>{Tt=this._zone.onStable.subscribe(()=>{Io.assertNotInAngularZone(),bp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,ut.next(!0))})})});const Gt=this._zone.onUnstable.subscribe(()=>{Io.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{ut.next(!1)}))});return()=>{Tt.unsubscribe(),Gt.unsubscribe()}});this.isStable=(0,C.T)(Ie,Ye.pipe((0,s.B)()))}bootstrap(g,S){if(!this._initStatus.done)throw new w("405","");let F;F=g instanceof Zp?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(F.componentType);const G=function(l){return l.isBoundToModule}(F)?void 0:this._injector.get(Zu),Ie=F.create(Vs.NULL,[],S||F.selector,G),Ye=Ie.location.nativeElement,ut=Ie.injector.get(qm,null),Tt=ut&&Ie.injector.get(Km);return ut&&Tt&&Tt.registerApplication(Ye,ut),Ie.onDestroy(()=>{this.detachView(Ie.hostView),wp(this.components,Ie),Tt&&Tt.unregisterApplication(Ye)}),this._loadComponent(Ie),Ie}tick(){if(this._runningTick)throw new w("101","");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const S=g;this._views.push(S),S.attachToAppRef(this)}detachView(g){const S=g;wp(this._views,S),S.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Vm,[]).concat(this._bootstrapListeners).forEach(F=>F(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return l.\u0275fac=function(g){return new(g||l)(Ia(Io),Ia(Vs),Ia(Dc),Ia(M4),Ia(Wu))},l.\u0275prov=xe({token:l,factory:l.\u0275fac}),l})();function wp(l,h){const g=l.indexOf(h);g>-1&&l.splice(g,1)}let i8=!0,n8=!1;function Kg(){return n8=!0,i8}function Qg(){if(n8)throw new Error("Cannot enable prod mode after platform setup.");i8=!1}let Jg=(()=>{class l{}return l.__NG_ELEMENT_ID__=Xg,l})();function Xg(l){return function(l,h,g){if(wi(l)&&!g){const S=ei(l.index,h);return new A4(S,S)}return 47&l.type?new A4(h[16],h):null}(cr(),ki(),16==(16&l))}class c8{constructor(){}supports(h){return Vc(h)}create(h){return new a5(h)}}const r5=(l,h)=>h;class a5{constructor(h){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=h||r5}forEachItem(h){let g;for(g=this._itHead;null!==g;g=g._next)h(g)}forEachOperation(h){let g=this._itHead,S=this._removalsHead,F=0,G=null;for(;g||S;){const fe=!S||g&&g.currentIndex<d8(S,F,G)?g:S,Ie=d8(fe,F,G),Ye=fe.currentIndex;if(fe===S)F--,S=S._nextRemoved;else if(g=g._next,null==fe.previousIndex)F++;else{G||(G=[]);const ut=Ie-F,Tt=Ye-F;if(ut!=Tt){for(let oi=0;oi<ut;oi++){const gi=oi<G.length?G[oi]:G[oi]=0,Li=gi+oi;Tt<=Li&&Li<ut&&(G[oi]=gi+1)}G[fe.previousIndex]=Tt-ut}}Ie!==Ye&&h(fe,Ie,Ye)}}forEachPreviousItem(h){let g;for(g=this._previousItHead;null!==g;g=g._nextPrevious)h(g)}forEachAddedItem(h){let g;for(g=this._additionsHead;null!==g;g=g._nextAdded)h(g)}forEachMovedItem(h){let g;for(g=this._movesHead;null!==g;g=g._nextMoved)h(g)}forEachRemovedItem(h){let g;for(g=this._removalsHead;null!==g;g=g._nextRemoved)h(g)}forEachIdentityChange(h){let g;for(g=this._identityChangesHead;null!==g;g=g._nextIdentityChange)h(g)}diff(h){if(null==h&&(h=[]),!Vc(h))throw new Error(`Error trying to diff '${N(h)}'. Only arrays and iterables are allowed`);return this.check(h)?this:null}onDestroy(){}check(h){this._reset();let F,G,fe,g=this._itHead,S=!1;if(Array.isArray(h)){this.length=h.length;for(let Ie=0;Ie<this.length;Ie++)G=h[Ie],fe=this._trackByFn(Ie,G),null!==g&&Object.is(g.trackById,fe)?(S&&(g=this._verifyReinsertion(g,G,fe,Ie)),Object.is(g.item,G)||this._addIdentityChange(g,G)):(g=this._mismatch(g,G,fe,Ie),S=!0),g=g._next}else F=0,function(l,h){if(Array.isArray(l))for(let g=0;g<l.length;g++)h(l[g]);else{const g=l[Ql()]();let S;for(;!(S=g.next()).done;)h(S.value)}}(h,Ie=>{fe=this._trackByFn(F,Ie),null!==g&&Object.is(g.trackById,fe)?(S&&(g=this._verifyReinsertion(g,Ie,fe,F)),Object.is(g.item,Ie)||this._addIdentityChange(g,Ie)):(g=this._mismatch(g,Ie,fe,F),S=!0),g=g._next,F++}),this.length=F;return this._truncate(g),this.collection=h,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let h;for(h=this._previousItHead=this._itHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._additionsHead;null!==h;h=h._nextAdded)h.previousIndex=h.currentIndex;for(this._additionsHead=this._additionsTail=null,h=this._movesHead;null!==h;h=h._nextMoved)h.previousIndex=h.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(h,g,S,F){let G;return null===h?G=this._itTail:(G=h._prev,this._remove(h)),null!==(h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null))?(Object.is(h.item,g)||this._addIdentityChange(h,g),this._reinsertAfter(h,G,F)):null!==(h=null===this._linkedRecords?null:this._linkedRecords.get(S,F))?(Object.is(h.item,g)||this._addIdentityChange(h,g),this._moveAfter(h,G,F)):h=this._addAfter(new s5(g,S),G,F),h}_verifyReinsertion(h,g,S,F){let G=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null);return null!==G?h=this._reinsertAfter(G,h._prev,F):h.currentIndex!=F&&(h.currentIndex=F,this._addToMoves(h,F)),h}_truncate(h){for(;null!==h;){const g=h._next;this._addToRemovals(this._unlink(h)),h=g}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(h,g,S){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(h);const F=h._prevRemoved,G=h._nextRemoved;return null===F?this._removalsHead=G:F._nextRemoved=G,null===G?this._removalsTail=F:G._prevRemoved=F,this._insertAfter(h,g,S),this._addToMoves(h,S),h}_moveAfter(h,g,S){return this._unlink(h),this._insertAfter(h,g,S),this._addToMoves(h,S),h}_addAfter(h,g,S){return this._insertAfter(h,g,S),this._additionsTail=null===this._additionsTail?this._additionsHead=h:this._additionsTail._nextAdded=h,h}_insertAfter(h,g,S){const F=null===g?this._itHead:g._next;return h._next=F,h._prev=g,null===F?this._itTail=h:F._prev=h,null===g?this._itHead=h:g._next=h,null===this._linkedRecords&&(this._linkedRecords=new h8),this._linkedRecords.put(h),h.currentIndex=S,h}_remove(h){return this._addToRemovals(this._unlink(h))}_unlink(h){null!==this._linkedRecords&&this._linkedRecords.remove(h);const g=h._prev,S=h._next;return null===g?this._itHead=S:g._next=S,null===S?this._itTail=g:S._prev=g,h}_addToMoves(h,g){return h.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=h:this._movesTail._nextMoved=h),h}_addToRemovals(h){return null===this._unlinkedRecords&&(this._unlinkedRecords=new h8),this._unlinkedRecords.put(h),h.currentIndex=null,h._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=h,h._prevRemoved=null):(h._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=h),h}_addIdentityChange(h,g){return h.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=h:this._identityChangesTail._nextIdentityChange=h,h}}class s5{constructor(h,g){this.item=h,this.trackById=g,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class o5{constructor(){this._head=null,this._tail=null}add(h){null===this._head?(this._head=this._tail=h,h._nextDup=null,h._prevDup=null):(this._tail._nextDup=h,h._prevDup=this._tail,h._nextDup=null,this._tail=h)}get(h,g){let S;for(S=this._head;null!==S;S=S._nextDup)if((null===g||g<=S.currentIndex)&&Object.is(S.trackById,h))return S;return null}remove(h){const g=h._prevDup,S=h._nextDup;return null===g?this._head=S:g._nextDup=S,null===S?this._tail=g:S._prevDup=g,null===this._head}}class h8{constructor(){this.map=new Map}put(h){const g=h.trackById;let S=this.map.get(g);S||(S=new o5,this.map.set(g,S)),S.add(h)}get(h,g){const F=this.map.get(h);return F?F.get(h,g):null}remove(h){const g=h.trackById;return this.map.get(g).remove(h)&&this.map.delete(g),h}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function d8(l,h,g){const S=l.previousIndex;if(null===S)return S;let F=0;return g&&S<g.length&&(F=g[S]),S+h+F}class u8{constructor(){}supports(h){return h instanceof Map||E2(h)}create(){return new l5}}class l5{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(h){let g;for(g=this._mapHead;null!==g;g=g._next)h(g)}forEachPreviousItem(h){let g;for(g=this._previousMapHead;null!==g;g=g._nextPrevious)h(g)}forEachChangedItem(h){let g;for(g=this._changesHead;null!==g;g=g._nextChanged)h(g)}forEachAddedItem(h){let g;for(g=this._additionsHead;null!==g;g=g._nextAdded)h(g)}forEachRemovedItem(h){let g;for(g=this._removalsHead;null!==g;g=g._nextRemoved)h(g)}diff(h){if(h){if(!(h instanceof Map||E2(h)))throw new Error(`Error trying to diff '${N(h)}'. Only maps and objects are allowed`)}else h=new Map;return this.check(h)?this:null}onDestroy(){}check(h){this._reset();let g=this._mapHead;if(this._appendAfter=null,this._forEach(h,(S,F)=>{if(g&&g.key===F)this._maybeAddToChanges(g,S),this._appendAfter=g,g=g._next;else{const G=this._getOrCreateRecordForKey(F,S);g=this._insertBeforeOrAppend(g,G)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let S=g;null!==S;S=S._nextRemoved)S===this._mapHead&&(this._mapHead=null),this._records.delete(S.key),S._nextRemoved=S._next,S.previousValue=S.currentValue,S.currentValue=null,S._prev=null,S._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(h,g){if(h){const S=h._prev;return g._next=h,g._prev=S,h._prev=g,S&&(S._next=g),h===this._mapHead&&(this._mapHead=g),this._appendAfter=h,h}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(h,g){if(this._records.has(h)){const F=this._records.get(h);this._maybeAddToChanges(F,g);const G=F._prev,fe=F._next;return G&&(G._next=fe),fe&&(fe._prev=G),F._next=null,F._prev=null,F}const S=new c5(h);return this._records.set(h,S),S.currentValue=g,this._addToAdditions(S),S}_reset(){if(this.isDirty){let h;for(this._previousMapHead=this._mapHead,h=this._previousMapHead;null!==h;h=h._next)h._nextPrevious=h._next;for(h=this._changesHead;null!==h;h=h._nextChanged)h.previousValue=h.currentValue;for(h=this._additionsHead;null!=h;h=h._nextAdded)h.previousValue=h.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(h,g){Object.is(g,h.currentValue)||(h.previousValue=h.currentValue,h.currentValue=g,this._addToChanges(h))}_addToAdditions(h){null===this._additionsHead?this._additionsHead=this._additionsTail=h:(this._additionsTail._nextAdded=h,this._additionsTail=h)}_addToChanges(h){null===this._changesHead?this._changesHead=this._changesTail=h:(this._changesTail._nextChanged=h,this._changesTail=h)}_forEach(h,g){h instanceof Map?h.forEach(g):Object.keys(h).forEach(S=>g(h[S],S))}}class c5{constructor(h){this.key=h,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function f8(){return new Y3([new c8])}let Y3=(()=>{class l{constructor(g){this.factories=g}static create(g,S){if(null!=S){const F=S.factories.slice();g=g.concat(F)}return new l(g)}static extend(g){return{provide:l,useFactory:S=>l.create(g,S||f8()),deps:[[l,new zs,new bo]]}}find(g){const S=this.factories.find(F=>F.supports(g));if(null!=S)return S;throw new Error(`Cannot find a differ supporting object '${g}' of type '${function(l){return l.name||typeof l}(g)}'`)}}return l.\u0275prov=xe({token:l,providedIn:"root",factory:f8}),l})();function p8(){return new j3([new u8])}let j3=(()=>{class l{constructor(g){this.factories=g}static create(g,S){if(S){const F=S.factories.slice();g=g.concat(F)}return new l(g)}static extend(g){return{provide:l,useFactory:S=>l.create(g,S||p8()),deps:[[l,new zs,new bo]]}}find(g){const S=this.factories.find(F=>F.supports(g));if(S)return S;throw new Error(`Cannot find a differ supporting object '${g}'`)}}return l.\u0275prov=xe({token:l,providedIn:"root",factory:p8}),l})();const d5=[new u8],f5=new Y3([new c8]),p5=new j3(d5),m5=Jm(null,"core",[{provide:Zm,useValue:"unknown"},{provide:$m,deps:[Vs]},{provide:Km,deps:[]},{provide:Gm,deps:[]}]),b5=[{provide:L4,useClass:L4,deps:[Io,Vs,Dc,M4,Wu]},{provide:N8,deps:[Io],useFactory:function(l){let h=[];return l.onStable.subscribe(()=>{for(;h.length;)h.pop()()}),function(g){h.push(g)}}},{provide:Wu,useClass:Wu,deps:[[new bo,_p]]},{provide:yp,useClass:yp,deps:[]},Dg,{provide:Y3,useFactory:function(){return f5},deps:[]},{provide:j3,useFactory:function(){return p5},deps:[]},{provide:G3,useFactory:function(l){return l||"undefined"!=typeof $localize&&$localize.locale||c0},deps:[[new yo(G3),new bo,new zs]]},{provide:Wm,useValue:"USD"}];let C5=(()=>{class l{constructor(g){}}return l.\u0275fac=function(g){return new(g||l)(Ia(L4))},l.\u0275mod=lt({type:l}),l.\u0275inj=Be({providers:b5}),l})()},9042:(Ze,K,m)=>{"use strict";function e(L){for(let O in L){let A=L[O]||"";switch(O){case"display":L.display="flex"===A?["-webkit-flex","flex"]:"inline-flex"===A?["-webkit-inline-flex","inline-flex"]:A;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":L["-webkit-"+O]=A;break;case"flex-direction":A=A||"row",L["-webkit-flex-direction"]=A,L["flex-direction"]=A;break;case"order":L.order=L["-webkit-"+O]=isNaN(+A)?"0":A}}return L}m.d(K,{iQ:()=>v,GK:()=>e,Ar:()=>C,kt:()=>o,tj:()=>M});const t="inline",v=["row","column","row-reverse","column-reverse"];function C(L){let[O,A,E]=s(L);return function(L,O=null,A=!1){return{display:A?"inline-flex":"flex","box-sizing":"border-box","flex-direction":L,"flex-wrap":O||null}}(O,A,E)}function s(L){L=L?L.toLowerCase():"";let[O,A,E]=L.split(" ");return v.find(k=>k===O)||(O=v[0]),A===t&&(A=E!==t?E:"",E=t),[O,c(A),!!E]}function M(L){let[O]=s(L);return O.indexOf("row")>-1}function c(L){if(L)switch(L.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":L="wrap-reverse";break;case"no":case"none":case"nowrap":L="nowrap";break;default:L="wrap"}return L}function o(L,...O){if(null==L)throw TypeError("Cannot convert undefined or null to object");for(let A of O)if(null!=A)for(let E in A)A.hasOwnProperty(E)&&(L[E]=A[E]);return L}},3270:(Ze,K,m)=>{"use strict";m.d(K,{Bs:()=>$,iR:()=>Pe,IR:()=>E,g5:()=>V,WU:()=>W,yB:()=>We,wY:()=>j,QI:()=>me,RK:()=>ce,Ot:()=>Ue});var e=m(5e3),t=m(9808),v=m(1135),C=m(8306),s=m(6451),M=m(7579),c=m(9042),N=m(9300),o=m(8505);const O={provide:e.tb,useFactory:function(it,ft){return()=>{if((0,t.NF)(ft)){const nt=Array.from(it.querySelectorAll(`[class*=${A}]`)),st=/\bflex-layout-.+?\b/g;nt.forEach(wt=>{wt.classList.contains(`${A}ssr`)&&wt.parentNode?wt.parentNode.removeChild(wt):wt.className.replace(st,"")})}}},deps:[t.K0,e.Lbi],multi:!0},A="flex-layout-";let E=(()=>{class it{}return it.\u0275fac=function(nt){return new(nt||it)},it.\u0275mod=e.oAB({type:it}),it.\u0275inj=e.cJS({providers:[O]}),it})();class k{constructor(ft=!1,nt="all",st="",wt="",Bt=0){this.matches=ft,this.mediaQuery=nt,this.mqAlias=st,this.suffix=wt,this.priority=Bt,this.property=""}clone(){return new k(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let w=(()=>{class it{constructor(){this.stylesheet=new Map}addStyleToElement(nt,st,wt){const Bt=this.stylesheet.get(nt);Bt?Bt.set(st,wt):this.stylesheet.set(nt,new Map([[st,wt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(nt,st){const wt=this.stylesheet.get(nt);let Bt="";if(wt){const Pt=wt.get(st);("number"==typeof Pt||"string"==typeof Pt)&&(Bt=Pt+"")}return Bt}}return it.\u0275fac=function(nt){return new(nt||it)},it.\u0275prov=e.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();const V={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},W=new e.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>V}),j=new e.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),$=new e.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ee(it,ft){return it=it?it.clone():new k,ft&&(it.mqAlias=ft.alias,it.mediaQuery=ft.mediaQuery,it.suffix=ft.suffix,it.priority=ft.priority),it}class me{constructor(){this.shouldCache=!0}sideEffect(ft,nt,st){}}let ce=(()=>{class it{constructor(nt,st,wt,Bt){this._serverStylesheet=nt,this._serverModuleLoaded=st,this._platformId=wt,this.layoutConfig=Bt}applyStyleToElement(nt,st,wt=null){let Bt={};"string"==typeof st&&(Bt[st]=wt,st=Bt),Bt=this.layoutConfig.disableVendorPrefixes?st:(0,c.GK)(st),this._applyMultiValueStyleToElement(Bt,nt)}applyStyleToElements(nt,st=[]){const wt=this.layoutConfig.disableVendorPrefixes?nt:(0,c.GK)(nt);st.forEach(Bt=>{this._applyMultiValueStyleToElement(wt,Bt)})}getFlowDirection(nt){const st="flex-direction";let wt=this.lookupStyle(nt,st);return[wt||"row",this.lookupInlineStyle(nt,st)||(0,t.PM)(this._platformId)&&this._serverModuleLoaded?wt:""]}hasWrap(nt){return"wrap"===this.lookupStyle(nt,"flex-wrap")}lookupAttributeValue(nt,st){return nt.getAttribute(st)||""}lookupInlineStyle(nt,st){return(0,t.NF)(this._platformId)?nt.style.getPropertyValue(st):this._getServerStyle(nt,st)}lookupStyle(nt,st,wt=!1){let Bt="";return nt&&((Bt=this.lookupInlineStyle(nt,st))||((0,t.NF)(this._platformId)?wt||(Bt=getComputedStyle(nt).getPropertyValue(st)):this._serverModuleLoaded&&(Bt=this._serverStylesheet.getStyleForElement(nt,st)))),Bt?Bt.trim():""}_applyMultiValueStyleToElement(nt,st){Object.keys(nt).sort().forEach(wt=>{const Bt=nt[wt],Pt=Array.isArray(Bt)?Bt:[Bt];Pt.sort();for(let Vt of Pt)Vt=Vt?Vt+"":"",(0,t.NF)(this._platformId)||!this._serverModuleLoaded?(0,t.NF)(this._platformId)?st.style.setProperty(wt,Vt):this._setServerStyle(st,wt,Vt):this._serverStylesheet.addStyleToElement(st,wt,Vt)})}_setServerStyle(nt,st,wt){st=st.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Bt=this._readStyleAttribute(nt);Bt[st]=wt||"",this._writeStyleAttribute(nt,Bt)}_getServerStyle(nt,st){return this._readStyleAttribute(nt)[st]||""}_readStyleAttribute(nt){const st={},wt=nt.getAttribute("style");if(wt){const Bt=wt.split(/;+/g);for(let Pt=0;Pt<Bt.length;Pt++){const Vt=Bt[Pt].trim();if(Vt.length>0){const Oi=Vt.indexOf(":");if(-1===Oi)throw new Error(`Invalid CSS style: ${Vt}`);st[Vt.substr(0,Oi).trim()]=Vt.substr(Oi+1).trim()}}}return st}_writeStyleAttribute(nt,st){let wt="";for(const Bt in st)st[Bt]&&(wt+=Bt+":"+st[Bt]+";");nt.setAttribute("style",wt)}}return it.\u0275fac=function(nt){return new(nt||it)(e.LFG(w),e.LFG(j),e.LFG(e.Lbi),e.LFG(W))},it.\u0275prov=e.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();function le(it,ft){return(ft&&ft.priority||0)-(it&&it.priority||0)}function te(it,ft){return(it.priority||0)-(ft.priority||0)}let re=(()=>{class it{constructor(nt,st,wt){this._zone=nt,this._platformId=st,this._document=wt,this.source=new v.X(new k(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const nt=[];return this.registry.forEach((st,wt)=>{st.matches&&nt.push(wt)}),nt}isActive(nt){const st=this.registry.get(nt);return st?st.matches:this.registerQuery(nt).some(wt=>wt.matches)}observe(nt,st=!1){if(nt&&nt.length){const wt=this._observable$.pipe((0,N.h)(Pt=>!st||nt.indexOf(Pt.mediaQuery)>-1)),Bt=new C.y(Pt=>{const Vt=this.registerQuery(nt);if(Vt.length){const Oi=Vt.pop();Vt.forEach(jt=>{Pt.next(jt)}),this.source.next(Oi)}Pt.complete()});return(0,s.T)(Bt,wt)}return this._observable$}registerQuery(nt){const st=Array.isArray(nt)?nt:[nt],wt=[];return function(it,ft){const nt=it.filter(st=>!pe[st]);if(nt.length>0){const st=nt.join(", ");try{const wt=ft.createElement("style");wt.setAttribute("type","text/css"),wt.styleSheet||wt.appendChild(ft.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${st} {.fx-query-test{ }}\n`)),ft.head.appendChild(wt),nt.forEach(Bt=>pe[Bt]=wt)}catch(wt){console.error(wt)}}}(st,this._document),st.forEach(Bt=>{const Pt=Oi=>{this._zone.run(()=>this.source.next(new k(Oi.matches,Bt)))};let Vt=this.registry.get(Bt);Vt||(Vt=this.buildMQL(Bt),Vt.addListener(Pt),this.pendingRemoveListenerFns.push(()=>Vt.removeListener(Pt)),this.registry.set(Bt,Vt)),Vt.matches&&wt.push(new k(!0,Bt))}),wt}ngOnDestroy(){let nt;for(;nt=this.pendingRemoveListenerFns.pop();)nt()}buildMQL(nt){return function(it,ft){return ft&&window.matchMedia("all").addListener?window.matchMedia(it):{matches:"all"===it||""===it,media:it,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(nt,(0,t.NF)(this._platformId))}}return it.\u0275fac=function(nt){return new(nt||it)(e.LFG(e.R0b),e.LFG(e.Lbi),e.LFG(t.K0))},it.\u0275prov=e.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();const pe={},a=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],p="(orientation: portrait) and (max-width: 599.98px)",u="(orientation: landscape) and (max-width: 959.98px)",_="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",D="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",I="(orientation: portrait) and (min-width: 840px)",x="(orientation: landscape) and (min-width: 1280px)",r={HANDSET:`${p}, ${u}`,TABLET:`${_} , ${D}`,WEB:`${I}, ${x} `,HANDSET_PORTRAIT:`${p}`,TABLET_PORTRAIT:`${_} `,WEB_PORTRAIT:`${I}`,HANDSET_LANDSCAPE:`${u}`,TABLET_LANDSCAPE:`${D}`,WEB_LANDSCAPE:`${x}`},b=[{alias:"handset",priority:2e3,mediaQuery:r.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:r.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:r.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:r.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:r.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:r.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:r.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:r.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:r.WEB_PORTRAIT,overlapping:!0}],Z=/(\.|-|_)/g;function P(it){let ft=it.length>0?it.charAt(0):"",nt=it.length>1?it.slice(1):"";return ft.toUpperCase()+nt}const Ne=new e.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const it=(0,e.f3M)($),ft=(0,e.f3M)(W),nt=[].concat.apply([],(it||[]).map(wt=>Array.isArray(wt)?wt:[wt]));return function(it,ft=[]){const nt={};return it.forEach(st=>{nt[st.alias]=st}),ft.forEach(st=>{nt[st.alias]?(0,c.kt)(nt[st.alias],st):nt[st.alias]=st}),function(it){return it.forEach(ft=>{ft.suffix||(ft.suffix=function(it){return it.replace(Z,"|").split("|").map(P).join("")}(ft.alias),ft.overlapping=!!ft.overlapping)}),it}(Object.keys(nt).map(st=>nt[st]))}((ft.disableDefaultBps?[]:a).concat(ft.addOrientationBps?b:[]),nt)}});let Be=(()=>{class it{constructor(nt){this.findByMap=new Map,this.items=[...nt].sort(te)}findByAlias(nt){return nt?this.findWithPredicate(nt,st=>st.alias==nt):null}findByQuery(nt){return this.findWithPredicate(nt,st=>st.mediaQuery==nt)}get overlappings(){return this.items.filter(nt=>1==nt.overlapping)}get aliases(){return this.items.map(nt=>nt.alias)}get suffixes(){return this.items.map(nt=>nt.suffix?nt.suffix:"")}findWithPredicate(nt,st){let wt=this.findByMap.get(nt);return wt||(wt=this.items.find(st)||null,this.findByMap.set(nt,wt)),wt||null}}return it.\u0275fac=function(nt){return new(nt||it)(e.LFG(Ne))},it.\u0275prov=e.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();const Oe="print",B={alias:Oe,mediaQuery:Oe,priority:1e3};let Me=(()=>{class it{constructor(nt,st,wt){this.breakpoints=nt,this.layoutConfig=st,this._document=wt,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new we,this.deactivations=[]}withPrintQuery(nt){return[...nt,Oe]}isPrintEvent(nt){return nt.mediaQuery.startsWith(Oe)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(nt=>this.breakpoints.findByAlias(nt)).filter(nt=>null!==nt)}getEventBreakpoints({mediaQuery:nt}){const st=this.breakpoints.findByQuery(nt);return(st?[...this.printBreakPoints,st]:this.printBreakPoints).sort(le)}updateEvent(nt){let st=this.breakpoints.findByQuery(nt.mediaQuery);return this.isPrintEvent(nt)&&(st=this.getEventBreakpoints(nt)[0],nt.mediaQuery=st?st.mediaQuery:""),ee(nt,st)}registerBeforeAfterPrintHooks(nt){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const st=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(nt,this.getEventBreakpoints(new k(!0,Oe))),nt.updateStyles())},wt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(nt),nt.updateStyles())};this._document.defaultView.addEventListener("beforeprint",st),this._document.defaultView.addEventListener("afterprint",wt),this.beforePrintEventListeners.push(st),this.afterPrintEventListeners.push(wt)}interceptEvents(nt){return this.registerBeforeAfterPrintHooks(nt),st=>{this.isPrintEvent(st)?st.matches&&!this.isPrinting?(this.startPrinting(nt,this.getEventBreakpoints(st)),nt.updateStyles()):!st.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(nt),nt.updateStyles()):this.collectActivations(st)}}blockPropagation(){return nt=>!(this.isPrinting||this.isPrintEvent(nt))}startPrinting(nt,st){this.isPrinting=!0,nt.activatedBreakpoints=this.queue.addPrintBreakpoints(st)}stopPrinting(nt){nt.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(nt){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(nt.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const st=this.breakpoints.findByQuery(nt.mediaQuery);st&&(this.deactivations.push(st),this.deactivations.sort(le))}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(nt=>this._document.defaultView.removeEventListener("beforeprint",nt)),this.afterPrintEventListeners.forEach(nt=>this._document.defaultView.removeEventListener("afterprint",nt)))}}return it.\u0275fac=function(nt){return new(nt||it)(e.LFG(Be),e.LFG(W),e.LFG(t.K0))},it.\u0275prov=e.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();class we{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(ft){return ft.push(B),ft.sort(le),ft.forEach(nt=>this.addBreakpoint(nt)),this.printBreakpoints}addBreakpoint(ft){var it;ft&&void 0===this.printBreakpoints.find(st=>st.mediaQuery===ft.mediaQuery)&&(this.printBreakpoints=(it=ft)&&it.mediaQuery.startsWith(Oe)?[ft,...this.printBreakpoints]:[...this.printBreakpoints,ft])}clear(){this.printBreakpoints=[]}}let We=(()=>{class it{constructor(nt,st,wt){this.matchMedia=nt,this.breakpoints=st,this.hook=wt,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new M.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(nt){const st=this.findByQuery(nt.mediaQuery);st&&((nt=ee(nt,st)).matches&&-1===this.activatedBreakpoints.indexOf(st)?(this.activatedBreakpoints.push(st),this.activatedBreakpoints.sort(le),this.updateStyles()):!nt.matches&&-1!==this.activatedBreakpoints.indexOf(st)&&(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(st),1),this.activatedBreakpoints.sort(le),this.updateStyles()))}init(nt,st,wt,Bt,Pt=[]){vt(this.updateMap,nt,st,wt),vt(this.clearMap,nt,st,Bt),this.buildElementKeyMap(nt,st),this.watchExtraTriggers(nt,st,Pt)}getValue(nt,st,wt){const Bt=this.elementMap.get(nt);if(Bt){const Pt=void 0!==wt?Bt.get(wt):this.getActivatedValues(Bt,st);if(Pt)return Pt.get(st)}}hasValue(nt,st){const wt=this.elementMap.get(nt);if(wt){const Bt=this.getActivatedValues(wt,st);if(Bt)return void 0!==Bt.get(st)||!1}return!1}setValue(nt,st,wt,Bt){let Pt=this.elementMap.get(nt);if(Pt){const Oi=(Pt.get(Bt)||new Map).set(st,wt);Pt.set(Bt,Oi),this.elementMap.set(nt,Pt)}else Pt=(new Map).set(Bt,(new Map).set(st,wt)),this.elementMap.set(nt,Pt);const Vt=this.getValue(nt,st);void 0!==Vt&&this.updateElement(nt,st,Vt)}trackValue(nt,st){return this.subject.asObservable().pipe((0,N.h)(wt=>wt.element===nt&&wt.key===st))}updateStyles(){this.elementMap.forEach((nt,st)=>{const wt=new Set(this.elementKeyMap.get(st));let Bt=this.getActivatedValues(nt);Bt&&Bt.forEach((Pt,Vt)=>{this.updateElement(st,Vt,Pt),wt.delete(Vt)}),wt.forEach(Pt=>{if(Bt=this.getActivatedValues(nt,Pt),Bt){const Vt=Bt.get(Pt);this.updateElement(st,Pt,Vt)}else this.clearElement(st,Pt)})})}clearElement(nt,st){const wt=this.clearMap.get(nt);if(wt){const Bt=wt.get(st);Bt&&(Bt(),this.subject.next({element:nt,key:st,value:""}))}}updateElement(nt,st,wt){const Bt=this.updateMap.get(nt);if(Bt){const Pt=Bt.get(st);Pt&&(Pt(wt),this.subject.next({element:nt,key:st,value:wt}))}}releaseElement(nt){const st=this.watcherMap.get(nt);st&&(st.forEach(Bt=>Bt.unsubscribe()),this.watcherMap.delete(nt));const wt=this.elementMap.get(nt);wt&&(wt.forEach((Bt,Pt)=>wt.delete(Pt)),this.elementMap.delete(nt))}triggerUpdate(nt,st){const wt=this.elementMap.get(nt);if(wt){const Bt=this.getActivatedValues(wt,st);Bt&&(st?this.updateElement(nt,st,Bt.get(st)):Bt.forEach((Pt,Vt)=>this.updateElement(nt,Vt,Pt)))}}buildElementKeyMap(nt,st){let wt=this.elementKeyMap.get(nt);wt||(wt=new Set,this.elementKeyMap.set(nt,wt)),wt.add(st)}watchExtraTriggers(nt,st,wt){if(wt&&wt.length){let Bt=this.watcherMap.get(nt);if(Bt||(Bt=new Map,this.watcherMap.set(nt,Bt)),!Bt.get(st)){const Vt=(0,s.T)(...wt).subscribe(()=>{const Oi=this.getValue(nt,st);this.updateElement(nt,st,Oi)});Bt.set(st,Vt)}}}findByQuery(nt){return this.breakpoints.findByQuery(nt)}getActivatedValues(nt,st){for(let Bt=0;Bt<this.activatedBreakpoints.length;Bt++){const Vt=nt.get(this.activatedBreakpoints[Bt].alias);if(Vt&&(void 0===st||Vt.has(st)&&null!=Vt.get(st)))return Vt}const wt=nt.get("");return void 0===st||wt&&wt.has(st)?wt:void 0}observeActivations(){const st=this.breakpoints.items.map(wt=>wt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(st)).pipe((0,o.b)(this.hook.interceptEvents(this)),(0,N.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return it.\u0275fac=function(nt){return new(nt||it)(e.LFG(re),e.LFG(Be),e.LFG(Me))},it.\u0275prov=e.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();function vt(it,ft,nt,st){if(void 0!==st){let wt=it.get(ft);wt||(wt=new Map,it.set(ft,wt)),wt.set(nt,st)}}let Pe=(()=>{class it{constructor(nt,st,wt,Bt){this.elementRef=nt,this.styleBuilder=st,this.styler=wt,this.marshal=Bt,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new M.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(nt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,nt,this.marshal.activatedAlias)}ngOnChanges(nt){Object.keys(nt).forEach(st=>{if(-1!==this.inputs.indexOf(st)){const wt=st.split(".").slice(1).join(".");this.setValue(nt[st].currentValue,wt)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(nt=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),nt)}addStyles(nt,st){const wt=this.styleBuilder,Bt=wt.shouldCache;let Pt=this.styleCache.get(nt);(!Pt||!Bt)&&(Pt=wt.buildStyles(nt,st),Bt&&this.styleCache.set(nt,Pt)),this.mru=Object.assign({},Pt),this.applyStyleToElement(Pt),wt.sideEffect(nt,Pt,st)}clearStyles(){Object.keys(this.mru).forEach(nt=>{this.mru[nt]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(nt,st=!1){if(nt){const[wt,Bt]=this.styler.getFlowDirection(nt);if(!Bt&&st){const Pt=(0,c.Ar)(wt);this.styler.applyStyleToElements(Pt,[nt])}return wt.trim()}return"row"}hasWrap(nt){return this.styler.hasWrap(nt)}applyStyleToElement(nt,st,wt=this.nativeElement){this.styler.applyStyleToElement(wt,nt,st)}setValue(nt,st){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,nt,st)}updateWithValue(nt){this.currentValue!==nt&&(this.addStyles(nt),this.currentValue=nt)}}return it.\u0275fac=function(nt){return new(nt||it)(e.Y36(e.SBq),e.Y36(me),e.Y36(ce),e.Y36(We))},it.\u0275dir=e.lG2({type:it,features:[e.TTD]}),it})();function Ue(it,ft="1",nt="1"){let st=[ft,nt,it],wt=it.indexOf("calc");if(wt>0){st[2]=ht(it.substring(wt).trim());let Bt=it.substr(0,wt).trim().split(" ");2==Bt.length&&(st[0]=Bt[0],st[1]=Bt[1])}else if(0==wt)st[2]=ht(it.trim());else{let Bt=it.split(" ");st=3===Bt.length?Bt:[ft,nt,it]}return st}function ht(it){return it.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}},3322:(Ze,K,m)=>{"use strict";m.d(K,{oO:()=>V,Zl:()=>D,aT:()=>r});var e=m(5e3),t=m(3270),v=m(9808),M=(m(3191),m(2722),m(2313));let E=(()=>{class b extends t.iR{constructor(P,U,ye,xe,Ne,Be,Oe){super(P,null,U,ye),this.ngClassInstance=Oe,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new v.mk(xe,Ne,P,Be)),this.init(),this.setValue("","")}set klass(P){this.ngClassInstance.klass=P,this.setValue(P,"")}updateWithValue(P){this.ngClassInstance.ngClass=P,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return b.\u0275fac=function(P){return new(P||b)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(v.mk,10))},b.\u0275dir=e.lG2({type:b,inputs:{klass:["class","klass"]},features:[e.qOj]}),b})();const k=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let V=(()=>{class b extends E{constructor(){super(...arguments),this.inputs=k}}return b.\u0275fac=function(){let Z;return function(U){return(Z||(Z=e.n5z(b)))(U||b)}}(),b.\u0275dir=e.lG2({type:b,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[e.qOj]}),b})();class le{constructor(Z,P,U=!0){this.key=Z,this.value=P,this.key=U?Z.replace(/['"]/g,"").trim():Z.trim(),this.value=U?P.replace(/['"]/g,"").trim():P.trim(),this.value=this.value.replace(/;/,"")}}function te(b){let Z=typeof b;return"object"===Z?b.constructor===Array?"array":b.constructor===Set?"set":"object":Z}function i(b){const[Z,...P]=b.split(":");return new le(Z,P.join(":"))}function a(b,Z){return Z.key&&(b[Z.key]=Z.value),b}let p=(()=>{class b extends t.iR{constructor(P,U,ye,xe,Ne,Be,Oe,B,Me){super(P,null,U,ye),this.sanitizer=xe,this.ngStyleInstance=Oe,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new v.PC(P,Ne,Be)),this.init();const we=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(we),this.isServer=B&&(0,v.PM)(Me)}updateWithValue(P){const U=this.buildStyleMap(P);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),U),this.isServer&&this.applyStyleToElement(U),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(P){const U=ye=>this.sanitizer.sanitize(e.q3G.STYLE,ye)||"";if(P)switch(te(P)){case"string":return I(function(b,Z=";"){return String(b).trim().split(Z).map(P=>P.trim()).filter(P=>""!==P)}(P),U);case"array":return I(P,U);default:return function(b,Z){let P=[];return"set"===te(b)?b.forEach(U=>P.push(U)):Object.keys(b).forEach(U=>{P.push(`${U}:${b[U]}`)}),function(b,Z){return b.map(i).filter(U=>!!U).map(U=>(Z&&(U.value=Z(U.value)),U)).reduce(a,{})}(P,Z)}(P,U)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return b.\u0275fac=function(P){return new(P||b)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(M.H7),e.Y36(e.aQg),e.Y36(e.Qsj),e.Y36(v.PC,10),e.Y36(t.wY),e.Y36(e.Lbi))},b.\u0275dir=e.lG2({type:b,features:[e.qOj]}),b})();const u=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let D=(()=>{class b extends p{constructor(){super(...arguments),this.inputs=u}}return b.\u0275fac=function(){let Z;return function(U){return(Z||(Z=e.n5z(b)))(U||b)}}(),b.\u0275dir=e.lG2({type:b,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[e.qOj]}),b})();function I(b,Z){return b.map(i).filter(U=>!!U).map(U=>(Z&&(U.value=Z(U.value)),U)).reduce(a,{})}let r=(()=>{class b{}return b.\u0275fac=function(P){return new(P||b)},b.\u0275mod=e.oAB({type:b}),b.\u0275inj=e.cJS({imports:[[t.IR]]}),b})()},7093:(Ze,K,m)=>{"use strict";m.d(K,{yH:()=>_,Wh:()=>st,xw:()=>O,ae:()=>di});var e=m(5e3),t=m(226),v=m(3270),C=m(9042),M=(m(7579),m(2722));let c=(()=>{class ze extends v.QI{buildStyles(Y){return(0,C.Ar)(Y)}}return ze.\u0275fac=function(){let Te;return function(ge){return(Te||(Te=e.n5z(ze)))(ge||ze)}}(),ze.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();const N=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let L=(()=>{class ze extends v.iR{constructor(Y,ge,Ae,et){super(Y,Ae,ge,et),this.DIRECTIVE_KEY="layout",this.styleCache=A,this.init()}}return ze.\u0275fac=function(Y){return new(Y||ze)(e.Y36(e.SBq),e.Y36(v.RK),e.Y36(c),e.Y36(v.yB))},ze.\u0275dir=e.lG2({type:ze,features:[e.qOj]}),ze})(),O=(()=>{class ze extends L{constructor(){super(...arguments),this.inputs=N}}return ze.\u0275fac=function(){let Te;return function(ge){return(Te||(Te=e.n5z(ze)))(ge||ze)}}(),ze.\u0275dir=e.lG2({type:ze,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[e.qOj]}),ze})();const A=new Map;let i=(()=>{class ze extends v.QI{constructor(Y){super(),this.layoutConfig=Y}buildStyles(Y,ge){let[Ae,et,...$t]=Y.split(" "),Nt=$t.join(" ");const Xt=ge.direction.indexOf("column")>-1?"column":"row",lt=(0,C.tj)(Xt)?"max-width":"max-height",Re=(0,C.tj)(Xt)?"min-width":"min-height",Fe=String(Nt).indexOf("calc")>-1,rt=Fe||"auto"===Nt,ot=String(Nt).indexOf("%")>-1&&!Fe,At=String(Nt).indexOf("px")>-1||String(Nt).indexOf("rem")>-1||String(Nt).indexOf("em")>-1||String(Nt).indexOf("vw")>-1||String(Nt).indexOf("vh")>-1;let li=Fe||At;Ae="0"==Ae?0:Ae,et="0"==et?0:et;const Ut=!Ae&&!et;let Ft={};const Si={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Nt||""){case"":const ai=!1!==this.layoutConfig.useColumnBasisZero;Nt="row"===Xt?"0%":ai?"0.000000001px":"auto";break;case"initial":case"nogrow":Ae=0,Nt="auto";break;case"grow":Nt="100%";break;case"noshrink":et=0,Nt="auto";break;case"auto":break;case"none":Ae=0,et=0,Nt="auto";break;default:!li&&!ot&&!isNaN(Nt)&&(Nt+="%"),"0%"===Nt&&(li=!0),"0px"===Nt&&(Nt="0%"),Ft=(0,C.kt)(Si,Fe?{"flex-grow":Ae,"flex-shrink":et,"flex-basis":li?Nt:"100%"}:{flex:`${Ae} ${et} ${li?Nt:"100%"}`})}return Ft.flex||Ft["flex-grow"]||(Ft=(0,C.kt)(Si,Fe?{"flex-grow":Ae,"flex-shrink":et,"flex-basis":Nt}:{flex:`${Ae} ${et} ${Nt}`})),"0%"!==Nt&&"0px"!==Nt&&"0.000000001px"!==Nt&&"auto"!==Nt&&(Ft[Re]=Ut||li&&Ae?Nt:null,Ft[lt]=Ut||!rt&&et?Nt:null),Ft[Re]||Ft[lt]?ge.hasWrap&&(Ft[Fe?"flex-basis":"flex"]=Ft[lt]?Fe?Ft[lt]:`${Ae} ${et} ${Ft[lt]}`:Fe?Ft[Re]:`${Ae} ${et} ${Ft[Re]}`):Ft=(0,C.kt)(Si,Fe?{"flex-grow":Ae,"flex-shrink":et,"flex-basis":Nt}:{flex:`${Ae} ${et} ${Nt}`}),(0,C.kt)(Ft,{"box-sizing":"border-box"})}}return ze.\u0275fac=function(Y){return new(Y||ze)(e.LFG(v.WU))},ze.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();const a=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let u=(()=>{class ze extends v.iR{constructor(Y,ge,Ae,et,$t){super(Y,et,ge,$t),this.layoutConfig=Ae,this.marshal=$t,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(Y){this.flexShrink=Y||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Y){this.flexGrow=Y||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,M.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,M.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Y){const Ae=Y.value.split(" ");this.direction=Ae[0],this.wrap=void 0!==Ae[1]&&"wrap"===Ae[1],this.triggerUpdate()}updateWithValue(Y){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const Ae=this.direction,et=Ae.startsWith("row"),$t=this.wrap;et&&$t?this.styleCache=x:et&&!$t?this.styleCache=D:!et&&$t?this.styleCache=r:!et&&!$t&&(this.styleCache=I);const Nt=String(Y).replace(";",""),Xt=(0,v.Ot)(Nt,this.flexGrow,this.flexShrink);this.addStyles(Xt.join(" "),{direction:Ae,hasWrap:$t})}triggerReflow(){const Y=this.activatedValue;if(void 0!==Y){const ge=(0,v.Ot)(Y+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,ge.join(" "))}}}return ze.\u0275fac=function(Y){return new(Y||ze)(e.Y36(e.SBq),e.Y36(v.RK),e.Y36(v.WU),e.Y36(i),e.Y36(v.yB))},ze.\u0275dir=e.lG2({type:ze,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[e.qOj]}),ze})(),_=(()=>{class ze extends u{constructor(){super(...arguments),this.inputs=a}}return ze.\u0275fac=function(){let Te;return function(ge){return(Te||(Te=e.n5z(ze)))(ge||ze)}}(),ze.\u0275dir=e.lG2({type:ze,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[e.qOj]}),ze})();const D=new Map,I=new Map,x=new Map,r=new Map;let ht=(()=>{class ze extends v.QI{buildStyles(Y,ge){const Ae={},[et,$t]=Y.split(" ");switch(et){case"center":Ae["justify-content"]="center";break;case"space-around":Ae["justify-content"]="space-around";break;case"space-between":Ae["justify-content"]="space-between";break;case"space-evenly":Ae["justify-content"]="space-evenly";break;case"end":case"flex-end":Ae["justify-content"]="flex-end";break;default:Ae["justify-content"]="flex-start"}switch($t){case"start":case"flex-start":Ae["align-items"]=Ae["align-content"]="flex-start";break;case"center":Ae["align-items"]=Ae["align-content"]="center";break;case"end":case"flex-end":Ae["align-items"]=Ae["align-content"]="flex-end";break;case"space-between":Ae["align-content"]="space-between",Ae["align-items"]="stretch";break;case"space-around":Ae["align-content"]="space-around",Ae["align-items"]="stretch";break;case"baseline":Ae["align-content"]="stretch",Ae["align-items"]="baseline";break;default:Ae["align-items"]=Ae["align-content"]="stretch"}return(0,C.kt)(Ae,{display:ge.inline?"inline-flex":"flex","flex-direction":ge.layout,"box-sizing":"border-box","max-width":"stretch"===$t?(0,C.tj)(ge.layout)?null:"100%":null,"max-height":"stretch"===$t&&(0,C.tj)(ge.layout)?"100%":null})}}return ze.\u0275fac=function(){let Te;return function(ge){return(Te||(Te=e.n5z(ze)))(ge||ze)}}(),ze.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();const it=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let nt=(()=>{class ze extends v.iR{constructor(Y,ge,Ae,et){super(Y,Ae,ge,et),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,M.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Y){const ge=this.layout||"row",Ae=this.inline;"row"===ge&&Ae?this.styleCache=Oi:"row"!==ge||Ae?"row-reverse"===ge&&Ae?this.styleCache=ti:"row-reverse"!==ge||Ae?"column"===ge&&Ae?this.styleCache=jt:"column"!==ge||Ae?"column-reverse"===ge&&Ae?this.styleCache=Pi:"column-reverse"===ge&&!Ae&&(this.styleCache=Vt):this.styleCache=Bt:this.styleCache=Pt:this.styleCache=wt,this.addStyles(Y,{layout:ge,inline:Ae})}onLayoutChange(Y){const ge=Y.value.split(" ");this.layout=ge[0],this.inline=Y.value.includes("inline"),C.iQ.find(Ae=>Ae===this.layout)||(this.layout="row"),this.triggerUpdate()}}return ze.\u0275fac=function(Y){return new(Y||ze)(e.Y36(e.SBq),e.Y36(v.RK),e.Y36(ht),e.Y36(v.yB))},ze.\u0275dir=e.lG2({type:ze,features:[e.qOj]}),ze})(),st=(()=>{class ze extends nt{constructor(){super(...arguments),this.inputs=it}}return ze.\u0275fac=function(){let Te;return function(ge){return(Te||(Te=e.n5z(ze)))(ge||ze)}}(),ze.\u0275dir=e.lG2({type:ze,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[e.qOj]}),ze})();const wt=new Map,Bt=new Map,Pt=new Map,Vt=new Map,Oi=new Map,jt=new Map,ti=new Map,Pi=new Map;let di=(()=>{class ze{}return ze.\u0275fac=function(Y){return new(Y||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[[v.IR,t.vT]]}),ze})()},3075:(Ze,K,m)=>{"use strict";m.d(K,{Zs:()=>er,Fj:()=>k,qu:()=>Wa,NI:()=>Vi,oH:()=>br,u:()=>xa,sg:()=>Fi,u5:()=>pa,Fd:()=>Jr,qQ:()=>Pr,Cf:()=>W,JU:()=>N,a5:()=>we,JJ:()=>Ve,JL:()=>he,F:()=>ve,On:()=>Ki,wV:()=>gt,UX:()=>Zn,Q7:()=>Vr,kI:()=>ee,_Y:()=>at});var e=m(5e3),t=m(9808),v=m(457),C=m(4128),s=m(4004);let M=(()=>{class _e{constructor(ne,Qe){this._renderer=ne,this._elementRef=Qe,this.onChange=Yt=>{},this.onTouched=()=>{}}setProperty(ne,Qe){this._renderer.setProperty(this._elementRef.nativeElement,ne,Qe)}registerOnTouched(ne){this.onTouched=ne}registerOnChange(ne){this.onChange=ne}setDisabledState(ne){this.setProperty("disabled",ne)}}return _e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(e.Qsj),e.Y36(e.SBq))},_e.\u0275dir=e.lG2({type:_e}),_e})(),c=(()=>{class _e extends M{}return _e.\u0275fac=function(){let Q;return function(Qe){return(Q||(Q=e.n5z(_e)))(Qe||_e)}}(),_e.\u0275dir=e.lG2({type:_e,features:[e.qOj]}),_e})();const N=new e.OlP("NgValueAccessor"),O={provide:N,useExisting:(0,e.Gpc)(()=>k),multi:!0},E=new e.OlP("CompositionEventMode");let k=(()=>{class _e extends M{constructor(ne,Qe,Yt){super(ne,Qe),this._compositionMode=Yt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const _e=(0,t.q)()?(0,t.q)().getUserAgent():"";return/android (\d+)/.test(_e.toLowerCase())}())}writeValue(ne){this.setProperty("value",null==ne?"":ne)}_handleInput(ne){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ne)}_compositionStart(){this._composing=!0}_compositionEnd(ne){this._composing=!1,this._compositionMode&&this.onChange(ne)}}return _e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(E,8))},_e.\u0275dir=e.lG2({type:_e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("input",function(pi){return Qe._handleInput(pi.target.value)})("blur",function(){return Qe.onTouched()})("compositionstart",function(){return Qe._compositionStart()})("compositionend",function(pi){return Qe._compositionEnd(pi.target.value)})},features:[e._Bn([O]),e.qOj]}),_e})();function w(_e){return null==_e||0===_e.length}function V(_e){return null!=_e&&"number"==typeof _e.length}const W=new e.OlP("NgValidators"),j=new e.OlP("NgAsyncValidators"),$=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ee{static min(Q){return me(Q)}static max(Q){return ce(Q)}static required(Q){return le(Q)}static requiredTrue(Q){return te(Q)}static email(Q){return w((_e=Q).value)||$.test(_e.value)?null:{email:!0};var _e}static minLength(Q){return _e=Q,Q=>w(Q.value)||!V(Q.value)?null:Q.value.length<_e?{minlength:{requiredLength:_e,actualLength:Q.value.length}}:null;var _e}static maxLength(Q){return _e=Q,Q=>V(Q.value)&&Q.value.length>_e?{maxlength:{requiredLength:_e,actualLength:Q.value.length}}:null;var _e}static pattern(Q){return function(_e){if(!_e)return a;let Q,ne;return"string"==typeof _e?(ne="","^"!==_e.charAt(0)&&(ne+="^"),ne+=_e,"$"!==_e.charAt(_e.length-1)&&(ne+="$"),Q=new RegExp(ne)):(ne=_e.toString(),Q=_e),Qe=>{if(w(Qe.value))return null;const Yt=Qe.value;return Q.test(Yt)?null:{pattern:{requiredPattern:ne,actualValue:Yt}}}}(Q)}static nullValidator(Q){return null}static compose(Q){return r(Q)}static composeAsync(Q){return Z(Q)}}function me(_e){return Q=>{if(w(Q.value)||w(_e))return null;const ne=parseFloat(Q.value);return!isNaN(ne)&&ne<_e?{min:{min:_e,actual:Q.value}}:null}}function ce(_e){return Q=>{if(w(Q.value)||w(_e))return null;const ne=parseFloat(Q.value);return!isNaN(ne)&&ne>_e?{max:{max:_e,actual:Q.value}}:null}}function le(_e){return w(_e.value)?{required:!0}:null}function te(_e){return!0===_e.value?null:{required:!0}}function a(_e){return null}function p(_e){return null!=_e}function u(_e){const Q=(0,e.QGY)(_e)?(0,v.D)(_e):_e;return(0,e.CqO)(Q),Q}function _(_e){let Q={};return _e.forEach(ne=>{Q=null!=ne?Object.assign(Object.assign({},Q),ne):Q}),0===Object.keys(Q).length?null:Q}function D(_e,Q){return Q.map(ne=>ne(_e))}function x(_e){return _e.map(Q=>function(_e){return!_e.validate}(Q)?Q:ne=>Q.validate(ne))}function r(_e){if(!_e)return null;const Q=_e.filter(p);return 0==Q.length?null:function(ne){return _(D(ne,Q))}}function b(_e){return null!=_e?r(x(_e)):null}function Z(_e){if(!_e)return null;const Q=_e.filter(p);return 0==Q.length?null:function(ne){const Qe=D(ne,Q).map(u);return(0,C.D)(Qe).pipe((0,s.U)(_))}}function P(_e){return null!=_e?Z(x(_e)):null}function U(_e,Q){return null===_e?[Q]:Array.isArray(_e)?[..._e,Q]:[_e,Q]}function ye(_e){return _e._rawValidators}function xe(_e){return _e._rawAsyncValidators}function Ne(_e){return _e?Array.isArray(_e)?_e:[_e]:[]}function Be(_e,Q){return Array.isArray(_e)?_e.includes(Q):_e===Q}function Oe(_e,Q){const ne=Ne(Q);return Ne(_e).forEach(Yt=>{Be(ne,Yt)||ne.push(Yt)}),ne}function B(_e,Q){return Ne(Q).filter(ne=>!Be(_e,ne))}class Me{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Q){this._rawValidators=Q||[],this._composedValidatorFn=b(this._rawValidators)}_setAsyncValidators(Q){this._rawAsyncValidators=Q||[],this._composedAsyncValidatorFn=P(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Q){this._onDestroyCallbacks.push(Q)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Q=>Q()),this._onDestroyCallbacks=[]}reset(Q){this.control&&this.control.reset(Q)}hasError(Q,ne){return!!this.control&&this.control.hasError(Q,ne)}getError(Q,ne){return this.control?this.control.getError(Q,ne):null}}class we extends Me{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ae extends Me{get formDirective(){return null}get path(){return null}}class We{constructor(Q){this._cd=Q}is(Q){var ne,Qe,Yt;return"submitted"===Q?!!(null===(ne=this._cd)||void 0===ne?void 0:ne.submitted):!!(null===(Yt=null===(Qe=this._cd)||void 0===Qe?void 0:Qe.control)||void 0===Yt?void 0:Yt[Q])}}let Ve=(()=>{class _e extends We{constructor(ne){super(ne)}}return _e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(we,2))},_e.\u0275dir=e.lG2({type:_e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ne,Qe){2&ne&&e.ekj("ng-untouched",Qe.is("untouched"))("ng-touched",Qe.is("touched"))("ng-pristine",Qe.is("pristine"))("ng-dirty",Qe.is("dirty"))("ng-valid",Qe.is("valid"))("ng-invalid",Qe.is("invalid"))("ng-pending",Qe.is("pending"))},features:[e.qOj]}),_e})(),he=(()=>{class _e extends We{constructor(ne){super(ne)}}return _e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(ae,10))},_e.\u0275dir=e.lG2({type:_e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ne,Qe){2&ne&&e.ekj("ng-untouched",Qe.is("untouched"))("ng-touched",Qe.is("touched"))("ng-pristine",Qe.is("pristine"))("ng-dirty",Qe.is("dirty"))("ng-valid",Qe.is("valid"))("ng-invalid",Qe.is("invalid"))("ng-pending",Qe.is("pending"))("ng-submitted",Qe.is("submitted"))},features:[e.qOj]}),_e})();function wt(_e,Q){return[...Q.path,_e]}function Bt(_e,Q){jt(_e,Q),Q.valueAccessor.writeValue(_e.value),function(_e,Q){Q.valueAccessor.registerOnChange(ne=>{_e._pendingValue=ne,_e._pendingChange=!0,_e._pendingDirty=!0,"change"===_e.updateOn&&di(_e,Q)})}(_e,Q),function(_e,Q){const ne=(Qe,Yt)=>{Q.valueAccessor.writeValue(Qe),Yt&&Q.viewToModelUpdate(Qe)};_e.registerOnChange(ne),Q._registerOnDestroy(()=>{_e._unregisterOnChange(ne)})}(_e,Q),function(_e,Q){Q.valueAccessor.registerOnTouched(()=>{_e._pendingTouched=!0,"blur"===_e.updateOn&&_e._pendingChange&&di(_e,Q),"submit"!==_e.updateOn&&_e.markAsTouched()})}(_e,Q),function(_e,Q){if(Q.valueAccessor.setDisabledState){const ne=Qe=>{Q.valueAccessor.setDisabledState(Qe)};_e.registerOnDisabledChange(ne),Q._registerOnDestroy(()=>{_e._unregisterOnDisabledChange(ne)})}}(_e,Q)}function Pt(_e,Q,ne=!0){const Qe=()=>{};Q.valueAccessor&&(Q.valueAccessor.registerOnChange(Qe),Q.valueAccessor.registerOnTouched(Qe)),ti(_e,Q),_e&&(Q._invokeOnDestroyCallbacks(),_e._registerOnCollectionChange(()=>{}))}function Vt(_e,Q){_e.forEach(ne=>{ne.registerOnValidatorChange&&ne.registerOnValidatorChange(Q)})}function jt(_e,Q){const ne=ye(_e);null!==Q.validator?_e.setValidators(U(ne,Q.validator)):"function"==typeof ne&&_e.setValidators([ne]);const Qe=xe(_e);null!==Q.asyncValidator?_e.setAsyncValidators(U(Qe,Q.asyncValidator)):"function"==typeof Qe&&_e.setAsyncValidators([Qe]);const Yt=()=>_e.updateValueAndValidity();Vt(Q._rawValidators,Yt),Vt(Q._rawAsyncValidators,Yt)}function ti(_e,Q){let ne=!1;if(null!==_e){if(null!==Q.validator){const Yt=ye(_e);if(Array.isArray(Yt)&&Yt.length>0){const pi=Yt.filter(xt=>xt!==Q.validator);pi.length!==Yt.length&&(ne=!0,_e.setValidators(pi))}}if(null!==Q.asyncValidator){const Yt=xe(_e);if(Array.isArray(Yt)&&Yt.length>0){const pi=Yt.filter(xt=>xt!==Q.asyncValidator);pi.length!==Yt.length&&(ne=!0,_e.setAsyncValidators(pi))}}}const Qe=()=>{};return Vt(Q._rawValidators,Qe),Vt(Q._rawAsyncValidators,Qe),ne}function di(_e,Q){_e._pendingDirty&&_e.markAsDirty(),_e.setValue(_e._pendingValue,{emitModelToViewChange:!1}),Q.viewToModelUpdate(_e._pendingValue),_e._pendingChange=!1}function Te(_e,Q){jt(_e,Q)}function et(_e,Q){if(!_e.hasOwnProperty("model"))return!1;const ne=_e.model;return!!ne.isFirstChange()||!Object.is(Q,ne.currentValue)}function Nt(_e,Q){_e._syncPendingControls(),Q.forEach(ne=>{const Qe=ne.control;"submit"===Qe.updateOn&&Qe._pendingChange&&(ne.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1)})}function Xt(_e,Q){if(!Q)return null;let ne,Qe,Yt;return Array.isArray(Q),Q.forEach(pi=>{pi.constructor===k?ne=pi:function(_e){return Object.getPrototypeOf(_e.constructor)===c}(pi)?Qe=pi:Yt=pi}),Yt||Qe||ne||null}function lt(_e,Q){const ne=_e.indexOf(Q);ne>-1&&_e.splice(ne,1)}const Fe="VALID",rt="INVALID",ot="PENDING",At="DISABLED";function Ut(_e){return(ci(_e)?_e.validators:_e)||null}function Ft(_e){return Array.isArray(_e)?b(_e):_e||null}function Si(_e,Q){return(ci(Q)?Q.asyncValidators:_e)||null}function ai(_e){return Array.isArray(_e)?P(_e):_e||null}function ci(_e){return null!=_e&&!Array.isArray(_e)&&"object"==typeof _e}class rn{constructor(Q,ne){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Q,this._rawAsyncValidators=ne,this._composedValidatorFn=Ft(this._rawValidators),this._composedAsyncValidatorFn=ai(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(Q){this._rawValidators=this._composedValidatorFn=Q}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Q){this._rawAsyncValidators=this._composedAsyncValidatorFn=Q}get parent(){return this._parent}get valid(){return this.status===Fe}get invalid(){return this.status===rt}get pending(){return this.status==ot}get disabled(){return this.status===At}get enabled(){return this.status!==At}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Q){this._rawValidators=Q,this._composedValidatorFn=Ft(Q)}setAsyncValidators(Q){this._rawAsyncValidators=Q,this._composedAsyncValidatorFn=ai(Q)}addValidators(Q){this.setValidators(Oe(Q,this._rawValidators))}addAsyncValidators(Q){this.setAsyncValidators(Oe(Q,this._rawAsyncValidators))}removeValidators(Q){this.setValidators(B(Q,this._rawValidators))}removeAsyncValidators(Q){this.setAsyncValidators(B(Q,this._rawAsyncValidators))}hasValidator(Q){return Be(this._rawValidators,Q)}hasAsyncValidator(Q){return Be(this._rawAsyncValidators,Q)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Q={}){this.touched=!0,this._parent&&!Q.onlySelf&&this._parent.markAsTouched(Q)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Q=>Q.markAllAsTouched())}markAsUntouched(Q={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ne=>{ne.markAsUntouched({onlySelf:!0})}),this._parent&&!Q.onlySelf&&this._parent._updateTouched(Q)}markAsDirty(Q={}){this.pristine=!1,this._parent&&!Q.onlySelf&&this._parent.markAsDirty(Q)}markAsPristine(Q={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ne=>{ne.markAsPristine({onlySelf:!0})}),this._parent&&!Q.onlySelf&&this._parent._updatePristine(Q)}markAsPending(Q={}){this.status=ot,!1!==Q.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Q.onlySelf&&this._parent.markAsPending(Q)}disable(Q={}){const ne=this._parentMarkedDirty(Q.onlySelf);this.status=At,this.errors=null,this._forEachChild(Qe=>{Qe.disable(Object.assign(Object.assign({},Q),{onlySelf:!0}))}),this._updateValue(),!1!==Q.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},Q),{skipPristineCheck:ne})),this._onDisabledChange.forEach(Qe=>Qe(!0))}enable(Q={}){const ne=this._parentMarkedDirty(Q.onlySelf);this.status=Fe,this._forEachChild(Qe=>{Qe.enable(Object.assign(Object.assign({},Q),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Q.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},Q),{skipPristineCheck:ne})),this._onDisabledChange.forEach(Qe=>Qe(!1))}_updateAncestors(Q){this._parent&&!Q.onlySelf&&(this._parent.updateValueAndValidity(Q),Q.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Q){this._parent=Q}updateValueAndValidity(Q={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Fe||this.status===ot)&&this._runAsyncValidator(Q.emitEvent)),!1!==Q.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Q.onlySelf&&this._parent.updateValueAndValidity(Q)}_updateTreeValidity(Q={emitEvent:!0}){this._forEachChild(ne=>ne._updateTreeValidity(Q)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Q.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?At:Fe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Q){if(this.asyncValidator){this.status=ot,this._hasOwnPendingAsyncValidator=!0;const ne=u(this.asyncValidator(this));this._asyncValidationSubscription=ne.subscribe(Qe=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Qe,{emitEvent:Q})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Q,ne={}){this.errors=Q,this._updateControlsErrors(!1!==ne.emitEvent)}get(Q){return function(_e,Q,ne){if(null==Q||(Array.isArray(Q)||(Q=Q.split(".")),Array.isArray(Q)&&0===Q.length))return null;let Qe=_e;return Q.forEach(Yt=>{Qe=Qe instanceof Di?Qe.controls.hasOwnProperty(Yt)?Qe.controls[Yt]:null:Qe instanceof Xi&&Qe.at(Yt)||null}),Qe}(this,Q)}getError(Q,ne){const Qe=ne?this.get(ne):this;return Qe&&Qe.errors?Qe.errors[Q]:null}hasError(Q,ne){return!!this.getError(Q,ne)}get root(){let Q=this;for(;Q._parent;)Q=Q._parent;return Q}_updateControlsErrors(Q){this.status=this._calculateStatus(),Q&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Q)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?At:this.errors?rt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ot)?ot:this._anyControlsHaveStatus(rt)?rt:Fe}_anyControlsHaveStatus(Q){return this._anyControls(ne=>ne.status===Q)}_anyControlsDirty(){return this._anyControls(Q=>Q.dirty)}_anyControlsTouched(){return this._anyControls(Q=>Q.touched)}_updatePristine(Q={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Q.onlySelf&&this._parent._updatePristine(Q)}_updateTouched(Q={}){this.touched=this._anyControlsTouched(),this._parent&&!Q.onlySelf&&this._parent._updateTouched(Q)}_isBoxedValue(Q){return"object"==typeof Q&&null!==Q&&2===Object.keys(Q).length&&"value"in Q&&"disabled"in Q}_registerOnCollectionChange(Q){this._onCollectionChange=Q}_setUpdateStrategy(Q){ci(Q)&&null!=Q.updateOn&&(this._updateOn=Q.updateOn)}_parentMarkedDirty(Q){return!Q&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Vi extends rn{constructor(Q=null,ne,Qe){super(Ut(ne),Si(Qe,ne)),this._onChange=[],this._applyFormState(Q),this._setUpdateStrategy(ne),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(Q,ne={}){this.value=this._pendingValue=Q,this._onChange.length&&!1!==ne.emitModelToViewChange&&this._onChange.forEach(Qe=>Qe(this.value,!1!==ne.emitViewToModelChange)),this.updateValueAndValidity(ne)}patchValue(Q,ne={}){this.setValue(Q,ne)}reset(Q=null,ne={}){this._applyFormState(Q),this.markAsPristine(ne),this.markAsUntouched(ne),this.setValue(this.value,ne),this._pendingChange=!1}_updateValue(){}_anyControls(Q){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Q){this._onChange.push(Q)}_unregisterOnChange(Q){lt(this._onChange,Q)}registerOnDisabledChange(Q){this._onDisabledChange.push(Q)}_unregisterOnDisabledChange(Q){lt(this._onDisabledChange,Q)}_forEachChild(Q){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Q){this._isBoxedValue(Q)?(this.value=this._pendingValue=Q.value,Q.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Q}}class Di extends rn{constructor(Q,ne,Qe){super(Ut(ne),Si(Qe,ne)),this.controls=Q,this._initObservables(),this._setUpdateStrategy(ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Q,ne){return this.controls[Q]?this.controls[Q]:(this.controls[Q]=ne,ne.setParent(this),ne._registerOnCollectionChange(this._onCollectionChange),ne)}addControl(Q,ne,Qe={}){this.registerControl(Q,ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}removeControl(Q,ne={}){this.controls[Q]&&this.controls[Q]._registerOnCollectionChange(()=>{}),delete this.controls[Q],this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}setControl(Q,ne,Qe={}){this.controls[Q]&&this.controls[Q]._registerOnCollectionChange(()=>{}),delete this.controls[Q],ne&&this.registerControl(Q,ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}contains(Q){return this.controls.hasOwnProperty(Q)&&this.controls[Q].enabled}setValue(Q,ne={}){this._checkAllValuesPresent(Q),Object.keys(Q).forEach(Qe=>{this._throwIfControlMissing(Qe),this.controls[Qe].setValue(Q[Qe],{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne)}patchValue(Q,ne={}){null!=Q&&(Object.keys(Q).forEach(Qe=>{this.controls[Qe]&&this.controls[Qe].patchValue(Q[Qe],{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne))}reset(Q={},ne={}){this._forEachChild((Qe,Yt)=>{Qe.reset(Q[Yt],{onlySelf:!0,emitEvent:ne.emitEvent})}),this._updatePristine(ne),this._updateTouched(ne),this.updateValueAndValidity(ne)}getRawValue(){return this._reduceChildren({},(Q,ne,Qe)=>(Q[Qe]=ne instanceof Vi?ne.value:ne.getRawValue(),Q))}_syncPendingControls(){let Q=this._reduceChildren(!1,(ne,Qe)=>!!Qe._syncPendingControls()||ne);return Q&&this.updateValueAndValidity({onlySelf:!0}),Q}_throwIfControlMissing(Q){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[Q])throw new Error(`Cannot find form control with name: ${Q}.`)}_forEachChild(Q){Object.keys(this.controls).forEach(ne=>{const Qe=this.controls[ne];Qe&&Q(Qe,ne)})}_setUpControls(){this._forEachChild(Q=>{Q.setParent(this),Q._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Q){for(const ne of Object.keys(this.controls)){const Qe=this.controls[ne];if(this.contains(ne)&&Q(Qe))return!0}return!1}_reduceValue(){return this._reduceChildren({},(Q,ne,Qe)=>((ne.enabled||this.disabled)&&(Q[Qe]=ne.value),Q))}_reduceChildren(Q,ne){let Qe=Q;return this._forEachChild((Yt,pi)=>{Qe=ne(Qe,Yt,pi)}),Qe}_allControlsDisabled(){for(const Q of Object.keys(this.controls))if(this.controls[Q].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(Q){this._forEachChild((ne,Qe)=>{if(void 0===Q[Qe])throw new Error(`Must supply a value for form control with name: '${Qe}'.`)})}}class Xi extends rn{constructor(Q,ne,Qe){super(Ut(ne),Si(Qe,ne)),this.controls=Q,this._initObservables(),this._setUpdateStrategy(ne),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Q){return this.controls[Q]}push(Q,ne={}){this.controls.push(Q),this._registerControl(Q),this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}insert(Q,ne,Qe={}){this.controls.splice(Q,0,ne),this._registerControl(ne),this.updateValueAndValidity({emitEvent:Qe.emitEvent})}removeAt(Q,ne={}){this.controls[Q]&&this.controls[Q]._registerOnCollectionChange(()=>{}),this.controls.splice(Q,1),this.updateValueAndValidity({emitEvent:ne.emitEvent})}setControl(Q,ne,Qe={}){this.controls[Q]&&this.controls[Q]._registerOnCollectionChange(()=>{}),this.controls.splice(Q,1),ne&&(this.controls.splice(Q,0,ne),this._registerControl(ne)),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Q,ne={}){this._checkAllValuesPresent(Q),Q.forEach((Qe,Yt)=>{this._throwIfControlMissing(Yt),this.at(Yt).setValue(Qe,{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne)}patchValue(Q,ne={}){null!=Q&&(Q.forEach((Qe,Yt)=>{this.at(Yt)&&this.at(Yt).patchValue(Qe,{onlySelf:!0,emitEvent:ne.emitEvent})}),this.updateValueAndValidity(ne))}reset(Q=[],ne={}){this._forEachChild((Qe,Yt)=>{Qe.reset(Q[Yt],{onlySelf:!0,emitEvent:ne.emitEvent})}),this._updatePristine(ne),this._updateTouched(ne),this.updateValueAndValidity(ne)}getRawValue(){return this.controls.map(Q=>Q instanceof Vi?Q.value:Q.getRawValue())}clear(Q={}){this.controls.length<1||(this._forEachChild(ne=>ne._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Q.emitEvent}))}_syncPendingControls(){let Q=this.controls.reduce((ne,Qe)=>!!Qe._syncPendingControls()||ne,!1);return Q&&this.updateValueAndValidity({onlySelf:!0}),Q}_throwIfControlMissing(Q){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(Q))throw new Error(`Cannot find form control at index ${Q}`)}_forEachChild(Q){this.controls.forEach((ne,Qe)=>{Q(ne,Qe)})}_updateValue(){this.value=this.controls.filter(Q=>Q.enabled||this.disabled).map(Q=>Q.value)}_anyControls(Q){return this.controls.some(ne=>ne.enabled&&Q(ne))}_setUpControls(){this._forEachChild(Q=>this._registerControl(Q))}_checkAllValuesPresent(Q){this._forEachChild((ne,Qe)=>{if(void 0===Q[Qe])throw new Error(`Must supply a value for form control at index: ${Qe}.`)})}_allControlsDisabled(){for(const Q of this.controls)if(Q.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Q){Q.setParent(this),Q._registerOnCollectionChange(this._onCollectionChange)}}const Ke={provide:ae,useExisting:(0,e.Gpc)(()=>ve)},mt=(()=>Promise.resolve(null))();let ve=(()=>{class _e extends ae{constructor(ne,Qe){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new e.vpe,this.form=new Di({},b(ne),P(Qe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ne){mt.then(()=>{const Qe=this._findContainer(ne.path);ne.control=Qe.registerControl(ne.name,ne.control),Bt(ne.control,ne),ne.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(ne)})}getControl(ne){return this.form.get(ne.path)}removeControl(ne){mt.then(()=>{const Qe=this._findContainer(ne.path);Qe&&Qe.removeControl(ne.name),lt(this._directives,ne)})}addFormGroup(ne){mt.then(()=>{const Qe=this._findContainer(ne.path),Yt=new Di({});Te(Yt,ne),Qe.registerControl(ne.name,Yt),Yt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ne){mt.then(()=>{const Qe=this._findContainer(ne.path);Qe&&Qe.removeControl(ne.name)})}getFormGroup(ne){return this.form.get(ne.path)}updateModel(ne,Qe){mt.then(()=>{this.form.get(ne.path).setValue(Qe)})}setValue(ne){this.control.setValue(ne)}onSubmit(ne){return this.submitted=!0,Nt(this.form,this._directives),this.ngSubmit.emit(ne),!1}onReset(){this.resetForm()}resetForm(ne){this.form.reset(ne),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(ne){return ne.pop(),ne.length?this.form.get(ne):this.form}}return _e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(W,10),e.Y36(j,10))},_e.\u0275dir=e.lG2({type:_e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("submit",function(pi){return Qe.onSubmit(pi)})("reset",function(){return Qe.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ke]),e.qOj]}),_e})();const Ri={provide:we,useExisting:(0,e.Gpc)(()=>Ki)},Ii=(()=>Promise.resolve(null))();let Ki=(()=>{class _e extends we{constructor(ne,Qe,Yt,pi){super(),this.control=new Vi,this._registered=!1,this.update=new e.vpe,this._parent=ne,this._setValidators(Qe),this._setAsyncValidators(Yt),this.valueAccessor=Xt(0,pi)}ngOnChanges(ne){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in ne&&this._updateDisabled(ne),et(ne,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?wt(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Bt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(ne){Ii.then(()=>{this.control.setValue(ne,{emitViewToModelChange:!1})})}_updateDisabled(ne){const Qe=ne.isDisabled.currentValue,Yt=""===Qe||Qe&&"false"!==Qe;Ii.then(()=>{Yt&&!this.control.disabled?this.control.disable():!Yt&&this.control.disabled&&this.control.enable()})}}return _e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(ae,9),e.Y36(W,10),e.Y36(j,10),e.Y36(N,10))},_e.\u0275dir=e.lG2({type:_e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([Ri]),e.qOj,e.TTD]}),_e})(),at=(()=>{class _e{}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275dir=e.lG2({type:_e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),_e})();const Qt={provide:N,useExisting:(0,e.Gpc)(()=>gt),multi:!0};let gt=(()=>{class _e extends c{writeValue(ne){this.setProperty("value",null==ne?"":ne)}registerOnChange(ne){this.onChange=Qe=>{ne(""==Qe?null:parseFloat(Qe))}}}return _e.\u0275fac=function(){let Q;return function(Qe){return(Q||(Q=e.n5z(_e)))(Qe||_e)}}(),_e.\u0275dir=e.lG2({type:_e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("input",function(pi){return Qe.onChange(pi.target.value)})("blur",function(){return Qe.onTouched()})},features:[e._Bn([Qt]),e.qOj]}),_e})(),Ci=(()=>{class _e{}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({}),_e})();const pn=new e.OlP("NgModelWithFormControlWarning"),Nn={provide:we,useExisting:(0,e.Gpc)(()=>br)};let br=(()=>{class _e extends we{constructor(ne,Qe,Yt,pi){super(),this._ngModelWarningConfig=pi,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(ne),this._setAsyncValidators(Qe),this.valueAccessor=Xt(0,Yt)}set isDisabled(ne){}ngOnChanges(ne){if(this._isControlChanged(ne)){const Qe=ne.form.previousValue;Qe&&Pt(Qe,this,!1),Bt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}et(ne,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Pt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}_isControlChanged(ne){return ne.hasOwnProperty("form")}}return _e._ngModelWarningSentOnce=!1,_e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(W,10),e.Y36(j,10),e.Y36(N,10),e.Y36(pn,8))},_e.\u0275dir=e.lG2({type:_e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Nn]),e.qOj,e.TTD]}),_e})();const wi={provide:ae,useExisting:(0,e.Gpc)(()=>Fi)};let Fi=(()=>{class _e extends ae{constructor(ne,Qe){super(),this.validators=ne,this.asyncValidators=Qe,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(ne),this._setAsyncValidators(Qe)}ngOnChanges(ne){this._checkFormPresent(),ne.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ti(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(ne){const Qe=this.form.get(ne.path);return Bt(Qe,ne),Qe.updateValueAndValidity({emitEvent:!1}),this.directives.push(ne),Qe}getControl(ne){return this.form.get(ne.path)}removeControl(ne){Pt(ne.control||null,ne,!1),lt(this.directives,ne)}addFormGroup(ne){this._setUpFormContainer(ne)}removeFormGroup(ne){this._cleanUpFormContainer(ne)}getFormGroup(ne){return this.form.get(ne.path)}addFormArray(ne){this._setUpFormContainer(ne)}removeFormArray(ne){this._cleanUpFormContainer(ne)}getFormArray(ne){return this.form.get(ne.path)}updateModel(ne,Qe){this.form.get(ne.path).setValue(Qe)}onSubmit(ne){return this.submitted=!0,Nt(this.form,this.directives),this.ngSubmit.emit(ne),!1}onReset(){this.resetForm()}resetForm(ne){this.form.reset(ne),this.submitted=!1}_updateDomValue(){this.directives.forEach(ne=>{const Qe=ne.control,Yt=this.form.get(ne.path);Qe!==Yt&&(Pt(Qe||null,ne),Yt instanceof Vi&&(Bt(Yt,ne),ne.control=Yt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ne){const Qe=this.form.get(ne.path);Te(Qe,ne),Qe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ne){if(this.form){const Qe=this.form.get(ne.path);Qe&&function(_e,Q){return ti(_e,Q)}(Qe,ne)&&Qe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){jt(this.form,this),this._oldForm&&ti(this._oldForm,this)}_checkFormPresent(){}}return _e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(W,10),e.Y36(j,10))},_e.\u0275dir=e.lG2({type:_e,selectors:[["","formGroup",""]],hostBindings:function(ne,Qe){1&ne&&e.NdJ("submit",function(pi){return Qe.onSubmit(pi)})("reset",function(){return Qe.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([wi]),e.qOj,e.TTD]}),_e})();const ba={provide:we,useExisting:(0,e.Gpc)(()=>xa)};let xa=(()=>{class _e extends we{constructor(ne,Qe,Yt,pi,xt){super(),this._ngModelWarningConfig=xt,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=ne,this._setValidators(Qe),this._setAsyncValidators(Yt),this.valueAccessor=Xt(0,pi)}set isDisabled(ne){}ngOnChanges(ne){this._added||this._setUpControl(),et(ne,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(ne){this.viewModel=ne,this.update.emit(ne)}get path(){return wt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return _e._ngModelWarningSentOnce=!1,_e.\u0275fac=function(ne){return new(ne||_e)(e.Y36(ae,13),e.Y36(W,10),e.Y36(j,10),e.Y36(N,10),e.Y36(pn,8))},_e.\u0275dir=e.lG2({type:_e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([ba]),e.qOj,e.TTD]}),_e})();function _n(_e){return"number"==typeof _e?_e:parseFloat(_e)}let Kn=(()=>{class _e{constructor(){this._validator=a}ngOnChanges(ne){if(this.inputName in ne){const Qe=this.normalizeInput(ne[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(Qe):a,this._onChange&&this._onChange()}}validate(ne){return this._validator(ne)}registerOnValidatorChange(ne){this._onChange=ne}enabled(){return null!=this[this.inputName]}}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275dir=e.lG2({type:_e,features:[e.TTD]}),_e})();const Dr={provide:W,useExisting:(0,e.Gpc)(()=>Jr),multi:!0};let Jr=(()=>{class _e extends Kn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=ne=>_n(ne),this.createValidator=ne=>ce(ne)}}return _e.\u0275fac=function(){let Q;return function(Qe){return(Q||(Q=e.n5z(_e)))(Qe||_e)}}(),_e.\u0275dir=e.lG2({type:_e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("max",Qe.enabled()?Qe.max:null)},inputs:{max:"max"},features:[e._Bn([Dr]),e.qOj]}),_e})();const Va={provide:W,useExisting:(0,e.Gpc)(()=>Pr),multi:!0};let Pr=(()=>{class _e extends Kn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=ne=>_n(ne),this.createValidator=ne=>me(ne)}}return _e.\u0275fac=function(){let Q;return function(Qe){return(Q||(Q=e.n5z(_e)))(Qe||_e)}}(),_e.\u0275dir=e.lG2({type:_e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("min",Qe.enabled()?Qe.min:null)},inputs:{min:"min"},features:[e._Bn([Va]),e.qOj]}),_e})();const Pa={provide:W,useExisting:(0,e.Gpc)(()=>Vr),multi:!0},Ca={provide:W,useExisting:(0,e.Gpc)(()=>er),multi:!0};let Vr=(()=>{class _e{constructor(){this._required=!1}get required(){return this._required}set required(ne){this._required=null!=ne&&!1!==ne&&"false"!=`${ne}`,this._onChange&&this._onChange()}validate(ne){return this.required?le(ne):null}registerOnValidatorChange(ne){this._onChange=ne}}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275dir=e.lG2({type:_e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("required",Qe.required?"":null)},inputs:{required:"required"},features:[e._Bn([Pa])]}),_e})(),er=(()=>{class _e extends Vr{validate(ne){return this.required?te(ne):null}}return _e.\u0275fac=function(){let Q;return function(Qe){return(Q||(Q=e.n5z(_e)))(Qe||_e)}}(),_e.\u0275dir=e.lG2({type:_e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(ne,Qe){2&ne&&e.uIk("required",Qe.required?"":null)},features:[e._Bn([Ca]),e.qOj]}),_e})(),ra=(()=>{class _e{}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({imports:[[Ci]]}),_e})(),pa=(()=>{class _e{}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({imports:[ra]}),_e})(),Zn=(()=>{class _e{static withConfig(ne){return{ngModule:_e,providers:[{provide:pn,useValue:ne.warnOnNgModelWithFormControl}]}}}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({imports:[ra]}),_e})(),Wa=(()=>{class _e{group(ne,Qe=null){const Yt=this._reduceControls(ne);let ei,pi=null,xt=null;return null!=Qe&&(function(_e){return void 0!==_e.asyncValidators||void 0!==_e.validators||void 0!==_e.updateOn}(Qe)?(pi=null!=Qe.validators?Qe.validators:null,xt=null!=Qe.asyncValidators?Qe.asyncValidators:null,ei=null!=Qe.updateOn?Qe.updateOn:void 0):(pi=null!=Qe.validator?Qe.validator:null,xt=null!=Qe.asyncValidator?Qe.asyncValidator:null)),new Di(Yt,{asyncValidators:xt,updateOn:ei,validators:pi})}control(ne,Qe,Yt){return new Vi(ne,Qe,Yt)}array(ne,Qe,Yt){const pi=ne.map(xt=>this._createControl(xt));return new Xi(pi,Qe,Yt)}_reduceControls(ne){const Qe={};return Object.keys(ne).forEach(Yt=>{Qe[Yt]=this._createControl(ne[Yt])}),Qe}_createControl(ne){return ne instanceof Vi||ne instanceof Di||ne instanceof Xi?ne:Array.isArray(ne)?this.control(ne[0],ne.length>1?ne[1]:null,ne.length>2?ne[2]:null):this.control(ne)}}return _e.\u0275fac=function(ne){return new(ne||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:_e.\u0275fac,providedIn:Zn}),_e})()},1079:(Ze,K,m)=>{"use strict";m.d(K,{XC:()=>x,Bb:()=>Oe,ZL:()=>xe});var e=m(5664),t=m(3191),v=m(5e3),C=m(508),s=m(727),M=m(7579),c=m(9770),N=m(6451),o=m(9646),L=m(4968),O=m(925),A=m(9808),E=m(9776),k=m(5303),w=m(1159),V=m(7429),W=m(3075),j=m(7322),$=m(5698),ee=m(3900),me=m(9300),ce=m(4004),le=m(8505),te=m(4086),re=m(226);const pe=["panel"];function y(B,Me){if(1&B&&(v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA()),2&B){const we=Me.id,ae=v.oxw();v.Q6J("id",ae.id)("ngClass",ae._classList),v.uIk("aria-label",ae.ariaLabel||null)("aria-labelledby",ae._getPanelAriaLabelledby(we))}}const i=["*"];let a=0;class p{constructor(Me,we){this.source=Me,this.option=we}}const u=(0,C.Kr)(class{}),_=new v.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let I=(()=>{class B extends u{constructor(we,ae,We,vt){super(),this._changeDetectorRef=we,this._elementRef=ae,this._activeOptionChanges=s.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new v.vpe,this.opened=new v.vpe,this.closed=new v.vpe,this.optionActivated=new v.vpe,this._classList={},this.id="mat-autocomplete-"+a++,this.inertGroups=(null==vt?void 0:vt.SAFARI)||!1,this._autoActiveFirstOption=!!We.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(we){this._autoActiveFirstOption=(0,t.Ig)(we)}set classList(we){this._classList=we&&we.length?(0,t.du)(we).reduce((ae,We)=>(ae[We]=!0,ae),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(we=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[we]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(we){this.panel&&(this.panel.nativeElement.scrollTop=we)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(we){const ae=new p(this,we);this.optionSelected.emit(ae)}_getPanelAriaLabelledby(we){return this.ariaLabel?null:this.ariaLabelledby?(we?we+" ":"")+this.ariaLabelledby:we}_setVisibilityClasses(we){we[this._visibleClass]=this.showPanel,we[this._hiddenClass]=!this.showPanel}}return B.\u0275fac=function(we){return new(we||B)(v.Y36(v.sBO),v.Y36(v.SBq),v.Y36(_),v.Y36(O.t4))},B.\u0275dir=v.lG2({type:B,viewQuery:function(we,ae){if(1&we&&(v.Gf(v.Rgc,7),v.Gf(pe,5)),2&we){let We;v.iGM(We=v.CRH())&&(ae.template=We.first),v.iGM(We=v.CRH())&&(ae.panel=We.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[v.qOj]}),B})(),x=(()=>{class B extends I{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return B.\u0275fac=function(){let Me;return function(ae){return(Me||(Me=v.n5z(B)))(ae||B)}}(),B.\u0275cmp=v.Xpm({type:B,selectors:[["mat-autocomplete"]],contentQueries:function(we,ae,We){if(1&we&&(v.Suo(We,C.K7,5),v.Suo(We,C.ey,5)),2&we){let vt;v.iGM(vt=v.CRH())&&(ae.optionGroups=vt),v.iGM(vt=v.CRH())&&(ae.options=vt)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[v._Bn([{provide:C.HF,useExisting:B}]),v.qOj],ngContentSelectors:i,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(we,ae){1&we&&(v.F$t(),v.YNc(0,y,3,4,"ng-template"))},directives:[A.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),B})();const r=new v.OlP("mat-autocomplete-scroll-strategy"),Z={provide:r,deps:[E.aV],useFactory:function(B){return()=>B.scrollStrategies.reposition()}},P={provide:W.JU,useExisting:(0,v.Gpc)(()=>xe),multi:!0};let ye=(()=>{class B{constructor(we,ae,We,vt,Pe,Ve,he,Ee,ke,q,J){this._element=we,this._overlay=ae,this._viewContainerRef=We,this._zone=vt,this._changeDetectorRef=Pe,this._dir=he,this._formField=Ee,this._document=ke,this._viewportRuler=q,this._defaults=J,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=s.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new M.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,c.P)(()=>this.autocomplete&&this.autocomplete.options?(0,N.T)(...this.autocomplete.options.map(oe=>oe.onSelectionChange)):this._zone.onStable.pipe((0,$.q)(1),(0,ee.w)(()=>this.optionSelections))),this._scrollStrategy=Ve}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(we){this._autocompleteDisabled=(0,t.Ig)(we)}ngAfterViewInit(){const we=this._getWindow();void 0!==we&&this._zone.runOutsideAngular(()=>we.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(we){we.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const we=this._getWindow();void 0!==we&&we.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,N.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,me.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,me.h)(()=>this._overlayAttached)):(0,o.of)()).pipe((0,ce.U)(we=>we instanceof C.rN?we:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,N.T)((0,L.R)(this._document,"click"),(0,L.R)(this._document,"auxclick"),(0,L.R)(this._document,"touchend")).pipe((0,me.h)(we=>{const ae=(0,O.sA)(we),We=this._formField?this._formField._elementRef.nativeElement:null,vt=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&ae!==this._element.nativeElement&&(!We||!We.contains(ae))&&(!vt||!vt.contains(ae))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(ae)}))}writeValue(we){Promise.resolve(null).then(()=>this._setTriggerValue(we))}registerOnChange(we){this._onChange=we}registerOnTouched(we){this._onTouched=we}setDisabledState(we){this._element.nativeElement.disabled=we}_handleKeydown(we){const ae=we.keyCode;if(ae===w.hY&&!(0,w.Vb)(we)&&we.preventDefault(),this.activeOption&&ae===w.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),we.preventDefault();else if(this.autocomplete){const We=this.autocomplete._keyManager.activeItem,vt=ae===w.LH||ae===w.JH;this.panelOpen||ae===w.Mf?this.autocomplete._keyManager.onKeydown(we):vt&&this._canOpen()&&this.openPanel(),(vt||this.autocomplete._keyManager.activeItem!==We)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(we){let ae=we.target,We=ae.value;"number"===ae.type&&(We=""==We?null:parseFloat(We)),this._previousValue!==We&&(this._previousValue=We,this._onChange(We),this._canOpen()&&this._document.activeElement===we.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(we=!1){this._formField&&"auto"===this._formField.floatLabel&&(we?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const we=this._zone.onStable.pipe((0,$.q)(1)),ae=this.autocomplete.options.changes.pipe((0,le.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,te.g)(0));return(0,N.T)(we,ae).pipe((0,ee.w)(()=>{const We=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),We!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,$.q)(1)).subscribe(We=>this._setValueAndClose(We))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(we){const ae=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(we):we,We=null!=ae?ae:"";this._formField?this._formField._control.value=We:this._element.nativeElement.value=We,this._previousValue=We}_setValueAndClose(we){we&&we.source&&(this._clearPreviousSelectedOption(we.source),this._setTriggerValue(we.source.value),this._onChange(we.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(we.source)),this.closePanel()}_clearPreviousSelectedOption(we){this.autocomplete.options.forEach(ae=>{ae!==we&&ae.selected&&ae.deselect()})}_attachOverlay(){var we;let ae=this._overlayRef;ae?(this._positionStrategy.setOrigin(this._getConnectedElement()),ae.updateSize({width:this._getPanelWidth()})):(this._portal=new V.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(we=this._formField)||void 0===we?void 0:we.getLabelId()}),ae=this._overlay.create(this._getOverlayConfig()),this._overlayRef=ae,ae.keydownEvents().subscribe(vt=>{(vt.keyCode===w.hY&&!(0,w.Vb)(vt)||vt.keyCode===w.LH&&(0,w.Vb)(vt,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),vt.stopPropagation(),vt.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&ae&&ae.updateSize({width:this._getPanelWidth()})})),ae&&!ae.hasAttached()&&(ae.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const We=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&We!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var we;return new E.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(we=this._defaults)||void 0===we?void 0:we.overlayPanelClass})}_getOverlayPosition(){const we=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(we),this._positionStrategy=we,we}_setStrategyPositions(we){const ae=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],We=this._aboveClass,vt=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:We},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:We}];let Pe;Pe="above"===this.position?vt:"below"===this.position?ae:[...ae,...vt],we.withPositions(Pe)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const we=this.autocomplete;we.autoActiveFirstOption?we._keyManager.setFirstItemActive():we._keyManager.setActiveItem(-1)}_canOpen(){const we=this._element.nativeElement;return!we.readOnly&&!we.disabled&&!this._autocompleteDisabled}_getWindow(){var we;return(null===(we=this._document)||void 0===we?void 0:we.defaultView)||window}_scrollToOption(we){const ae=this.autocomplete,We=(0,C.CB)(we,ae.options,ae.optionGroups);if(0===we&&1===We)ae._setScrollTop(0);else if(ae.panel){const vt=ae.options.toArray()[we];if(vt){const Pe=vt._getHostElement(),Ve=(0,C.jH)(Pe.offsetTop,Pe.offsetHeight,ae._getScrollTop(),ae.panel.nativeElement.offsetHeight);ae._setScrollTop(Ve)}}}}return B.\u0275fac=function(we){return new(we||B)(v.Y36(v.SBq),v.Y36(E.aV),v.Y36(v.s_b),v.Y36(v.R0b),v.Y36(v.sBO),v.Y36(r),v.Y36(re.Is,8),v.Y36(j.G_,9),v.Y36(A.K0,8),v.Y36(k.rL),v.Y36(_,8))},B.\u0275dir=v.lG2({type:B,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[v.TTD]}),B})(),xe=(()=>{class B extends ye{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return B.\u0275fac=function(){let Me;return function(ae){return(Me||(Me=v.n5z(B)))(ae||B)}}(),B.\u0275dir=v.lG2({type:B,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(we,ae){1&we&&v.NdJ("focusin",function(){return ae._handleFocus()})("blur",function(){return ae._onTouched()})("input",function(vt){return ae._handleInput(vt)})("keydown",function(vt){return ae._handleKeydown(vt)}),2&we&&v.uIk("autocomplete",ae.autocompleteAttribute)("role",ae.autocompleteDisabled?null:"combobox")("aria-autocomplete",ae.autocompleteDisabled?null:"list")("aria-activedescendant",ae.panelOpen&&ae.activeOption?ae.activeOption.id:null)("aria-expanded",ae.autocompleteDisabled?null:ae.panelOpen.toString())("aria-owns",ae.autocompleteDisabled||!ae.panelOpen||null==ae.autocomplete?null:ae.autocomplete.id)("aria-haspopup",!ae.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[v._Bn([P]),v.qOj]}),B})(),Oe=(()=>{class B{}return B.\u0275fac=function(we){return new(we||B)},B.\u0275mod=v.oAB({type:B}),B.\u0275inj=v.cJS({providers:[Z],imports:[[E.U8,C.Ng,C.BQ,A.ez],k.ZD,C.Ng,C.BQ]}),B})()},7544:(Ze,K,m)=>{"use strict";m.d(K,{k:()=>o,g:()=>L});var e=m(5e3),t=m(508),v=m(5664),C=m(3191),s=m(6360);let M=0;const c=(0,t.Id)(class{}),N="mat-badge-content";let o=(()=>{class O extends c{constructor(E,k,w,V,W){super(),this._ngZone=E,this._elementRef=k,this._ariaDescriber=w,this._renderer=V,this._animationMode=W,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=M++,this._isInitialized=!1}get color(){return this._color}set color(E){this._setColor(E),this._color=E}get overlap(){return this._overlap}set overlap(E){this._overlap=(0,C.Ig)(E)}get content(){return this._content}set content(E){this._updateRenderedContent(E)}get description(){return this._description}set description(E){this._updateHostAriaDescription(E)}get hidden(){return this._hidden}set hidden(E){this._hidden=(0,C.Ig)(E)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const E=this._renderer.createElement("span"),k="mat-badge-active";return E.setAttribute("id",`mat-badge-content-${this._id}`),E.setAttribute("aria-hidden","true"),E.classList.add(N),"NoopAnimations"===this._animationMode&&E.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(E),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{E.classList.add(k)})}):E.classList.add(k),E}_updateRenderedContent(E){const k=`${null!=E?E:""}`.trim();this._isInitialized&&k&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=k),this._content=k}_updateHostAriaDescription(E){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),E&&this._ariaDescriber.describe(this._elementRef.nativeElement,E),this._description=E}_setColor(E){const k=this._elementRef.nativeElement.classList;k.remove(`mat-badge-${this._color}`),E&&k.add(`mat-badge-${E}`)}_clearExistingBadges(){const E=this._elementRef.nativeElement.querySelectorAll(`:scope > .${N}`);for(const k of Array.from(E))k!==this._badgeElement&&k.remove()}}return O.\u0275fac=function(E){return new(E||O)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(v.$s),e.Y36(e.Qsj),e.Y36(s.Qb,8))},O.\u0275dir=e.lG2({type:O,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(E,k){2&E&&e.ekj("mat-badge-overlap",k.overlap)("mat-badge-above",k.isAbove())("mat-badge-below",!k.isAbove())("mat-badge-before",!k.isAfter())("mat-badge-after",k.isAfter())("mat-badge-small","small"===k.size)("mat-badge-medium","medium"===k.size)("mat-badge-large","large"===k.size)("mat-badge-hidden",k.hidden||!k.content)("mat-badge-disabled",k.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),O})(),L=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({imports:[[v.rt,t.BQ],t.BQ]}),O})()},7423:(Ze,K,m)=>{"use strict";m.d(K,{lW:()=>O,ot:()=>E});var e=m(5e3),t=m(508),v=m(6360),C=m(5664);const s=["mat-button",""],M=["*"],o=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],L=(0,t.pj)((0,t.Id)((0,t.Kr)(class{constructor(k){this._elementRef=k}})));let O=(()=>{class k extends L{constructor(V,W,j){super(V),this._focusMonitor=W,this._animationMode=j,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const $ of o)this._hasHostAttributes($)&&this._getHostElement().classList.add($);V.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(V,W){V?this._focusMonitor.focusVia(this._getHostElement(),V,W):this._getHostElement().focus(W)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...V){return V.some(W=>this._getHostElement().hasAttribute(W))}}return k.\u0275fac=function(V){return new(V||k)(e.Y36(e.SBq),e.Y36(C.tE),e.Y36(v.Qb,8))},k.\u0275cmp=e.Xpm({type:k,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(V,W){if(1&V&&e.Gf(t.wG,5),2&V){let j;e.iGM(j=e.CRH())&&(W.ripple=j.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(V,W){2&V&&(e.uIk("disabled",W.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===W._animationMode)("mat-button-disabled",W.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:s,ngContentSelectors:M,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(V,W){1&V&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&V&&(e.xp6(2),e.ekj("mat-button-ripple-round",W.isRoundButton||W.isIconButton),e.Q6J("matRippleDisabled",W._isRippleDisabled())("matRippleCentered",W.isIconButton)("matRippleTrigger",W._getHostElement()))},directives:[t.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),k})(),E=(()=>{class k{}return k.\u0275fac=function(V){return new(V||k)},k.\u0275mod=e.oAB({type:k}),k.\u0275inj=e.cJS({imports:[[t.si,t.BQ],t.BQ]}),k})()},9224:(Ze,K,m)=>{"use strict";m.d(K,{a8:()=>me,dn:()=>L,dk:()=>ce,QW:()=>te,$j:()=>A,n5:()=>O});var e=m(5e3),t=m(6360),v=m(508);const C=["*",[["mat-card-footer"]]],s=["*","mat-card-footer"],M=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],c=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let L=(()=>{class re{}return re.\u0275fac=function(y){return new(y||re)},re.\u0275dir=e.lG2({type:re,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),re})(),O=(()=>{class re{}return re.\u0275fac=function(y){return new(y||re)},re.\u0275dir=e.lG2({type:re,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),re})(),A=(()=>{class re{}return re.\u0275fac=function(y){return new(y||re)},re.\u0275dir=e.lG2({type:re,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),re})(),me=(()=>{class re{constructor(y){this._animationMode=y}}return re.\u0275fac=function(y){return new(y||re)(e.Y36(t.Qb,8))},re.\u0275cmp=e.Xpm({type:re,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(y,i){2&y&&e.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:s,decls:2,vars:0,template:function(y,i){1&y&&(e.F$t(C),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),re})(),ce=(()=>{class re{}return re.\u0275fac=function(y){return new(y||re)},re.\u0275cmp=e.Xpm({type:re,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:c,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(y,i){1&y&&(e.F$t(M),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),re})(),te=(()=>{class re{}return re.\u0275fac=function(y){return new(y||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({imports:[[v.BQ],v.BQ]}),re})()},7446:(Ze,K,m)=>{"use strict";m.d(K,{oG:()=>j,p9:()=>ce});var e=m(3191),t=m(5e3),v=m(3075),C=m(508),s=m(6360),M=m(5664),c=m(7144);const N=["input"],o=function(le){return{enterDuration:le}},L=["*"],O=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:A});function A(){return{color:"accent",clickAction:"check-indeterminate"}}let E=0;const k=A(),w={provide:v.JU,useExisting:(0,t.Gpc)(()=>j),multi:!0};class V{}const W=(0,C.sb)((0,C.pj)((0,C.Kr)((0,C.Id)(class{constructor(le){this._elementRef=le}}))));let j=(()=>{class le extends W{constructor(re,pe,y,i,a,p,u){super(re),this._changeDetectorRef=pe,this._focusMonitor=y,this._ngZone=i,this._animationMode=p,this._options=u,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++E,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new t.vpe,this.indeterminateChange=new t.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||k,this.color=this.defaultColor=this._options.color||k.color,this.tabIndex=parseInt(a)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(re){this._required=(0,e.Ig)(re)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(re=>{re||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(re){re!=this.checked&&(this._checked=re,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(re){const pe=(0,e.Ig)(re);pe!==this.disabled&&(this._disabled=pe,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(re){const pe=re!=this._indeterminate;this._indeterminate=(0,e.Ig)(re),pe&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(re){this.checked=!!re}registerOnChange(re){this._controlValueAccessorChangeFn=re}registerOnTouched(re){this._onTouched=re}setDisabledState(re){this.disabled=re}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(re){let pe=this._currentCheckState,y=this._elementRef.nativeElement;if(pe!==re&&(this._currentAnimationClass.length>0&&y.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(pe,re),this._currentCheckState=re,this._currentAnimationClass.length>0)){y.classList.add(this._currentAnimationClass);const i=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{y.classList.remove(i)},1e3)})}}_emitChangeEvent(){const re=new V;re.source=this,re.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(re),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(re){var pe;const y=null===(pe=this._options)||void 0===pe?void 0:pe.clickAction;re.stopPropagation(),this.disabled||"noop"===y?!this.disabled&&"noop"===y&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==y&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(re,pe){re?this._focusMonitor.focusVia(this._inputElement,re,pe):this._inputElement.nativeElement.focus(pe)}_onInteractionEvent(re){re.stopPropagation()}_getAnimationClassForCheckStateTransition(re,pe){if("NoopAnimations"===this._animationMode)return"";let y="";switch(re){case 0:if(1===pe)y="unchecked-checked";else{if(3!=pe)return"";y="unchecked-indeterminate"}break;case 2:y=1===pe?"unchecked-checked":"unchecked-indeterminate";break;case 1:y=2===pe?"checked-unchecked":"checked-indeterminate";break;case 3:y=1===pe?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${y}`}_syncIndeterminate(re){const pe=this._inputElement;pe&&(pe.nativeElement.indeterminate=re)}}return le.\u0275fac=function(re){return new(re||le)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(M.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(s.Qb,8),t.Y36(O,8))},le.\u0275cmp=t.Xpm({type:le,selectors:[["mat-checkbox"]],viewQuery:function(re,pe){if(1&re&&(t.Gf(N,5),t.Gf(C.wG,5)),2&re){let y;t.iGM(y=t.CRH())&&(pe._inputElement=y.first),t.iGM(y=t.CRH())&&(pe.ripple=y.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(re,pe){2&re&&(t.Ikx("id",pe.id),t.uIk("tabindex",null),t.ekj("mat-checkbox-indeterminate",pe.indeterminate)("mat-checkbox-checked",pe.checked)("mat-checkbox-disabled",pe.disabled)("mat-checkbox-label-before","before"==pe.labelPosition)("_mat-animation-noopable","NoopAnimations"===pe._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[t._Bn([w]),t.qOj],ngContentSelectors:L,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(re,pe){if(1&re&&(t.F$t(),t.TgZ(0,"label",0,1),t.TgZ(2,"span",2),t.TgZ(3,"input",3,4),t.NdJ("change",function(i){return pe._onInteractionEvent(i)})("click",function(i){return pe._onInputClick(i)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.qZA(),t._UZ(7,"span",7),t.TgZ(8,"span",8),t.O4$(),t.TgZ(9,"svg",9),t._UZ(10,"path",10),t.qZA(),t.kcU(),t._UZ(11,"span",11),t.qZA(),t.qZA(),t.TgZ(12,"span",12,13),t.NdJ("cdkObserveContent",function(){return pe._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA(),t.qZA()),2&re){const y=t.MAs(1),i=t.MAs(13);t.uIk("for",pe.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),t.xp6(1),t.Q6J("id",pe.inputId)("required",pe.required)("checked",pe.checked)("disabled",pe.disabled)("tabIndex",pe.tabIndex),t.uIk("value",pe.value)("name",pe.name)("aria-label",pe.ariaLabel||null)("aria-labelledby",pe.ariaLabelledby)("aria-checked",pe._getAriaChecked())("aria-describedby",pe.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",y)("matRippleDisabled",pe._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,o,"NoopAnimations"===pe._animationMode?0:150))}},directives:[C.wG,c.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),le})(),me=(()=>{class le{}return le.\u0275fac=function(re){return new(re||le)},le.\u0275mod=t.oAB({type:le}),le.\u0275inj=t.cJS({}),le})(),ce=(()=>{class le{}return le.\u0275fac=function(re){return new(re||le)},le.\u0275mod=t.oAB({type:le}),le.\u0275inj=t.cJS({imports:[[C.si,C.BQ,c.Q8,me],C.BQ,me]}),le})()},508:(Ze,K,m)=>{"use strict";m.d(K,{yN:()=>$,mZ:()=>ee,_A:()=>r,rD:()=>Oe,sG:()=>b,K7:()=>Bt,HF:()=>ft,Y2:()=>oe,BQ:()=>te,X2:()=>B,uc:()=>ae,XK:()=>Ne,ey:()=>ti,Ng:()=>di,rN:()=>Oi,nP:()=>ht,us:()=>it,wG:()=>Ce,si:()=>Ue,LF:()=>U,IR:()=>ke,CB:()=>Pi,jH:()=>si,pj:()=>a,Kr:()=>p,Id:()=>i,FD:()=>_,dB:()=>D,sb:()=>u,E0:()=>Me});var e=m(5e3),t=m(226),C=m(9808),s=m(925),M=m(5664),c=m(3191),N=m(7579),o=m(8306),L=m(8675),O=m(6360),A=m(1159);function w(ze,Te){if(1&ze&&e._UZ(0,"mat-pseudo-checkbox",4),2&ze){const Y=e.oxw();e.Q6J("state",Y.selected?"checked":"unchecked")("disabled",Y.disabled)}}function V(ze,Te){if(1&ze&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&ze){const Y=e.oxw();e.xp6(1),e.hij("(",Y.group.label,")")}}const W=["*"];let $=(()=>{class ze{}return ze.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ze.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ze.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ze.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",ze})(),ee=(()=>{class ze{}return ze.COMPLEX="375ms",ze.ENTERING="225ms",ze.EXITING="195ms",ze})();const le=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let te=(()=>{class ze{constructor(Y,ge,Ae){this._sanityChecks=ge,this._document=Ae,this._hasDoneGlobalChecks=!1,Y._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Y){return!(0,s.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Y])}}return ze.\u0275fac=function(Y){return new(Y||ze)(e.LFG(M.qm),e.LFG(le,8),e.LFG(C.K0))},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[[t.vT],t.vT]}),ze})();function i(ze){return class extends ze{constructor(...Te){super(...Te),this._disabled=!1}get disabled(){return this._disabled}set disabled(Te){this._disabled=(0,c.Ig)(Te)}}}function a(ze,Te){return class extends ze{constructor(...Y){super(...Y),this.defaultColor=Te,this.color=Te}get color(){return this._color}set color(Y){const ge=Y||this.defaultColor;ge!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ge&&this._elementRef.nativeElement.classList.add(`mat-${ge}`),this._color=ge)}}}function p(ze){return class extends ze{constructor(...Te){super(...Te),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Te){this._disableRipple=(0,c.Ig)(Te)}}}function u(ze,Te=0){return class extends ze{constructor(...Y){super(...Y),this._tabIndex=Te,this.defaultTabIndex=Te}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Y){this._tabIndex=null!=Y?(0,c.su)(Y):this.defaultTabIndex}}}function _(ze){return class extends ze{constructor(...Te){super(...Te),this.stateChanges=new N.x,this.errorState=!1}updateErrorState(){const Te=this.errorState,et=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);et!==Te&&(this.errorState=et,this.stateChanges.next())}}}function D(ze){return class extends ze{constructor(...Te){super(...Te),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new o.y(Y=>{this._isInitialized?this._notifySubscriber(Y):this._pendingSubscribers.push(Y)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Te){Te.next(),Te.complete()}}}const I=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return(0,e.f3M)(e.soG)}});class r{constructor(){this._localeChanges=new N.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Te){return this.isDateInstance(Te)&&this.isValid(Te)?Te:null}deserialize(Te){return null==Te||this.isDateInstance(Te)&&this.isValid(Te)?Te:this.invalid()}setLocale(Te){this.locale=Te,this._localeChanges.next()}compareDate(Te,Y){return this.getYear(Te)-this.getYear(Y)||this.getMonth(Te)-this.getMonth(Y)||this.getDate(Te)-this.getDate(Y)}sameDate(Te,Y){if(Te&&Y){let ge=this.isValid(Te),Ae=this.isValid(Y);return ge&&Ae?!this.compareDate(Te,Y):ge==Ae}return Te==Y}clampDate(Te,Y,ge){return Y&&this.compareDate(Te,Y)<0?Y:ge&&this.compareDate(Te,ge)>0?ge:Te}}const b=new e.OlP("mat-date-formats"),Z=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function P(ze,Te){const Y=Array(ze);for(let ge=0;ge<ze;ge++)Y[ge]=Te(ge);return Y}let U=(()=>{class ze extends r{constructor(Y,ge){super(),this.useUtcForDisplay=!1,super.setLocale(Y)}getYear(Y){return Y.getFullYear()}getMonth(Y){return Y.getMonth()}getDate(Y){return Y.getDate()}getDayOfWeek(Y){return Y.getDay()}getMonthNames(Y){const ge=new Intl.DateTimeFormat(this.locale,{month:Y,timeZone:"utc"});return P(12,Ae=>this._format(ge,new Date(2017,Ae,1)))}getDateNames(){const Y=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return P(31,ge=>this._format(Y,new Date(2017,0,ge+1)))}getDayOfWeekNames(Y){const ge=new Intl.DateTimeFormat(this.locale,{weekday:Y,timeZone:"utc"});return P(7,Ae=>this._format(ge,new Date(2017,0,Ae+1)))}getYearName(Y){const ge=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(ge,Y)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Y){return this.getDate(this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y)+1,0))}clone(Y){return new Date(Y.getTime())}createDate(Y,ge,Ae){let et=this._createDateWithOverflow(Y,ge,Ae);return et.getMonth(),et}today(){return new Date}parse(Y){return"number"==typeof Y?new Date(Y):Y?new Date(Date.parse(Y)):null}format(Y,ge){if(!this.isValid(Y))throw Error("NativeDateAdapter: Cannot format invalid date.");const Ae=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},ge),{timeZone:"utc"}));return this._format(Ae,Y)}addCalendarYears(Y,ge){return this.addCalendarMonths(Y,12*ge)}addCalendarMonths(Y,ge){let Ae=this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y)+ge,this.getDate(Y));return this.getMonth(Ae)!=((this.getMonth(Y)+ge)%12+12)%12&&(Ae=this._createDateWithOverflow(this.getYear(Ae),this.getMonth(Ae),0)),Ae}addCalendarDays(Y,ge){return this._createDateWithOverflow(this.getYear(Y),this.getMonth(Y),this.getDate(Y)+ge)}toIso8601(Y){return[Y.getUTCFullYear(),this._2digit(Y.getUTCMonth()+1),this._2digit(Y.getUTCDate())].join("-")}deserialize(Y){if("string"==typeof Y){if(!Y)return null;if(Z.test(Y)){let ge=new Date(Y);if(this.isValid(ge))return ge}}return super.deserialize(Y)}isDateInstance(Y){return Y instanceof Date}isValid(Y){return!isNaN(Y.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Y,ge,Ae){const et=new Date;return et.setFullYear(Y,ge,Ae),et.setHours(0,0,0,0),et}_2digit(Y){return("00"+Y).slice(-2)}_format(Y,ge){const Ae=new Date;return Ae.setUTCFullYear(ge.getFullYear(),ge.getMonth(),ge.getDate()),Ae.setUTCHours(ge.getHours(),ge.getMinutes(),ge.getSeconds(),ge.getMilliseconds()),Y.format(Ae)}}return ze.\u0275fac=function(Y){return new(Y||ze)(e.LFG(I,8),e.LFG(s.t4))},ze.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const ye={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let xe=(()=>{class ze{}return ze.\u0275fac=function(Y){return new(Y||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({providers:[{provide:r,useClass:U}],imports:[[s.ud]]}),ze})(),Ne=(()=>{class ze{}return ze.\u0275fac=function(Y){return new(Y||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({providers:[{provide:b,useValue:ye}],imports:[[xe]]}),ze})(),Oe=(()=>{class ze{isErrorState(Y,ge){return!!(Y&&Y.invalid&&(Y.touched||ge&&ge.submitted))}}return ze.\u0275fac=function(Y){return new(Y||ze)},ze.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),B=(()=>{class ze{}return ze.\u0275fac=function(Y){return new(Y||ze)},ze.\u0275dir=e.lG2({type:ze,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),ze})();function Me(ze,Te,Y="mat"){ze.changes.pipe((0,L.O)(ze)).subscribe(({length:ge})=>{we(Te,`${Y}-2-line`,!1),we(Te,`${Y}-3-line`,!1),we(Te,`${Y}-multi-line`,!1),2===ge||3===ge?we(Te,`${Y}-${ge}-line`,!0):ge>3&&we(Te,`${Y}-multi-line`,!0)})}function we(ze,Te,Y){ze.nativeElement.classList.toggle(Te,Y)}let ae=(()=>{class ze{}return ze.\u0275fac=function(Y){return new(Y||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[[te],te]}),ze})();class We{constructor(Te,Y,ge){this._renderer=Te,this.element=Y,this.config=ge,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const vt={enterDuration:225,exitDuration:150},Ve=(0,s.i$)({passive:!0}),he=["mousedown","touchstart"],Ee=["mouseup","mouseleave","touchend","touchcancel"];class ke{constructor(Te,Y,ge,Ae){this._target=Te,this._ngZone=Y,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Ae.isBrowser&&(this._containerElement=(0,c.fI)(ge))}fadeInRipple(Te,Y,ge={}){const Ae=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),et=Object.assign(Object.assign({},vt),ge.animation);ge.centered&&(Te=Ae.left+Ae.width/2,Y=Ae.top+Ae.height/2);const $t=ge.radius||function(ze,Te,Y){const ge=Math.max(Math.abs(ze-Y.left),Math.abs(ze-Y.right)),Ae=Math.max(Math.abs(Te-Y.top),Math.abs(Te-Y.bottom));return Math.sqrt(ge*ge+Ae*Ae)}(Te,Y,Ae),Nt=Te-Ae.left,Xt=Y-Ae.top,lt=et.enterDuration,Re=document.createElement("div");Re.classList.add("mat-ripple-element"),Re.style.left=Nt-$t+"px",Re.style.top=Xt-$t+"px",Re.style.height=2*$t+"px",Re.style.width=2*$t+"px",null!=ge.color&&(Re.style.backgroundColor=ge.color),Re.style.transitionDuration=`${lt}ms`,this._containerElement.appendChild(Re),window.getComputedStyle(Re).getPropertyValue("opacity"),Re.style.transform="scale(1)";const Fe=new We(this,Re,ge);return Fe.state=0,this._activeRipples.add(Fe),ge.persistent||(this._mostRecentTransientRipple=Fe),this._runTimeoutOutsideZone(()=>{const rt=Fe===this._mostRecentTransientRipple;Fe.state=1,!ge.persistent&&(!rt||!this._isPointerDown)&&Fe.fadeOut()},lt),Fe}fadeOutRipple(Te){const Y=this._activeRipples.delete(Te);if(Te===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!Y)return;const ge=Te.element,Ae=Object.assign(Object.assign({},vt),Te.config.animation);ge.style.transitionDuration=`${Ae.exitDuration}ms`,ge.style.opacity="0",Te.state=2,this._runTimeoutOutsideZone(()=>{Te.state=3,ge.remove()},Ae.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Te=>Te.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Te=>{Te.config.persistent||Te.fadeOut()})}setupTriggerEvents(Te){const Y=(0,c.fI)(Te);!Y||Y===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Y,this._registerEvents(he))}handleEvent(Te){"mousedown"===Te.type?this._onMousedown(Te):"touchstart"===Te.type?this._onTouchStart(Te):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ee),this._pointerUpEventsRegistered=!0)}_onMousedown(Te){const Y=(0,M.X6)(Te),ge=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Y&&!ge&&(this._isPointerDown=!0,this.fadeInRipple(Te.clientX,Te.clientY,this._target.rippleConfig))}_onTouchStart(Te){if(!this._target.rippleDisabled&&!(0,M.yG)(Te)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const Y=Te.changedTouches;for(let ge=0;ge<Y.length;ge++)this.fadeInRipple(Y[ge].clientX,Y[ge].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(Te=>{!Te.config.persistent&&(1===Te.state||Te.config.terminateOnPointerUp&&0===Te.state)&&Te.fadeOut()}))}_runTimeoutOutsideZone(Te,Y=0){this._ngZone.runOutsideAngular(()=>setTimeout(Te,Y))}_registerEvents(Te){this._ngZone.runOutsideAngular(()=>{Te.forEach(Y=>{this._triggerElement.addEventListener(Y,this,Ve)})})}_removeTriggerEvents(){this._triggerElement&&(he.forEach(Te=>{this._triggerElement.removeEventListener(Te,this,Ve)}),this._pointerUpEventsRegistered&&Ee.forEach(Te=>{this._triggerElement.removeEventListener(Te,this,Ve)}))}}const oe=new e.OlP("mat-ripple-global-options");let Ce=(()=>{class ze{constructor(Y,ge,Ae,et,$t){this._elementRef=Y,this._animationMode=$t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=et||{},this._rippleRenderer=new ke(this,ge,Y,Ae)}get disabled(){return this._disabled}set disabled(Y){Y&&this.fadeOutAllNonPersistent(),this._disabled=Y,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Y){this._trigger=Y,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Y,ge=0,Ae){return"number"==typeof Y?this._rippleRenderer.fadeInRipple(Y,ge,Object.assign(Object.assign({},this.rippleConfig),Ae)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Y))}}return ze.\u0275fac=function(Y){return new(Y||ze)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(s.t4),e.Y36(oe,8),e.Y36(O.Qb,8))},ze.\u0275dir=e.lG2({type:ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Y,ge){2&Y&&e.ekj("mat-ripple-unbounded",ge.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),ze})(),Ue=(()=>{class ze{}return ze.\u0275fac=function(Y){return new(Y||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[[te,s.ud],te]}),ze})(),ht=(()=>{class ze{constructor(Y){this._animationMode=Y,this.state="unchecked",this.disabled=!1}}return ze.\u0275fac=function(Y){return new(Y||ze)(e.Y36(O.Qb,8))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Y,ge){2&Y&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===ge.state)("mat-pseudo-checkbox-checked","checked"===ge.state)("mat-pseudo-checkbox-disabled",ge.disabled)("_mat-animation-noopable","NoopAnimations"===ge._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Y,ge){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),ze})(),it=(()=>{class ze{}return ze.\u0275fac=function(Y){return new(Y||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[[te]]}),ze})();const ft=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),Bt=new e.OlP("MatOptgroup");let Vt=0;class Oi{constructor(Te,Y=!1){this.source=Te,this.isUserInput=Y}}let jt=(()=>{class ze{constructor(Y,ge,Ae,et){this._element=Y,this._changeDetectorRef=ge,this._parent=Ae,this.group=et,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Vt++,this.onSelectionChange=new e.vpe,this._stateChanges=new N.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Y){this._disabled=(0,c.Ig)(Y)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(Y,ge){const Ae=this._getHostElement();"function"==typeof Ae.focus&&Ae.focus(ge)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Y){(Y.keyCode===A.K5||Y.keyCode===A.L_)&&!(0,A.Vb)(Y)&&(this._selectViaInteraction(),Y.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const Y=this.viewValue;Y!==this._mostRecentViewValue&&(this._mostRecentViewValue=Y,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Y=!1){this.onSelectionChange.emit(new Oi(this,Y))}}return ze.\u0275fac=function(Y){e.$Z()},ze.\u0275dir=e.lG2({type:ze,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ze})(),ti=(()=>{class ze extends jt{constructor(Y,ge,Ae,et){super(Y,ge,Ae,et)}}return ze.\u0275fac=function(Y){return new(Y||ze)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ft,8),e.Y36(Bt,8))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Y,ge){1&Y&&e.NdJ("click",function(){return ge._selectViaInteraction()})("keydown",function(et){return ge._handleKeydown(et)}),2&Y&&(e.Ikx("id",ge.id),e.uIk("tabindex",ge._getTabIndex())("aria-selected",ge._getAriaSelected())("aria-disabled",ge.disabled.toString()),e.ekj("mat-selected",ge.selected)("mat-option-multiple",ge.multiple)("mat-active",ge.active)("mat-option-disabled",ge.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:W,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(Y,ge){1&Y&&(e.F$t(),e.YNc(0,w,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,V,2,1,"span",2),e._UZ(4,"div",3)),2&Y&&(e.Q6J("ngIf",ge.multiple),e.xp6(3),e.Q6J("ngIf",ge.group&&ge.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",ge._getHostElement())("matRippleDisabled",ge.disabled||ge.disableRipple))},directives:[C.O5,Ce,ht],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),ze})();function Pi(ze,Te,Y){if(Y.length){let ge=Te.toArray(),Ae=Y.toArray(),et=0;for(let $t=0;$t<ze+1;$t++)ge[$t].group&&ge[$t].group===Ae[et]&&et++;return et}return 0}function si(ze,Te,Y,ge){return ze<Y?ze:ze+Te>Y+ge?Math.max(0,ze-ge+Te):Y}let di=(()=>{class ze{}return ze.\u0275fac=function(Y){return new(Y||ze)},ze.\u0275mod=e.oAB({type:ze}),ze.\u0275inj=e.cJS({imports:[[Ue,C.ez,te,it]]}),ze})()},6856:(Ze,K,m)=>{"use strict";m.d(K,{Mq:()=>Nt,hl:()=>ot,FA:()=>ve,nW:()=>li});var e=m(5664),t=m(9776),v=m(7429),C=m(9808),s=m(5e3),M=m(7423),c=m(5303),N=m(508),o=m(7579),L=m(727),O=m(6451),A=m(9646),E=m(1159),k=m(5698),w=m(8675),V=m(9300),W=m(226),j=m(3191),$=m(925),ee=m(1777),me=m(3075),ce=m(7322),le=m(7531);const te=["mat-calendar-body",""];function re(qe,_t){if(1&qe&&(s.TgZ(0,"tr",2),s.TgZ(1,"td",3),s._uU(2),s.qZA(),s.qZA()),2&qe){const ue=s.oxw();s.xp6(1),s.Udp("padding-top",ue._cellPadding)("padding-bottom",ue._cellPadding),s.uIk("colspan",ue.numCols),s.xp6(1),s.hij(" ",ue.label," ")}}function pe(qe,_t){if(1&qe&&(s.TgZ(0,"td",3),s._uU(1),s.qZA()),2&qe){const ue=s.oxw(2);s.Udp("padding-top",ue._cellPadding)("padding-bottom",ue._cellPadding),s.uIk("colspan",ue._firstRowOffset),s.xp6(1),s.hij(" ",ue._firstRowOffset>=ue.labelMinRequiredCells?ue.label:""," ")}}function y(qe,_t){if(1&qe){const ue=s.EpF();s.TgZ(0,"td",7),s.NdJ("click",function(St){const yi=s.CHM(ue).$implicit;return s.oxw(2)._cellClicked(yi,St)}),s.TgZ(1,"div",8),s._uU(2),s.qZA(),s._UZ(3,"div",9),s.qZA()}if(2&qe){const ue=_t.$implicit,$e=_t.index,St=s.oxw().index,Rt=s.oxw();s.Udp("width",Rt._cellWidth)("padding-top",Rt._cellPadding)("padding-bottom",Rt._cellPadding),s.ekj("mat-calendar-body-disabled",!ue.enabled)("mat-calendar-body-active",Rt._isActiveCell(St,$e))("mat-calendar-body-range-start",Rt._isRangeStart(ue.compareValue))("mat-calendar-body-range-end",Rt._isRangeEnd(ue.compareValue))("mat-calendar-body-in-range",Rt._isInRange(ue.compareValue))("mat-calendar-body-comparison-bridge-start",Rt._isComparisonBridgeStart(ue.compareValue,St,$e))("mat-calendar-body-comparison-bridge-end",Rt._isComparisonBridgeEnd(ue.compareValue,St,$e))("mat-calendar-body-comparison-start",Rt._isComparisonStart(ue.compareValue))("mat-calendar-body-comparison-end",Rt._isComparisonEnd(ue.compareValue))("mat-calendar-body-in-comparison-range",Rt._isInComparisonRange(ue.compareValue))("mat-calendar-body-preview-start",Rt._isPreviewStart(ue.compareValue))("mat-calendar-body-preview-end",Rt._isPreviewEnd(ue.compareValue))("mat-calendar-body-in-preview",Rt._isInPreview(ue.compareValue)),s.Q6J("ngClass",ue.cssClasses)("tabindex",Rt._isActiveCell(St,$e)?0:-1),s.uIk("data-mat-row",St)("data-mat-col",$e)("aria-label",ue.ariaLabel)("aria-disabled",!ue.enabled||null)("aria-selected",Rt._isSelected(ue.compareValue))("aria-current",Rt.todayValue===ue.compareValue?"date":null),s.xp6(1),s.ekj("mat-calendar-body-selected",Rt._isSelected(ue.compareValue))("mat-calendar-body-comparison-identical",Rt._isComparisonIdentical(ue.compareValue))("mat-calendar-body-today",Rt.todayValue===ue.compareValue),s.xp6(1),s.hij(" ",ue.displayValue," ")}}function i(qe,_t){if(1&qe&&(s.TgZ(0,"tr",4),s.YNc(1,pe,2,6,"td",5),s.YNc(2,y,4,47,"td",6),s.qZA()),2&qe){const ue=_t.$implicit,$e=_t.index,St=s.oxw();s.xp6(1),s.Q6J("ngIf",0===$e&&St._firstRowOffset),s.xp6(1),s.Q6J("ngForOf",ue)}}function a(qe,_t){if(1&qe&&(s.TgZ(0,"th",5),s.TgZ(1,"abbr",6),s._uU(2),s.qZA(),s.qZA()),2&qe){const ue=_t.$implicit;s.uIk("aria-label",ue.long),s.xp6(1),s.uIk("title",ue.long),s.xp6(1),s.Oqu(ue.narrow)}}const p=["*"];function u(qe,_t){}function _(qe,_t){if(1&qe){const ue=s.EpF();s.TgZ(0,"mat-month-view",5),s.NdJ("activeDateChange",function(St){return s.CHM(ue),s.oxw().activeDate=St})("_userSelection",function(St){return s.CHM(ue),s.oxw()._dateSelected(St)}),s.qZA()}if(2&qe){const ue=s.oxw();s.Q6J("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)("comparisonStart",ue.comparisonStart)("comparisonEnd",ue.comparisonEnd)}}function D(qe,_t){if(1&qe){const ue=s.EpF();s.TgZ(0,"mat-year-view",6),s.NdJ("activeDateChange",function(St){return s.CHM(ue),s.oxw().activeDate=St})("monthSelected",function(St){return s.CHM(ue),s.oxw()._monthSelectedInYearView(St)})("selectedChange",function(St){return s.CHM(ue),s.oxw()._goToDateInView(St,"month")}),s.qZA()}if(2&qe){const ue=s.oxw();s.Q6J("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)}}function I(qe,_t){if(1&qe){const ue=s.EpF();s.TgZ(0,"mat-multi-year-view",7),s.NdJ("activeDateChange",function(St){return s.CHM(ue),s.oxw().activeDate=St})("yearSelected",function(St){return s.CHM(ue),s.oxw()._yearSelectedInMultiYearView(St)})("selectedChange",function(St){return s.CHM(ue),s.oxw()._goToDateInView(St,"year")}),s.qZA()}if(2&qe){const ue=s.oxw();s.Q6J("activeDate",ue.activeDate)("selected",ue.selected)("dateFilter",ue.dateFilter)("maxDate",ue.maxDate)("minDate",ue.minDate)("dateClass",ue.dateClass)}}function x(qe,_t){}const r=["button"];function b(qe,_t){1&qe&&(s.O4$(),s.TgZ(0,"svg",3),s._UZ(1,"path",4),s.qZA())}const Z=[[["","matDatepickerToggleIcon",""]]],P=["[matDatepickerToggleIcon]"];class Be{constructor(_t,ue,$e,St,Rt={},yi=_t,Ri){this.value=_t,this.displayValue=ue,this.ariaLabel=$e,this.enabled=St,this.cssClasses=Rt,this.compareValue=yi,this.rawValue=Ri}}let Oe=(()=>{class qe{constructor(ue,$e){this._elementRef=ue,this._ngZone=$e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new s.vpe,this.previewChange=new s.vpe,this._enterHandler=St=>{if(this._skipNextFocus&&"focus"===St.type)this._skipNextFocus=!1;else if(St.target&&this.isRange){const Rt=this._getCellFromElement(St.target);Rt&&this._ngZone.run(()=>this.previewChange.emit({value:Rt.enabled?Rt:null,event:St}))}},this._leaveHandler=St=>{null!==this.previewEnd&&this.isRange&&St.target&&B(St.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:St}))},$e.runOutsideAngular(()=>{const St=ue.nativeElement;St.addEventListener("mouseenter",this._enterHandler,!0),St.addEventListener("focus",this._enterHandler,!0),St.addEventListener("mouseleave",this._leaveHandler,!0),St.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(ue,$e){ue.enabled&&this.selectedValueChange.emit({value:ue.value,event:$e})}_isSelected(ue){return this.startValue===ue||this.endValue===ue}ngOnChanges(ue){const $e=ue.numCols,{rows:St,numCols:Rt}=this;(ue.rows||$e)&&(this._firstRowOffset=St&&St.length&&St[0].length?Rt-St[0].length:0),(ue.cellAspectRatio||$e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Rt+"%"),($e||!this._cellWidth)&&(this._cellWidth=100/Rt+"%")}ngOnDestroy(){const ue=this._elementRef.nativeElement;ue.removeEventListener("mouseenter",this._enterHandler,!0),ue.removeEventListener("focus",this._enterHandler,!0),ue.removeEventListener("mouseleave",this._leaveHandler,!0),ue.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(ue,$e){let St=ue*this.numCols+$e;return ue&&(St-=this._firstRowOffset),St==this.activeCell}_focusActiveCell(ue=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{const $e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");$e&&(ue||(this._skipNextFocus=!0),$e.focus())})})}_isRangeStart(ue){return Me(ue,this.startValue,this.endValue)}_isRangeEnd(ue){return we(ue,this.startValue,this.endValue)}_isInRange(ue){return ae(ue,this.startValue,this.endValue,this.isRange)}_isComparisonStart(ue){return Me(ue,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(ue,$e,St){if(!this._isComparisonStart(ue)||this._isRangeStart(ue)||!this._isInRange(ue))return!1;let Rt=this.rows[$e][St-1];if(!Rt){const yi=this.rows[$e-1];Rt=yi&&yi[yi.length-1]}return Rt&&!this._isRangeEnd(Rt.compareValue)}_isComparisonBridgeEnd(ue,$e,St){if(!this._isComparisonEnd(ue)||this._isRangeEnd(ue)||!this._isInRange(ue))return!1;let Rt=this.rows[$e][St+1];if(!Rt){const yi=this.rows[$e+1];Rt=yi&&yi[0]}return Rt&&!this._isRangeStart(Rt.compareValue)}_isComparisonEnd(ue){return we(ue,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(ue){return ae(ue,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(ue){return this.comparisonStart===this.comparisonEnd&&ue===this.comparisonStart}_isPreviewStart(ue){return Me(ue,this.previewStart,this.previewEnd)}_isPreviewEnd(ue){return we(ue,this.previewStart,this.previewEnd)}_isInPreview(ue){return ae(ue,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(ue){let $e;if(B(ue)?$e=ue:B(ue.parentNode)&&($e=ue.parentNode),$e){const St=$e.getAttribute("data-mat-row"),Rt=$e.getAttribute("data-mat-col");if(St&&Rt)return this.rows[parseInt(St)][parseInt(Rt)]}return null}}return qe.\u0275fac=function(ue){return new(ue||qe)(s.Y36(s.SBq),s.Y36(s.R0b))},qe.\u0275cmp=s.Xpm({type:qe,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[s.TTD],attrs:te,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(ue,$e){1&ue&&(s.YNc(0,re,3,6,"tr",0),s.YNc(1,i,3,2,"tr",1)),2&ue&&(s.Q6J("ngIf",$e._firstRowOffset<$e.labelMinRequiredCells),s.xp6(1),s.Q6J("ngForOf",$e.rows))},directives:[C.O5,C.sg,C.mk],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),qe})();function B(qe){return"TD"===qe.nodeName}function Me(qe,_t,ue){return null!==ue&&_t!==ue&&qe<ue&&qe===_t}function we(qe,_t,ue){return null!==_t&&_t!==ue&&qe>=_t&&qe===ue}function ae(qe,_t,ue,$e){return $e&&null!==_t&&null!==ue&&_t!==ue&&qe>=_t&&qe<=ue}class We{constructor(_t,ue){this.start=_t,this.end=ue}}let vt=(()=>{class qe{constructor(ue,$e){this.selection=ue,this._adapter=$e,this._selectionChanged=new o.x,this.selectionChanged=this._selectionChanged,this.selection=ue}updateSelection(ue,$e){const St=this.selection;this.selection=ue,this._selectionChanged.next({selection:ue,source:$e,oldValue:St})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(ue){return this._adapter.isDateInstance(ue)&&this._adapter.isValid(ue)}}return qe.\u0275fac=function(ue){s.$Z()},qe.\u0275prov=s.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),Pe=(()=>{class qe extends vt{constructor(ue){super(null,ue)}add(ue){super.updateSelection(ue,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const ue=new qe(this._adapter);return ue.updateSelection(this.selection,this),ue}}return qe.\u0275fac=function(ue){return new(ue||qe)(s.LFG(N._A))},qe.\u0275prov=s.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const Ee={provide:vt,deps:[[new s.FiY,new s.tp0,vt],N._A],useFactory:function(qe,_t){return qe||new Pe(_t)}},J=new s.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let it=(()=>{class qe{constructor(ue,$e,St,Rt,yi){this._changeDetectorRef=ue,this._dateFormats=$e,this._dateAdapter=St,this._dir=Rt,this._rangeStrategy=yi,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new s.vpe,this._userSelection=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(ue){const $e=this._activeDate,St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),this._hasSameMonthAndYear($e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof We?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnChanges(ue){const $e=ue.comparisonStart||ue.comparisonEnd;$e&&!$e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(ue){const $e=ue.value,St=this._dateAdapter.getYear(this.activeDate),Rt=this._dateAdapter.getMonth(this.activeDate),yi=this._dateAdapter.createDate(St,Rt,$e);let Ri,Ii;this._selected instanceof We?(Ri=this._getDateInCurrentMonth(this._selected.start),Ii=this._getDateInCurrentMonth(this._selected.end)):Ri=Ii=this._getDateInCurrentMonth(this._selected),(Ri!==$e||Ii!==$e)&&this.selectedChange.emit(yi),this._userSelection.emit({value:yi,event:ue.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(ue){const $e=this._activeDate,St=this._isRtl();switch(ue.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case E.Ku:this.activeDate=ue.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case E.VM:this.activeDate=ue.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case E.K5:case E.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&ue.preventDefault());case E.hY:return void(null!=this._previewEnd&&!(0,E.Vb)(ue)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:ue}),ue.preventDefault(),ue.stopPropagation()));default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===E.L_||ue.keyCode===E.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let ue=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(ue)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(ue){this._matCalendarBody._focusActiveCell(ue)}_previewChanged({event:ue,value:$e}){if(this._rangeStrategy){const Rt=this._rangeStrategy.createPreview($e?$e.rawValue:null,this.selected,ue);this._previewStart=this._getCellCompareValue(Rt.start),this._previewEnd=this._getCellCompareValue(Rt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const ue=this._dateAdapter.getFirstDayOfWeek(),$e=this._dateAdapter.getDayOfWeekNames("narrow");let Rt=this._dateAdapter.getDayOfWeekNames("long").map((yi,Ri)=>({long:yi,narrow:$e[Ri]}));this._weekdays=Rt.slice(ue).concat(Rt.slice(0,ue))}_createWeekCells(){const ue=this._dateAdapter.getNumDaysInMonth(this.activeDate),$e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let St=0,Rt=this._firstWeekOffset;St<ue;St++,Rt++){7==Rt&&(this._weeks.push([]),Rt=0);const yi=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),St+1),Ri=this._shouldEnableDate(yi),Ii=this._dateAdapter.format(yi,this._dateFormats.display.dateA11yLabel),Ki=this.dateClass?this.dateClass(yi,"month"):void 0;this._weeks[this._weeks.length-1].push(new Be(St+1,$e[St],Ii,Ri,Ki,this._getCellCompareValue(yi),yi))}}_shouldEnableDate(ue){return!!ue&&(!this.minDate||this._dateAdapter.compareDate(ue,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(ue,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(ue))}_getDateInCurrentMonth(ue){return ue&&this._hasSameMonthAndYear(ue,this.activeDate)?this._dateAdapter.getDate(ue):null}_hasSameMonthAndYear(ue,$e){return!(!ue||!$e||this._dateAdapter.getMonth(ue)!=this._dateAdapter.getMonth($e)||this._dateAdapter.getYear(ue)!=this._dateAdapter.getYear($e))}_getCellCompareValue(ue){if(ue){const $e=this._dateAdapter.getYear(ue),St=this._dateAdapter.getMonth(ue),Rt=this._dateAdapter.getDate(ue);return new Date($e,St,Rt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(ue){ue instanceof We?(this._rangeStart=this._getCellCompareValue(ue.start),this._rangeEnd=this._getCellCompareValue(ue.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(ue),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(ue){return!this.dateFilter||this.dateFilter(ue)}}return qe.\u0275fac=function(ue){return new(ue||qe)(s.Y36(s.sBO),s.Y36(N.sG,8),s.Y36(N._A,8),s.Y36(W.Is,8),s.Y36(J,8))},qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-month-view"]],viewQuery:function(ue,$e){if(1&ue&&s.Gf(Oe,5),2&ue){let St;s.iGM(St=s.CRH())&&($e._matCalendarBody=St.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[s.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(ue,$e){1&ue&&(s.TgZ(0,"table",0),s.TgZ(1,"thead",1),s.TgZ(2,"tr"),s.YNc(3,a,3,3,"th",2),s.qZA(),s.TgZ(4,"tr"),s._UZ(5,"th",3),s.qZA(),s.qZA(),s.TgZ(6,"tbody",4),s.NdJ("selectedValueChange",function(Rt){return $e._dateSelected(Rt)})("previewChange",function(Rt){return $e._previewChanged(Rt)})("keyup",function(Rt){return $e._handleCalendarBodyKeyup(Rt)})("keydown",function(Rt){return $e._handleCalendarBodyKeydown(Rt)}),s.qZA(),s.qZA()),2&ue&&(s.xp6(3),s.Q6J("ngForOf",$e._weekdays),s.xp6(3),s.Q6J("label",$e._monthLabel)("rows",$e._weeks)("todayValue",$e._todayDate)("startValue",$e._rangeStart)("endValue",$e._rangeEnd)("comparisonStart",$e._comparisonRangeStart)("comparisonEnd",$e._comparisonRangeEnd)("previewStart",$e._previewStart)("previewEnd",$e._previewEnd)("isRange",$e._isRange)("labelMinRequiredCells",3)("activeCell",$e._dateAdapter.getDate($e.activeDate)-1))},directives:[C.sg,Oe],encapsulation:2,changeDetection:0}),qe})(),st=(()=>{class qe{constructor(ue,$e,St){this._changeDetectorRef=ue,this._dateAdapter=$e,this._dir=St,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(ue){let $e=this._activeDate;const St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),wt(this._dateAdapter,$e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof We?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setSelectedYear(ue)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const $e=this._dateAdapter.getYear(this._activeDate)-Bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let St=0,Rt=[];St<24;St++)Rt.push($e+St),4==Rt.length&&(this._years.push(Rt.map(yi=>this._createCellForYear(yi))),Rt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(ue){const $e=ue.value;this.yearSelected.emit(this._dateAdapter.createDate($e,0,1));let St=this._dateAdapter.getMonth(this.activeDate),Rt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate($e,St,1));this.selectedChange.emit(this._dateAdapter.createDate($e,St,Math.min(this._dateAdapter.getDate(this.activeDate),Rt)))}_handleCalendarBodyKeydown(ue){const $e=this._activeDate,St=this._isRtl();switch(ue.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?-240:-24);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?240:24);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===E.L_||ue.keyCode===E.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_getActiveCell(){return Bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(ue){const $e=this._dateAdapter.createDate(ue,0,1),St=this._dateAdapter.getYearName($e),Rt=this.dateClass?this.dateClass($e,"multi-year"):void 0;return new Be(ue,St,St,this._shouldEnableYear(ue),Rt)}_shouldEnableYear(ue){if(null==ue||this.maxDate&&ue>this._dateAdapter.getYear(this.maxDate)||this.minDate&&ue<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let St=this._dateAdapter.createDate(ue,0,1);this._dateAdapter.getYear(St)==ue;St=this._dateAdapter.addCalendarDays(St,1))if(this.dateFilter(St))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(ue){if(this._selectedYear=null,ue instanceof We){const $e=ue.start||ue.end;$e&&(this._selectedYear=this._dateAdapter.getYear($e))}else ue&&(this._selectedYear=this._dateAdapter.getYear(ue))}}return qe.\u0275fac=function(ue){return new(ue||qe)(s.Y36(s.sBO),s.Y36(N._A,8),s.Y36(W.Is,8))},qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-multi-year-view"]],viewQuery:function(ue,$e){if(1&ue&&s.Gf(Oe,5),2&ue){let St;s.iGM(St=s.CRH())&&($e._matCalendarBody=St.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","keyup","keydown"]],template:function(ue,$e){1&ue&&(s.TgZ(0,"table",0),s.TgZ(1,"thead",1),s.TgZ(2,"tr"),s._UZ(3,"th",2),s.qZA(),s.qZA(),s.TgZ(4,"tbody",3),s.NdJ("selectedValueChange",function(Rt){return $e._yearSelected(Rt)})("keyup",function(Rt){return $e._handleCalendarBodyKeyup(Rt)})("keydown",function(Rt){return $e._handleCalendarBodyKeydown(Rt)}),s.qZA(),s.qZA()),2&ue&&(s.xp6(4),s.Q6J("rows",$e._years)("todayValue",$e._todayYear)("startValue",$e._selectedYear)("endValue",$e._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",$e._getActiveCell()))},directives:[Oe],encapsulation:2,changeDetection:0}),qe})();function wt(qe,_t,ue,$e,St){const Rt=qe.getYear(_t),yi=qe.getYear(ue),Ri=Pt(qe,$e,St);return Math.floor((Rt-Ri)/24)===Math.floor((yi-Ri)/24)}function Bt(qe,_t,ue,$e){return function(qe,_t){return(qe%24+24)%24}(qe.getYear(_t)-Pt(qe,ue,$e))}function Pt(qe,_t,ue){let $e=0;return ue?$e=qe.getYear(ue)-24+1:_t&&($e=qe.getYear(_t)),$e}let Oi=(()=>{class qe{constructor(ue,$e,St,Rt){this._changeDetectorRef=ue,this._dateFormats=$e,this._dateAdapter=St,this._dir=Rt,this._rerenderSubscription=L.w0.EMPTY,this.selectedChange=new s.vpe,this.monthSelected=new s.vpe,this.activeDateChange=new s.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(ue){let $e=this._activeDate;const St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(St,this.minDate,this.maxDate),this._dateAdapter.getYear($e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof We?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue)),this._setSelectedMonth(ue)}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(ue){const $e=ue.value,St=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$e,1);this.monthSelected.emit(St);const Rt=this._dateAdapter.getNumDaysInMonth(St);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$e,Math.min(this._dateAdapter.getDate(this.activeDate),Rt)))}_handleCalendarBodyKeydown(ue){const $e=this._activeDate,St=this._isRtl();switch(ue.keyCode){case E.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,St?1:-1);break;case E.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,St?-1:1);break;case E.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case E.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case E.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case E.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case E.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?-10:-1);break;case E.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,ue.altKey?10:1);break;case E.K5:case E.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),ue.preventDefault()}_handleCalendarBodyKeyup(ue){(ue.keyCode===E.L_||ue.keyCode===E.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:ue}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let ue=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map($e=>$e.map(St=>this._createCellForMonth(St,ue[St]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(ue){return ue&&this._dateAdapter.getYear(ue)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(ue):null}_createCellForMonth(ue,$e){const St=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ue,1),Rt=this._dateAdapter.format(St,this._dateFormats.display.monthYearA11yLabel),yi=this.dateClass?this.dateClass(St,"year"):void 0;return new Be(ue,$e.toLocaleUpperCase(),Rt,this._shouldEnableMonth(ue),yi)}_shouldEnableMonth(ue){const $e=this._dateAdapter.getYear(this.activeDate);if(null==ue||this._isYearAndMonthAfterMaxDate($e,ue)||this._isYearAndMonthBeforeMinDate($e,ue))return!1;if(!this.dateFilter)return!0;for(let Rt=this._dateAdapter.createDate($e,ue,1);this._dateAdapter.getMonth(Rt)==ue;Rt=this._dateAdapter.addCalendarDays(Rt,1))if(this.dateFilter(Rt))return!0;return!1}_isYearAndMonthAfterMaxDate(ue,$e){if(this.maxDate){const St=this._dateAdapter.getYear(this.maxDate),Rt=this._dateAdapter.getMonth(this.maxDate);return ue>St||ue===St&&$e>Rt}return!1}_isYearAndMonthBeforeMinDate(ue,$e){if(this.minDate){const St=this._dateAdapter.getYear(this.minDate),Rt=this._dateAdapter.getMonth(this.minDate);return ue<St||ue===St&&$e<Rt}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(ue){this._selectedMonth=ue instanceof We?this._getMonthInCurrentYear(ue.start)||this._getMonthInCurrentYear(ue.end):this._getMonthInCurrentYear(ue)}}return qe.\u0275fac=function(ue){return new(ue||qe)(s.Y36(s.sBO),s.Y36(N.sG,8),s.Y36(N._A,8),s.Y36(W.Is,8))},qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-year-view"]],viewQuery:function(ue,$e){if(1&ue&&s.Gf(Oe,5),2&ue){let St;s.iGM(St=s.CRH())&&($e._matCalendarBody=St.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","keyup","keydown"]],template:function(ue,$e){1&ue&&(s.TgZ(0,"table",0),s.TgZ(1,"thead",1),s.TgZ(2,"tr"),s._UZ(3,"th",2),s.qZA(),s.qZA(),s.TgZ(4,"tbody",3),s.NdJ("selectedValueChange",function(Rt){return $e._monthSelected(Rt)})("keyup",function(Rt){return $e._handleCalendarBodyKeyup(Rt)})("keydown",function(Rt){return $e._handleCalendarBodyKeydown(Rt)}),s.qZA(),s.qZA()),2&ue&&(s.xp6(4),s.Q6J("label",$e._yearLabel)("rows",$e._months)("todayValue",$e._todayMonth)("startValue",$e._selectedMonth)("endValue",$e._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",$e._dateAdapter.getMonth($e.activeDate)))},directives:[Oe],encapsulation:2,changeDetection:0}),qe})(),jt=(()=>{class qe{constructor(){this.changes=new o.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(ue,$e){return`${ue} \u2013 ${$e}`}}return qe.\u0275fac=function(ue){return new(ue||qe)},qe.\u0275prov=s.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),ti=0,Pi=(()=>{class qe{constructor(ue,$e,St,Rt,yi){this._intl=ue,this.calendar=$e,this._dateAdapter=St,this._dateFormats=Rt,this._buttonDescriptionId="mat-calendar-button-"+ti++,this.calendar.stateChanges.subscribe(()=>yi.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const $e=this._dateAdapter.getYear(this.calendar.activeDate)-Bt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),St=$e+24-1,Rt=this._dateAdapter.getYearName(this._dateAdapter.createDate($e,0,1)),yi=this._dateAdapter.getYearName(this._dateAdapter.createDate(St,0,1));return this._intl.formatYearRange(Rt,yi)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(ue,$e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(ue)==this._dateAdapter.getYear($e)&&this._dateAdapter.getMonth(ue)==this._dateAdapter.getMonth($e):"year"==this.calendar.currentView?this._dateAdapter.getYear(ue)==this._dateAdapter.getYear($e):wt(this._dateAdapter,ue,$e,this.calendar.minDate,this.calendar.maxDate)}}return qe.\u0275fac=function(ue){return new(ue||qe)(s.Y36(jt),s.Y36((0,s.Gpc)(()=>si)),s.Y36(N._A,8),s.Y36(N.sG,8),s.Y36(s.sBO))},qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:p,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(ue,$e){1&ue&&(s.F$t(),s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"button",2),s.NdJ("click",function(){return $e.currentPeriodClicked()}),s.TgZ(3,"span"),s._uU(4),s.qZA(),s.O4$(),s.TgZ(5,"svg",3),s._UZ(6,"polygon",4),s.qZA(),s.qZA(),s.kcU(),s._UZ(7,"div",5),s.Hsn(8),s.TgZ(9,"button",6),s.NdJ("click",function(){return $e.previousClicked()}),s.qZA(),s.TgZ(10,"button",7),s.NdJ("click",function(){return $e.nextClicked()}),s.qZA(),s.qZA(),s.qZA()),2&ue&&(s.xp6(2),s.uIk("aria-label",$e.periodButtonLabel)("aria-describedby",$e._buttonDescriptionId),s.xp6(1),s.uIk("id",$e._buttonDescriptionId),s.xp6(1),s.Oqu($e.periodButtonText),s.xp6(1),s.ekj("mat-calendar-invert","month"!==$e.calendar.currentView),s.xp6(4),s.Q6J("disabled",!$e.previousEnabled()),s.uIk("aria-label",$e.prevButtonLabel),s.xp6(1),s.Q6J("disabled",!$e.nextEnabled()),s.uIk("aria-label",$e.nextButtonLabel))},directives:[M.lW,e.Qr],encapsulation:2,changeDetection:0}),qe})(),si=(()=>{class qe{constructor(ue,$e,St,Rt){this._dateAdapter=$e,this._dateFormats=St,this._changeDetectorRef=Rt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new s.vpe,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this._userSelection=new s.vpe,this.stateChanges=new o.x,this._intlChanges=ue.changes.subscribe(()=>{Rt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(ue){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get selected(){return this._selected}set selected(ue){this._selected=ue instanceof We?ue:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get minDate(){return this._minDate}set minDate(ue){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get maxDate(){return this._maxDate}set maxDate(ue){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get activeDate(){return this._clampedActiveDate}set activeDate(ue){this._clampedActiveDate=this._dateAdapter.clampDate(ue,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(ue){const $e=this._currentView!==ue?ue:null;this._currentView=ue,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),$e&&this.viewChanged.emit($e)}ngAfterContentInit(){this._calendarHeaderPortal=new v.C5(this.headerComponent||Pi),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(ue){const $e=ue.minDate||ue.maxDate||ue.dateFilter;if($e&&!$e.firstChange){const St=this._getCurrentViewComponent();St&&(this._changeDetectorRef.detectChanges(),St._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(ue){const $e=ue.value;(this.selected instanceof We||$e&&!this._dateAdapter.sameDate($e,this.selected))&&this.selectedChange.emit($e),this._userSelection.emit(ue)}_yearSelectedInMultiYearView(ue){this.yearSelected.emit(ue)}_monthSelectedInYearView(ue){this.monthSelected.emit(ue)}_goToDateInView(ue,$e){this.activeDate=ue,this.currentView=$e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return qe.\u0275fac=function(ue){return new(ue||qe)(s.Y36(jt),s.Y36(N._A,8),s.Y36(N.sG,8),s.Y36(s.sBO))},qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-calendar"]],viewQuery:function(ue,$e){if(1&ue&&(s.Gf(it,5),s.Gf(Oi,5),s.Gf(st,5)),2&ue){let St;s.iGM(St=s.CRH())&&($e.monthView=St.first),s.iGM(St=s.CRH())&&($e.yearView=St.first),s.iGM(St=s.CRH())&&($e.multiYearView=St.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[s._Bn([Ee]),s.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(ue,$e){1&ue&&(s.YNc(0,u,0,0,"ng-template",0),s.TgZ(1,"div",1),s.YNc(2,_,1,8,"mat-month-view",2),s.YNc(3,D,1,6,"mat-year-view",3),s.YNc(4,I,1,6,"mat-multi-year-view",4),s.qZA()),2&ue&&(s.Q6J("cdkPortalOutlet",$e._calendarHeaderPortal),s.xp6(1),s.Q6J("ngSwitch",$e.currentView),s.xp6(1),s.Q6J("ngSwitchCase","month"),s.xp6(1),s.Q6J("ngSwitchCase","year"),s.xp6(1),s.Q6J("ngSwitchCase","multi-year"))},directives:[v.Pl,e.kH,C.RF,C.n9,it,Oi,st],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-abbr{text-decoration:none}\n'],encapsulation:2,changeDetection:0}),qe})();const di={transformPanel:(0,ee.X$)("transformPanel",[(0,ee.eR)("void => enter-dropdown",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ee.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ee.eR)("void => enter-dialog",(0,ee.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(0.7)"}),(0,ee.oB)({transform:"none",opacity:1})]))),(0,ee.eR)("* => void",(0,ee.jt)("100ms linear",(0,ee.oB)({opacity:0})))]),fadeInCalendar:(0,ee.X$)("fadeInCalendar",[(0,ee.SB)("void",(0,ee.oB)({opacity:0})),(0,ee.SB)("enter",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",(0,ee.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ze=0;const Te=new s.OlP("mat-datepicker-scroll-strategy"),ge={provide:Te,deps:[t.aV],useFactory:function(qe){return()=>qe.scrollStrategies.reposition()}},Ae=(0,N.pj)(class{constructor(qe){this._elementRef=qe}});let et=(()=>{class qe extends Ae{constructor(ue,$e,St,Rt,yi,Ri){super(ue),this._changeDetectorRef=$e,this._globalModel=St,this._dateAdapter=Rt,this._rangeSelectionStrategy=yi,this._subscriptions=new L.w0,this._animationDone=new o.x,this._actionsPortal=null,this._closeButtonText=Ri.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(ue){const $e=this._model.selection,St=ue.value,Rt=$e instanceof We;if(Rt&&this._rangeSelectionStrategy){const yi=this._rangeSelectionStrategy.selectionFinished(St,$e,ue.event);this._model.updateSelection(yi,this)}else St&&(Rt||!this._dateAdapter.sameDate(St,$e))&&this._model.add(St);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return qe.\u0275fac=function(ue){return new(ue||qe)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(vt),s.Y36(N._A),s.Y36(J,8),s.Y36(jt))},qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-datepicker-content"]],viewQuery:function(ue,$e){if(1&ue&&s.Gf(si,5),2&ue){let St;s.iGM(St=s.CRH())&&($e._calendar=St.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(ue,$e){1&ue&&s.WFA("@transformPanel.done",function(){return $e._animationDone.next()}),2&ue&&(s.d8E("@transformPanel",$e._animationState),s.ekj("mat-datepicker-content-touch",$e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[s.qOj],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(ue,$e){1&ue&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-calendar",1),s.NdJ("yearSelected",function(Rt){return $e.datepicker._selectYear(Rt)})("monthSelected",function(Rt){return $e.datepicker._selectMonth(Rt)})("viewChanged",function(Rt){return $e.datepicker._viewChanged(Rt)})("_userSelection",function(Rt){return $e._handleUserSelection(Rt)}),s.qZA(),s.YNc(2,x,0,0,"ng-template",2),s.TgZ(3,"button",3),s.NdJ("focus",function(){return $e._closeButtonFocused=!0})("blur",function(){return $e._closeButtonFocused=!1})("click",function(){return $e.datepicker.close()}),s._uU(4),s.qZA(),s.qZA()),2&ue&&(s.ekj("mat-datepicker-content-container-with-actions",$e._actionsPortal),s.xp6(1),s.Q6J("id",$e.datepicker.id)("ngClass",$e.datepicker.panelClass)("startAt",$e.datepicker.startAt)("startView",$e.datepicker.startView)("minDate",$e.datepicker._getMinDate())("maxDate",$e.datepicker._getMaxDate())("dateFilter",$e.datepicker._getDateFilter())("headerComponent",$e.datepicker.calendarHeaderComponent)("selected",$e._getSelected())("dateClass",$e.datepicker.dateClass)("comparisonStart",$e.comparisonStart)("comparisonEnd",$e.comparisonEnd)("@fadeInCalendar","enter"),s.xp6(1),s.Q6J("cdkPortalOutlet",$e._actionsPortal),s.xp6(1),s.ekj("cdk-visually-hidden",!$e._closeButtonFocused),s.Q6J("color",$e.color||"primary"),s.xp6(1),s.Oqu($e._closeButtonText))},directives:[e.mK,si,C.mk,v.Pl,M.lW],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[di.transformPanel,di.fadeInCalendar]},changeDetection:0}),qe})(),$t=(()=>{class qe{constructor(ue,$e,St,Rt,yi,Ri,Ii){this._overlay=ue,this._ngZone=$e,this._viewContainerRef=St,this._dateAdapter=yi,this._dir=Ri,this._model=Ii,this._inputStateChanges=L.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new s.vpe,this.monthSelected=new s.vpe,this.viewChanged=new s.vpe(!0),this.openedStream=new s.vpe,this.closedStream=new s.vpe,this._opened=!1,this.id="mat-datepicker-"+ze++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new o.x,this._scrollStrategy=Rt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(ue){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(ue){this._color=ue}get touchUi(){return this._touchUi}set touchUi(ue){this._touchUi=(0,j.Ig)(ue)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(ue){const $e=(0,j.Ig)(ue);$e!==this._disabled&&(this._disabled=$e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(ue){this._restoreFocus=(0,j.Ig)(ue)}get panelClass(){return this._panelClass}set panelClass(ue){this._panelClass=(0,j.du)(ue)}get opened(){return this._opened}set opened(ue){(0,j.Ig)(ue)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(ue){const $e=ue.xPosition||ue.yPosition;if($e&&!$e.firstChange&&this._overlayRef){const St=this._overlayRef.getConfig().positionStrategy;St instanceof t._G&&(this._setConnectedPositions(St),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(ue){this._model.add(ue)}_selectYear(ue){this.yearSelected.emit(ue)}_selectMonth(ue){this.monthSelected.emit(ue)}_viewChanged(ue){this.viewChanged.emit(ue)}registerInput(ue){return this._inputStateChanges.unsubscribe(),this.datepickerInput=ue,this._inputStateChanges=ue.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(ue){this._actionsPortal=ue}removeActions(ue){ue===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,$.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const $e=this._componentRef.instance;$e._startExitAnimation(),$e._animationDone.pipe((0,k.q)(1)).subscribe(()=>this._destroyOverlay())}const ue=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(ue)):ue()}_applyPendingSelection(){var ue,$e;null===($e=null===(ue=this._componentRef)||void 0===ue?void 0:ue.instance)||void 0===$e||$e._applyPendingSelection()}_forwardContentValues(ue){ue.datepicker=this,ue.color=this.color,ue._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const ue=this.touchUi,$e=this.datepickerInput.getOverlayLabelId(),St=new v.C5(et,this._viewContainerRef),Rt=this._overlayRef=this._overlay.create(new t.X_({positionStrategy:ue?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[ue?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:ue?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(ue?"dialog":"popup")})),yi=Rt.overlayElement;yi.setAttribute("role","dialog"),$e&&yi.setAttribute("aria-labelledby",$e),ue&&yi.setAttribute("aria-modal","true"),this._getCloseStream(Rt).subscribe(Ri=>{Ri&&Ri.preventDefault(),this.close()}),this._componentRef=Rt.attach(St),this._forwardContentValues(this._componentRef.instance),ue||this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>Rt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const ue=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(ue)}_setConnectedPositions(ue){const $e="end"===this.xPosition?"end":"start",St="start"===$e?"end":"start",Rt="above"===this.yPosition?"bottom":"top",yi="top"===Rt?"bottom":"top";return ue.withPositions([{originX:$e,originY:yi,overlayX:$e,overlayY:Rt},{originX:$e,originY:Rt,overlayX:$e,overlayY:yi},{originX:St,originY:yi,overlayX:St,overlayY:Rt},{originX:St,originY:Rt,overlayX:St,overlayY:yi}])}_getCloseStream(ue){return(0,O.T)(ue.backdropClick(),ue.detachments(),ue.keydownEvents().pipe((0,V.h)($e=>$e.keyCode===E.hY&&!(0,E.Vb)($e)||this.datepickerInput&&(0,E.Vb)($e,"altKey")&&$e.keyCode===E.LH)))}}return qe.\u0275fac=function(ue){return new(ue||qe)(s.Y36(t.aV),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(Te),s.Y36(N._A,8),s.Y36(W.Is,8),s.Y36(vt))},qe.\u0275dir=s.lG2({type:qe,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[s.TTD]}),qe})(),Nt=(()=>{class qe extends $t{}return qe.\u0275fac=function(){let _t;return function($e){return(_t||(_t=s.n5z(qe)))($e||qe)}}(),qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[s._Bn([Ee,{provide:$t,useExisting:qe}]),s.qOj],decls:0,vars:0,template:function(ue,$e){},encapsulation:2,changeDetection:0}),qe})();class Xt{constructor(_t,ue){this.target=_t,this.targetElement=ue,this.value=this.target.value}}let lt=(()=>{class qe{constructor(ue,$e,St){this._elementRef=ue,this._dateAdapter=$e,this._dateFormats=St,this.dateChange=new s.vpe,this.dateInput=new s.vpe,this.stateChanges=new o.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=L.w0.EMPTY,this._localeSubscription=L.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Rt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Rt.value));return!yi||this._matchesFilter(yi)?null:{matDatepickerFilter:!0}},this._minValidator=Rt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Rt.value)),Ri=this._getMinDate();return!Ri||!yi||this._dateAdapter.compareDate(Ri,yi)<=0?null:{matDatepickerMin:{min:Ri,actual:yi}}},this._maxValidator=Rt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Rt.value)),Ri=this._getMaxDate();return!Ri||!yi||this._dateAdapter.compareDate(Ri,yi)>=0?null:{matDatepickerMax:{max:Ri,actual:yi}}},this._lastValueValid=!1,this._localeSubscription=$e.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(ue){this._assignValueProgrammatically(ue)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(ue){const $e=(0,j.Ig)(ue),St=this._elementRef.nativeElement;this._disabled!==$e&&(this._disabled=$e,this.stateChanges.next(void 0)),$e&&this._isInitialized&&St.blur&&St.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(ue){this._model=ue,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe($e=>{if(this._shouldHandleChangeEvent($e)){const St=this._getValueFromModel($e.selection);this._lastValueValid=this._isValidValue(St),this._cvaOnChange(St),this._onTouched(),this._formatValue(St),this.dateInput.emit(new Xt(this,this._elementRef.nativeElement)),this.dateChange.emit(new Xt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(ue){(function(qe,_t){const ue=Object.keys(qe);for(let $e of ue){const{previousValue:St,currentValue:Rt}=qe[$e];if(!_t.isDateInstance(St)||!_t.isDateInstance(Rt))return!0;if(!_t.sameDate(St,Rt))return!0}return!1})(ue,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(ue){this._validatorOnChange=ue}validate(ue){return this._validator?this._validator(ue):null}writeValue(ue){this._assignValueProgrammatically(ue)}registerOnChange(ue){this._cvaOnChange=ue}registerOnTouched(ue){this._onTouched=ue}setDisabledState(ue){this.disabled=ue}_onKeydown(ue){ue.altKey&&ue.keyCode===E.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),ue.preventDefault())}_onInput(ue){const $e=this._lastValueValid;let St=this._dateAdapter.parse(ue,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(St),St=this._dateAdapter.getValidDateOrNull(St),this._dateAdapter.sameDate(St,this.value)?(ue&&!this.value&&this._cvaOnChange(St),$e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(St),this._cvaOnChange(St),this.dateInput.emit(new Xt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Xt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(ue){this._elementRef.nativeElement.value=ue?this._dateAdapter.format(ue,this._dateFormats.display.dateInput):""}_assignValue(ue){this._model?(this._assignValueToModel(ue),this._pendingValue=null):this._pendingValue=ue}_isValidValue(ue){return!ue||this._dateAdapter.isValid(ue)}_parentDisabled(){return!1}_assignValueProgrammatically(ue){ue=this._dateAdapter.deserialize(ue),this._lastValueValid=this._isValidValue(ue),ue=this._dateAdapter.getValidDateOrNull(ue),this._assignValue(ue),this._formatValue(ue)}_matchesFilter(ue){const $e=this._getDateFilter();return!$e||$e(ue)}}return qe.\u0275fac=function(ue){return new(ue||qe)(s.Y36(s.SBq),s.Y36(N._A,8),s.Y36(N.sG,8))},qe.\u0275dir=s.lG2({type:qe,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s.TTD]}),qe})();const Fe={provide:me.JU,useExisting:(0,s.Gpc)(()=>ot),multi:!0},rt={provide:me.Cf,useExisting:(0,s.Gpc)(()=>ot),multi:!0};let ot=(()=>{class qe extends lt{constructor(ue,$e,St,Rt){super(ue,$e,St),this._formField=Rt,this._closedSubscription=L.w0.EMPTY,this._validator=me.kI.compose(super._getValidators())}set matDatepicker(ue){ue&&(this._datepicker=ue,this._closedSubscription=ue.closedStream.subscribe(()=>this._onTouched()),this._registerModel(ue.registerInput(this)))}get min(){return this._min}set min(ue){const $e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue));this._dateAdapter.sameDate($e,this._min)||(this._min=$e,this._validatorOnChange())}get max(){return this._max}set max(ue){const $e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ue));this._dateAdapter.sameDate($e,this._max)||(this._max=$e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(ue){const $e=this._matchesFilter(this.value);this._dateFilter=ue,this._matchesFilter(this.value)!==$e&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(ue){return ue}_assignValueToModel(ue){this._model&&this._model.updateSelection(ue,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(ue){return ue.source!==this}}return qe.\u0275fac=function(ue){return new(ue||qe)(s.Y36(s.SBq),s.Y36(N._A,8),s.Y36(N.sG,8),s.Y36(ce.G_,8))},qe.\u0275dir=s.lG2({type:qe,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(ue,$e){1&ue&&s.NdJ("input",function(Rt){return $e._onInput(Rt.target.value)})("change",function(){return $e._onChange()})("blur",function(){return $e._onBlur()})("keydown",function(Rt){return $e._onKeydown(Rt)}),2&ue&&(s.Ikx("disabled",$e.disabled),s.uIk("aria-haspopup",$e._datepicker?"dialog":null)("aria-owns",(null==$e._datepicker?null:$e._datepicker.opened)&&$e._datepicker.id||null)("min",$e.min?$e._dateAdapter.toIso8601($e.min):null)("max",$e.max?$e._dateAdapter.toIso8601($e.max):null)("data-mat-calendar",$e._datepicker?$e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[s._Bn([Fe,rt,{provide:le.Jk,useExisting:qe}]),s.qOj]}),qe})(),At=(()=>{class qe{}return qe.\u0275fac=function(ue){return new(ue||qe)},qe.\u0275dir=s.lG2({type:qe,selectors:[["","matDatepickerToggleIcon",""]]}),qe})(),li=(()=>{class qe{constructor(ue,$e,St){this._intl=ue,this._changeDetectorRef=$e,this._stateChanges=L.w0.EMPTY;const Rt=Number(St);this.tabIndex=Rt||0===Rt?Rt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(ue){this._disabled=(0,j.Ig)(ue)}ngOnChanges(ue){ue.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(ue){this.datepicker&&!this.disabled&&(this.datepicker.open(),ue.stopPropagation())}_watchStateChanges(){const ue=this.datepicker?this.datepicker.stateChanges:(0,A.of)(),$e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,A.of)(),St=this.datepicker?(0,O.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,A.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,O.T)(this._intl.changes,ue,$e,St).subscribe(()=>this._changeDetectorRef.markForCheck())}}return qe.\u0275fac=function(ue){return new(ue||qe)(s.Y36(jt),s.Y36(s.sBO),s.$8M("tabindex"))},qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-datepicker-toggle"]],contentQueries:function(ue,$e,St){if(1&ue&&s.Suo(St,At,5),2&ue){let Rt;s.iGM(Rt=s.CRH())&&($e._customIcon=Rt.first)}},viewQuery:function(ue,$e){if(1&ue&&s.Gf(r,5),2&ue){let St;s.iGM(St=s.CRH())&&($e._button=St.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(ue,$e){1&ue&&s.NdJ("click",function(Rt){return $e._open(Rt)}),2&ue&&(s.uIk("tabindex",null)("data-mat-calendar",$e.datepicker?$e.datepicker.id:null),s.ekj("mat-datepicker-toggle-active",$e.datepicker&&$e.datepicker.opened)("mat-accent",$e.datepicker&&"accent"===$e.datepicker.color)("mat-warn",$e.datepicker&&"warn"===$e.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[s.TTD],ngContentSelectors:P,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(ue,$e){1&ue&&(s.F$t(Z),s.TgZ(0,"button",0,1),s.YNc(2,b,2,0,"svg",2),s.Hsn(3),s.qZA()),2&ue&&(s.Q6J("disabled",$e.disabled)("disableRipple",$e.disableRipple),s.uIk("aria-haspopup",$e.datepicker?"dialog":null)("aria-label",$e.ariaLabel||$e._intl.openCalendarLabel)("tabindex",$e.disabled?-1:$e.tabIndex),s.xp6(2),s.Q6J("ngIf",!$e._customIcon))},directives:[M.lW,C.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),qe})(),ve=(()=>{class qe{}return qe.\u0275fac=function(ue){return new(ue||qe)},qe.\u0275mod=s.oAB({type:qe}),qe.\u0275inj=s.cJS({providers:[jt,ge],imports:[[C.ez,M.ot,t.U8,e.rt,v.eL,N.BQ],c.ZD]}),qe})()},8966:(Ze,K,m)=>{"use strict";m.d(K,{WI:()=>i,Bq:()=>a,uw:()=>x,ZT:()=>Z,Is:()=>Ne,so:()=>pe});var e=m(9776),t=m(7429),v=m(5e3),C=m(508),s=m(226),M=m(7579),c=m(9770),N=m(727),o=m(9646),L=m(9300),O=m(5698),A=m(8675),E=m(925),k=m(9808),w=m(1777),V=m(5664),W=m(1159),j=m(6360);function $(Be,Oe){}class ee{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const me={dialogContainer:(0,w.X$)("dialogContainer",[(0,w.SB)("void, exit",(0,w.oB)({opacity:0,transform:"scale(0.7)"})),(0,w.SB)("enter",(0,w.oB)({transform:"none"})),(0,w.eR)("* => enter",(0,w.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({transform:"none",opacity:1}))),(0,w.eR)("* => void, * => exit",(0,w.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,w.oB)({opacity:0})))])};let le=(()=>{class Be extends t.en{constructor(B,Me,we,ae,We,vt,Pe,Ve){super(),this._elementRef=B,this._focusTrapFactory=Me,this._changeDetectorRef=we,this._config=We,this._interactivityChecker=vt,this._ngZone=Pe,this._focusMonitor=Ve,this._animationStateChanged=new v.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=he=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(he)),this._ariaLabelledBy=We.ariaLabelledBy||null,this._document=ae}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(B){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(B)}attachTemplatePortal(B){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(B)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(B,Me){this._interactivityChecker.isFocusable(B)||(B.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{B.addEventListener("blur",()=>B.removeAttribute("tabindex")),B.addEventListener("mousedown",()=>B.removeAttribute("tabindex"))})),B.focus(Me)}_focusByCssSelector(B,Me){let we=this._elementRef.nativeElement.querySelector(B);we&&this._forceFocus(we,Me)}_trapFocus(){const B=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||B.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Me=>{Me||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const B=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&B&&"function"==typeof B.focus){const Me=(0,E.ht)(),we=this._elementRef.nativeElement;(!Me||Me===this._document.body||Me===we||we.contains(Me))&&(this._focusMonitor?(this._focusMonitor.focusVia(B,this._closeInteractionType),this._closeInteractionType=null):B.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,E.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const B=this._elementRef.nativeElement,Me=(0,E.ht)();return B===Me||B.contains(Me)}}return Be.\u0275fac=function(B){return new(B||Be)(v.Y36(v.SBq),v.Y36(V.qV),v.Y36(v.sBO),v.Y36(k.K0,8),v.Y36(ee),v.Y36(V.ic),v.Y36(v.R0b),v.Y36(V.tE))},Be.\u0275dir=v.lG2({type:Be,viewQuery:function(B,Me){if(1&B&&v.Gf(t.Pl,7),2&B){let we;v.iGM(we=v.CRH())&&(Me._portalOutlet=we.first)}},features:[v.qOj]}),Be})(),te=(()=>{class Be extends le{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:B,totalTime:Me}){"enter"===B?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Me})):"exit"===B&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Me}))}_onAnimationStart({toState:B,totalTime:Me}){"enter"===B?this._animationStateChanged.next({state:"opening",totalTime:Me}):("exit"===B||"void"===B)&&this._animationStateChanged.next({state:"closing",totalTime:Me})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return Be.\u0275fac=function(){let Oe;return function(Me){return(Oe||(Oe=v.n5z(Be)))(Me||Be)}}(),Be.\u0275cmp=v.Xpm({type:Be,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(B,Me){1&B&&v.WFA("@dialogContainer.start",function(ae){return Me._onAnimationStart(ae)})("@dialogContainer.done",function(ae){return Me._onAnimationDone(ae)}),2&B&&(v.Ikx("id",Me._id),v.uIk("role",Me._config.role)("aria-labelledby",Me._config.ariaLabel?null:Me._ariaLabelledBy)("aria-label",Me._config.ariaLabel)("aria-describedby",Me._config.ariaDescribedBy||null),v.d8E("@dialogContainer",Me._state))},features:[v.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(B,Me){1&B&&v.YNc(0,$,0,0,"ng-template",0)},directives:[t.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[me.dialogContainer]}}),Be})(),re=0;class pe{constructor(Oe,B,Me="mat-dialog-"+re++){this._overlayRef=Oe,this._containerInstance=B,this.id=Me,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new M.x,this._afterClosed=new M.x,this._beforeClosed=new M.x,this._state=0,B._id=Me,B._animationStateChanged.pipe((0,L.h)(we=>"opened"===we.state),(0,O.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),B._animationStateChanged.pipe((0,L.h)(we=>"closed"===we.state),(0,O.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Oe.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Oe.keydownEvents().pipe((0,L.h)(we=>we.keyCode===W.hY&&!this.disableClose&&!(0,W.Vb)(we))).subscribe(we=>{we.preventDefault(),y(this,"keyboard")}),Oe.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():y(this,"mouse")})}close(Oe){this._result=Oe,this._containerInstance._animationStateChanged.pipe((0,L.h)(B=>"closing"===B.state),(0,O.q)(1)).subscribe(B=>{this._beforeClosed.next(Oe),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),B.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(Oe){let B=this._getPositionStrategy();return Oe&&(Oe.left||Oe.right)?Oe.left?B.left(Oe.left):B.right(Oe.right):B.centerHorizontally(),Oe&&(Oe.top||Oe.bottom)?Oe.top?B.top(Oe.top):B.bottom(Oe.bottom):B.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Oe="",B=""){return this._overlayRef.updateSize({width:Oe,height:B}),this._overlayRef.updatePosition(),this}addPanelClass(Oe){return this._overlayRef.addPanelClass(Oe),this}removePanelClass(Oe){return this._overlayRef.removePanelClass(Oe),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function y(Be,Oe,B){return void 0!==Be._containerInstance&&(Be._containerInstance._closeInteractionType=Oe),Be.close(B)}const i=new v.OlP("MatDialogData"),a=new v.OlP("mat-dialog-default-options"),p=new v.OlP("mat-dialog-scroll-strategy"),D={provide:p,deps:[e.aV],useFactory:function(Be){return()=>Be.scrollStrategies.block()}};let I=(()=>{class Be{constructor(B,Me,we,ae,We,vt,Pe,Ve,he,Ee){this._overlay=B,this._injector=Me,this._defaultOptions=we,this._parentDialog=ae,this._overlayContainer=We,this._dialogRefConstructor=Pe,this._dialogContainerType=Ve,this._dialogDataToken=he,this._animationMode=Ee,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new M.x,this._afterOpenedAtThisLevel=new M.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,c.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,A.O)(void 0))),this._scrollStrategy=vt}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const B=this._parentDialog;return B?B._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(B,Me){if(Me=function(Be,Oe){return Object.assign(Object.assign({},Oe),Be)}(Me,this._defaultOptions||new ee),Me.id&&this.getDialogById(Me.id),this._dialogAnimatingOpen)return this._lastDialogRef;const we=this._createOverlay(Me),ae=this._attachDialogContainer(we,Me);if("NoopAnimations"!==this._animationMode){const vt=ae._animationStateChanged.subscribe(Pe=>{"opening"===Pe.state&&(this._dialogAnimatingOpen=!0),"opened"===Pe.state&&(this._dialogAnimatingOpen=!1,vt.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new N.w0),this._animationStateSubscriptions.add(vt)}const We=this._attachDialogContent(B,ae,we,Me);return this._lastDialogRef=We,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(We),We.afterClosed().subscribe(()=>this._removeOpenDialog(We)),this.afterOpened.next(We),ae._initializeWithAttachedContent(),We}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(B){return this.openDialogs.find(Me=>Me.id===B)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(B){const Me=this._getOverlayConfig(B);return this._overlay.create(Me)}_getOverlayConfig(B){const Me=new e.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:B.scrollStrategy||this._scrollStrategy(),panelClass:B.panelClass,hasBackdrop:B.hasBackdrop,direction:B.direction,minWidth:B.minWidth,minHeight:B.minHeight,maxWidth:B.maxWidth,maxHeight:B.maxHeight,disposeOnNavigation:B.closeOnNavigation});return B.backdropClass&&(Me.backdropClass=B.backdropClass),Me}_attachDialogContainer(B,Me){const ae=v.zs3.create({parent:Me&&Me.viewContainerRef&&Me.viewContainerRef.injector||this._injector,providers:[{provide:ee,useValue:Me}]}),We=new t.C5(this._dialogContainerType,Me.viewContainerRef,ae,Me.componentFactoryResolver);return B.attach(We).instance}_attachDialogContent(B,Me,we,ae){const We=new this._dialogRefConstructor(we,Me,ae.id);if(B instanceof v.Rgc)Me.attachTemplatePortal(new t.UE(B,null,{$implicit:ae.data,dialogRef:We}));else{const vt=this._createInjector(ae,We,Me),Pe=Me.attachComponentPortal(new t.C5(B,ae.viewContainerRef,vt));We.componentInstance=Pe.instance}return We.updateSize(ae.width,ae.height).updatePosition(ae.position),We}_createInjector(B,Me,we){const ae=B&&B.viewContainerRef&&B.viewContainerRef.injector,We=[{provide:this._dialogContainerType,useValue:we},{provide:this._dialogDataToken,useValue:B.data},{provide:this._dialogRefConstructor,useValue:Me}];return B.direction&&(!ae||!ae.get(s.Is,null,v.XFs.Optional))&&We.push({provide:s.Is,useValue:{value:B.direction,change:(0,o.of)()}}),v.zs3.create({parent:ae||this._injector,providers:We})}_removeOpenDialog(B){const Me=this.openDialogs.indexOf(B);Me>-1&&(this.openDialogs.splice(Me,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((we,ae)=>{we?ae.setAttribute("aria-hidden",we):ae.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const B=this._overlayContainer.getContainerElement();if(B.parentElement){const Me=B.parentElement.children;for(let we=Me.length-1;we>-1;we--){let ae=Me[we];ae!==B&&"SCRIPT"!==ae.nodeName&&"STYLE"!==ae.nodeName&&!ae.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(ae,ae.getAttribute("aria-hidden")),ae.setAttribute("aria-hidden","true"))}}}_closeDialogs(B){let Me=B.length;for(;Me--;)B[Me].close()}}return Be.\u0275fac=function(B){v.$Z()},Be.\u0275dir=v.lG2({type:Be}),Be})(),x=(()=>{class Be extends I{constructor(B,Me,we,ae,We,vt,Pe,Ve){super(B,Me,ae,vt,Pe,We,pe,te,i,Ve)}}return Be.\u0275fac=function(B){return new(B||Be)(v.LFG(e.aV),v.LFG(v.zs3),v.LFG(k.Ye,8),v.LFG(a,8),v.LFG(p),v.LFG(Be,12),v.LFG(e.Xj),v.LFG(j.Qb,8))},Be.\u0275prov=v.Yz7({token:Be,factory:Be.\u0275fac}),Be})(),Z=(()=>{class Be{constructor(B,Me,we){this.dialogRef=B,this._elementRef=Me,this._dialog=we,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function(Be,Oe){let B=Be.nativeElement.parentElement;for(;B&&!B.classList.contains("mat-dialog-container");)B=B.parentElement;return B?Oe.find(Me=>Me.id===B.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(B){const Me=B._matDialogClose||B._matDialogCloseResult;Me&&(this.dialogResult=Me.currentValue)}_onButtonClick(B){y(this.dialogRef,0===B.screenX&&0===B.screenY?"keyboard":"mouse",this.dialogResult)}}return Be.\u0275fac=function(B){return new(B||Be)(v.Y36(pe,8),v.Y36(v.SBq),v.Y36(x))},Be.\u0275dir=v.lG2({type:Be,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(B,Me){1&B&&v.NdJ("click",function(ae){return Me._onButtonClick(ae)}),2&B&&v.uIk("aria-label",Me.ariaLabel||null)("type",Me.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[v.TTD]}),Be})(),Ne=(()=>{class Be{}return Be.\u0275fac=function(B){return new(B||Be)},Be.\u0275mod=v.oAB({type:Be}),Be.\u0275inj=v.cJS({providers:[x,D],imports:[[e.U8,t.eL,C.BQ],C.BQ]}),Be})()},4834:(Ze,K,m)=>{"use strict";m.d(K,{d:()=>C,t:()=>s});var e=m(5e3),t=m(3191),v=m(508);let C=(()=>{class M{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(N){this._vertical=(0,t.Ig)(N)}get inset(){return this._inset}set inset(N){this._inset=(0,t.Ig)(N)}}return M.\u0275fac=function(N){return new(N||M)},M.\u0275cmp=e.Xpm({type:M,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(N,o){2&N&&(e.uIk("aria-orientation",o.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(N,o){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),M})(),s=(()=>{class M{}return M.\u0275fac=function(N){return new(N||M)},M.\u0275mod=e.oAB({type:M}),M.\u0275inj=e.cJS({imports:[[v.BQ],v.BQ]}),M})()},1125:(Ze,K,m)=>{"use strict";m.d(K,{pp:()=>Oe,To:()=>B,ib:()=>Z,u4:()=>Ne,yz:()=>xe,yK:()=>Be});var e=m(5e3),t=m(3191),v=m(7579),C=m(727),s=m(449);let M=0;const c=new e.OlP("CdkAccordion");let N=(()=>{class Me{constructor(){this._stateChanges=new v.x,this._openCloseAllActions=new v.x,this.id="cdk-accordion-"+M++,this._multi=!1}get multi(){return this._multi}set multi(ae){this._multi=(0,t.Ig)(ae)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(ae){this._stateChanges.next(ae)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Me.\u0275fac=function(ae){return new(ae||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:c,useExisting:Me}]),e.TTD]}),Me})(),o=0,L=(()=>{class Me{constructor(ae,We,vt){this.accordion=ae,this._changeDetectorRef=We,this._expansionDispatcher=vt,this._openCloseAllSubscription=C.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+o++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=vt.listen((Pe,Ve)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ve&&this.id!==Pe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(ae){ae=(0,t.Ig)(ae),this._expanded!==ae&&(this._expanded=ae,this.expandedChange.emit(ae),ae?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ae){this._disabled=(0,t.Ig)(ae)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(ae=>{this.disabled||(this.expanded=ae)})}}return Me.\u0275fac=function(ae){return new(ae||Me)(e.Y36(c,12),e.Y36(e.sBO),e.Y36(s.A8))},Me.\u0275dir=e.lG2({type:Me,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:c,useValue:void 0}])]}),Me})(),O=(()=>{class Me{}return Me.\u0275fac=function(ae){return new(ae||Me)},Me.\u0275mod=e.oAB({type:Me}),Me.\u0275inj=e.cJS({}),Me})();var A=m(7429),E=m(9808),k=m(508),w=m(5664),V=m(1884),W=m(8675),j=m(9300),$=m(5698),ee=m(1159),me=m(6360),ce=m(515),le=m(6451),te=m(1777);const re=["body"];function pe(Me,we){}const y=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],i=["mat-expansion-panel-header","*","mat-action-row"];function a(Me,we){if(1&Me&&e._UZ(0,"span",2),2&Me){const ae=e.oxw();e.Q6J("@indicatorRotate",ae._getExpandedState())}}const p=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],u=["mat-panel-title","mat-panel-description","*"],_=new e.OlP("MAT_ACCORDION"),D="225ms cubic-bezier(0.4,0.0,0.2,1)",I={indicatorRotate:(0,te.X$)("indicatorRotate",[(0,te.SB)("collapsed, void",(0,te.oB)({transform:"rotate(0deg)"})),(0,te.SB)("expanded",(0,te.oB)({transform:"rotate(180deg)"})),(0,te.eR)("expanded <=> collapsed, void => collapsed",(0,te.jt)(D))]),bodyExpansion:(0,te.X$)("bodyExpansion",[(0,te.SB)("collapsed, void",(0,te.oB)({height:"0px",visibility:"hidden"})),(0,te.SB)("expanded",(0,te.oB)({height:"*",visibility:"visible"})),(0,te.eR)("expanded <=> collapsed, void => collapsed",(0,te.jt)(D))])};let x=(()=>{class Me{constructor(ae){this._template=ae}}return Me.\u0275fac=function(ae){return new(ae||Me)(e.Y36(e.Rgc))},Me.\u0275dir=e.lG2({type:Me,selectors:[["ng-template","matExpansionPanelContent",""]]}),Me})(),r=0;const b=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Z=(()=>{class Me extends L{constructor(ae,We,vt,Pe,Ve,he,Ee){super(ae,We,vt),this._viewContainerRef=Pe,this._animationMode=he,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new v.x,this._headerId="mat-expansion-panel-header-"+r++,this._bodyAnimationDone=new v.x,this.accordion=ae,this._document=Ve,this._bodyAnimationDone.pipe((0,V.x)((ke,q)=>ke.fromState===q.fromState&&ke.toState===q.toState)).subscribe(ke=>{"void"!==ke.fromState&&("expanded"===ke.toState?this.afterExpand.emit():"collapsed"===ke.toState&&this.afterCollapse.emit())}),Ee&&(this.hideToggle=Ee.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(ae){this._hideToggle=(0,t.Ig)(ae)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(ae){this._togglePosition=ae}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,W.O)(null),(0,j.h)(()=>this.expanded&&!this._portal),(0,$.q)(1)).subscribe(()=>{this._portal=new A.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(ae){this._inputChanges.next(ae)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const ae=this._document.activeElement,We=this._body.nativeElement;return ae===We||We.contains(ae)}return!1}}return Me.\u0275fac=function(ae){return new(ae||Me)(e.Y36(_,12),e.Y36(e.sBO),e.Y36(s.A8),e.Y36(e.s_b),e.Y36(E.K0),e.Y36(me.Qb,8),e.Y36(b,8))},Me.\u0275cmp=e.Xpm({type:Me,selectors:[["mat-expansion-panel"]],contentQueries:function(ae,We,vt){if(1&ae&&e.Suo(vt,x,5),2&ae){let Pe;e.iGM(Pe=e.CRH())&&(We._lazyContent=Pe.first)}},viewQuery:function(ae,We){if(1&ae&&e.Gf(re,5),2&ae){let vt;e.iGM(vt=e.CRH())&&(We._body=vt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(ae,We){2&ae&&e.ekj("mat-expanded",We.expanded)("_mat-animation-noopable","NoopAnimations"===We._animationMode)("mat-expansion-panel-spacing",We._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:_,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:i,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(ae,We){1&ae&&(e.F$t(y),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Pe){return We._bodyAnimationDone.next(Pe)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,pe,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&ae&&(e.xp6(1),e.Q6J("@bodyExpansion",We._getExpandedState())("id",We.id),e.uIk("aria-labelledby",We._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",We._portal))},directives:[A.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[I.bodyExpansion]},changeDetection:0}),Me})();class U{}const ye=(0,k.sb)(U);let xe=(()=>{class Me extends ye{constructor(ae,We,vt,Pe,Ve,he,Ee){super(),this.panel=ae,this._element=We,this._focusMonitor=vt,this._changeDetectorRef=Pe,this._animationMode=he,this._parentChangeSubscription=C.w0.EMPTY;const ke=ae.accordion?ae.accordion._stateChanges.pipe((0,j.h)(q=>!(!q.hideToggle&&!q.togglePosition))):ce.E;this.tabIndex=parseInt(Ee||"")||0,this._parentChangeSubscription=(0,le.T)(ae.opened,ae.closed,ke,ae._inputChanges.pipe((0,j.h)(q=>!!(q.hideToggle||q.disabled||q.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),ae.closed.pipe((0,j.h)(()=>ae._containsFocus())).subscribe(()=>vt.focusVia(We,"program")),Ve&&(this.expandedHeight=Ve.expandedHeight,this.collapsedHeight=Ve.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const ae=this._isExpanded();return ae&&this.expandedHeight?this.expandedHeight:!ae&&this.collapsedHeight?this.collapsedHeight:null}_keydown(ae){switch(ae.keyCode){case ee.L_:case ee.K5:(0,ee.Vb)(ae)||(ae.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(ae))}}focus(ae,We){ae?this._focusMonitor.focusVia(this._element,ae,We):this._element.nativeElement.focus(We)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(ae=>{ae&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Me.\u0275fac=function(ae){return new(ae||Me)(e.Y36(Z,1),e.Y36(e.SBq),e.Y36(w.tE),e.Y36(e.sBO),e.Y36(b,8),e.Y36(me.Qb,8),e.$8M("tabindex"))},Me.\u0275cmp=e.Xpm({type:Me,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(ae,We){1&ae&&e.NdJ("click",function(){return We._toggle()})("keydown",function(Pe){return We._keydown(Pe)}),2&ae&&(e.uIk("id",We.panel._headerId)("tabindex",We.tabIndex)("aria-controls",We._getPanelId())("aria-expanded",We._isExpanded())("aria-disabled",We.panel.disabled),e.Udp("height",We._getHeaderHeight()),e.ekj("mat-expanded",We._isExpanded())("mat-expansion-toggle-indicator-after","after"===We._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===We._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===We._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:u,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(ae,We){1&ae&&(e.F$t(p),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,a,1,1,"span",1)),2&ae&&(e.xp6(4),e.Q6J("ngIf",We._showToggle()))},directives:[E.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[I.indicatorRotate]},changeDetection:0}),Me})(),Ne=(()=>{class Me{}return Me.\u0275fac=function(ae){return new(ae||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Me})(),Be=(()=>{class Me{}return Me.\u0275fac=function(ae){return new(ae||Me)},Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Me})(),Oe=(()=>{class Me extends N{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(ae){this._hideToggle=(0,t.Ig)(ae)}ngAfterContentInit(){this._headers.changes.pipe((0,W.O)(this._headers)).subscribe(ae=>{this._ownHeaders.reset(ae.filter(We=>We.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new w.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(ae){this._keyManager.onKeydown(ae)}_handleHeaderFocus(ae){this._keyManager.updateActiveItem(ae)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Me.\u0275fac=function(){let we;return function(We){return(we||(we=e.n5z(Me)))(We||Me)}}(),Me.\u0275dir=e.lG2({type:Me,selectors:[["mat-accordion"]],contentQueries:function(ae,We,vt){if(1&ae&&e.Suo(vt,xe,5),2&ae){let Pe;e.iGM(Pe=e.CRH())&&(We._headers=Pe)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(ae,We){2&ae&&e.ekj("mat-accordion-multi",We.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:_,useExisting:Me}]),e.qOj]}),Me})(),B=(()=>{class Me{}return Me.\u0275fac=function(ae){return new(ae||Me)},Me.\u0275mod=e.oAB({type:Me}),Me.\u0275inj=e.cJS({imports:[[E.ez,k.BQ,O,A.eL]]}),Me})()},7322:(Ze,K,m)=>{"use strict";m.d(K,{G_:()=>he,TO:()=>I,KE:()=>Ee,Eo:()=>r,lN:()=>ke,bx:()=>xe,R9:()=>we});var e=m(7144),t=m(9808),v=m(5e3),C=m(508),s=m(3191),M=m(7579),c=m(6451),N=m(4968),o=m(8675),L=m(2722),O=m(5698),A=m(1777),E=m(6360),k=m(226),w=m(925);const V=["connectionContainer"],W=["inputContainer"],j=["label"];function $(q,J){1&q&&(v.ynx(0),v.TgZ(1,"div",14),v._UZ(2,"div",15),v._UZ(3,"div",16),v._UZ(4,"div",17),v.qZA(),v.TgZ(5,"div",18),v._UZ(6,"div",15),v._UZ(7,"div",16),v._UZ(8,"div",17),v.qZA(),v.BQk())}function ee(q,J){if(1&q){const oe=v.EpF();v.TgZ(0,"div",19),v.NdJ("cdkObserveContent",function(){return v.CHM(oe),v.oxw().updateOutlineGap()}),v.Hsn(1,1),v.qZA()}if(2&q){const oe=v.oxw();v.Q6J("cdkObserveContentDisabled","outline"!=oe.appearance)}}function me(q,J){if(1&q&&(v.ynx(0),v.Hsn(1,2),v.TgZ(2,"span"),v._uU(3),v.qZA(),v.BQk()),2&q){const oe=v.oxw(2);v.xp6(3),v.Oqu(oe._control.placeholder)}}function ce(q,J){1&q&&v.Hsn(0,3,["*ngSwitchCase","true"])}function le(q,J){1&q&&(v.TgZ(0,"span",23),v._uU(1," *"),v.qZA())}function te(q,J){if(1&q){const oe=v.EpF();v.TgZ(0,"label",20,21),v.NdJ("cdkObserveContent",function(){return v.CHM(oe),v.oxw().updateOutlineGap()}),v.YNc(2,me,4,1,"ng-container",12),v.YNc(3,ce,1,0,"ng-content",12),v.YNc(4,le,2,0,"span",22),v.qZA()}if(2&q){const oe=v.oxw();v.ekj("mat-empty",oe._control.empty&&!oe._shouldAlwaysFloat())("mat-form-field-empty",oe._control.empty&&!oe._shouldAlwaysFloat())("mat-accent","accent"==oe.color)("mat-warn","warn"==oe.color),v.Q6J("cdkObserveContentDisabled","outline"!=oe.appearance)("id",oe._labelId)("ngSwitch",oe._hasLabel()),v.uIk("for",oe._control.id)("aria-owns",oe._control.id),v.xp6(2),v.Q6J("ngSwitchCase",!1),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngIf",!oe.hideRequiredMarker&&oe._control.required&&!oe._control.disabled)}}function re(q,J){1&q&&(v.TgZ(0,"div",24),v.Hsn(1,4),v.qZA())}function pe(q,J){if(1&q&&(v.TgZ(0,"div",25),v._UZ(1,"span",26),v.qZA()),2&q){const oe=v.oxw();v.xp6(1),v.ekj("mat-accent","accent"==oe.color)("mat-warn","warn"==oe.color)}}function y(q,J){if(1&q&&(v.TgZ(0,"div"),v.Hsn(1,5),v.qZA()),2&q){const oe=v.oxw();v.Q6J("@transitionMessages",oe._subscriptAnimationState)}}function i(q,J){if(1&q&&(v.TgZ(0,"div",30),v._uU(1),v.qZA()),2&q){const oe=v.oxw(2);v.Q6J("id",oe._hintLabelId),v.xp6(1),v.Oqu(oe.hintLabel)}}function a(q,J){if(1&q&&(v.TgZ(0,"div",27),v.YNc(1,i,2,2,"div",28),v.Hsn(2,6),v._UZ(3,"div",29),v.Hsn(4,7),v.qZA()),2&q){const oe=v.oxw();v.Q6J("@transitionMessages",oe._subscriptAnimationState),v.xp6(1),v.Q6J("ngIf",oe.hintLabel)}}const p=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],u=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let _=0;const D=new v.OlP("MatError");let I=(()=>{class q{constructor(oe,Ce){this.id="mat-error-"+_++,oe||Ce.nativeElement.setAttribute("aria-live","polite")}}return q.\u0275fac=function(oe){return new(oe||q)(v.$8M("aria-live"),v.Y36(v.SBq))},q.\u0275dir=v.lG2({type:q,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(oe,Ce){2&oe&&v.uIk("id",Ce.id)},inputs:{id:"id"},features:[v._Bn([{provide:D,useExisting:q}])]}),q})();const x={transitionMessages:(0,A.X$)("transitionMessages",[(0,A.SB)("enter",(0,A.oB)({opacity:1,transform:"translateY(0%)"})),(0,A.eR)("void => enter",[(0,A.oB)({opacity:0,transform:"translateY(-5px)"}),(0,A.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let r=(()=>{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=v.lG2({type:q}),q})(),U=0;const ye=new v.OlP("MatHint");let xe=(()=>{class q{constructor(){this.align="start",this.id="mat-hint-"+U++}}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=v.lG2({type:q,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(oe,Ce){2&oe&&(v.uIk("id",Ce.id)("align",null),v.ekj("mat-form-field-hint-end","end"===Ce.align))},inputs:{align:"align",id:"id"},features:[v._Bn([{provide:ye,useExisting:q}])]}),q})(),Ne=(()=>{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=v.lG2({type:q,selectors:[["mat-label"]]}),q})(),Be=(()=>{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=v.lG2({type:q,selectors:[["mat-placeholder"]]}),q})();const Oe=new v.OlP("MatPrefix"),Me=new v.OlP("MatSuffix");let we=(()=>{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275dir=v.lG2({type:q,selectors:[["","matSuffix",""]],features:[v._Bn([{provide:Me,useExisting:q}])]}),q})(),ae=0;const Pe=(0,C.pj)(class{constructor(q){this._elementRef=q}},"primary"),Ve=new v.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),he=new v.OlP("MatFormField");let Ee=(()=>{class q extends Pe{constructor(oe,Ce,Ue,ht,it,ft,nt){super(oe),this._changeDetectorRef=Ce,this._dir=Ue,this._defaults=ht,this._platform=it,this._ngZone=ft,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new M.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+ae++,this._labelId="mat-form-field-label-"+ae++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==nt,this.appearance=ht&&ht.appearance?ht.appearance:"legacy",this._hideRequiredMarker=!(!ht||null==ht.hideRequiredMarker)&&ht.hideRequiredMarker}get appearance(){return this._appearance}set appearance(oe){const Ce=this._appearance;this._appearance=oe||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&Ce!==oe&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(oe){this._hideRequiredMarker=(0,s.Ig)(oe)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(oe){this._hintLabel=oe,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(oe){oe!==this._floatLabel&&(this._floatLabel=oe||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(oe){this._explicitFormFieldControl=oe}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const oe=this._control;oe.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${oe.controlType}`),oe.stateChanges.pipe((0,o.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),oe.ngControl&&oe.ngControl.valueChanges&&oe.ngControl.valueChanges.pipe((0,L.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,c.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,o.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,o.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,L.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(oe){const Ce=this._control?this._control.ngControl:null;return Ce&&Ce[oe]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,N.R)(this._label.nativeElement,"transitionend").pipe((0,O.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let oe=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&oe.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Ce=this._hintChildren?this._hintChildren.find(ht=>"start"===ht.align):null,Ue=this._hintChildren?this._hintChildren.find(ht=>"end"===ht.align):null;Ce?oe.push(Ce.id):this._hintLabel&&oe.push(this._hintLabelId),Ue&&oe.push(Ue.id)}else this._errorChildren&&oe.push(...this._errorChildren.map(Ce=>Ce.id));this._control.setDescribedByIds(oe)}}_validateControlChild(){}updateOutlineGap(){const oe=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&oe&&oe.children.length&&oe.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let Ce=0,Ue=0;const ht=this._connectionContainerRef.nativeElement,it=ht.querySelectorAll(".mat-form-field-outline-start"),ft=ht.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const nt=ht.getBoundingClientRect();if(0===nt.width&&0===nt.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const st=this._getStartEnd(nt),wt=oe.children,Bt=this._getStartEnd(wt[0].getBoundingClientRect());let Pt=0;for(let Vt=0;Vt<wt.length;Vt++)Pt+=wt[Vt].offsetWidth;Ce=Math.abs(Bt-st)-5,Ue=Pt>0?.75*Pt+10:0}for(let nt=0;nt<it.length;nt++)it[nt].style.width=`${Ce}px`;for(let nt=0;nt<ft.length;nt++)ft[nt].style.width=`${Ue}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(oe){return this._dir&&"rtl"===this._dir.value?oe.right:oe.left}_isAttachedToDOM(){const oe=this._elementRef.nativeElement;if(oe.getRootNode){const Ce=oe.getRootNode();return Ce&&Ce!==oe}return document.documentElement.contains(oe)}}return q.\u0275fac=function(oe){return new(oe||q)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(k.Is,8),v.Y36(Ve,8),v.Y36(w.t4),v.Y36(v.R0b),v.Y36(E.Qb,8))},q.\u0275cmp=v.Xpm({type:q,selectors:[["mat-form-field"]],contentQueries:function(oe,Ce,Ue){if(1&oe&&(v.Suo(Ue,r,5),v.Suo(Ue,r,7),v.Suo(Ue,Ne,5),v.Suo(Ue,Ne,7),v.Suo(Ue,Be,5),v.Suo(Ue,D,5),v.Suo(Ue,ye,5),v.Suo(Ue,Oe,5),v.Suo(Ue,Me,5)),2&oe){let ht;v.iGM(ht=v.CRH())&&(Ce._controlNonStatic=ht.first),v.iGM(ht=v.CRH())&&(Ce._controlStatic=ht.first),v.iGM(ht=v.CRH())&&(Ce._labelChildNonStatic=ht.first),v.iGM(ht=v.CRH())&&(Ce._labelChildStatic=ht.first),v.iGM(ht=v.CRH())&&(Ce._placeholderChild=ht.first),v.iGM(ht=v.CRH())&&(Ce._errorChildren=ht),v.iGM(ht=v.CRH())&&(Ce._hintChildren=ht),v.iGM(ht=v.CRH())&&(Ce._prefixChildren=ht),v.iGM(ht=v.CRH())&&(Ce._suffixChildren=ht)}},viewQuery:function(oe,Ce){if(1&oe&&(v.Gf(V,7),v.Gf(W,5),v.Gf(j,5)),2&oe){let Ue;v.iGM(Ue=v.CRH())&&(Ce._connectionContainerRef=Ue.first),v.iGM(Ue=v.CRH())&&(Ce._inputContainerRef=Ue.first),v.iGM(Ue=v.CRH())&&(Ce._label=Ue.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(oe,Ce){2&oe&&v.ekj("mat-form-field-appearance-standard","standard"==Ce.appearance)("mat-form-field-appearance-fill","fill"==Ce.appearance)("mat-form-field-appearance-outline","outline"==Ce.appearance)("mat-form-field-appearance-legacy","legacy"==Ce.appearance)("mat-form-field-invalid",Ce._control.errorState)("mat-form-field-can-float",Ce._canLabelFloat())("mat-form-field-should-float",Ce._shouldLabelFloat())("mat-form-field-has-label",Ce._hasFloatingLabel())("mat-form-field-hide-placeholder",Ce._hideControlPlaceholder())("mat-form-field-disabled",Ce._control.disabled)("mat-form-field-autofilled",Ce._control.autofilled)("mat-focused",Ce._control.focused)("ng-untouched",Ce._shouldForward("untouched"))("ng-touched",Ce._shouldForward("touched"))("ng-pristine",Ce._shouldForward("pristine"))("ng-dirty",Ce._shouldForward("dirty"))("ng-valid",Ce._shouldForward("valid"))("ng-invalid",Ce._shouldForward("invalid"))("ng-pending",Ce._shouldForward("pending"))("_mat-animation-noopable",!Ce._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[v._Bn([{provide:he,useExisting:q}]),v.qOj],ngContentSelectors:u,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(oe,Ce){1&oe&&(v.F$t(p),v.TgZ(0,"div",0),v.TgZ(1,"div",1,2),v.NdJ("click",function(ht){return Ce._control.onContainerClick&&Ce._control.onContainerClick(ht)}),v.YNc(3,$,9,0,"ng-container",3),v.YNc(4,ee,2,1,"div",4),v.TgZ(5,"div",5,6),v.Hsn(7),v.TgZ(8,"span",7),v.YNc(9,te,5,16,"label",8),v.qZA(),v.qZA(),v.YNc(10,re,2,0,"div",9),v.qZA(),v.YNc(11,pe,2,4,"div",10),v.TgZ(12,"div",11),v.YNc(13,y,2,1,"div",12),v.YNc(14,a,5,2,"div",13),v.qZA(),v.qZA()),2&oe&&(v.xp6(3),v.Q6J("ngIf","outline"==Ce.appearance),v.xp6(1),v.Q6J("ngIf",Ce._prefixChildren.length),v.xp6(5),v.Q6J("ngIf",Ce._hasFloatingLabel()),v.xp6(1),v.Q6J("ngIf",Ce._suffixChildren.length),v.xp6(1),v.Q6J("ngIf","outline"!=Ce.appearance),v.xp6(1),v.Q6J("ngSwitch",Ce._getDisplayedMessages()),v.xp6(1),v.Q6J("ngSwitchCase","error"),v.xp6(1),v.Q6J("ngSwitchCase","hint"))},directives:[t.O5,t.RF,t.n9,e.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[x.transitionMessages]},changeDetection:0}),q})(),ke=(()=>{class q{}return q.\u0275fac=function(oe){return new(oe||q)},q.\u0275mod=v.oAB({type:q}),q.\u0275inj=v.cJS({imports:[[t.ez,C.BQ,e.Q8],C.BQ]}),q})()},3954:(Ze,K,m)=>{"use strict";m.d(K,{Il:()=>re,N6:()=>pe,DX:()=>A});var e=m(5e3),t=m(508),v=m(3191),C=m(226);const s=["*"];class o{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const a=Math.max(...this.tracker);return a>1?this.rowCount+a-1:this.rowCount}update(a,p){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(a),this.tracker.fill(0,0,this.tracker.length),this.positions=p.map(u=>this._trackTile(u))}_trackTile(a){const p=this._findMatchingGap(a.colspan);return this._markTilePosition(p,a),this.columnIndex=p+a.colspan,new L(this.rowIndex,p)}_findMatchingGap(a){let p=-1,u=-1;do{this.columnIndex+a>this.tracker.length?(this._nextRow(),p=this.tracker.indexOf(0,this.columnIndex),u=this._findGapEndIndex(p)):(p=this.tracker.indexOf(0,this.columnIndex),-1!=p?(u=this._findGapEndIndex(p),this.columnIndex=p+1):(this._nextRow(),p=this.tracker.indexOf(0,this.columnIndex),u=this._findGapEndIndex(p)))}while(u-p<a||0==u);return Math.max(p,0)}_nextRow(){this.columnIndex=0,this.rowIndex++;for(let a=0;a<this.tracker.length;a++)this.tracker[a]=Math.max(0,this.tracker[a]-1)}_findGapEndIndex(a){for(let p=a+1;p<this.tracker.length;p++)if(0!=this.tracker[p])return p;return this.tracker.length}_markTilePosition(a,p){for(let u=0;u<p.colspan;u++)this.tracker[a+u]=p.rowspan}}class L{constructor(a,p){this.row=a,this.col=p}}const O=new e.OlP("MAT_GRID_LIST");let A=(()=>{class i{constructor(p,u){this._element=p,this._gridList=u,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(p){this._rowspan=Math.round((0,v.su)(p))}get colspan(){return this._colspan}set colspan(p){this._colspan=Math.round((0,v.su)(p))}_setStyle(p,u){this._element.nativeElement.style[p]=u}}return i.\u0275fac=function(p){return new(p||i)(e.Y36(e.SBq),e.Y36(O,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(p,u){2&p&&e.uIk("rowspan",u.rowspan)("colspan",u.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:s,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(p,u){1&p&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),i})();const W=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class j{constructor(){this._rows=0,this._rowspan=0}init(a,p,u,_){this._gutterSize=le(a),this._rows=p.rowCount,this._rowspan=p.rowspan,this._cols=u,this._direction=_}getBaseTileSize(a,p){return`(${a}% - (${this._gutterSize} * ${p}))`}getTilePosition(a,p){return 0===p?"0":ce(`(${a} + ${this._gutterSize}) * ${p}`)}getTileSize(a,p){return`(${a} * ${p}) + (${p-1} * ${this._gutterSize})`}setStyle(a,p,u){let _=100/this._cols,D=(this._cols-1)/this._cols;this.setColStyles(a,u,_,D),this.setRowStyles(a,p,_,D)}setColStyles(a,p,u,_){let D=this.getBaseTileSize(u,_);a._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(D,p)),a._setStyle("width",ce(this.getTileSize(D,a.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(a){return`${this._rowspan} * ${this.getTileSize(a,1)}`}getComputedHeight(){return null}}class $ extends j{constructor(a){super(),this.fixedRowHeight=a}init(a,p,u,_){super.init(a,p,u,_),this.fixedRowHeight=le(this.fixedRowHeight),W.test(this.fixedRowHeight)}setRowStyles(a,p){a._setStyle("top",this.getTilePosition(this.fixedRowHeight,p)),a._setStyle("height",ce(this.getTileSize(this.fixedRowHeight,a.rowspan)))}getComputedHeight(){return["height",ce(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["height",null]),a._tiles&&a._tiles.forEach(p=>{p._setStyle("top",null),p._setStyle("height",null)})}}class ee extends j{constructor(a){super(),this._parseRatio(a)}setRowStyles(a,p,u,_){this.baseTileHeight=this.getBaseTileSize(u/this.rowHeightRatio,_),a._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,p)),a._setStyle("paddingTop",ce(this.getTileSize(this.baseTileHeight,a.rowspan)))}getComputedHeight(){return["paddingBottom",ce(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["paddingBottom",null]),a._tiles.forEach(p=>{p._setStyle("marginTop",null),p._setStyle("paddingTop",null)})}_parseRatio(a){const p=a.split(":");this.rowHeightRatio=parseFloat(p[0])/parseFloat(p[1])}}class me extends j{setRowStyles(a,p){let D=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);a._setStyle("top",this.getTilePosition(D,p)),a._setStyle("height",ce(this.getTileSize(D,a.rowspan)))}reset(a){a._tiles&&a._tiles.forEach(p=>{p._setStyle("top",null),p._setStyle("height",null)})}}function ce(i){return`calc(${i})`}function le(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let re=(()=>{class i{constructor(p,u){this._element=p,this._dir=u,this._gutter="1px"}get cols(){return this._cols}set cols(p){this._cols=Math.max(1,Math.round((0,v.su)(p)))}get gutterSize(){return this._gutter}set gutterSize(p){this._gutter=`${null==p?"":p}`}get rowHeight(){return this._rowHeight}set rowHeight(p){const u=`${null==p?"":p}`;u!==this._rowHeight&&(this._rowHeight=u,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(p){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===p?new me:p&&p.indexOf(":")>-1?new ee(p):new $(p)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new o);const p=this._tileCoordinator,u=this._tiles.filter(D=>!D._gridList||D._gridList===this),_=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,u),this._tileStyler.init(this.gutterSize,p,this.cols,_),u.forEach((D,I)=>{const x=p.positions[I];this._tileStyler.setStyle(D,x.row,x.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(p){p&&(this._element.nativeElement.style[p[0]]=p[1])}}return i.\u0275fac=function(p){return new(p||i)(e.Y36(e.SBq),e.Y36(C.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(p,u,_){if(1&p&&e.Suo(_,A,5),2&p){let D;e.iGM(D=e.CRH())&&(u._tiles=D)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(p,u){2&p&&e.uIk("cols",u.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[e._Bn([{provide:O,useExisting:i}])],ngContentSelectors:s,decls:2,vars:0,template:function(p,u){1&p&&(e.F$t(),e.TgZ(0,"div"),e.Hsn(1),e.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0}),i})(),pe=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[t.uc,t.BQ],t.uc,t.BQ]}),i})()},5245:(Ze,K,m)=>{"use strict";m.d(K,{Hw:()=>Z,Ps:()=>P});var e=m(5e3),t=m(508),v=m(3191),C=m(9808),s=m(9646),M=m(2843),c=m(4128),N=m(727),o=m(8505),L=m(4004),O=m(262),A=m(8746),E=m(3099),k=m(5698),w=m(8138),V=m(2313);const W=["*"];let j;function ee(U){var ye;return(null===(ye=function(){if(void 0===j&&(j=null,"undefined"!=typeof window)){const U=window;void 0!==U.trustedTypes&&(j=U.trustedTypes.createPolicy("angular#components",{createHTML:ye=>ye}))}return j}())||void 0===ye?void 0:ye.createHTML(U))||U}function me(U){return Error(`Unable to find icon with the name "${U}"`)}function le(U){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${U}".`)}function te(U){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${U}".`)}class re{constructor(ye,xe,Ne){this.url=ye,this.svgText=xe,this.options=Ne}}let pe=(()=>{class U{constructor(xe,Ne,Be,Oe){this._httpClient=xe,this._sanitizer=Ne,this._errorHandler=Oe,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=Be}addSvgIcon(xe,Ne,Be){return this.addSvgIconInNamespace("",xe,Ne,Be)}addSvgIconLiteral(xe,Ne,Be){return this.addSvgIconLiteralInNamespace("",xe,Ne,Be)}addSvgIconInNamespace(xe,Ne,Be,Oe){return this._addSvgIconConfig(xe,Ne,new re(Be,null,Oe))}addSvgIconResolver(xe){return this._resolvers.push(xe),this}addSvgIconLiteralInNamespace(xe,Ne,Be,Oe){const B=this._sanitizer.sanitize(e.q3G.HTML,Be);if(!B)throw te(Be);const Me=ee(B);return this._addSvgIconConfig(xe,Ne,new re("",Me,Oe))}addSvgIconSet(xe,Ne){return this.addSvgIconSetInNamespace("",xe,Ne)}addSvgIconSetLiteral(xe,Ne){return this.addSvgIconSetLiteralInNamespace("",xe,Ne)}addSvgIconSetInNamespace(xe,Ne,Be){return this._addSvgIconSetConfig(xe,new re(Ne,null,Be))}addSvgIconSetLiteralInNamespace(xe,Ne,Be){const Oe=this._sanitizer.sanitize(e.q3G.HTML,Ne);if(!Oe)throw te(Ne);const B=ee(Oe);return this._addSvgIconSetConfig(xe,new re("",B,Be))}registerFontClassAlias(xe,Ne=xe){return this._fontCssClassesByAlias.set(xe,Ne),this}classNameForFontAlias(xe){return this._fontCssClassesByAlias.get(xe)||xe}setDefaultFontSetClass(xe){return this._defaultFontSetClass=xe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(xe){const Ne=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,xe);if(!Ne)throw le(xe);const Be=this._cachedIconsByUrl.get(Ne);return Be?(0,s.of)(a(Be)):this._loadSvgIconFromConfig(new re(xe,null)).pipe((0,o.b)(Oe=>this._cachedIconsByUrl.set(Ne,Oe)),(0,L.U)(Oe=>a(Oe)))}getNamedSvgIcon(xe,Ne=""){const Be=p(Ne,xe);let Oe=this._svgIconConfigs.get(Be);if(Oe)return this._getSvgFromConfig(Oe);if(Oe=this._getIconConfigFromResolvers(Ne,xe),Oe)return this._svgIconConfigs.set(Be,Oe),this._getSvgFromConfig(Oe);const B=this._iconSetConfigs.get(Ne);return B?this._getSvgFromIconSetConfigs(xe,B):(0,M._)(me(Be))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(xe){return xe.svgText?(0,s.of)(a(this._svgElementFromConfig(xe))):this._loadSvgIconFromConfig(xe).pipe((0,L.U)(Ne=>a(Ne)))}_getSvgFromIconSetConfigs(xe,Ne){const Be=this._extractIconWithNameFromAnySet(xe,Ne);if(Be)return(0,s.of)(Be);const Oe=Ne.filter(B=>!B.svgText).map(B=>this._loadSvgIconSetFromConfig(B).pipe((0,O.K)(Me=>{const ae=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,B.url)} failed: ${Me.message}`;return this._errorHandler.handleError(new Error(ae)),(0,s.of)(null)})));return(0,c.D)(Oe).pipe((0,L.U)(()=>{const B=this._extractIconWithNameFromAnySet(xe,Ne);if(!B)throw me(xe);return B}))}_extractIconWithNameFromAnySet(xe,Ne){for(let Be=Ne.length-1;Be>=0;Be--){const Oe=Ne[Be];if(Oe.svgText&&Oe.svgText.toString().indexOf(xe)>-1){const B=this._svgElementFromConfig(Oe),Me=this._extractSvgIconFromSet(B,xe,Oe.options);if(Me)return Me}}return null}_loadSvgIconFromConfig(xe){return this._fetchIcon(xe).pipe((0,o.b)(Ne=>xe.svgText=Ne),(0,L.U)(()=>this._svgElementFromConfig(xe)))}_loadSvgIconSetFromConfig(xe){return xe.svgText?(0,s.of)(null):this._fetchIcon(xe).pipe((0,o.b)(Ne=>xe.svgText=Ne))}_extractSvgIconFromSet(xe,Ne,Be){const Oe=xe.querySelector(`[id="${Ne}"]`);if(!Oe)return null;const B=Oe.cloneNode(!0);if(B.removeAttribute("id"),"svg"===B.nodeName.toLowerCase())return this._setSvgAttributes(B,Be);if("symbol"===B.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(B),Be);const Me=this._svgElementFromString(ee("<svg></svg>"));return Me.appendChild(B),this._setSvgAttributes(Me,Be)}_svgElementFromString(xe){const Ne=this._document.createElement("DIV");Ne.innerHTML=xe;const Be=Ne.querySelector("svg");if(!Be)throw Error("<svg> tag not found");return Be}_toSvgElement(xe){const Ne=this._svgElementFromString(ee("<svg></svg>")),Be=xe.attributes;for(let Oe=0;Oe<Be.length;Oe++){const{name:B,value:Me}=Be[Oe];"id"!==B&&Ne.setAttribute(B,Me)}for(let Oe=0;Oe<xe.childNodes.length;Oe++)xe.childNodes[Oe].nodeType===this._document.ELEMENT_NODE&&Ne.appendChild(xe.childNodes[Oe].cloneNode(!0));return Ne}_setSvgAttributes(xe,Ne){return xe.setAttribute("fit",""),xe.setAttribute("height","100%"),xe.setAttribute("width","100%"),xe.setAttribute("preserveAspectRatio","xMidYMid meet"),xe.setAttribute("focusable","false"),Ne&&Ne.viewBox&&xe.setAttribute("viewBox",Ne.viewBox),xe}_fetchIcon(xe){var Ne;const{url:Be,options:Oe}=xe,B=null!==(Ne=null==Oe?void 0:Oe.withCredentials)&&void 0!==Ne&&Ne;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==Be)throw Error(`Cannot fetch icon from URL "${Be}".`);const Me=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Be);if(!Me)throw le(Be);const we=this._inProgressUrlFetches.get(Me);if(we)return we;const ae=this._httpClient.get(Me,{responseType:"text",withCredentials:B}).pipe((0,L.U)(We=>ee(We)),(0,A.x)(()=>this._inProgressUrlFetches.delete(Me)),(0,E.B)());return this._inProgressUrlFetches.set(Me,ae),ae}_addSvgIconConfig(xe,Ne,Be){return this._svgIconConfigs.set(p(xe,Ne),Be),this}_addSvgIconSetConfig(xe,Ne){const Be=this._iconSetConfigs.get(xe);return Be?Be.push(Ne):this._iconSetConfigs.set(xe,[Ne]),this}_svgElementFromConfig(xe){if(!xe.svgElement){const Ne=this._svgElementFromString(xe.svgText);this._setSvgAttributes(Ne,xe.options),xe.svgElement=Ne}return xe.svgElement}_getIconConfigFromResolvers(xe,Ne){for(let Be=0;Be<this._resolvers.length;Be++){const Oe=this._resolvers[Be](Ne,xe);if(Oe)return u(Oe)?new re(Oe.url,null,Oe.options):new re(Oe,null)}}}return U.\u0275fac=function(xe){return new(xe||U)(e.LFG(w.eN,8),e.LFG(V.H7),e.LFG(C.K0,8),e.LFG(e.qLn))},U.\u0275prov=e.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();function a(U){return U.cloneNode(!0)}function p(U,ye){return U+":"+ye}function u(U){return!(!U.url||!U.options)}const _=(0,t.pj)(class{constructor(U){this._elementRef=U}}),D=new e.OlP("mat-icon-location",{providedIn:"root",factory:function(){const U=(0,e.f3M)(C.K0),ye=U?U.location:null;return{getPathname:()=>ye?ye.pathname+ye.search:""}}}),x=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],r=x.map(U=>`[${U}]`).join(", "),b=/^url\(['"]?#(.*?)['"]?\)$/;let Z=(()=>{class U extends _{constructor(xe,Ne,Be,Oe,B){super(xe),this._iconRegistry=Ne,this._location=Oe,this._errorHandler=B,this._inline=!1,this._currentIconFetch=N.w0.EMPTY,Be||xe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(xe){this._inline=(0,v.Ig)(xe)}get svgIcon(){return this._svgIcon}set svgIcon(xe){xe!==this._svgIcon&&(xe?this._updateSvgIcon(xe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=xe)}get fontSet(){return this._fontSet}set fontSet(xe){const Ne=this._cleanupFontValue(xe);Ne!==this._fontSet&&(this._fontSet=Ne,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(xe){const Ne=this._cleanupFontValue(xe);Ne!==this._fontIcon&&(this._fontIcon=Ne,this._updateFontIconClasses())}_splitIconName(xe){if(!xe)return["",""];const Ne=xe.split(":");switch(Ne.length){case 1:return["",Ne[0]];case 2:return Ne;default:throw Error(`Invalid icon name: "${xe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const xe=this._elementsWithExternalReferences;if(xe&&xe.size){const Ne=this._location.getPathname();Ne!==this._previousPath&&(this._previousPath=Ne,this._prependPathToReferences(Ne))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(xe){this._clearSvgElement();const Ne=xe.querySelectorAll("style");for(let Oe=0;Oe<Ne.length;Oe++)Ne[Oe].textContent+=" ";const Be=this._location.getPathname();this._previousPath=Be,this._cacheChildrenWithExternalReferences(xe),this._prependPathToReferences(Be),this._elementRef.nativeElement.appendChild(xe)}_clearSvgElement(){const xe=this._elementRef.nativeElement;let Ne=xe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ne--;){const Be=xe.childNodes[Ne];(1!==Be.nodeType||"svg"===Be.nodeName.toLowerCase())&&Be.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const xe=this._elementRef.nativeElement,Ne=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();Ne!=this._previousFontSetClass&&(this._previousFontSetClass&&xe.classList.remove(this._previousFontSetClass),Ne&&xe.classList.add(Ne),this._previousFontSetClass=Ne),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&xe.classList.remove(this._previousFontIconClass),this.fontIcon&&xe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(xe){return"string"==typeof xe?xe.trim().split(" ")[0]:xe}_prependPathToReferences(xe){const Ne=this._elementsWithExternalReferences;Ne&&Ne.forEach((Be,Oe)=>{Be.forEach(B=>{Oe.setAttribute(B.name,`url('${xe}#${B.value}')`)})})}_cacheChildrenWithExternalReferences(xe){const Ne=xe.querySelectorAll(r),Be=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Oe=0;Oe<Ne.length;Oe++)x.forEach(B=>{const Me=Ne[Oe],we=Me.getAttribute(B),ae=we?we.match(b):null;if(ae){let We=Be.get(Me);We||(We=[],Be.set(Me,We)),We.push({name:B,value:ae[1]})}})}_updateSvgIcon(xe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),xe){const[Ne,Be]=this._splitIconName(xe);Ne&&(this._svgNamespace=Ne),Be&&(this._svgName=Be),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Be,Ne).pipe((0,k.q)(1)).subscribe(Oe=>this._setSvgElement(Oe),Oe=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Ne}:${Be}! ${Oe.message}`))})}}}return U.\u0275fac=function(xe){return new(xe||U)(e.Y36(e.SBq),e.Y36(pe),e.$8M("aria-hidden"),e.Y36(D),e.Y36(e.qLn))},U.\u0275cmp=e.Xpm({type:U,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(xe,Ne){2&xe&&(e.uIk("data-mat-icon-type",Ne._usingFontIcon()?"font":"svg")("data-mat-icon-name",Ne._svgName||Ne.fontIcon)("data-mat-icon-namespace",Ne._svgNamespace||Ne.fontSet),e.ekj("mat-icon-inline",Ne.inline)("mat-icon-no-color","primary"!==Ne.color&&"accent"!==Ne.color&&"warn"!==Ne.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:W,decls:1,vars:0,template:function(xe,Ne){1&xe&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),U})(),P=(()=>{class U{}return U.\u0275fac=function(xe){return new(xe||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({imports:[[t.BQ],t.BQ]}),U})()},7531:(Ze,K,m)=>{"use strict";m.d(K,{Jk:()=>w,Nt:()=>$,c:()=>ee});var e=m(3191),t=m(925),v=m(5e3),C=m(3075),s=m(508),M=m(7322),c=m(7579),N=m(515);const o=(0,t.i$)({passive:!0});let L=(()=>{class me{constructor(le,te){this._platform=le,this._ngZone=te,this._monitoredElements=new Map}monitor(le){if(!this._platform.isBrowser)return N.E;const te=(0,e.fI)(le),re=this._monitoredElements.get(te);if(re)return re.subject;const pe=new c.x,y="cdk-text-field-autofilled",i=a=>{"cdk-text-field-autofill-start"!==a.animationName||te.classList.contains(y)?"cdk-text-field-autofill-end"===a.animationName&&te.classList.contains(y)&&(te.classList.remove(y),this._ngZone.run(()=>pe.next({target:a.target,isAutofilled:!1}))):(te.classList.add(y),this._ngZone.run(()=>pe.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{te.addEventListener("animationstart",i,o),te.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(te,{subject:pe,unlisten:()=>{te.removeEventListener("animationstart",i,o)}}),pe}stopMonitoring(le){const te=(0,e.fI)(le),re=this._monitoredElements.get(te);re&&(re.unlisten(),re.subject.complete(),te.classList.remove("cdk-text-field-autofill-monitored"),te.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(te))}ngOnDestroy(){this._monitoredElements.forEach((le,te)=>this.stopMonitoring(te))}}return me.\u0275fac=function(le){return new(le||me)(v.LFG(t.t4),v.LFG(v.R0b))},me.\u0275prov=v.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})(),E=(()=>{class me{}return me.\u0275fac=function(le){return new(le||me)},me.\u0275mod=v.oAB({type:me}),me.\u0275inj=v.cJS({imports:[[t.ud]]}),me})();const w=new v.OlP("MAT_INPUT_VALUE_ACCESSOR"),V=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let W=0;const j=(0,s.FD)(class{constructor(me,ce,le,te){this._defaultErrorStateMatcher=me,this._parentForm=ce,this._parentFormGroup=le,this.ngControl=te}});let $=(()=>{class me extends j{constructor(le,te,re,pe,y,i,a,p,u,_){super(i,pe,y,re),this._elementRef=le,this._platform=te,this._autofillMonitor=p,this._formField=_,this._uid="mat-input-"+W++,this.focused=!1,this.stateChanges=new c.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(x=>(0,t.qK)().has(x));const D=this._elementRef.nativeElement,I=D.nodeName.toLowerCase();this._inputValueAccessor=a||D,this._previousNativeValue=this.value,this.id=this.id,te.IOS&&u.runOutsideAngular(()=>{le.nativeElement.addEventListener("keyup",x=>{const r=x.target;!r.value&&0===r.selectionStart&&0===r.selectionEnd&&(r.setSelectionRange(1,1),r.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===I,this._isTextarea="textarea"===I,this._isInFormField=!!_,this._isNativeSelect&&(this.controlType=D.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(le){this._disabled=(0,e.Ig)(le),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(le){this._id=le||this._uid}get required(){var le,te,re,pe;return null!==(pe=null!==(le=this._required)&&void 0!==le?le:null===(re=null===(te=this.ngControl)||void 0===te?void 0:te.control)||void 0===re?void 0:re.hasValidator(C.kI.required))&&void 0!==pe&&pe}set required(le){this._required=(0,e.Ig)(le)}get type(){return this._type}set type(le){this._type=le||"text",this._validateType(),!this._isTextarea&&(0,t.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(le){le!==this.value&&(this._inputValueAccessor.value=le,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(le){this._readonly=(0,e.Ig)(le)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(le=>{this.autofilled=le.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(le){this._elementRef.nativeElement.focus(le)}_focusChanged(le){le!==this.focused&&(this.focused=le,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var le,te;const re=(null===(te=null===(le=this._formField)||void 0===le?void 0:le._hideControlPlaceholder)||void 0===te?void 0:te.call(le))?null:this.placeholder;if(re!==this._previousPlaceholder){const pe=this._elementRef.nativeElement;this._previousPlaceholder=re,re?pe.setAttribute("placeholder",re):pe.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const le=this._elementRef.nativeElement.value;this._previousNativeValue!==le&&(this._previousNativeValue=le,this.stateChanges.next())}_validateType(){V.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let le=this._elementRef.nativeElement.validity;return le&&le.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const le=this._elementRef.nativeElement,te=le.options[0];return this.focused||le.multiple||!this.empty||!!(le.selectedIndex>-1&&te&&te.label)}return this.focused||!this.empty}setDescribedByIds(le){le.length?this._elementRef.nativeElement.setAttribute("aria-describedby",le.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const le=this._elementRef.nativeElement;return this._isNativeSelect&&(le.multiple||le.size>1)}}return me.\u0275fac=function(le){return new(le||me)(v.Y36(v.SBq),v.Y36(t.t4),v.Y36(C.a5,10),v.Y36(C.F,8),v.Y36(C.sg,8),v.Y36(s.rD),v.Y36(w,10),v.Y36(L),v.Y36(v.R0b),v.Y36(M.G_,8))},me.\u0275dir=v.lG2({type:me,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(le,te){1&le&&v.NdJ("focus",function(){return te._focusChanged(!0)})("blur",function(){return te._focusChanged(!1)})("input",function(){return te._onInput()}),2&le&&(v.Ikx("disabled",te.disabled)("required",te.required),v.uIk("id",te.id)("data-placeholder",te.placeholder)("readonly",te.readonly&&!te._isNativeSelect||null)("aria-invalid",te.empty&&te.required?null:te.errorState)("aria-required",te.required),v.ekj("mat-input-server",te._isServer)("mat-native-select-inline",te._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[v._Bn([{provide:M.Eo,useExisting:me}]),v.qOj,v.TTD]}),me})(),ee=(()=>{class me{}return me.\u0275fac=function(le){return new(le||me)},me.\u0275mod=v.oAB({type:me}),me.\u0275inj=v.cJS({providers:[s.rD],imports:[[E,M.lN,s.BQ],E,M.lN]}),me})()},4623:(Ze,K,m)=>{"use strict";m.d(K,{i$:()=>pe,Tg:()=>p,ie:()=>b});var e=m(9808),t=m(5e3),v=m(508),C=m(3191),s=m(7579),M=m(2722),A=(m(8675),m(5664),m(449),m(1159),m(3075),m(4834));const E=["*"],w=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],V=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],me=(0,v.Id)((0,v.Kr)(class{})),ce=(0,v.Kr)(class{}),le=new t.OlP("MatList"),te=new t.OlP("MatNavList");let pe=(()=>{class Z extends me{constructor(U){super(),this._elementRef=U,this._stateChanges=new s.x,"action-list"===this._getListType()&&U.nativeElement.classList.add("mat-action-list")}_getListType(){const U=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===U?"list":"mat-action-list"===U?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Z.\u0275fac=function(U){return new(U||Z)(t.Y36(t.SBq))},Z.\u0275cmp=t.Xpm({type:Z,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[t._Bn([{provide:le,useExisting:Z}]),t.qOj,t.TTD],ngContentSelectors:E,decls:1,vars:0,template:function(U,ye){1&U&&(t.F$t(),t.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),Z})(),y=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275dir=t.lG2({type:Z,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Z})(),i=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275dir=t.lG2({type:Z,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Z})(),p=(()=>{class Z extends ce{constructor(U,ye,xe,Ne){super(),this._element=U,this._isInteractiveList=!1,this._destroyed=new s.x,this._disabled=!1,this._isInteractiveList=!!(xe||Ne&&"action-list"===Ne._getListType()),this._list=xe||Ne;const Be=this._getHostElement();"button"===Be.nodeName.toLowerCase()&&!Be.hasAttribute("type")&&Be.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,M.R)(this._destroyed)).subscribe(()=>{ye.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(U){this._disabled=(0,C.Ig)(U)}ngAfterContentInit(){(0,v.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return Z.\u0275fac=function(U){return new(U||Z)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(te,8),t.Y36(le,8))},Z.\u0275cmp=t.Xpm({type:Z,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(U,ye,xe){if(1&U&&(t.Suo(xe,y,5),t.Suo(xe,i,5),t.Suo(xe,v.X2,5)),2&U){let Ne;t.iGM(Ne=t.CRH())&&(ye._avatar=Ne.first),t.iGM(Ne=t.CRH())&&(ye._icon=Ne.first),t.iGM(Ne=t.CRH())&&(ye._lines=Ne)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(U,ye){2&U&&t.ekj("mat-list-item-disabled",ye.disabled)("mat-list-item-avatar",ye._avatar||ye._icon)("mat-list-item-with-avatar",ye._avatar||ye._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:V,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(U,ye){1&U&&(t.F$t(w),t.TgZ(0,"div",0),t._UZ(1,"div",1),t.Hsn(2),t.TgZ(3,"div",2),t.Hsn(4,1),t.qZA(),t.Hsn(5,2),t.qZA()),2&U&&(t.xp6(1),t.Q6J("matRippleTrigger",ye._getHostElement())("matRippleDisabled",ye._isRippleDisabled()))},directives:[v.wG],encapsulation:2,changeDetection:0}),Z})(),b=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275mod=t.oAB({type:Z}),Z.\u0275inj=t.cJS({imports:[[v.uc,v.si,v.BQ,v.us,e.ez],v.uc,v.BQ,v.us,A.t]}),Z})()},2181:(Ze,K,m)=>{"use strict";m.d(K,{VK:()=>Oe,OP:()=>U,Tx:()=>Ve,p6:()=>Pe});var e=m(5664),t=m(3191),v=m(1159),C=m(5e3),s=m(7579),M=m(727),c=m(6451),N=m(9646),o=m(3101),L=m(8675),O=m(3900),A=m(5698),E=m(9300),k=m(2722),w=m(4086),V=m(1777),W=m(7429),j=m(9808),$=m(508),ee=m(9776),me=m(925),ce=m(226),le=m(5303);const te=["mat-menu-item",""];function re(he,Ee){1&he&&(C.O4$(),C.TgZ(0,"svg",2),C._UZ(1,"polygon",3),C.qZA())}const pe=["*"];function y(he,Ee){if(1&he){const ke=C.EpF();C.TgZ(0,"div",0),C.NdJ("keydown",function(J){return C.CHM(ke),C.oxw()._handleKeydown(J)})("click",function(){return C.CHM(ke),C.oxw().closed.emit("click")})("@transformMenu.start",function(J){return C.CHM(ke),C.oxw()._onAnimationStart(J)})("@transformMenu.done",function(J){return C.CHM(ke),C.oxw()._onAnimationDone(J)}),C.TgZ(1,"div",1),C.Hsn(2),C.qZA(),C.qZA()}if(2&he){const ke=C.oxw();C.Q6J("id",ke.panelId)("ngClass",ke._classList)("@transformMenu",ke._panelAnimationState),C.uIk("aria-label",ke.ariaLabel||null)("aria-labelledby",ke.ariaLabelledby||null)("aria-describedby",ke.ariaDescribedby||null)}}const i={transformMenu:(0,V.X$)("transformMenu",[(0,V.SB)("void",(0,V.oB)({opacity:0,transform:"scale(0.8)"})),(0,V.eR)("void => enter",(0,V.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,V.oB)({opacity:1,transform:"scale(1)"}))),(0,V.eR)("* => void",(0,V.jt)("100ms 25ms linear",(0,V.oB)({opacity:0})))]),fadeInItems:(0,V.X$)("fadeInItems",[(0,V.SB)("showing",(0,V.oB)({opacity:1})),(0,V.eR)("void => *",[(0,V.oB)({opacity:0}),(0,V.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},u=new C.OlP("MatMenuContent"),Z=new C.OlP("MAT_MENU_PANEL"),P=(0,$.Kr)((0,$.Id)(class{}));let U=(()=>{class he extends P{constructor(ke,q,J,oe,Ce){super(),this._elementRef=ke,this._focusMonitor=J,this._parentMenu=oe,this._changeDetectorRef=Ce,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,oe&&oe.addItem&&oe.addItem(this)}focus(ke,q){this._focusMonitor&&ke?this._focusMonitor.focusVia(this._getHostElement(),ke,q):this._getHostElement().focus(q),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(ke){this.disabled&&(ke.preventDefault(),ke.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ke;const q=this._elementRef.nativeElement.cloneNode(!0),J=q.querySelectorAll("mat-icon, .material-icons");for(let oe=0;oe<J.length;oe++)J[oe].remove();return(null===(ke=q.textContent)||void 0===ke?void 0:ke.trim())||""}_setHighlighted(ke){var q;this._highlighted=ke,null===(q=this._changeDetectorRef)||void 0===q||q.markForCheck()}}return he.\u0275fac=function(ke){return new(ke||he)(C.Y36(C.SBq),C.Y36(j.K0),C.Y36(e.tE),C.Y36(Z,8),C.Y36(C.sBO))},he.\u0275cmp=C.Xpm({type:he,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ke,q){1&ke&&C.NdJ("click",function(oe){return q._checkDisabled(oe)})("mouseenter",function(){return q._handleMouseEnter()}),2&ke&&(C.uIk("role",q.role)("tabindex",q._getTabIndex())("aria-disabled",q.disabled.toString())("disabled",q.disabled||null),C.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",q._highlighted)("mat-menu-item-submenu-trigger",q._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[C.qOj],attrs:te,ngContentSelectors:pe,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(ke,q){1&ke&&(C.F$t(),C.Hsn(0),C._UZ(1,"div",0),C.YNc(2,re,2,0,"svg",1)),2&ke&&(C.xp6(1),C.Q6J("matRippleDisabled",q.disableRipple||q.disabled)("matRippleTrigger",q._getHostElement()),C.xp6(1),C.Q6J("ngIf",q._triggersSubmenu))},directives:[$.wG,j.O5],encapsulation:2,changeDetection:0}),he})();const ye=new C.OlP("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Ne=0,Be=(()=>{class he{constructor(ke,q,J){this._elementRef=ke,this._ngZone=q,this._defaultOptions=J,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new C.n_E,this._tabSubscription=M.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new s.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new C.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Ne++}get xPosition(){return this._xPosition}set xPosition(ke){this._xPosition=ke,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ke){this._yPosition=ke,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ke){this._overlapTrigger=(0,t.Ig)(ke)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ke){this._hasBackdrop=(0,t.Ig)(ke)}set panelClass(ke){const q=this._previousPanelClass;q&&q.length&&q.split(" ").forEach(J=>{this._classList[J]=!1}),this._previousPanelClass=ke,ke&&ke.length&&(ke.split(" ").forEach(J=>{this._classList[J]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ke){this.panelClass=ke}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,L.O)(this._directDescendantItems),(0,O.w)(ke=>(0,c.T)(...ke.map(q=>q._focused)))).subscribe(ke=>this._keyManager.updateActiveItem(ke))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,L.O)(this._directDescendantItems),(0,O.w)(q=>(0,c.T)(...q.map(J=>J._hovered))))}addItem(ke){}removeItem(ke){}_handleKeydown(ke){const q=ke.keyCode,J=this._keyManager;switch(q){case v.hY:(0,v.Vb)(ke)||(ke.preventDefault(),this.closed.emit("keydown"));break;case v.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case v.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(q===v.LH||q===v.JH)&&J.setFocusOrigin("keyboard"),J.onKeydown(ke)}}focusFirstItem(ke="program"){this.lazyContent?this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>this._focusFirstItem(ke)):this._focusFirstItem(ke)}_focusFirstItem(ke){const q=this._keyManager;if(q.setFocusOrigin(ke).setFirstItemActive(),!q.activeItem&&this._directDescendantItems.length){let J=this._directDescendantItems.first._getHostElement().parentElement;for(;J;){if("menu"===J.getAttribute("role")){J.focus();break}J=J.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ke){const q=Math.min(this._baseElevation+ke,24),J=`${this._elevationPrefix}${q}`,oe=Object.keys(this._classList).find(Ce=>Ce.startsWith(this._elevationPrefix));(!oe||oe===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[J]=!0,this._previousElevation=J)}setPositionClasses(ke=this.xPosition,q=this.yPosition){const J=this._classList;J["mat-menu-before"]="before"===ke,J["mat-menu-after"]="after"===ke,J["mat-menu-above"]="above"===q,J["mat-menu-below"]="below"===q}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ke){this._animationDone.next(ke),this._isAnimating=!1}_onAnimationStart(ke){this._isAnimating=!0,"enter"===ke.toState&&0===this._keyManager.activeItemIndex&&(ke.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,L.O)(this._allItems)).subscribe(ke=>{this._directDescendantItems.reset(ke.filter(q=>q._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return he.\u0275fac=function(ke){return new(ke||he)(C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(ye))},he.\u0275dir=C.lG2({type:he,contentQueries:function(ke,q,J){if(1&ke&&(C.Suo(J,u,5),C.Suo(J,U,5),C.Suo(J,U,4)),2&ke){let oe;C.iGM(oe=C.CRH())&&(q.lazyContent=oe.first),C.iGM(oe=C.CRH())&&(q._allItems=oe),C.iGM(oe=C.CRH())&&(q.items=oe)}},viewQuery:function(ke,q){if(1&ke&&C.Gf(C.Rgc,5),2&ke){let J;C.iGM(J=C.CRH())&&(q.templateRef=J.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),he})(),Oe=(()=>{class he extends Be{constructor(ke,q,J){super(ke,q,J),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return he.\u0275fac=function(ke){return new(ke||he)(C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(ye))},he.\u0275cmp=C.Xpm({type:he,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ke,q){2&ke&&C.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[C._Bn([{provide:Z,useExisting:he}]),C.qOj],ngContentSelectors:pe,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(ke,q){1&ke&&(C.F$t(),C.YNc(0,y,3,6,"ng-template"))},directives:[j.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[i.transformMenu,i.fadeInItems]},changeDetection:0}),he})();const B=new C.OlP("mat-menu-scroll-strategy"),we={provide:B,deps:[ee.aV],useFactory:function(he){return()=>he.scrollStrategies.reposition()}},We=(0,me.i$)({passive:!0});let vt=(()=>{class he{constructor(ke,q,J,oe,Ce,Ue,ht,it){this._overlay=ke,this._element=q,this._viewContainerRef=J,this._menuItemInstance=Ue,this._dir=ht,this._focusMonitor=it,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=M.w0.EMPTY,this._hoverSubscription=M.w0.EMPTY,this._menuCloseSubscription=M.w0.EMPTY,this._handleTouchStart=ft=>{(0,e.yG)(ft)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new C.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new C.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=oe,this._parentMaterialMenu=Ce instanceof Be?Ce:void 0,q.nativeElement.addEventListener("touchstart",this._handleTouchStart,We),Ue&&(Ue._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ke){this.menu=ke}get menu(){return this._menu}set menu(ke){ke!==this._menu&&(this._menu=ke,this._menuCloseSubscription.unsubscribe(),ke&&(this._menuCloseSubscription=ke.close.subscribe(q=>{this._destroyMenu(q),("click"===q||"tab"===q)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(q)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,We),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const ke=this._createOverlay(),q=ke.getConfig();this._setPosition(q.positionStrategy),q.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,ke.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Be&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(ke,q){this._focusMonitor&&ke?this._focusMonitor.focusVia(this._element,ke,q):this._element.nativeElement.focus(q)}updatePosition(){var ke;null===(ke=this._overlayRef)||void 0===ke||ke.updatePosition()}_destroyMenu(ke){if(!this._overlayRef||!this.menuOpen)return;const q=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ke||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,q instanceof Be?(q._resetAnimation(),q.lazyContent?q._animationDone.pipe((0,E.h)(J=>"void"===J.toState),(0,A.q)(1),(0,k.R)(q.lazyContent._attached)).subscribe({next:()=>q.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),q.lazyContent&&q.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let ke=0,q=this.menu.parentMenu;for(;q;)ke++,q=q.parentMenu;this.menu.setElevation(ke)}}_setIsMenuOpen(ke){this._menuOpen=ke,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ke)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const ke=this._getOverlayConfig();this._subscribeToPositions(ke.positionStrategy),this._overlayRef=this._overlay.create(ke),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ee.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(ke){this.menu.setPositionClasses&&ke.positionChanges.subscribe(q=>{this.menu.setPositionClasses("start"===q.connectionPair.overlayX?"after":"before","top"===q.connectionPair.overlayY?"below":"above")})}_setPosition(ke){let[q,J]="before"===this.menu.xPosition?["end","start"]:["start","end"],[oe,Ce]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Ue,ht]=[oe,Ce],[it,ft]=[q,J],nt=0;this.triggersSubmenu()?(ft=q="before"===this.menu.xPosition?"start":"end",J=it="end"===q?"start":"end",nt="bottom"===oe?8:-8):this.menu.overlapTrigger||(Ue="top"===oe?"bottom":"top",ht="top"===Ce?"bottom":"top"),ke.withPositions([{originX:q,originY:Ue,overlayX:it,overlayY:oe,offsetY:nt},{originX:J,originY:Ue,overlayX:ft,overlayY:oe,offsetY:nt},{originX:q,originY:ht,overlayX:it,overlayY:Ce,offsetY:-nt},{originX:J,originY:ht,overlayX:ft,overlayY:Ce,offsetY:-nt}])}_menuClosingActions(){const ke=this._overlayRef.backdropClick(),q=this._overlayRef.detachments(),J=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,N.of)(),oe=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,E.h)(Ce=>Ce!==this._menuItemInstance),(0,E.h)(()=>this._menuOpen)):(0,N.of)();return(0,c.T)(ke,J,oe,q)}_handleMousedown(ke){(0,e.X6)(ke)||(this._openedBy=0===ke.button?"mouse":void 0,this.triggersSubmenu()&&ke.preventDefault())}_handleKeydown(ke){const q=ke.keyCode;(q===v.K5||q===v.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(q===v.SV&&"ltr"===this.dir||q===v.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ke){this.triggersSubmenu()?(ke.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,E.h)(ke=>ke===this._menuItemInstance&&!ke.disabled),(0,w.g)(0,o.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Be&&this.menu._isAnimating?this.menu._animationDone.pipe((0,A.q)(1),(0,w.g)(0,o.E),(0,k.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new W.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return he.\u0275fac=function(ke){return new(ke||he)(C.Y36(ee.aV),C.Y36(C.SBq),C.Y36(C.s_b),C.Y36(B),C.Y36(Z,8),C.Y36(U,10),C.Y36(ce.Is,8),C.Y36(e.tE))},he.\u0275dir=C.lG2({type:he,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ke,q){1&ke&&C.NdJ("click",function(oe){return q._handleClick(oe)})("mousedown",function(oe){return q._handleMousedown(oe)})("keydown",function(oe){return q._handleKeydown(oe)}),2&ke&&C.uIk("aria-expanded",q.menuOpen||null)("aria-controls",q.menuOpen?q.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),he})(),Pe=(()=>{class he extends vt{}return he.\u0275fac=function(){let Ee;return function(q){return(Ee||(Ee=C.n5z(he)))(q||he)}}(),he.\u0275dir=C.lG2({type:he,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[C.qOj]}),he})(),Ve=(()=>{class he{}return he.\u0275fac=function(ke){return new(ke||he)},he.\u0275mod=C.oAB({type:he}),he.\u0275inj=C.cJS({providers:[we],imports:[[j.ez,$.BQ,$.si,ee.U8],le.ZD,$.BQ]}),he})()},6087:(Ze,K,m)=>{"use strict";m.d(K,{NW:()=>te,ye:()=>V,TU:()=>re});var e=m(9808),t=m(5e3),v=m(508),C=m(7423),s=m(4107),M=m(7238),c=m(3191),N=m(7579),o=m(7322);function L(pe,y){if(1&pe&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&pe){const i=y.$implicit;t.Q6J("value",i),t.xp6(1),t.hij(" ",i," ")}}function O(pe,y){if(1&pe){const i=t.EpF();t.TgZ(0,"mat-form-field",16),t.TgZ(1,"mat-select",17),t.NdJ("selectionChange",function(p){return t.CHM(i),t.oxw(2)._changePageSize(p.value)}),t.YNc(2,L,2,2,"mat-option",18),t.qZA(),t.qZA()}if(2&pe){const i=t.oxw(2);t.Q6J("appearance",i._formFieldAppearance)("color",i.color),t.xp6(1),t.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),t.xp6(1),t.Q6J("ngForOf",i._displayedPageSizeOptions)}}function A(pe,y){if(1&pe&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&pe){const i=t.oxw(2);t.xp6(1),t.Oqu(i.pageSize)}}function E(pe,y){if(1&pe&&(t.TgZ(0,"div",12),t.TgZ(1,"div",13),t._uU(2),t.qZA(),t.YNc(3,O,3,6,"mat-form-field",14),t.YNc(4,A,2,1,"div",15),t.qZA()),2&pe){const i=t.oxw();t.xp6(2),t.hij(" ",i._intl.itemsPerPageLabel," "),t.xp6(1),t.Q6J("ngIf",i._displayedPageSizeOptions.length>1),t.xp6(1),t.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function k(pe,y){if(1&pe){const i=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){return t.CHM(i),t.oxw().firstPage()}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",22),t.qZA(),t.qZA()}if(2&pe){const i=t.oxw();t.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),t.uIk("aria-label",i._intl.firstPageLabel)}}function w(pe,y){if(1&pe){const i=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"button",23),t.NdJ("click",function(){return t.CHM(i),t.oxw().lastPage()}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",24),t.qZA(),t.qZA()}if(2&pe){const i=t.oxw();t.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),t.uIk("aria-label",i._intl.lastPageLabel)}}let V=(()=>{class pe{constructor(){this.changes=new N.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(i,a,p)=>{if(0==p||0==a)return`0 of ${p}`;const u=i*a;return`${u+1} \u2013 ${u<(p=Math.max(p,0))?Math.min(u+a,p):u+a} of ${p}`}}}return pe.\u0275fac=function(i){return new(i||pe)},pe.\u0275prov=t.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})();const j={provide:V,deps:[[new t.FiY,new t.tp0,V]],useFactory:function(pe){return pe||new V}},me=new t.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),ce=(0,v.Id)((0,v.dB)(class{}));let le=(()=>{class pe extends ce{constructor(i,a,p){if(super(),this._intl=i,this._changeDetectorRef=a,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new t.vpe,this._intlChanges=i.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),p){const{pageSize:u,pageSizeOptions:_,hidePageSize:D,showFirstLastButtons:I}=p;null!=u&&(this._pageSize=u),null!=_&&(this._pageSizeOptions=_),null!=D&&(this._hidePageSize=D),null!=I&&(this._showFirstLastButtons=I)}}get pageIndex(){return this._pageIndex}set pageIndex(i){this._pageIndex=Math.max((0,c.su)(i),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(i){this._length=(0,c.su)(i),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(i){this._pageSize=Math.max((0,c.su)(i),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(i){this._pageSizeOptions=(i||[]).map(a=>(0,c.su)(a)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(i){this._hidePageSize=(0,c.Ig)(i)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(i){this._showFirstLastButtons=(0,c.Ig)(i)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex++,this._emitPageEvent(i)}previousPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex--,this._emitPageEvent(i)}firstPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=0,this._emitPageEvent(i)}lastPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(i)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const i=this.getNumberOfPages()-1;return this.pageIndex<i&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(i){const p=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/i)||0,this.pageSize=i,this._emitPageEvent(p)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){!this._initialized||(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((i,a)=>i-a),this._changeDetectorRef.markForCheck())}_emitPageEvent(i){this.page.emit({previousPageIndex:i,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return pe.\u0275fac=function(i){t.$Z()},pe.\u0275dir=t.lG2({type:pe,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[t.qOj]}),pe})(),te=(()=>{class pe extends le{constructor(i,a,p){super(i,a,p),p&&null!=p.formFieldAppearance&&(this._formFieldAppearance=p.formFieldAppearance)}}return pe.\u0275fac=function(i){return new(i||pe)(t.Y36(V),t.Y36(t.sBO),t.Y36(me,8))},pe.\u0275cmp=t.Xpm({type:pe,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[t.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,a){1&i&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,E,5,3,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._uU(5),t.qZA(),t.YNc(6,k,3,5,"button",5),t.TgZ(7,"button",6),t.NdJ("click",function(){return a.previousPage()}),t.O4$(),t.TgZ(8,"svg",7),t._UZ(9,"path",8),t.qZA(),t.qZA(),t.kcU(),t.TgZ(10,"button",9),t.NdJ("click",function(){return a.nextPage()}),t.O4$(),t.TgZ(11,"svg",7),t._UZ(12,"path",10),t.qZA(),t.qZA(),t.YNc(13,w,3,5,"button",11),t.qZA(),t.qZA(),t.qZA()),2&i&&(t.xp6(2),t.Q6J("ngIf",!a.hidePageSize),t.xp6(3),t.hij(" ",a._intl.getRangeLabel(a.pageIndex,a.pageSize,a.length)," "),t.xp6(1),t.Q6J("ngIf",a.showFirstLastButtons),t.xp6(1),t.Q6J("matTooltip",a._intl.previousPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("matTooltipPosition","above")("disabled",a._previousButtonsDisabled()),t.uIk("aria-label",a._intl.previousPageLabel),t.xp6(3),t.Q6J("matTooltip",a._intl.nextPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("matTooltipPosition","above")("disabled",a._nextButtonsDisabled()),t.uIk("aria-label",a._intl.nextPageLabel),t.xp6(3),t.Q6J("ngIf",a.showFirstLastButtons))},directives:[e.O5,C.lW,M.gM,o.KE,s.gD,e.sg,v.ey],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),pe})(),re=(()=>{class pe{}return pe.\u0275fac=function(i){return new(i||pe)},pe.\u0275mod=t.oAB({type:pe}),pe.\u0275inj=t.cJS({providers:[j],imports:[[e.ez,C.ot,s.LD,M.AV,v.BQ]]}),pe})()},5899:(Ze,K,m)=>{"use strict";m.d(K,{pW:()=>w,Cv:()=>W});var e=m(5e3),t=m(9808),v=m(508),C=m(3191),s=m(6360),M=m(727),c=m(4968),N=m(9300);const o=["primaryValueBar"],L=(0,v.pj)(class{constructor(j){this._elementRef=j}},"primary"),O=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function(){const j=(0,e.f3M)(t.K0),$=j?j.location:null;return{getPathname:()=>$?$.pathname+$.search:""}}}),E=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let k=0,w=(()=>{class j extends L{constructor(ee,me,ce,le,te){super(ee),this._ngZone=me,this._animationMode=ce,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._animationEndSubscription=M.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+k++;const re=le?le.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${re}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===ce,te&&(te.color&&(this.color=this.defaultColor=te.color),this.mode=te.mode||this.mode)}get value(){return this._value}set value(ee){this._value=V((0,C.su)(ee)||0)}get bufferValue(){return this._bufferValue}set bufferValue(ee){this._bufferValue=V(ee||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const ee=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,c.R)(ee,"transitionend").pipe((0,N.h)(me=>me.target===ee)).subscribe(()=>{("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return j.\u0275fac=function(ee){return new(ee||j)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(s.Qb,8),e.Y36(O,8),e.Y36(E,8))},j.\u0275cmp=e.Xpm({type:j,selectors:[["mat-progress-bar"]],viewQuery:function(ee,me){if(1&ee&&e.Gf(o,5),2&ee){let ce;e.iGM(ce=e.CRH())&&(me._primaryValueBar=ce.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(ee,me){2&ee&&(e.uIk("aria-valuenow","indeterminate"===me.mode||"query"===me.mode?null:me.value)("mode",me.mode),e.ekj("_mat-animation-noopable",me._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(ee,me){1&ee&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1),e.TgZ(2,"defs"),e.TgZ(3,"pattern",2),e._UZ(4,"circle",3),e.qZA(),e.qZA(),e._UZ(5,"rect",4),e.qZA(),e.kcU(),e._UZ(6,"div",5),e._UZ(7,"div",6,7),e._UZ(9,"div",8),e.qZA()),2&ee&&(e.xp6(3),e.Q6J("id",me.progressbarId),e.xp6(2),e.uIk("fill",me._rectangleFillValue),e.xp6(1),e.Q6J("ngStyle",me._bufferTransform()),e.xp6(1),e.Q6J("ngStyle",me._primaryTransform()))},directives:[t.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),j})();function V(j,$=0,ee=100){return Math.max($,Math.min(ee,j))}let W=(()=>{class j{}return j.\u0275fac=function(ee){return new(ee||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[t.ez,v.BQ],v.BQ]}),j})()},773:(Ze,K,m)=>{"use strict";m.d(K,{Cq:()=>ee,$g:()=>$});var e=m(5e3),t=m(9808),v=m(508),C=m(3191),s=m(925),M=m(6360);function c(me,ce){if(1&me&&(e.O4$(),e._UZ(0,"circle",3)),2&me){const le=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+le._spinnerAnimationLabel)("stroke-dashoffset",le._getStrokeDashOffset(),"px")("stroke-dasharray",le._getStrokeCircumference(),"px")("stroke-width",le._getCircleStrokeWidth(),"%"),e.uIk("r",le._getCircleRadius())}}function N(me,ce){if(1&me&&(e.O4$(),e._UZ(0,"circle",3)),2&me){const le=e.oxw();e.Udp("stroke-dashoffset",le._getStrokeDashOffset(),"px")("stroke-dasharray",le._getStrokeCircumference(),"px")("stroke-width",le._getCircleStrokeWidth(),"%"),e.uIk("r",le._getCircleRadius())}}function o(me,ce){if(1&me&&(e.O4$(),e._UZ(0,"circle",3)),2&me){const le=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+le._spinnerAnimationLabel)("stroke-dashoffset",le._getStrokeDashOffset(),"px")("stroke-dasharray",le._getStrokeCircumference(),"px")("stroke-width",le._getCircleStrokeWidth(),"%"),e.uIk("r",le._getCircleRadius())}}function L(me,ce){if(1&me&&(e.O4$(),e._UZ(0,"circle",3)),2&me){const le=e.oxw();e.Udp("stroke-dashoffset",le._getStrokeDashOffset(),"px")("stroke-dasharray",le._getStrokeCircumference(),"px")("stroke-width",le._getCircleStrokeWidth(),"%"),e.uIk("r",le._getCircleRadius())}}const k=(0,v.pj)(class{constructor(me){this._elementRef=me}},"primary"),w=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});class j extends k{constructor(ce,le,te,re,pe){super(ce),this._document=te,this._diameter=100,this._value=0,this.mode="determinate";const y=j._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),y.has(te.head)||y.set(te.head,new Set([100])),this._noopAnimations="NoopAnimations"===re&&!!pe&&!pe._forceAnimations,pe&&(pe.diameter&&(this.diameter=pe.diameter),pe.strokeWidth&&(this.strokeWidth=pe.strokeWidth))}get diameter(){return this._diameter}set diameter(ce){this._diameter=(0,C.su)(ce),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(ce){this._strokeWidth=(0,C.su)(ce)}get value(){return"determinate"===this.mode?this._value:0}set value(ce){this._value=Math.max(0,Math.min(100,(0,C.su)(ce)))}ngOnInit(){const ce=this._elementRef.nativeElement;this._styleRoot=(0,s.kV)(ce)||this._document.head,this._attachStyleNode(),ce.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const ce=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${ce} ${ce}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const ce=this._styleRoot,le=this._diameter,te=j._diameters;let re=te.get(ce);if(!re||!re.has(le)){const pe=this._document.createElement("style");pe.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),pe.textContent=this._getAnimationText(),ce.appendChild(pe),re||(re=new Set,te.set(ce,re)),re.add(le)}}_getAnimationText(){const ce=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*ce).replace(/END_VALUE/g,""+.2*ce).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}j._diameters=new WeakMap,j.\u0275fac=function(ce){return new(ce||j)(e.Y36(e.SBq),e.Y36(s.t4),e.Y36(t.K0,8),e.Y36(M.Qb,8),e.Y36(w))},j.\u0275cmp=e.Xpm({type:j,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(ce,le){2&ce&&(e.uIk("aria-valuemin","determinate"===le.mode?0:null)("aria-valuemax","determinate"===le.mode?100:null)("aria-valuenow","determinate"===le.mode?le.value:null)("mode",le.mode),e.Udp("width",le.diameter,"px")("height",le.diameter,"px"),e.ekj("_mat-animation-noopable",le._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(ce,le){1&ce&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,c,1,9,"circle",1),e.YNc(2,N,1,7,"circle",2),e.qZA()),2&ce&&(e.Udp("width",le.diameter,"px")("height",le.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===le.mode),e.uIk("viewBox",le._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[t.RF,t.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let $=(()=>{class me extends j{constructor(le,te,re,pe,y){super(le,te,re,pe,y),this.mode="indeterminate"}}return me.\u0275fac=function(le){return new(le||me)(e.Y36(e.SBq),e.Y36(s.t4),e.Y36(t.K0,8),e.Y36(M.Qb,8),e.Y36(w))},me.\u0275cmp=e.Xpm({type:me,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(le,te){2&le&&(e.Udp("width",te.diameter,"px")("height",te.diameter,"px"),e.ekj("_mat-animation-noopable",te._noopAnimations))},inputs:{color:"color"},features:[e.qOj],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(le,te){1&le&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,o,1,9,"circle",1),e.YNc(2,L,1,7,"circle",2),e.qZA()),2&le&&(e.Udp("width",te.diameter,"px")("height",te.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===te.mode),e.uIk("viewBox",te._getViewBox()),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[t.RF,t.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),me})(),ee=(()=>{class me{}return me.\u0275fac=function(le){return new(le||me)},me.\u0275mod=e.oAB({type:me}),me.\u0275inj=e.cJS({imports:[[v.BQ,t.ez],v.BQ]}),me})()},9814:(Ze,K,m)=>{"use strict";m.d(K,{U0:()=>ce,VQ:()=>j,Fk:()=>le});var e=m(5e3),t=m(508),v=m(3191),C=m(3075),s=m(6360),M=m(5664),c=m(449);const N=["input"],o=function(te){return{enterDuration:te}},L=["*"],O=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let E=0;const k={provide:C.JU,useExisting:(0,e.Gpc)(()=>j),multi:!0};class w{constructor(re,pe){this.source=re,this.value=pe}}const V=new e.OlP("MatRadioGroup");let W=(()=>{class te{constructor(pe){this._changeDetector=pe,this._value=null,this._name="mat-radio-group-"+E++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(pe){this._name=pe,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(pe){this._labelPosition="before"===pe?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(pe){this._value!==pe&&(this._value=pe,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(pe){this._selected=pe,this.value=pe?pe.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(pe){this._disabled=(0,v.Ig)(pe),this._markRadiosForCheck()}get required(){return this._required}set required(pe){this._required=(0,v.Ig)(pe),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(pe=>{pe.name=this.name,pe._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(y=>{y.checked=this.value===y.value,y.checked&&(this._selected=y)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new w(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(pe=>pe._markForCheck())}writeValue(pe){this.value=pe,this._changeDetector.markForCheck()}registerOnChange(pe){this._controlValueAccessorChangeFn=pe}registerOnTouched(pe){this.onTouched=pe}setDisabledState(pe){this.disabled=pe,this._changeDetector.markForCheck()}}return te.\u0275fac=function(pe){return new(pe||te)(e.Y36(e.sBO))},te.\u0275dir=e.lG2({type:te,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),te})(),j=(()=>{class te extends W{}return te.\u0275fac=function(){let re;return function(y){return(re||(re=e.n5z(te)))(y||te)}}(),te.\u0275dir=e.lG2({type:te,selectors:[["mat-radio-group"]],contentQueries:function(pe,y,i){if(1&pe&&e.Suo(i,ce,5),2&pe){let a;e.iGM(a=e.CRH())&&(y._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([k,{provide:V,useExisting:te}]),e.qOj]}),te})();class ${constructor(re){this._elementRef=re}}const ee=(0,t.Kr)((0,t.sb)($));let me=(()=>{class te extends ee{constructor(pe,y,i,a,p,u,_,D){super(y),this._changeDetector=i,this._focusMonitor=a,this._radioDispatcher=p,this._providerOverride=_,this._uniqueId="mat-radio-"+ ++E,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=pe,this._noopAnimations="NoopAnimations"===u,D&&(this.tabIndex=(0,v.su)(D,0)),this._removeUniqueSelectionListener=p.listen((I,x)=>{I!==this.id&&x===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(pe){const y=(0,v.Ig)(pe);this._checked!==y&&(this._checked=y,y&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!y&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),y&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(pe){this._value!==pe&&(this._value=pe,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===pe),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(pe){this._labelPosition=pe}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(pe){this._setDisabled((0,v.Ig)(pe))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(pe){this._required=(0,v.Ig)(pe)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(pe){this._color=pe}get inputId(){return`${this.id||this._uniqueId}-input`}focus(pe,y){y?this._focusMonitor.focusVia(this._inputElement,y,pe):this._inputElement.nativeElement.focus(pe)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(pe=>{!pe&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new w(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(pe){pe.stopPropagation()}_onInputInteraction(pe){if(pe.stopPropagation(),!this.checked&&!this.disabled){const y=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),y&&this.radioGroup._emitChangeEvent())}}_setDisabled(pe){this._disabled!==pe&&(this._disabled=pe,this._changeDetector.markForCheck())}}return te.\u0275fac=function(pe){e.$Z()},te.\u0275dir=e.lG2({type:te,viewQuery:function(pe,y){if(1&pe&&e.Gf(N,5),2&pe){let i;e.iGM(i=e.CRH())&&(y._inputElement=i.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]}),te})(),ce=(()=>{class te extends me{constructor(pe,y,i,a,p,u,_,D){super(pe,y,i,a,p,u,_,D)}}return te.\u0275fac=function(pe){return new(pe||te)(e.Y36(V,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(M.tE),e.Y36(c.A8),e.Y36(s.Qb,8),e.Y36(O,8),e.$8M("tabindex"))},te.\u0275cmp=e.Xpm({type:te,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(pe,y){1&pe&&e.NdJ("focus",function(){return y._inputElement.nativeElement.focus()}),2&pe&&(e.uIk("tabindex",null)("id",y.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",y.checked)("mat-radio-disabled",y.disabled)("_mat-animation-noopable",y._noopAnimations)("mat-primary","primary"===y.color)("mat-accent","accent"===y.color)("mat-warn","warn"===y.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:L,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(pe,y){if(1&pe&&(e.F$t(),e.TgZ(0,"label",0,1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(a){return y._onInputInteraction(a)})("click",function(a){return y._onInputClick(a)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA(),e.qZA(),e.TgZ(9,"span",9),e.TgZ(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA(),e.qZA()),2&pe){const i=e.MAs(1);e.uIk("for",y.inputId),e.xp6(5),e.Q6J("id",y.inputId)("checked",y.checked)("disabled",y.disabled)("tabIndex",y.tabIndex)("required",y.required),e.uIk("name",y.name)("value",y.value)("aria-label",y.ariaLabel)("aria-labelledby",y.ariaLabelledby)("aria-describedby",y.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",i)("matRippleDisabled",y._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,o,y._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==y.labelPosition)}},directives:[t.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),te})(),le=(()=>{class te{}return te.\u0275fac=function(pe){return new(pe||te)},te.\u0275mod=e.oAB({type:te}),te.\u0275inj=e.cJS({imports:[[t.si,t.BQ],t.BQ]}),te})()},4107:(Ze,K,m)=>{"use strict";m.d(K,{gD:()=>Ve,LD:()=>he,$L:()=>vt});var e=m(9776),t=m(9808),v=m(5e3),C=m(508),s=m(7322),M=m(5303),c=m(5664),N=m(3191),o=m(449),L=m(1159),O=m(3075),A=m(7579),E=m(9770),k=m(6451),w=m(8675),V=m(3900),W=m(5698),j=m(9300),$=m(4004),ee=m(1884),me=m(2722),ce=m(1777),le=m(226);const te=["trigger"],re=["panel"];function pe(Ee,ke){if(1&Ee&&(v.TgZ(0,"span",8),v._uU(1),v.qZA()),2&Ee){const q=v.oxw();v.xp6(1),v.Oqu(q.placeholder)}}function y(Ee,ke){if(1&Ee&&(v.TgZ(0,"span",12),v._uU(1),v.qZA()),2&Ee){const q=v.oxw(2);v.xp6(1),v.Oqu(q.triggerValue)}}function i(Ee,ke){1&Ee&&v.Hsn(0,0,["*ngSwitchCase","true"])}function a(Ee,ke){if(1&Ee&&(v.TgZ(0,"span",9),v.YNc(1,y,2,1,"span",10),v.YNc(2,i,1,0,"ng-content",11),v.qZA()),2&Ee){const q=v.oxw();v.Q6J("ngSwitch",!!q.customTrigger),v.xp6(2),v.Q6J("ngSwitchCase",!0)}}function p(Ee,ke){if(1&Ee){const q=v.EpF();v.TgZ(0,"div",13),v.TgZ(1,"div",14,15),v.NdJ("@transformPanel.done",function(oe){return v.CHM(q),v.oxw()._panelDoneAnimatingStream.next(oe.toState)})("keydown",function(oe){return v.CHM(q),v.oxw()._handleKeydown(oe)}),v.Hsn(3,1),v.qZA(),v.qZA()}if(2&Ee){const q=v.oxw();v.Q6J("@transformPanelWrap",void 0),v.xp6(1),v.Gre("mat-select-panel ",q._getPanelTheme(),""),v.Udp("transform-origin",q._transformOrigin)("font-size",q._triggerFontSize,"px"),v.Q6J("ngClass",q.panelClass)("@transformPanel",q.multiple?"showing-multiple":"showing"),v.uIk("id",q.id+"-panel")("aria-multiselectable",q.multiple)("aria-label",q.ariaLabel||null)("aria-labelledby",q._getPanelAriaLabelledby())}}const u=[[["mat-select-trigger"]],"*"],_=["mat-select-trigger","*"],D={transformPanelWrap:(0,ce.X$)("transformPanelWrap",[(0,ce.eR)("* => void",(0,ce.IO)("@transformPanel",[(0,ce.pV)()],{optional:!0}))]),transformPanel:(0,ce.X$)("transformPanel",[(0,ce.SB)("void",(0,ce.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,ce.SB)("showing",(0,ce.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ce.SB)("showing-multiple",(0,ce.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ce.eR)("void => *",(0,ce.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ce.eR)("* => void",(0,ce.jt)("100ms 25ms linear",(0,ce.oB)({opacity:0})))])};let b=0;const Z=256,Be=new v.OlP("mat-select-scroll-strategy"),B=new v.OlP("MAT_SELECT_CONFIG"),Me={provide:Be,deps:[e.aV],useFactory:function(Ee){return()=>Ee.scrollStrategies.reposition()}};class we{constructor(ke,q){this.source=ke,this.value=q}}const ae=(0,C.Kr)((0,C.sb)((0,C.Id)((0,C.FD)(class{constructor(Ee,ke,q,J,oe){this._elementRef=Ee,this._defaultErrorStateMatcher=ke,this._parentForm=q,this._parentFormGroup=J,this.ngControl=oe}})))),We=new v.OlP("MatSelectTrigger");let vt=(()=>{class Ee{}return Ee.\u0275fac=function(q){return new(q||Ee)},Ee.\u0275dir=v.lG2({type:Ee,selectors:[["mat-select-trigger"]],features:[v._Bn([{provide:We,useExisting:Ee}])]}),Ee})(),Pe=(()=>{class Ee extends ae{constructor(q,J,oe,Ce,Ue,ht,it,ft,nt,st,wt,Bt,Pt,Vt){var Oi,jt,ti;super(Ue,Ce,it,ft,st),this._viewportRuler=q,this._changeDetectorRef=J,this._ngZone=oe,this._dir=ht,this._parentFormField=nt,this._liveAnnouncer=Pt,this._defaultOptions=Vt,this._panelOpen=!1,this._compareWith=(Pi,si)=>Pi===si,this._uid="mat-select-"+b++,this._triggerAriaLabelledBy=null,this._destroy=new A.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+b++,this._panelDoneAnimatingStream=new A.x,this._overlayPanelClass=(null===(Oi=this._defaultOptions)||void 0===Oi?void 0:Oi.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(ti=null===(jt=this._defaultOptions)||void 0===jt?void 0:jt.disableOptionCentering)&&void 0!==ti&&ti,this.ariaLabel="",this.optionSelectionChanges=(0,E.P)(()=>{const Pi=this.options;return Pi?Pi.changes.pipe((0,w.O)(Pi),(0,V.w)(()=>(0,k.T)(...Pi.map(si=>si.onSelectionChange)))):this._ngZone.onStable.pipe((0,W.q)(1),(0,V.w)(()=>this.optionSelectionChanges))}),this.openedChange=new v.vpe,this._openedStream=this.openedChange.pipe((0,j.h)(Pi=>Pi),(0,$.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,j.h)(Pi=>!Pi),(0,$.U)(()=>{})),this.selectionChange=new v.vpe,this.valueChange=new v.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Vt?void 0:Vt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Vt.typeaheadDebounceInterval),this._scrollStrategyFactory=Bt,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(wt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(q){this._placeholder=q,this.stateChanges.next()}get required(){var q,J,oe,Ce;return null!==(Ce=null!==(q=this._required)&&void 0!==q?q:null===(oe=null===(J=this.ngControl)||void 0===J?void 0:J.control)||void 0===oe?void 0:oe.hasValidator(O.kI.required))&&void 0!==Ce&&Ce}set required(q){this._required=(0,N.Ig)(q),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(q){this._multiple=(0,N.Ig)(q)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(q){this._disableOptionCentering=(0,N.Ig)(q)}get compareWith(){return this._compareWith}set compareWith(q){this._compareWith=q,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(q){(q!==this._value||this._multiple&&Array.isArray(q))&&(this.options&&this._setSelectionByValue(q),this._value=q)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(q){this._typeaheadDebounceInterval=(0,N.su)(q)}get id(){return this._id}set id(q){this._id=q||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new o.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ee.x)(),(0,me.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,me.R)(this._destroy)).subscribe(q=>{q.added.forEach(J=>J.select()),q.removed.forEach(J=>J.deselect())}),this.options.changes.pipe((0,w.O)(null),(0,me.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const q=this._getTriggerAriaLabelledby();if(q!==this._triggerAriaLabelledBy){const J=this._elementRef.nativeElement;this._triggerAriaLabelledBy=q,q?J.setAttribute("aria-labelledby",q):J.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(q){q.disabled&&this.stateChanges.next(),q.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(q){this.value=q}registerOnChange(q){this._onChange=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this.disabled=q,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var q,J;return this.multiple?(null===(q=this._selectionModel)||void 0===q?void 0:q.selected)||[]:null===(J=this._selectionModel)||void 0===J?void 0:J.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const q=this._selectionModel.selected.map(J=>J.viewValue);return this._isRtl()&&q.reverse(),q.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(q){this.disabled||(this.panelOpen?this._handleOpenKeydown(q):this._handleClosedKeydown(q))}_handleClosedKeydown(q){const J=q.keyCode,oe=J===L.JH||J===L.LH||J===L.oh||J===L.SV,Ce=J===L.K5||J===L.L_,Ue=this._keyManager;if(!Ue.isTyping()&&Ce&&!(0,L.Vb)(q)||(this.multiple||q.altKey)&&oe)q.preventDefault(),this.open();else if(!this.multiple){const ht=this.selected;Ue.onKeydown(q);const it=this.selected;it&&ht!==it&&this._liveAnnouncer.announce(it.viewValue,1e4)}}_handleOpenKeydown(q){const J=this._keyManager,oe=q.keyCode,Ce=oe===L.JH||oe===L.LH,Ue=J.isTyping();if(Ce&&q.altKey)q.preventDefault(),this.close();else if(Ue||oe!==L.K5&&oe!==L.L_||!J.activeItem||(0,L.Vb)(q))if(!Ue&&this._multiple&&oe===L.A&&q.ctrlKey){q.preventDefault();const ht=this.options.some(it=>!it.disabled&&!it.selected);this.options.forEach(it=>{it.disabled||(ht?it.select():it.deselect())})}else{const ht=J.activeItemIndex;J.onKeydown(q),this._multiple&&Ce&&q.shiftKey&&J.activeItem&&J.activeItemIndex!==ht&&J.activeItem._selectViaInteraction()}else q.preventDefault(),J.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,W.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(q){if(this._selectionModel.selected.forEach(J=>J.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&q)Array.isArray(q),q.forEach(J=>this._selectValue(J)),this._sortValues();else{const J=this._selectValue(q);J?this._keyManager.updateActiveItem(J):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(q){const J=this.options.find(oe=>{if(this._selectionModel.isSelected(oe))return!1;try{return null!=oe.value&&this._compareWith(oe.value,q)}catch(Ce){return!1}});return J&&this._selectionModel.select(J),J}_initKeyManager(){this._keyManager=new c.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,me.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,me.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const q=(0,k.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,me.R)(q)).subscribe(J=>{this._onSelect(J.source,J.isUserInput),J.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,k.T)(...this.options.map(J=>J._stateChanges)).pipe((0,me.R)(q)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(q,J){const oe=this._selectionModel.isSelected(q);null!=q.value||this._multiple?(oe!==q.selected&&(q.selected?this._selectionModel.select(q):this._selectionModel.deselect(q)),J&&this._keyManager.setActiveItem(q),this.multiple&&(this._sortValues(),J&&this.focus())):(q.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(q.value)),oe!==this._selectionModel.isSelected(q)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const q=this.options.toArray();this._selectionModel.sort((J,oe)=>this.sortComparator?this.sortComparator(J,oe,q):q.indexOf(J)-q.indexOf(oe)),this.stateChanges.next()}}_propagateChanges(q){let J=null;J=this.multiple?this.selected.map(oe=>oe.value):this.selected?this.selected.value:q,this._value=J,this.valueChange.emit(J),this._onChange(J),this.selectionChange.emit(this._getChangeEvent(J)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var q;return!this._panelOpen&&!this.disabled&&(null===(q=this.options)||void 0===q?void 0:q.length)>0}focus(q){this._elementRef.nativeElement.focus(q)}_getPanelAriaLabelledby(){var q;if(this.ariaLabel)return null;const J=null===(q=this._parentFormField)||void 0===q?void 0:q.getLabelId();return this.ariaLabelledby?(J?J+" ":"")+this.ariaLabelledby:J}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var q;if(this.ariaLabel)return null;const J=null===(q=this._parentFormField)||void 0===q?void 0:q.getLabelId();let oe=(J?J+" ":"")+this._valueId;return this.ariaLabelledby&&(oe+=" "+this.ariaLabelledby),oe}_panelDoneAnimating(q){this.openedChange.emit(q)}setDescribedByIds(q){this._ariaDescribedby=q.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Ee.\u0275fac=function(q){return new(q||Ee)(v.Y36(M.rL),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(C.rD),v.Y36(v.SBq),v.Y36(le.Is,8),v.Y36(O.F,8),v.Y36(O.sg,8),v.Y36(s.G_,8),v.Y36(O.a5,10),v.$8M("tabindex"),v.Y36(Be),v.Y36(c.Kd),v.Y36(B,8))},Ee.\u0275dir=v.lG2({type:Ee,viewQuery:function(q,J){if(1&q&&(v.Gf(te,5),v.Gf(re,5),v.Gf(e.pI,5)),2&q){let oe;v.iGM(oe=v.CRH())&&(J.trigger=oe.first),v.iGM(oe=v.CRH())&&(J.panel=oe.first),v.iGM(oe=v.CRH())&&(J._overlayDir=oe.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[v.qOj,v.TTD]}),Ee})(),Ve=(()=>{class Ee extends Pe{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(q,J,oe){const Ce=this._getItemHeight();return Math.min(Math.max(0,Ce*q-J+Ce/2),oe)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,me.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(q){const J=(0,C.CB)(q,this.options,this.optionGroups),oe=this._getItemHeight();this.panel.nativeElement.scrollTop=0===q&&1===J?0:(0,C.jH)((q+J)*oe,oe,this.panel.nativeElement.scrollTop,Z)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(q){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(q)}_getChangeEvent(q){return new we(this,q)}_calculateOverlayOffsetX(){const q=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),J=this._viewportRuler.getViewportSize(),oe=this._isRtl(),Ce=this.multiple?56:32;let Ue;if(this.multiple)Ue=40;else if(this.disableOptionCentering)Ue=16;else{let ft=this._selectionModel.selected[0]||this.options.first;Ue=ft&&ft.group?32:16}oe||(Ue*=-1);const ht=0-(q.left+Ue-(oe?Ce:0)),it=q.right+Ue-J.width+(oe?0:Ce);ht>0?Ue+=ht+8:it>0&&(Ue-=it+8),this._overlayDir.offsetX=Math.round(Ue),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(q,J,oe){const Ce=this._getItemHeight(),Ue=(Ce-this._triggerRect.height)/2,ht=Math.floor(Z/Ce);let it;return this.disableOptionCentering?0:(it=0===this._scrollTop?q*Ce:this._scrollTop===oe?(q-(this._getItemCount()-ht))*Ce+(Ce-(this._getItemCount()*Ce-Z)%Ce):J-Ce/2,Math.round(-1*it-Ue))}_checkOverlayWithinViewport(q){const J=this._getItemHeight(),oe=this._viewportRuler.getViewportSize(),Ce=this._triggerRect.top-8,Ue=oe.height-this._triggerRect.bottom-8,ht=Math.abs(this._offsetY),ft=Math.min(this._getItemCount()*J,Z)-ht-this._triggerRect.height;ft>Ue?this._adjustPanelUp(ft,Ue):ht>Ce?this._adjustPanelDown(ht,Ce,q):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(q,J){const oe=Math.round(q-J);this._scrollTop-=oe,this._offsetY-=oe,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(q,J,oe){const Ce=Math.round(q-J);if(this._scrollTop+=Ce,this._offsetY+=Ce,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=oe)return this._scrollTop=oe,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const q=this._getItemHeight(),J=this._getItemCount(),oe=Math.min(J*q,Z),Ue=J*q-oe;let ht;ht=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),ht+=(0,C.CB)(ht,this.options,this.optionGroups);const it=oe/2;this._scrollTop=this._calculateOverlayScroll(ht,it,Ue),this._offsetY=this._calculateOverlayOffsetY(ht,it,Ue),this._checkOverlayWithinViewport(Ue)}_getOriginBasedOnOption(){const q=this._getItemHeight(),J=(q-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-J+q/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Ee.\u0275fac=function(){let ke;return function(J){return(ke||(ke=v.n5z(Ee)))(J||Ee)}}(),Ee.\u0275cmp=v.Xpm({type:Ee,selectors:[["mat-select"]],contentQueries:function(q,J,oe){if(1&q&&(v.Suo(oe,We,5),v.Suo(oe,C.ey,5),v.Suo(oe,C.K7,5)),2&q){let Ce;v.iGM(Ce=v.CRH())&&(J.customTrigger=Ce.first),v.iGM(Ce=v.CRH())&&(J.options=Ce),v.iGM(Ce=v.CRH())&&(J.optionGroups=Ce)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(q,J){1&q&&v.NdJ("keydown",function(Ce){return J._handleKeydown(Ce)})("focus",function(){return J._onFocus()})("blur",function(){return J._onBlur()}),2&q&&(v.uIk("id",J.id)("tabindex",J.tabIndex)("aria-controls",J.panelOpen?J.id+"-panel":null)("aria-expanded",J.panelOpen)("aria-label",J.ariaLabel||null)("aria-required",J.required.toString())("aria-disabled",J.disabled.toString())("aria-invalid",J.errorState)("aria-describedby",J._ariaDescribedby||null)("aria-activedescendant",J._getAriaActiveDescendant()),v.ekj("mat-select-disabled",J.disabled)("mat-select-invalid",J.errorState)("mat-select-required",J.required)("mat-select-empty",J.empty)("mat-select-multiple",J.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v._Bn([{provide:s.Eo,useExisting:Ee},{provide:C.HF,useExisting:Ee}]),v.qOj],ngContentSelectors:_,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(q,J){if(1&q&&(v.F$t(u),v.TgZ(0,"div",0,1),v.NdJ("click",function(){return J.toggle()}),v.TgZ(3,"div",2),v.YNc(4,pe,2,1,"span",3),v.YNc(5,a,3,2,"span",4),v.qZA(),v.TgZ(6,"div",5),v._UZ(7,"div",6),v.qZA(),v.qZA(),v.YNc(8,p,4,14,"ng-template",7),v.NdJ("backdropClick",function(){return J.close()})("attach",function(){return J._onAttached()})("detach",function(){return J.close()})),2&q){const oe=v.MAs(1);v.uIk("aria-owns",J.panelOpen?J.id+"-panel":null),v.xp6(3),v.Q6J("ngSwitch",J.empty),v.uIk("id",J._valueId),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngSwitchCase",!1),v.xp6(3),v.Q6J("cdkConnectedOverlayPanelClass",J._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",J._scrollStrategy)("cdkConnectedOverlayOrigin",oe)("cdkConnectedOverlayOpen",J.panelOpen)("cdkConnectedOverlayPositions",J._positions)("cdkConnectedOverlayMinWidth",null==J._triggerRect?null:J._triggerRect.width)("cdkConnectedOverlayOffsetY",J._offsetY)}},directives:[e.xu,t.RF,t.n9,e.pI,t.ED,t.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[D.transformPanelWrap,D.transformPanel]},changeDetection:0}),Ee})(),he=(()=>{class Ee{}return Ee.\u0275fac=function(q){return new(q||Ee)},Ee.\u0275mod=v.oAB({type:Ee}),Ee.\u0275inj=v.cJS({providers:[Me],imports:[[t.ez,e.U8,C.Ng,C.BQ],M.ZD,s.lN,C.Ng,C.BQ]}),Ee})()},2638:(Ze,K,m)=>{"use strict";m.d(K,{JX:()=>xe,TM:()=>Ne,Rh:()=>ye,SJ:()=>Be});var e=m(925),t=m(5303),v=m(9808),C=m(5e3),s=m(508),M=m(3191),c=m(1159),N=m(7579),o=m(4968),L=m(6451),O=m(9300),A=m(4004),E=m(9718),k=m(2722),w=m(1884),V=m(5698),W=m(8675),j=m(8372),$=m(1777),ee=m(6360),me=m(5664),ce=m(226);const le=["*"];function te(Oe,B){if(1&Oe){const Me=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){return C.CHM(Me),C.oxw()._onBackdropClicked()}),C.qZA()}if(2&Oe){const Me=C.oxw();C.ekj("mat-drawer-shown",Me._isShowingBackdrop())}}function re(Oe,B){1&Oe&&(C.TgZ(0,"mat-drawer-content"),C.Hsn(1,2),C.qZA())}const pe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],y=["mat-drawer","mat-drawer-content","*"];function i(Oe,B){if(1&Oe){const Me=C.EpF();C.TgZ(0,"div",2),C.NdJ("click",function(){return C.CHM(Me),C.oxw()._onBackdropClicked()}),C.qZA()}if(2&Oe){const Me=C.oxw();C.ekj("mat-drawer-shown",Me._isShowingBackdrop())}}function a(Oe,B){1&Oe&&(C.TgZ(0,"mat-sidenav-content",3),C.Hsn(1,2),C.qZA())}const p=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],u=["mat-sidenav","mat-sidenav-content","*"],D={transformDrawer:(0,$.X$)("transform",[(0,$.SB)("open, open-instant",(0,$.oB)({transform:"none",visibility:"visible"})),(0,$.SB)("void",(0,$.oB)({"box-shadow":"none",visibility:"hidden"})),(0,$.eR)("void => open-instant",(0,$.jt)("0ms")),(0,$.eR)("void <=> open, open-instant => void",(0,$.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},x=new C.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),r=new C.OlP("MAT_DRAWER_CONTAINER");let Z=(()=>{class Oe extends t.PQ{constructor(Me,we,ae,We,vt){super(ae,We,vt),this._changeDetectorRef=Me,this._container=we}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Oe.\u0275fac=function(Me){return new(Me||Oe)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>U)),C.Y36(C.SBq),C.Y36(t.mF),C.Y36(C.R0b))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Me,we){2&Me&&C.Udp("margin-left",we._container._contentMargins.left,"px")("margin-right",we._container._contentMargins.right,"px")},features:[C.qOj],ngContentSelectors:le,decls:1,vars:0,template:function(Me,we){1&Me&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),Oe})(),P=(()=>{class Oe{constructor(Me,we,ae,We,vt,Pe,Ve,he){this._elementRef=Me,this._focusTrapFactory=we,this._focusMonitor=ae,this._platform=We,this._ngZone=vt,this._interactivityChecker=Pe,this._doc=Ve,this._container=he,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new N.x,this._animationEnd=new N.x,this._animationState="void",this.openedChange=new C.vpe(!0),this._openedStream=this.openedChange.pipe((0,O.h)(Ee=>Ee),(0,A.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,O.h)(Ee=>Ee.fromState!==Ee.toState&&0===Ee.toState.indexOf("open")),(0,E.h)(void 0)),this._closedStream=this.openedChange.pipe((0,O.h)(Ee=>!Ee),(0,A.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,O.h)(Ee=>Ee.fromState!==Ee.toState&&"void"===Ee.toState),(0,E.h)(void 0)),this._destroyed=new N.x,this.onPositionChanged=new C.vpe,this._modeChanged=new N.x,this.openedChange.subscribe(Ee=>{Ee?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,o.R)(this._elementRef.nativeElement,"keydown").pipe((0,O.h)(Ee=>Ee.keyCode===c.hY&&!this.disableClose&&!(0,c.Vb)(Ee)),(0,k.R)(this._destroyed)).subscribe(Ee=>this._ngZone.run(()=>{this.close(),Ee.stopPropagation(),Ee.preventDefault()}))}),this._animationEnd.pipe((0,w.x)((Ee,ke)=>Ee.fromState===ke.fromState&&Ee.toState===ke.toState)).subscribe(Ee=>{const{fromState:ke,toState:q}=Ee;(0===q.indexOf("open")&&"void"===ke||"void"===q&&0===ke.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Me){(Me="end"===Me?"end":"start")!=this._position&&(this._position=Me,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Me){this._mode=Me,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Me){this._disableClose=(0,M.Ig)(Me)}get autoFocus(){const Me=this._autoFocus;return null==Me?"side"===this.mode?"dialog":"first-tabbable":Me}set autoFocus(Me){("true"===Me||"false"===Me)&&(Me=(0,M.Ig)(Me)),this._autoFocus=Me}get opened(){return this._opened}set opened(Me){this.toggle((0,M.Ig)(Me))}_forceFocus(Me,we){this._interactivityChecker.isFocusable(Me)||(Me.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{Me.addEventListener("blur",()=>Me.removeAttribute("tabindex")),Me.addEventListener("mousedown",()=>Me.removeAttribute("tabindex"))})),Me.focus(we)}_focusByCssSelector(Me,we){let ae=this._elementRef.nativeElement.querySelector(Me);ae&&this._forceFocus(ae,we)}_takeFocus(){if(!this._focusTrap)return;const Me=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(we=>{!we&&"function"==typeof this._elementRef.nativeElement.focus&&Me.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Me){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Me):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){var Me;const we=null===(Me=this._doc)||void 0===Me?void 0:Me.activeElement;return!!we&&this._elementRef.nativeElement.contains(we)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Me){return this.toggle(!0,Me)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Me=!this.opened,we){Me&&we&&(this._openedVia=we);const ae=this._setOpen(Me,!Me&&this._isFocusWithinDrawer(),this._openedVia||"program");return Me||(this._openedVia=null),ae}_setOpen(Me,we,ae){return this._opened=Me,Me?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",we&&this._restoreFocus(ae)),this._updateFocusTrapState(),new Promise(We=>{this.openedChange.pipe((0,V.q)(1)).subscribe(vt=>We(vt?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}}return Oe.\u0275fac=function(Me){return new(Me||Oe)(C.Y36(C.SBq),C.Y36(me.qV),C.Y36(me.tE),C.Y36(e.t4),C.Y36(C.R0b),C.Y36(me.ic),C.Y36(v.K0,8),C.Y36(r,8))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Me,we){1&Me&&C.WFA("@transform.start",function(We){return we._animationStarted.next(We)})("@transform.done",function(We){return we._animationEnd.next(We)}),2&Me&&(C.uIk("align",null),C.d8E("@transform",we._animationState),C.ekj("mat-drawer-end","end"===we.position)("mat-drawer-over","over"===we.mode)("mat-drawer-push","push"===we.mode)("mat-drawer-side","side"===we.mode)("mat-drawer-opened",we.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:le,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Me,we){1&Me&&(C.F$t(),C.TgZ(0,"div",0),C.Hsn(1),C.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[D.transformDrawer]},changeDetection:0}),Oe})(),U=(()=>{class Oe{constructor(Me,we,ae,We,vt,Pe=!1,Ve){this._dir=Me,this._element=we,this._ngZone=ae,this._changeDetectorRef=We,this._animationMode=Ve,this._drawers=new C.n_E,this.backdropClick=new C.vpe,this._destroyed=new N.x,this._doCheckSubject=new N.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new N.x,Me&&Me.change.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),vt.change().pipe((0,k.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Pe}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Me){this._autosize=(0,M.Ig)(Me)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(Me){this._backdropOverride=null==Me?null:(0,M.Ig)(Me)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,W.O)(this._allDrawers),(0,k.R)(this._destroyed)).subscribe(Me=>{this._drawers.reset(Me.filter(we=>!we._container||we._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,W.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Me=>{this._watchDrawerToggle(Me),this._watchDrawerPosition(Me),this._watchDrawerMode(Me)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,j.b)(10),(0,k.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(Me=>Me.open())}close(){this._drawers.forEach(Me=>Me.close())}updateContentMargins(){let Me=0,we=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Me+=this._left._getWidth();else if("push"==this._left.mode){const ae=this._left._getWidth();Me+=ae,we-=ae}if(this._right&&this._right.opened)if("side"==this._right.mode)we+=this._right._getWidth();else if("push"==this._right.mode){const ae=this._right._getWidth();we+=ae,Me-=ae}Me=Me||null,we=we||null,(Me!==this._contentMargins.left||we!==this._contentMargins.right)&&(this._contentMargins={left:Me,right:we},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Me){Me._animationStarted.pipe((0,O.h)(we=>we.fromState!==we.toState),(0,k.R)(this._drawers.changes)).subscribe(we=>{"open-instant"!==we.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Me.mode&&Me.openedChange.pipe((0,k.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Me.opened))}_watchDrawerPosition(Me){!Me||Me.onPositionChanged.pipe((0,k.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,V.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Me){Me&&Me._modeChanged.pipe((0,k.R)((0,L.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Me){const we=this._element.nativeElement.classList,ae="mat-drawer-container-has-open";Me?we.add(ae):we.remove(ae)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Me=>{"end"==Me.position?this._end=Me:this._start=Me}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(Me=>Me&&!Me.disableClose&&this._canHaveBackdrop(Me)).forEach(Me=>Me._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Me){return"side"!==Me.mode||!!this._backdropOverride}_isDrawerOpen(Me){return null!=Me&&Me.opened}}return Oe.\u0275fac=function(Me){return new(Me||Oe)(C.Y36(ce.Is,8),C.Y36(C.SBq),C.Y36(C.R0b),C.Y36(C.sBO),C.Y36(t.rL),C.Y36(x),C.Y36(ee.Qb,8))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-drawer-container"]],contentQueries:function(Me,we,ae){if(1&Me&&(C.Suo(ae,Z,5),C.Suo(ae,P,5)),2&Me){let We;C.iGM(We=C.CRH())&&(we._content=We.first),C.iGM(We=C.CRH())&&(we._allDrawers=We)}},viewQuery:function(Me,we){if(1&Me&&C.Gf(Z,5),2&Me){let ae;C.iGM(ae=C.CRH())&&(we._userContent=ae.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Me,we){2&Me&&C.ekj("mat-drawer-container-explicit-backdrop",we._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[C._Bn([{provide:r,useExisting:Oe}])],ngContentSelectors:y,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Me,we){1&Me&&(C.F$t(pe),C.YNc(0,te,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,re,2,0,"mat-drawer-content",1)),2&Me&&(C.Q6J("ngIf",we.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!we._content))},directives:[v.O5,Z],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Oe})(),ye=(()=>{class Oe extends Z{constructor(Me,we,ae,We,vt){super(Me,we,ae,We,vt)}}return Oe.\u0275fac=function(Me){return new(Me||Oe)(C.Y36(C.sBO),C.Y36((0,C.Gpc)(()=>Ne)),C.Y36(C.SBq),C.Y36(t.mF),C.Y36(C.R0b))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Me,we){2&Me&&C.Udp("margin-left",we._container._contentMargins.left,"px")("margin-right",we._container._contentMargins.right,"px")},features:[C.qOj],ngContentSelectors:le,decls:1,vars:0,template:function(Me,we){1&Me&&(C.F$t(),C.Hsn(0))},encapsulation:2,changeDetection:0}),Oe})(),xe=(()=>{class Oe extends P{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Me){this._fixedInViewport=(0,M.Ig)(Me)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Me){this._fixedTopGap=(0,M.su)(Me)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Me){this._fixedBottomGap=(0,M.su)(Me)}}return Oe.\u0275fac=function(){let B;return function(we){return(B||(B=C.n5z(Oe)))(we||Oe)}}(),Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Me,we){2&Me&&(C.uIk("align",null),C.Udp("top",we.fixedInViewport?we.fixedTopGap:null,"px")("bottom",we.fixedInViewport?we.fixedBottomGap:null,"px"),C.ekj("mat-drawer-end","end"===we.position)("mat-drawer-over","over"===we.mode)("mat-drawer-push","push"===we.mode)("mat-drawer-side","side"===we.mode)("mat-drawer-opened",we.opened)("mat-sidenav-fixed",we.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[C.qOj],ngContentSelectors:le,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Me,we){1&Me&&(C.F$t(),C.TgZ(0,"div",0),C.Hsn(1),C.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[D.transformDrawer]},changeDetection:0}),Oe})(),Ne=(()=>{class Oe extends U{}return Oe.\u0275fac=function(){let B;return function(we){return(B||(B=C.n5z(Oe)))(we||Oe)}}(),Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["mat-sidenav-container"]],contentQueries:function(Me,we,ae){if(1&Me&&(C.Suo(ae,ye,5),C.Suo(ae,xe,5)),2&Me){let We;C.iGM(We=C.CRH())&&(we._content=We.first),C.iGM(We=C.CRH())&&(we._allDrawers=We)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Me,we){2&Me&&C.ekj("mat-drawer-container-explicit-backdrop",we._backdropOverride)},exportAs:["matSidenavContainer"],features:[C._Bn([{provide:r,useExisting:Oe}]),C.qOj],ngContentSelectors:u,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(Me,we){1&Me&&(C.F$t(p),C.YNc(0,i,1,2,"div",0),C.Hsn(1),C.Hsn(2,1),C.YNc(3,a,2,0,"mat-sidenav-content",1)),2&Me&&(C.Q6J("ngIf",we.hasBackdrop),C.xp6(3),C.Q6J("ngIf",!we._content))},directives:[v.O5,ye,t.PQ],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Oe})(),Be=(()=>{class Oe{}return Oe.\u0275fac=function(Me){return new(Me||Oe)},Oe.\u0275mod=C.oAB({type:Oe}),Oe.\u0275inj=C.cJS({imports:[[v.ez,s.BQ,e.ud,t.ZD],t.ZD,s.BQ]}),Oe})()},2368:(Ze,K,m)=>{"use strict";m.d(K,{Rr:()=>j,rP:()=>ce});var e=m(7144),t=m(5e3),v=m(508),C=m(3191),s=m(3075),M=m(6360),c=m(5664);const N=["thumbContainer"],o=["toggleBar"],L=["input"],O=function(le){return{enterDuration:le}},A=["*"],E=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let k=0;const w={provide:s.JU,useExisting:(0,t.Gpc)(()=>j),multi:!0};class V{constructor(te,re){this.source=te,this.checked=re}}const W=(0,v.sb)((0,v.pj)((0,v.Kr)((0,v.Id)(class{constructor(le){this._elementRef=le}}))));let j=(()=>{class le extends W{constructor(re,pe,y,i,a,p){super(re),this._focusMonitor=pe,this._changeDetectorRef=y,this.defaults=a,this._onChange=u=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++k,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new t.vpe,this.toggleChange=new t.vpe,this.tabIndex=parseInt(i)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===p}get required(){return this._required}set required(re){this._required=(0,C.Ig)(re)}get checked(){return this._checked}set checked(re){this._checked=(0,C.Ig)(re),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(re=>{re||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(re){re.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(re){re.stopPropagation()}writeValue(re){this.checked=!!re}registerOnChange(re){this._onChange=re}registerOnTouched(re){this._onTouched=re}setDisabledState(re){this.disabled=re,this._changeDetectorRef.markForCheck()}focus(re,pe){pe?this._focusMonitor.focusVia(this._inputElement,pe,re):this._inputElement.nativeElement.focus(re)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new V(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return le.\u0275fac=function(re){return new(re||le)(t.Y36(t.SBq),t.Y36(c.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(E),t.Y36(M.Qb,8))},le.\u0275cmp=t.Xpm({type:le,selectors:[["mat-slide-toggle"]],viewQuery:function(re,pe){if(1&re&&(t.Gf(N,5),t.Gf(o,5),t.Gf(L,5)),2&re){let y;t.iGM(y=t.CRH())&&(pe._thumbEl=y.first),t.iGM(y=t.CRH())&&(pe._thumbBarEl=y.first),t.iGM(y=t.CRH())&&(pe._inputElement=y.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(re,pe){2&re&&(t.Ikx("id",pe.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checked",pe.checked)("mat-disabled",pe.disabled)("mat-slide-toggle-label-before","before"==pe.labelPosition)("_mat-animation-noopable",pe._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[t._Bn([w]),t.qOj],ngContentSelectors:A,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(re,pe){if(1&re&&(t.F$t(),t.TgZ(0,"label",0,1),t.TgZ(2,"div",2,3),t.TgZ(4,"input",4,5),t.NdJ("change",function(i){return pe._onChangeEvent(i)})("click",function(i){return pe._onInputClick(i)}),t.qZA(),t.TgZ(6,"div",6,7),t._UZ(8,"div",8),t.TgZ(9,"div",9),t._UZ(10,"div",10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"span",11,12),t.NdJ("cdkObserveContent",function(){return pe._onLabelTextChange()}),t.TgZ(13,"span",13),t._uU(14,"\xa0"),t.qZA(),t.Hsn(15),t.qZA(),t.qZA()),2&re){const y=t.MAs(1),i=t.MAs(12);t.uIk("for",pe.inputId),t.xp6(2),t.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),t.xp6(2),t.Q6J("id",pe.inputId)("required",pe.required)("tabIndex",pe.tabIndex)("checked",pe.checked)("disabled",pe.disabled),t.uIk("name",pe.name)("aria-checked",pe.checked.toString())("aria-label",pe.ariaLabel)("aria-labelledby",pe.ariaLabelledby)("aria-describedby",pe.ariaDescribedby),t.xp6(5),t.Q6J("matRippleTrigger",y)("matRippleDisabled",pe.disableRipple||pe.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(18,O,pe._noopAnimations?0:150))}},directives:[v.wG,e.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),le})(),me=(()=>{class le{}return le.\u0275fac=function(re){return new(re||le)},le.\u0275mod=t.oAB({type:le}),le.\u0275inj=t.cJS({}),le})(),ce=(()=>{class le{}return le.\u0275fac=function(re){return new(re||le)},le.\u0275mod=t.oAB({type:le}),le.\u0275inj=t.cJS({imports:[[me,v.si,v.BQ,e.Q8],me,v.BQ]}),le})()},7261:(Ze,K,m)=>{"use strict";m.d(K,{Ve:()=>te,ux:()=>pe,ZX:()=>le});var e=m(9776),t=m(7429),v=m(9808),C=m(5e3),s=m(508),M=m(7423),c=m(7579),N=m(5698),o=m(2722),L=m(1777),O=m(925),A=m(5113),E=m(5664);function k(y,i){if(1&y){const a=C.EpF();C.TgZ(0,"div",1),C.TgZ(1,"button",2),C.NdJ("click",function(){return C.CHM(a),C.oxw().action()}),C._uU(2),C.qZA(),C.qZA()}if(2&y){const a=C.oxw();C.xp6(2),C.Oqu(a.data.action)}}function w(y,i){}const V=new C.OlP("MatSnackBarData");class W{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const j=Math.pow(2,31)-1;class ${constructor(i,a){this._overlayRef=a,this._afterDismissed=new c.x,this._afterOpened=new c.x,this._onAction=new c.x,this._dismissedByAction=!1,this.containerInstance=i,this.onAction().subscribe(()=>this.dismiss()),i._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,j))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let ee=(()=>{class y{constructor(a,p){this.snackBarRef=a,this.data=p}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return y.\u0275fac=function(a){return new(a||y)(C.Y36($),C.Y36(V))},y.\u0275cmp=C.Xpm({type:y,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(a,p){1&a&&(C.TgZ(0,"span"),C._uU(1),C.qZA(),C.YNc(2,k,3,1,"div",0)),2&a&&(C.xp6(1),C.Oqu(p.data.message),C.xp6(1),C.Q6J("ngIf",p.hasAction))},directives:[v.O5,M.lW],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),y})();const me={snackBarState:(0,L.X$)("state",[(0,L.SB)("void, hidden",(0,L.oB)({transform:"scale(0.8)",opacity:0})),(0,L.SB)("visible",(0,L.oB)({transform:"scale(1)",opacity:1})),(0,L.eR)("* => visible",(0,L.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,L.eR)("* => void, * => hidden",(0,L.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,L.oB)({opacity:0})))])};let ce=(()=>{class y extends t.en{constructor(a,p,u,_,D){super(),this._ngZone=a,this._elementRef=p,this._changeDetectorRef=u,this._platform=_,this.snackBarConfig=D,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new c.x,this._onExit=new c.x,this._onEnter=new c.x,this._animationState="void",this.attachDomPortal=I=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(I)),this._live="assertive"!==D.politeness||D.announcementMessage?"off"===D.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(a)}attachTemplatePortal(a){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(a)}onAnimationEnd(a){const{fromState:p,toState:u}=a;if(("void"===u&&"void"!==p||"hidden"===u)&&this._completeExit(),"visible"===u){const _=this._onEnter;this._ngZone.run(()=>{_.next(),_.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,N.q)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const a=this._elementRef.nativeElement,p=this.snackBarConfig.panelClass;p&&(Array.isArray(p)?p.forEach(u=>a.classList.add(u)):a.classList.add(p)),"center"===this.snackBarConfig.horizontalPosition&&a.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&a.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const a=this._elementRef.nativeElement.querySelector("[aria-hidden]"),p=this._elementRef.nativeElement.querySelector("[aria-live]");if(a&&p){let u=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&a.contains(document.activeElement)&&(u=document.activeElement),a.removeAttribute("aria-hidden"),p.appendChild(a),null==u||u.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return y.\u0275fac=function(a){return new(a||y)(C.Y36(C.R0b),C.Y36(C.SBq),C.Y36(C.sBO),C.Y36(O.t4),C.Y36(W))},y.\u0275cmp=C.Xpm({type:y,selectors:[["snack-bar-container"]],viewQuery:function(a,p){if(1&a&&C.Gf(t.Pl,7),2&a){let u;C.iGM(u=C.CRH())&&(p._portalOutlet=u.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(a,p){1&a&&C.WFA("@state.done",function(_){return p.onAnimationEnd(_)}),2&a&&C.d8E("@state",p._animationState)},features:[C.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,p){1&a&&(C.TgZ(0,"div",0),C.YNc(1,w,0,0,"ng-template",1),C.qZA(),C._UZ(2,"div")),2&a&&(C.xp6(2),C.uIk("aria-live",p._live)("role",p._role))},directives:[t.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[me.snackBarState]}}),y})(),le=(()=>{class y{}return y.\u0275fac=function(a){return new(a||y)},y.\u0275mod=C.oAB({type:y}),y.\u0275inj=C.cJS({imports:[[e.U8,t.eL,v.ez,M.ot,s.BQ],s.BQ]}),y})();const te=new C.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new W}});let pe=(()=>{class y{constructor(a,p,u,_,D,I){this._overlay=a,this._live=p,this._injector=u,this._breakpointObserver=_,this._parentSnackBar=D,this._defaultConfig=I,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=ee,this.snackBarContainerComponent=ce,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const a=this._parentSnackBar;return a?a._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(a){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=a:this._snackBarRefAtThisLevel=a}openFromComponent(a,p){return this._attach(a,p)}openFromTemplate(a,p){return this._attach(a,p)}open(a,p="",u){const _=Object.assign(Object.assign({},this._defaultConfig),u);return _.data={message:a,action:p},_.announcementMessage===a&&(_.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,_)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(a,p){const _=C.zs3.create({parent:p&&p.viewContainerRef&&p.viewContainerRef.injector||this._injector,providers:[{provide:W,useValue:p}]}),D=new t.C5(this.snackBarContainerComponent,p.viewContainerRef,_),I=a.attach(D);return I.instance.snackBarConfig=p,I.instance}_attach(a,p){const u=Object.assign(Object.assign(Object.assign({},new W),this._defaultConfig),p),_=this._createOverlay(u),D=this._attachSnackBarContainer(_,u),I=new $(D,_);if(a instanceof C.Rgc){const x=new t.UE(a,null,{$implicit:u.data,snackBarRef:I});I.instance=D.attachTemplatePortal(x)}else{const x=this._createInjector(u,I),r=new t.C5(a,void 0,x),b=D.attachComponentPortal(r);I.instance=b.instance}return this._breakpointObserver.observe(A.u3.HandsetPortrait).pipe((0,o.R)(_.detachments())).subscribe(x=>{_.overlayElement.classList.toggle(this.handsetCssClass,x.matches)}),u.announcementMessage&&D._onAnnounce.subscribe(()=>{this._live.announce(u.announcementMessage,u.politeness)}),this._animateSnackBar(I,u),this._openedSnackBarRef=I,this._openedSnackBarRef}_animateSnackBar(a,p){a.afterDismissed().subscribe(()=>{this._openedSnackBarRef==a&&(this._openedSnackBarRef=null),p.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter(),p.duration&&p.duration>0&&a.afterOpened().subscribe(()=>a._dismissAfter(p.duration))}_createOverlay(a){const p=new e.X_;p.direction=a.direction;let u=this._overlay.position().global();const _="rtl"===a.direction,D="left"===a.horizontalPosition||"start"===a.horizontalPosition&&!_||"end"===a.horizontalPosition&&_,I=!D&&"center"!==a.horizontalPosition;return D?u.left("0"):I?u.right("0"):u.centerHorizontally(),"top"===a.verticalPosition?u.top("0"):u.bottom("0"),p.positionStrategy=u,this._overlay.create(p)}_createInjector(a,p){return C.zs3.create({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:$,useValue:p},{provide:V,useValue:a.data}]})}}return y.\u0275fac=function(a){return new(a||y)(C.LFG(e.aV),C.LFG(E.Kd),C.LFG(C.zs3),C.LFG(A.Yg),C.LFG(y,12),C.LFG(te))},y.\u0275prov=C.Yz7({token:y,factory:y.\u0275fac,providedIn:le}),y})()},4847:(Ze,K,m)=>{"use strict";m.d(K,{YE:()=>te,nU:()=>y,JX:()=>i});var e=m(5e3),t=m(3191),v=m(1159),C=m(508),s=m(7579),M=m(6451),c=m(1777),N=m(5664),o=m(9808);const L=["mat-sort-header",""];function O(a,p){if(1&a){const u=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(u),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(u),e.oxw()._disableViewStateAnimation=!1}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6),e._UZ(4,"div",7),e._UZ(5,"div",8),e.qZA(),e.qZA()}if(2&a){const u=e.oxw();e.Q6J("@arrowOpacity",u._getArrowViewState())("@arrowPosition",u._getArrowViewState())("@allowChildren",u._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",u._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",u._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",u._getArrowDirectionState())}}const A=["*"],E=C.mZ.ENTERING+" "+C.yN.STANDARD_CURVE,k={indicator:(0,c.X$)("indicator",[(0,c.SB)("active-asc, asc",(0,c.oB)({transform:"translateY(0px)"})),(0,c.SB)("active-desc, desc",(0,c.oB)({transform:"translateY(10px)"})),(0,c.eR)("active-asc <=> active-desc",(0,c.jt)(E))]),leftPointer:(0,c.X$)("leftPointer",[(0,c.SB)("active-asc, asc",(0,c.oB)({transform:"rotate(-45deg)"})),(0,c.SB)("active-desc, desc",(0,c.oB)({transform:"rotate(45deg)"})),(0,c.eR)("active-asc <=> active-desc",(0,c.jt)(E))]),rightPointer:(0,c.X$)("rightPointer",[(0,c.SB)("active-asc, asc",(0,c.oB)({transform:"rotate(45deg)"})),(0,c.SB)("active-desc, desc",(0,c.oB)({transform:"rotate(-45deg)"})),(0,c.eR)("active-asc <=> active-desc",(0,c.jt)(E))]),arrowOpacity:(0,c.X$)("arrowOpacity",[(0,c.SB)("desc-to-active, asc-to-active, active",(0,c.oB)({opacity:1})),(0,c.SB)("desc-to-hint, asc-to-hint, hint",(0,c.oB)({opacity:.54})),(0,c.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,c.oB)({opacity:0})),(0,c.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,c.jt)("0ms")),(0,c.eR)("* <=> *",(0,c.jt)(E))]),arrowPosition:(0,c.X$)("arrowPosition",[(0,c.eR)("* => desc-to-hint, * => desc-to-active",(0,c.jt)(E,(0,c.F4)([(0,c.oB)({transform:"translateY(-25%)"}),(0,c.oB)({transform:"translateY(0)"})]))),(0,c.eR)("* => hint-to-desc, * => active-to-desc",(0,c.jt)(E,(0,c.F4)([(0,c.oB)({transform:"translateY(0)"}),(0,c.oB)({transform:"translateY(25%)"})]))),(0,c.eR)("* => asc-to-hint, * => asc-to-active",(0,c.jt)(E,(0,c.F4)([(0,c.oB)({transform:"translateY(25%)"}),(0,c.oB)({transform:"translateY(0)"})]))),(0,c.eR)("* => hint-to-asc, * => active-to-asc",(0,c.jt)(E,(0,c.F4)([(0,c.oB)({transform:"translateY(0)"}),(0,c.oB)({transform:"translateY(-25%)"})]))),(0,c.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,c.oB)({transform:"translateY(0)"})),(0,c.SB)("hint-to-desc, active-to-desc, desc",(0,c.oB)({transform:"translateY(-25%)"})),(0,c.SB)("hint-to-asc, active-to-asc, asc",(0,c.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,c.X$)("allowChildren",[(0,c.eR)("* <=> *",[(0,c.IO)("@*",(0,c.pV)(),{optional:!0})])])};let $=(()=>{class a{constructor(){this.changes=new s.x}}return a.\u0275fac=function(u){return new(u||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const me={provide:$,deps:[[new e.FiY,new e.tp0,$]],useFactory:function(a){return a||new $}},ce=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),le=(0,C.dB)((0,C.Id)(class{}));let te=(()=>{class a extends le{constructor(u){super(),this._defaultOptions=u,this.sortables=new Map,this._stateChanges=new s.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(u){this._direction=u}get disableClear(){return this._disableClear}set disableClear(u){this._disableClear=(0,t.Ig)(u)}register(u){this.sortables.set(u.id,u)}deregister(u){this.sortables.delete(u.id)}sort(u){this.active!=u.id?(this.active=u.id,this.direction=u.start?u.start:this.start):this.direction=this.getNextSortDirection(u),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(u){var _,D,I;if(!u)return"";const x=null!==(D=null!==(_=null==u?void 0:u.disableClear)&&void 0!==_?_:this.disableClear)&&void 0!==D?D:!!(null===(I=this._defaultOptions)||void 0===I?void 0:I.disableClear);let r=function(a,p){let u=["asc","desc"];return"desc"==a&&u.reverse(),p||u.push(""),u}(u.start||this.start,x),b=r.indexOf(this.direction)+1;return b>=r.length&&(b=0),r[b]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return a.\u0275fac=function(u){return new(u||a)(e.Y36(ce,8))},a.\u0275dir=e.lG2({type:a,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),a})();const pe=(0,C.Id)(class{});let y=(()=>{class a extends pe{constructor(u,_,D,I,x,r,b){super(),this._intl=u,this._changeDetectorRef=_,this._sort=D,this._columnDef=I,this._focusMonitor=x,this._elementRef=r,this._ariaDescriber=b,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(u){this._updateSortActionDescription(u)}get disableClear(){return this._disableClear}set disableClear(u){this._disableClear=(0,t.Ig)(u)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(u=>{const _=!!u;_!==this._showIndicatorHint&&(this._setIndicatorHintVisible(_),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(u){this._isDisabled()&&u||(this._showIndicatorHint=u,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(u){this._viewState=u||{},this._disableViewStateAnimation&&(this._viewState={toState:u.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(u){!this._isDisabled()&&(u.keyCode===v.L_||u.keyCode===v.K5)&&(u.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const u=this._viewState.fromState;return(u?`${u}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(u){var _,D;this._sortButton&&(null===(_=this._ariaDescriber)||void 0===_||_.removeDescription(this._sortButton,this._sortActionDescription),null===(D=this._ariaDescriber)||void 0===D||D.describe(this._sortButton,u)),this._sortActionDescription=u}_handleStateChanges(){this._rerenderSubscription=(0,M.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return a.\u0275fac=function(u){return new(u||a)(e.Y36($),e.Y36(e.sBO),e.Y36(te,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(N.tE),e.Y36(e.SBq),e.Y36(N.$s,8))},a.\u0275cmp=e.Xpm({type:a,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(u,_){1&u&&e.NdJ("click",function(){return _._handleClick()})("keydown",function(I){return _._handleKeydown(I)})("mouseenter",function(){return _._setIndicatorHintVisible(!0)})("mouseleave",function(){return _._setIndicatorHintVisible(!1)}),2&u&&(e.uIk("aria-sort",_._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",_._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:L,ngContentSelectors:A,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(u,_){1&u&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,O,6,6,"div",2),e.qZA()),2&u&&(e.ekj("mat-sort-header-sorted",_._isSorted())("mat-sort-header-position-before","before"==_.arrowPosition),e.uIk("tabindex",_._isDisabled()?null:0),e.xp6(3),e.Q6J("ngIf",_._renderArrow()))},directives:[o.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[k.indicator,k.leftPointer,k.rightPointer,k.arrowOpacity,k.arrowPosition,k.allowChildren]},changeDetection:0}),a})(),i=(()=>{class a{}return a.\u0275fac=function(u){return new(u||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({providers:[me],imports:[[o.ez,C.BQ]]}),a})()},5615:(Ze,K,m)=>{"use strict";m.d(K,{C0:()=>we,VY:()=>P,Vq:()=>Pe,z9:()=>B,T5:()=>Ee,Ic:()=>Ve,fd:()=>he});var e=m(7429),t=m(1555),v=m(9808),C=m(5e3),s=m(7423),M=m(508),c=m(5245),N=m(7579),o=m(727),L=m(5664),O=m(3900),A=m(4004),E=m(8675),k=m(2722),w=m(1884),V=m(1777),W=m(226);function j(ke,q){if(1&ke&&C.GkF(0,8),2&ke){const J=C.oxw();C.Q6J("ngTemplateOutlet",J.iconOverrides[J.state])("ngTemplateOutletContext",J._getIconContext())}}function $(ke,q){if(1&ke&&(C.TgZ(0,"span"),C._uU(1),C.qZA()),2&ke){const J=C.oxw(2);C.xp6(1),C.Oqu(J._getDefaultTextForState(J.state))}}function ee(ke,q){if(1&ke&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&ke){const J=C.oxw(2);C.xp6(1),C.Oqu(J._intl.completedLabel)}}function me(ke,q){if(1&ke&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&ke){const J=C.oxw(2);C.xp6(1),C.Oqu(J._intl.editableLabel)}}function ce(ke,q){if(1&ke&&(C.TgZ(0,"mat-icon"),C._uU(1),C.qZA()),2&ke){const J=C.oxw(2);C.xp6(1),C.Oqu(J._getDefaultTextForState(J.state))}}function le(ke,q){if(1&ke&&(C.ynx(0,9),C.YNc(1,$,2,1,"span",10),C.YNc(2,ee,2,1,"span",11),C.YNc(3,me,2,1,"span",11),C.YNc(4,ce,2,1,"mat-icon",12),C.BQk()),2&ke){const J=C.oxw();C.Q6J("ngSwitch",J.state),C.xp6(1),C.Q6J("ngSwitchCase","number"),C.xp6(1),C.Q6J("ngIf","done"===J.state),C.xp6(1),C.Q6J("ngIf","edit"===J.state)}}function te(ke,q){if(1&ke&&(C.TgZ(0,"div",14),C.GkF(1,15),C.qZA()),2&ke){const J=C.oxw();C.xp6(1),C.Q6J("ngTemplateOutlet",J._templateLabel().template)}}function re(ke,q){if(1&ke&&(C.TgZ(0,"div",14),C._uU(1),C.qZA()),2&ke){const J=C.oxw();C.xp6(1),C.Oqu(J.label)}}function pe(ke,q){if(1&ke&&(C.TgZ(0,"div",16),C._uU(1),C.qZA()),2&ke){const J=C.oxw();C.xp6(1),C.Oqu(J._intl.optionalLabel)}}function y(ke,q){if(1&ke&&(C.TgZ(0,"div",17),C._uU(1),C.qZA()),2&ke){const J=C.oxw();C.xp6(1),C.Oqu(J.errorMessage)}}function i(ke,q){}function a(ke,q){if(1&ke&&(C.Hsn(0),C.YNc(1,i,0,0,"ng-template",0)),2&ke){const J=C.oxw();C.xp6(1),C.Q6J("cdkPortalOutlet",J._portal)}}const p=["*"];function u(ke,q){1&ke&&C._UZ(0,"div",9)}const _=function(ke,q){return{step:ke,i:q}};function D(ke,q){if(1&ke&&(C.ynx(0),C.GkF(1,7),C.YNc(2,u,1,0,"div",8),C.BQk()),2&ke){const J=q.$implicit,oe=q.index,Ce=q.last;C.oxw(2);const Ue=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",Ue)("ngTemplateOutletContext",C.WLB(3,_,J,oe)),C.xp6(1),C.Q6J("ngIf",!Ce)}}function I(ke,q){if(1&ke){const J=C.EpF();C.TgZ(0,"div",10),C.NdJ("@horizontalStepTransition.done",function(Ce){return C.CHM(J),C.oxw(2)._animationDone.next(Ce)}),C.GkF(1,11),C.qZA()}if(2&ke){const J=q.$implicit,oe=q.index,Ce=C.oxw(2);C.Q6J("@horizontalStepTransition",Ce._getAnimationDirection(oe))("id",Ce._getStepContentId(oe)),C.uIk("aria-labelledby",Ce._getStepLabelId(oe))("aria-expanded",Ce.selectedIndex===oe),C.xp6(1),C.Q6J("ngTemplateOutlet",J.content)}}function x(ke,q){if(1&ke&&(C.ynx(0),C.TgZ(1,"div",3),C.YNc(2,D,3,6,"ng-container",4),C.qZA(),C.TgZ(3,"div",5),C.YNc(4,I,2,5,"div",6),C.qZA(),C.BQk()),2&ke){const J=C.oxw();C.xp6(2),C.Q6J("ngForOf",J.steps),C.xp6(2),C.Q6J("ngForOf",J.steps)}}function r(ke,q){if(1&ke){const J=C.EpF();C.TgZ(0,"div",13),C.GkF(1,7),C.TgZ(2,"div",14),C.TgZ(3,"div",15),C.NdJ("@verticalStepTransition.done",function(Ce){return C.CHM(J),C.oxw(2)._animationDone.next(Ce)}),C.TgZ(4,"div",16),C.GkF(5,11),C.qZA(),C.qZA(),C.qZA(),C.qZA()}if(2&ke){const J=q.$implicit,oe=q.index,Ce=q.last,Ue=C.oxw(2),ht=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",ht)("ngTemplateOutletContext",C.WLB(9,_,J,oe)),C.xp6(1),C.ekj("mat-stepper-vertical-line",!Ce),C.xp6(1),C.Q6J("@verticalStepTransition",Ue._getAnimationDirection(oe))("id",Ue._getStepContentId(oe)),C.uIk("aria-labelledby",Ue._getStepLabelId(oe))("aria-expanded",Ue.selectedIndex===oe),C.xp6(2),C.Q6J("ngTemplateOutlet",J.content)}}function b(ke,q){if(1&ke&&(C.ynx(0),C.YNc(1,r,6,12,"div",12),C.BQk()),2&ke){const J=C.oxw();C.xp6(1),C.Q6J("ngForOf",J.steps)}}function Z(ke,q){if(1&ke){const J=C.EpF();C.TgZ(0,"mat-step-header",17),C.NdJ("click",function(){return C.CHM(J).step.select()})("keydown",function(Ce){return C.CHM(J),C.oxw()._onKeydown(Ce)}),C.qZA()}if(2&ke){const J=q.step,oe=q.i,Ce=C.oxw();C.ekj("mat-horizontal-stepper-header","horizontal"===Ce.orientation)("mat-vertical-stepper-header","vertical"===Ce.orientation),C.Q6J("tabIndex",Ce._getFocusIndex()===oe?0:-1)("id",Ce._getStepLabelId(oe))("index",oe)("state",Ce._getIndicatorType(oe,J.state))("label",J.stepLabel||J.label)("selected",Ce.selectedIndex===oe)("active",Ce._stepIsNavigable(oe,J))("optional",J.optional)("errorMessage",J.errorMessage)("iconOverrides",Ce._iconOverrides)("disableRipple",Ce.disableRipple||!Ce._stepIsNavigable(oe,J))("color",J.color||Ce.color),C.uIk("aria-posinset",oe+1)("aria-setsize",Ce.steps.length)("aria-controls",Ce._getStepContentId(oe))("aria-selected",Ce.selectedIndex==oe)("aria-label",J.ariaLabel||null)("aria-labelledby",!J.ariaLabel&&J.ariaLabelledby?J.ariaLabelledby:null)("aria-disabled",!Ce._stepIsNavigable(oe,J)||null)}}let P=(()=>{class ke extends t.u6{}return ke.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(ke)))(oe||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["","matStepLabel",""]],features:[C.qOj]}),ke})(),U=(()=>{class ke{constructor(){this.changes=new N.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ke.\u0275fac=function(J){return new(J||ke)},ke.\u0275prov=C.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const xe={provide:U,deps:[[new C.FiY,new C.tp0,U]],useFactory:function(ke){return ke||new U}},Ne=(0,M.pj)(class extends t.KL{constructor(q){super(q)}},"primary");let Be=(()=>{class ke extends Ne{constructor(J,oe,Ce,Ue){super(Ce),this._intl=J,this._focusMonitor=oe,this._intlSubscription=J.changes.subscribe(()=>Ue.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(J,oe){J?this._focusMonitor.focusVia(this._elementRef,J,oe):this._elementRef.nativeElement.focus(oe)}_stringLabel(){return this.label instanceof P?null:this.label}_templateLabel(){return this.label instanceof P?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(J){return"number"==J?`${this.index+1}`:"edit"==J?"create":"error"==J?"warning":J}}return ke.\u0275fac=function(J){return new(J||ke)(C.Y36(U),C.Y36(L.tE),C.Y36(C.SBq),C.Y36(C.sBO))},ke.\u0275cmp=C.Xpm({type:ke,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[C.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],[4,"ngSwitchDefault"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(J,oe){1&J&&(C._UZ(0,"div",0),C.TgZ(1,"div"),C.TgZ(2,"div",1),C.YNc(3,j,1,2,"ng-container",2),C.YNc(4,le,5,4,"ng-container",3),C.qZA(),C.qZA(),C.TgZ(5,"div",4),C.YNc(6,te,2,1,"div",5),C.YNc(7,re,2,1,"div",5),C.YNc(8,pe,2,1,"div",6),C.YNc(9,y,2,1,"div",7),C.qZA()),2&J&&(C.Q6J("matRippleTrigger",oe._getHostElement())("matRippleDisabled",oe.disableRipple),C.xp6(1),C.Gre("mat-step-icon-state-",oe.state," mat-step-icon"),C.ekj("mat-step-icon-selected",oe.selected),C.xp6(1),C.Q6J("ngSwitch",!(!oe.iconOverrides||!oe.iconOverrides[oe.state])),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(2),C.ekj("mat-step-label-active",oe.active)("mat-step-label-selected",oe.selected)("mat-step-label-error","error"==oe.state),C.xp6(1),C.Q6J("ngIf",oe._templateLabel()),C.xp6(1),C.Q6J("ngIf",oe._stringLabel()),C.xp6(1),C.Q6J("ngIf",oe.optional&&"error"!=oe.state),C.xp6(1),C.Q6J("ngIf","error"==oe.state))},directives:[M.wG,v.RF,v.n9,v.ED,v.O5,v.tP,c.Hw],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),ke})();const Oe={horizontalStepTransition:(0,V.X$)("horizontalStepTransition",[(0,V.SB)("previous",(0,V.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,V.SB)("current",(0,V.oB)({transform:"none",visibility:"inherit"})),(0,V.SB)("next",(0,V.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,V.eR)("* => *",(0,V.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,V.X$)("verticalStepTransition",[(0,V.SB)("previous",(0,V.oB)({height:"0px",visibility:"hidden"})),(0,V.SB)("next",(0,V.oB)({height:"0px",visibility:"hidden"})),(0,V.SB)("current",(0,V.oB)({height:"*",visibility:"inherit"})),(0,V.eR)("* <=> current",(0,V.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let B=(()=>{class ke{constructor(J){this.templateRef=J}}return ke.\u0275fac=function(J){return new(J||ke)(C.Y36(C.Rgc))},ke.\u0275dir=C.lG2({type:ke,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ke})(),Me=(()=>{class ke{constructor(J){this._template=J}}return ke.\u0275fac=function(J){return new(J||ke)(C.Y36(C.Rgc))},ke.\u0275dir=C.lG2({type:ke,selectors:[["ng-template","matStepContent",""]]}),ke})(),we=(()=>{class ke extends t.be{constructor(J,oe,Ce,Ue){super(J,Ue),this._errorStateMatcher=oe,this._viewContainerRef=Ce,this._isSelected=o.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,O.w)(()=>this._stepper.selectionChange.pipe((0,A.U)(J=>J.selectedStep===this),(0,E.O)(this._stepper.selected===this)))).subscribe(J=>{J&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(J,oe){return this._errorStateMatcher.isErrorState(J,oe)||!!(J&&J.invalid&&this.interacted)}}return ke.\u0275fac=function(J){return new(J||ke)(C.Y36((0,C.Gpc)(()=>Pe)),C.Y36(M.rD,4),C.Y36(C.s_b),C.Y36(t.gx,8))},ke.\u0275cmp=C.Xpm({type:ke,selectors:[["mat-step"]],contentQueries:function(J,oe,Ce){if(1&J&&(C.Suo(Ce,P,5),C.Suo(Ce,Me,5)),2&J){let Ue;C.iGM(Ue=C.CRH())&&(oe.stepLabel=Ue.first),C.iGM(Ue=C.CRH())&&(oe._lazyContent=Ue.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[C._Bn([{provide:M.rD,useExisting:ke},{provide:t.be,useExisting:ke}]),C.qOj],ngContentSelectors:p,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(J,oe){1&J&&(C.F$t(),C.YNc(0,a,2,1,"ng-template"))},directives:[e.Pl],encapsulation:2,changeDetection:0}),ke})(),ae=(()=>{class ke extends t.B8{}return ke.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(ke)))(oe||ke)}}(),ke.\u0275dir=C.lG2({type:ke,features:[C.qOj]}),ke})(),We=(()=>{class ke extends ae{}return ke.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(ke)))(oe||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["mat-horizontal-stepper"]],features:[C.qOj]}),ke})(),vt=(()=>{class ke extends ae{}return ke.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(ke)))(oe||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["mat-vertical-stepper"]],features:[C.qOj]}),ke})(),Pe=(()=>{class ke extends t.B8{constructor(J,oe,Ce,Ue){super(J,oe,Ce,Ue),this.steps=new C.n_E,this.animationDone=new C.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new N.x;const ht=Ce.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ht?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:J,templateRef:oe})=>this._iconOverrides[J]=oe),this.steps.changes.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,w.x)((J,oe)=>J.fromState===oe.fromState&&J.toState===oe.toState),(0,k.R)(this._destroyed)).subscribe(J=>{"current"===J.toState&&this.animationDone.emit()})}_stepIsNavigable(J,oe){return oe.completed||this.selectedIndex===J||!this.linear}}return ke.\u0275fac=function(J){return new(J||ke)(C.Y36(W.Is,8),C.Y36(C.sBO),C.Y36(C.SBq),C.Y36(v.K0))},ke.\u0275cmp=C.Xpm({type:ke,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(J,oe,Ce){if(1&J&&(C.Suo(Ce,we,5),C.Suo(Ce,B,5)),2&J){let Ue;C.iGM(Ue=C.CRH())&&(oe._steps=Ue),C.iGM(Ue=C.CRH())&&(oe._icons=Ue)}},viewQuery:function(J,oe){if(1&J&&C.Gf(Be,5),2&J){let Ce;C.iGM(Ce=C.CRH())&&(oe._stepHeader=Ce)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(J,oe){2&J&&(C.uIk("aria-orientation",oe.orientation),C.ekj("mat-stepper-horizontal","horizontal"===oe.orientation)("mat-stepper-vertical","vertical"===oe.orientation)("mat-stepper-label-position-end","horizontal"===oe.orientation&&"end"==oe.labelPosition)("mat-stepper-label-position-bottom","horizontal"===oe.orientation&&"bottom"==oe.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[C._Bn([{provide:t.B8,useExisting:ke},{provide:We,useExisting:ke},{provide:vt,useExisting:ke}]),C.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(J,oe){1&J&&(C.ynx(0,0),C.YNc(1,x,5,2,"ng-container",1),C.YNc(2,b,2,1,"ng-container",1),C.BQk(),C.YNc(3,Z,1,23,"ng-template",null,2,C.W1O)),2&J&&(C.Q6J("ngSwitch",oe.orientation),C.xp6(1),C.Q6J("ngSwitchCase","horizontal"),C.xp6(1),C.Q6J("ngSwitchCase","vertical"))},directives:[v.RF,v.n9,v.sg,v.tP,v.O5,Be],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[Oe.horizontalStepTransition,Oe.verticalStepTransition]},changeDetection:0}),ke})(),Ve=(()=>{class ke extends t.st{}return ke.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(ke)))(oe||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(J,oe){2&J&&C.Ikx("type",oe.type)},inputs:{type:"type"},features:[C.qOj]}),ke})(),he=(()=>{class ke extends t.po{}return ke.\u0275fac=function(){let q;return function(oe){return(q||(q=C.n5z(ke)))(oe||ke)}}(),ke.\u0275dir=C.lG2({type:ke,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(J,oe){2&J&&C.Ikx("type",oe.type)},inputs:{type:"type"},features:[C.qOj]}),ke})(),Ee=(()=>{class ke{}return ke.\u0275fac=function(J){return new(J||ke)},ke.\u0275mod=C.oAB({type:ke}),ke.\u0275inj=C.cJS({providers:[xe,M.rD],imports:[[M.BQ,v.ez,e.eL,s.ot,t.U5,c.Ps,M.si],M.BQ]}),ke})()},2075:(Ze,K,m)=>{"use strict";m.d(K,{ev:()=>Fe,Dz:()=>et,w1:()=>Xt,yh:()=>Re,mD:()=>Nt,Q2:()=>Ut,Ke:()=>ot,ge:()=>lt,fO:()=>$t,XQ:()=>li,as:()=>rt,Gk:()=>Ft,nj:()=>At,BZ:()=>Ae,by:()=>Xi,p0:()=>rn});var e=m(5e3),t=m(3191),v=m(449),C=m(9808),s=m(7579),M=m(457),c=m(1135),N=m(5191),o=m(9646),L=m(2722),O=m(5698),A=m(226),E=m(925),k=m(5303);const w=[[["caption"]],[["colgroup"],["col"]]],V=["caption","colgroup, col"];function $(Ke){return class extends Ke{constructor(...mt){super(...mt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(mt){const ve=this._sticky;this._sticky=(0,t.Ig)(mt),this._hasStickyChanged=ve!==this._sticky}hasStickyChanged(){const mt=this._hasStickyChanged;return this._hasStickyChanged=!1,mt}resetStickyChanged(){this._hasStickyChanged=!1}}}const ee=new e.OlP("CDK_TABLE");let ce=(()=>{class Ke{constructor(ve){this.template=ve}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkCellDef",""]]}),Ke})(),le=(()=>{class Ke{constructor(ve){this.template=ve}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkHeaderCellDef",""]]}),Ke})(),te=(()=>{class Ke{constructor(ve){this.template=ve}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkFooterCellDef",""]]}),Ke})();class re{}const pe=$(re);let y=(()=>{class Ke extends pe{constructor(ve){super(),this._table=ve,this._stickyEnd=!1}get name(){return this._name}set name(ve){this._setNameInput(ve)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ve){const qe=this._stickyEnd;this._stickyEnd=(0,t.Ig)(ve),this._hasStickyChanged=qe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ve){ve&&(this._name=ve,this.cssClassFriendlyName=ve.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkColumnDef",""]],contentQueries:function(ve,qe,_t){if(1&ve&&(e.Suo(_t,ce,5),e.Suo(_t,le,5),e.Suo(_t,te,5)),2&ve){let ue;e.iGM(ue=e.CRH())&&(qe.cell=ue.first),e.iGM(ue=e.CRH())&&(qe.headerCell=ue.first),e.iGM(ue=e.CRH())&&(qe.footerCell=ue.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ke}]),e.qOj]}),Ke})();class i{constructor(mt,ve){const qe=ve.nativeElement.classList;for(const _t of mt._columnCssClassName)qe.add(_t)}}let a=(()=>{class Ke extends i{constructor(ve,qe){super(ve,qe)}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(y),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),Ke})(),p=(()=>{class Ke extends i{constructor(ve,qe){var _t;if(super(ve,qe),1===(null===(_t=ve._table)||void 0===_t?void 0:_t._elementRef.nativeElement.nodeType)){const ue=ve._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===ue||"treegrid"===ue?"gridcell":"cell")}}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(y),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[e.qOj]}),Ke})(),u=(()=>{class Ke extends i{constructor(ve,qe){var _t;if(super(ve,qe),1===(null===(_t=ve._table)||void 0===_t?void 0:_t._elementRef.nativeElement.nodeType)){const ue=ve._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===ue||"treegrid"===ue?"gridcell":"cell")}}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(y),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),Ke})();class _{constructor(){this.tasks=[],this.endTasks=[]}}const D=new e.OlP("_COALESCED_STYLE_SCHEDULER");let I=(()=>{class Ke{constructor(ve){this._ngZone=ve,this._currentSchedule=null,this._destroyed=new s.x}schedule(ve){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ve)}scheduleEnd(ve){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ve)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new _,this._getScheduleObservable().pipe((0,L.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ve=this._currentSchedule;this._currentSchedule=new _;for(const qe of ve.tasks)qe();for(const qe of ve.endTasks)qe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,M.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,O.q)(1))}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.LFG(e.R0b))},Ke.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),r=(()=>{class Ke{constructor(ve,qe){this.template=ve,this._differs=qe}ngOnChanges(ve){if(!this._columnsDiffer){const qe=ve.columns&&ve.columns.currentValue||[];this._columnsDiffer=this._differs.find(qe).create(),this._columnsDiffer.diff(qe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ve){return this instanceof P?ve.headerCell.template:this instanceof xe?ve.footerCell.template:ve.cell.template}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},Ke.\u0275dir=e.lG2({type:Ke,features:[e.TTD]}),Ke})();class b extends r{}const Z=$(b);let P=(()=>{class Ke extends Z{constructor(ve,qe,_t){super(ve,qe),this._table=_t}ngOnChanges(ve){super.ngOnChanges(ve)}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ke})();class U extends r{}const ye=$(U);let xe=(()=>{class Ke extends ye{constructor(ve,qe,_t){super(ve,qe),this._table=_t}ngOnChanges(ve){super.ngOnChanges(ve)}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ke})(),Ne=(()=>{class Ke extends r{constructor(ve,qe,_t){super(ve,qe),this._table=_t}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ee,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),Ke})(),Be=(()=>{class Ke{constructor(ve){this._viewContainer=ve,Ke.mostRecentCellOutlet=this}ngOnDestroy(){Ke.mostRecentCellOutlet===this&&(Ke.mostRecentCellOutlet=null)}}return Ke.mostRecentCellOutlet=null,Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkCellOutlet",""]]}),Ke})(),Oe=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[Be],encapsulation:2}),Ke})(),B=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[Be],encapsulation:2}),Ke})(),Me=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[Be],encapsulation:2}),Ke})(),we=(()=>{class Ke{constructor(ve){this.templateRef=ve,this._contentClassName="cdk-no-data-row"}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["ng-template","cdkNoDataRow",""]]}),Ke})();const ae=["top","bottom","left","right"];class We{constructor(mt,ve,qe,_t,ue=!0,$e=!0,St){this._isNativeHtmlTable=mt,this._stickCellCss=ve,this.direction=qe,this._coalescedStyleScheduler=_t,this._isBrowser=ue,this._needsPositionStickyOnElement=$e,this._positionListener=St,this._cachedCellWidths=[],this._borderCellCss={top:`${ve}-border-elem-top`,bottom:`${ve}-border-elem-bottom`,left:`${ve}-border-elem-left`,right:`${ve}-border-elem-right`}}clearStickyPositioning(mt,ve){const qe=[];for(const _t of mt)if(_t.nodeType===_t.ELEMENT_NODE){qe.push(_t);for(let ue=0;ue<_t.children.length;ue++)qe.push(_t.children[ue])}this._coalescedStyleScheduler.schedule(()=>{for(const _t of qe)this._removeStickyStyle(_t,ve)})}updateStickyColumns(mt,ve,qe,_t=!0){if(!mt.length||!this._isBrowser||!ve.some(Ki=>Ki)&&!qe.some(Ki=>Ki))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const ue=mt[0],$e=ue.children.length,St=this._getCellWidths(ue,_t),Rt=this._getStickyStartColumnPositions(St,ve),yi=this._getStickyEndColumnPositions(St,qe),Ri=ve.lastIndexOf(!0),Ii=qe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Ki="rtl"===this.direction,at=Ki?"right":"left",Qt=Ki?"left":"right";for(const gt of mt)for(let Lt=0;Lt<$e;Lt++){const ui=gt.children[Lt];ve[Lt]&&this._addStickyStyle(ui,at,Rt[Lt],Lt===Ri),qe[Lt]&&this._addStickyStyle(ui,Qt,yi[Lt],Lt===Ii)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Ri?[]:St.slice(0,Ri+1).map((gt,Lt)=>ve[Lt]?gt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Ii?[]:St.slice(Ii).map((gt,Lt)=>qe[Lt+Ii]?gt:null).reverse()}))})}stickRows(mt,ve,qe){if(!this._isBrowser)return;const _t="bottom"===qe?mt.slice().reverse():mt,ue="bottom"===qe?ve.slice().reverse():ve,$e=[],St=[],Rt=[];for(let Ri=0,Ii=0;Ri<_t.length;Ri++){if(!ue[Ri])continue;$e[Ri]=Ii;const Ki=_t[Ri];Rt[Ri]=this._isNativeHtmlTable?Array.from(Ki.children):[Ki];const at=Ki.getBoundingClientRect().height;Ii+=at,St[Ri]=at}const yi=ue.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Ri,Ii;for(let Ki=0;Ki<_t.length;Ki++){if(!ue[Ki])continue;const at=$e[Ki],Qt=Ki===yi;for(const gt of Rt[Ki])this._addStickyStyle(gt,qe,at,Qt)}"top"===qe?null===(Ri=this._positionListener)||void 0===Ri||Ri.stickyHeaderRowsUpdated({sizes:St,offsets:$e,elements:Rt}):null===(Ii=this._positionListener)||void 0===Ii||Ii.stickyFooterRowsUpdated({sizes:St,offsets:$e,elements:Rt})})}updateStickyFooterContainer(mt,ve){if(!this._isNativeHtmlTable)return;const qe=mt.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{ve.some(_t=>!_t)?this._removeStickyStyle(qe,["bottom"]):this._addStickyStyle(qe,"bottom",0,!1)})}_removeStickyStyle(mt,ve){for(const _t of ve)mt.style[_t]="",mt.classList.remove(this._borderCellCss[_t]);ae.some(_t=>-1===ve.indexOf(_t)&&mt.style[_t])?mt.style.zIndex=this._getCalculatedZIndex(mt):(mt.style.zIndex="",this._needsPositionStickyOnElement&&(mt.style.position=""),mt.classList.remove(this._stickCellCss))}_addStickyStyle(mt,ve,qe,_t){mt.classList.add(this._stickCellCss),_t&&mt.classList.add(this._borderCellCss[ve]),mt.style[ve]=`${qe}px`,mt.style.zIndex=this._getCalculatedZIndex(mt),this._needsPositionStickyOnElement&&(mt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(mt){const ve={top:100,bottom:10,left:1,right:1};let qe=0;for(const _t of ae)mt.style[_t]&&(qe+=ve[_t]);return qe?`${qe}`:""}_getCellWidths(mt,ve=!0){if(!ve&&this._cachedCellWidths.length)return this._cachedCellWidths;const qe=[],_t=mt.children;for(let ue=0;ue<_t.length;ue++)qe.push(_t[ue].getBoundingClientRect().width);return this._cachedCellWidths=qe,qe}_getStickyStartColumnPositions(mt,ve){const qe=[];let _t=0;for(let ue=0;ue<mt.length;ue++)ve[ue]&&(qe[ue]=_t,_t+=mt[ue]);return qe}_getStickyEndColumnPositions(mt,ve){const qe=[];let _t=0;for(let ue=mt.length;ue>0;ue--)ve[ue]&&(qe[ue]=_t,_t+=mt[ue]);return qe}}const oe=new e.OlP("CDK_SPL");let Ue=(()=>{class Ke{constructor(ve,qe){this.viewContainer=ve,this.elementRef=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","rowOutlet",""]]}),Ke})(),ht=(()=>{class Ke{constructor(ve,qe){this.viewContainer=ve,this.elementRef=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","headerRowOutlet",""]]}),Ke})(),it=(()=>{class Ke{constructor(ve,qe){this.viewContainer=ve,this.elementRef=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","footerRowOutlet",""]]}),Ke})(),ft=(()=>{class Ke{constructor(ve,qe){this.viewContainer=ve,this.elementRef=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","noDataRowOutlet",""]]}),Ke})(),wt=(()=>{class Ke{constructor(ve,qe,_t,ue,$e,St,Rt,yi,Ri,Ii,Ki){this._differs=ve,this._changeDetectorRef=qe,this._elementRef=_t,this._dir=$e,this._platform=Rt,this._viewRepeater=yi,this._coalescedStyleScheduler=Ri,this._viewportRuler=Ii,this._stickyPositioningListener=Ki,this._onDestroy=new s.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new c.X({start:0,end:Number.MAX_VALUE}),ue||this._elementRef.nativeElement.setAttribute("role","table"),this._document=St,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ve){this._trackByFn=ve}get dataSource(){return this._dataSource}set dataSource(ve){this._dataSource!==ve&&this._switchDataSource(ve)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ve){this._multiTemplateDataRows=(0,t.Ig)(ve),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ve){this._fixedLayout=(0,t.Ig)(ve),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ve,qe)=>this.trackBy?this.trackBy(qe.dataIndex,qe.data):qe),this._viewportRuler.change().pipe((0,L.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const qe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||qe,this._forceRecalculateCellWidths=qe,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ve=this._dataDiffer.diff(this._renderRows);if(!ve)return this._updateNoDataRow(),void this.contentChanged.next();const qe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ve,qe,(_t,ue,$e)=>this._getEmbeddedViewArgs(_t.item,$e),_t=>_t.item.data,_t=>{1===_t.operation&&_t.context&&this._renderCellTemplateForItem(_t.record.item.rowDef,_t.context)}),this._updateRowIndexContext(),ve.forEachIdentityChange(_t=>{qe.get(_t.currentIndex).context.$implicit=_t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ve){this._customColumnDefs.add(ve)}removeColumnDef(ve){this._customColumnDefs.delete(ve)}addRowDef(ve){this._customRowDefs.add(ve)}removeRowDef(ve){this._customRowDefs.delete(ve)}addHeaderRowDef(ve){this._customHeaderRowDefs.add(ve),this._headerRowDefChanged=!0}removeHeaderRowDef(ve){this._customHeaderRowDefs.delete(ve),this._headerRowDefChanged=!0}addFooterRowDef(ve){this._customFooterRowDefs.add(ve),this._footerRowDefChanged=!0}removeFooterRowDef(ve){this._customFooterRowDefs.delete(ve),this._footerRowDefChanged=!0}setNoDataRow(ve){this._customNoDataRow=ve}updateStickyHeaderRowStyles(){const ve=this._getRenderedRows(this._headerRowOutlet),_t=this._elementRef.nativeElement.querySelector("thead");_t&&(_t.style.display=ve.length?"":"none");const ue=this._headerRowDefs.map($e=>$e.sticky);this._stickyStyler.clearStickyPositioning(ve,["top"]),this._stickyStyler.stickRows(ve,ue,"top"),this._headerRowDefs.forEach($e=>$e.resetStickyChanged())}updateStickyFooterRowStyles(){const ve=this._getRenderedRows(this._footerRowOutlet),_t=this._elementRef.nativeElement.querySelector("tfoot");_t&&(_t.style.display=ve.length?"":"none");const ue=this._footerRowDefs.map($e=>$e.sticky);this._stickyStyler.clearStickyPositioning(ve,["bottom"]),this._stickyStyler.stickRows(ve,ue,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,ue),this._footerRowDefs.forEach($e=>$e.resetStickyChanged())}updateStickyColumnStyles(){const ve=this._getRenderedRows(this._headerRowOutlet),qe=this._getRenderedRows(this._rowOutlet),_t=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ve,...qe,..._t],["left","right"]),this._stickyColumnStylesNeedReset=!1),ve.forEach((ue,$e)=>{this._addStickyColumnStyles([ue],this._headerRowDefs[$e])}),this._rowDefs.forEach(ue=>{const $e=[];for(let St=0;St<qe.length;St++)this._renderRows[St].rowDef===ue&&$e.push(qe[St]);this._addStickyColumnStyles($e,ue)}),_t.forEach((ue,$e)=>{this._addStickyColumnStyles([ue],this._footerRowDefs[$e])}),Array.from(this._columnDefsByName.values()).forEach(ue=>ue.resetStickyChanged())}_getAllRenderRows(){const ve=[],qe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let _t=0;_t<this._data.length;_t++){let ue=this._data[_t];const $e=this._getRenderRowsForData(ue,_t,qe.get(ue));this._cachedRenderRowsMap.has(ue)||this._cachedRenderRowsMap.set(ue,new WeakMap);for(let St=0;St<$e.length;St++){let Rt=$e[St];const yi=this._cachedRenderRowsMap.get(Rt.data);yi.has(Rt.rowDef)?yi.get(Rt.rowDef).push(Rt):yi.set(Rt.rowDef,[Rt]),ve.push(Rt)}}return ve}_getRenderRowsForData(ve,qe,_t){return this._getRowDefs(ve,qe).map($e=>{const St=_t&&_t.has($e)?_t.get($e):[];if(St.length){const Rt=St.shift();return Rt.dataIndex=qe,Rt}return{data:ve,rowDef:$e,dataIndex:qe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Bt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(qe=>{this._columnDefsByName.has(qe.name),this._columnDefsByName.set(qe.name,qe)})}_cacheRowDefs(){this._headerRowDefs=Bt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Bt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Bt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ve=this._rowDefs.filter(qe=>!qe.when);this._defaultRowDef=ve[0]}_renderUpdatedColumns(){const ve=($e,St)=>$e||!!St.getColumnsDiff(),qe=this._rowDefs.reduce(ve,!1);qe&&this._forceRenderDataRows();const _t=this._headerRowDefs.reduce(ve,!1);_t&&this._forceRenderHeaderRows();const ue=this._footerRowDefs.reduce(ve,!1);return ue&&this._forceRenderFooterRows(),qe||_t||ue}_switchDataSource(ve){this._data=[],(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ve||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ve}_observeRenderChanges(){if(!this.dataSource)return;let ve;(0,v.Z9)(this.dataSource)?ve=this.dataSource.connect(this):(0,N.b)(this.dataSource)?ve=this.dataSource:Array.isArray(this.dataSource)&&(ve=(0,o.of)(this.dataSource)),this._renderChangeSubscription=ve.pipe((0,L.R)(this._onDestroy)).subscribe(qe=>{this._data=qe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ve,qe)=>this._renderRow(this._headerRowOutlet,ve,qe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ve,qe)=>this._renderRow(this._footerRowOutlet,ve,qe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ve,qe){const _t=Array.from(qe.columns||[]).map(St=>this._columnDefsByName.get(St)),ue=_t.map(St=>St.sticky),$e=_t.map(St=>St.stickyEnd);this._stickyStyler.updateStickyColumns(ve,ue,$e,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ve){const qe=[];for(let _t=0;_t<ve.viewContainer.length;_t++){const ue=ve.viewContainer.get(_t);qe.push(ue.rootNodes[0])}return qe}_getRowDefs(ve,qe){if(1==this._rowDefs.length)return[this._rowDefs[0]];let _t=[];if(this.multiTemplateDataRows)_t=this._rowDefs.filter(ue=>!ue.when||ue.when(qe,ve));else{let ue=this._rowDefs.find($e=>$e.when&&$e.when(qe,ve))||this._defaultRowDef;ue&&_t.push(ue)}return _t}_getEmbeddedViewArgs(ve,qe){return{templateRef:ve.rowDef.template,context:{$implicit:ve.data},index:qe}}_renderRow(ve,qe,_t,ue={}){const $e=ve.viewContainer.createEmbeddedView(qe.template,ue,_t);return this._renderCellTemplateForItem(qe,ue),$e}_renderCellTemplateForItem(ve,qe){for(let _t of this._getCellTemplates(ve))Be.mostRecentCellOutlet&&Be.mostRecentCellOutlet._viewContainer.createEmbeddedView(_t,qe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ve=this._rowOutlet.viewContainer;for(let qe=0,_t=ve.length;qe<_t;qe++){const $e=ve.get(qe).context;$e.count=_t,$e.first=0===qe,$e.last=qe===_t-1,$e.even=qe%2==0,$e.odd=!$e.even,this.multiTemplateDataRows?($e.dataIndex=this._renderRows[qe].dataIndex,$e.renderIndex=qe):$e.index=this._renderRows[qe].dataIndex}}_getCellTemplates(ve){return ve&&ve.columns?Array.from(ve.columns,qe=>{const _t=this._columnDefsByName.get(qe);return ve.extractCellTemplate(_t)}):[]}_applyNativeTableSections(){const ve=this._document.createDocumentFragment(),qe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const _t of qe){const ue=this._document.createElement(_t.tag);ue.setAttribute("role","rowgroup");for(const $e of _t.outlets)ue.appendChild($e.elementRef.nativeElement);ve.appendChild(ue)}this._elementRef.nativeElement.appendChild(ve)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ve=(qe,_t)=>qe||_t.hasStickyChanged();this._headerRowDefs.reduce(ve,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ve,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ve,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new We(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,o.of)()).pipe((0,L.R)(this._onDestroy)).subscribe(qe=>{this._stickyStyler.direction=qe,this.updateStickyColumnStyles()})}_getOwnDefs(ve){return ve.filter(qe=>!qe._table||qe._table===this)}_updateNoDataRow(){const ve=this._customNoDataRow||this._noDataRow;if(!ve)return;const qe=0===this._rowOutlet.viewContainer.length;if(qe===this._isShowingNoDataRow)return;const _t=this._noDataRowOutlet.viewContainer;if(qe){const ue=_t.createEmbeddedView(ve.templateRef),$e=ue.rootNodes[0];1===ue.rootNodes.length&&(null==$e?void 0:$e.nodeType)===this._document.ELEMENT_NODE&&($e.setAttribute("role","row"),$e.classList.add(ve._contentClassName))}else _t.clear();this._isShowingNoDataRow=qe}}return Ke.\u0275fac=function(ve){return new(ve||Ke)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(A.Is,8),e.Y36(C.K0),e.Y36(E.t4),e.Y36(v.k),e.Y36(D),e.Y36(k.rL),e.Y36(oe,12))},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ve,qe,_t){if(1&ve&&(e.Suo(_t,we,5),e.Suo(_t,y,5),e.Suo(_t,Ne,5),e.Suo(_t,P,5),e.Suo(_t,xe,5)),2&ve){let ue;e.iGM(ue=e.CRH())&&(qe._noDataRow=ue.first),e.iGM(ue=e.CRH())&&(qe._contentColumnDefs=ue),e.iGM(ue=e.CRH())&&(qe._contentRowDefs=ue),e.iGM(ue=e.CRH())&&(qe._contentHeaderRowDefs=ue),e.iGM(ue=e.CRH())&&(qe._contentFooterRowDefs=ue)}},viewQuery:function(ve,qe){if(1&ve&&(e.Gf(Ue,7),e.Gf(ht,7),e.Gf(it,7),e.Gf(ft,7)),2&ve){let _t;e.iGM(_t=e.CRH())&&(qe._rowOutlet=_t.first),e.iGM(_t=e.CRH())&&(qe._headerRowOutlet=_t.first),e.iGM(_t=e.CRH())&&(qe._footerRowOutlet=_t.first),e.iGM(_t=e.CRH())&&(qe._noDataRowOutlet=_t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ve,qe){2&ve&&e.ekj("cdk-table-fixed-layout",qe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:ee,useExisting:Ke},{provide:v.k,useClass:v.yy},{provide:D,useClass:I},{provide:oe,useValue:null}])],ngContentSelectors:V,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ve,qe){1&ve&&(e.F$t(w),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[ht,Ue,ft,it],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),Ke})();function Bt(Ke,mt){return Ke.concat(Array.from(mt))}let Oi=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[k.Cl]]}),Ke})();var jt=m(508),ti=m(6451),Pi=m(9841),si=m(4004);const di=[[["caption"]],[["colgroup"],["col"]]],ze=["caption","colgroup, col"];let Ae=(()=>{class Ke extends wt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ke.\u0275fac=function(){let mt;return function(qe){return(mt||(mt=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ve,qe){2&ve&&e.ekj("mat-table-fixed-layout",qe.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:v.k,useClass:v.yy},{provide:wt,useExisting:Ke},{provide:ee,useExisting:Ke},{provide:D,useClass:I},{provide:oe,useValue:null}]),e.qOj],ngContentSelectors:ze,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ve,qe){1&ve&&(e.F$t(di),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[ht,Ue,ft,it],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),Ke})(),et=(()=>{class Ke extends ce{}return Ke.\u0275fac=function(){let mt;return function(qe){return(mt||(mt=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:ce,useExisting:Ke}]),e.qOj]}),Ke})(),$t=(()=>{class Ke extends le{}return Ke.\u0275fac=function(){let mt;return function(qe){return(mt||(mt=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:le,useExisting:Ke}]),e.qOj]}),Ke})(),Nt=(()=>{class Ke extends te{}return Ke.\u0275fac=function(){let mt;return function(qe){return(mt||(mt=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matFooterCellDef",""]],features:[e._Bn([{provide:te,useExisting:Ke}]),e.qOj]}),Ke})(),Xt=(()=>{class Ke extends y{get name(){return this._name}set name(ve){this._setNameInput(ve)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ke.\u0275fac=function(){let mt;return function(qe){return(mt||(mt=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:y,useExisting:Ke},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ke}]),e.qOj]}),Ke})(),lt=(()=>{class Ke extends a{}return Ke.\u0275fac=function(){let mt;return function(qe){return(mt||(mt=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),Ke})(),Re=(()=>{class Ke extends p{}return Ke.\u0275fac=function(){let mt;return function(qe){return(mt||(mt=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[e.qOj]}),Ke})(),Fe=(()=>{class Ke extends u{}return Ke.\u0275fac=function(){let mt;return function(qe){return(mt||(mt=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),Ke})(),rt=(()=>{class Ke extends P{}return Ke.\u0275fac=function(){let mt;return function(qe){return(mt||(mt=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:P,useExisting:Ke}]),e.qOj]}),Ke})(),ot=(()=>{class Ke extends xe{}return Ke.\u0275fac=function(){let mt;return function(qe){return(mt||(mt=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[e._Bn([{provide:xe,useExisting:Ke}]),e.qOj]}),Ke})(),At=(()=>{class Ke extends Ne{}return Ke.\u0275fac=function(){let mt;return function(qe){return(mt||(mt=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Ne,useExisting:Ke}]),e.qOj]}),Ke})(),li=(()=>{class Ke extends Oe{}return Ke.\u0275fac=function(){let mt;return function(qe){return(mt||(mt=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Oe,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[Be],encapsulation:2}),Ke})(),Ut=(()=>{class Ke extends B{}return Ke.\u0275fac=function(){let mt;return function(qe){return(mt||(mt=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[e._Bn([{provide:B,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[Be],encapsulation:2}),Ke})(),Ft=(()=>{class Ke extends Me{}return Ke.\u0275fac=function(){let mt;return function(qe){return(mt||(mt=e.n5z(Ke)))(qe||Ke)}}(),Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:Me,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,qe){1&ve&&e.GkF(0,0)},directives:[Be],encapsulation:2}),Ke})(),rn=(()=>{class Ke{}return Ke.\u0275fac=function(ve){return new(ve||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[Oi,jt.BQ],jt.BQ]}),Ke})();class Di extends v.o2{constructor(mt=[]){super(),this._renderData=new c.X([]),this._filter=new c.X(""),this._internalPageChanges=new s.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(ve,qe)=>{const _t=ve[qe];if((0,t.t6)(_t)){const ue=Number(_t);return ue<9007199254740991?ue:_t}return _t},this.sortData=(ve,qe)=>{const _t=qe.active,ue=qe.direction;return _t&&""!=ue?ve.sort(($e,St)=>{let Rt=this.sortingDataAccessor($e,_t),yi=this.sortingDataAccessor(St,_t);const Ri=typeof Rt,Ii=typeof yi;Ri!==Ii&&("number"===Ri&&(Rt+=""),"number"===Ii&&(yi+=""));let Ki=0;return null!=Rt&&null!=yi?Rt>yi?Ki=1:Rt<yi&&(Ki=-1):null!=Rt?Ki=1:null!=yi&&(Ki=-1),Ki*("asc"==ue?1:-1)}):ve},this.filterPredicate=(ve,qe)=>{const _t=Object.keys(ve).reduce(($e,St)=>$e+ve[St]+"\u25ec","").toLowerCase(),ue=qe.trim().toLowerCase();return-1!=_t.indexOf(ue)},this._data=new c.X(mt),this._updateChangeSubscription()}get data(){return this._data.value}set data(mt){this._data.next(mt),this._renderChangesSubscription||this._filterData(mt)}get filter(){return this._filter.value}set filter(mt){this._filter.next(mt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(mt){this._sort=mt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(mt){this._paginator=mt,this._updateChangeSubscription()}_updateChangeSubscription(){var mt;const ve=this._sort?(0,ti.T)(this._sort.sortChange,this._sort.initialized):(0,o.of)(null),qe=this._paginator?(0,ti.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,o.of)(null),ue=(0,Pi.a)([this._data,this._filter]).pipe((0,si.U)(([Rt])=>this._filterData(Rt))),$e=(0,Pi.a)([ue,ve]).pipe((0,si.U)(([Rt])=>this._orderData(Rt))),St=(0,Pi.a)([$e,qe]).pipe((0,si.U)(([Rt])=>this._pageData(Rt)));null===(mt=this._renderChangesSubscription)||void 0===mt||mt.unsubscribe(),this._renderChangesSubscription=St.subscribe(Rt=>this._renderData.next(Rt))}_filterData(mt){return this.filteredData=null==this.filter||""===this.filter?mt:mt.filter(ve=>this.filterPredicate(ve,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(mt){return this.sort?this.sortData(mt.slice(),this.sort):mt}_pageData(mt){if(!this.paginator)return mt;const ve=this.paginator.pageIndex*this.paginator.pageSize;return mt.slice(ve,ve+this.paginator.pageSize)}_updatePaginator(mt){Promise.resolve().then(()=>{const ve=this.paginator;if(ve&&(ve.length=mt,ve.pageIndex>0)){const qe=Math.ceil(ve.length/ve.pageSize)-1||0,_t=Math.min(ve.pageIndex,qe);_t!==ve.pageIndex&&(ve.pageIndex=_t,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var mt;null===(mt=this._renderChangesSubscription)||void 0===mt||mt.unsubscribe(),this._renderChangesSubscription=null}}class Xi extends Di{}},3251:(Ze,K,m)=>{"use strict";m.d(K,{uX:()=>vt,SP:()=>Vt,uD:()=>we,Nj:()=>si,BU:()=>jt,Nh:()=>di});var e=m(5664),t=m(7144),v=m(7429),C=m(9808),s=m(5e3),M=m(508),c=m(6360),N=m(7579),o=m(727),L=m(4968),O=m(9646),A=m(6451),E=m(2805),k=m(1777),w=m(8675),V=m(1884),W=m(2722),j=m(226),$=m(3191),ee=m(1159),me=m(925),ce=m(5303);function le(ze,Te){1&ze&&s.Hsn(0)}const te=["*"];function re(ze,Te){}const pe=function(ze){return{animationDuration:ze}},y=function(ze,Te){return{value:ze,params:Te}},i=["tabListContainer"],a=["tabList"],p=["tabListInner"],u=["nextPaginator"],_=["previousPaginator"],D=["tabBodyWrapper"],I=["tabHeader"];function x(ze,Te){}function r(ze,Te){if(1&ze&&s.YNc(0,x,0,0,"ng-template",9),2&ze){const Y=s.oxw().$implicit;s.Q6J("cdkPortalOutlet",Y.templateLabel)}}function b(ze,Te){if(1&ze&&s._uU(0),2&ze){const Y=s.oxw().$implicit;s.Oqu(Y.textLabel)}}function Z(ze,Te){if(1&ze){const Y=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const Ae=s.CHM(Y),et=Ae.$implicit,$t=Ae.index,Nt=s.oxw(),Xt=s.MAs(1);return Nt._handleClick(et,Xt,$t)})("cdkFocusChange",function(Ae){const $t=s.CHM(Y).index;return s.oxw()._tabFocusChanged(Ae,$t)}),s.TgZ(1,"div",7),s.YNc(2,r,1,1,"ng-template",8),s.YNc(3,b,1,1,"ng-template",8),s.qZA(),s.qZA()}if(2&ze){const Y=Te.$implicit,ge=Te.index,Ae=s.oxw();s.ekj("mat-tab-label-active",Ae.selectedIndex==ge),s.Q6J("id",Ae._getTabLabelId(ge))("disabled",Y.disabled)("matRippleDisabled",Y.disabled||Ae.disableRipple),s.uIk("tabIndex",Ae._getTabIndex(Y,ge))("aria-posinset",ge+1)("aria-setsize",Ae._tabs.length)("aria-controls",Ae._getTabContentId(ge))("aria-selected",Ae.selectedIndex==ge)("aria-label",Y.ariaLabel||null)("aria-labelledby",!Y.ariaLabel&&Y.ariaLabelledby?Y.ariaLabelledby:null),s.xp6(2),s.Q6J("ngIf",Y.templateLabel),s.xp6(1),s.Q6J("ngIf",!Y.templateLabel)}}function P(ze,Te){if(1&ze){const Y=s.EpF();s.TgZ(0,"mat-tab-body",10),s.NdJ("_onCentered",function(){return s.CHM(Y),s.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Ae){return s.CHM(Y),s.oxw()._setTabBodyWrapperHeight(Ae)}),s.qZA()}if(2&ze){const Y=Te.$implicit,ge=Te.index,Ae=s.oxw();s.ekj("mat-tab-body-active",Ae.selectedIndex===ge),s.Q6J("id",Ae._getTabContentId(ge))("content",Y.content)("position",Y.position)("origin",Y.origin)("animationDuration",Ae.animationDuration),s.uIk("tabindex",null!=Ae.contentTabIndex&&Ae.selectedIndex===ge?Ae.contentTabIndex:null)("aria-labelledby",Ae._getTabLabelId(ge))}}const U=["mat-tab-nav-bar",""],ye=new s.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return Te=>({left:Te?(Te.offsetLeft||0)+"px":"0",width:Te?(Te.offsetWidth||0)+"px":"0"})}});let Ne=(()=>{class ze{constructor(Y,ge,Ae,et){this._elementRef=Y,this._ngZone=ge,this._inkBarPositioner=Ae,this._animationMode=et}alignToElement(Y){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(Y))}):this._setStyles(Y)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(Y){const ge=this._inkBarPositioner(Y),Ae=this._elementRef.nativeElement;Ae.style.left=ge.left,Ae.style.width=ge.width}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(ye),s.Y36(c.Qb,8))},ze.\u0275dir=s.lG2({type:ze,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Y,ge){2&Y&&s.ekj("_mat-animation-noopable","NoopAnimations"===ge._animationMode)}}),ze})();const Be=new s.OlP("MatTabContent"),B=new s.OlP("MatTabLabel"),Me=new s.OlP("MAT_TAB");let we=(()=>{class ze extends v.ig{constructor(Y,ge,Ae){super(Y,ge),this._closestTab=Ae}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(Me,8))},ze.\u0275dir=s.lG2({type:ze,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s._Bn([{provide:B,useExisting:ze}]),s.qOj]}),ze})();const ae=(0,M.Id)(class{}),We=new s.OlP("MAT_TAB_GROUP");let vt=(()=>{class ze extends ae{constructor(Y,ge){super(),this._viewContainerRef=Y,this._closestTabGroup=ge,this.textLabel="",this._contentPortal=null,this._stateChanges=new N.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Y){this._setTemplateLabelInput(Y)}get content(){return this._contentPortal}ngOnChanges(Y){(Y.hasOwnProperty("textLabel")||Y.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Y){Y&&Y._closestTab===this&&(this._templateLabel=Y)}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(s.s_b),s.Y36(We,8))},ze.\u0275cmp=s.Xpm({type:ze,selectors:[["mat-tab"]],contentQueries:function(Y,ge,Ae){if(1&Y&&(s.Suo(Ae,B,5),s.Suo(Ae,Be,7,s.Rgc)),2&Y){let et;s.iGM(et=s.CRH())&&(ge.templateLabel=et.first),s.iGM(et=s.CRH())&&(ge._explicitContent=et.first)}},viewQuery:function(Y,ge){if(1&Y&&s.Gf(s.Rgc,7),2&Y){let Ae;s.iGM(Ae=s.CRH())&&(ge._implicitContent=Ae.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s._Bn([{provide:Me,useExisting:ze}]),s.qOj,s.TTD],ngContentSelectors:te,decls:1,vars:0,template:function(Y,ge){1&Y&&(s.F$t(),s.YNc(0,le,1,0,"ng-template"))},encapsulation:2}),ze})();const Pe={translateTab:(0,k.X$)("translateTab",[(0,k.SB)("center, void, left-origin-center, right-origin-center",(0,k.oB)({transform:"none"})),(0,k.SB)("left",(0,k.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,k.SB)("right",(0,k.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,k.eR)("* => left, * => right, left => center, right => center",(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,k.eR)("void => left-origin-center",[(0,k.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,k.eR)("void => right-origin-center",[(0,k.oB)({transform:"translate3d(100%, 0, 0)"}),(0,k.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Ve=(()=>{class ze extends v.Pl{constructor(Y,ge,Ae,et){super(Y,ge,et),this._host=Ae,this._centeringSub=o.w0.EMPTY,this._leavingSub=o.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,w.O)(this._host._isCenterPosition(this._host._position))).subscribe(Y=>{Y&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36((0,s.Gpc)(()=>Ee)),s.Y36(C.K0))},ze.\u0275dir=s.lG2({type:ze,selectors:[["","matTabBodyHost",""]],features:[s.qOj]}),ze})(),he=(()=>{class ze{constructor(Y,ge,Ae){this._elementRef=Y,this._dir=ge,this._dirChangeSubscription=o.w0.EMPTY,this._translateTabComplete=new N.x,this._onCentering=new s.vpe,this._beforeCentering=new s.vpe,this._afterLeavingCenter=new s.vpe,this._onCentered=new s.vpe(!0),this.animationDuration="500ms",ge&&(this._dirChangeSubscription=ge.change.subscribe(et=>{this._computePositionAnimationState(et),Ae.markForCheck()})),this._translateTabComplete.pipe((0,V.x)((et,$t)=>et.fromState===$t.fromState&&et.toState===$t.toState)).subscribe(et=>{this._isCenterPosition(et.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(et.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Y){this._positionIndex=Y,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Y){const ge=this._isCenterPosition(Y.toState);this._beforeCentering.emit(ge),ge&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Y){return"center"==Y||"left-origin-center"==Y||"right-origin-center"==Y}_computePositionAnimationState(Y=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Y?"left":"right":this._positionIndex>0?"ltr"==Y?"right":"left":"center"}_computePositionFromOrigin(Y){const ge=this._getLayoutDirection();return"ltr"==ge&&Y<=0||"rtl"==ge&&Y>0?"left-origin-center":"right-origin-center"}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(s.SBq),s.Y36(j.Is,8),s.Y36(s.sBO))},ze.\u0275dir=s.lG2({type:ze,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),ze})(),Ee=(()=>{class ze extends he{constructor(Y,ge,Ae){super(Y,ge,Ae)}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(s.SBq),s.Y36(j.Is,8),s.Y36(s.sBO))},ze.\u0275cmp=s.Xpm({type:ze,selectors:[["mat-tab-body"]],viewQuery:function(Y,ge){if(1&Y&&s.Gf(v.Pl,5),2&Y){let Ae;s.iGM(Ae=s.CRH())&&(ge._portalHost=Ae.first)}},hostAttrs:[1,"mat-tab-body"],features:[s.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Y,ge){1&Y&&(s.TgZ(0,"div",0,1),s.NdJ("@translateTab.start",function(et){return ge._onTranslateTabStarted(et)})("@translateTab.done",function(et){return ge._translateTabComplete.next(et)}),s.YNc(2,re,0,0,"ng-template",2),s.qZA()),2&Y&&s.Q6J("@translateTab",s.WLB(3,y,ge._position,s.VKq(1,pe,ge.animationDuration)))},directives:[Ve],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Pe.translateTab]}}),ze})();const ke=new s.OlP("MAT_TABS_CONFIG"),q=(0,M.Id)(class{});let J=(()=>{class ze extends q{constructor(Y){super(),this.elementRef=Y}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(s.SBq))},ze.\u0275dir=s.lG2({type:ze,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Y,ge){2&Y&&(s.uIk("aria-disabled",!!ge.disabled),s.ekj("mat-tab-disabled",ge.disabled))},inputs:{disabled:"disabled"},features:[s.qOj]}),ze})();const oe=(0,me.i$)({passive:!0});let it=(()=>{class ze{constructor(Y,ge,Ae,et,$t,Nt,Xt){this._elementRef=Y,this._changeDetectorRef=ge,this._viewportRuler=Ae,this._dir=et,this._ngZone=$t,this._platform=Nt,this._animationMode=Xt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new N.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new N.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.vpe,this.indexFocused=new s.vpe,$t.runOutsideAngular(()=>{(0,L.R)(Y.nativeElement,"mouseleave").pipe((0,W.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(Y){Y=(0,$.su)(Y),this._selectedIndex!=Y&&(this._selectedIndexChanged=!0,this._selectedIndex=Y,this._keyManager&&this._keyManager.updateActiveItem(Y))}ngAfterViewInit(){(0,L.R)(this._previousPaginator.nativeElement,"touchstart",oe).pipe((0,W.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,L.R)(this._nextPaginator.nativeElement,"touchstart",oe).pipe((0,W.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Y=this._dir?this._dir.change:(0,O.of)("ltr"),ge=this._viewportRuler.change(150),Ae=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(Ae):Ae(),(0,A.T)(Y,ge,this._items.changes).pipe((0,W.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(Ae)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,W.R)(this._destroyed)).subscribe(et=>{this.indexFocused.emit(et),this._setTabFocus(et)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Y){if(!(0,ee.Vb)(Y))switch(Y.keyCode){case ee.K5:case ee.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Y));break;default:this._keyManager.onKeydown(Y)}}_onContentChanges(){const Y=this._elementRef.nativeElement.textContent;Y!==this._currentTextContent&&(this._currentTextContent=Y||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(Y){!this._isValidIndex(Y)||this.focusIndex===Y||!this._keyManager||this._keyManager.setActiveItem(Y)}_isValidIndex(Y){if(!this._items)return!0;const ge=this._items?this._items.toArray()[Y]:null;return!!ge&&!ge.disabled}_setTabFocus(Y){if(this._showPaginationControls&&this._scrollToLabel(Y),this._items&&this._items.length){this._items.toArray()[Y].focus();const ge=this._tabListContainer.nativeElement;ge.scrollLeft="ltr"==this._getLayoutDirection()?0:ge.scrollWidth-ge.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Y=this.scrollDistance,ge="ltr"===this._getLayoutDirection()?-Y:Y;this._tabList.nativeElement.style.transform=`translateX(${Math.round(ge)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Y){this._scrollTo(Y)}_scrollHeader(Y){return this._scrollTo(this._scrollDistance+("before"==Y?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Y){this._stopInterval(),this._scrollHeader(Y)}_scrollToLabel(Y){if(this.disablePagination)return;const ge=this._items?this._items.toArray()[Y]:null;if(!ge)return;const Ae=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:et,offsetWidth:$t}=ge.elementRef.nativeElement;let Nt,Xt;"ltr"==this._getLayoutDirection()?(Nt=et,Xt=Nt+$t):(Xt=this._tabListInner.nativeElement.offsetWidth-et,Nt=Xt-$t);const lt=this.scrollDistance,Re=this.scrollDistance+Ae;Nt<lt?this.scrollDistance-=lt-Nt+60:Xt>Re&&(this.scrollDistance+=Xt-Re+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Y=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Y||(this.scrollDistance=0),Y!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Y}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const Y=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,ge=Y?Y.elementRef.nativeElement:null;ge?this._inkBar.alignToElement(ge):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Y,ge){ge&&null!=ge.button&&0!==ge.button||(this._stopInterval(),(0,E.H)(650,100).pipe((0,W.R)((0,A.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ae,distance:et}=this._scrollHeader(Y);(0===et||et>=Ae)&&this._stopInterval()}))}_scrollTo(Y){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const ge=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(ge,Y)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:ge,distance:this._scrollDistance}}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(ce.rL),s.Y36(j.Is,8),s.Y36(s.R0b),s.Y36(me.t4),s.Y36(c.Qb,8))},ze.\u0275dir=s.lG2({type:ze,inputs:{disablePagination:"disablePagination"}}),ze})(),ft=(()=>{class ze extends it{constructor(Y,ge,Ae,et,$t,Nt,Xt){super(Y,ge,Ae,et,$t,Nt,Xt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Y){this._disableRipple=(0,$.Ig)(Y)}_itemSelected(Y){Y.preventDefault()}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(ce.rL),s.Y36(j.Is,8),s.Y36(s.R0b),s.Y36(me.t4),s.Y36(c.Qb,8))},ze.\u0275dir=s.lG2({type:ze,inputs:{disableRipple:"disableRipple"},features:[s.qOj]}),ze})(),nt=(()=>{class ze extends ft{constructor(Y,ge,Ae,et,$t,Nt,Xt){super(Y,ge,Ae,et,$t,Nt,Xt)}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(ce.rL),s.Y36(j.Is,8),s.Y36(s.R0b),s.Y36(me.t4),s.Y36(c.Qb,8))},ze.\u0275cmp=s.Xpm({type:ze,selectors:[["mat-tab-header"]],contentQueries:function(Y,ge,Ae){if(1&Y&&s.Suo(Ae,J,4),2&Y){let et;s.iGM(et=s.CRH())&&(ge._items=et)}},viewQuery:function(Y,ge){if(1&Y&&(s.Gf(Ne,7),s.Gf(i,7),s.Gf(a,7),s.Gf(p,7),s.Gf(u,5),s.Gf(_,5)),2&Y){let Ae;s.iGM(Ae=s.CRH())&&(ge._inkBar=Ae.first),s.iGM(Ae=s.CRH())&&(ge._tabListContainer=Ae.first),s.iGM(Ae=s.CRH())&&(ge._tabList=Ae.first),s.iGM(Ae=s.CRH())&&(ge._tabListInner=Ae.first),s.iGM(Ae=s.CRH())&&(ge._nextPaginator=Ae.first),s.iGM(Ae=s.CRH())&&(ge._previousPaginator=Ae.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Y,ge){2&Y&&s.ekj("mat-tab-header-pagination-controls-enabled",ge._showPaginationControls)("mat-tab-header-rtl","rtl"==ge._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.qOj],ngContentSelectors:te,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Y,ge){1&Y&&(s.F$t(),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return ge._handlePaginatorClick("before")})("mousedown",function(et){return ge._handlePaginatorPress("before",et)})("touchend",function(){return ge._stopInterval()}),s._UZ(2,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.NdJ("keydown",function(et){return ge._handleKeydown(et)}),s.TgZ(5,"div",5,6),s.NdJ("cdkObserveContent",function(){return ge._onContentChanges()}),s.TgZ(7,"div",7,8),s.Hsn(9),s.qZA(),s._UZ(10,"mat-ink-bar"),s.qZA(),s.qZA(),s.TgZ(11,"div",9,10),s.NdJ("mousedown",function(et){return ge._handlePaginatorPress("after",et)})("click",function(){return ge._handlePaginatorClick("after")})("touchend",function(){return ge._stopInterval()}),s._UZ(13,"div",2),s.qZA()),2&Y&&(s.ekj("mat-tab-header-pagination-disabled",ge._disableScrollBefore),s.Q6J("matRippleDisabled",ge._disableScrollBefore||ge.disableRipple),s.xp6(5),s.ekj("_mat-animation-noopable","NoopAnimations"===ge._animationMode),s.xp6(6),s.ekj("mat-tab-header-pagination-disabled",ge._disableScrollAfter),s.Q6J("matRippleDisabled",ge._disableScrollAfter||ge.disableRipple))},directives:[M.wG,t.wD,Ne],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),ze})(),st=0;class wt{}const Bt=(0,M.pj)((0,M.Kr)(class{constructor(ze){this._elementRef=ze}}),"primary");let Pt=(()=>{class ze extends Bt{constructor(Y,ge,Ae,et){var $t;super(Y),this._changeDetectorRef=ge,this._animationMode=et,this._tabs=new s.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=o.w0.EMPTY,this._tabLabelSubscription=o.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.vpe,this.focusChange=new s.vpe,this.animationDone=new s.vpe,this.selectedTabChange=new s.vpe(!0),this._groupId=st++,this.animationDuration=Ae&&Ae.animationDuration?Ae.animationDuration:"500ms",this.disablePagination=!(!Ae||null==Ae.disablePagination)&&Ae.disablePagination,this.dynamicHeight=!(!Ae||null==Ae.dynamicHeight)&&Ae.dynamicHeight,this.contentTabIndex=null!==($t=null==Ae?void 0:Ae.contentTabIndex)&&void 0!==$t?$t:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Y){this._dynamicHeight=(0,$.Ig)(Y)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Y){this._indexToSelect=(0,$.su)(Y,null)}get animationDuration(){return this._animationDuration}set animationDuration(Y){this._animationDuration=/^\d+$/.test(Y)?Y+"ms":Y}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Y){this._contentTabIndex=(0,$.su)(Y,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Y){const ge=this._elementRef.nativeElement;ge.classList.remove(`mat-background-${this.backgroundColor}`),Y&&ge.classList.add(`mat-background-${Y}`),this._backgroundColor=Y}ngAfterContentChecked(){const Y=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Y){const ge=null==this._selectedIndex;if(!ge){this.selectedTabChange.emit(this._createChangeEvent(Y));const Ae=this._tabBodyWrapper.nativeElement;Ae.style.minHeight=Ae.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Ae,et)=>Ae.isActive=et===Y),ge||(this.selectedIndexChange.emit(Y),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((ge,Ae)=>{ge.position=Ae-Y,null!=this._selectedIndex&&0==ge.position&&!ge.origin&&(ge.origin=Y-this._selectedIndex)}),this._selectedIndex!==Y&&(this._selectedIndex=Y,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const ge=this._tabs.toArray();for(let Ae=0;Ae<ge.length;Ae++)if(ge[Ae].isActive){this._indexToSelect=this._selectedIndex=Ae;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,w.O)(this._allTabs)).subscribe(Y=>{this._tabs.reset(Y.filter(ge=>ge._closestTabGroup===this||!ge._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(Y){const ge=this._tabHeader;ge&&(ge.focusIndex=Y)}_focusChanged(Y){this.focusChange.emit(this._createChangeEvent(Y))}_createChangeEvent(Y){const ge=new wt;return ge.index=Y,this._tabs&&this._tabs.length&&(ge.tab=this._tabs.toArray()[Y]),ge}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,A.T)(...this._tabs.map(Y=>Y._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Y){return Math.min(this._tabs.length-1,Math.max(Y||0,0))}_getTabLabelId(Y){return`mat-tab-label-${this._groupId}-${Y}`}_getTabContentId(Y){return`mat-tab-content-${this._groupId}-${Y}`}_setTabBodyWrapperHeight(Y){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const ge=this._tabBodyWrapper.nativeElement;ge.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(ge.style.height=Y+"px")}_removeTabBodyWrapperHeight(){const Y=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Y.clientHeight,Y.style.height="",this.animationDone.emit()}_handleClick(Y,ge,Ae){Y.disabled||(this.selectedIndex=ge.focusIndex=Ae)}_getTabIndex(Y,ge){return Y.disabled?null:this.selectedIndex===ge?0:-1}_tabFocusChanged(Y,ge){Y&&"mouse"!==Y&&"touch"!==Y&&(this._tabHeader.focusIndex=ge)}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(ke,8),s.Y36(c.Qb,8))},ze.\u0275dir=s.lG2({type:ze,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.qOj]}),ze})(),Vt=(()=>{class ze extends Pt{constructor(Y,ge,Ae,et){super(Y,ge,Ae,et)}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(ke,8),s.Y36(c.Qb,8))},ze.\u0275cmp=s.Xpm({type:ze,selectors:[["mat-tab-group"]],contentQueries:function(Y,ge,Ae){if(1&Y&&s.Suo(Ae,vt,5),2&Y){let et;s.iGM(et=s.CRH())&&(ge._allTabs=et)}},viewQuery:function(Y,ge){if(1&Y&&(s.Gf(D,5),s.Gf(I,5)),2&Y){let Ae;s.iGM(Ae=s.CRH())&&(ge._tabBodyWrapper=Ae.first),s.iGM(Ae=s.CRH())&&(ge._tabHeader=Ae.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Y,ge){2&Y&&s.ekj("mat-tab-group-dynamic-height",ge.dynamicHeight)("mat-tab-group-inverted-header","below"===ge.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s._Bn([{provide:We,useExisting:ze}]),s.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(Y,ge){1&Y&&(s.TgZ(0,"mat-tab-header",0,1),s.NdJ("indexFocused",function(et){return ge._focusChanged(et)})("selectFocusedIndex",function(et){return ge.selectedIndex=et}),s.YNc(2,Z,4,14,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.YNc(5,P,1,9,"mat-tab-body",5),s.qZA()),2&Y&&(s.Q6J("selectedIndex",ge.selectedIndex||0)("disableRipple",ge.disableRipple)("disablePagination",ge.disablePagination),s.xp6(2),s.Q6J("ngForOf",ge._tabs),s.xp6(1),s.ekj("_mat-animation-noopable","NoopAnimations"===ge._animationMode),s.xp6(2),s.Q6J("ngForOf",ge._tabs))},directives:[nt,C.sg,J,M.wG,e.kH,C.O5,v.Pl,Ee],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),ze})(),Oi=(()=>{class ze extends it{constructor(Y,ge,Ae,et,$t,Nt,Xt){super(Y,et,$t,ge,Ae,Nt,Xt),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(Y){const ge=this._elementRef.nativeElement.classList;ge.remove(`mat-background-${this.backgroundColor}`),Y&&ge.add(`mat-background-${Y}`),this._backgroundColor=Y}get disableRipple(){return this._disableRipple}set disableRipple(Y){this._disableRipple=(0,$.Ig)(Y)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,w.O)(null),(0,W.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const Y=this._items.toArray();for(let ge=0;ge<Y.length;ge++)if(Y[ge].active)return this.selectedIndex=ge,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(s.SBq),s.Y36(j.Is,8),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(ce.rL),s.Y36(me.t4),s.Y36(c.Qb,8))},ze.\u0275dir=s.lG2({type:ze,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color"},features:[s.qOj]}),ze})(),jt=(()=>{class ze extends Oi{constructor(Y,ge,Ae,et,$t,Nt,Xt){super(Y,ge,Ae,et,$t,Nt,Xt)}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(s.SBq),s.Y36(j.Is,8),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(ce.rL),s.Y36(me.t4),s.Y36(c.Qb,8))},ze.\u0275cmp=s.Xpm({type:ze,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(Y,ge,Ae){if(1&Y&&s.Suo(Ae,si,5),2&Y){let et;s.iGM(et=s.CRH())&&(ge._items=et)}},viewQuery:function(Y,ge){if(1&Y&&(s.Gf(Ne,7),s.Gf(i,7),s.Gf(a,7),s.Gf(p,7),s.Gf(u,5),s.Gf(_,5)),2&Y){let Ae;s.iGM(Ae=s.CRH())&&(ge._inkBar=Ae.first),s.iGM(Ae=s.CRH())&&(ge._tabListContainer=Ae.first),s.iGM(Ae=s.CRH())&&(ge._tabList=Ae.first),s.iGM(Ae=s.CRH())&&(ge._tabListInner=Ae.first),s.iGM(Ae=s.CRH())&&(ge._nextPaginator=Ae.first),s.iGM(Ae=s.CRH())&&(ge._previousPaginator=Ae.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(Y,ge){2&Y&&s.ekj("mat-tab-header-pagination-controls-enabled",ge._showPaginationControls)("mat-tab-header-rtl","rtl"==ge._getLayoutDirection())("mat-primary","warn"!==ge.color&&"accent"!==ge.color)("mat-accent","accent"===ge.color)("mat-warn","warn"===ge.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.qOj],attrs:U,ngContentSelectors:te,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Y,ge){1&Y&&(s.F$t(),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return ge._handlePaginatorClick("before")})("mousedown",function(et){return ge._handlePaginatorPress("before",et)})("touchend",function(){return ge._stopInterval()}),s._UZ(2,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.NdJ("keydown",function(et){return ge._handleKeydown(et)}),s.TgZ(5,"div",5,6),s.NdJ("cdkObserveContent",function(){return ge._onContentChanges()}),s.TgZ(7,"div",7,8),s.Hsn(9),s.qZA(),s._UZ(10,"mat-ink-bar"),s.qZA(),s.qZA(),s.TgZ(11,"div",9,10),s.NdJ("mousedown",function(et){return ge._handlePaginatorPress("after",et)})("click",function(){return ge._handlePaginatorClick("after")})("touchend",function(){return ge._stopInterval()}),s._UZ(13,"div",2),s.qZA()),2&Y&&(s.ekj("mat-tab-header-pagination-disabled",ge._disableScrollBefore),s.Q6J("matRippleDisabled",ge._disableScrollBefore||ge.disableRipple),s.xp6(5),s.ekj("_mat-animation-noopable","NoopAnimations"===ge._animationMode),s.xp6(6),s.ekj("mat-tab-header-pagination-disabled",ge._disableScrollAfter),s.Q6J("matRippleDisabled",ge._disableScrollAfter||ge.disableRipple))},directives:[M.wG,t.wD,Ne],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),ze})();const ti=(0,M.sb)((0,M.Kr)((0,M.Id)(class{})));let Pi=(()=>{class ze extends ti{constructor(Y,ge,Ae,et,$t,Nt){super(),this._tabNavBar=Y,this.elementRef=ge,this._focusMonitor=$t,this._isActive=!1,this.rippleConfig=Ae||{},this.tabIndex=parseInt(et)||0,"NoopAnimations"===Nt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(Y){(0,$.Ig)(Y)!==this._isActive&&(this._isActive=Y,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(Oi),s.Y36(s.SBq),s.Y36(M.Y2,8),s.$8M("tabindex"),s.Y36(e.tE),s.Y36(c.Qb,8))},ze.\u0275dir=s.lG2({type:ze,inputs:{active:"active"},features:[s.qOj]}),ze})(),si=(()=>{class ze extends Pi{constructor(Y,ge,Ae,et,$t,Nt,Xt,lt){super(Y,ge,$t,Nt,Xt,lt),this._tabLinkRipple=new M.IR(this,Ae,ge,et),this._tabLinkRipple.setupTriggerEvents(ge.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return ze.\u0275fac=function(Y){return new(Y||ze)(s.Y36(jt),s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(me.t4),s.Y36(M.Y2,8),s.$8M("tabindex"),s.Y36(e.tE),s.Y36(c.Qb,8))},ze.\u0275dir=s.lG2({type:ze,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(Y,ge){1&Y&&s.NdJ("focus",function(){return ge._handleFocus()}),2&Y&&(s.uIk("aria-current",ge.active?"page":null)("aria-disabled",ge.disabled)("tabIndex",ge.tabIndex),s.ekj("mat-tab-disabled",ge.disabled)("mat-tab-label-active",ge.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.qOj]}),ze})(),di=(()=>{class ze{}return ze.\u0275fac=function(Y){return new(Y||ze)},ze.\u0275mod=s.oAB({type:ze}),ze.\u0275inj=s.cJS({imports:[[C.ez,M.BQ,v.eL,M.si,t.Q8,e.rt],M.BQ]}),ze})()},4594:(Ze,K,m)=>{"use strict";m.d(K,{Ye:()=>o,g0:()=>O});var e=m(5e3),t=m(508),v=m(9808),C=m(925);const s=["*",[["mat-toolbar-row"]]],M=["*","mat-toolbar-row"],c=(0,t.pj)(class{constructor(A){this._elementRef=A}});let N=(()=>{class A{}return A.\u0275fac=function(k){return new(k||A)},A.\u0275dir=e.lG2({type:A,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),A})(),o=(()=>{class A extends c{constructor(k,w,V){super(k),this._platform=w,this._document=V}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return A.\u0275fac=function(k){return new(k||A)(e.Y36(e.SBq),e.Y36(C.t4),e.Y36(v.K0))},A.\u0275cmp=e.Xpm({type:A,selectors:[["mat-toolbar"]],contentQueries:function(k,w,V){if(1&k&&e.Suo(V,N,5),2&k){let W;e.iGM(W=e.CRH())&&(w._toolbarRows=W)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(k,w){2&k&&e.ekj("mat-toolbar-multiple-rows",w._toolbarRows.length>0)("mat-toolbar-single-row",0===w._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[e.qOj],ngContentSelectors:M,decls:2,vars:0,template:function(k,w){1&k&&(e.F$t(s),e.Hsn(0),e.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),A})(),O=(()=>{class A{}return A.\u0275fac=function(k){return new(k||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[t.BQ],t.BQ]}),A})()},7238:(Ze,K,m)=>{"use strict";m.d(K,{gM:()=>p,AV:()=>D});var e=m(9776),t=m(5664),v=m(9808),C=m(5e3),s=m(508),M=m(5303),c=m(3191),N=m(1159),o=m(5113),L=m(925),O=m(7429),A=m(7579),E=m(2722),k=m(5698),w=m(1777),V=m(226);const W={tooltipState:(0,w.X$)("state",[(0,w.SB)("initial, void, hidden",(0,w.oB)({opacity:0,transform:"scale(0)"})),(0,w.SB)("visible",(0,w.oB)({transform:"scale(1)"})),(0,w.eR)("* => visible",(0,w.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,w.F4)([(0,w.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,w.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,w.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,w.eR)("* => hidden",(0,w.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,w.oB)({opacity:0})))])},ee="tooltip-panel",me=(0,L.i$)({passive:!0}),te=new C.OlP("mat-tooltip-scroll-strategy"),pe={provide:te,deps:[e.aV],useFactory:function(I){return()=>I.scrollStrategies.reposition({scrollThrottle:20})}},y=new C.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let a=(()=>{class I{constructor(r,b,Z,P,U,ye,xe,Ne,Be,Oe,B,Me){this._overlay=r,this._elementRef=b,this._scrollDispatcher=Z,this._viewContainerRef=P,this._ngZone=U,this._platform=ye,this._ariaDescriber=xe,this._focusMonitor=Ne,this._dir=Oe,this._defaultOptions=B,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new A.x,this._handleKeydown=we=>{this._isTooltipVisible()&&we.keyCode===N.hY&&!(0,N.Vb)(we)&&(we.preventDefault(),we.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=Be,this._document=Me,B&&(B.position&&(this.position=B.position),B.touchGestures&&(this.touchGestures=B.touchGestures)),Oe.change.pipe((0,E.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),U.runOutsideAngular(()=>{b.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(r){var b;r!==this._position&&(this._position=r,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(b=this._tooltipInstance)||void 0===b||b.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(r){this._disabled=(0,c.Ig)(r),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(r){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=r?String(r).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(r){this._tooltipClass=r,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,E.R)(this._destroyed)).subscribe(r=>{r?"keyboard"===r&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const r=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),r.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([b,Z])=>{r.removeEventListener(b,Z,me)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(r,this.message,"tooltip"),this._focusMonitor.stopMonitoring(r)}show(r=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const b=this._createOverlay();this._detach(),this._portal=this._portal||new O.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=b.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,E.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(r)}hide(r=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(r)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),b=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return b.positionChanges.pipe((0,E.R)(this._destroyed)).subscribe(Z=>{this._updateCurrentPositionClass(Z.connectionPair),this._tooltipInstance&&Z.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:b,panelClass:`${this._cssClassPrefix}-${ee}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,E.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,E.R)(this._destroyed)).subscribe(()=>{var Z;return null===(Z=this._tooltipInstance)||void 0===Z?void 0:Z._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(r){const b=r.getConfig().positionStrategy,Z=this._getOrigin(),P=this._getOverlayPosition();b.withPositions([this._addOffset(Object.assign(Object.assign({},Z.main),P.main)),this._addOffset(Object.assign(Object.assign({},Z.fallback),P.fallback))])}_addOffset(r){return r}_getOrigin(){const r=!this._dir||"ltr"==this._dir.value,b=this.position;let Z;"above"==b||"below"==b?Z={originX:"center",originY:"above"==b?"top":"bottom"}:"before"==b||"left"==b&&r||"right"==b&&!r?Z={originX:"start",originY:"center"}:("after"==b||"right"==b&&r||"left"==b&&!r)&&(Z={originX:"end",originY:"center"});const{x:P,y:U}=this._invertPosition(Z.originX,Z.originY);return{main:Z,fallback:{originX:P,originY:U}}}_getOverlayPosition(){const r=!this._dir||"ltr"==this._dir.value,b=this.position;let Z;"above"==b?Z={overlayX:"center",overlayY:"bottom"}:"below"==b?Z={overlayX:"center",overlayY:"top"}:"before"==b||"left"==b&&r||"right"==b&&!r?Z={overlayX:"end",overlayY:"center"}:("after"==b||"right"==b&&r||"left"==b&&!r)&&(Z={overlayX:"start",overlayY:"center"});const{x:P,y:U}=this._invertPosition(Z.overlayX,Z.overlayY);return{main:Z,fallback:{overlayX:P,overlayY:U}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,k.q)(1),(0,E.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(r){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=r,this._tooltipInstance._markForCheck())}_invertPosition(r,b){return"above"===this.position||"below"===this.position?"top"===b?b="bottom":"bottom"===b&&(b="top"):"end"===r?r="start":"start"===r&&(r="end"),{x:r,y:b}}_updateCurrentPositionClass(r){const{overlayY:b,originX:Z,originY:P}=r;let U;if(U="center"===b?this._dir&&"rtl"===this._dir.value?"end"===Z?"left":"right":"start"===Z?"left":"right":"bottom"===b&&"top"===P?"above":"below",U!==this._currentPosition){const ye=this._overlayRef;if(ye){const xe=`${this._cssClassPrefix}-${ee}-`;ye.removePanelClass(xe+this._currentPosition),ye.addPanelClass(xe+U)}this._currentPosition=U}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const r=[];if(this._platformSupportsMouseEvents())r.push(["mouseleave",()=>this.hide()],["wheel",b=>this._wheelListener(b)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const b=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};r.push(["touchend",b],["touchcancel",b])}this._addListeners(r),this._passiveListeners.push(...r)}_addListeners(r){r.forEach(([b,Z])=>{this._elementRef.nativeElement.addEventListener(b,Z,me)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(r){if(this._isTooltipVisible()){const b=this._document.elementFromPoint(r.clientX,r.clientY),Z=this._elementRef.nativeElement;b!==Z&&!Z.contains(b)&&this.hide()}}_disableNativeGesturesIfNecessary(){const r=this.touchGestures;if("off"!==r){const b=this._elementRef.nativeElement,Z=b.style;("on"===r||"INPUT"!==b.nodeName&&"TEXTAREA"!==b.nodeName)&&(Z.userSelect=Z.msUserSelect=Z.webkitUserSelect=Z.MozUserSelect="none"),("on"===r||!b.draggable)&&(Z.webkitUserDrag="none"),Z.touchAction="none",Z.webkitTapHighlightColor="transparent"}}}return I.\u0275fac=function(r){C.$Z()},I.\u0275dir=C.lG2({type:I,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),I})(),p=(()=>{class I extends a{constructor(r,b,Z,P,U,ye,xe,Ne,Be,Oe,B,Me){super(r,b,Z,P,U,ye,xe,Ne,Be,Oe,B,Me),this._tooltipComponent=_}}return I.\u0275fac=function(r){return new(r||I)(C.Y36(e.aV),C.Y36(C.SBq),C.Y36(M.mF),C.Y36(C.s_b),C.Y36(C.R0b),C.Y36(L.t4),C.Y36(t.$s),C.Y36(t.tE),C.Y36(te),C.Y36(V.Is,8),C.Y36(y,8),C.Y36(v.K0))},I.\u0275dir=C.lG2({type:I,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[C.qOj]}),I})(),u=(()=>{class I{constructor(r){this._changeDetectorRef=r,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new A.x}show(r){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},r)}hide(r){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},r)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(r){const b=r.toState;"hidden"===b&&!this.isVisible()&&this._onHide.next(),("visible"===b||"hidden"===b)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return I.\u0275fac=function(r){return new(r||I)(C.Y36(C.sBO))},I.\u0275dir=C.lG2({type:I}),I})(),_=(()=>{class I extends u{constructor(r,b){super(r),this._breakpointObserver=b,this._isHandset=this._breakpointObserver.observe(o.u3.Handset)}}return I.\u0275fac=function(r){return new(r||I)(C.Y36(C.sBO),C.Y36(o.Yg))},I.\u0275cmp=C.Xpm({type:I,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,b){2&r&&C.Udp("zoom","visible"===b._visibility?1:null)},features:[C.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(r,b){if(1&r&&(C.TgZ(0,"div",0),C.NdJ("@state.start",function(){return b._animationStart()})("@state.done",function(P){return b._animationDone(P)}),C.ALo(1,"async"),C._uU(2),C.qZA()),2&r){let Z;C.ekj("mat-tooltip-handset",null==(Z=C.lcZ(1,5,b._isHandset))?null:Z.matches),C.Q6J("ngClass",b.tooltipClass)("@state",b._visibility),C.xp6(2),C.Oqu(b.message)}},directives:[v.mk],pipes:[v.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[W.tooltipState]},changeDetection:0}),I})(),D=(()=>{class I{}return I.\u0275fac=function(r){return new(r||I)},I.\u0275mod=C.oAB({type:I}),I.\u0275inj=C.cJS({providers:[pe],imports:[[t.rt,v.ez,e.U8,s.BQ],s.BQ,M.ZD]}),I})()},149:(Ze,K,m)=>{"use strict";m.d(K,{GZ:()=>A,gi:()=>w,dp:()=>j,WX:()=>me,uo:()=>L,fQ:()=>O,Ar:()=>k,eu:()=>V});var e=m(8258),t=m(5e3),v=m(508),C=m(3191),s=m(449),M=m(1135),c=m(6451),N=m(4004);const o=(0,v.sb)((0,v.Id)(e.Hs));let L=(()=>{class ce extends o{constructor(te,re,pe){super(te,re),this.tabIndex=Number(pe)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return ce.\u0275fac=function(te){return new(te||ce)(t.Y36(t.SBq),t.Y36(e._0),t.$8M("tabindex"))},ce.\u0275dir=t.lG2({type:ce,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[t._Bn([{provide:e.Hs,useExisting:ce}]),t.qOj]}),ce})(),O=(()=>{class ce extends e.rO{}return ce.\u0275fac=function(){let le;return function(re){return(le||(le=t.n5z(ce)))(re||ce)}}(),ce.\u0275dir=t.lG2({type:ce,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[t._Bn([{provide:e.rO,useExisting:ce}]),t.qOj]}),ce})(),A=(()=>{class ce extends e.Xx{constructor(te,re,pe,y){super(te,re,pe),this._disabled=!1,this.tabIndex=Number(y)||0}get disabled(){return this._disabled}set disabled(te){this._disabled=(0,C.Ig)(te)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(te){this._tabIndex=null!=te?te:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return ce.\u0275fac=function(te){return new(te||ce)(t.Y36(t.SBq),t.Y36(e._0),t.Y36(t.ZZ4),t.$8M("tabindex"))},ce.\u0275dir=t.lG2({type:ce,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[t._Bn([{provide:e.Xx,useExisting:ce},{provide:e.Hs,useExisting:ce},{provide:e.HI,useExisting:ce}]),t.qOj]}),ce})(),k=(()=>{class ce{constructor(te,re){this.viewContainer=te,this._node=re}}return ce.\u0275fac=function(te){return new(te||ce)(t.Y36(t.s_b),t.Y36(e.HI,8))},ce.\u0275dir=t.lG2({type:ce,selectors:[["","matTreeNodeOutlet",""]],features:[t._Bn([{provide:e.cu,useExisting:ce}])]}),ce})(),w=(()=>{class ce extends e._0{}return ce.\u0275fac=function(){let le;return function(re){return(le||(le=t.n5z(ce)))(re||ce)}}(),ce.\u0275cmp=t.Xpm({type:ce,selectors:[["mat-tree"]],viewQuery:function(te,re){if(1&te&&t.Gf(k,7),2&te){let pe;t.iGM(pe=t.CRH())&&(re._nodeOutlet=pe.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[t._Bn([{provide:e._0,useExisting:ce}]),t.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(te,re){1&te&&t.GkF(0,0)},directives:[k],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),ce})(),V=(()=>{class ce extends e.Ud{}return ce.\u0275fac=function(){let le;return function(re){return(le||(le=t.n5z(ce)))(re||ce)}}(),ce.\u0275dir=t.lG2({type:ce,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[t._Bn([{provide:e.Ud,useExisting:ce}]),t.qOj]}),ce})(),j=(()=>{class ce{}return ce.\u0275fac=function(te){return new(te||ce)},ce.\u0275mod=t.oAB({type:ce}),ce.\u0275inj=t.cJS({imports:[[e.nZ,v.BQ],v.BQ]}),ce})();class me extends s.o2{constructor(){super(...arguments),this._data=new M.X([])}get data(){return this._data.value}set data(le){this._data.next(le)}connect(le){return(0,c.T)(le.viewChange,this._data).pipe((0,N.U)(()=>this.data))}disconnect(){}}},6360:(Ze,K,m)=>{"use strict";m.d(K,{Qb:()=>ki,PW:()=>js});var e=m(5e3),t=m(2313),v=m(1777);function C(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function M(bt){switch(bt.length){case 0:return new v.ZN;case 1:return bt[0];default:return new v.ZE(bt)}}function c(bt,ie,de,je,Mt={},kt={}){const Kt=[],Jt=[];let fi=-1,Ai=null;if(je.forEach(Zi=>{const en=Zi.offset,Cn=en==fi,kn=Cn&&Ai||{};Object.keys(Zi).forEach(tt=>{let Et=tt,It=Zi[tt];if("offset"!==tt)switch(Et=ie.normalizePropertyName(Et,Kt),It){case v.k1:It=Mt[tt];break;case v.l3:It=kt[tt];break;default:It=ie.normalizeStyleValue(tt,Et,It,Kt)}kn[Et]=It}),Cn||Jt.push(kn),Ai=kn,fi=en}),Kt.length){const Zi="\n - ";throw new Error(`Unable to animate due to the following errors:${Zi}${Kt.join(Zi)}`)}return Jt}function N(bt,ie,de,je){switch(ie){case"start":bt.onStart(()=>je(de&&o(de,"start",bt)));break;case"done":bt.onDone(()=>je(de&&o(de,"done",bt)));break;case"destroy":bt.onDestroy(()=>je(de&&o(de,"destroy",bt)))}}function o(bt,ie,de){const je=de.totalTime,kt=L(bt.element,bt.triggerName,bt.fromState,bt.toState,ie||bt.phaseName,null==je?bt.totalTime:je,!!de.disabled),Kt=bt._data;return null!=Kt&&(kt._data=Kt),kt}function L(bt,ie,de,je,Mt="",kt=0,Kt){return{element:bt,triggerName:ie,fromState:de,toState:je,phaseName:Mt,totalTime:kt,disabled:!!Kt}}function O(bt,ie,de){let je;return bt instanceof Map?(je=bt.get(ie),je||bt.set(ie,je=de)):(je=bt[ie],je||(je=bt[ie]=de)),je}function A(bt){const ie=bt.indexOf(":");return[bt.substring(1,ie),bt.substr(ie+1)]}let E=(bt,ie)=>!1,k=(bt,ie)=>!1,w=(bt,ie,de)=>[];const V=s();(V||"undefined"!=typeof Element)&&(E=C()?(bt,ie)=>{for(;ie&&ie!==document.documentElement;){if(ie===bt)return!0;ie=ie.parentNode||ie.host}return!1}:(bt,ie)=>bt.contains(ie),k=(()=>{if(V||Element.prototype.matches)return(bt,ie)=>bt.matches(ie);{const bt=Element.prototype,ie=bt.matchesSelector||bt.mozMatchesSelector||bt.msMatchesSelector||bt.oMatchesSelector||bt.webkitMatchesSelector;return ie?(de,je)=>ie.apply(de,[je]):k}})(),w=(bt,ie,de)=>{let je=[];if(de){const Mt=bt.querySelectorAll(ie);for(let kt=0;kt<Mt.length;kt++)je.push(Mt[kt])}else{const Mt=bt.querySelector(ie);Mt&&je.push(Mt)}return je});let j=null,$=!1;function ee(bt){j||(j=("undefined"!=typeof document?document.body:null)||{},$=!!j.style&&"WebkitAppearance"in j.style);let ie=!0;return j.style&&!function(bt){return"ebkit"==bt.substring(1,6)}(bt)&&(ie=bt in j.style,!ie&&$&&(ie="Webkit"+bt.charAt(0).toUpperCase()+bt.substr(1)in j.style)),ie}const ce=k,le=E,te=w;function re(bt){const ie={};return Object.keys(bt).forEach(de=>{const je=de.replace(/([a-z])([A-Z])/g,"$1-$2");ie[je]=bt[de]}),ie}let pe=(()=>{class bt{validateStyleProperty(de){return ee(de)}matchesElement(de,je){return ce(de,je)}containsElement(de,je){return le(de,je)}query(de,je,Mt){return te(de,je,Mt)}computeStyle(de,je,Mt){return Mt||""}animate(de,je,Mt,kt,Kt,Jt=[],fi){return new v.ZN(Mt,kt)}}return bt.\u0275fac=function(de){return new(de||bt)},bt.\u0275prov=e.Yz7({token:bt,factory:bt.\u0275fac}),bt})(),y=(()=>{class bt{}return bt.NOOP=new pe,bt})();const u="ng-enter",_="ng-leave",x="ng-trigger",r=".ng-trigger",b="ng-animating",Z=".ng-animating";function P(bt){if("number"==typeof bt)return bt;const ie=bt.match(/^(-?[\.\d]+)(m?s)/);return!ie||ie.length<2?0:U(parseFloat(ie[1]),ie[2])}function U(bt,ie){return"s"===ie?1e3*bt:bt}function ye(bt,ie,de){return bt.hasOwnProperty("duration")?bt:function(bt,ie,de){let Mt,kt=0,Kt="";if("string"==typeof bt){const Jt=bt.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Jt)return ie.push(`The provided timing value "${bt}" is invalid.`),{duration:0,delay:0,easing:""};Mt=U(parseFloat(Jt[1]),Jt[2]);const fi=Jt[3];null!=fi&&(kt=U(parseFloat(fi),Jt[4]));const Ai=Jt[5];Ai&&(Kt=Ai)}else Mt=bt;if(!de){let Jt=!1,fi=ie.length;Mt<0&&(ie.push("Duration values below 0 are not allowed for this animation step."),Jt=!0),kt<0&&(ie.push("Delay values below 0 are not allowed for this animation step."),Jt=!0),Jt&&ie.splice(fi,0,`The provided timing value "${bt}" is invalid.`)}return{duration:Mt,delay:kt,easing:Kt}}(bt,ie,de)}function Ne(bt,ie={}){return Object.keys(bt).forEach(de=>{ie[de]=bt[de]}),ie}function Oe(bt,ie,de={}){if(ie)for(let je in bt)de[je]=bt[je];else Ne(bt,de);return de}function B(bt,ie,de){return de?ie+":"+de+";":""}function Me(bt){let ie="";for(let de=0;de<bt.style.length;de++){const je=bt.style.item(de);ie+=B(0,je,bt.style.getPropertyValue(je))}for(const de in bt.style)bt.style.hasOwnProperty(de)&&!de.startsWith("_")&&(ie+=B(0,J(de),bt.style[de]));bt.setAttribute("style",ie)}function we(bt,ie,de){bt.style&&(Object.keys(ie).forEach(je=>{const Mt=q(je);de&&!de.hasOwnProperty(je)&&(de[je]=bt.style[Mt]),bt.style[Mt]=ie[je]}),s()&&Me(bt))}function ae(bt,ie){bt.style&&(Object.keys(ie).forEach(de=>{const je=q(de);bt.style[je]=""}),s()&&Me(bt))}function We(bt){return Array.isArray(bt)?1==bt.length?bt[0]:(0,v.vP)(bt):bt}const Pe=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ve(bt){let ie=[];if("string"==typeof bt){let de;for(;de=Pe.exec(bt);)ie.push(de[1]);Pe.lastIndex=0}return ie}function he(bt,ie,de){const je=bt.toString(),Mt=je.replace(Pe,(kt,Kt)=>{let Jt=ie[Kt];return ie.hasOwnProperty(Kt)||(de.push(`Please provide a value for the animation param ${Kt}`),Jt=""),Jt.toString()});return Mt==je?bt:Mt}function Ee(bt){const ie=[];let de=bt.next();for(;!de.done;)ie.push(de.value),de=bt.next();return ie}const ke=/-+([a-z0-9])/g;function q(bt){return bt.replace(ke,(...ie)=>ie[1].toUpperCase())}function J(bt){return bt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function oe(bt,ie){return 0===bt||0===ie}function Ce(bt,ie,de){const je=Object.keys(de);if(je.length&&ie.length){let kt=ie[0],Kt=[];if(je.forEach(Jt=>{kt.hasOwnProperty(Jt)||Kt.push(Jt),kt[Jt]=de[Jt]}),Kt.length)for(var Mt=1;Mt<ie.length;Mt++){let Jt=ie[Mt];Kt.forEach(function(fi){Jt[fi]=ht(bt,fi)})}}return ie}function Ue(bt,ie,de){switch(ie.type){case 7:return bt.visitTrigger(ie,de);case 0:return bt.visitState(ie,de);case 1:return bt.visitTransition(ie,de);case 2:return bt.visitSequence(ie,de);case 3:return bt.visitGroup(ie,de);case 4:return bt.visitAnimate(ie,de);case 5:return bt.visitKeyframes(ie,de);case 6:return bt.visitStyle(ie,de);case 8:return bt.visitReference(ie,de);case 9:return bt.visitAnimateChild(ie,de);case 10:return bt.visitAnimateRef(ie,de);case 11:return bt.visitQuery(ie,de);case 12:return bt.visitStagger(ie,de);default:throw new Error(`Unable to resolve animation metadata node #${ie.type}`)}}function ht(bt,ie){return window.getComputedStyle(bt)[ie]}function ft(bt,ie){const de=[];return"string"==typeof bt?bt.split(/\s*,\s*/).forEach(je=>function(bt,ie,de){if(":"==bt[0]){const fi=function(bt,ie){switch(bt){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(de,je)=>parseFloat(je)>parseFloat(de);case":decrement":return(de,je)=>parseFloat(je)<parseFloat(de);default:return ie.push(`The transition alias value "${bt}" is not supported`),"* => *"}}(bt,de);if("function"==typeof fi)return void ie.push(fi);bt=fi}const je=bt.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==je||je.length<4)return de.push(`The provided transition expression "${bt}" is not supported`),ie;const Mt=je[1],kt=je[2],Kt=je[3];ie.push(Pt(Mt,Kt));"<"==kt[0]&&!("*"==Mt&&"*"==Kt)&&ie.push(Pt(Kt,Mt))}(je,de,ie)):de.push(bt),de}const wt=new Set(["true","1"]),Bt=new Set(["false","0"]);function Pt(bt,ie){const de=wt.has(bt)||Bt.has(bt),je=wt.has(ie)||Bt.has(ie);return(Mt,kt)=>{let Kt="*"==bt||bt==Mt,Jt="*"==ie||ie==kt;return!Kt&&de&&"boolean"==typeof Mt&&(Kt=Mt?wt.has(bt):Bt.has(bt)),!Jt&&je&&"boolean"==typeof kt&&(Jt=kt?wt.has(ie):Bt.has(ie)),Kt&&Jt}}const Oi=new RegExp("s*:selfs*,?","g");function jt(bt,ie,de){return new Pi(bt).build(ie,de)}class Pi{constructor(ie){this._driver=ie}build(ie,de){const je=new ze(de);return this._resetContextStyleTimingState(je),Ue(this,We(ie),je)}_resetContextStyleTimingState(ie){ie.currentQuerySelector="",ie.collectedStyles={},ie.collectedStyles[""]={},ie.currentTime=0}visitTrigger(ie,de){let je=de.queryCount=0,Mt=de.depCount=0;const kt=[],Kt=[];return"@"==ie.name.charAt(0)&&de.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),ie.definitions.forEach(Jt=>{if(this._resetContextStyleTimingState(de),0==Jt.type){const fi=Jt,Ai=fi.name;Ai.toString().split(/\s*,\s*/).forEach(Zi=>{fi.name=Zi,kt.push(this.visitState(fi,de))}),fi.name=Ai}else if(1==Jt.type){const fi=this.visitTransition(Jt,de);je+=fi.queryCount,Mt+=fi.depCount,Kt.push(fi)}else de.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:ie.name,states:kt,transitions:Kt,queryCount:je,depCount:Mt,options:null}}visitState(ie,de){const je=this.visitStyle(ie.styles,de),Mt=ie.options&&ie.options.params||null;if(je.containsDynamicStyles){const kt=new Set,Kt=Mt||{};if(je.styles.forEach(Jt=>{if(Y(Jt)){const fi=Jt;Object.keys(fi).forEach(Ai=>{Ve(fi[Ai]).forEach(Zi=>{Kt.hasOwnProperty(Zi)||kt.add(Zi)})})}}),kt.size){const Jt=Ee(kt.values());de.errors.push(`state("${ie.name}", ...) must define default values for all the following style substitutions: ${Jt.join(", ")}`)}}return{type:0,name:ie.name,style:je,options:Mt?{params:Mt}:null}}visitTransition(ie,de){de.queryCount=0,de.depCount=0;const je=Ue(this,We(ie.animation),de);return{type:1,matchers:ft(ie.expr,de.errors),animation:je,queryCount:de.queryCount,depCount:de.depCount,options:Ae(ie.options)}}visitSequence(ie,de){return{type:2,steps:ie.steps.map(je=>Ue(this,je,de)),options:Ae(ie.options)}}visitGroup(ie,de){const je=de.currentTime;let Mt=0;const kt=ie.steps.map(Kt=>{de.currentTime=je;const Jt=Ue(this,Kt,de);return Mt=Math.max(Mt,de.currentTime),Jt});return de.currentTime=Mt,{type:3,steps:kt,options:Ae(ie.options)}}visitAnimate(ie,de){const je=function(bt,ie){let de=null;if(bt.hasOwnProperty("duration"))de=bt;else if("number"==typeof bt)return et(ye(bt,ie).duration,0,"");const je=bt;if(je.split(/\s+/).some(kt=>"{"==kt.charAt(0)&&"{"==kt.charAt(1))){const kt=et(0,0,"");return kt.dynamic=!0,kt.strValue=je,kt}return de=de||ye(je,ie),et(de.duration,de.delay,de.easing)}(ie.timings,de.errors);de.currentAnimateTimings=je;let Mt,kt=ie.styles?ie.styles:(0,v.oB)({});if(5==kt.type)Mt=this.visitKeyframes(kt,de);else{let Kt=ie.styles,Jt=!1;if(!Kt){Jt=!0;const Ai={};je.easing&&(Ai.easing=je.easing),Kt=(0,v.oB)(Ai)}de.currentTime+=je.duration+je.delay;const fi=this.visitStyle(Kt,de);fi.isEmptyStep=Jt,Mt=fi}return de.currentAnimateTimings=null,{type:4,timings:je,style:Mt,options:null}}visitStyle(ie,de){const je=this._makeStyleAst(ie,de);return this._validateStyleAst(je,de),je}_makeStyleAst(ie,de){const je=[];Array.isArray(ie.styles)?ie.styles.forEach(Kt=>{"string"==typeof Kt?Kt==v.l3?je.push(Kt):de.errors.push(`The provided style string value ${Kt} is not allowed.`):je.push(Kt)}):je.push(ie.styles);let Mt=!1,kt=null;return je.forEach(Kt=>{if(Y(Kt)){const Jt=Kt,fi=Jt.easing;if(fi&&(kt=fi,delete Jt.easing),!Mt)for(let Ai in Jt)if(Jt[Ai].toString().indexOf("{{")>=0){Mt=!0;break}}}),{type:6,styles:je,easing:kt,offset:ie.offset,containsDynamicStyles:Mt,options:null}}_validateStyleAst(ie,de){const je=de.currentAnimateTimings;let Mt=de.currentTime,kt=de.currentTime;je&&kt>0&&(kt-=je.duration+je.delay),ie.styles.forEach(Kt=>{"string"!=typeof Kt&&Object.keys(Kt).forEach(Jt=>{if(!this._driver.validateStyleProperty(Jt))return void de.errors.push(`The provided animation property "${Jt}" is not a supported CSS property for animations`);const fi=de.collectedStyles[de.currentQuerySelector],Ai=fi[Jt];let Zi=!0;Ai&&(kt!=Mt&&kt>=Ai.startTime&&Mt<=Ai.endTime&&(de.errors.push(`The CSS property "${Jt}" that exists between the times of "${Ai.startTime}ms" and "${Ai.endTime}ms" is also being animated in a parallel animation between the times of "${kt}ms" and "${Mt}ms"`),Zi=!1),kt=Ai.startTime),Zi&&(fi[Jt]={startTime:kt,endTime:Mt}),de.options&&function(bt,ie,de){const je=ie.params||{},Mt=Ve(bt);Mt.length&&Mt.forEach(kt=>{je.hasOwnProperty(kt)||de.push(`Unable to resolve the local animation param ${kt} in the given list of values`)})}(Kt[Jt],de.options,de.errors)})})}visitKeyframes(ie,de){const je={type:5,styles:[],options:null};if(!de.currentAnimateTimings)return de.errors.push("keyframes() must be placed inside of a call to animate()"),je;let kt=0;const Kt=[];let Jt=!1,fi=!1,Ai=0;const Zi=ie.steps.map(zt=>{const ri=this._makeStyleAst(zt,de);let vi=null!=ri.offset?ri.offset:function(bt){if("string"==typeof bt)return null;let ie=null;if(Array.isArray(bt))bt.forEach(de=>{if(Y(de)&&de.hasOwnProperty("offset")){const je=de;ie=parseFloat(je.offset),delete je.offset}});else if(Y(bt)&&bt.hasOwnProperty("offset")){const de=bt;ie=parseFloat(de.offset),delete de.offset}return ie}(ri.styles),Mi=0;return null!=vi&&(kt++,Mi=ri.offset=vi),fi=fi||Mi<0||Mi>1,Jt=Jt||Mi<Ai,Ai=Mi,Kt.push(Mi),ri});fi&&de.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),Jt&&de.errors.push("Please ensure that all keyframe offsets are in order");const en=ie.steps.length;let Cn=0;kt>0&&kt<en?de.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==kt&&(Cn=1/(en-1));const kn=en-1,tt=de.currentTime,Et=de.currentAnimateTimings,It=Et.duration;return Zi.forEach((zt,ri)=>{const vi=Cn>0?ri==kn?1:Cn*ri:Kt[ri],Mi=vi*It;de.currentTime=tt+Et.delay+Mi,Et.duration=Mi,this._validateStyleAst(zt,de),zt.offset=vi,je.styles.push(zt)}),je}visitReference(ie,de){return{type:8,animation:Ue(this,We(ie.animation),de),options:Ae(ie.options)}}visitAnimateChild(ie,de){return de.depCount++,{type:9,options:Ae(ie.options)}}visitAnimateRef(ie,de){return{type:10,animation:this.visitReference(ie.animation,de),options:Ae(ie.options)}}visitQuery(ie,de){const je=de.currentQuerySelector,Mt=ie.options||{};de.queryCount++,de.currentQuery=ie;const[kt,Kt]=function(bt){const ie=!!bt.split(/\s*,\s*/).find(de=>":self"==de);return ie&&(bt=bt.replace(Oi,"")),bt=bt.replace(/@\*/g,r).replace(/@\w+/g,de=>r+"-"+de.substr(1)).replace(/:animating/g,Z),[bt,ie]}(ie.selector);de.currentQuerySelector=je.length?je+" "+kt:kt,O(de.collectedStyles,de.currentQuerySelector,{});const Jt=Ue(this,We(ie.animation),de);return de.currentQuery=null,de.currentQuerySelector=je,{type:11,selector:kt,limit:Mt.limit||0,optional:!!Mt.optional,includeSelf:Kt,animation:Jt,originalSelector:ie.selector,options:Ae(ie.options)}}visitStagger(ie,de){de.currentQuery||de.errors.push("stagger() can only be used inside of query()");const je="full"===ie.timings?{duration:0,delay:0,easing:"full"}:ye(ie.timings,de.errors,!0);return{type:12,animation:Ue(this,We(ie.animation),de),timings:je,options:null}}}class ze{constructor(ie){this.errors=ie,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Y(bt){return!Array.isArray(bt)&&"object"==typeof bt}function Ae(bt){return bt?(bt=Ne(bt)).params&&(bt.params=function(bt){return bt?Ne(bt):null}(bt.params)):bt={},bt}function et(bt,ie,de){return{duration:bt,delay:ie,easing:de}}function $t(bt,ie,de,je,Mt,kt,Kt=null,Jt=!1){return{type:1,element:bt,keyframes:ie,preStyleProps:de,postStyleProps:je,duration:Mt,delay:kt,totalTime:Mt+kt,easing:Kt,subTimeline:Jt}}class Nt{constructor(){this._map=new Map}consume(ie){let de=this._map.get(ie);return de?this._map.delete(ie):de=[],de}append(ie,de){let je=this._map.get(ie);je||this._map.set(ie,je=[]),je.push(...de)}has(ie){return this._map.has(ie)}clear(){this._map.clear()}}const Re=new RegExp(":enter","g"),rt=new RegExp(":leave","g");function ot(bt,ie,de,je,Mt,kt={},Kt={},Jt,fi,Ai=[]){return(new At).buildKeyframes(bt,ie,de,je,Mt,kt,Kt,Jt,fi,Ai)}class At{buildKeyframes(ie,de,je,Mt,kt,Kt,Jt,fi,Ai,Zi=[]){Ai=Ai||new Nt;const en=new Ut(ie,de,Ai,Mt,kt,Zi,[]);en.options=fi,en.currentTimeline.setStyles([Kt],null,en.errors,fi),Ue(this,je,en);const Cn=en.timelines.filter(kn=>kn.containsAnimation());if(Cn.length&&Object.keys(Jt).length){const kn=Cn[Cn.length-1];kn.allowOnlyTimelineStyles()||kn.setStyles([Jt],null,en.errors,fi)}return Cn.length?Cn.map(kn=>kn.buildKeyframes()):[$t(de,[],[],[],0,0,"",!1)]}visitTrigger(ie,de){}visitState(ie,de){}visitTransition(ie,de){}visitAnimateChild(ie,de){const je=de.subInstructions.consume(de.element);if(je){const Mt=de.createSubContext(ie.options),kt=de.currentTimeline.currentTime,Kt=this._visitSubInstructions(je,Mt,Mt.options);kt!=Kt&&de.transformIntoNewTimeline(Kt)}de.previousNode=ie}visitAnimateRef(ie,de){const je=de.createSubContext(ie.options);je.transformIntoNewTimeline(),this.visitReference(ie.animation,je),de.transformIntoNewTimeline(je.currentTimeline.currentTime),de.previousNode=ie}_visitSubInstructions(ie,de,je){let kt=de.currentTimeline.currentTime;const Kt=null!=je.duration?P(je.duration):null,Jt=null!=je.delay?P(je.delay):null;return 0!==Kt&&ie.forEach(fi=>{const Ai=de.appendInstructionToTimeline(fi,Kt,Jt);kt=Math.max(kt,Ai.duration+Ai.delay)}),kt}visitReference(ie,de){de.updateOptions(ie.options,!0),Ue(this,ie.animation,de),de.previousNode=ie}visitSequence(ie,de){const je=de.subContextCount;let Mt=de;const kt=ie.options;if(kt&&(kt.params||kt.delay)&&(Mt=de.createSubContext(kt),Mt.transformIntoNewTimeline(),null!=kt.delay)){6==Mt.previousNode.type&&(Mt.currentTimeline.snapshotCurrentStyles(),Mt.previousNode=li);const Kt=P(kt.delay);Mt.delayNextStep(Kt)}ie.steps.length&&(ie.steps.forEach(Kt=>Ue(this,Kt,Mt)),Mt.currentTimeline.applyStylesToKeyframe(),Mt.subContextCount>je&&Mt.transformIntoNewTimeline()),de.previousNode=ie}visitGroup(ie,de){const je=[];let Mt=de.currentTimeline.currentTime;const kt=ie.options&&ie.options.delay?P(ie.options.delay):0;ie.steps.forEach(Kt=>{const Jt=de.createSubContext(ie.options);kt&&Jt.delayNextStep(kt),Ue(this,Kt,Jt),Mt=Math.max(Mt,Jt.currentTimeline.currentTime),je.push(Jt.currentTimeline)}),je.forEach(Kt=>de.currentTimeline.mergeTimelineCollectedStyles(Kt)),de.transformIntoNewTimeline(Mt),de.previousNode=ie}_visitTiming(ie,de){if(ie.dynamic){const je=ie.strValue;return ye(de.params?he(je,de.params,de.errors):je,de.errors)}return{duration:ie.duration,delay:ie.delay,easing:ie.easing}}visitAnimate(ie,de){const je=de.currentAnimateTimings=this._visitTiming(ie.timings,de),Mt=de.currentTimeline;je.delay&&(de.incrementTime(je.delay),Mt.snapshotCurrentStyles());const kt=ie.style;5==kt.type?this.visitKeyframes(kt,de):(de.incrementTime(je.duration),this.visitStyle(kt,de),Mt.applyStylesToKeyframe()),de.currentAnimateTimings=null,de.previousNode=ie}visitStyle(ie,de){const je=de.currentTimeline,Mt=de.currentAnimateTimings;!Mt&&je.getCurrentStyleProperties().length&&je.forwardFrame();const kt=Mt&&Mt.easing||ie.easing;ie.isEmptyStep?je.applyEmptyStep(kt):je.setStyles(ie.styles,kt,de.errors,de.options),de.previousNode=ie}visitKeyframes(ie,de){const je=de.currentAnimateTimings,Mt=de.currentTimeline.duration,kt=je.duration,Jt=de.createSubContext().currentTimeline;Jt.easing=je.easing,ie.styles.forEach(fi=>{Jt.forwardTime((fi.offset||0)*kt),Jt.setStyles(fi.styles,fi.easing,de.errors,de.options),Jt.applyStylesToKeyframe()}),de.currentTimeline.mergeTimelineCollectedStyles(Jt),de.transformIntoNewTimeline(Mt+kt),de.previousNode=ie}visitQuery(ie,de){const je=de.currentTimeline.currentTime,Mt=ie.options||{},kt=Mt.delay?P(Mt.delay):0;kt&&(6===de.previousNode.type||0==je&&de.currentTimeline.getCurrentStyleProperties().length)&&(de.currentTimeline.snapshotCurrentStyles(),de.previousNode=li);let Kt=je;const Jt=de.invokeQuery(ie.selector,ie.originalSelector,ie.limit,ie.includeSelf,!!Mt.optional,de.errors);de.currentQueryTotal=Jt.length;let fi=null;Jt.forEach((Ai,Zi)=>{de.currentQueryIndex=Zi;const en=de.createSubContext(ie.options,Ai);kt&&en.delayNextStep(kt),Ai===de.element&&(fi=en.currentTimeline),Ue(this,ie.animation,en),en.currentTimeline.applyStylesToKeyframe(),Kt=Math.max(Kt,en.currentTimeline.currentTime)}),de.currentQueryIndex=0,de.currentQueryTotal=0,de.transformIntoNewTimeline(Kt),fi&&(de.currentTimeline.mergeTimelineCollectedStyles(fi),de.currentTimeline.snapshotCurrentStyles()),de.previousNode=ie}visitStagger(ie,de){const je=de.parentContext,Mt=de.currentTimeline,kt=ie.timings,Kt=Math.abs(kt.duration),Jt=Kt*(de.currentQueryTotal-1);let fi=Kt*de.currentQueryIndex;switch(kt.duration<0?"reverse":kt.easing){case"reverse":fi=Jt-fi;break;case"full":fi=je.currentStaggerTime}const Zi=de.currentTimeline;fi&&Zi.delayNextStep(fi);const en=Zi.currentTime;Ue(this,ie.animation,de),de.previousNode=ie,je.currentStaggerTime=Mt.currentTime-en+(Mt.startTime-je.currentTimeline.startTime)}}const li={};class Ut{constructor(ie,de,je,Mt,kt,Kt,Jt,fi){this._driver=ie,this.element=de,this.subInstructions=je,this._enterClassName=Mt,this._leaveClassName=kt,this.errors=Kt,this.timelines=Jt,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=li,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=fi||new Ft(this._driver,de,0),Jt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(ie,de){if(!ie)return;const je=ie;let Mt=this.options;null!=je.duration&&(Mt.duration=P(je.duration)),null!=je.delay&&(Mt.delay=P(je.delay));const kt=je.params;if(kt){let Kt=Mt.params;Kt||(Kt=this.options.params={}),Object.keys(kt).forEach(Jt=>{(!de||!Kt.hasOwnProperty(Jt))&&(Kt[Jt]=he(kt[Jt],Kt,this.errors))})}}_copyOptions(){const ie={};if(this.options){const de=this.options.params;if(de){const je=ie.params={};Object.keys(de).forEach(Mt=>{je[Mt]=de[Mt]})}}return ie}createSubContext(ie=null,de,je){const Mt=de||this.element,kt=new Ut(this._driver,Mt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Mt,je||0));return kt.previousNode=this.previousNode,kt.currentAnimateTimings=this.currentAnimateTimings,kt.options=this._copyOptions(),kt.updateOptions(ie),kt.currentQueryIndex=this.currentQueryIndex,kt.currentQueryTotal=this.currentQueryTotal,kt.parentContext=this,this.subContextCount++,kt}transformIntoNewTimeline(ie){return this.previousNode=li,this.currentTimeline=this.currentTimeline.fork(this.element,ie),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(ie,de,je){const Mt={duration:null!=de?de:ie.duration,delay:this.currentTimeline.currentTime+(null!=je?je:0)+ie.delay,easing:""},kt=new Si(this._driver,ie.element,ie.keyframes,ie.preStyleProps,ie.postStyleProps,Mt,ie.stretchStartingKeyframe);return this.timelines.push(kt),Mt}incrementTime(ie){this.currentTimeline.forwardTime(this.currentTimeline.duration+ie)}delayNextStep(ie){ie>0&&this.currentTimeline.delayNextStep(ie)}invokeQuery(ie,de,je,Mt,kt,Kt){let Jt=[];if(Mt&&Jt.push(this.element),ie.length>0){ie=(ie=ie.replace(Re,"."+this._enterClassName)).replace(rt,"."+this._leaveClassName);let Ai=this._driver.query(this.element,ie,1!=je);0!==je&&(Ai=je<0?Ai.slice(Ai.length+je,Ai.length):Ai.slice(0,je)),Jt.push(...Ai)}return!kt&&0==Jt.length&&Kt.push(`\`query("${de}")\` returned zero elements. (Use \`query("${de}", { optional: true })\` if you wish to allow this.)`),Jt}}class Ft{constructor(ie,de,je,Mt){this._driver=ie,this.element=de,this.startTime=je,this._elementTimelineStylesLookup=Mt,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(de),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(de,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(ie){const de=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||de?(this.forwardTime(this.currentTime+ie),de&&this.snapshotCurrentStyles()):this.startTime+=ie}fork(ie,de){return this.applyStylesToKeyframe(),new Ft(this._driver,ie,de||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(ie){this.applyStylesToKeyframe(),this.duration=ie,this._loadKeyframe()}_updateStyle(ie,de){this._localTimelineStyles[ie]=de,this._globalTimelineStyles[ie]=de,this._styleSummary[ie]={time:this.currentTime,value:de}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(ie){ie&&(this._previousKeyframe.easing=ie),Object.keys(this._globalTimelineStyles).forEach(de=>{this._backFill[de]=this._globalTimelineStyles[de]||v.l3,this._currentKeyframe[de]=v.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(ie,de,je,Mt){de&&(this._previousKeyframe.easing=de);const kt=Mt&&Mt.params||{},Kt=function(bt,ie){const de={};let je;return bt.forEach(Mt=>{"*"===Mt?(je=je||Object.keys(ie),je.forEach(kt=>{de[kt]=v.l3})):Oe(Mt,!1,de)}),de}(ie,this._globalTimelineStyles);Object.keys(Kt).forEach(Jt=>{const fi=he(Kt[Jt],kt,je);this._pendingStyles[Jt]=fi,this._localTimelineStyles.hasOwnProperty(Jt)||(this._backFill[Jt]=this._globalTimelineStyles.hasOwnProperty(Jt)?this._globalTimelineStyles[Jt]:v.l3),this._updateStyle(Jt,fi)})}applyStylesToKeyframe(){const ie=this._pendingStyles,de=Object.keys(ie);0!=de.length&&(this._pendingStyles={},de.forEach(je=>{this._currentKeyframe[je]=ie[je]}),Object.keys(this._localTimelineStyles).forEach(je=>{this._currentKeyframe.hasOwnProperty(je)||(this._currentKeyframe[je]=this._localTimelineStyles[je])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(ie=>{const de=this._localTimelineStyles[ie];this._pendingStyles[ie]=de,this._updateStyle(ie,de)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const ie=[];for(let de in this._currentKeyframe)ie.push(de);return ie}mergeTimelineCollectedStyles(ie){Object.keys(ie._styleSummary).forEach(de=>{const je=this._styleSummary[de],Mt=ie._styleSummary[de];(!je||Mt.time>je.time)&&this._updateStyle(de,Mt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const ie=new Set,de=new Set,je=1===this._keyframes.size&&0===this.duration;let Mt=[];this._keyframes.forEach((Jt,fi)=>{const Ai=Oe(Jt,!0);Object.keys(Ai).forEach(Zi=>{const en=Ai[Zi];en==v.k1?ie.add(Zi):en==v.l3&&de.add(Zi)}),je||(Ai.offset=fi/this.duration),Mt.push(Ai)});const kt=ie.size?Ee(ie.values()):[],Kt=de.size?Ee(de.values()):[];if(je){const Jt=Mt[0],fi=Ne(Jt);Jt.offset=0,fi.offset=1,Mt=[Jt,fi]}return $t(this.element,Mt,kt,Kt,this.duration,this.startTime,this.easing,!1)}}class Si extends Ft{constructor(ie,de,je,Mt,kt,Kt,Jt=!1){super(ie,de,Kt.delay),this.keyframes=je,this.preStyleProps=Mt,this.postStyleProps=kt,this._stretchStartingKeyframe=Jt,this.timings={duration:Kt.duration,delay:Kt.delay,easing:Kt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let ie=this.keyframes,{delay:de,duration:je,easing:Mt}=this.timings;if(this._stretchStartingKeyframe&&de){const kt=[],Kt=je+de,Jt=de/Kt,fi=Oe(ie[0],!1);fi.offset=0,kt.push(fi);const Ai=Oe(ie[0],!1);Ai.offset=ai(Jt),kt.push(Ai);const Zi=ie.length-1;for(let en=1;en<=Zi;en++){let Cn=Oe(ie[en],!1);Cn.offset=ai((de+Cn.offset*je)/Kt),kt.push(Cn)}je=Kt,de=0,Mt="",ie=kt}return $t(this.element,ie,this.preStyleProps,this.postStyleProps,je,de,Mt,!0)}}function ai(bt,ie=3){const de=Math.pow(10,ie-1);return Math.round(bt*de)/de}class Vi{}class Xi extends Vi{normalizePropertyName(ie,de){return q(ie)}normalizeStyleValue(ie,de,je,Mt){let kt="";const Kt=je.toString().trim();if(Ke[de]&&0!==je&&"0"!==je)if("number"==typeof je)kt="px";else{const Jt=je.match(/^[+-]?[\d\.]+([a-z]*)$/);Jt&&0==Jt[1].length&&Mt.push(`Please provide a CSS unit value for ${ie}:${je}`)}return Kt+kt}}const Ke=(()=>function(bt){const ie={};return bt.forEach(de=>ie[de]=!0),ie}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function ve(bt,ie,de,je,Mt,kt,Kt,Jt,fi,Ai,Zi,en,Cn){return{type:0,element:bt,triggerName:ie,isRemovalTransition:Mt,fromState:de,fromStyles:kt,toState:je,toStyles:Kt,timelines:Jt,queriedElements:fi,preStyleProps:Ai,postStyleProps:Zi,totalTime:en,errors:Cn}}const qe={};class _t{constructor(ie,de,je){this._triggerName=ie,this.ast=de,this._stateStyles=je}match(ie,de,je,Mt){return function(bt,ie,de,je,Mt){return bt.some(kt=>kt(ie,de,je,Mt))}(this.ast.matchers,ie,de,je,Mt)}buildStyles(ie,de,je){const Mt=this._stateStyles["*"],kt=this._stateStyles[ie],Kt=Mt?Mt.buildStyles(de,je):{};return kt?kt.buildStyles(de,je):Kt}build(ie,de,je,Mt,kt,Kt,Jt,fi,Ai,Zi){const en=[],Cn=this.ast.options&&this.ast.options.params||qe,tt=this.buildStyles(je,Jt&&Jt.params||qe,en),Et=fi&&fi.params||qe,It=this.buildStyles(Mt,Et,en),zt=new Set,ri=new Map,vi=new Map,Mi="void"===Mt,Ei={params:Object.assign(Object.assign({},Cn),Et)},ji=Zi?[]:ot(ie,de,this.ast.animation,kt,Kt,tt,It,Ei,Ai,en);let hn=0;if(ji.forEach(Sn=>{hn=Math.max(Sn.duration+Sn.delay,hn)}),en.length)return ve(de,this._triggerName,je,Mt,Mi,tt,It,[],[],ri,vi,hn,en);ji.forEach(Sn=>{const Vn=Sn.element,Mr=O(ri,Vn,{});Sn.preStyleProps.forEach(wr=>Mr[wr]=!0);const Or=O(vi,Vn,{});Sn.postStyleProps.forEach(wr=>Or[wr]=!0),Vn!==de&&zt.add(Vn)});const yn=Ee(zt.values());return ve(de,this._triggerName,je,Mt,Mi,tt,It,ji,yn,ri,vi,hn)}}class $e{constructor(ie,de,je){this.styles=ie,this.defaultParams=de,this.normalizer=je}buildStyles(ie,de){const je={},Mt=Ne(this.defaultParams);return Object.keys(ie).forEach(kt=>{const Kt=ie[kt];null!=Kt&&(Mt[kt]=Kt)}),this.styles.styles.forEach(kt=>{if("string"!=typeof kt){const Kt=kt;Object.keys(Kt).forEach(Jt=>{let fi=Kt[Jt];fi.length>1&&(fi=he(fi,Mt,de));const Ai=this.normalizer.normalizePropertyName(Jt,de);fi=this.normalizer.normalizeStyleValue(Jt,Ai,fi,de),je[Ai]=fi})}}),je}}class Rt{constructor(ie,de,je){this.name=ie,this.ast=de,this._normalizer=je,this.transitionFactories=[],this.states={},de.states.forEach(Mt=>{this.states[Mt.name]=new $e(Mt.style,Mt.options&&Mt.options.params||{},je)}),Ri(this.states,"true","1"),Ri(this.states,"false","0"),de.transitions.forEach(Mt=>{this.transitionFactories.push(new _t(ie,Mt,this.states))}),this.fallbackTransition=function(bt,ie,de){return new _t(bt,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Kt,Jt)=>!0],options:null,queryCount:0,depCount:0},ie)}(ie,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(ie,de,je,Mt){return this.transitionFactories.find(Kt=>Kt.match(ie,de,je,Mt))||null}matchStyles(ie,de,je){return this.fallbackTransition.buildStyles(ie,de,je)}}function Ri(bt,ie,de){bt.hasOwnProperty(ie)?bt.hasOwnProperty(de)||(bt[de]=bt[ie]):bt.hasOwnProperty(de)&&(bt[ie]=bt[de])}const Ii=new Nt;class Ki{constructor(ie,de,je){this.bodyNode=ie,this._driver=de,this._normalizer=je,this._animations={},this._playersById={},this.players=[]}register(ie,de){const je=[],Mt=jt(this._driver,de,je);if(je.length)throw new Error(`Unable to build the animation due to the following errors: ${je.join("\n")}`);this._animations[ie]=Mt}_buildPlayer(ie,de,je){const Mt=ie.element,kt=c(0,this._normalizer,0,ie.keyframes,de,je);return this._driver.animate(Mt,kt,ie.duration,ie.delay,ie.easing,[],!0)}create(ie,de,je={}){const Mt=[],kt=this._animations[ie];let Kt;const Jt=new Map;if(kt?(Kt=ot(this._driver,de,kt,u,_,{},{},je,Ii,Mt),Kt.forEach(Zi=>{const en=O(Jt,Zi.element,{});Zi.postStyleProps.forEach(Cn=>en[Cn]=null)})):(Mt.push("The requested animation doesn't exist or has already been destroyed"),Kt=[]),Mt.length)throw new Error(`Unable to create the animation due to the following errors: ${Mt.join("\n")}`);Jt.forEach((Zi,en)=>{Object.keys(Zi).forEach(Cn=>{Zi[Cn]=this._driver.computeStyle(en,Cn,v.l3)})});const Ai=M(Kt.map(Zi=>{const en=Jt.get(Zi.element);return this._buildPlayer(Zi,{},en)}));return this._playersById[ie]=Ai,Ai.onDestroy(()=>this.destroy(ie)),this.players.push(Ai),Ai}destroy(ie){const de=this._getPlayer(ie);de.destroy(),delete this._playersById[ie];const je=this.players.indexOf(de);je>=0&&this.players.splice(je,1)}_getPlayer(ie){const de=this._playersById[ie];if(!de)throw new Error(`Unable to find the timeline player referenced by ${ie}`);return de}listen(ie,de,je,Mt){const kt=L(de,"","","");return N(this._getPlayer(ie),je,kt,Mt),()=>{}}command(ie,de,je,Mt){if("register"==je)return void this.register(ie,Mt[0]);if("create"==je)return void this.create(ie,de,Mt[0]||{});const kt=this._getPlayer(ie);switch(je){case"play":kt.play();break;case"pause":kt.pause();break;case"reset":kt.reset();break;case"restart":kt.restart();break;case"finish":kt.finish();break;case"init":kt.init();break;case"setPosition":kt.setPosition(parseFloat(Mt[0]));break;case"destroy":this.destroy(ie)}}}const at="ng-animate-queued",gt="ng-animate-disabled",Lt=".ng-animate-disabled",Wi=[],$i={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},An={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},On="__ng_removed";class pn{constructor(ie,de=""){this.namespaceId=de;const je=ie&&ie.hasOwnProperty("value");if(this.value=null!=(bt=je?ie.value:ie)?bt:null,je){const kt=Ne(ie);delete kt.value,this.options=kt}else this.options={};var bt;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(ie){const de=ie.params;if(de){const je=this.options.params;Object.keys(de).forEach(Mt=>{null==je[Mt]&&(je[Mt]=de[Mt])})}}}const Nn="void",br=new pn(Nn);class wi{constructor(ie,de,je){this.id=ie,this.hostElement=de,this._engine=je,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+ie,rr(de,this._hostClassName)}listen(ie,de,je,Mt){if(!this._triggers.hasOwnProperty(de))throw new Error(`Unable to listen on the animation trigger event "${je}" because the animation trigger "${de}" doesn't exist!`);if(null==je||0==je.length)throw new Error(`Unable to listen on the animation trigger "${de}" because the provided event is undefined!`);if("start"!=(bt=je)&&"done"!=bt)throw new Error(`The provided animation trigger event "${je}" for the animation trigger "${de}" is not supported!`);var bt;const kt=O(this._elementListeners,ie,[]),Kt={name:de,phase:je,callback:Mt};kt.push(Kt);const Jt=O(this._engine.statesByElement,ie,{});return Jt.hasOwnProperty(de)||(rr(ie,x),rr(ie,x+"-"+de),Jt[de]=br),()=>{this._engine.afterFlush(()=>{const fi=kt.indexOf(Kt);fi>=0&&kt.splice(fi,1),this._triggers[de]||delete Jt[de]})}}register(ie,de){return!this._triggers[ie]&&(this._triggers[ie]=de,!0)}_getTrigger(ie){const de=this._triggers[ie];if(!de)throw new Error(`The provided animation trigger "${ie}" has not been registered!`);return de}trigger(ie,de,je,Mt=!0){const kt=this._getTrigger(de),Kt=new sn(this.id,de,ie);let Jt=this._engine.statesByElement.get(ie);Jt||(rr(ie,x),rr(ie,x+"-"+de),this._engine.statesByElement.set(ie,Jt={}));let fi=Jt[de];const Ai=new pn(je,this.id);if(!(je&&je.hasOwnProperty("value"))&&fi&&Ai.absorbOptions(fi.options),Jt[de]=Ai,fi||(fi=br),Ai.value!==Nn&&fi.value===Ai.value){if(!function(bt,ie){const de=Object.keys(bt),je=Object.keys(ie);if(de.length!=je.length)return!1;for(let Mt=0;Mt<de.length;Mt++){const kt=de[Mt];if(!ie.hasOwnProperty(kt)||bt[kt]!==ie[kt])return!1}return!0}(fi.params,Ai.params)){const Et=[],It=kt.matchStyles(fi.value,fi.params,Et),zt=kt.matchStyles(Ai.value,Ai.params,Et);Et.length?this._engine.reportError(Et):this._engine.afterFlush(()=>{ae(ie,It),we(ie,zt)})}return}const Cn=O(this._engine.playersByElement,ie,[]);Cn.forEach(Et=>{Et.namespaceId==this.id&&Et.triggerName==de&&Et.queued&&Et.destroy()});let kn=kt.matchTransition(fi.value,Ai.value,ie,Ai.params),tt=!1;if(!kn){if(!Mt)return;kn=kt.fallbackTransition,tt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:ie,triggerName:de,transition:kn,fromState:fi,toState:Ai,player:Kt,isFallbackTransition:tt}),tt||(rr(ie,at),Kt.onStart(()=>{ua(ie,at)})),Kt.onDone(()=>{let Et=this.players.indexOf(Kt);Et>=0&&this.players.splice(Et,1);const It=this._engine.playersByElement.get(ie);if(It){let zt=It.indexOf(Kt);zt>=0&&It.splice(zt,1)}}),this.players.push(Kt),Cn.push(Kt),Kt}deregister(ie){delete this._triggers[ie],this._engine.statesByElement.forEach((de,je)=>{delete de[ie]}),this._elementListeners.forEach((de,je)=>{this._elementListeners.set(je,de.filter(Mt=>Mt.name!=ie))})}clearElementCache(ie){this._engine.statesByElement.delete(ie),this._elementListeners.delete(ie);const de=this._engine.playersByElement.get(ie);de&&(de.forEach(je=>je.destroy()),this._engine.playersByElement.delete(ie))}_signalRemovalForInnerTriggers(ie,de){const je=this._engine.driver.query(ie,r,!0);je.forEach(Mt=>{if(Mt[On])return;const kt=this._engine.fetchNamespacesByElement(Mt);kt.size?kt.forEach(Kt=>Kt.triggerLeaveAnimation(Mt,de,!1,!0)):this.clearElementCache(Mt)}),this._engine.afterFlushAnimationsDone(()=>je.forEach(Mt=>this.clearElementCache(Mt)))}triggerLeaveAnimation(ie,de,je,Mt){const kt=this._engine.statesByElement.get(ie);if(kt){const Kt=[];if(Object.keys(kt).forEach(Jt=>{if(this._triggers[Jt]){const fi=this.trigger(ie,Jt,Nn,Mt);fi&&Kt.push(fi)}}),Kt.length)return this._engine.markElementAsRemoved(this.id,ie,!0,de),je&&M(Kt).onDone(()=>this._engine.processLeaveNode(ie)),!0}return!1}prepareLeaveAnimationListeners(ie){const de=this._elementListeners.get(ie),je=this._engine.statesByElement.get(ie);if(de&&je){const Mt=new Set;de.forEach(kt=>{const Kt=kt.name;if(Mt.has(Kt))return;Mt.add(Kt);const fi=this._triggers[Kt].fallbackTransition,Ai=je[Kt]||br,Zi=new pn(Nn),en=new sn(this.id,Kt,ie);this._engine.totalQueuedPlayers++,this._queue.push({element:ie,triggerName:Kt,transition:fi,fromState:Ai,toState:Zi,player:en,isFallbackTransition:!0})})}}removeNode(ie,de){const je=this._engine;if(ie.childElementCount&&this._signalRemovalForInnerTriggers(ie,de),this.triggerLeaveAnimation(ie,de,!0))return;let Mt=!1;if(je.totalAnimations){const kt=je.players.length?je.playersByQueriedElement.get(ie):[];if(kt&&kt.length)Mt=!0;else{let Kt=ie;for(;Kt=Kt.parentNode;)if(je.statesByElement.get(Kt)){Mt=!0;break}}}if(this.prepareLeaveAnimationListeners(ie),Mt)je.markElementAsRemoved(this.id,ie,!1,de);else{const kt=ie[On];(!kt||kt===$i)&&(je.afterFlush(()=>this.clearElementCache(ie)),je.destroyInnerAnimations(ie),je._onRemovalComplete(ie,de))}}insertNode(ie,de){rr(ie,this._hostClassName)}drainQueuedTransitions(ie){const de=[];return this._queue.forEach(je=>{const Mt=je.player;if(Mt.destroyed)return;const kt=je.element,Kt=this._elementListeners.get(kt);Kt&&Kt.forEach(Jt=>{if(Jt.name==je.triggerName){const fi=L(kt,je.triggerName,je.fromState.value,je.toState.value);fi._data=ie,N(je.player,Jt.phase,fi,Jt.callback)}}),Mt.markedForDestroy?this._engine.afterFlush(()=>{Mt.destroy()}):de.push(je)}),this._queue=[],de.sort((je,Mt)=>{const kt=je.transition.ast.depCount,Kt=Mt.transition.ast.depCount;return 0==kt||0==Kt?kt-Kt:this._engine.driver.containsElement(je.element,Mt.element)?1:-1})}destroy(ie){this.players.forEach(de=>de.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,ie)}elementContainsData(ie){let de=!1;return this._elementListeners.has(ie)&&(de=!0),de=!!this._queue.find(je=>je.element===ie)||de,de}}class Fi{constructor(ie,de,je){this.bodyNode=ie,this.driver=de,this._normalizer=je,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(Mt,kt)=>{}}_onRemovalComplete(ie,de){this.onRemovalComplete(ie,de)}get queuedPlayers(){const ie=[];return this._namespaceList.forEach(de=>{de.players.forEach(je=>{je.queued&&ie.push(je)})}),ie}createNamespace(ie,de){const je=new wi(ie,de,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,de)?this._balanceNamespaceList(je,de):(this.newHostElements.set(de,je),this.collectEnterElement(de)),this._namespaceLookup[ie]=je}_balanceNamespaceList(ie,de){const je=this._namespaceList.length-1;if(je>=0){let Mt=!1;for(let kt=je;kt>=0;kt--)if(this.driver.containsElement(this._namespaceList[kt].hostElement,de)){this._namespaceList.splice(kt+1,0,ie),Mt=!0;break}Mt||this._namespaceList.splice(0,0,ie)}else this._namespaceList.push(ie);return this.namespacesByHostElement.set(de,ie),ie}register(ie,de){let je=this._namespaceLookup[ie];return je||(je=this.createNamespace(ie,de)),je}registerTrigger(ie,de,je){let Mt=this._namespaceLookup[ie];Mt&&Mt.register(de,je)&&this.totalAnimations++}destroy(ie,de){if(!ie)return;const je=this._fetchNamespace(ie);this.afterFlush(()=>{this.namespacesByHostElement.delete(je.hostElement),delete this._namespaceLookup[ie];const Mt=this._namespaceList.indexOf(je);Mt>=0&&this._namespaceList.splice(Mt,1)}),this.afterFlushAnimationsDone(()=>je.destroy(de))}_fetchNamespace(ie){return this._namespaceLookup[ie]}fetchNamespacesByElement(ie){const de=new Set,je=this.statesByElement.get(ie);if(je){const Mt=Object.keys(je);for(let kt=0;kt<Mt.length;kt++){const Kt=je[Mt[kt]].namespaceId;if(Kt){const Jt=this._fetchNamespace(Kt);Jt&&de.add(Jt)}}}return de}trigger(ie,de,je,Mt){if(qn(de)){const kt=this._fetchNamespace(ie);if(kt)return kt.trigger(de,je,Mt),!0}return!1}insertNode(ie,de,je,Mt){if(!qn(de))return;const kt=de[On];if(kt&&kt.setForRemoval){kt.setForRemoval=!1,kt.setForMove=!0;const Kt=this.collectedLeaveElements.indexOf(de);Kt>=0&&this.collectedLeaveElements.splice(Kt,1)}if(ie){const Kt=this._fetchNamespace(ie);Kt&&Kt.insertNode(de,je)}Mt&&this.collectEnterElement(de)}collectEnterElement(ie){this.collectedEnterElements.push(ie)}markElementAsDisabled(ie,de){de?this.disabledNodes.has(ie)||(this.disabledNodes.add(ie),rr(ie,gt)):this.disabledNodes.has(ie)&&(this.disabledNodes.delete(ie),ua(ie,gt))}removeNode(ie,de,je,Mt){if(qn(de)){const kt=ie?this._fetchNamespace(ie):null;if(kt?kt.removeNode(de,Mt):this.markElementAsRemoved(ie,de,!1,Mt),je){const Kt=this.namespacesByHostElement.get(de);Kt&&Kt.id!==ie&&Kt.removeNode(de,Mt)}}else this._onRemovalComplete(de,Mt)}markElementAsRemoved(ie,de,je,Mt){this.collectedLeaveElements.push(de),de[On]={namespaceId:ie,setForRemoval:Mt,hasAnimation:je,removedBeforeQueried:!1}}listen(ie,de,je,Mt,kt){return qn(de)?this._fetchNamespace(ie).listen(de,je,Mt,kt):()=>{}}_buildInstruction(ie,de,je,Mt,kt){return ie.transition.build(this.driver,ie.element,ie.fromState.value,ie.toState.value,je,Mt,ie.fromState.options,ie.toState.options,de,kt)}destroyInnerAnimations(ie){let de=this.driver.query(ie,r,!0);de.forEach(je=>this.destroyActiveAnimationsForElement(je)),0!=this.playersByQueriedElement.size&&(de=this.driver.query(ie,Z,!0),de.forEach(je=>this.finishActiveQueriedAnimationOnElement(je)))}destroyActiveAnimationsForElement(ie){const de=this.playersByElement.get(ie);de&&de.forEach(je=>{je.queued?je.markedForDestroy=!0:je.destroy()})}finishActiveQueriedAnimationOnElement(ie){const de=this.playersByQueriedElement.get(ie);de&&de.forEach(je=>je.finish())}whenRenderingDone(){return new Promise(ie=>{if(this.players.length)return M(this.players).onDone(()=>ie());ie()})}processLeaveNode(ie){const de=ie[On];if(de&&de.setForRemoval){if(ie[On]=$i,de.namespaceId){this.destroyInnerAnimations(ie);const je=this._fetchNamespace(de.namespaceId);je&&je.clearElementCache(ie)}this._onRemovalComplete(ie,de.setForRemoval)}this.driver.matchesElement(ie,Lt)&&this.markElementAsDisabled(ie,!1),this.driver.query(ie,Lt,!0).forEach(je=>{this.markElementAsDisabled(je,!1)})}flush(ie=-1){let de=[];if(this.newHostElements.size&&(this.newHostElements.forEach((je,Mt)=>this._balanceNamespaceList(je,Mt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let je=0;je<this.collectedEnterElements.length;je++)rr(this.collectedEnterElements[je],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const je=[];try{de=this._flushAnimations(je,ie)}finally{for(let Mt=0;Mt<je.length;Mt++)je[Mt]()}}else for(let je=0;je<this.collectedLeaveElements.length;je++)this.processLeaveNode(this.collectedLeaveElements[je]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(je=>je()),this._flushFns=[],this._whenQuietFns.length){const je=this._whenQuietFns;this._whenQuietFns=[],de.length?M(de).onDone(()=>{je.forEach(Mt=>Mt())}):je.forEach(Mt=>Mt())}}reportError(ie){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${ie.join("\n")}`)}_flushAnimations(ie,de){const je=new Nt,Mt=[],kt=new Map,Kt=[],Jt=new Map,fi=new Map,Ai=new Map,Zi=new Set;this.disabledNodes.forEach(Bi=>{Zi.add(Bi);const an=this.driver.query(Bi,".ng-animate-queued",!0);for(let fn=0;fn<an.length;fn++)Zi.add(an[fn])});const en=this.bodyNode,Cn=Array.from(this.statesByElement.keys()),kn=Za(Cn,this.collectedEnterElements),tt=new Map;let Et=0;kn.forEach((Bi,an)=>{const fn=u+Et++;tt.set(an,fn),Bi.forEach(Rn=>rr(Rn,fn))});const It=[],zt=new Set,ri=new Set;for(let Bi=0;Bi<this.collectedLeaveElements.length;Bi++){const an=this.collectedLeaveElements[Bi],fn=an[On];fn&&fn.setForRemoval&&(It.push(an),zt.add(an),fn.hasAnimation?this.driver.query(an,".ng-star-inserted",!0).forEach(Rn=>zt.add(Rn)):ri.add(an))}const vi=new Map,Mi=Za(Cn,Array.from(zt));Mi.forEach((Bi,an)=>{const fn=_+Et++;vi.set(an,fn),Bi.forEach(Rn=>rr(Rn,fn))}),ie.push(()=>{kn.forEach((Bi,an)=>{const fn=tt.get(an);Bi.forEach(Rn=>ua(Rn,fn))}),Mi.forEach((Bi,an)=>{const fn=vi.get(an);Bi.forEach(Rn=>ua(Rn,fn))}),It.forEach(Bi=>{this.processLeaveNode(Bi)})});const Ei=[],ji=[];for(let Bi=this._namespaceList.length-1;Bi>=0;Bi--)this._namespaceList[Bi].drainQueuedTransitions(de).forEach(fn=>{const Rn=fn.player,Pn=fn.element;if(Ei.push(Rn),this.collectedEnterElements.length){const La=Pn[On];if(La&&La.setForMove)return void Rn.destroy()}const Da=!en||!this.driver.containsElement(en,Pn),Xr=vi.get(Pn),ca=tt.get(Pn),Wn=this._buildInstruction(fn,je,ca,Xr,Da);if(Wn.errors&&Wn.errors.length)ji.push(Wn);else{if(Da)return Rn.onStart(()=>ae(Pn,Wn.fromStyles)),Rn.onDestroy(()=>we(Pn,Wn.toStyles)),void Mt.push(Rn);if(fn.isFallbackTransition)return Rn.onStart(()=>ae(Pn,Wn.fromStyles)),Rn.onDestroy(()=>we(Pn,Wn.toStyles)),void Mt.push(Rn);Wn.timelines.forEach(La=>La.stretchStartingKeyframe=!0),je.append(Pn,Wn.timelines),Kt.push({instruction:Wn,player:Rn,element:Pn}),Wn.queriedElements.forEach(La=>O(Jt,La,[]).push(Rn)),Wn.preStyleProps.forEach((La,Rs)=>{const qs=Object.keys(La);if(qs.length){let Ma=fi.get(Rs);Ma||fi.set(Rs,Ma=new Set),qs.forEach(vs=>Ma.add(vs))}}),Wn.postStyleProps.forEach((La,Rs)=>{const qs=Object.keys(La);let Ma=Ai.get(Rs);Ma||Ai.set(Rs,Ma=new Set),qs.forEach(vs=>Ma.add(vs))})}});if(ji.length){const Bi=[];ji.forEach(an=>{Bi.push(`@${an.triggerName} has failed due to:\n`),an.errors.forEach(fn=>Bi.push(`- ${fn}\n`))}),Ei.forEach(an=>an.destroy()),this.reportError(Bi)}const hn=new Map,yn=new Map;Kt.forEach(Bi=>{const an=Bi.element;je.has(an)&&(yn.set(an,an),this._beforeAnimationBuild(Bi.player.namespaceId,Bi.instruction,hn))}),Mt.forEach(Bi=>{const an=Bi.element;this._getPreviousPlayers(an,!1,Bi.namespaceId,Bi.triggerName,null).forEach(Rn=>{O(hn,an,[]).push(Rn),Rn.destroy()})});const Sn=It.filter(Bi=>Zr(Bi,fi,Ai)),Vn=new Map;xa(Vn,this.driver,ri,Ai,v.l3).forEach(Bi=>{Zr(Bi,fi,Ai)&&Sn.push(Bi)});const Or=new Map;kn.forEach((Bi,an)=>{xa(Or,this.driver,new Set(Bi),fi,v.k1)}),Sn.forEach(Bi=>{const an=Vn.get(Bi),fn=Or.get(Bi);Vn.set(Bi,Object.assign(Object.assign({},an),fn))});const wr=[],Yn=[],mr={};Kt.forEach(Bi=>{const{element:an,player:fn,instruction:Rn}=Bi;if(je.has(an)){if(Zi.has(an))return fn.onDestroy(()=>we(an,Rn.toStyles)),fn.disabled=!0,fn.overrideTotalTime(Rn.totalTime),void Mt.push(fn);let Pn=mr;if(yn.size>1){let Xr=an;const ca=[];for(;Xr=Xr.parentNode;){const Wn=yn.get(Xr);if(Wn){Pn=Wn;break}ca.push(Xr)}ca.forEach(Wn=>yn.set(Wn,Pn))}const Da=this._buildAnimation(fn.namespaceId,Rn,hn,kt,Or,Vn);if(fn.setRealPlayer(Da),Pn===mr)wr.push(fn);else{const Xr=this.playersByElement.get(Pn);Xr&&Xr.length&&(fn.parentPlayer=M(Xr)),Mt.push(fn)}}else ae(an,Rn.fromStyles),fn.onDestroy(()=>we(an,Rn.toStyles)),Yn.push(fn),Zi.has(an)&&Mt.push(fn)}),Yn.forEach(Bi=>{const an=kt.get(Bi.element);if(an&&an.length){const fn=M(an);Bi.setRealPlayer(fn)}}),Mt.forEach(Bi=>{Bi.parentPlayer?Bi.syncPlayerEvents(Bi.parentPlayer):Bi.destroy()});for(let Bi=0;Bi<It.length;Bi++){const an=It[Bi],fn=an[On];if(ua(an,_),fn&&fn.hasAnimation)continue;let Rn=[];if(Jt.size){let Da=Jt.get(an);Da&&Da.length&&Rn.push(...Da);let Xr=this.driver.query(an,Z,!0);for(let ca=0;ca<Xr.length;ca++){let Wn=Jt.get(Xr[ca]);Wn&&Wn.length&&Rn.push(...Wn)}}const Pn=Rn.filter(Da=>!Da.destroyed);Pn.length?la(this,an,Pn):this.processLeaveNode(an)}return It.length=0,wr.forEach(Bi=>{this.players.push(Bi),Bi.onDone(()=>{Bi.destroy();const an=this.players.indexOf(Bi);this.players.splice(an,1)}),Bi.play()}),wr}elementContainsData(ie,de){let je=!1;const Mt=de[On];return Mt&&Mt.setForRemoval&&(je=!0),this.playersByElement.has(de)&&(je=!0),this.playersByQueriedElement.has(de)&&(je=!0),this.statesByElement.has(de)&&(je=!0),this._fetchNamespace(ie).elementContainsData(de)||je}afterFlush(ie){this._flushFns.push(ie)}afterFlushAnimationsDone(ie){this._whenQuietFns.push(ie)}_getPreviousPlayers(ie,de,je,Mt,kt){let Kt=[];if(de){const Jt=this.playersByQueriedElement.get(ie);Jt&&(Kt=Jt)}else{const Jt=this.playersByElement.get(ie);if(Jt){const fi=!kt||kt==Nn;Jt.forEach(Ai=>{Ai.queued||!fi&&Ai.triggerName!=Mt||Kt.push(Ai)})}}return(je||Mt)&&(Kt=Kt.filter(Jt=>!(je&&je!=Jt.namespaceId||Mt&&Mt!=Jt.triggerName))),Kt}_beforeAnimationBuild(ie,de,je){const kt=de.element,Kt=de.isRemovalTransition?void 0:ie,Jt=de.isRemovalTransition?void 0:de.triggerName;for(const fi of de.timelines){const Ai=fi.element,Zi=Ai!==kt,en=O(je,Ai,[]);this._getPreviousPlayers(Ai,Zi,Kt,Jt,de.toState).forEach(kn=>{const tt=kn.getRealPlayer();tt.beforeDestroy&&tt.beforeDestroy(),kn.destroy(),en.push(kn)})}ae(kt,de.fromStyles)}_buildAnimation(ie,de,je,Mt,kt,Kt){const Jt=de.triggerName,fi=de.element,Ai=[],Zi=new Set,en=new Set,Cn=de.timelines.map(tt=>{const Et=tt.element;Zi.add(Et);const It=Et[On];if(It&&It.removedBeforeQueried)return new v.ZN(tt.duration,tt.delay);const zt=Et!==fi,ri=function(bt){const ie=[];return ka(bt,ie),ie}((je.get(Et)||Wi).map(hn=>hn.getRealPlayer())).filter(hn=>!!hn.element&&hn.element===Et),vi=kt.get(Et),Mi=Kt.get(Et),Ei=c(0,this._normalizer,0,tt.keyframes,vi,Mi),ji=this._buildPlayer(tt,Ei,ri);if(tt.subTimeline&&Mt&&en.add(Et),zt){const hn=new sn(ie,Jt,Et);hn.setRealPlayer(ji),Ai.push(hn)}return ji});Ai.forEach(tt=>{O(this.playersByQueriedElement,tt.element,[]).push(tt),tt.onDone(()=>function(bt,ie,de){let je;if(bt instanceof Map){if(je=bt.get(ie),je){if(je.length){const Mt=je.indexOf(de);je.splice(Mt,1)}0==je.length&&bt.delete(ie)}}else if(je=bt[ie],je){if(je.length){const Mt=je.indexOf(de);je.splice(Mt,1)}0==je.length&&delete bt[ie]}return je}(this.playersByQueriedElement,tt.element,tt))}),Zi.forEach(tt=>rr(tt,b));const kn=M(Cn);return kn.onDestroy(()=>{Zi.forEach(tt=>ua(tt,b)),we(fi,de.toStyles)}),en.forEach(tt=>{O(Mt,tt,[]).push(kn)}),kn}_buildPlayer(ie,de,je){return de.length>0?this.driver.animate(ie.element,de,ie.duration,ie.delay,ie.easing,je):new v.ZN(ie.duration,ie.delay)}}class sn{constructor(ie,de,je){this.namespaceId=ie,this.triggerName=de,this.element=je,this._player=new v.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(ie){this._containsRealPlayer||(this._player=ie,Object.keys(this._queuedCallbacks).forEach(de=>{this._queuedCallbacks[de].forEach(je=>N(ie,de,void 0,je))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(ie.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(ie){this.totalTime=ie}syncPlayerEvents(ie){const de=this._player;de.triggerCallback&&ie.onStart(()=>de.triggerCallback("start")),ie.onDone(()=>this.finish()),ie.onDestroy(()=>this.destroy())}_queueEvent(ie,de){O(this._queuedCallbacks,ie,[]).push(de)}onDone(ie){this.queued&&this._queueEvent("done",ie),this._player.onDone(ie)}onStart(ie){this.queued&&this._queueEvent("start",ie),this._player.onStart(ie)}onDestroy(ie){this.queued&&this._queueEvent("destroy",ie),this._player.onDestroy(ie)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(ie){this.queued||this._player.setPosition(ie)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(ie){const de=this._player;de.triggerCallback&&de.triggerCallback(ie)}}function qn(bt){return bt&&1===bt.nodeType}function ba(bt,ie){const de=bt.style.display;return bt.style.display=null!=ie?ie:"none",de}function xa(bt,ie,de,je,Mt){const kt=[];de.forEach(fi=>kt.push(ba(fi)));const Kt=[];je.forEach((fi,Ai)=>{const Zi={};fi.forEach(en=>{const Cn=Zi[en]=ie.computeStyle(Ai,en,Mt);(!Cn||0==Cn.length)&&(Ai[On]=An,Kt.push(Ai))}),bt.set(Ai,Zi)});let Jt=0;return de.forEach(fi=>ba(fi,kt[Jt++])),Kt}function Za(bt,ie){const de=new Map;if(bt.forEach(Jt=>de.set(Jt,[])),0==ie.length)return de;const Mt=new Set(ie),kt=new Map;function Kt(Jt){if(!Jt)return 1;let fi=kt.get(Jt);if(fi)return fi;const Ai=Jt.parentNode;return fi=de.has(Ai)?Ai:Mt.has(Ai)?1:Kt(Ai),kt.set(Jt,fi),fi}return ie.forEach(Jt=>{const fi=Kt(Jt);1!==fi&&de.get(fi).push(Jt)}),de}const zr="$$classes";function rr(bt,ie){if(bt.classList)bt.classList.add(ie);else{let de=bt[zr];de||(de=bt[zr]={}),de[ie]=!0}}function ua(bt,ie){if(bt.classList)bt.classList.remove(ie);else{let de=bt[zr];de&&delete de[ie]}}function la(bt,ie,de){M(de).onDone(()=>bt.processLeaveNode(ie))}function ka(bt,ie){for(let de=0;de<bt.length;de++){const je=bt[de];je instanceof v.ZE?ka(je.players,ie):ie.push(je)}}function Zr(bt,ie,de){const je=de.get(bt);if(!je)return!1;let Mt=ie.get(bt);return Mt?je.forEach(kt=>Mt.add(kt)):ie.set(bt,je),de.delete(bt),!0}class Qr{constructor(ie,de,je){this.bodyNode=ie,this._driver=de,this._normalizer=je,this._triggerCache={},this.onRemovalComplete=(Mt,kt)=>{},this._transitionEngine=new Fi(ie,de,je),this._timelineEngine=new Ki(ie,de,je),this._transitionEngine.onRemovalComplete=(Mt,kt)=>this.onRemovalComplete(Mt,kt)}registerTrigger(ie,de,je,Mt,kt){const Kt=ie+"-"+Mt;let Jt=this._triggerCache[Kt];if(!Jt){const fi=[],Ai=jt(this._driver,kt,fi);if(fi.length)throw new Error(`The animation trigger "${Mt}" has failed to build due to the following errors:\n - ${fi.join("\n - ")}`);Jt=function(bt,ie,de){return new Rt(bt,ie,de)}(Mt,Ai,this._normalizer),this._triggerCache[Kt]=Jt}this._transitionEngine.registerTrigger(de,Mt,Jt)}register(ie,de){this._transitionEngine.register(ie,de)}destroy(ie,de){this._transitionEngine.destroy(ie,de)}onInsert(ie,de,je,Mt){this._transitionEngine.insertNode(ie,de,je,Mt)}onRemove(ie,de,je,Mt){this._transitionEngine.removeNode(ie,de,Mt||!1,je)}disableAnimations(ie,de){this._transitionEngine.markElementAsDisabled(ie,de)}process(ie,de,je,Mt){if("@"==je.charAt(0)){const[kt,Kt]=A(je);this._timelineEngine.command(kt,de,Kt,Mt)}else this._transitionEngine.trigger(ie,de,je,Mt)}listen(ie,de,je,Mt,kt){if("@"==je.charAt(0)){const[Kt,Jt]=A(je);return this._timelineEngine.listen(Kt,de,Jt,kt)}return this._transitionEngine.listen(ie,de,je,Mt,kt)}flush(ie=-1){this._transitionEngine.flush(ie)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function xr(bt,ie){let de=null,je=null;return Array.isArray(ie)&&ie.length?(de=Kn(ie[0]),ie.length>1&&(je=Kn(ie[ie.length-1]))):ie&&(de=Kn(ie)),de||je?new _n(bt,de,je):null}let _n=(()=>{class bt{constructor(de,je,Mt){this._element=de,this._startStyles=je,this._endStyles=Mt,this._state=0;let kt=bt.initialStylesByElement.get(de);kt||bt.initialStylesByElement.set(de,kt={}),this._initialStyles=kt}start(){this._state<1&&(this._startStyles&&we(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(we(this._element,this._initialStyles),this._endStyles&&(we(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(bt.initialStylesByElement.delete(this._element),this._startStyles&&(ae(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ae(this._element,this._endStyles),this._endStyles=null),we(this._element,this._initialStyles),this._state=3)}}return bt.initialStylesByElement=new WeakMap,bt})();function Kn(bt){let ie=null;const de=Object.keys(bt);for(let je=0;je<de.length;je++){const Mt=de[je];Dr(Mt)&&(ie=ie||{},ie[Mt]=bt[Mt])}return ie}function Dr(bt){return"display"===bt||"position"===bt}const Va="animation",Pr="animationend";class Ca{constructor(ie,de,je,Mt,kt,Kt,Jt){this._element=ie,this._name=de,this._duration=je,this._delay=Mt,this._easing=kt,this._fillMode=Kt,this._onDoneFn=Jt,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=fi=>this._handleCallback(fi)}apply(){(function(bt,ie){const de=na(bt,"").trim();let je=0;de.length&&(function(bt,ie){let de=0;for(let je=0;je<bt.length;je++)","===bt.charAt(je)&&de++;return de}(de)+1,ie=`${de}, ${ie}`),Nr(bt,"",ie)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Sa(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Vr(this._element,this._name,"paused")}resume(){Vr(this._element,this._name,"running")}setPosition(ie){const de=hr(this._element,this._name);this._position=ie*this._duration,Nr(this._element,"Delay",`-${this._position}ms`,de)}getPosition(){return this._position}_handleCallback(ie){const de=ie._ngTestManualTimestamp||Date.now(),je=1e3*parseFloat(ie.elapsedTime.toFixed(3));ie.animationName==this._name&&Math.max(de-this._startTime,0)>=this._delay&&je>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Sa(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(bt,ie){const je=na(bt,"").split(","),Mt=ia(je,ie);Mt>=0&&(je.splice(Mt,1),Nr(bt,"",je.join(",")))}(this._element,this._name))}}function Vr(bt,ie,de){Nr(bt,"PlayState",de,hr(bt,ie))}function hr(bt,ie){const de=na(bt,"");return de.indexOf(",")>0?ia(de.split(","),ie):ia([de],ie)}function ia(bt,ie){for(let de=0;de<bt.length;de++)if(bt[de].indexOf(ie)>=0)return de;return-1}function Sa(bt,ie,de){de?bt.removeEventListener(Pr,ie):bt.addEventListener(Pr,ie)}function Nr(bt,ie,de,je){const Mt=Va+ie;if(null!=je){const kt=bt.style[Mt];if(kt.length){const Kt=kt.split(",");Kt[je]=de,de=Kt.join(",")}}bt.style[Mt]=de}function na(bt,ie){return bt.style[Va+ie]||""}class fr{constructor(ie,de,je,Mt,kt,Kt,Jt,fi){this.element=ie,this.keyframes=de,this.animationName=je,this._duration=Mt,this._delay=kt,this._finalStyles=Jt,this._specialStyles=fi,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Kt||"linear",this.totalTime=Mt+kt,this._buildStyler()}onStart(ie){this._onStartFns.push(ie)}onDone(ie){this._onDoneFns.push(ie)}onDestroy(ie){this._onDestroyFns.push(ie)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(ie=>ie()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(ie=>ie()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(ie=>ie()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(ie){this._styler.setPosition(ie)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Ca(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(ie){const de="start"==ie?this._onStartFns:this._onDoneFns;de.forEach(je=>je()),de.length=0}beforeDestroy(){this.init();const ie={};if(this.hasStarted()){const de=this._state>=3;Object.keys(this._finalStyles).forEach(je=>{"offset"!=je&&(ie[je]=de?this._finalStyles[je]:ht(this.element,je))})}this.currentSnapshot=ie}}class fa extends v.ZN{constructor(ie,de){super(),this.element=ie,this._startingStyles={},this.__initialized=!1,this._styles=re(de)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(ie=>{this._startingStyles[ie]=this.element.style[ie]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(ie=>this.element.style.setProperty(ie,this._styles[ie])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(ie=>{const de=this._startingStyles[ie];de?this.element.style.setProperty(ie,de):this.element.style.removeProperty(ie)}),this._startingStyles=null,super.destroy())}}class Zn{constructor(){this._count=0}validateStyleProperty(ie){return ee(ie)}matchesElement(ie,de){return ce(ie,de)}containsElement(ie,de){return le(ie,de)}query(ie,de,je){return te(ie,de,je)}computeStyle(ie,de,je){return window.getComputedStyle(ie)[de]}buildKeyframeElement(ie,de,je){je=je.map(Jt=>re(Jt));let Mt=`@keyframes ${de} {\n`,kt="";je.forEach(Jt=>{kt=" ";const fi=parseFloat(Jt.offset);Mt+=`${kt}${100*fi}% {\n`,kt+=" ",Object.keys(Jt).forEach(Ai=>{const Zi=Jt[Ai];switch(Ai){case"offset":return;case"easing":return void(Zi&&(Mt+=`${kt}animation-timing-function: ${Zi};\n`));default:return void(Mt+=`${kt}${Ai}: ${Zi};\n`)}}),Mt+=`${kt}}\n`}),Mt+="}\n";const Kt=document.createElement("style");return Kt.textContent=Mt,Kt}animate(ie,de,je,Mt,kt,Kt=[],Jt){const fi=Kt.filter(It=>It instanceof fr),Ai={};oe(je,Mt)&&fi.forEach(It=>{let zt=It.currentSnapshot;Object.keys(zt).forEach(ri=>Ai[ri]=zt[ri])});const Zi=function(bt){let ie={};return bt&&(Array.isArray(bt)?bt:[bt]).forEach(je=>{Object.keys(je).forEach(Mt=>{"offset"==Mt||"easing"==Mt||(ie[Mt]=je[Mt])})}),ie}(de=Ce(ie,de,Ai));if(0==je)return new fa(ie,Zi);const en="gen_css_kf_"+this._count++,Cn=this.buildKeyframeElement(ie,en,de);(function(bt){var ie;const de=null===(ie=bt.getRootNode)||void 0===ie?void 0:ie.call(bt);return"undefined"!=typeof ShadowRoot&&de instanceof ShadowRoot?de:document.head})(ie).appendChild(Cn);const tt=xr(ie,de),Et=new fr(ie,de,en,je,Mt,kt,Zi,tt);return Et.onDestroy(()=>{var bt;(bt=Cn).parentNode.removeChild(bt)}),Et}}class ne{constructor(ie,de,je,Mt){this.element=ie,this.keyframes=de,this.options=je,this._specialStyles=Mt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=je.duration,this._delay=je.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ie=>ie()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const ie=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,ie,this.options),this._finalKeyframe=ie.length?ie[ie.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(ie,de,je){return ie.animate(de,je)}onStart(ie){this._onStartFns.push(ie)}onDone(ie){this._onDoneFns.push(ie)}onDestroy(ie){this._onDestroyFns.push(ie)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(ie=>ie()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(ie=>ie()),this._onDestroyFns=[])}setPosition(ie){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=ie*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const ie={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(de=>{"offset"!=de&&(ie[de]=this._finished?this._finalKeyframe[de]:ht(this.element,de))}),this.currentSnapshot=ie}triggerCallback(ie){const de="start"==ie?this._onStartFns:this._onDoneFns;de.forEach(je=>je()),de.length=0}}class Qe{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(pi().toString()),this._cssKeyframesDriver=new Zn}validateStyleProperty(ie){return ee(ie)}matchesElement(ie,de){return ce(ie,de)}containsElement(ie,de){return le(ie,de)}query(ie,de,je){return te(ie,de,je)}computeStyle(ie,de,je){return window.getComputedStyle(ie)[de]}overrideWebAnimationsSupport(ie){this._isNativeImpl=ie}animate(ie,de,je,Mt,kt,Kt=[],Jt){if(!Jt&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(ie,de,je,Mt,kt,Kt);const Zi={duration:je,delay:Mt,fill:0==Mt?"both":"forwards"};kt&&(Zi.easing=kt);const en={},Cn=Kt.filter(tt=>tt instanceof ne);oe(je,Mt)&&Cn.forEach(tt=>{let Et=tt.currentSnapshot;Object.keys(Et).forEach(It=>en[It]=Et[It])});const kn=xr(ie,de=Ce(ie,de=de.map(tt=>Oe(tt,!1)),en));return new ne(ie,de,Zi,kn)}}function pi(){return C()&&Element.prototype.animate||{}}var xt=m(9808);let ei=(()=>{class bt extends v._j{constructor(de,je){super(),this._nextAnimationId=0,this._renderer=de.createRenderer(je.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(de){const je=this._nextAnimationId.toString();this._nextAnimationId++;const Mt=Array.isArray(de)?(0,v.vP)(de):de;return xi(this._renderer,null,je,"register",[Mt]),new yt(je,this._renderer)}}return bt.\u0275fac=function(de){return new(de||bt)(e.LFG(e.FYo),e.LFG(xt.K0))},bt.\u0275prov=e.Yz7({token:bt,factory:bt.\u0275fac}),bt})();class yt extends v.LC{constructor(ie,de){super(),this._id=ie,this._renderer=de}create(ie,de){return new Wt(this._id,ie,de||{},this._renderer)}}class Wt{constructor(ie,de,je,Mt){this.id=ie,this.element=de,this._renderer=Mt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",je)}_listen(ie,de){return this._renderer.listen(this.element,`@@${this.id}:${ie}`,de)}_command(ie,...de){return xi(this._renderer,this.element,this.id,ie,de)}onDone(ie){this._listen("done",ie)}onStart(ie){this._listen("start",ie)}onDestroy(ie){this._listen("destroy",ie)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(ie){this._command("setPosition",ie)}getPosition(){var ie,de;return null!==(de=null===(ie=this._renderer.engine.players[+this.id])||void 0===ie?void 0:ie.getPosition())&&void 0!==de?de:0}}function xi(bt,ie,de,je,Mt){return bt.setProperty(ie,`@@${de}:${je}`,Mt)}const vn="@.disabled";let wn=(()=>{class bt{constructor(de,je,Mt){this.delegate=de,this.engine=je,this._zone=Mt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),je.onRemovalComplete=(kt,Kt)=>{const Jt=null==Kt?void 0:Kt.parentNode(kt);Jt&&Kt.removeChild(Jt,kt)}}createRenderer(de,je){const kt=this.delegate.createRenderer(de,je);if(!(de&&je&&je.data&&je.data.animation)){let Zi=this._rendererCache.get(kt);return Zi||(Zi=new Qi("",kt,this.engine),this._rendererCache.set(kt,Zi)),Zi}const Kt=je.id,Jt=je.id+"-"+this._currentId;this._currentId++,this.engine.register(Jt,de);const fi=Zi=>{Array.isArray(Zi)?Zi.forEach(fi):this.engine.registerTrigger(Kt,Jt,de,Zi.name,Zi)};return je.data.animation.forEach(fi),new pr(this,Jt,kt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(de,je,Mt){de>=0&&de<this._microtaskId?this._zone.run(()=>je(Mt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(kt=>{const[Kt,Jt]=kt;Kt(Jt)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([je,Mt]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return bt.\u0275fac=function(de){return new(de||bt)(e.LFG(e.FYo),e.LFG(Qr),e.LFG(e.R0b))},bt.\u0275prov=e.Yz7({token:bt,factory:bt.\u0275fac}),bt})();class Qi{constructor(ie,de,je){this.namespaceId=ie,this.delegate=de,this.engine=je,this.destroyNode=this.delegate.destroyNode?Mt=>de.destroyNode(Mt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(ie,de){return this.delegate.createElement(ie,de)}createComment(ie){return this.delegate.createComment(ie)}createText(ie){return this.delegate.createText(ie)}appendChild(ie,de){this.delegate.appendChild(ie,de),this.engine.onInsert(this.namespaceId,de,ie,!1)}insertBefore(ie,de,je,Mt=!0){this.delegate.insertBefore(ie,de,je),this.engine.onInsert(this.namespaceId,de,ie,Mt)}removeChild(ie,de,je){this.engine.onRemove(this.namespaceId,de,this.delegate,je)}selectRootElement(ie,de){return this.delegate.selectRootElement(ie,de)}parentNode(ie){return this.delegate.parentNode(ie)}nextSibling(ie){return this.delegate.nextSibling(ie)}setAttribute(ie,de,je,Mt){this.delegate.setAttribute(ie,de,je,Mt)}removeAttribute(ie,de,je){this.delegate.removeAttribute(ie,de,je)}addClass(ie,de){this.delegate.addClass(ie,de)}removeClass(ie,de){this.delegate.removeClass(ie,de)}setStyle(ie,de,je,Mt){this.delegate.setStyle(ie,de,je,Mt)}removeStyle(ie,de,je){this.delegate.removeStyle(ie,de,je)}setProperty(ie,de,je){"@"==de.charAt(0)&&de==vn?this.disableAnimations(ie,!!je):this.delegate.setProperty(ie,de,je)}setValue(ie,de){this.delegate.setValue(ie,de)}listen(ie,de,je){return this.delegate.listen(ie,de,je)}disableAnimations(ie,de){this.engine.disableAnimations(ie,de)}}class pr extends Qi{constructor(ie,de,je,Mt){super(de,je,Mt),this.factory=ie,this.namespaceId=de}setProperty(ie,de,je){"@"==de.charAt(0)?"."==de.charAt(1)&&de==vn?this.disableAnimations(ie,je=void 0===je||!!je):this.engine.process(this.namespaceId,ie,de.substr(1),je):this.delegate.setProperty(ie,de,je)}listen(ie,de,je){if("@"==de.charAt(0)){const Mt=function(bt){switch(bt){case"body":return document.body;case"document":return document;case"window":return window;default:return bt}}(ie);let kt=de.substr(1),Kt="";return"@"!=kt.charAt(0)&&([kt,Kt]=function(bt){const ie=bt.indexOf(".");return[bt.substring(0,ie),bt.substr(ie+1)]}(kt)),this.engine.listen(this.namespaceId,Mt,kt,Kt,Jt=>{this.factory.scheduleListenerCallback(Jt._data||-1,je,Jt)})}return this.delegate.listen(ie,de,je)}}let ma=(()=>{class bt extends Qr{constructor(de,je,Mt){super(de.body,je,Mt)}ngOnDestroy(){this.flush()}}return bt.\u0275fac=function(de){return new(de||bt)(e.LFG(xt.K0),e.LFG(y),e.LFG(Vi))},bt.\u0275prov=e.Yz7({token:bt,factory:bt.\u0275fac}),bt})();const ki=new e.OlP("AnimationModuleType"),Fn=[{provide:v._j,useClass:ei},{provide:Vi,useFactory:function(){return new Xi}},{provide:Qr,useClass:ma},{provide:e.FYo,useFactory:function(bt,ie,de){return new wn(bt,ie,de)},deps:[t.se,Qr,e.R0b]}],fs=[{provide:y,useFactory:function(){return"function"==typeof pi()?new Qe:new Zn}},{provide:ki,useValue:"BrowserAnimations"},...Fn],cr=[{provide:y,useClass:pe},{provide:ki,useValue:"NoopAnimations"},...Fn];let js=(()=>{class bt{static withConfig(de){return{ngModule:bt,providers:de.disableAnimations?cr:fs}}}return bt.\u0275fac=function(de){return new(de||bt)},bt.\u0275mod=e.oAB({type:bt}),bt.\u0275inj=e.cJS({providers:fs,imports:[t.b2]}),bt})()},2313:(Ze,K,m)=>{"use strict";m.d(K,{b2:()=>vt,H7:()=>$t,t6:()=>et,q6:()=>ae,se:()=>u});var e=m(9808),t=m(5e3);class v extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class C extends v{static makeCurrent(){(0,e.HT)(new C)}onAndCancel(Fe,rt,ot){return Fe.addEventListener(rt,ot,!1),()=>{Fe.removeEventListener(rt,ot,!1)}}dispatchEvent(Fe,rt){Fe.dispatchEvent(rt)}remove(Fe){Fe.parentNode&&Fe.parentNode.removeChild(Fe)}createElement(Fe,rt){return(rt=rt||this.getDefaultDocument()).createElement(Fe)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Fe){return Fe.nodeType===Node.ELEMENT_NODE}isShadowRoot(Fe){return Fe instanceof DocumentFragment}getGlobalEventTarget(Fe,rt){return"window"===rt?window:"document"===rt?Fe:"body"===rt?Fe.body:null}getBaseHref(Fe){const rt=(s=s||document.querySelector("base"),s?s.getAttribute("href"):null);return null==rt?null:function(Re){c=c||document.createElement("a"),c.setAttribute("href",Re);const Fe=c.pathname;return"/"===Fe.charAt(0)?Fe:`/${Fe}`}(rt)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(Fe){return(0,e.Mx)(document.cookie,Fe)}}let c,s=null;const o=new t.OlP("TRANSITION_ID"),O=[{provide:t.ip1,useFactory:function(Re,Fe,rt){return()=>{rt.get(t.CZH).donePromise.then(()=>{const ot=(0,e.q)(),At=Fe.querySelectorAll(`style[ng-transition="${Re}"]`);for(let li=0;li<At.length;li++)ot.remove(At[li])})}},deps:[o,e.K0,t.zs3],multi:!0}];class A{static init(){(0,t.VLi)(new A)}addToWindow(Fe){t.dqk.getAngularTestability=(ot,At=!0)=>{const li=Fe.findTestabilityInTree(ot,At);if(null==li)throw new Error("Could not find testability for element.");return li},t.dqk.getAllAngularTestabilities=()=>Fe.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>Fe.getAllRootElements(),t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(ot=>{const At=t.dqk.getAllAngularTestabilities();let li=At.length,Ut=!1;const Ft=function(Si){Ut=Ut||Si,li--,0==li&&ot(Ut)};At.forEach(function(Si){Si.whenStable(Ft)})})}findTestabilityInTree(Fe,rt,ot){if(null==rt)return null;const At=Fe.getTestability(rt);return null!=At?At:ot?(0,e.q)().isShadowRoot(rt)?this.findTestabilityInTree(Fe,rt.host,!0):this.findTestabilityInTree(Fe,rt.parentElement,!0):null}}let E=(()=>{class Re{build(){return new XMLHttpRequest}}return Re.\u0275fac=function(rt){return new(rt||Re)},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const k=new t.OlP("EventManagerPlugins");let w=(()=>{class Re{constructor(rt,ot){this._zone=ot,this._eventNameToPlugin=new Map,rt.forEach(At=>At.manager=this),this._plugins=rt.slice().reverse()}addEventListener(rt,ot,At){return this._findPluginFor(ot).addEventListener(rt,ot,At)}addGlobalEventListener(rt,ot,At){return this._findPluginFor(ot).addGlobalEventListener(rt,ot,At)}getZone(){return this._zone}_findPluginFor(rt){const ot=this._eventNameToPlugin.get(rt);if(ot)return ot;const At=this._plugins;for(let li=0;li<At.length;li++){const Ut=At[li];if(Ut.supports(rt))return this._eventNameToPlugin.set(rt,Ut),Ut}throw new Error(`No event manager plugin found for event ${rt}`)}}return Re.\u0275fac=function(rt){return new(rt||Re)(t.LFG(k),t.LFG(t.R0b))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class V{constructor(Fe){this._doc=Fe}addGlobalEventListener(Fe,rt,ot){const At=(0,e.q)().getGlobalEventTarget(this._doc,Fe);if(!At)throw new Error(`Unsupported event target ${At} for event ${rt}`);return this.addEventListener(At,rt,ot)}}let W=(()=>{class Re{constructor(){this._stylesSet=new Set}addStyles(rt){const ot=new Set;rt.forEach(At=>{this._stylesSet.has(At)||(this._stylesSet.add(At),ot.add(At))}),this.onStylesAdded(ot)}onStylesAdded(rt){}getAllStyles(){return Array.from(this._stylesSet)}}return Re.\u0275fac=function(rt){return new(rt||Re)},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),j=(()=>{class Re extends W{constructor(rt){super(),this._doc=rt,this._hostNodes=new Map,this._hostNodes.set(rt.head,[])}_addStylesToHost(rt,ot,At){rt.forEach(li=>{const Ut=this._doc.createElement("style");Ut.textContent=li,At.push(ot.appendChild(Ut))})}addHost(rt){const ot=[];this._addStylesToHost(this._stylesSet,rt,ot),this._hostNodes.set(rt,ot)}removeHost(rt){const ot=this._hostNodes.get(rt);ot&&ot.forEach($),this._hostNodes.delete(rt)}onStylesAdded(rt){this._hostNodes.forEach((ot,At)=>{this._addStylesToHost(rt,At,ot)})}ngOnDestroy(){this._hostNodes.forEach(rt=>rt.forEach($))}}return Re.\u0275fac=function(rt){return new(rt||Re)(t.LFG(e.K0))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function $(Re){(0,e.q)().remove(Re)}const ee={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},me=/%COMP%/g;function i(Re,Fe,rt){for(let ot=0;ot<Fe.length;ot++){let At=Fe[ot];Array.isArray(At)?i(Re,At,rt):(At=At.replace(me,Re),rt.push(At))}return rt}function a(Re){return Fe=>{if("__ngUnwrap__"===Fe)return Re;!1===Re(Fe)&&(Fe.preventDefault(),Fe.returnValue=!1)}}let u=(()=>{class Re{constructor(rt,ot,At){this.eventManager=rt,this.sharedStylesHost=ot,this.appId=At,this.rendererByCompId=new Map,this.defaultRenderer=new _(rt)}createRenderer(rt,ot){if(!rt||!ot)return this.defaultRenderer;switch(ot.encapsulation){case t.ifc.Emulated:{let At=this.rendererByCompId.get(ot.id);return At||(At=new x(this.eventManager,this.sharedStylesHost,ot,this.appId),this.rendererByCompId.set(ot.id,At)),At.applyToHost(rt),At}case 1:case t.ifc.ShadowDom:return new r(this.eventManager,this.sharedStylesHost,rt,ot);default:if(!this.rendererByCompId.has(ot.id)){const At=i(ot.id,ot.styles,[]);this.sharedStylesHost.addStyles(At),this.rendererByCompId.set(ot.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Re.\u0275fac=function(rt){return new(rt||Re)(t.LFG(w),t.LFG(j),t.LFG(t.AFp))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class _{constructor(Fe){this.eventManager=Fe,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Fe,rt){return rt?document.createElementNS(ee[rt]||rt,Fe):document.createElement(Fe)}createComment(Fe){return document.createComment(Fe)}createText(Fe){return document.createTextNode(Fe)}appendChild(Fe,rt){Fe.appendChild(rt)}insertBefore(Fe,rt,ot){Fe&&Fe.insertBefore(rt,ot)}removeChild(Fe,rt){Fe&&Fe.removeChild(rt)}selectRootElement(Fe,rt){let ot="string"==typeof Fe?document.querySelector(Fe):Fe;if(!ot)throw new Error(`The selector "${Fe}" did not match any elements`);return rt||(ot.textContent=""),ot}parentNode(Fe){return Fe.parentNode}nextSibling(Fe){return Fe.nextSibling}setAttribute(Fe,rt,ot,At){if(At){rt=At+":"+rt;const li=ee[At];li?Fe.setAttributeNS(li,rt,ot):Fe.setAttribute(rt,ot)}else Fe.setAttribute(rt,ot)}removeAttribute(Fe,rt,ot){if(ot){const At=ee[ot];At?Fe.removeAttributeNS(At,rt):Fe.removeAttribute(`${ot}:${rt}`)}else Fe.removeAttribute(rt)}addClass(Fe,rt){Fe.classList.add(rt)}removeClass(Fe,rt){Fe.classList.remove(rt)}setStyle(Fe,rt,ot,At){At&(t.JOm.DashCase|t.JOm.Important)?Fe.style.setProperty(rt,ot,At&t.JOm.Important?"important":""):Fe.style[rt]=ot}removeStyle(Fe,rt,ot){ot&t.JOm.DashCase?Fe.style.removeProperty(rt):Fe.style[rt]=""}setProperty(Fe,rt,ot){Fe[rt]=ot}setValue(Fe,rt){Fe.nodeValue=rt}listen(Fe,rt,ot){return"string"==typeof Fe?this.eventManager.addGlobalEventListener(Fe,rt,a(ot)):this.eventManager.addEventListener(Fe,rt,a(ot))}}class x extends _{constructor(Fe,rt,ot,At){super(Fe),this.component=ot;const li=i(At+"-"+ot.id,ot.styles,[]);rt.addStyles(li),this.contentAttr="_ngcontent-%COMP%".replace(me,At+"-"+ot.id),this.hostAttr="_nghost-%COMP%".replace(me,At+"-"+ot.id)}applyToHost(Fe){super.setAttribute(Fe,this.hostAttr,"")}createElement(Fe,rt){const ot=super.createElement(Fe,rt);return super.setAttribute(ot,this.contentAttr,""),ot}}class r extends _{constructor(Fe,rt,ot,At){super(Fe),this.sharedStylesHost=rt,this.hostEl=ot,this.shadowRoot=ot.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const li=i(At.id,At.styles,[]);for(let Ut=0;Ut<li.length;Ut++){const Ft=document.createElement("style");Ft.textContent=li[Ut],this.shadowRoot.appendChild(Ft)}}nodeOrShadowRoot(Fe){return Fe===this.hostEl?this.shadowRoot:Fe}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Fe,rt){return super.appendChild(this.nodeOrShadowRoot(Fe),rt)}insertBefore(Fe,rt,ot){return super.insertBefore(this.nodeOrShadowRoot(Fe),rt,ot)}removeChild(Fe,rt){return super.removeChild(this.nodeOrShadowRoot(Fe),rt)}parentNode(Fe){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Fe)))}}let b=(()=>{class Re extends V{constructor(rt){super(rt)}supports(rt){return!0}addEventListener(rt,ot,At){return rt.addEventListener(ot,At,!1),()=>this.removeEventListener(rt,ot,At)}removeEventListener(rt,ot,At){return rt.removeEventListener(ot,At)}}return Re.\u0275fac=function(rt){return new(rt||Re)(t.LFG(e.K0))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Z=["alt","control","meta","shift"],U={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ye={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},xe={alt:Re=>Re.altKey,control:Re=>Re.ctrlKey,meta:Re=>Re.metaKey,shift:Re=>Re.shiftKey};let Ne=(()=>{class Re extends V{constructor(rt){super(rt)}supports(rt){return null!=Re.parseEventName(rt)}addEventListener(rt,ot,At){const li=Re.parseEventName(ot),Ut=Re.eventCallback(li.fullKey,At,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(rt,li.domEventName,Ut))}static parseEventName(rt){const ot=rt.toLowerCase().split("."),At=ot.shift();if(0===ot.length||"keydown"!==At&&"keyup"!==At)return null;const li=Re._normalizeKey(ot.pop());let Ut="";if(Z.forEach(Si=>{const ai=ot.indexOf(Si);ai>-1&&(ot.splice(ai,1),Ut+=Si+".")}),Ut+=li,0!=ot.length||0===li.length)return null;const Ft={};return Ft.domEventName=At,Ft.fullKey=Ut,Ft}static getEventFullKey(rt){let ot="",At=function(Re){let Fe=Re.key;if(null==Fe){if(Fe=Re.keyIdentifier,null==Fe)return"Unidentified";Fe.startsWith("U+")&&(Fe=String.fromCharCode(parseInt(Fe.substring(2),16)),3===Re.location&&ye.hasOwnProperty(Fe)&&(Fe=ye[Fe]))}return U[Fe]||Fe}(rt);return At=At.toLowerCase()," "===At?At="space":"."===At&&(At="dot"),Z.forEach(li=>{li!=At&&xe[li](rt)&&(ot+=li+".")}),ot+=At,ot}static eventCallback(rt,ot,At){return li=>{Re.getEventFullKey(li)===rt&&At.runGuarded(()=>ot(li))}}static _normalizeKey(rt){return"esc"===rt?"escape":rt}}return Re.\u0275fac=function(rt){return new(rt||Re)(t.LFG(e.K0))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const ae=(0,t.eFA)(t._c5,"browser",[{provide:t.Lbi,useValue:e.bD},{provide:t.g9A,useValue:function(){C.makeCurrent(),A.init()},multi:!0},{provide:e.K0,useFactory:function(){return(0,t.RDi)(document),document},deps:[]}]),We=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function(){return new t.qLn},deps:[]},{provide:k,useClass:b,multi:!0,deps:[e.K0,t.R0b,t.Lbi]},{provide:k,useClass:Ne,multi:!0,deps:[e.K0]},{provide:u,useClass:u,deps:[w,j,t.AFp]},{provide:t.FYo,useExisting:u},{provide:W,useExisting:j},{provide:j,useClass:j,deps:[e.K0]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b]},{provide:w,useClass:w,deps:[k,t.R0b]},{provide:e.JF,useClass:E,deps:[]}];let vt=(()=>{class Re{constructor(rt){if(rt)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(rt){return{ngModule:Re,providers:[{provide:t.AFp,useValue:rt.appId},{provide:o,useExisting:t.AFp},O]}}}return Re.\u0275fac=function(rt){return new(rt||Re)(t.LFG(Re,12))},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({providers:We,imports:[e.ez,t.hGG]}),Re})();"undefined"!=typeof window&&window;const ze={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Te=new t.OlP("HammerGestureConfig"),Y=new t.OlP("HammerLoader");let ge=(()=>{class Re{constructor(){this.events=[],this.overrides={}}buildHammer(rt){const ot=new Hammer(rt,this.options);ot.get("pinch").set({enable:!0}),ot.get("rotate").set({enable:!0});for(const At in this.overrides)ot.get(At).set(this.overrides[At]);return ot}}return Re.\u0275fac=function(rt){return new(rt||Re)},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),Ae=(()=>{class Re extends V{constructor(rt,ot,At,li){super(rt),this._config=ot,this.console=At,this.loader=li,this._loaderPromise=null}supports(rt){return!(!ze.hasOwnProperty(rt.toLowerCase())&&!this.isCustomEvent(rt)||!window.Hammer&&!this.loader)}addEventListener(rt,ot,At){const li=this.manager.getZone();if(ot=ot.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Ut=!1,Ft=()=>{Ut=!0};return this._loaderPromise.then(()=>{window.Hammer?Ut||(Ft=this.addEventListener(rt,ot,At)):Ft=()=>{}}).catch(()=>{Ft=()=>{}}),()=>{Ft()}}return li.runOutsideAngular(()=>{const Ut=this._config.buildHammer(rt),Ft=function(Si){li.runGuarded(function(){At(Si)})};return Ut.on(ot,Ft),()=>{Ut.off(ot,Ft),"function"==typeof Ut.destroy&&Ut.destroy()}})}isCustomEvent(rt){return this._config.events.indexOf(rt)>-1}}return Re.\u0275fac=function(rt){return new(rt||Re)(t.LFG(e.K0),t.LFG(Te),t.LFG(t.c2e),t.LFG(Y,8))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),et=(()=>{class Re{}return Re.\u0275fac=function(rt){return new(rt||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({providers:[{provide:k,useClass:Ae,multi:!0,deps:[e.K0,Te,t.c2e,[new t.FiY,Y]]},{provide:Te,useClass:ge,deps:[]}]}),Re})(),$t=(()=>{class Re{}return Re.\u0275fac=function(rt){return new(rt||Re)},Re.\u0275prov=t.Yz7({token:Re,factory:function(rt){let ot=null;return ot=rt?new(rt||Re):t.LFG(Xt),ot},providedIn:"root"}),Re})(),Xt=(()=>{class Re extends $t{constructor(rt){super(),this._doc=rt}sanitize(rt,ot){if(null==ot)return null;switch(rt){case t.q3G.NONE:return ot;case t.q3G.HTML:return(0,t.qzn)(ot,"HTML")?(0,t.z3N)(ot):(0,t.EiD)(this._doc,String(ot)).toString();case t.q3G.STYLE:return(0,t.qzn)(ot,"Style")?(0,t.z3N)(ot):ot;case t.q3G.SCRIPT:if((0,t.qzn)(ot,"Script"))return(0,t.z3N)(ot);throw new Error("unsafe value used in a script context");case t.q3G.URL:return(0,t.yhl)(ot),(0,t.qzn)(ot,"URL")?(0,t.z3N)(ot):(0,t.mCW)(String(ot));case t.q3G.RESOURCE_URL:if((0,t.qzn)(ot,"ResourceURL"))return(0,t.z3N)(ot);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${rt} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(rt){return(0,t.JVY)(rt)}bypassSecurityTrustStyle(rt){return(0,t.L6k)(rt)}bypassSecurityTrustScript(rt){return(0,t.eBb)(rt)}bypassSecurityTrustUrl(rt){return(0,t.LAX)(rt)}bypassSecurityTrustResourceUrl(rt){return(0,t.pB0)(rt)}}return Re.\u0275fac=function(rt){return new(rt||Re)(t.LFG(e.K0))},Re.\u0275prov=t.Yz7({token:Re,factory:function(rt){let ot=null;return ot=rt?new rt:function(Re){return new Xt(Re.get(e.K0))}(t.LFG(t.zs3)),ot},providedIn:"root"}),Re})()},9291:(Ze,K,m)=>{"use strict";m.d(K,{gz:()=>at,gk:()=>ye,m2:()=>U,Q3:()=>xe,OD:()=>P,Av:()=>Me,F0:()=>Pn,rH:()=>ca,Od:()=>La,yS:()=>Wn,Bz:()=>t1,lC:()=>ia});var e=m(5e3);const v=(0,m(3888).d)(Ge=>function(){Ge(this),this.name="EmptyError",this.message="no elements in sequence"});var C=m(8306),s=m(727),M=m(4482),c=m(5403);function N(){return(0,M.e)((Ge,Se)=>{let be=null;Ge._refCount++;const Je=new c.Q(Se,void 0,void 0,void 0,()=>{if(!Ge||Ge._refCount<=0||0<--Ge._refCount)return void(be=null);const ct=Ge._connection,Ot=be;be=null,ct&&(!Ot||ct===Ot)&&ct.unsubscribe(),Se.unsubscribe()});Ge.subscribe(Je),Je.closed||(be=Ge.connect())})}class o extends C.y{constructor(Se,be){super(),this.source=Se,this.subjectFactory=be,this._subject=null,this._refCount=0,this._connection=null,(0,M.A)(Se)&&(this.lift=Se.lift)}_subscribe(Se){return this.getSubject().subscribe(Se)}getSubject(){const Se=this._subject;return(!Se||Se.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Se}=this;this._subject=this._connection=null,null==Se||Se.unsubscribe()}connect(){let Se=this._connection;if(!Se){Se=this._connection=new s.w0;const be=this.getSubject();Se.add(this.source.subscribe(new c.Q(be,void 0,()=>{this._teardown(),be.complete()},Je=>{this._teardown(),be.error(Je)},()=>this._teardown()))),Se.closed&&(this._connection=null,Se=s.w0.EMPTY)}return Se}refCount(){return N()(this)}}var L=m(457),O=m(9646),A=m(1135),E=m(9841),k=m(7272),w=m(9770),V=m(515),W=m(7579),j=m(9300);function $(Ge){return Ge<=0?()=>V.E:(0,M.e)((Se,be)=>{let Je=[];Se.subscribe(new c.Q(be,ct=>{Je.push(ct),Ge<Je.length&&Je.shift()},()=>{for(const ct of Je)be.next(ct);be.complete()},void 0,()=>{Je=null}))})}function ee(Ge=me){return(0,M.e)((Se,be)=>{let Je=!1;Se.subscribe(new c.Q(be,ct=>{Je=!0,be.next(ct)},()=>Je?be.complete():be.error(Ge())))})}function me(){return new v}function ce(Ge){return(0,M.e)((Se,be)=>{let Je=!1;Se.subscribe(new c.Q(be,ct=>{Je=!0,be.next(ct)},()=>{Je||be.next(Ge),be.complete()}))})}var le=m(4671),re=m(5698);function pe(Ge,Se){const be=arguments.length>=2;return Je=>Je.pipe(Ge?(0,j.h)((ct,Ot)=>Ge(ct,Ot,Je)):le.y,(0,re.q)(1),be?ce(Se):ee(()=>new v))}var y=m(4004),i=m(3900),a=m(8675),p=m(5026),u=m(262),_=m(4351),D=m(5577),I=m(8505),x=m(8746),r=m(8189),b=m(9808);class Z{constructor(Se,be){this.id=Se,this.url=be}}class P extends Z{constructor(Se,be,Je="imperative",ct=null){super(Se,be),this.navigationTrigger=Je,this.restoredState=ct}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class U extends Z{constructor(Se,be,Je){super(Se,be),this.urlAfterRedirects=Je}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ye extends Z{constructor(Se,be,Je){super(Se,be),this.reason=Je}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class xe extends Z{constructor(Se,be,Je){super(Se,be),this.error=Je}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ne extends Z{constructor(Se,be,Je,ct){super(Se,be),this.urlAfterRedirects=Je,this.state=ct}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Be extends Z{constructor(Se,be,Je,ct){super(Se,be),this.urlAfterRedirects=Je,this.state=ct}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Oe extends Z{constructor(Se,be,Je,ct,Ot){super(Se,be),this.urlAfterRedirects=Je,this.state=ct,this.shouldActivate=Ot}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class B extends Z{constructor(Se,be,Je,ct){super(Se,be),this.urlAfterRedirects=Je,this.state=ct}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Me extends Z{constructor(Se,be,Je,ct){super(Se,be),this.urlAfterRedirects=Je,this.state=ct}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class we{constructor(Se){this.route=Se}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ae{constructor(Se){this.route=Se}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class We{constructor(Se){this.snapshot=Se}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vt{constructor(Se){this.snapshot=Se}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pe{constructor(Se){this.snapshot=Se}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ve{constructor(Se){this.snapshot=Se}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class he{constructor(Se,be,Je){this.routerEvent=Se,this.position=be,this.anchor=Je}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ee="primary";class ke{constructor(Se){this.params=Se||{}}has(Se){return Object.prototype.hasOwnProperty.call(this.params,Se)}get(Se){if(this.has(Se)){const be=this.params[Se];return Array.isArray(be)?be[0]:be}return null}getAll(Se){if(this.has(Se)){const be=this.params[Se];return Array.isArray(be)?be:[be]}return[]}get keys(){return Object.keys(this.params)}}function q(Ge){return new ke(Ge)}const J="ngNavigationCancelingError";function oe(Ge){const Se=Error("NavigationCancelingError: "+Ge);return Se[J]=!0,Se}function Ue(Ge,Se,be){const Je=be.path.split("/");if(Je.length>Ge.length||"full"===be.pathMatch&&(Se.hasChildren()||Je.length<Ge.length))return null;const ct={};for(let Ot=0;Ot<Je.length;Ot++){const qt=Je[Ot],ii=Ge[Ot];if(qt.startsWith(":"))ct[qt.substring(1)]=ii;else if(qt!==ii.path)return null}return{consumed:Ge.slice(0,Je.length),posParams:ct}}function it(Ge,Se){const be=Ge?Object.keys(Ge):void 0,Je=Se?Object.keys(Se):void 0;if(!be||!Je||be.length!=Je.length)return!1;let ct;for(let Ot=0;Ot<be.length;Ot++)if(ct=be[Ot],!ft(Ge[ct],Se[ct]))return!1;return!0}function ft(Ge,Se){if(Array.isArray(Ge)&&Array.isArray(Se)){if(Ge.length!==Se.length)return!1;const be=[...Ge].sort(),Je=[...Se].sort();return be.every((ct,Ot)=>Je[Ot]===ct)}return Ge===Se}function nt(Ge){return Array.prototype.concat.apply([],Ge)}function st(Ge){return Ge.length>0?Ge[Ge.length-1]:null}function Bt(Ge,Se){for(const be in Ge)Ge.hasOwnProperty(be)&&Se(Ge[be],be)}function Pt(Ge){return(0,e.CqO)(Ge)?Ge:(0,e.QGY)(Ge)?(0,L.D)(Promise.resolve(Ge)):(0,O.of)(Ge)}const Oi={exact:function si(Ge,Se,be){if(!Nt(Ge.segments,Se.segments)||!Y(Ge.segments,Se.segments,be)||Ge.numberOfChildren!==Se.numberOfChildren)return!1;for(const Je in Se.children)if(!Ge.children[Je]||!si(Ge.children[Je],Se.children[Je],be))return!1;return!0},subset:ze},jt={exact:function(Ge,Se){return it(Ge,Se)},subset:function(Ge,Se){return Object.keys(Se).length<=Object.keys(Ge).length&&Object.keys(Se).every(be=>ft(Ge[be],Se[be]))},ignored:()=>!0};function ti(Ge,Se,be){return Oi[be.paths](Ge.root,Se.root,be.matrixParams)&&jt[be.queryParams](Ge.queryParams,Se.queryParams)&&!("exact"===be.fragment&&Ge.fragment!==Se.fragment)}function ze(Ge,Se,be){return Te(Ge,Se,Se.segments,be)}function Te(Ge,Se,be,Je){if(Ge.segments.length>be.length){const ct=Ge.segments.slice(0,be.length);return!(!Nt(ct,be)||Se.hasChildren()||!Y(ct,be,Je))}if(Ge.segments.length===be.length){if(!Nt(Ge.segments,be)||!Y(Ge.segments,be,Je))return!1;for(const ct in Se.children)if(!Ge.children[ct]||!ze(Ge.children[ct],Se.children[ct],Je))return!1;return!0}{const ct=be.slice(0,Ge.segments.length),Ot=be.slice(Ge.segments.length);return!!(Nt(Ge.segments,ct)&&Y(Ge.segments,ct,Je)&&Ge.children[Ee])&&Te(Ge.children[Ee],Se,Ot,Je)}}function Y(Ge,Se,be){return Se.every((Je,ct)=>jt[be](Ge[ct].parameters,Je.parameters))}class ge{constructor(Se,be,Je){this.root=Se,this.queryParams=be,this.fragment=Je}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=q(this.queryParams)),this._queryParamMap}toString(){return Fe.serialize(this)}}class Ae{constructor(Se,be){this.segments=Se,this.children=be,this.parent=null,Bt(be,(Je,ct)=>Je.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rt(this)}}class et{constructor(Se,be){this.path=Se,this.parameters=be}get parameterMap(){return this._parameterMap||(this._parameterMap=q(this.parameters)),this._parameterMap}toString(){return ci(this)}}function Nt(Ge,Se){return Ge.length===Se.length&&Ge.every((be,Je)=>be.path===Se[Je].path)}class lt{}class Re{parse(Se){const be=new _t(Se);return new ge(be.parseRootSegment(),be.parseQueryParams(),be.parseFragment())}serialize(Se){const be=`/${ot(Se.root,!0)}`,Je=function(Ge){const Se=Object.keys(Ge).map(be=>{const Je=Ge[be];return Array.isArray(Je)?Je.map(ct=>`${li(be)}=${li(ct)}`).join("&"):`${li(be)}=${li(Je)}`}).filter(be=>!!be);return Se.length?`?${Se.join("&")}`:""}(Se.queryParams);var Ge;return`${be}${Je}${"string"==typeof Se.fragment?`#${Ge=Se.fragment,encodeURI(Ge)}`:""}`}}const Fe=new Re;function rt(Ge){return Ge.segments.map(Se=>ci(Se)).join("/")}function ot(Ge,Se){if(!Ge.hasChildren())return rt(Ge);if(Se){const be=Ge.children[Ee]?ot(Ge.children[Ee],!1):"",Je=[];return Bt(Ge.children,(ct,Ot)=>{Ot!==Ee&&Je.push(`${Ot}:${ot(ct,!1)}`)}),Je.length>0?`${be}(${Je.join("//")})`:be}{const be=function(Ge,Se){let be=[];return Bt(Ge.children,(Je,ct)=>{ct===Ee&&(be=be.concat(Se(Je,ct)))}),Bt(Ge.children,(Je,ct)=>{ct!==Ee&&(be=be.concat(Se(Je,ct)))}),be}(Ge,(Je,ct)=>ct===Ee?[ot(Ge.children[Ee],!1)]:[`${ct}:${ot(Je,!1)}`]);return 1===Object.keys(Ge.children).length&&null!=Ge.children[Ee]?`${rt(Ge)}/${be[0]}`:`${rt(Ge)}/(${be.join("//")})`}}function At(Ge){return encodeURIComponent(Ge).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function li(Ge){return At(Ge).replace(/%3B/gi,";")}function Ft(Ge){return At(Ge).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Si(Ge){return decodeURIComponent(Ge)}function ai(Ge){return Si(Ge.replace(/\+/g,"%20"))}function ci(Ge){return`${Ft(Ge.path)}${function(Ge){return Object.keys(Ge).map(Se=>`;${Ft(Se)}=${Ft(Ge[Se])}`).join("")}(Ge.parameters)}`}const Di=/^[^\/()?;=#]+/;function Xi(Ge){const Se=Ge.match(Di);return Se?Se[0]:""}const Ke=/^[^=?&#]+/,ve=/^[^&#]+/;class _t{constructor(Se){this.url=Se,this.remaining=Se}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ae([],{}):new Ae([],this.parseChildren())}parseQueryParams(){const Se={};if(this.consumeOptional("?"))do{this.parseQueryParam(Se)}while(this.consumeOptional("&"));return Se}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Se=[];for(this.peekStartsWith("(")||Se.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Se.push(this.parseSegment());let be={};this.peekStartsWith("/(")&&(this.capture("/"),be=this.parseParens(!0));let Je={};return this.peekStartsWith("(")&&(Je=this.parseParens(!1)),(Se.length>0||Object.keys(be).length>0)&&(Je[Ee]=new Ae(Se,be)),Je}parseSegment(){const Se=Xi(this.remaining);if(""===Se&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(Se),new et(Si(Se),this.parseMatrixParams())}parseMatrixParams(){const Se={};for(;this.consumeOptional(";");)this.parseParam(Se);return Se}parseParam(Se){const be=Xi(this.remaining);if(!be)return;this.capture(be);let Je="";if(this.consumeOptional("=")){const ct=Xi(this.remaining);ct&&(Je=ct,this.capture(Je))}Se[Si(be)]=Si(Je)}parseQueryParam(Se){const be=function(Ge){const Se=Ge.match(Ke);return Se?Se[0]:""}(this.remaining);if(!be)return;this.capture(be);let Je="";if(this.consumeOptional("=")){const qt=function(Ge){const Se=Ge.match(ve);return Se?Se[0]:""}(this.remaining);qt&&(Je=qt,this.capture(Je))}const ct=ai(be),Ot=ai(Je);if(Se.hasOwnProperty(ct)){let qt=Se[ct];Array.isArray(qt)||(qt=[qt],Se[ct]=qt),qt.push(Ot)}else Se[ct]=Ot}parseParens(Se){const be={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Je=Xi(this.remaining),ct=this.remaining[Je.length];if("/"!==ct&&")"!==ct&&";"!==ct)throw new Error(`Cannot parse url '${this.url}'`);let Ot;Je.indexOf(":")>-1?(Ot=Je.substr(0,Je.indexOf(":")),this.capture(Ot),this.capture(":")):Se&&(Ot=Ee);const qt=this.parseChildren();be[Ot]=1===Object.keys(qt).length?qt[Ee]:new Ae([],qt),this.consumeOptional("//")}return be}peekStartsWith(Se){return this.remaining.startsWith(Se)}consumeOptional(Se){return!!this.peekStartsWith(Se)&&(this.remaining=this.remaining.substring(Se.length),!0)}capture(Se){if(!this.consumeOptional(Se))throw new Error(`Expected "${Se}".`)}}class ue{constructor(Se){this._root=Se}get root(){return this._root.value}parent(Se){const be=this.pathFromRoot(Se);return be.length>1?be[be.length-2]:null}children(Se){const be=$e(Se,this._root);return be?be.children.map(Je=>Je.value):[]}firstChild(Se){const be=$e(Se,this._root);return be&&be.children.length>0?be.children[0].value:null}siblings(Se){const be=St(Se,this._root);return be.length<2?[]:be[be.length-2].children.map(ct=>ct.value).filter(ct=>ct!==Se)}pathFromRoot(Se){return St(Se,this._root).map(be=>be.value)}}function $e(Ge,Se){if(Ge===Se.value)return Se;for(const be of Se.children){const Je=$e(Ge,be);if(Je)return Je}return null}function St(Ge,Se){if(Ge===Se.value)return[Se];for(const be of Se.children){const Je=St(Ge,be);if(Je.length)return Je.unshift(Se),Je}return[]}class Rt{constructor(Se,be){this.value=Se,this.children=be}toString(){return`TreeNode(${this.value})`}}function yi(Ge){const Se={};return Ge&&Ge.children.forEach(be=>Se[be.value.outlet]=be),Se}class Ri extends ue{constructor(Se,be){super(Se),this.snapshot=be,Ci(this,Se)}toString(){return this.snapshot.toString()}}function Ii(Ge,Se){const be=function(Ge,Se){const qt=new Lt([],{},{},"",{},Ee,Se,null,Ge.root,-1,{});return new ui("",new Rt(qt,[]))}(Ge,Se),Je=new A.X([new et("",{})]),ct=new A.X({}),Ot=new A.X({}),qt=new A.X({}),ii=new A.X(""),Ti=new at(Je,ct,qt,ii,Ot,Ee,Se,be.root);return Ti.snapshot=be.root,new Ri(new Rt(Ti,[]),be)}class at{constructor(Se,be,Je,ct,Ot,qt,ii,Ti){this.url=Se,this.params=be,this.queryParams=Je,this.fragment=ct,this.data=Ot,this.outlet=qt,this.component=ii,this._futureSnapshot=Ti}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,y.U)(Se=>q(Se)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,y.U)(Se=>q(Se)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Qt(Ge,Se="emptyOnly"){const be=Ge.pathFromRoot;let Je=0;if("always"!==Se)for(Je=be.length-1;Je>=1;){const ct=be[Je],Ot=be[Je-1];if(ct.routeConfig&&""===ct.routeConfig.path)Je--;else{if(Ot.component)break;Je--}}return function(Ge){return Ge.reduce((Se,be)=>({params:Object.assign(Object.assign({},Se.params),be.params),data:Object.assign(Object.assign({},Se.data),be.data),resolve:Object.assign(Object.assign({},Se.resolve),be._resolvedData)}),{params:{},data:{},resolve:{}})}(be.slice(Je))}class Lt{constructor(Se,be,Je,ct,Ot,qt,ii,Ti,on,jn,xn){this.url=Se,this.params=be,this.queryParams=Je,this.fragment=ct,this.data=Ot,this.outlet=qt,this.component=ii,this.routeConfig=Ti,this._urlSegment=on,this._lastPathIndex=jn,this._resolve=xn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=q(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=q(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Je=>Je.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ui extends ue{constructor(Se,be){super(be),this.url=Se,Ci(this,be)}toString(){return Wi(this._root)}}function Ci(Ge,Se){Se.value._routerState=Ge,Se.children.forEach(be=>Ci(Ge,be))}function Wi(Ge){const Se=Ge.children.length>0?` { ${Ge.children.map(Wi).join(", ")} } `:"";return`${Ge.value}${Se}`}function $i(Ge){if(Ge.snapshot){const Se=Ge.snapshot,be=Ge._futureSnapshot;Ge.snapshot=be,it(Se.queryParams,be.queryParams)||Ge.queryParams.next(be.queryParams),Se.fragment!==be.fragment&&Ge.fragment.next(be.fragment),it(Se.params,be.params)||Ge.params.next(be.params),function(Ge,Se){if(Ge.length!==Se.length)return!1;for(let be=0;be<Ge.length;++be)if(!it(Ge[be],Se[be]))return!1;return!0}(Se.url,be.url)||Ge.url.next(be.url),it(Se.data,be.data)||Ge.data.next(be.data)}else Ge.snapshot=Ge._futureSnapshot,Ge.data.next(Ge._futureSnapshot.data)}function An(Ge,Se){const be=it(Ge.params,Se.params)&&function(Ge,Se){return Nt(Ge,Se)&&Ge.every((be,Je)=>it(be.parameters,Se[Je].parameters))}(Ge.url,Se.url);return be&&!(!Ge.parent!=!Se.parent)&&(!Ge.parent||An(Ge.parent,Se.parent))}function pn(Ge,Se,be){if(be&&Ge.shouldReuseRoute(Se.value,be.value.snapshot)){const Je=be.value;Je._futureSnapshot=Se.value;const ct=function(Ge,Se,be){return Se.children.map(Je=>{for(const ct of be.children)if(Ge.shouldReuseRoute(Je.value,ct.value.snapshot))return pn(Ge,Je,ct);return pn(Ge,Je)})}(Ge,Se,be);return new Rt(Je,ct)}{if(Ge.shouldAttach(Se.value)){const Ot=Ge.retrieve(Se.value);if(null!==Ot){const qt=Ot.route;return qt.value._futureSnapshot=Se.value,qt.children=Se.children.map(ii=>pn(Ge,ii)),qt}}const Je=function(Ge){return new at(new A.X(Ge.url),new A.X(Ge.params),new A.X(Ge.queryParams),new A.X(Ge.fragment),new A.X(Ge.data),Ge.outlet,Ge.component,Ge)}(Se.value),ct=Se.children.map(Ot=>pn(Ge,Ot));return new Rt(Je,ct)}}function Fi(Ge){return"object"==typeof Ge&&null!=Ge&&!Ge.outlets&&!Ge.segmentPath}function sn(Ge){return"object"==typeof Ge&&null!=Ge&&Ge.outlets}function Sr(Ge,Se,be,Je,ct){let Ot={};return Je&&Bt(Je,(qt,ii)=>{Ot[ii]=Array.isArray(qt)?qt.map(Ti=>`${Ti}`):`${qt}`}),new ge(be.root===Ge?Se:ya(be.root,Ge,Se),Ot,ct)}function ya(Ge,Se,be){const Je={};return Bt(Ge.children,(ct,Ot)=>{Je[Ot]=ct===Se?be:ya(ct,Se,be)}),new Ae(Ge.segments,Je)}class qn{constructor(Se,be,Je){if(this.isAbsolute=Se,this.numberOfDoubleDots=be,this.commands=Je,Se&&Je.length>0&&Fi(Je[0]))throw new Error("Root segment cannot have matrix parameters");const ct=Je.find(sn);if(ct&&ct!==st(Je))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ba{constructor(Se,be,Je){this.segmentGroup=Se,this.processChildren=be,this.index=Je}}function ts(Ge,Se,be){if(Ge||(Ge=new Ae([],{})),0===Ge.segments.length&&Ge.hasChildren())return rr(Ge,Se,be);const Je=function(Ge,Se,be){let Je=0,ct=Se;const Ot={match:!1,pathIndex:0,commandIndex:0};for(;ct<Ge.segments.length;){if(Je>=be.length)return Ot;const qt=Ge.segments[ct],ii=be[Je];if(sn(ii))break;const Ti=`${ii}`,on=Je<be.length-1?be[Je+1]:null;if(ct>0&&void 0===Ti)break;if(Ti&&on&&"object"==typeof on&&void 0===on.outlets){if(!Ra(Ti,on,qt))return Ot;Je+=2}else{if(!Ra(Ti,{},qt))return Ot;Je++}ct++}return{match:!0,pathIndex:ct,commandIndex:Je}}(Ge,Se,be),ct=be.slice(Je.commandIndex);if(Je.match&&Je.pathIndex<Ge.segments.length){const Ot=new Ae(Ge.segments.slice(0,Je.pathIndex),{});return Ot.children[Ee]=new Ae(Ge.segments.slice(Je.pathIndex),Ge.children),rr(Ot,0,ct)}return Je.match&&0===ct.length?new Ae(Ge.segments,{}):Je.match&&!Ge.hasChildren()?la(Ge,Se,be):Je.match?rr(Ge,0,ct):la(Ge,Se,be)}function rr(Ge,Se,be){if(0===be.length)return new Ae(Ge.segments,{});{const Je=function(Ge){return sn(Ge[0])?Ge[0].outlets:{[Ee]:Ge}}(be),ct={};return Bt(Je,(Ot,qt)=>{"string"==typeof Ot&&(Ot=[Ot]),null!==Ot&&(ct[qt]=ts(Ge.children[qt],Se,Ot))}),Bt(Ge.children,(Ot,qt)=>{void 0===Je[qt]&&(ct[qt]=Ot)}),new Ae(Ge.segments,ct)}}function la(Ge,Se,be){const Je=Ge.segments.slice(0,Se);let ct=0;for(;ct<be.length;){const Ot=be[ct];if(sn(Ot)){const Ti=Ur(Ot.outlets);return new Ae(Je,Ti)}if(0===ct&&Fi(be[0])){Je.push(new et(Ge.segments[Se].path,ka(be[0]))),ct++;continue}const qt=sn(Ot)?Ot.outlets[Ee]:`${Ot}`,ii=ct<be.length-1?be[ct+1]:null;qt&&ii&&Fi(ii)?(Je.push(new et(qt,ka(ii))),ct+=2):(Je.push(new et(qt,{})),ct++)}return new Ae(Je,{})}function Ur(Ge){const Se={};return Bt(Ge,(be,Je)=>{"string"==typeof be&&(be=[be]),null!==be&&(Se[Je]=la(new Ae([],{}),0,be))}),Se}function ka(Ge){const Se={};return Bt(Ge,(be,Je)=>Se[Je]=`${be}`),Se}function Ra(Ge,Se,be){return Ge==be.path&&it(Se,be.parameters)}class Qr{constructor(Se,be,Je,ct){this.routeReuseStrategy=Se,this.futureState=be,this.currState=Je,this.forwardEvent=ct}activate(Se){const be=this.futureState._root,Je=this.currState?this.currState._root:null;this.deactivateChildRoutes(be,Je,Se),$i(this.futureState.root),this.activateChildRoutes(be,Je,Se)}deactivateChildRoutes(Se,be,Je){const ct=yi(be);Se.children.forEach(Ot=>{const qt=Ot.value.outlet;this.deactivateRoutes(Ot,ct[qt],Je),delete ct[qt]}),Bt(ct,(Ot,qt)=>{this.deactivateRouteAndItsChildren(Ot,Je)})}deactivateRoutes(Se,be,Je){const ct=Se.value,Ot=be?be.value:null;if(ct===Ot)if(ct.component){const qt=Je.getContext(ct.outlet);qt&&this.deactivateChildRoutes(Se,be,qt.children)}else this.deactivateChildRoutes(Se,be,Je);else Ot&&this.deactivateRouteAndItsChildren(be,Je)}deactivateRouteAndItsChildren(Se,be){Se.value.component&&this.routeReuseStrategy.shouldDetach(Se.value.snapshot)?this.detachAndStoreRouteSubtree(Se,be):this.deactivateRouteAndOutlet(Se,be)}detachAndStoreRouteSubtree(Se,be){const Je=be.getContext(Se.value.outlet),ct=Je&&Se.value.component?Je.children:be,Ot=yi(Se);for(const qt of Object.keys(Ot))this.deactivateRouteAndItsChildren(Ot[qt],ct);if(Je&&Je.outlet){const qt=Je.outlet.detach(),ii=Je.children.onOutletDeactivated();this.routeReuseStrategy.store(Se.value.snapshot,{componentRef:qt,route:Se,contexts:ii})}}deactivateRouteAndOutlet(Se,be){const Je=be.getContext(Se.value.outlet),ct=Je&&Se.value.component?Je.children:be,Ot=yi(Se);for(const qt of Object.keys(Ot))this.deactivateRouteAndItsChildren(Ot[qt],ct);Je&&Je.outlet&&(Je.outlet.deactivate(),Je.children.onOutletDeactivated(),Je.attachRef=null,Je.resolver=null,Je.route=null)}activateChildRoutes(Se,be,Je){const ct=yi(be);Se.children.forEach(Ot=>{this.activateRoutes(Ot,ct[Ot.value.outlet],Je),this.forwardEvent(new Ve(Ot.value.snapshot))}),Se.children.length&&this.forwardEvent(new vt(Se.value.snapshot))}activateRoutes(Se,be,Je){const ct=Se.value,Ot=be?be.value:null;if($i(ct),ct===Ot)if(ct.component){const qt=Je.getOrCreateContext(ct.outlet);this.activateChildRoutes(Se,be,qt.children)}else this.activateChildRoutes(Se,be,Je);else if(ct.component){const qt=Je.getOrCreateContext(ct.outlet);if(this.routeReuseStrategy.shouldAttach(ct.snapshot)){const ii=this.routeReuseStrategy.retrieve(ct.snapshot);this.routeReuseStrategy.store(ct.snapshot,null),qt.children.onOutletReAttached(ii.contexts),qt.attachRef=ii.componentRef,qt.route=ii.route.value,qt.outlet&&qt.outlet.attach(ii.componentRef,ii.route.value),$i(ii.route.value),this.activateChildRoutes(Se,null,qt.children)}else{const ii=function(Ge){for(let Se=Ge.parent;Se;Se=Se.parent){const be=Se.routeConfig;if(be&&be._loadedConfig)return be._loadedConfig;if(be&&be.component)return null}return null}(ct.snapshot),Ti=ii?ii.module.componentFactoryResolver:null;qt.attachRef=null,qt.route=ct,qt.resolver=Ti,qt.outlet&&qt.outlet.activateWith(ct,Ti),this.activateChildRoutes(Se,null,qt.children)}}else this.activateChildRoutes(Se,null,Je)}}class _n{constructor(Se,be){this.routes=Se,this.module=be}}function Kn(Ge){return"function"==typeof Ge}function Jr(Ge){return Ge instanceof ge}const Vr=Symbol("INITIAL_VALUE");function er(){return(0,i.w)(Ge=>(0,E.a)(Ge.map(Se=>Se.pipe((0,re.q)(1),(0,a.O)(Vr)))).pipe((0,p.R)((Se,be)=>{let Je=!1;return be.reduce((ct,Ot,qt)=>ct!==Vr?ct:(Ot===Vr&&(Je=!0),Je||!1!==Ot&&qt!==be.length-1&&!Jr(Ot)?ct:Ot),Se)},Vr),(0,j.h)(Se=>Se!==Vr),(0,y.U)(Se=>Jr(Se)?Se:!0===Se),(0,re.q)(1)))}class Na{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new hr,this.attachRef=null}}class hr{constructor(){this.contexts=new Map}onChildOutletCreated(Se,be){const Je=this.getOrCreateContext(Se);Je.outlet=be,this.contexts.set(Se,Je)}onChildOutletDestroyed(Se){const be=this.getContext(Se);be&&(be.outlet=null,be.attachRef=null)}onOutletDeactivated(){const Se=this.contexts;return this.contexts=new Map,Se}onOutletReAttached(Se){this.contexts=Se}getOrCreateContext(Se){let be=this.getContext(Se);return be||(be=new Na,this.contexts.set(Se,be)),be}getContext(Se){return this.contexts.get(Se)||null}}let ia=(()=>{class Ge{constructor(be,Je,ct,Ot,qt){this.parentContexts=be,this.location=Je,this.resolver=ct,this.changeDetector=qt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=Ot||Ee,be.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const be=this.parentContexts.getContext(this.name);be&&be.route&&(be.attachRef?this.attach(be.attachRef,be.route):this.activateWith(be.route,be.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const be=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(be.instance),be}attach(be,Je){this.activated=be,this._activatedRoute=Je,this.location.insert(be.hostView),this.attachEvents.emit(be.instance)}deactivate(){if(this.activated){const be=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(be)}}activateWith(be,Je){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=be;const qt=(Je=Je||this.resolver).resolveComponentFactory(be._futureSnapshot.routeConfig.component),ii=this.parentContexts.getOrCreateContext(this.name).children,Ti=new Sa(be,ii,this.location.injector);this.activated=this.location.createComponent(qt,this.location.length,Ti),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Ge.\u0275fac=function(be){return new(be||Ge)(e.Y36(hr),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Ge})();class Sa{constructor(Se,be,Je){this.route=Se,this.childContexts=be,this.parent=Je}get(Se,be){return Se===at?this.route:Se===hr?this.childContexts:this.parent.get(Se,be)}}let Nr=(()=>{class Ge{}return Ge.\u0275fac=function(be){return new(be||Ge)},Ge.\u0275cmp=e.Xpm({type:Ge,selectors:[["ng-component"]],decls:1,vars:0,template:function(be,Je){1&be&&e._UZ(0,"router-outlet")},directives:[ia],encapsulation:2}),Ge})();function na(Ge,Se=""){for(let be=0;be<Ge.length;be++){const Je=Ge[be];Cr(Je,is(Se,Je))}}function Cr(Ge,Se){Ge.children&&na(Ge.children,Se)}function is(Ge,Se){return Se?Ge||Se.path?Ge&&!Se.path?`${Ge}/`:!Ge&&Se.path?Se.path:`${Ge}/${Se.path}`:"":Ge}function Ga(Ge){const Se=Ge.children&&Ge.children.map(Ga),be=Se?Object.assign(Object.assign({},Ge),{children:Se}):Object.assign({},Ge);return!be.component&&(Se||be.loadChildren)&&be.outlet&&be.outlet!==Ee&&(be.component=Nr),be}function fr(Ge){return Ge.outlet||Ee}function fa(Ge,Se){const be=Ge.filter(Je=>fr(Je)===Se);return be.push(...Ge.filter(Je=>fr(Je)!==Se)),be}const ra={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function pa(Ge,Se,be){var Je;if(""===Se.path)return"full"===Se.pathMatch&&(Ge.hasChildren()||be.length>0)?Object.assign({},ra):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const Ot=(Se.matcher||Ue)(be,Ge,Se);if(!Ot)return Object.assign({},ra);const qt={};Bt(Ot.posParams,(Ti,on)=>{qt[on]=Ti.path});const ii=Ot.consumed.length>0?Object.assign(Object.assign({},qt),Ot.consumed[Ot.consumed.length-1].parameters):qt;return{matched:!0,consumedSegments:Ot.consumed,lastChild:Ot.consumed.length,parameters:ii,positionalParamSegments:null!==(Je=Ot.posParams)&&void 0!==Je?Je:{}}}function Zn(Ge,Se,be,Je,ct="corrected"){if(be.length>0&&function(Ge,Se,be){return be.some(Je=>Q(Ge,Se,Je)&&fr(Je)!==Ee)}(Ge,be,Je)){const qt=new Ae(Se,function(Ge,Se,be,Je){const ct={};ct[Ee]=Je,Je._sourceSegment=Ge,Je._segmentIndexShift=Se.length;for(const Ot of be)if(""===Ot.path&&fr(Ot)!==Ee){const qt=new Ae([],{});qt._sourceSegment=Ge,qt._segmentIndexShift=Se.length,ct[fr(Ot)]=qt}return ct}(Ge,Se,Je,new Ae(be,Ge.children)));return qt._sourceSegment=Ge,qt._segmentIndexShift=Se.length,{segmentGroup:qt,slicedSegments:[]}}if(0===be.length&&function(Ge,Se,be){return be.some(Je=>Q(Ge,Se,Je))}(Ge,be,Je)){const qt=new Ae(Ge.segments,function(Ge,Se,be,Je,ct,Ot){const qt={};for(const ii of Je)if(Q(Ge,be,ii)&&!ct[fr(ii)]){const Ti=new Ae([],{});Ti._sourceSegment=Ge,Ti._segmentIndexShift="legacy"===Ot?Ge.segments.length:Se.length,qt[fr(ii)]=Ti}return Object.assign(Object.assign({},ct),qt)}(Ge,Se,be,Je,Ge.children,ct));return qt._sourceSegment=Ge,qt._segmentIndexShift=Se.length,{segmentGroup:qt,slicedSegments:be}}const Ot=new Ae(Ge.segments,Ge.children);return Ot._sourceSegment=Ge,Ot._segmentIndexShift=Se.length,{segmentGroup:Ot,slicedSegments:be}}function Q(Ge,Se,be){return(!(Ge.hasChildren()||Se.length>0)||"full"!==be.pathMatch)&&""===be.path}function ne(Ge,Se,be,Je){return!!(fr(Ge)===Je||Je!==Ee&&Q(Se,be,Ge))&&("**"===Ge.path||pa(Se,Ge,be).matched)}function Qe(Ge,Se,be){return 0===Se.length&&!Ge.children[be]}class Yt{constructor(Se){this.segmentGroup=Se||null}}class pi{constructor(Se){this.urlTree=Se}}function xt(Ge){return new C.y(Se=>Se.error(new Yt(Ge)))}function ei(Ge){return new C.y(Se=>Se.error(new pi(Ge)))}function yt(Ge){return new C.y(Se=>Se.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Ge}'`)))}class zi{constructor(Se,be,Je,ct,Ot){this.configLoader=be,this.urlSerializer=Je,this.urlTree=ct,this.config=Ot,this.allowRedirects=!0,this.ngModule=Se.get(e.h0i)}apply(){const Se=Zn(this.urlTree.root,[],[],this.config).segmentGroup,be=new Ae(Se.segments,Se.children);return this.expandSegmentGroup(this.ngModule,this.config,be,Ee).pipe((0,y.U)(Ot=>this.createUrlTree(wn(Ot),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,u.K)(Ot=>{if(Ot instanceof pi)return this.allowRedirects=!1,this.match(Ot.urlTree);throw Ot instanceof Yt?this.noMatchError(Ot):Ot}))}match(Se){return this.expandSegmentGroup(this.ngModule,this.config,Se.root,Ee).pipe((0,y.U)(ct=>this.createUrlTree(wn(ct),Se.queryParams,Se.fragment))).pipe((0,u.K)(ct=>{throw ct instanceof Yt?this.noMatchError(ct):ct}))}noMatchError(Se){return new Error(`Cannot match any routes. URL Segment: '${Se.segmentGroup}'`)}createUrlTree(Se,be,Je){const ct=Se.segments.length>0?new Ae([],{[Ee]:Se}):Se;return new ge(ct,be,Je)}expandSegmentGroup(Se,be,Je,ct){return 0===Je.segments.length&&Je.hasChildren()?this.expandChildren(Se,be,Je).pipe((0,y.U)(Ot=>new Ae([],Ot))):this.expandSegment(Se,Je,be,Je.segments,ct,!0)}expandChildren(Se,be,Je){const ct=[];for(const Ot of Object.keys(Je.children))"primary"===Ot?ct.unshift(Ot):ct.push(Ot);return(0,L.D)(ct).pipe((0,_.b)(Ot=>{const qt=Je.children[Ot],ii=fa(be,Ot);return this.expandSegmentGroup(Se,ii,qt,Ot).pipe((0,y.U)(Ti=>({segment:Ti,outlet:Ot})))}),(0,p.R)((Ot,qt)=>(Ot[qt.outlet]=qt.segment,Ot),{}),function(Ge,Se){const be=arguments.length>=2;return Je=>Je.pipe(Ge?(0,j.h)((ct,Ot)=>Ge(ct,Ot,Je)):le.y,$(1),be?ce(Se):ee(()=>new v))}())}expandSegment(Se,be,Je,ct,Ot,qt){return(0,L.D)(Je).pipe((0,_.b)(ii=>this.expandSegmentAgainstRoute(Se,be,Je,ii,ct,Ot,qt).pipe((0,u.K)(on=>{if(on instanceof Yt)return(0,O.of)(null);throw on}))),pe(ii=>!!ii),(0,u.K)((ii,Ti)=>{if(ii instanceof v||"EmptyError"===ii.name){if(Qe(be,ct,Ot))return(0,O.of)(new Ae([],{}));throw new Yt(be)}throw ii}))}expandSegmentAgainstRoute(Se,be,Je,ct,Ot,qt,ii){return ne(ct,be,Ot,qt)?void 0===ct.redirectTo?this.matchSegmentAgainstRoute(Se,be,ct,Ot,qt):ii&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Se,be,Je,ct,Ot,qt):xt(be):xt(be)}expandSegmentAgainstRouteUsingRedirect(Se,be,Je,ct,Ot,qt){return"**"===ct.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Se,Je,ct,qt):this.expandRegularSegmentAgainstRouteUsingRedirect(Se,be,Je,ct,Ot,qt)}expandWildCardWithParamsAgainstRouteUsingRedirect(Se,be,Je,ct){const Ot=this.applyRedirectCommands([],Je.redirectTo,{});return Je.redirectTo.startsWith("/")?ei(Ot):this.lineralizeSegments(Je,Ot).pipe((0,D.z)(qt=>{const ii=new Ae(qt,{});return this.expandSegment(Se,ii,be,qt,ct,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Se,be,Je,ct,Ot,qt){const{matched:ii,consumedSegments:Ti,lastChild:on,positionalParamSegments:jn}=pa(be,ct,Ot);if(!ii)return xt(be);const xn=this.applyRedirectCommands(Ti,ct.redirectTo,jn);return ct.redirectTo.startsWith("/")?ei(xn):this.lineralizeSegments(ct,xn).pipe((0,D.z)(Xn=>this.expandSegment(Se,be,Je,Xn.concat(Ot.slice(on)),qt,!1)))}matchSegmentAgainstRoute(Se,be,Je,ct,Ot){if("**"===Je.path)return Je.loadChildren?(Je._loadedConfig?(0,O.of)(Je._loadedConfig):this.configLoader.load(Se.injector,Je)).pipe((0,y.U)(Xn=>(Je._loadedConfig=Xn,new Ae(ct,{})))):(0,O.of)(new Ae(ct,{}));const{matched:qt,consumedSegments:ii,lastChild:Ti}=pa(be,Je,ct);if(!qt)return xt(be);const on=ct.slice(Ti);return this.getChildConfig(Se,Je,ct).pipe((0,D.z)(xn=>{const Xn=xn.module,Hn=xn.routes,{segmentGroup:vo,slicedSegments:as}=Zn(be,ii,on,Hn),ja=new Ae(vo.segments,vo.children);if(0===as.length&&ja.hasChildren())return this.expandChildren(Xn,Hn,ja).pipe((0,y.U)(ss=>new Ae(ii,ss)));if(0===Hn.length&&0===as.length)return(0,O.of)(new Ae(ii,{}));const Ps=fr(Je)===Ot;return this.expandSegment(Xn,ja,Hn,as,Ps?Ee:Ot,!0).pipe((0,y.U)(ys=>new Ae(ii.concat(ys.segments),ys.children)))}))}getChildConfig(Se,be,Je){return be.children?(0,O.of)(new _n(be.children,Se)):be.loadChildren?void 0!==be._loadedConfig?(0,O.of)(be._loadedConfig):this.runCanLoadGuards(Se.injector,be,Je).pipe((0,D.z)(ct=>{return ct?this.configLoader.load(Se.injector,be).pipe((0,y.U)(Ot=>(be._loadedConfig=Ot,Ot))):(Ge=be,new C.y(Se=>Se.error(oe(`Cannot load children because the guard of the route "path: '${Ge.path}'" returned false`))));var Ge})):(0,O.of)(new _n([],Se))}runCanLoadGuards(Se,be,Je){const ct=be.canLoad;if(!ct||0===ct.length)return(0,O.of)(!0);const Ot=ct.map(qt=>{const ii=Se.get(qt);let Ti;if((Ge=ii)&&Kn(Ge.canLoad))Ti=ii.canLoad(be,Je);else{if(!Kn(ii))throw new Error("Invalid CanLoad guard");Ti=ii(be,Je)}var Ge;return Pt(Ti)});return(0,O.of)(Ot).pipe(er(),(0,I.b)(qt=>{if(!Jr(qt))return;const ii=oe(`Redirecting to "${this.urlSerializer.serialize(qt)}"`);throw ii.url=qt,ii}),(0,y.U)(qt=>!0===qt))}lineralizeSegments(Se,be){let Je=[],ct=be.root;for(;;){if(Je=Je.concat(ct.segments),0===ct.numberOfChildren)return(0,O.of)(Je);if(ct.numberOfChildren>1||!ct.children[Ee])return yt(Se.redirectTo);ct=ct.children[Ee]}}applyRedirectCommands(Se,be,Je){return this.applyRedirectCreatreUrlTree(be,this.urlSerializer.parse(be),Se,Je)}applyRedirectCreatreUrlTree(Se,be,Je,ct){const Ot=this.createSegmentGroup(Se,be.root,Je,ct);return new ge(Ot,this.createQueryParams(be.queryParams,this.urlTree.queryParams),be.fragment)}createQueryParams(Se,be){const Je={};return Bt(Se,(ct,Ot)=>{if("string"==typeof ct&&ct.startsWith(":")){const ii=ct.substring(1);Je[Ot]=be[ii]}else Je[Ot]=ct}),Je}createSegmentGroup(Se,be,Je,ct){const Ot=this.createSegments(Se,be.segments,Je,ct);let qt={};return Bt(be.children,(ii,Ti)=>{qt[Ti]=this.createSegmentGroup(Se,ii,Je,ct)}),new Ae(Ot,qt)}createSegments(Se,be,Je,ct){return be.map(Ot=>Ot.path.startsWith(":")?this.findPosParam(Se,Ot,ct):this.findOrReturn(Ot,Je))}findPosParam(Se,be,Je){const ct=Je[be.path.substring(1)];if(!ct)throw new Error(`Cannot redirect to '${Se}'. Cannot find '${be.path}'.`);return ct}findOrReturn(Se,be){let Je=0;for(const ct of be){if(ct.path===Se.path)return be.splice(Je),ct;Je++}return Se}}function wn(Ge){const Se={};for(const Je of Object.keys(Ge.children)){const Ot=wn(Ge.children[Je]);(Ot.segments.length>0||Ot.hasChildren())&&(Se[Je]=Ot)}return function(Ge){if(1===Ge.numberOfChildren&&Ge.children[Ee]){const Se=Ge.children[Ee];return new Ae(Ge.segments.concat(Se.segments),Se.children)}return Ge}(new Ae(Ge.segments,Se))}class pr{constructor(Se){this.path=Se,this.route=this.path[this.path.length-1]}}class Bn{constructor(Se,be){this.component=Se,this.route=be}}function Gn(Ge,Se,be){const Je=Ge._root;return Ya(Je,Se?Se._root:null,be,[Je.value])}function Lr(Ge,Se,be){const Je=function(Ge){if(!Ge)return null;for(let Se=Ge.parent;Se;Se=Se.parent){const be=Se.routeConfig;if(be&&be._loadedConfig)return be._loadedConfig}return null}(Se);return(Je?Je.module.injector:be).get(Ge)}function Ya(Ge,Se,be,Je,ct={canDeactivateChecks:[],canActivateChecks:[]}){const Ot=yi(Se);return Ge.children.forEach(qt=>{(function(Ge,Se,be,Je,ct={canDeactivateChecks:[],canActivateChecks:[]}){const Ot=Ge.value,qt=Se?Se.value:null,ii=be?be.getContext(Ge.value.outlet):null;if(qt&&Ot.routeConfig===qt.routeConfig){const Ti=function(Ge,Se,be){if("function"==typeof be)return be(Ge,Se);switch(be){case"pathParamsChange":return!Nt(Ge.url,Se.url);case"pathParamsOrQueryParamsChange":return!Nt(Ge.url,Se.url)||!it(Ge.queryParams,Se.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!An(Ge,Se)||!it(Ge.queryParams,Se.queryParams);default:return!An(Ge,Se)}}(qt,Ot,Ot.routeConfig.runGuardsAndResolvers);Ti?ct.canActivateChecks.push(new pr(Je)):(Ot.data=qt.data,Ot._resolvedData=qt._resolvedData),Ya(Ge,Se,Ot.component?ii?ii.children:null:be,Je,ct),Ti&&ii&&ii.outlet&&ii.outlet.isActivated&&ct.canDeactivateChecks.push(new Bn(ii.outlet.component,qt))}else qt&&fs(Se,ii,ct),ct.canActivateChecks.push(new pr(Je)),Ya(Ge,null,Ot.component?ii?ii.children:null:be,Je,ct)})(qt,Ot[qt.value.outlet],be,Je.concat([qt.value]),ct),delete Ot[qt.value.outlet]}),Bt(Ot,(qt,ii)=>fs(qt,be.getContext(ii),ct)),ct}function fs(Ge,Se,be){const Je=yi(Ge),ct=Ge.value;Bt(Je,(Ot,qt)=>{fs(Ot,ct.component?Se?Se.children.getContext(qt):null:Se,be)}),be.canDeactivateChecks.push(new Bn(ct.component&&Se&&Se.outlet&&Se.outlet.isActivated?Se.outlet.component:null,ct))}class kt{}function Kt(Ge){return new C.y(Se=>Se.error(Ge))}class fi{constructor(Se,be,Je,ct,Ot,qt){this.rootComponentType=Se,this.config=be,this.urlTree=Je,this.url=ct,this.paramsInheritanceStrategy=Ot,this.relativeLinkResolution=qt}recognize(){const Se=Zn(this.urlTree.root,[],[],this.config.filter(qt=>void 0===qt.redirectTo),this.relativeLinkResolution).segmentGroup,be=this.processSegmentGroup(this.config,Se,Ee);if(null===be)return null;const Je=new Lt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ee,this.rootComponentType,null,this.urlTree.root,-1,{}),ct=new Rt(Je,be),Ot=new ui(this.url,ct);return this.inheritParamsAndData(Ot._root),Ot}inheritParamsAndData(Se){const be=Se.value,Je=Qt(be,this.paramsInheritanceStrategy);be.params=Object.freeze(Je.params),be.data=Object.freeze(Je.data),Se.children.forEach(ct=>this.inheritParamsAndData(ct))}processSegmentGroup(Se,be,Je){return 0===be.segments.length&&be.hasChildren()?this.processChildren(Se,be):this.processSegment(Se,be,be.segments,Je)}processChildren(Se,be){const Je=[];for(const Ot of Object.keys(be.children)){const qt=be.children[Ot],ii=fa(Se,Ot),Ti=this.processSegmentGroup(ii,qt,Ot);if(null===Ti)return null;Je.push(...Ti)}const ct=Cn(Je);return ct.sort((Se,be)=>Se.value.outlet===Ee?-1:be.value.outlet===Ee?1:Se.value.outlet.localeCompare(be.value.outlet)),ct}processSegment(Se,be,Je,ct){for(const Ot of Se){const qt=this.processSegmentAgainstRoute(Ot,be,Je,ct);if(null!==qt)return qt}return Qe(be,Je,ct)?[]:null}processSegmentAgainstRoute(Se,be,Je,ct){if(Se.redirectTo||!ne(Se,be,Je,ct))return null;let Ot,qt=[],ii=[];if("**"===Se.path){const Hn=Je.length>0?st(Je).parameters:{};Ot=new Lt(Je,Hn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,It(Se),fr(Se),Se.component,Se,tt(be),Et(be)+Je.length,zt(Se))}else{const Hn=pa(be,Se,Je);if(!Hn.matched)return null;qt=Hn.consumedSegments,ii=Je.slice(Hn.lastChild),Ot=new Lt(qt,Hn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,It(Se),fr(Se),Se.component,Se,tt(be),Et(be)+qt.length,zt(Se))}const Ti=(Ge=Se).children?Ge.children:Ge.loadChildren?Ge._loadedConfig.routes:[],{segmentGroup:on,slicedSegments:jn}=Zn(be,qt,ii,Ti.filter(Hn=>void 0===Hn.redirectTo),this.relativeLinkResolution);var Ge;if(0===jn.length&&on.hasChildren()){const Hn=this.processChildren(Ti,on);return null===Hn?null:[new Rt(Ot,Hn)]}if(0===Ti.length&&0===jn.length)return[new Rt(Ot,[])];const xn=fr(Se)===ct,Xn=this.processSegment(Ti,on,jn,xn?Ee:ct);return null===Xn?null:[new Rt(Ot,Xn)]}}function en(Ge){const Se=Ge.value.routeConfig;return Se&&""===Se.path&&void 0===Se.redirectTo}function Cn(Ge){const Se=[],be=new Set;for(const Je of Ge){if(!en(Je)){Se.push(Je);continue}const ct=Se.find(Ot=>Je.value.routeConfig===Ot.value.routeConfig);void 0!==ct?(ct.children.push(...Je.children),be.add(ct)):Se.push(Je)}for(const Je of be){const ct=Cn(Je.children);Se.push(new Rt(Je.value,ct))}return Se.filter(Je=>!be.has(Je))}function tt(Ge){let Se=Ge;for(;Se._sourceSegment;)Se=Se._sourceSegment;return Se}function Et(Ge){let Se=Ge,be=Se._segmentIndexShift?Se._segmentIndexShift:0;for(;Se._sourceSegment;)Se=Se._sourceSegment,be+=Se._segmentIndexShift?Se._segmentIndexShift:0;return be-1}function It(Ge){return Ge.data||{}}function zt(Ge){return Ge.resolve||{}}function hn(Ge){return(0,i.w)(Se=>{const be=Ge(Se);return be?(0,L.D)(be).pipe((0,y.U)(()=>Se)):(0,O.of)(Se)})}class Vn extends class{shouldDetach(Se){return!1}store(Se,be){}shouldAttach(Se){return!1}retrieve(Se){return null}shouldReuseRoute(Se,be){return Se.routeConfig===be.routeConfig}}{}const Mr=new e.OlP("ROUTES");class Or{constructor(Se,be,Je,ct){this.injector=Se,this.compiler=be,this.onLoadStartListener=Je,this.onLoadEndListener=ct}load(Se,be){if(be._loader$)return be._loader$;this.onLoadStartListener&&this.onLoadStartListener(be);const ct=this.loadModuleFactory(be.loadChildren).pipe((0,y.U)(Ot=>{this.onLoadEndListener&&this.onLoadEndListener(be);const qt=Ot.create(Se);return new _n(nt(qt.injector.get(Mr,void 0,e.XFs.Self|e.XFs.Optional)).map(Ga),qt)}),(0,u.K)(Ot=>{throw be._loader$=void 0,Ot}));return be._loader$=new o(ct,()=>new W.x).pipe(N()),be._loader$}loadModuleFactory(Se){return Pt(Se()).pipe((0,D.z)(be=>be instanceof e.YKP?(0,O.of)(be):(0,L.D)(this.compiler.compileModuleAsync(be))))}}class Yn{shouldProcessUrl(Se){return!0}extract(Se){return Se}merge(Se,be){return Se}}function mr(Ge){throw Ge}function Bi(Ge,Se,be){return Se.parse("/")}function an(Ge,Se){return(0,O.of)(null)}const fn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Rn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Pn=(()=>{class Ge{constructor(be,Je,ct,Ot,qt,ii,Ti){this.rootComponentType=be,this.urlSerializer=Je,this.rootContexts=ct,this.location=Ot,this.config=Ti,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new W.x,this.errorHandler=mr,this.malformedUriErrorHandler=Bi,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:an,afterPreactivation:an},this.urlHandlingStrategy=new Yn,this.routeReuseStrategy=new Vn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=qt.get(e.h0i),this.console=qt.get(e.c2e);const xn=qt.get(e.R0b);this.isNgZoneEnabled=xn instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Ti),this.currentUrlTree=new ge(new Ae([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Or(qt,ii,Xn=>this.triggerEvent(new we(Xn)),Xn=>this.triggerEvent(new ae(Xn))),this.routerState=Ii(this.currentUrlTree,this.rootComponentType),this.transitions=new A.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var be;return null===(be=this.location.getState())||void 0===be?void 0:be.\u0275routerPageId}setupNavigations(be){const Je=this.events;return be.pipe((0,j.h)(ct=>0!==ct.id),(0,y.U)(ct=>Object.assign(Object.assign({},ct),{extractedUrl:this.urlHandlingStrategy.extract(ct.rawUrl)})),(0,i.w)(ct=>{let Ot=!1,qt=!1;return(0,O.of)(ct).pipe((0,I.b)(ii=>{this.currentNavigation={id:ii.id,initialUrl:ii.currentRawUrl,extractedUrl:ii.extractedUrl,trigger:ii.source,extras:ii.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,i.w)(ii=>{const Ti=this.browserUrlTree.toString(),on=!this.navigated||ii.extractedUrl.toString()!==Ti||Ti!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||on)&&this.urlHandlingStrategy.shouldProcessUrl(ii.rawUrl))return Xr(ii.source)&&(this.browserUrlTree=ii.extractedUrl),(0,O.of)(ii).pipe((0,i.w)(xn=>{const Xn=this.transitions.getValue();return Je.next(new P(xn.id,this.serializeUrl(xn.extractedUrl),xn.source,xn.restoredState)),Xn!==this.transitions.getValue()?V.E:Promise.resolve(xn)}),function(Ge,Se,be,Je){return(0,i.w)(ct=>function(Ge,Se,be,Je,ct){return new zi(Ge,Se,be,Je,ct).apply()}(Ge,Se,be,ct.extractedUrl,Je).pipe((0,y.U)(Ot=>Object.assign(Object.assign({},ct),{urlAfterRedirects:Ot}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,I.b)(xn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:xn.urlAfterRedirects})}),function(Ge,Se,be,Je,ct){return(0,D.z)(Ot=>function(Ge,Se,be,Je,ct="emptyOnly",Ot="legacy"){try{const qt=new fi(Ge,Se,be,Je,ct,Ot).recognize();return null===qt?Kt(new kt):(0,O.of)(qt)}catch(qt){return Kt(qt)}}(Ge,Se,Ot.urlAfterRedirects,be(Ot.urlAfterRedirects),Je,ct).pipe((0,y.U)(qt=>Object.assign(Object.assign({},Ot),{targetSnapshot:qt}))))}(this.rootComponentType,this.config,xn=>this.serializeUrl(xn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,I.b)(xn=>{if("eager"===this.urlUpdateStrategy){if(!xn.extras.skipLocationChange){const Hn=this.urlHandlingStrategy.merge(xn.urlAfterRedirects,xn.rawUrl);this.setBrowserUrl(Hn,xn)}this.browserUrlTree=xn.urlAfterRedirects}const Xn=new Ne(xn.id,this.serializeUrl(xn.extractedUrl),this.serializeUrl(xn.urlAfterRedirects),xn.targetSnapshot);Je.next(Xn)}));if(on&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Xn,extractedUrl:Hn,source:vo,restoredState:as,extras:ja}=ii,Ps=new P(Xn,this.serializeUrl(Hn),vo,as);Je.next(Ps);const Fa=Ii(Hn,this.rootComponentType).snapshot;return(0,O.of)(Object.assign(Object.assign({},ii),{targetSnapshot:Fa,urlAfterRedirects:Hn,extras:Object.assign(Object.assign({},ja),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ii.rawUrl,ii.resolve(null),V.E}),hn(ii=>{const{targetSnapshot:Ti,id:on,extractedUrl:jn,rawUrl:xn,extras:{skipLocationChange:Xn,replaceUrl:Hn}}=ii;return this.hooks.beforePreactivation(Ti,{navigationId:on,appliedUrlTree:jn,rawUrlTree:xn,skipLocationChange:!!Xn,replaceUrl:!!Hn})}),(0,I.b)(ii=>{const Ti=new Be(ii.id,this.serializeUrl(ii.extractedUrl),this.serializeUrl(ii.urlAfterRedirects),ii.targetSnapshot);this.triggerEvent(Ti)}),(0,y.U)(ii=>Object.assign(Object.assign({},ii),{guards:Gn(ii.targetSnapshot,ii.currentSnapshot,this.rootContexts)})),function(Ge,Se){return(0,D.z)(be=>{const{targetSnapshot:Je,currentSnapshot:ct,guards:{canActivateChecks:Ot,canDeactivateChecks:qt}}=be;return 0===qt.length&&0===Ot.length?(0,O.of)(Object.assign(Object.assign({},be),{guardsResult:!0})):function(Ge,Se,be,Je){return(0,L.D)(Ge).pipe((0,D.z)(ct=>function(Ge,Se,be,Je,ct){const Ot=Se&&Se.routeConfig?Se.routeConfig.canDeactivate:null;if(!Ot||0===Ot.length)return(0,O.of)(!0);const qt=Ot.map(ii=>{const Ti=Lr(ii,Se,ct);let on;if(function(Ge){return Ge&&Kn(Ge.canDeactivate)}(Ti))on=Pt(Ti.canDeactivate(Ge,Se,be,Je));else{if(!Kn(Ti))throw new Error("Invalid CanDeactivate guard");on=Pt(Ti(Ge,Se,be,Je))}return on.pipe(pe())});return(0,O.of)(qt).pipe(er())}(ct.component,ct.route,be,Se,Je)),pe(ct=>!0!==ct,!0))}(qt,Je,ct,Ge).pipe((0,D.z)(ii=>ii&&function(Ge){return"boolean"==typeof Ge}(ii)?function(Ge,Se,be,Je){return(0,L.D)(Se).pipe((0,_.b)(ct=>(0,k.z)(function(Ge,Se){return null!==Ge&&Se&&Se(new We(Ge)),(0,O.of)(!0)}(ct.route.parent,Je),function(Ge,Se){return null!==Ge&&Se&&Se(new Pe(Ge)),(0,O.of)(!0)}(ct.route,Je),function(Ge,Se,be){const Je=Se[Se.length-1],Ot=Se.slice(0,Se.length-1).reverse().map(qt=>function(Ge){const Se=Ge.routeConfig?Ge.routeConfig.canActivateChild:null;return Se&&0!==Se.length?{node:Ge,guards:Se}:null}(qt)).filter(qt=>null!==qt).map(qt=>(0,w.P)(()=>{const ii=qt.guards.map(Ti=>{const on=Lr(Ti,qt.node,be);let jn;if(function(Ge){return Ge&&Kn(Ge.canActivateChild)}(on))jn=Pt(on.canActivateChild(Je,Ge));else{if(!Kn(on))throw new Error("Invalid CanActivateChild guard");jn=Pt(on(Je,Ge))}return jn.pipe(pe())});return(0,O.of)(ii).pipe(er())}));return(0,O.of)(Ot).pipe(er())}(Ge,ct.path,be),function(Ge,Se,be){const Je=Se.routeConfig?Se.routeConfig.canActivate:null;if(!Je||0===Je.length)return(0,O.of)(!0);const ct=Je.map(Ot=>(0,w.P)(()=>{const qt=Lr(Ot,Se,be);let ii;if(function(Ge){return Ge&&Kn(Ge.canActivate)}(qt))ii=Pt(qt.canActivate(Se,Ge));else{if(!Kn(qt))throw new Error("Invalid CanActivate guard");ii=Pt(qt(Se,Ge))}return ii.pipe(pe())}));return(0,O.of)(ct).pipe(er())}(Ge,ct.route,be))),pe(ct=>!0!==ct,!0))}(Je,Ot,Ge,Se):(0,O.of)(ii)),(0,y.U)(ii=>Object.assign(Object.assign({},be),{guardsResult:ii})))})}(this.ngModule.injector,ii=>this.triggerEvent(ii)),(0,I.b)(ii=>{if(Jr(ii.guardsResult)){const on=oe(`Redirecting to "${this.serializeUrl(ii.guardsResult)}"`);throw on.url=ii.guardsResult,on}const Ti=new Oe(ii.id,this.serializeUrl(ii.extractedUrl),this.serializeUrl(ii.urlAfterRedirects),ii.targetSnapshot,!!ii.guardsResult);this.triggerEvent(Ti)}),(0,j.h)(ii=>!!ii.guardsResult||(this.restoreHistory(ii),this.cancelNavigationTransition(ii,""),!1)),hn(ii=>{if(ii.guards.canActivateChecks.length)return(0,O.of)(ii).pipe((0,I.b)(Ti=>{const on=new B(Ti.id,this.serializeUrl(Ti.extractedUrl),this.serializeUrl(Ti.urlAfterRedirects),Ti.targetSnapshot);this.triggerEvent(on)}),(0,i.w)(Ti=>{let on=!1;return(0,O.of)(Ti).pipe(function(Ge,Se){return(0,D.z)(be=>{const{targetSnapshot:Je,guards:{canActivateChecks:ct}}=be;if(!ct.length)return(0,O.of)(be);let Ot=0;return(0,L.D)(ct).pipe((0,_.b)(qt=>function(Ge,Se,be,Je){return function(Ge,Se,be,Je){const ct=Object.keys(Ge);if(0===ct.length)return(0,O.of)({});const Ot={};return(0,L.D)(ct).pipe((0,D.z)(qt=>function(Ge,Se,be,Je){const ct=Lr(Ge,Se,Je);return Pt(ct.resolve?ct.resolve(Se,be):ct(Se,be))}(Ge[qt],Se,be,Je).pipe((0,I.b)(ii=>{Ot[qt]=ii}))),$(1),(0,D.z)(()=>Object.keys(Ot).length===ct.length?(0,O.of)(Ot):V.E))}(Ge._resolve,Ge,Se,Je).pipe((0,y.U)(Ot=>(Ge._resolvedData=Ot,Ge.data=Object.assign(Object.assign({},Ge.data),Qt(Ge,be).resolve),null)))}(qt.route,Je,Ge,Se)),(0,I.b)(()=>Ot++),$(1),(0,D.z)(qt=>Ot===ct.length?(0,O.of)(be):V.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,I.b)({next:()=>on=!0,complete:()=>{on||(this.restoreHistory(Ti),this.cancelNavigationTransition(Ti,"At least one route resolver didn't emit any value."))}}))}),(0,I.b)(Ti=>{const on=new Me(Ti.id,this.serializeUrl(Ti.extractedUrl),this.serializeUrl(Ti.urlAfterRedirects),Ti.targetSnapshot);this.triggerEvent(on)}))}),hn(ii=>{const{targetSnapshot:Ti,id:on,extractedUrl:jn,rawUrl:xn,extras:{skipLocationChange:Xn,replaceUrl:Hn}}=ii;return this.hooks.afterPreactivation(Ti,{navigationId:on,appliedUrlTree:jn,rawUrlTree:xn,skipLocationChange:!!Xn,replaceUrl:!!Hn})}),(0,y.U)(ii=>{const Ti=function(Ge,Se,be){const Je=pn(Ge,Se._root,be?be._root:void 0);return new Ri(Je,Se)}(this.routeReuseStrategy,ii.targetSnapshot,ii.currentRouterState);return Object.assign(Object.assign({},ii),{targetRouterState:Ti})}),(0,I.b)(ii=>{this.currentUrlTree=ii.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ii.urlAfterRedirects,ii.rawUrl),this.routerState=ii.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ii.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ii),this.browserUrlTree=ii.urlAfterRedirects)}),((Ge,Se,be)=>(0,y.U)(Je=>(new Qr(Se,Je.targetRouterState,Je.currentRouterState,be).activate(Ge),Je)))(this.rootContexts,this.routeReuseStrategy,ii=>this.triggerEvent(ii)),(0,I.b)({next(){Ot=!0},complete(){Ot=!0}}),(0,x.x)(()=>{var ii;Ot||qt||this.cancelNavigationTransition(ct,`Navigation ID ${ct.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ii=this.currentNavigation)||void 0===ii?void 0:ii.id)===ct.id&&(this.currentNavigation=null)}),(0,u.K)(ii=>{if(qt=!0,function(Ge){return Ge&&Ge[J]}(ii)){const Ti=Jr(ii.url);Ti||(this.navigated=!0,this.restoreHistory(ct,!0));const on=new ye(ct.id,this.serializeUrl(ct.extractedUrl),ii.message);Je.next(on),Ti?setTimeout(()=>{const jn=this.urlHandlingStrategy.merge(ii.url,this.rawUrlTree),xn={skipLocationChange:ct.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Xr(ct.source)};this.scheduleNavigation(jn,"imperative",null,xn,{resolve:ct.resolve,reject:ct.reject,promise:ct.promise})},0):ct.resolve(!1)}else{this.restoreHistory(ct,!0);const Ti=new xe(ct.id,this.serializeUrl(ct.extractedUrl),ii);Je.next(Ti);try{ct.resolve(this.errorHandler(ii))}catch(on){ct.reject(on)}}return V.E}))}))}resetRootComponentType(be){this.rootComponentType=be,this.routerState.root.component=this.rootComponentType}setTransition(be){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),be))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(be=>{const Je="popstate"===be.type?"popstate":"hashchange";"popstate"===Je&&setTimeout(()=>{var ct;const Ot={replaceUrl:!0},qt=(null===(ct=be.state)||void 0===ct?void 0:ct.navigationId)?be.state:null;if(qt){const Ti=Object.assign({},qt);delete Ti.navigationId,delete Ti.\u0275routerPageId,0!==Object.keys(Ti).length&&(Ot.state=Ti)}const ii=this.parseUrl(be.url);this.scheduleNavigation(ii,Je,qt,Ot)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(be){this.events.next(be)}resetConfig(be){na(be),this.config=be.map(Ga),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(be,Je={}){const{relativeTo:ct,queryParams:Ot,fragment:qt,queryParamsHandling:ii,preserveFragment:Ti}=Je,on=ct||this.routerState.root,jn=Ti?this.currentUrlTree.fragment:qt;let xn=null;switch(ii){case"merge":xn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Ot);break;case"preserve":xn=this.currentUrlTree.queryParams;break;default:xn=Ot||null}return null!==xn&&(xn=this.removeEmptyProps(xn)),function(Ge,Se,be,Je,ct){if(0===be.length)return Sr(Se.root,Se.root,Se,Je,ct);const Ot=function(Ge){if("string"==typeof Ge[0]&&1===Ge.length&&"/"===Ge[0])return new qn(!0,0,Ge);let Se=0,be=!1;const Je=Ge.reduce((ct,Ot,qt)=>{if("object"==typeof Ot&&null!=Ot){if(Ot.outlets){const ii={};return Bt(Ot.outlets,(Ti,on)=>{ii[on]="string"==typeof Ti?Ti.split("/"):Ti}),[...ct,{outlets:ii}]}if(Ot.segmentPath)return[...ct,Ot.segmentPath]}return"string"!=typeof Ot?[...ct,Ot]:0===qt?(Ot.split("/").forEach((ii,Ti)=>{0==Ti&&"."===ii||(0==Ti&&""===ii?be=!0:".."===ii?Se++:""!=ii&&ct.push(ii))}),ct):[...ct,Ot]},[]);return new qn(be,Se,Je)}(be);if(Ot.toRoot())return Sr(Se.root,new Ae([],{}),Se,Je,ct);const qt=function(Ge,Se,be){if(Ge.isAbsolute)return new ba(Se.root,!0,0);if(-1===be.snapshot._lastPathIndex){const Ot=be.snapshot._urlSegment;return new ba(Ot,Ot===Se.root,0)}const Je=Fi(Ge.commands[0])?0:1;return function(Ge,Se,be){let Je=Ge,ct=Se,Ot=be;for(;Ot>ct;){if(Ot-=ct,Je=Je.parent,!Je)throw new Error("Invalid number of '../'");ct=Je.segments.length}return new ba(Je,!1,ct-Ot)}(be.snapshot._urlSegment,be.snapshot._lastPathIndex+Je,Ge.numberOfDoubleDots)}(Ot,Se,Ge),ii=qt.processChildren?rr(qt.segmentGroup,qt.index,Ot.commands):ts(qt.segmentGroup,qt.index,Ot.commands);return Sr(qt.segmentGroup,ii,Se,Je,ct)}(on,this.currentUrlTree,be,xn,null!=jn?jn:null)}navigateByUrl(be,Je={skipLocationChange:!1}){const ct=Jr(be)?be:this.parseUrl(be),Ot=this.urlHandlingStrategy.merge(ct,this.rawUrlTree);return this.scheduleNavigation(Ot,"imperative",null,Je)}navigate(be,Je={skipLocationChange:!1}){return function(Ge){for(let Se=0;Se<Ge.length;Se++){const be=Ge[Se];if(null==be)throw new Error(`The requested path contains ${be} segment at index ${Se}`)}}(be),this.navigateByUrl(this.createUrlTree(be,Je),Je)}serializeUrl(be){return this.urlSerializer.serialize(be)}parseUrl(be){let Je;try{Je=this.urlSerializer.parse(be)}catch(ct){Je=this.malformedUriErrorHandler(ct,this.urlSerializer,be)}return Je}isActive(be,Je){let ct;if(ct=!0===Je?Object.assign({},fn):!1===Je?Object.assign({},Rn):Je,Jr(be))return ti(this.currentUrlTree,be,ct);const Ot=this.parseUrl(be);return ti(this.currentUrlTree,Ot,ct)}removeEmptyProps(be){return Object.keys(be).reduce((Je,ct)=>{const Ot=be[ct];return null!=Ot&&(Je[ct]=Ot),Je},{})}processNavigations(){this.navigations.subscribe(be=>{this.navigated=!0,this.lastSuccessfulId=be.id,this.currentPageId=be.targetPageId,this.events.next(new U(be.id,this.serializeUrl(be.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,be.resolve(!0)},be=>{this.console.warn(`Unhandled Navigation Error: ${be}`)})}scheduleNavigation(be,Je,ct,Ot,qt){var ii,Ti,on;if(this.disposed)return Promise.resolve(!1);const jn=this.transitions.value,xn=Xr(Je)&&jn&&!Xr(jn.source),Xn=jn.rawUrl.toString()===be.toString(),Hn=jn.id===(null===(ii=this.currentNavigation)||void 0===ii?void 0:ii.id);if(xn&&Xn&&Hn)return Promise.resolve(!0);let as,ja,Ps;qt?(as=qt.resolve,ja=qt.reject,Ps=qt.promise):Ps=new Promise((ss,Ns)=>{as=ss,ja=Ns});const Fa=++this.navigationId;let ys;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ct=this.location.getState()),ys=ct&&ct.\u0275routerPageId?ct.\u0275routerPageId:Ot.replaceUrl||Ot.skipLocationChange?null!==(Ti=this.browserPageId)&&void 0!==Ti?Ti:0:(null!==(on=this.browserPageId)&&void 0!==on?on:0)+1):ys=0,this.setTransition({id:Fa,targetPageId:ys,source:Je,restoredState:ct,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:be,extras:Ot,resolve:as,reject:ja,promise:Ps,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ps.catch(ss=>Promise.reject(ss))}setBrowserUrl(be,Je){const ct=this.urlSerializer.serialize(be),Ot=Object.assign(Object.assign({},Je.extras.state),this.generateNgRouterState(Je.id,Je.targetPageId));this.location.isCurrentPathEqualTo(ct)||Je.extras.replaceUrl?this.location.replaceState(ct,"",Ot):this.location.go(ct,"",Ot)}restoreHistory(be,Je=!1){var ct,Ot;if("computed"===this.canceledNavigationResolution){const qt=this.currentPageId-be.targetPageId;"popstate"!==be.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(ct=this.currentNavigation)||void 0===ct?void 0:ct.finalUrl)||0===qt?this.currentUrlTree===(null===(Ot=this.currentNavigation)||void 0===Ot?void 0:Ot.finalUrl)&&0===qt&&(this.resetState(be),this.browserUrlTree=be.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(qt)}else"replace"===this.canceledNavigationResolution&&(Je&&this.resetState(be),this.resetUrlToCurrentUrlTree())}resetState(be){this.routerState=be.currentRouterState,this.currentUrlTree=be.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,be.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(be,Je){const ct=new ye(be.id,this.serializeUrl(be.extractedUrl),Je);this.triggerEvent(ct),be.resolve(!1)}generateNgRouterState(be,Je){return"computed"===this.canceledNavigationResolution?{navigationId:be,\u0275routerPageId:Je}:{navigationId:be}}}return Ge.\u0275fac=function(be){e.$Z()},Ge.\u0275prov=e.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})();function Xr(Ge){return"imperative"!==Ge}let ca=(()=>{class Ge{constructor(be,Je,ct,Ot,qt){this.router=be,this.route=Je,this.tabIndexAttribute=ct,this.renderer=Ot,this.el=qt,this.commands=null,this.onChanges=new W.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(be){if(null!=this.tabIndexAttribute)return;const Je=this.renderer,ct=this.el.nativeElement;null!==be?Je.setAttribute(ct,"tabindex",be):Je.removeAttribute(ct,"tabindex")}ngOnChanges(be){this.onChanges.next(this)}set routerLink(be){null!=be?(this.commands=Array.isArray(be)?be:[be],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const be={skipLocationChange:ps(this.skipLocationChange),replaceUrl:ps(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,be),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ps(this.preserveFragment)})}}return Ge.\u0275fac=function(be){return new(be||Ge)(e.Y36(Pn),e.Y36(at),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(be,Je){1&be&&e.NdJ("click",function(){return Je.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ge})(),Wn=(()=>{class Ge{constructor(be,Je,ct){this.router=be,this.route=Je,this.locationStrategy=ct,this.commands=null,this.href=null,this.onChanges=new W.x,this.subscription=be.events.subscribe(Ot=>{Ot instanceof U&&this.updateTargetUrlAndHref()})}set routerLink(be){this.commands=null!=be?Array.isArray(be)?be:[be]:null}ngOnChanges(be){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(be,Je,ct,Ot,qt){if(0!==be||Je||ct||Ot||qt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ii={skipLocationChange:ps(this.skipLocationChange),replaceUrl:ps(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ii),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ps(this.preserveFragment)})}}return Ge.\u0275fac=function(be){return new(be||Ge)(e.Y36(Pn),e.Y36(at),e.Y36(b.S$))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(be,Je){1&be&&e.NdJ("click",function(Ot){return Je.onClick(Ot.button,Ot.ctrlKey,Ot.shiftKey,Ot.altKey,Ot.metaKey)}),2&be&&e.uIk("target",Je.target)("href",Je.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ge})();function ps(Ge){return""===Ge||!!Ge}let La=(()=>{class Ge{constructor(be,Je,ct,Ot,qt,ii){this.router=be,this.element=Je,this.renderer=ct,this.cdr=Ot,this.link=qt,this.linkWithHref=ii,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new e.vpe,this.routerEventsSubscription=be.events.subscribe(Ti=>{Ti instanceof U&&this.update()})}ngAfterContentInit(){(0,O.of)(this.links.changes,this.linksWithHrefs.changes,(0,O.of)(null)).pipe((0,r.J)()).subscribe(be=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var be;null===(be=this.linkInputChangesSubscription)||void 0===be||be.unsubscribe();const Je=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(ct=>!!ct).map(ct=>ct.onChanges);this.linkInputChangesSubscription=(0,L.D)(Je).pipe((0,r.J)()).subscribe(ct=>{this.isActive!==this.isLinkActive(this.router)(ct)&&this.update()})}set routerLinkActive(be){const Je=Array.isArray(be)?be:be.split(" ");this.classes=Je.filter(ct=>!!ct)}ngOnChanges(be){this.update()}ngOnDestroy(){var be;this.routerEventsSubscription.unsubscribe(),null===(be=this.linkInputChangesSubscription)||void 0===be||be.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const be=this.hasActiveLinks();this.isActive!==be&&(this.isActive=be,this.cdr.markForCheck(),this.classes.forEach(Je=>{be?this.renderer.addClass(this.element.nativeElement,Je):this.renderer.removeClass(this.element.nativeElement,Je)}),this.isActiveChange.emit(be))})}isLinkActive(be){const Je=function(Ge){return!!Ge.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ct=>!!ct.urlTree&&be.isActive(ct.urlTree,Je)}hasActiveLinks(){const be=this.isLinkActive(this.router);return this.link&&be(this.link)||this.linkWithHref&&be(this.linkWithHref)||this.links.some(be)||this.linksWithHrefs.some(be)}}return Ge.\u0275fac=function(be){return new(be||Ge)(e.Y36(Pn),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(ca,8),e.Y36(Wn,8))},Ge.\u0275dir=e.lG2({type:Ge,selectors:[["","routerLinkActive",""]],contentQueries:function(be,Je,ct){if(1&be&&(e.Suo(ct,ca,5),e.Suo(ct,Wn,5)),2&be){let Ot;e.iGM(Ot=e.CRH())&&(Je.links=Ot),e.iGM(Ot=e.CRH())&&(Je.linksWithHrefs=Ot)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[e.TTD]}),Ge})();class qs{}class vs{preload(Se,be){return(0,O.of)(null)}}let Il=(()=>{class Ge{constructor(be,Je,ct,Ot){this.router=be,this.injector=ct,this.preloadingStrategy=Ot,this.loader=new Or(ct,Je,Ti=>be.triggerEvent(new we(Ti)),Ti=>be.triggerEvent(new ae(Ti)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,j.h)(be=>be instanceof U),(0,_.b)(()=>this.preload())).subscribe(()=>{})}preload(){const be=this.injector.get(e.h0i);return this.processRoutes(be,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(be,Je){const ct=[];for(const Ot of Je)if(Ot.loadChildren&&!Ot.canLoad&&Ot._loadedConfig){const qt=Ot._loadedConfig;ct.push(this.processRoutes(qt.module,qt.routes))}else Ot.loadChildren&&!Ot.canLoad?ct.push(this.preloadConfig(be,Ot)):Ot.children&&ct.push(this.processRoutes(be,Ot.children));return(0,L.D)(ct).pipe((0,r.J)(),(0,y.U)(Ot=>{}))}preloadConfig(be,Je){return this.preloadingStrategy.preload(Je,()=>(Je._loadedConfig?(0,O.of)(Je._loadedConfig):this.loader.load(be.injector,Je)).pipe((0,D.z)(Ot=>(Je._loadedConfig=Ot,this.processRoutes(Ot.module,Ot.routes)))))}}return Ge.\u0275fac=function(be){return new(be||Ge)(e.LFG(Pn),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(qs))},Ge.\u0275prov=e.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})(),Jo=(()=>{class Ge{constructor(be,Je,ct={}){this.router=be,this.viewportScroller=Je,this.options=ct,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ct.scrollPositionRestoration=ct.scrollPositionRestoration||"disabled",ct.anchorScrolling=ct.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(be=>{be instanceof P?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=be.navigationTrigger,this.restoredId=be.restoredState?be.restoredState.navigationId:0):be instanceof U&&(this.lastId=be.id,this.scheduleScrollEvent(be,this.router.parseUrl(be.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(be=>{be instanceof he&&(be.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(be.position):be.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(be.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(be,Je){this.router.triggerEvent(new he(be,"popstate"===this.lastSource?this.store[this.restoredId]:null,Je))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ge.\u0275fac=function(be){e.$Z()},Ge.\u0275prov=e.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})();const Cs=new e.OlP("ROUTER_CONFIGURATION"),kl=new e.OlP("ROUTER_FORROOT_GUARD"),dc=[b.Ye,{provide:lt,useClass:Re},{provide:Pn,useFactory:function(Ge,Se,be,Je,ct,Ot,qt={},ii,Ti){const on=new Pn(null,Ge,Se,be,Je,ct,nt(Ot));return ii&&(on.urlHandlingStrategy=ii),Ti&&(on.routeReuseStrategy=Ti),function(Ge,Se){Ge.errorHandler&&(Se.errorHandler=Ge.errorHandler),Ge.malformedUriErrorHandler&&(Se.malformedUriErrorHandler=Ge.malformedUriErrorHandler),Ge.onSameUrlNavigation&&(Se.onSameUrlNavigation=Ge.onSameUrlNavigation),Ge.paramsInheritanceStrategy&&(Se.paramsInheritanceStrategy=Ge.paramsInheritanceStrategy),Ge.relativeLinkResolution&&(Se.relativeLinkResolution=Ge.relativeLinkResolution),Ge.urlUpdateStrategy&&(Se.urlUpdateStrategy=Ge.urlUpdateStrategy),Ge.canceledNavigationResolution&&(Se.canceledNavigationResolution=Ge.canceledNavigationResolution)}(qt,on),qt.enableTracing&&on.events.subscribe(jn=>{var xn,Xn;null===(xn=console.group)||void 0===xn||xn.call(console,`Router Event: ${jn.constructor.name}`),console.log(jn.toString()),console.log(jn),null===(Xn=console.groupEnd)||void 0===Xn||Xn.call(console)}),on},deps:[lt,hr,b.Ye,e.zs3,e.Sil,Mr,Cs,[class{},new e.FiY],[class{},new e.FiY]]},hr,{provide:at,useFactory:function(Ge){return Ge.routerState.root},deps:[Pn]},Il,vs,class{preload(Se,be){return be().pipe((0,u.K)(()=>(0,O.of)(null)))}},{provide:Cs,useValue:{enableTracing:!1}}];function e1(){return new e.PXZ("Router",Pn)}let t1=(()=>{class Ge{constructor(be,Je){}static forRoot(be,Je){return{ngModule:Ge,providers:[dc,go(be),{provide:kl,useFactory:Xo,deps:[[Pn,new e.FiY,new e.tp0]]},{provide:Cs,useValue:Je||{}},{provide:b.S$,useFactory:Rl,deps:[b.lw,[new e.tBr(b.mr),new e.FiY],Cs]},{provide:Jo,useFactory:Po,deps:[Pn,b.EM,Cs]},{provide:qs,useExisting:Je&&Je.preloadingStrategy?Je.preloadingStrategy:vs},{provide:e.PXZ,multi:!0,useFactory:e1},[$o,{provide:e.ip1,multi:!0,useFactory:so,deps:[$o]},{provide:_o,useFactory:el,deps:[$o]},{provide:e.tb,multi:!0,useExisting:_o}]]}}static forChild(be){return{ngModule:Ge,providers:[go(be)]}}}return Ge.\u0275fac=function(be){return new(be||Ge)(e.LFG(kl,8),e.LFG(Pn,8))},Ge.\u0275mod=e.oAB({type:Ge}),Ge.\u0275inj=e.cJS({}),Ge})();function Po(Ge,Se,be){return be.scrollOffset&&Se.setOffset(be.scrollOffset),new Jo(Ge,Se,be)}function Rl(Ge,Se,be={}){return be.useHash?new b.Do(Ge,Se):new b.b0(Ge,Se)}function Xo(Ge){return"guarded"}function go(Ge){return[{provide:e.deG,multi:!0,useValue:Ge},{provide:Mr,multi:!0,useValue:Ge}]}let $o=(()=>{class Ge{constructor(be){this.injector=be,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new W.x}appInitializer(){return this.injector.get(b.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let Je=null;const ct=new Promise(ii=>Je=ii),Ot=this.injector.get(Pn),qt=this.injector.get(Cs);return"disabled"===qt.initialNavigation?(Ot.setUpLocationChangeListener(),Je(!0)):"enabled"===qt.initialNavigation||"enabledBlocking"===qt.initialNavigation?(Ot.hooks.afterPreactivation=()=>this.initNavigation?(0,O.of)(null):(this.initNavigation=!0,Je(!0),this.resultOfPreactivationDone),Ot.initialNavigation()):Je(!0),ct})}bootstrapListener(be){const Je=this.injector.get(Cs),ct=this.injector.get(Il),Ot=this.injector.get(Jo),qt=this.injector.get(Pn),ii=this.injector.get(e.z2F);be===ii.components[0]&&(("enabledNonBlocking"===Je.initialNavigation||void 0===Je.initialNavigation)&&qt.initialNavigation(),ct.setUpPreloading(),Ot.init(),qt.resetRootComponentType(ii.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Ge.\u0275fac=function(be){return new(be||Ge)(e.LFG(e.zs3))},Ge.\u0275prov=e.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})();function so(Ge){return Ge.appInitializer.bind(Ge)}function el(Ge){return Ge.bootstrapListener.bind(Ge)}const _o=new e.OlP("Router Initializer")},9444:(Ze,K,m)=>{"use strict";m.d(K,{BN:()=>Jt,uH:()=>kn});var e=m(5e3);function t(tt){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Et){return typeof Et}:function(Et){return Et&&"function"==typeof Symbol&&Et.constructor===Symbol&&Et!==Symbol.prototype?"symbol":typeof Et})(tt)}function C(tt,Et){for(var It=0;It<Et.length;It++){var zt=Et[It];zt.enumerable=zt.enumerable||!1,zt.configurable=!0,"value"in zt&&(zt.writable=!0),Object.defineProperty(tt,zt.key,zt)}}function M(tt,Et,It){return Et in tt?Object.defineProperty(tt,Et,{value:It,enumerable:!0,configurable:!0,writable:!0}):tt[Et]=It,tt}function c(tt){for(var Et=1;Et<arguments.length;Et++){var It=null!=arguments[Et]?arguments[Et]:{},zt=Object.keys(It);"function"==typeof Object.getOwnPropertySymbols&&(zt=zt.concat(Object.getOwnPropertySymbols(It).filter(function(ri){return Object.getOwnPropertyDescriptor(It,ri).enumerable}))),zt.forEach(function(ri){M(tt,ri,It[ri])})}return tt}function N(tt,Et){return function(tt){if(Array.isArray(tt))return tt}(tt)||function(tt,Et){var It=[],zt=!0,ri=!1,vi=void 0;try{for(var Ei,Mi=tt[Symbol.iterator]();!(zt=(Ei=Mi.next()).done)&&(It.push(Ei.value),!Et||It.length!==Et);zt=!0);}catch(ji){ri=!0,vi=ji}finally{try{!zt&&null!=Mi.return&&Mi.return()}finally{if(ri)throw vi}}return It}(tt,Et)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var W={},j={};try{"undefined"!=typeof window&&(W=window),"undefined"!=typeof document&&(j=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&performance}catch(tt){}var ce=(W.navigator||{}).userAgent,le=void 0===ce?"":ce,te=W,re=j,a=!!re.documentElement&&!!re.head&&"function"==typeof re.addEventListener&&"function"==typeof re.createElement,u=(~le.indexOf("MSIE")||le.indexOf("Trident/"),"___FONT_AWESOME___"),I="svg-inline--fa",ae=[1,2,3,4,5,6,7,8,9,10],We=ae.concat([11,12,13,14,15,16,17,18,19,20]),Pe={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},he=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",Pe.GROUP,Pe.SWAP_OPACITY,Pe.PRIMARY,Pe.SECONDARY].concat(ae.map(function(tt){return"".concat(tt,"x")})).concat(We.map(function(tt){return"w-".concat(tt)})),te.FontAwesomeConfig||{});re&&"function"==typeof re.querySelector&&[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(tt){var Et=N(tt,2),zt=Et[1],ri=function(tt){return""===tt||"false"!==tt&&("true"===tt||tt)}(function(tt){var Et=re.querySelector("script["+tt+"]");if(Et)return Et.getAttribute(tt)}(Et[0]));null!=ri&&(he[zt]=ri)});var oe=c({},{familyPrefix:"fa",replacementClass:I,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},he);oe.autoReplaceSvg||(oe.observeMutations=!1);var Ce=c({},oe);te.FontAwesomeConfig=Ce;var Ue=te||{};Ue[u]||(Ue[u]={}),Ue[u].styles||(Ue[u].styles={}),Ue[u].hooks||(Ue[u].hooks={}),Ue[u].shims||(Ue[u].shims=[]);var ht=Ue[u],it=[];a&&((re.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(re.readyState)||re.addEventListener("DOMContentLoaded",function tt(){re.removeEventListener("DOMContentLoaded",tt),it.map(function(Et){return Et()})}));var si,wt="pending",Bt="settled",Pt="fulfilled",Vt="rejected",Oi=function(){},jt="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,ti="undefined"==typeof setImmediate?setTimeout:setImmediate,Pi=[];function di(){for(var tt=0;tt<Pi.length;tt++)Pi[tt][0](Pi[tt][1]);Pi=[],si=!1}function ze(tt,Et){Pi.push([tt,Et]),si||(si=!0,ti(di,0))}function Y(tt){var Et=tt.owner,It=Et._state,zt=Et._data,ri=tt[It],vi=tt.then;if("function"==typeof ri){It=Pt;try{zt=ri(zt)}catch(Mi){$t(vi,Mi)}}ge(vi,zt)||(It===Pt&&Ae(vi,zt),It===Vt&&$t(vi,zt))}function ge(tt,Et){var It;try{if(tt===Et)throw new TypeError("A promises callback cannot return that same promise.");if(Et&&("function"==typeof Et||"object"===t(Et))){var zt=Et.then;if("function"==typeof zt)return zt.call(Et,function(ri){It||(It=!0,Et===ri?et(tt,ri):Ae(tt,ri))},function(ri){It||(It=!0,$t(tt,ri))}),!0}}catch(ri){return It||$t(tt,ri),!0}return!1}function Ae(tt,Et){(tt===Et||!ge(tt,Et))&&et(tt,Et)}function et(tt,Et){tt._state===wt&&(tt._state=Bt,tt._data=Et,ze(Xt,tt))}function $t(tt,Et){tt._state===wt&&(tt._state=Bt,tt._data=Et,ze(lt,tt))}function Nt(tt){tt._then=tt._then.forEach(Y)}function Xt(tt){tt._state=Pt,Nt(tt)}function lt(tt){tt._state=Vt,Nt(tt),!tt._handled&&jt&&global.process.emit("unhandledRejection",tt._data,tt)}function Re(tt){global.process.emit("rejectionHandled",tt)}function Fe(tt){if("function"!=typeof tt)throw new TypeError("Promise resolver "+tt+" is not a function");if(!(this instanceof Fe))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(tt,Et){function zt(ri){$t(Et,ri)}try{tt(function(ri){Ae(Et,ri)},zt)}catch(ri){zt(ri)}}(tt,this)}Fe.prototype={constructor:Fe,_state:wt,_then:null,_data:void 0,_handled:!1,then:function(Et,It){var zt={owner:this,then:new this.constructor(Oi),fulfilled:Et,rejected:It};return(It||Et)&&!this._handled&&(this._handled=!0,this._state===Vt&&jt&&ze(Re,this)),this._state===Pt||this._state===Vt?ze(Y,zt):this._then.push(zt),zt.then},catch:function(Et){return this.then(null,Et)}},Fe.all=function(tt){if(!Array.isArray(tt))throw new TypeError("You must pass an array to Promise.all().");return new Fe(function(Et,It){var zt=[],ri=0;function vi(ji){return ri++,function(hn){zt[ji]=hn,--ri||Et(zt)}}for(var Ei,Mi=0;Mi<tt.length;Mi++)(Ei=tt[Mi])&&"function"==typeof Ei.then?Ei.then(vi(Mi),It):zt[Mi]=Ei;ri||Et(zt)})},Fe.race=function(tt){if(!Array.isArray(tt))throw new TypeError("You must pass an array to Promise.race().");return new Fe(function(Et,It){for(var ri,zt=0;zt<tt.length;zt++)(ri=tt[zt])&&"function"==typeof ri.then?ri.then(Et,It):Et(ri)})},Fe.resolve=function(tt){return tt&&"object"===t(tt)&&tt.constructor===Fe?tt:new Fe(function(Et){Et(tt)})},Fe.reject=function(tt){return new Fe(function(Et,It){It(tt)})};var At={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Si(){for(var tt=12,Et="";tt-- >0;)Et+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Et}function Vi(tt){return"".concat(tt).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Xi(tt){return Object.keys(tt||{}).reduce(function(Et,It){return Et+"".concat(It,": ").concat(tt[It],";")},"")}function Ke(tt){return tt.size!==At.size||tt.x!==At.x||tt.y!==At.y||tt.rotate!==At.rotate||tt.flipX||tt.flipY}function mt(tt){var Et=tt.transform,zt=tt.iconWidth,ri={transform:"translate(".concat(tt.containerWidth/2," 256)")},vi="translate(".concat(32*Et.x,", ").concat(32*Et.y,") "),Mi="scale(".concat(Et.size/16*(Et.flipX?-1:1),", ").concat(Et.size/16*(Et.flipY?-1:1),") "),Ei="rotate(".concat(Et.rotate," 0 0)");return{outer:ri,inner:{transform:"".concat(vi," ").concat(Mi," ").concat(Ei)},path:{transform:"translate(".concat(zt/2*-1," -256)")}}}var qe={x:0,y:0,width:"100%",height:"100%"};function _t(tt){var Et=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return tt.attributes&&(tt.attributes.fill||Et)&&(tt.attributes.fill="black"),tt}function ue(tt){return"g"===tt.tag?tt.children:[tt]}function Ri(tt){var Et=tt.icons,It=Et.main,zt=Et.mask,ri=tt.prefix,vi=tt.iconName,Mi=tt.transform,Ei=tt.symbol,ji=tt.title,hn=tt.maskId,yn=tt.titleId,Sn=tt.extra,Vn=tt.watchable,Mr=void 0!==Vn&&Vn,Or=zt.found?zt:It,wr=Or.width,Yn=Or.height,mr="fak"===ri,Bi=mr?"":"fa-w-".concat(Math.ceil(wr/Yn*16)),an=[Ce.replacementClass,vi?"".concat(Ce.familyPrefix,"-").concat(vi):"",Bi].filter(function(Wn){return-1===Sn.classes.indexOf(Wn)}).filter(function(Wn){return""!==Wn||!!Wn}).concat(Sn.classes).join(" "),fn={children:[],attributes:c({},Sn.attributes,{"data-prefix":ri,"data-icon":vi,class:an,role:Sn.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(wr," ").concat(Yn)})},Rn=mr&&!~Sn.classes.indexOf("fa-fw")?{width:"".concat(wr/Yn*16*.0625,"em")}:{};Mr&&(fn.attributes["data-fa-i2svg"]=""),ji&&fn.children.push({tag:"title",attributes:{id:fn.attributes["aria-labelledby"]||"title-".concat(yn||Si())},children:[ji]});var Pn=c({},fn,{prefix:ri,iconName:vi,main:It,mask:zt,maskId:hn,transform:Mi,symbol:Ei,styles:c({},Rn,Sn.styles)}),Da=zt.found&&It.found?function(tt){var Et=tt.children,It=tt.attributes,zt=tt.main,ri=tt.mask,vi=tt.maskId,ji=zt.icon,yn=ri.icon,Sn=mt({transform:tt.transform,containerWidth:ri.width,iconWidth:zt.width}),Vn={tag:"rect",attributes:c({},qe,{fill:"white"})},Mr=ji.children?{children:ji.children.map(_t)}:{},Or={tag:"g",attributes:c({},Sn.inner),children:[_t(c({tag:ji.tag,attributes:c({},ji.attributes,Sn.path)},Mr))]},wr={tag:"g",attributes:c({},Sn.outer),children:[Or]},Yn="mask-".concat(vi||Si()),mr="clip-".concat(vi||Si()),Bi={tag:"mask",attributes:c({},qe,{id:Yn,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[Vn,wr]},an={tag:"defs",children:[{tag:"clipPath",attributes:{id:mr},children:ue(yn)},Bi]};return Et.push(an,{tag:"rect",attributes:c({fill:"currentColor","clip-path":"url(#".concat(mr,")"),mask:"url(#".concat(Yn,")")},qe)}),{children:Et,attributes:It}}(Pn):function(tt){var Et=tt.children,It=tt.attributes,zt=tt.main,ri=tt.transform,Mi=Xi(tt.styles);if(Mi.length>0&&(It.style=Mi),Ke(ri)){var Ei=mt({transform:ri,containerWidth:zt.width,iconWidth:zt.width});Et.push({tag:"g",attributes:c({},Ei.outer),children:[{tag:"g",attributes:c({},Ei.inner),children:[{tag:zt.icon.tag,children:zt.icon.children,attributes:c({},zt.icon.attributes,Ei.path)}]}]})}else Et.push(zt.icon);return{children:Et,attributes:It}}(Pn),ca=Da.attributes;return Pn.children=Da.children,Pn.attributes=ca,Ei?function(tt){var It=tt.iconName,zt=tt.children,vi=tt.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:c({},tt.attributes,{id:!0===vi?"".concat(tt.prefix,"-").concat(Ce.familyPrefix,"-").concat(It):vi}),children:zt}]}]}(Pn):function(tt){var Et=tt.children,It=tt.main,zt=tt.mask,ri=tt.attributes,vi=tt.styles,Mi=tt.transform;if(Ke(Mi)&&It.found&&!zt.found){var hn={x:It.width/It.height/2,y:.5};ri.style=Xi(c({},vi,{"transform-origin":"".concat(hn.x+Mi.x/16,"em ").concat(hn.y+Mi.y/16,"em")}))}return[{tag:"svg",attributes:ri,children:Et}]}(Pn)}var $i=function(Et,It,zt,ri){var ji,hn,yn,vi=Object.keys(Et),Mi=vi.length,Ei=void 0!==ri?function(Et,It){return function(zt,ri,vi,Mi){return Et.call(It,zt,ri,vi,Mi)}}(It,ri):It;for(void 0===zt?(ji=1,yn=Et[vi[0]]):(ji=0,yn=zt);ji<Mi;ji++)yn=Ei(yn,Et[hn=vi[ji]],hn,Et);return yn};function On(tt,Et){var It=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},zt=It.skipHooks,ri=void 0!==zt&&zt,vi=Object.keys(Et).reduce(function(Mi,Ei){var ji=Et[Ei];return ji.icon?Mi[ji.iconName]=ji.icon:Mi[Ei]=ji,Mi},{});"function"!=typeof ht.hooks.addPack||ri?ht.styles[tt]=c({},ht.styles[tt]||{},vi):ht.hooks.addPack(tt,vi),"fas"===tt&&On("fa",Et)}var pn=ht.styles,Nn=ht.shims,sn=function(){var Et=function(ri){return $i(pn,function(vi,Mi,Ei){return vi[Ei]=$i(Mi,ri,{}),vi},{})};Et(function(zt,ri,vi){return ri[3]&&(zt[ri[3]]=vi),zt}),Et(function(zt,ri,vi){var Mi=ri[2];return zt[vi]=vi,Mi.forEach(function(Ei){zt[Ei]=vi}),zt});var It="far"in pn;$i(Nn,function(zt,ri){var Mi=ri[1];return"far"===Mi&&!It&&(Mi="fas"),zt[ri[0]]={prefix:Mi,iconName:ri[2]},zt},{})};function Za(tt,Et,It){if(tt&&tt[Et]&&tt[Et][It])return{prefix:Et,iconName:It,icon:tt[Et][It]}}function zr(tt){var Et=tt.tag,It=tt.attributes,zt=void 0===It?{}:It,ri=tt.children,vi=void 0===ri?[]:ri;return"string"==typeof tt?Vi(tt):"<".concat(Et," ").concat(function(tt){return Object.keys(tt||{}).reduce(function(Et,It){return Et+"".concat(It,'="').concat(Vi(tt[It]),'" ')},"").trim()}(zt),">").concat(vi.map(zr).join(""),"</").concat(Et,">")}sn();function hr(tt){this.name="MissingIcon",this.message=tt||"Icon unavailable",this.stack=(new Error).stack}(hr.prototype=Object.create(Error.prototype)).constructor=hr;var ia={fill:"currentColor"},Sa={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},na=(c({},ia,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),c({},Sa,{attributeName:"opacity"}));function ra(tt){var Et=tt[0],It=tt[1],vi=N(tt.slice(4),1)[0];return{found:!0,width:Et,height:It,icon:Array.isArray(vi)?{tag:"g",attributes:{class:"".concat(Ce.familyPrefix,"-").concat(Pe.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ce.familyPrefix,"-").concat(Pe.SECONDARY),fill:"currentColor",d:vi[0]}},{tag:"path",attributes:{class:"".concat(Ce.familyPrefix,"-").concat(Pe.PRIMARY),fill:"currentColor",d:vi[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:vi}}}}c({},ia,{cx:"256",cy:"364",r:"28"}),c({},Sa,{attributeName:"r",values:"28;14;28;28;14;28;"}),c({},na,{values:"1;0;1;1;0;1;"}),c({},ia,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),c({},na,{values:"1;0;0;0;0;1;"}),c({},ia,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),c({},na,{values:"0;0;1;1;0;0;"});var yt=function(){function tt(){(function(tt,Et){if(!(tt instanceof Et))throw new TypeError("Cannot call a class as a function")})(this,tt),this.definitions={}}return function(tt,Et,It){Et&&C(tt.prototype,Et)}(tt,[{key:"add",value:function(){for(var It=this,zt=arguments.length,ri=new Array(zt),vi=0;vi<zt;vi++)ri[vi]=arguments[vi];var Mi=ri.reduce(this._pullDefinitions,{});Object.keys(Mi).forEach(function(Ei){It.definitions[Ei]=c({},It.definitions[Ei]||{},Mi[Ei]),On(Ei,Mi[Ei]),sn()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(It,zt){var ri=zt.prefix&&zt.iconName&&zt.icon?{0:zt}:zt;return Object.keys(ri).map(function(vi){var Mi=ri[vi],Ei=Mi.prefix,ji=Mi.iconName,hn=Mi.icon;It[Ei]||(It[Ei]={}),It[Ei][ji]=hn}),It}}]),tt}();function Wt(){Ce.autoAddCss&&!pr&&(function(tt){if(tt&&a){var Et=re.createElement("style");Et.setAttribute("type","text/css"),Et.innerHTML=tt;for(var It=re.head.childNodes,zt=null,ri=It.length-1;ri>-1;ri--){var vi=It[ri],Mi=(vi.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(Mi)>-1&&(zt=vi)}re.head.insertBefore(Et,zt)}}(function(){var Et=I,It=Ce.familyPrefix,zt=Ce.replacementClass,ri='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if("fa"!==It||zt!==Et){var vi=new RegExp("\\.".concat("fa","\\-"),"g"),Mi=new RegExp("\\--".concat("fa","\\-"),"g"),Ei=new RegExp("\\.".concat(Et),"g");ri=ri.replace(vi,".".concat(It,"-")).replace(Mi,"--".concat(It,"-")).replace(Ei,".".concat(zt))}return ri}()),pr=!0)}function xi(tt,Et){return Object.defineProperty(tt,"abstract",{get:Et}),Object.defineProperty(tt,"html",{get:function(){return tt.abstract.map(function(zt){return zr(zt)})}}),Object.defineProperty(tt,"node",{get:function(){if(a){var zt=re.createElement("div");return zt.innerHTML=tt.html,zt.children}}}),tt}function zi(tt){var Et=tt.prefix,It=void 0===Et?"fa":Et,zt=tt.iconName;if(zt)return Za(wn.definitions,It,zt)||Za(ht.styles,It,zt)}var tt,wn=new yt,pr=!1,Gn_transform=function(Et){return function(Et){var It={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return Et?Et.toLowerCase().split(" ").reduce(function(zt,ri){var vi=ri.toLowerCase().split("-"),Mi=vi[0],Ei=vi.slice(1).join("-");if(Mi&&"h"===Ei)return zt.flipX=!0,zt;if(Mi&&"v"===Ei)return zt.flipY=!0,zt;if(Ei=parseFloat(Ei),isNaN(Ei))return zt;switch(Mi){case"grow":zt.size=zt.size+Ei;break;case"shrink":zt.size=zt.size-Ei;break;case"left":zt.x=zt.x-Ei;break;case"right":zt.x=zt.x+Ei;break;case"up":zt.y=zt.y-Ei;break;case"down":zt.y=zt.y+Ei;break;case"rotate":zt.rotate=zt.rotate+Ei}return zt},It):It}(Et)},ma=(tt=function(tt){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},It=Et.transform,zt=void 0===It?At:It,ri=Et.symbol,vi=void 0!==ri&&ri,Mi=Et.mask,Ei=void 0===Mi?null:Mi,ji=Et.maskId,hn=void 0===ji?null:ji,yn=Et.title,Sn=void 0===yn?null:yn,Vn=Et.titleId,Mr=void 0===Vn?null:Vn,Or=Et.classes,wr=void 0===Or?[]:Or,Yn=Et.attributes,mr=void 0===Yn?{}:Yn,Bi=Et.styles,an=void 0===Bi?{}:Bi;if(tt){var fn=tt.prefix,Rn=tt.iconName,Pn=tt.icon;return xi(c({type:"icon"},tt),function(){return Wt(),Ce.autoA11y&&(Sn?mr["aria-labelledby"]="".concat(Ce.replacementClass,"-title-").concat(Mr||Si()):(mr["aria-hidden"]="true",mr.focusable="false")),Ri({icons:{main:ra(Pn),mask:Ei?ra(Ei.icon):{found:!1,width:null,height:null,icon:{}}},prefix:fn,iconName:Rn,transform:c({},At,zt),symbol:vi,title:Sn,maskId:hn,titleId:Mr,extra:{attributes:mr,styles:an,classes:wr}})})}},function(Et){var It=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},zt=(Et||{}).icon?Et:zi(Et||{}),ri=It.mask;return ri&&(ri=(ri||{}).icon?ri:zi(ri||{})),tt(zt,c({},It,{mask:ri}))}),fs=m(2313);const cr=["*"],bt=tt=>{const Et={"fa-spin":tt.spin,"fa-pulse":tt.pulse,"fa-fw":tt.fixedWidth,"fa-border":tt.border,"fa-inverse":tt.inverse,"fa-layers-counter":tt.counter,"fa-flip-horizontal":"horizontal"===tt.flip||"both"===tt.flip,"fa-flip-vertical":"vertical"===tt.flip||"both"===tt.flip,[`fa-${tt.size}`]:null!==tt.size,[`fa-rotate-${tt.rotate}`]:null!==tt.rotate,[`fa-pull-${tt.pull}`]:null!==tt.pull,[`fa-stack-${tt.stackItemSize}`]:null!=tt.stackItemSize};return Object.keys(Et).map(It=>Et[It]?It:null).filter(It=>It)};let je=(()=>{class tt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),Mt=(()=>{class tt{constructor(){this.definitions={}}addIcons(...It){for(const zt of It){zt.prefix in this.definitions||(this.definitions[zt.prefix]={}),this.definitions[zt.prefix][zt.iconName]=zt;for(const ri of zt.icon[2])"string"==typeof ri&&(this.definitions[zt.prefix][ri]=zt)}}addIconPacks(...It){for(const zt of It){const ri=Object.keys(zt).map(vi=>zt[vi]);this.addIcons(...ri)}}getIconDefinition(It,zt){return It in this.definitions&&zt in this.definitions[It]?this.definitions[It][zt]:null}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275prov=e.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"}),tt})(),kt=(()=>{class tt{constructor(){this.stackItemSize="1x"}ngOnChanges(It){if("size"in It)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275dir=e.lG2({type:tt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[e.TTD]}),tt})(),Kt=(()=>{class tt{constructor(It,zt){this.renderer=It,this.elementRef=zt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(It){"size"in It&&(null!=It.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${It.size.currentValue}`),null!=It.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${It.size.previousValue}`))}}return tt.\u0275fac=function(It){return new(It||tt)(e.Y36(e.Qsj),e.Y36(e.SBq))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[e.TTD],ngContentSelectors:cr,decls:1,vars:0,template:function(It,zt){1&It&&(e.F$t(),e.Hsn(0))},encapsulation:2}),tt})(),Jt=(()=>{class tt{constructor(It,zt,ri,vi,Mi){this.sanitizer=It,this.config=zt,this.iconLibrary=ri,this.stackItem=vi,this.classes=[],null!=Mi&&null==vi&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(It){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let zt=null;if(zt=null==this.icon?this.config.fallbackIcon:this.icon,It){const ri=this.findIconDefinition(zt);if(null!=ri){const vi=this.buildParams();this.renderIcon(ri,vi)}}}render(){this.ngOnChanges({})}findIconDefinition(It){const zt=((tt,Et)=>(tt=>void 0!==tt.prefix&&void 0!==tt.iconName)(tt)?tt:Array.isArray(tt)&&2===tt.length?{prefix:tt[0],iconName:tt[1]}:"string"==typeof tt?{prefix:Et,iconName:tt}:void 0)(It,this.config.defaultPrefix);if("icon"in zt)return zt;const ri=this.iconLibrary.getIconDefinition(zt.prefix,zt.iconName);return null!=ri?ri:((tt=>{throw new Error(`Could not find icon with iconName=${tt.iconName} and prefix=${tt.prefix} in the icon library.`)})(zt),null)}buildParams(){const It={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},zt="string"==typeof this.transform?Gn_transform(this.transform):this.transform;return{title:this.title,transform:zt,classes:[...bt(It),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(It,zt){const ri=ma(It,zt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(ri.html.join("\n"))}}return tt.\u0275fac=function(It){return new(It||tt)(e.Y36(fs.H7),e.Y36(je),e.Y36(Mt),e.Y36(kt,8),e.Y36(Kt,8))},tt.\u0275cmp=e.Xpm({type:tt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(It,zt){2&It&&(e.Ikx("innerHTML",zt.renderedIconHTML,e.oJD),e.uIk("title",zt.title))},inputs:{icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[e.TTD],decls:0,vars:0,template:function(It,zt){},encapsulation:2}),tt})(),kn=(()=>{class tt{}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275mod=e.oAB({type:tt}),tt.\u0275inj=e.cJS({}),tt})()},6642:(Ze,K,m)=>{"use strict";m.d(K,{eX:()=>Ne,sQ:()=>Oi,GW:()=>a,l4:()=>Be});var e=m(5620),t=m(6451),v=m(8306),C=m(7579),s=m(515),M=m(9646),c=m(2843),N=m(576);class L{constructor(Te,Y,ge){this.kind=Te,this.value=Y,this.error=ge,this.hasValue="N"===Te}observe(Te){return O(this,Te)}do(Te,Y,ge){const{kind:Ae,value:et,error:$t}=this;return"N"===Ae?null==Te?void 0:Te(et):"E"===Ae?null==Y?void 0:Y($t):null==ge?void 0:ge()}accept(Te,Y,ge){var Ae;return(0,N.m)(null===(Ae=Te)||void 0===Ae?void 0:Ae.next)?this.observe(Te):this.do(Te,Y,ge)}toObservable(){const{kind:Te,value:Y,error:ge}=this,Ae="N"===Te?(0,M.of)(Y):"E"===Te?(0,c._)(()=>ge):"C"===Te?s.E:0;if(!Ae)throw new TypeError(`Unexpected notification kind ${Te}`);return Ae}static createNext(Te){return new L("N",Te)}static createError(Te){return new L("E",void 0,Te)}static createComplete(){return L.completeNotification}}function O(ze,Te){var Y,ge,Ae;const{kind:et,value:$t,error:Nt}=ze;if("string"!=typeof et)throw new TypeError('Invalid notification, missing "kind"');"N"===et?null===(Y=Te.next)||void 0===Y||Y.call(Te,$t):"E"===et?null===(ge=Te.error)||void 0===ge||ge.call(Te,Nt):null===(Ae=Te.complete)||void 0===Ae||Ae.call(Te)}L.completeNotification=new L("C");var A=m(4482),E=m(5403),w=m(8421);function V(ze,Te,Y,ge){return(0,A.e)((Ae,et)=>{let $t;Te&&"function"!=typeof Te?({duration:Y,element:$t,connector:ge}=Te):$t=Te;const Nt=new Map,Xt=rt=>{Nt.forEach(rt),rt(et)},lt=rt=>Xt(ot=>ot.error(rt)),Re=new W(et,rt=>{try{const ot=ze(rt);let At=Nt.get(ot);if(!At){Nt.set(ot,At=ge?ge():new C.x);const li=function(rt,ot){const At=new v.y(li=>{Re.activeGroups++;const Ut=ot.subscribe(li);return()=>{Ut.unsubscribe(),0==--Re.activeGroups&&Re.teardownAttempted&&Re.unsubscribe()}});return At.key=rt,At}(ot,At);if(et.next(li),Y){const Ut=new E.Q(At,()=>{At.complete(),null==Ut||Ut.unsubscribe()},void 0,void 0,()=>Nt.delete(ot));Re.add((0,w.Xf)(Y(li)).subscribe(Ut))}}At.next($t?$t(rt):rt)}catch(ot){lt(ot)}},()=>Xt(rt=>rt.complete()),lt,()=>Nt.clear());Ae.subscribe(Re)})}class W extends E.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var j=m(4004);function $(ze,Te){return Te?Y=>Y.pipe($((ge,Ae)=>(0,w.Xf)(ze(ge,Ae)).pipe((0,j.U)((et,$t)=>Te(ge,et,Ae,$t))))):(0,A.e)((Y,ge)=>{let Ae=0,et=null,$t=!1;Y.subscribe(new E.Q(ge,Nt=>{et||(et=new E.Q(ge,void 0,()=>{et=null,$t&&ge.complete()}),(0,w.Xf)(ze(Nt,Ae++)).subscribe(et))},()=>{$t=!0,!et&&ge.complete()}))})}var me=m(8502),ce=m(262),le=m(9300),te=m(5577),re=m(5698),pe=m(5e3);const y={dispatch:!0,useEffectsErrorHandler:!0},i="__@ngrx/effects_create__";function a(ze,Te){const Y=ze(),ge=Object.assign(Object.assign({},y),Te);return Object.defineProperty(Y,i,{value:ge}),Y}function p(ze){return Object.getOwnPropertyNames(ze).filter(ge=>!(!ze[ge]||!ze[ge].hasOwnProperty(i))&&ze[ge][i].hasOwnProperty("dispatch")).map(ge=>Object.assign({propertyName:ge},ze[ge][i]))}function u(ze){return Object.getPrototypeOf(ze)}const _="__@ngrx/effects__";function I(ze){return(0,e.qC)(b,u)(ze)}function b(ze){return function(ze){return ze.constructor.hasOwnProperty(_)}(ze)?ze.constructor[_]:[]}function U(ze,Te,Y){const ge=u(ze).constructor.name,Ae=function(ze){return[I,p].reduce((Y,ge)=>Y.concat(ge(ze)),[])}(ze).map(({propertyName:et,dispatch:$t,useEffectsErrorHandler:Nt})=>{const Xt="function"==typeof ze[et]?ze[et]():ze[et],lt=Nt?Y(Xt,Te):Xt;return!1===$t?lt.pipe((0,me.l)()):lt.pipe((0,A.e)((ze,Te)=>{ze.subscribe(new E.Q(Te,Y=>{Te.next(L.createNext(Y))},()=>{Te.next(L.createComplete()),Te.complete()},Y=>{Te.next(L.createError(Y)),Te.complete()}))})).pipe((0,j.U)(Fe=>({effect:ze[et],notification:Fe,propertyName:et,sourceName:ge,sourceInstance:ze})))});return(0,t.T)(...Ae)}function xe(ze,Te,Y=10){return ze.pipe((0,ce.K)(ge=>(Te&&Te.handleError(ge),Y<=1?ze:xe(ze,Te,Y-1))))}let Ne=(()=>{class ze extends v.y{constructor(Y){super(),Y&&(this.source=Y)}lift(Y){const ge=new ze;return ge.source=this,ge.operator=Y,ge}}return ze.\u0275fac=function(Y){return new(Y||ze)(pe.LFG(e.Y$))},ze.\u0275prov=pe.Yz7({token:ze,factory:ze.\u0275fac}),ze})();function Be(...ze){return(0,le.h)(Te=>ze.some(Y=>"string"==typeof Y?Y===Te.type:Y.type===Te.type))}function he(ze){return Ee(ze,"ngrxOnInitEffects")}function Ee(ze,Te){return ze&&Te in ze&&"function"==typeof ze[Te]}const ke=new pe.OlP("@ngrx/effects Internal Root Guard"),q=new pe.OlP("@ngrx/effects User Provided Effects"),J=new pe.OlP("@ngrx/effects Internal Root Effects"),oe=new pe.OlP("@ngrx/effects Root Effects"),Ce=new pe.OlP("@ngrx/effects Internal Feature Effects"),Ue=new pe.OlP("@ngrx/effects Feature Effects"),ht=new pe.OlP("@ngrx/effects Effects Error Handler");let it=(()=>{class ze extends C.x{constructor(Y,ge){super(),this.errorHandler=Y,this.effectsErrorHandler=ge}addEffects(Y){this.next(Y)}toActions(){return this.pipe(V(u),(0,te.z)(Y=>Y.pipe(V(ft))),(0,te.z)(Y=>{const ge=Y.pipe($(et=>function(ze,Te){return Y=>{const ge=U(Y,ze,Te);return function(ze){return Ee(ze,"ngrxOnRunEffects")}(Y)?Y.ngrxOnRunEffects(ge):ge}}(this.errorHandler,this.effectsErrorHandler)(et)),(0,j.U)(et=>(function(ze,Te){if("N"===ze.notification.kind){const Y=ze.notification.value;!function(ze){return"function"!=typeof ze&&ze&&ze.type&&"string"==typeof ze.type}(Y)&&Te.handleError(new Error(`Effect ${function({propertyName:ze,sourceInstance:Te,sourceName:Y}){const ge="function"==typeof Te[ze];return`"${Y}.${String(ze)}${ge?"()":""}"`}(ze)} dispatched an invalid action: ${function(ze){try{return JSON.stringify(ze)}catch(Te){return ze}}(Y)}`))}}(et,this.errorHandler),et.notification)),(0,le.h)(et=>"N"===et.kind&&null!=et.value),(0,A.e)((ze,Te)=>{ze.subscribe(new E.Q(Te,Y=>O(Y,Te)))})),Ae=Y.pipe((0,re.q)(1),(0,le.h)(he),(0,j.U)(et=>et.ngrxOnInitEffects()));return(0,t.T)(ge,Ae)}))}}return ze.\u0275fac=function(Y){return new(Y||ze)(pe.LFG(pe.qLn),pe.LFG(ht))},ze.\u0275prov=pe.Yz7({token:ze,factory:ze.\u0275fac}),ze})();function ft(ze){return function(ze){return Ee(ze,"ngrxOnIdentifyEffects")}(ze)?ze.ngrxOnIdentifyEffects():""}let st=(()=>{class ze{constructor(Y,ge){this.effectSources=Y,this.store=ge,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return ze.\u0275fac=function(Y){return new(Y||ze)(pe.LFG(it),pe.LFG(e.yh))},ze.\u0275prov=pe.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const wt="@ngrx/effects/init";(0,e.PH)(wt);let Pt=(()=>{class ze{constructor(Y,ge,Ae,et,$t,Nt,Xt){this.sources=Y,ge.start(),et.forEach(lt=>Y.addEffects(lt)),Ae.dispatch({type:wt})}addEffects(Y){this.sources.addEffects(Y)}}return ze.\u0275fac=function(Y){return new(Y||ze)(pe.LFG(it),pe.LFG(st),pe.LFG(e.yh),pe.LFG(oe),pe.LFG(e.cr,8),pe.LFG(e.CK,8),pe.LFG(ke,8))},ze.\u0275mod=pe.oAB({type:ze}),ze.\u0275inj=pe.cJS({}),ze})(),Vt=(()=>{class ze{constructor(Y,ge,Ae,et){ge.forEach($t=>$t.forEach(Nt=>Y.addEffects(Nt)))}}return ze.\u0275fac=function(Y){return new(Y||ze)(pe.LFG(Pt),pe.LFG(Ue),pe.LFG(e.cr,8),pe.LFG(e.CK,8))},ze.\u0275mod=pe.oAB({type:ze}),ze.\u0275inj=pe.cJS({}),ze})(),Oi=(()=>{class ze{static forFeature(Y=[]){return{ngModule:Vt,providers:[Y,{provide:Ce,multi:!0,useValue:Y},{provide:q,multi:!0,useValue:[]},{provide:Ue,multi:!0,useFactory:jt,deps:[pe.zs3,Ce,q]}]}}static forRoot(Y=[]){return{ngModule:Pt,providers:[{provide:ht,useValue:xe},st,it,Ne,Y,{provide:J,useValue:[Y]},{provide:ke,useFactory:Pi,deps:[[st,new pe.FiY,new pe.tp0],[J,new pe.PiD]]},{provide:q,multi:!0,useValue:[]},{provide:oe,useFactory:jt,deps:[pe.zs3,J,q]}]}}}return ze.\u0275fac=function(Y){return new(Y||ze)},ze.\u0275mod=pe.oAB({type:ze}),ze.\u0275inj=pe.cJS({}),ze})();function jt(ze,Te,Y){const ge=[];for(const Ae of Te)ge.push(...Ae);for(const Ae of Y)ge.push(...Ae);return function(ze,Te){return Te.map(Y=>ze.get(Y))}(ze,ge)}function Pi(ze,Te){if((1!==Te.length||0!==Te[0].length)&&ze)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},9565:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5e3),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5620),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8306),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6451),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(233),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(4707),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3099),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4351),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(2722),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(5684),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(5363),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1365),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5026);class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(Ze){const K={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},m="function"==typeof Ze?Ze():Ze,v=Object.assign({},K,{features:m.features||!!m.logOnly&&{pause:!0,export:!0,test:!0}||K.features},m);if(v.maxAge&&v.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${v.maxAge}`);return v}const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(K,m){if(this.action=K,this.timestamp=m,this.type=PERFORM_ACTION,void 0===K.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(K){this.timestamp=K,this.type=RESET}}class Rollback{constructor(K){this.timestamp=K,this.type=ROLLBACK}}class Commit{constructor(K){this.timestamp=K,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(K){this.id=K,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(K,m,e=!0){this.start=K,this.end=m,this.active=e,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(K){this.index=K,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(K){this.actionId=K,this.type=JUMP_TO_ACTION}}class ImportState{constructor(K){this.nextLiftedState=K,this.type=IMPORT_STATE}}class LockChanges{constructor(K){this.status=K,this.type=LOCK_CHANGES}}class PauseRecording{constructor(K){this.status=K,this.type=PAUSE_RECORDING}}function difference(Ze,K){return Ze.filter(m=>K.indexOf(m)<0)}function unliftState(Ze){const{computedStates:K,currentStateIndex:m}=Ze;if(m>=K.length){const{state:t}=K[K.length-1];return t}const{state:e}=K[m];return e}function unliftAction(Ze){return Ze.actionsById[Ze.nextActionId-1]}function liftAction(Ze){return new PerformAction(Ze,+Date.now())}function sanitizeActions(Ze,K){return Object.keys(K).reduce((m,e)=>{const t=Number(e);return m[t]=sanitizeAction(Ze,K[t],t),m},{})}function sanitizeAction(Ze,K,m){return Object.assign(Object.assign({},K),{action:Ze(K.action,m)})}function sanitizeStates(Ze,K){return K.map((m,e)=>({state:sanitizeState(Ze,m.state,e),error:m.error}))}function sanitizeState(Ze,K,m){return Ze(K,m)}function shouldFilterActions(Ze){return Ze.predicate||Ze.actionsSafelist||Ze.actionsBlocklist}function filterLiftedState(Ze,K,m,e){const t=[],v={},C=[];return Ze.stagedActionIds.forEach((s,M)=>{const c=Ze.actionsById[s];!c||M&&isActionFiltered(Ze.computedStates[M],c,K,m,e)||(v[s]=c,t.push(s),C.push(Ze.computedStates[M]))}),Object.assign(Object.assign({},Ze),{stagedActionIds:t,actionsById:v,computedStates:C})}function isActionFiltered(Ze,K,m,e,t){const v=m&&!m(Ze,K.action),C=e&&!K.action.type.match(e.map(M=>escapeRegExp(M)).join("|")),s=t&&K.action.type.match(t.map(M=>escapeRegExp(M)).join("|"));return v||C||s}function escapeRegExp(Ze){return Ze.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(Ze,K,m,e,t){if(e)return{state:m,error:"Interrupted by an error up the chain"};let C,v=m;try{v=Ze(m,K)}catch(s){C=s.toString(),t.handleError(s)}return{state:v,error:C}}function recomputeStates(Ze,K,m,e,t,v,C,s,M){if(K>=Ze.length&&Ze.length===v.length)return Ze;const c=Ze.slice(0,K),N=v.length-(M?1:0);for(let o=K;o<N;o++){const L=v[o],O=t[L].action,A=c[o-1],E=A?A.state:e,k=A?A.error:void 0,V=C.indexOf(L)>-1?A:computeNextEntry(m,O,E,k,s);c.push(V)}return M&&c.push(Ze[Ze.length-1]),c}function liftInitialState(Ze,K){return{monitorState:K(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:Ze,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(Ze,K,m,e,t={}){return v=>(C,s)=>{let{monitorState:M,actionsById:c,nextActionId:N,stagedActionIds:o,skippedActionIds:L,committedState:O,currentStateIndex:A,computedStates:E,isLocked:k,isPaused:w}=C||K;function V($){let ee=$,me=o.slice(1,ee+1);for(let ce=0;ce<me.length;ce++){if(E[ce+1].error){ee=ce,me=o.slice(1,ee+1);break}delete c[me[ce]]}L=L.filter(ce=>-1===me.indexOf(ce)),o=[0,...o.slice(ee+1)],O=E[ee].state,E=E.slice(ee),A=A>ee?A-ee:0}function W(){c={0:liftAction(INIT_ACTION)},N=1,o=[0],L=[],O=E[A].state,A=0,E=[]}C||(c=Object.create(c));let j=0;switch(s.type){case LOCK_CHANGES:k=s.status,j=1/0;break;case PAUSE_RECORDING:w=s.status,w?(o=[...o,N],c[N]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),N++,j=o.length-1,E=E.concat(E[E.length-1]),A===o.length-2&&A++,j=1/0):W();break;case RESET:c={0:liftAction(INIT_ACTION)},N=1,o=[0],L=[],O=Ze,A=0,E=[];break;case COMMIT:W();break;case ROLLBACK:c={0:liftAction(INIT_ACTION)},N=1,o=[0],L=[],A=0,E=[];break;case TOGGLE_ACTION:{const{id:$}=s;L=-1===L.indexOf($)?[$,...L]:L.filter(me=>me!==$),j=o.indexOf($);break}case SET_ACTIONS_ACTIVE:{const{start:$,end:ee,active:me}=s,ce=[];for(let le=$;le<ee;le++)ce.push(le);L=me?difference(L,ce):[...L,...ce],j=o.indexOf($);break}case JUMP_TO_STATE:A=s.index,j=1/0;break;case JUMP_TO_ACTION:{const $=o.indexOf(s.actionId);-1!==$&&(A=$),j=1/0;break}case SWEEP:o=difference(o,L),L=[],A=Math.min(A,o.length-1);break;case PERFORM_ACTION:{if(k)return C||K;if(w||C&&isActionFiltered(C.computedStates[A],s,t.predicate,t.actionsSafelist,t.actionsBlocklist)){const ee=E[E.length-1];E=[...E.slice(0,-1),computeNextEntry(v,s.action,ee.state,ee.error,m)],j=1/0;break}t.maxAge&&o.length===t.maxAge&&V(1),A===o.length-1&&A++;const $=N++;c[$]=s,o=[...o,$],j=o.length-1;break}case IMPORT_STATE:({monitorState:M,actionsById:c,nextActionId:N,stagedActionIds:o,skippedActionIds:L,committedState:O,currentStateIndex:A,computedStates:E,isLocked:k,isPaused:w}=s.nextLiftedState);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg:j=0,t.maxAge&&o.length>t.maxAge&&(E=recomputeStates(E,j,v,O,c,o,L,m,w),V(o.length-t.maxAge),j=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(E.filter(ee=>ee.error).length>0)j=0,t.maxAge&&o.length>t.maxAge&&(E=recomputeStates(E,j,v,O,c,o,L,m,w),V(o.length-t.maxAge),j=1/0);else{if(!w&&!k){A===o.length-1&&A++;const ee=N++;c[ee]=new PerformAction(s,+Date.now()),o=[...o,ee],j=o.length-1,E=recomputeStates(E,j,v,O,c,o,L,m,w)}E=E.map(ee=>Object.assign(Object.assign({},ee),{state:v(ee.state,RECOMPUTE_ACTION)})),A=o.length-1,t.maxAge&&o.length>t.maxAge&&V(o.length-t.maxAge),j=1/0}break;default:j=1/0}return E=recomputeStates(E,j,v,O,c,o,L,m,w),M=e(M,s),{monitorState:M,actionsById:c,nextActionId:N,stagedActionIds:o,skippedActionIds:L,committedState:O,currentStateIndex:A,computedStates:E,isLocked:k,isPaused:w}}}let DevtoolsDispatcher=(()=>{class Ze extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return Ze.\u0275fac=function(){let K;return function(e){return(K||(K=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(Ze)))(e||Ze)}}(),Ze.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Redux Devtools Extension");let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(Ze,K,m){this.config=K,this.dispatcher=m,this.devtoolsExtension=Ze,this.createActionStreams()}notify(Ze,K){if(this.devtoolsExtension)if(Ze.type===PERFORM_ACTION){if(K.isLocked||K.isPaused)return;const m=unliftState(K);if(shouldFilterActions(this.config)&&isActionFiltered(m,Ze,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const e=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,m,K.currentStateIndex):m,t=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,Ze,K.nextActionId):Ze;this.sendToReduxDevtools(()=>this.extensionConnection.send(t,e))}else{const m=Object.assign(Object.assign({},K),{stagedActionIds:K.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,K.actionsById):K.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,K.computedStates):K.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,m,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(Ze=>{const K=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=K,K.init(),K.subscribe(m=>Ze.next(m)),K.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const Ze=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),K=Ze.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.START)),m=Ze.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.STOP)),e=Ze.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(s=>this.unwrapAction(s.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(s=>s.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(M=>M.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.V)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.b)(1e3),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(()=>s),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(s)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(s))),v=Ze.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(s=>this.unwrapAction(s.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),C=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m));this.start$=K.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(m)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>v)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>C))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(Ze){var K;const m={name:Ze.name,features:Ze.features,serialize:Ze.serialize,autoPause:null!==(K=Ze.autoPause)&&void 0!==K&&K};return!1!==Ze.maxAge&&(m.maxAge=Ze.maxAge),m}sendToReduxDevtools(Ze){try{Ze()}catch(K){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",K)}}}return DevtoolsExtension.\u0275fac=function(K){return new(K||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})(),StoreDevtools=(()=>{class Ze{constructor(m,e,t,v,C,s,M,c){const N=liftInitialState(M,c.monitor),o=liftReducerWith(M,N,s,c.monitor,c),L=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(e.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),v.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),m,v.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),O=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(o)),A=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),E=L.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(O),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:W},[j,$])=>{let ee=$(W,j);return j.type!==PERFORM_ACTION&&shouldFilterActions(c)&&(ee=filterLiftedState(ee,c.predicate,c.actionsSafelist,c.actionsBlocklist)),v.notify(j,ee),{state:ee,action:j}},{state:N,action:null})).subscribe(({state:W,action:j})=>{A.next(W),j.type===PERFORM_ACTION&&C.next(j.action)}),k=v.start$.subscribe(()=>{this.refresh()}),w=A.asObservable(),V=w.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=k,this.stateSubscription=E,this.dispatcher=m,this.liftedState=w,this.state=V}dispatch(m){this.dispatcher.next(m)}next(m){this.dispatcher.next(m)}error(m){}complete(){}performAction(m){this.dispatch(new PerformAction(m,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(m){this.dispatch(new ToggleAction(m))}jumpToAction(m){this.dispatch(new JumpToAction(m))}jumpToState(m){this.dispatch(new JumpToState(m))}importState(m){this.dispatch(new ImportState(m))}lockChanges(m){this.dispatch(new LockChanges(m))}pauseRecording(m){this.dispatch(new PauseRecording(m))}}return Ze.\u0275fac=function(m){return new(m||Ze)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.n$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y$),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_0__.qLn),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.Y6),_angular_core__WEBPACK_IMPORTED_MODULE_0__.LFG(STORE_DEVTOOLS_CONFIG))},Ze.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ze,factory:Ze.\u0275fac}),Ze})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.OlP("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(Ze,K){return Boolean(Ze)||K.monitor!==noMonitor}function createReduxDevtoolsExtension(){const Ze="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[Ze]?window[Ze]:null}function createStateObservable(Ze){return Ze.state}let StoreDevtoolsModule=(()=>{class Ze{static instrument(m={}){return{ngModule:Ze,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:m},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.FR,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.mK,useExisting:DevtoolsDispatcher}]}}}return Ze.\u0275fac=function(m){return new(m||Ze)},Ze.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:Ze}),Ze.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),Ze})()},5620:(Ze,K,m)=>{"use strict";m.d(K,{UO:()=>$,qg:()=>j,Y6:()=>le,mK:()=>we,n$:()=>Me,Y$:()=>Pe,FR:()=>he,yh:()=>J,CK:()=>qe,Aw:()=>_t,cr:()=>ve,wb:()=>ae,qC:()=>Be,PH:()=>k,ZF:()=>Xt,Lq:()=>Ki,P1:()=>et,on:()=>Ii,Ky:()=>w});var e=m(5e3),t=m(1135),v=m(8306),C=m(7579),s=m(233),M=m(4004),N=m(5363),o=m(1365),L=m(5026),O=m(1884);const A={};function k(at,Qt){if(A[at]=(A[at]||0)+1,"function"==typeof Qt)return W(at,(...Lt)=>Object.assign(Object.assign({},Qt(...Lt)),{type:at}));switch(Qt?Qt._as:"empty"){case"empty":return W(at,()=>({type:at}));case"props":return W(at,Lt=>Object.assign(Object.assign({},Lt),{type:at}));default:throw new Error("Unexpected config.")}}function w(){return{_as:"props",_p:void 0}}function W(at,Qt){return Object.defineProperty(Qt,"type",{value:at,writable:!1})}const j="@ngrx/store/init";let $=(()=>{class at extends t.X{constructor(){super({type:j})}next(gt){if("function"==typeof gt)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===gt)throw new TypeError("Actions must be objects");if(void 0===gt.type)throw new TypeError("Actions must have a type property");super.next(gt)}complete(){}ngOnDestroy(){super.complete()}}return at.\u0275fac=function(gt){return new(gt||at)},at.\u0275prov=e.Yz7({token:at,factory:at.\u0275fac}),at})();const ee=[$],me=new e.OlP("@ngrx/store Internal Root Guard"),ce=new e.OlP("@ngrx/store Internal Initial State"),le=new e.OlP("@ngrx/store Initial State"),te=new e.OlP("@ngrx/store Reducer Factory"),re=new e.OlP("@ngrx/store Internal Reducer Factory Provider"),pe=new e.OlP("@ngrx/store Initial Reducers"),y=new e.OlP("@ngrx/store Internal Initial Reducers"),i=new e.OlP("@ngrx/store Store Features"),a=new e.OlP("@ngrx/store Internal Store Reducers"),p=new e.OlP("@ngrx/store Internal Feature Reducers"),u=new e.OlP("@ngrx/store Internal Feature Configs"),_=new e.OlP("@ngrx/store Internal Store Features"),D=new e.OlP("@ngrx/store Internal Feature Reducers Token"),I=new e.OlP("@ngrx/store Feature Reducers"),x=new e.OlP("@ngrx/store User Provided Meta Reducers"),r=new e.OlP("@ngrx/store Meta Reducers"),b=new e.OlP("@ngrx/store Internal Resolved Meta Reducers"),Z=new e.OlP("@ngrx/store User Runtime Checks Config"),P=new e.OlP("@ngrx/store Internal User Runtime Checks Config"),U=new e.OlP("@ngrx/store Internal Runtime Checks"),ye=new e.OlP("@ngrx/store Check if Action types are unique");function xe(at,Qt={}){const gt=Object.keys(at),Lt={};for(let Ci=0;Ci<gt.length;Ci++){const Wi=gt[Ci];"function"==typeof at[Wi]&&(Lt[Wi]=at[Wi])}const ui=Object.keys(Lt);return function(Wi,$i){Wi=void 0===Wi?Qt:Wi;let An=!1;const On={};for(let pn=0;pn<ui.length;pn++){const Nn=ui[pn],wi=Wi[Nn],Fi=(0,Lt[Nn])(wi,$i);On[Nn]=Fi,An=An||Fi!==wi}return An?On:Wi}}function Be(...at){return function(Qt){if(0===at.length)return Qt;const gt=at[at.length-1];return at.slice(0,-1).reduceRight((ui,Ci)=>Ci(ui),gt(Qt))}}function Oe(at,Qt){return Array.isArray(Qt)&&Qt.length>0&&(at=Be.apply(null,[...Qt,at])),(gt,Lt)=>{const ui=at(gt);return(Ci,Wi)=>ui(Ci=void 0===Ci?Lt:Ci,Wi)}}class Me extends v.y{}class we extends ${}const ae="@ngrx/store/update-reducers";let We=(()=>{class at extends t.X{constructor(gt,Lt,ui,Ci){super(Ci(ui,Lt)),this.dispatcher=gt,this.initialState=Lt,this.reducers=ui,this.reducerFactory=Ci}get currentReducers(){return this.reducers}addFeature(gt){this.addFeatures([gt])}addFeatures(gt){const Lt=gt.reduce((ui,{reducers:Ci,reducerFactory:Wi,metaReducers:$i,initialState:An,key:On})=>{const pn="function"==typeof Ci?function(at){const Qt=Array.isArray(at)&&at.length>0?Be(...at):gt=>gt;return(gt,Lt)=>(gt=Qt(gt),(ui,Ci)=>gt(ui=void 0===ui?Lt:ui,Ci))}($i)(Ci,An):Oe(Wi,$i)(Ci,An);return ui[On]=pn,ui},{});this.addReducers(Lt)}removeFeature(gt){this.removeFeatures([gt])}removeFeatures(gt){this.removeReducers(gt.map(Lt=>Lt.key))}addReducer(gt,Lt){this.addReducers({[gt]:Lt})}addReducers(gt){this.reducers=Object.assign(Object.assign({},this.reducers),gt),this.updateReducers(Object.keys(gt))}removeReducer(gt){this.removeReducers([gt])}removeReducers(gt){gt.forEach(Lt=>{this.reducers=function(at,Qt){return Object.keys(at).filter(gt=>gt!==Qt).reduce((gt,Lt)=>Object.assign(gt,{[Lt]:at[Lt]}),{})}(this.reducers,Lt)}),this.updateReducers(gt)}updateReducers(gt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:ae,features:gt})}ngOnDestroy(){this.complete()}}return at.\u0275fac=function(gt){return new(gt||at)(e.LFG(we),e.LFG(le),e.LFG(pe),e.LFG(te))},at.\u0275prov=e.Yz7({token:at,factory:at.\u0275fac}),at})();const vt=[We,{provide:Me,useExisting:We},{provide:we,useExisting:$}];let Pe=(()=>{class at extends C.x{ngOnDestroy(){this.complete()}}return at.\u0275fac=function(){let Qt;return function(Lt){return(Qt||(Qt=e.n5z(at)))(Lt||at)}}(),at.\u0275prov=e.Yz7({token:at,factory:at.\u0275fac}),at})();const Ve=[Pe];class he extends v.y{}let Ee=(()=>{class at extends t.X{constructor(gt,Lt,ui,Ci){super(Ci);const On=gt.pipe((0,N.Q)(s.N)).pipe((0,o.M)(Lt)).pipe((0,L.R)(ke,{state:Ci}));this.stateSubscription=On.subscribe(({state:pn,action:Nn})=>{this.next(pn),ui.next(Nn)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return at.INIT=j,at.\u0275fac=function(gt){return new(gt||at)(e.LFG($),e.LFG(Me),e.LFG(Pe),e.LFG(le))},at.\u0275prov=e.Yz7({token:at,factory:at.\u0275fac}),at})();function ke(at={state:void 0},[Qt,gt]){const{state:Lt}=at;return{state:gt(Lt,Qt),action:Qt}}const q=[Ee,{provide:he,useExisting:Ee}];let J=(()=>{class at extends v.y{constructor(gt,Lt,ui){super(),this.actionsObserver=Lt,this.reducerManager=ui,this.source=gt}select(gt,...Lt){return Ce.call(null,gt,...Lt)(this)}lift(gt){const Lt=new at(this,this.actionsObserver,this.reducerManager);return Lt.operator=gt,Lt}dispatch(gt){this.actionsObserver.next(gt)}next(gt){this.actionsObserver.next(gt)}error(gt){this.actionsObserver.error(gt)}complete(){this.actionsObserver.complete()}addReducer(gt,Lt){this.reducerManager.addReducer(gt,Lt)}removeReducer(gt){this.reducerManager.removeReducer(gt)}}return at.\u0275fac=function(gt){return new(gt||at)(e.LFG(he),e.LFG($),e.LFG(We))},at.\u0275prov=e.Yz7({token:at,factory:at.\u0275fac}),at})();const oe=[J];function Ce(at,Qt,...gt){return function(ui){let Ci;if("string"==typeof at){const Wi=[Qt,...gt].filter(Boolean);Ci=ui.pipe(function(...at){const Qt=at.length;if(0===Qt)throw new Error("list of properties cannot be empty.");return(0,M.U)(gt=>{let Lt=gt;for(let ui=0;ui<Qt;ui++){const Ci=null==Lt?void 0:Lt[at[ui]];if(void 0===Ci)return;Lt=Ci}return Lt})}(at,...Wi))}else{if("function"!=typeof at)throw new TypeError(`Unexpected type '${typeof at}' in select operator, expected 'string' or 'function'`);Ci=ui.pipe((0,M.U)(Wi=>at(Wi,Qt)))}return Ci.pipe((0,O.x)())}}const ht="https://ngrx.io/guide/store/configuration/runtime-checks";function it(at){return void 0===at}function ft(at){return null===at}function nt(at){return Array.isArray(at)}function Pt(at){return"object"==typeof at&&null!==at}function jt(at){return"function"==typeof at}function Te(at,Qt){return at===Qt}function Y(at,Qt,gt){for(let Lt=0;Lt<at.length;Lt++)if(!gt(at[Lt],Qt[Lt]))return!0;return!1}function Ae(at,Qt=Te,gt=Te){let Ci,Lt=null,ui=null;return{memoized:function(){if(void 0!==Ci)return Ci.result;if(!Lt)return ui=at.apply(null,arguments),Lt=arguments,ui;if(!Y(arguments,Lt,Qt))return ui;const pn=at.apply(null,arguments);return Lt=arguments,gt(ui,pn)?ui:(ui=pn,pn)},reset:function(){Lt=null,ui=null},setResult:function(pn){Ci={result:pn}},clearResult:function(){Ci=void 0}}}function et(...at){return function(at,Qt={stateFn:$t}){return function(...gt){let Lt=gt;if(Array.isArray(Lt[0])){const[pn,...Nn]=Lt;Lt=[...pn,...Nn]}const ui=Lt.slice(0,Lt.length-1),Ci=Lt[Lt.length-1],Wi=ui.filter(pn=>pn.release&&"function"==typeof pn.release),$i=at(function(...pn){return Ci.apply(null,pn)}),An=Ae(function(pn,Nn){return Qt.stateFn.apply(null,[pn,ui,Nn,$i])});return Object.assign(An.memoized,{release:function(){An.reset(),$i.reset(),Wi.forEach(pn=>pn.release())},projector:$i.memoized,setResult:An.setResult,clearResult:An.clearResult})}}(Ae)(...at)}function $t(at,Qt,gt,Lt){if(void 0===gt){const Ci=Qt.map(Wi=>Wi(at));return Lt.memoized.apply(null,Ci)}const ui=Qt.map(Ci=>Ci(at,gt));return Lt.memoized.apply(null,[...ui,gt])}function Xt(at){return et(Qt=>{const gt=Qt[at];return(0,e.X6Q)()&&!(at in Qt)&&console.warn(`@ngrx/store: The feature name "${at}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${at}', ...) or StoreModule.forFeature('${at}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),gt},Qt=>Qt)}function ot(at){Object.freeze(at);const Qt=jt(at);return Object.getOwnPropertyNames(at).forEach(gt=>{if(!gt.startsWith("\u0275")&&function(at,Qt){return Object.prototype.hasOwnProperty.call(at,Qt)}(at,gt)&&(!Qt||"caller"!==gt&&"callee"!==gt&&"arguments"!==gt)){const Lt=at[gt];(Pt(Lt)||jt(Lt))&&!Object.isFrozen(Lt)&&ot(Lt)}}),at}function li(at,Qt=[]){return(it(at)||ft(at))&&0===Qt.length?{path:["root"],value:at}:Object.keys(at).reduce((Lt,ui)=>{if(Lt)return Lt;const Ci=at[ui];return function(at){return jt(at)&&at.hasOwnProperty("\u0275cmp")}(Ci)?Lt:!(it(Ci)||ft(Ci)||function(at){return"number"==typeof at}(Ci)||function(at){return"boolean"==typeof at}(Ci)||function(at){return"string"==typeof at}(Ci)||nt(Ci))&&(function(at){if(!function(at){return Pt(at)&&!nt(at)}(at))return!1;const Qt=Object.getPrototypeOf(at);return Qt===Object.prototype||null===Qt}(Ci)?li(Ci,[...Qt,ui]):{path:[...Qt,ui],value:Ci})},!1)}function Ut(at,Qt){if(!1===at)return;const gt=at.path.join("."),Lt=new Error(`Detected unserializable ${Qt} at "${gt}". ${ht}#strict${Qt}serializability`);throw Lt.value=at.value,Lt.unserializablePath=gt,Lt}function Si(at){return(0,e.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},at):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function ai({strictActionSerializability:at,strictStateSerializability:Qt}){return gt=>at||Qt?function(at,Qt){return function(gt,Lt){Qt.action(Lt)&&Ut(li(Lt),"action");const ui=at(gt,Lt);return Qt.state()&&Ut(li(ui),"state"),ui}}(gt,{action:Lt=>at&&!rn(Lt),state:()=>Qt}):gt}function ci({strictActionImmutability:at,strictStateImmutability:Qt}){return gt=>at||Qt?function(at,Qt){return function(gt,Lt){const ui=Qt.action(Lt)?ot(Lt):Lt,Ci=at(gt,ui);return Qt.state()?ot(Ci):Ci}}(gt,{action:Lt=>at&&!rn(Lt),state:()=>Qt}):gt}function rn(at){return at.type.startsWith("@ngrx")}function Vi({strictActionWithinNgZone:at}){return Qt=>at?function(at,Qt){return function(gt,Lt){if(Qt.action(Lt)&&!e.R0b.isInAngularZone())throw new Error(`Action '${Lt.type}' running outside NgZone. ${ht}#strictactionwithinngzone`);return at(gt,Lt)}}(Qt,{action:gt=>at&&!rn(gt)}):Qt}function Di(at){return[{provide:P,useValue:at},{provide:Z,useFactory:Ke,deps:[P]},{provide:U,deps:[Z],useFactory:Si},{provide:r,multi:!0,deps:[U],useFactory:ci},{provide:r,multi:!0,deps:[U],useFactory:ai},{provide:r,multi:!0,deps:[U],useFactory:Vi}]}function Xi(){return[{provide:ye,multi:!0,deps:[U],useFactory:mt}]}function Ke(at){return at}function mt(at){if(!at.strictActionTypeUniqueness)return;const Qt=Object.entries(A).filter(([,gt])=>gt>1).map(([gt])=>gt);if(Qt.length)throw new Error(`Action types are registered more than once, ${Qt.map(gt=>`"${gt}"`).join(", ")}. ${ht}#strictactiontypeuniqueness`)}let ve=(()=>{class at{constructor(gt,Lt,ui,Ci,Wi,$i){}}return at.\u0275fac=function(gt){return new(gt||at)(e.LFG($),e.LFG(Me),e.LFG(Pe),e.LFG(J),e.LFG(me,8),e.LFG(ye,8))},at.\u0275mod=e.oAB({type:at}),at.\u0275inj=e.cJS({}),at})(),qe=(()=>{class at{constructor(gt,Lt,ui,Ci,Wi){this.features=gt,this.featureReducers=Lt,this.reducerManager=ui;const $i=gt.map((An,On)=>{const Nn=Lt.shift()[On];return Object.assign(Object.assign({},An),{reducers:Nn,initialState:Rt(An.initialState)})});ui.addFeatures($i)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return at.\u0275fac=function(gt){return new(gt||at)(e.LFG(_),e.LFG(I),e.LFG(We),e.LFG(ve),e.LFG(ye,8))},at.\u0275mod=e.oAB({type:at}),at.\u0275inj=e.cJS({}),at})(),_t=(()=>{class at{static forRoot(gt,Lt={}){return{ngModule:ve,providers:[{provide:me,useFactory:Ri,deps:[[J,new e.FiY,new e.tp0]]},{provide:ce,useValue:Lt.initialState},{provide:le,useFactory:Rt,deps:[ce]},{provide:y,useValue:gt},{provide:a,useExisting:gt instanceof e.OlP?gt:y},{provide:pe,deps:[e.zs3,y,[new e.tBr(a)]],useFactory:ue},{provide:x,useValue:Lt.metaReducers?Lt.metaReducers:[]},{provide:b,deps:[r,x],useFactory:yi},{provide:re,useValue:Lt.reducerFactory?Lt.reducerFactory:xe},{provide:te,deps:[re,b],useFactory:Oe},ee,vt,Ve,q,oe,Di(Lt.runtimeChecks),Xi()]}}static forFeature(gt,Lt,ui={}){return{ngModule:qe,providers:[{provide:u,multi:!0,useValue:gt instanceof Object?{}:ui},{provide:i,multi:!0,useValue:{key:gt instanceof Object?gt.name:gt,reducerFactory:ui instanceof e.OlP||!ui.reducerFactory?xe:ui.reducerFactory,metaReducers:ui instanceof e.OlP||!ui.metaReducers?[]:ui.metaReducers,initialState:ui instanceof e.OlP||!ui.initialState?void 0:ui.initialState}},{provide:_,deps:[e.zs3,u,i],useFactory:$e},{provide:p,multi:!0,useValue:gt instanceof Object?gt.reducer:Lt},{provide:D,multi:!0,useExisting:Lt instanceof e.OlP?Lt:p},{provide:I,multi:!0,deps:[e.zs3,p,[new e.tBr(D)]],useFactory:St},Xi()]}}}return at.\u0275fac=function(gt){return new(gt||at)},at.\u0275mod=e.oAB({type:at}),at.\u0275inj=e.cJS({}),at})();function ue(at,Qt){return Qt instanceof e.OlP?at.get(Qt):Qt}function $e(at,Qt,gt){return gt.map((Lt,ui)=>{if(Qt[ui]instanceof e.OlP){const Ci=at.get(Qt[ui]);return{key:Lt.key,reducerFactory:Ci.reducerFactory?Ci.reducerFactory:xe,metaReducers:Ci.metaReducers?Ci.metaReducers:[],initialState:Ci.initialState}}return Lt})}function St(at,Qt){return Qt.map(Lt=>Lt instanceof e.OlP?at.get(Lt):Lt)}function Rt(at){return"function"==typeof at?at():at}function yi(at,Qt){return at.concat(Qt)}function Ri(at){if(at)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function Ii(...at){return{reducer:at.pop(),types:at.map(Lt=>Lt.type)}}function Ki(at,...Qt){const gt=new Map;for(const Lt of Qt)for(const ui of Lt.types){const Ci=gt.get(ui);gt.set(ui,Ci?($i,An)=>Lt.reducer(Ci($i,An),An):Lt.reducer)}return function(Lt=at,ui){const Ci=gt.get(ui.type);return Ci?Ci(Lt,ui):Lt}}},159:(Ze,K,m)=>{"use strict";m.d(K,{uU:()=>o,OF:()=>L});var e=m(5e3),t=m(9808),v=m(655),C=m(3259);function s(O,A){if(1&O&&e._UZ(0,"canvas",1),2&O){const E=e.oxw();e.Q6J("qrCode",E.value)("qrCodeErrorCorrectionLevel",E.errorCorrectionLevel)("qrCodeCenterImageSrc",E.centerImageSrc)("qrCodeCenterImageWidth",E.centerImageSize)("qrCodeCenterImageHeight",E.centerImageSize)("qrCodeMargin",E.margin)("width",E.size)("height",E.size)("darkColor",E.darkColor)("lightColor",E.lightColor)}}const M=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let c=(()=>{class O{constructor(E){this.viewContainerRef=E,this.errorCorrectionLevel=O.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var E,k;return(0,v.mG)(this,void 0,void 0,function*(){if(!this.value)return;this.version&&this.version>40?(console.warn("[qrCode] max version is 40, clamping"),this.version=40):this.version&&this.version<1?(console.warn("[qrCode] min version is 1, clamping"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),this.version=void 0);const w=this.viewContainerRef.element.nativeElement;if(!w)return;const V=w.getContext("2d");V&&V.clearRect(0,0,V.canvas.width,V.canvas.height);const W=null!==(E=this.errorCorrectionLevel)&&void 0!==E?E:O.DEFAULT_ERROR_CORRECTION_LEVEL,j=M.test(this.darkColor)?this.darkColor:void 0,$=M.test(this.lightColor)?this.lightColor:void 0;(0,e.X6Q)()&&(!j&&this.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!$&&this.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield C.toCanvas(w,this.value,{version:this.version,errorCorrectionLevel:W,width:this.width,margin:this.margin,color:{dark:j,light:$}});const ee=this.centerImageSrc,me=N(this.centerImageWidth,O.DEFAULT_CENTER_IMAGE_SIZE),ce=N(this.centerImageHeight,O.DEFAULT_CENTER_IMAGE_SIZE);if(ee&&V){this.centerImage||(this.centerImage=new Image(me,ce)),ee!==(null===(k=this.centerImage)||void 0===k?void 0:k.src)&&(this.centerImage.src=ee),me!==this.centerImage.width&&(this.centerImage.width=me),ce!==this.centerImage.height&&(this.centerImage.height=ce);const le=this.centerImage;le.onload=()=>{V.drawImage(le,w.width/2-me/2,w.height/2-ce/2,me,ce)}}})}}return O.DEFAULT_ERROR_CORRECTION_LEVEL="M",O.DEFAULT_CENTER_IMAGE_SIZE=40,O.\u0275fac=function(E){return new(E||O)(e.Y36(e.s_b))},O.\u0275dir=e.lG2({type:O,selectors:[["canvas","qrCode",""]],inputs:{value:["qrCode","value"],version:["qrCodeVersion","version"],errorCorrectionLevel:["qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:["qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:["qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:["qrCodeCenterImageHeight","centerImageHeight"],margin:["qrCodeMargin","margin"]},features:[e.TTD]}),O})();function N(O,A){return void 0===O||""===O?A:"string"==typeof O?parseInt(O,10):O}let o=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275cmp=e.Xpm({type:O,selectors:[["qr-code"]],inputs:{value:"value",size:"size",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor",4,"ngIf"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor"]],template:function(E,k){1&E&&e.YNc(0,s,1,10,"canvas",0),2&E&&e.Q6J("ngIf",k.value)},directives:[t.O5,c],encapsulation:2}),O})(),L=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({imports:[[t.ez]]}),O})()},4946:Ze=>{"use strict";Ze.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},5207:Ze=>{"use strict";Ze.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},1308:Ze=>{"use strict";Ze.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},9799:Ze=>{"use strict";Ze.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},8597:Ze=>{"use strict";Ze.exports={i8:"6.5.4"}},2562:Ze=>{"use strict";Ze.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},Ze=>{Ze(Ze.s=8990)}]);