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.d30092e5998e5338.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=(Ue,K,m)=>K in Ue?w5(Ue,K,{enumerable:!0,configurable:!0,writable:!0,value:m}):Ue[K]=m,ro=(Ue,K)=>{for(var m in K||(K={}))T5.call(K,m)&&g8(Ue,m,K[m]);if(m8)for(var m of m8(K))S5.call(K,m)&&g8(Ue,m,K[m]);return Ue},_8=(Ue,K)=>A5(Ue,E5(K));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{801:(Ue,K,m)=>{"use strict";m.d(K,{Sbq:()=>w,Vfw:()=>W,N2j:()=>oe,DL8:()=>X,BDt:()=>rt,koM:()=>Rr,OS1:()=>Mr,dT$:()=>Kt,mh3:()=>Jt,b7W:()=>Ai,kZ_:()=>Ar,q7m:()=>Ot,FlN:()=>Xn,KOR:()=>Ba,Ssp:()=>Fo,eHv:()=>Gr,Mdf:()=>Fl,Aq:()=>aa,qO$:()=>Th,vqe:()=>cs,sqG:()=>w1,Krp:()=>gl,uli:()=>H0,nNP:()=>S1,byT:()=>U0,SuH:()=>P1,co4:()=>J0,aj4:()=>Rc,kXW:()=>Ja,XsY:()=>bl,USL:()=>Hc,r8p:()=>pd,o4t:()=>xd,Psp:()=>j1,dLy:()=>g2,FpQ:()=>b2,wn1:()=>vr,xf3:()=>Rd,HLz:()=>$1,NBC:()=>U2,CgH:()=>$a,B$L:()=>jr,hkK:()=>X2,hnx:()=>Eu,gNZ:()=>Kc,FJU:()=>l0,FVb:()=>Qc,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"]},W={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"]},oe={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"]},X={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"]},Rr={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"]},Mr={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"]},Ar={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"]},Ba={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"]},Fo={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"]},Th={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"]},w1={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"]},S1={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"]},P1={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"]},Rc={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"]},Ja={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"]},Hc={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"]},pd={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"]},xd={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"]},j1={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"]},vr={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"]},$1={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"]},$a={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"]},Eu={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"]},Kc={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"]},l0={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"]},Qc={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:(Ue,K,m)=>{"use strict";m.d(K,{Ni:()=>v,xH:()=>M,oo:()=>s,CN:()=>C,CX:()=>c,SN:()=>R,RX:()=>o,HJ:()=>O,I8:()=>T,EG:()=>P,Lu:()=>S,g3:()=>D,xS:()=>w,_E:()=>U,$W:()=>W,Z8:()=>ee,El:()=>ie,X3:()=>fe,z:()=>de,EK:()=>ne,cQ:()=>se,HI:()=>oe,oV:()=>y,TM:()=>i,WO:()=>a,kL:()=>p,UR:()=>u,as:()=>_,pW:()=>L,YX:()=>I,BL:()=>x,OG:()=>r,Sf:()=>b,$A:()=>J,n7:()=>F,v_:()=>B,u0:()=>te,QJ:()=>xe,Ip:()=>Pe,M7:()=>Fe,WM:()=>q,Nr:()=>j,Rd:()=>we,YP:()=>Ae,aL:()=>le,g6:()=>We,Wi:()=>yt,Ly:()=>Ve,UH:()=>ue,eM:()=>Te,VD:()=>ke,yl:()=>Y,Zu:()=>X,dh:()=>he,ZH:()=>Me,i9:()=>ze,JK:()=>ht,uT:()=>it,d7:()=>ft,e9:()=>nt,_9:()=>st,en:()=>wt});var e=m(5620),t=m(7731);const v=(0,e.PH)(t.sW.UPDATE_API_CALL_STATUS_CL,(0,e.Ky)()),M=(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)()),C=(0,e.PH)(t.sW.FETCH_INFO_CL,(0,e.Ky)()),c=(0,e.PH)(t.sW.SET_INFO_CL,(0,e.Ky)()),R=(0,e.PH)(t.sW.FETCH_FEES_CL),o=(0,e.PH)(t.sW.SET_FEES_CL,(0,e.Ky)()),O=(0,e.PH)(t.sW.FETCH_FEE_RATES_CL,(0,e.Ky)()),T=(0,e.PH)(t.sW.SET_FEE_RATES_CL,(0,e.Ky)()),P=(0,e.PH)(t.sW.FETCH_BALANCE_CL),S=(0,e.PH)(t.sW.SET_BALANCE_CL,(0,e.Ky)()),D=(0,e.PH)(t.sW.FETCH_LOCAL_REMOTE_BALANCE_CL),w=(0,e.PH)(t.sW.SET_LOCAL_REMOTE_BALANCE_CL,(0,e.Ky)()),U=(0,e.PH)(t.sW.GET_NEW_ADDRESS_CL,(0,e.Ky)()),W=((0,e.PH)(t.sW.SET_NEW_ADDRESS_CL,(0,e.Ky)()),(0,e.PH)(t.sW.FETCH_PEERS_CL)),ee=(0,e.PH)(t.sW.SET_PEERS_CL,(0,e.Ky)()),ie=(0,e.PH)(t.sW.SAVE_NEW_PEER_CL,(0,e.Ky)()),fe=((0,e.PH)(t.sW.NEWLY_ADDED_PEER_CL,(0,e.Ky)()),(0,e.PH)(t.sW.ADD_PEER_CL,(0,e.Ky)())),de=(0,e.PH)(t.sW.DETACH_PEER_CL,(0,e.Ky)()),ne=(0,e.PH)(t.sW.REMOVE_PEER_CL,(0,e.Ky)()),se=(0,e.PH)(t.sW.FETCH_PAYMENTS_CL),oe=(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)()),L=(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)()),J=(0,e.PH)(t.sW.CHANNEL_LOOKUP_CL,(0,e.Ky)()),F=(0,e.PH)(t.sW.INVOICE_LOOKUP_CL,(0,e.Ky)()),B=(0,e.PH)(t.sW.SET_LOOKUP_CL,(0,e.Ky)()),te=(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)()),Pe=(0,e.PH)(t.sW.GET_FAILED_FORWARDING_HISTORY_CL),Fe=(0,e.PH)(t.sW.SET_FAILED_FORWARDING_HISTORY_CL,(0,e.Ky)()),q=(0,e.PH)(t.sW.FETCH_INVOICES_CL,(0,e.Ky)()),j=(0,e.PH)(t.sW.SET_INVOICES_CL,(0,e.Ky)()),we=(0,e.PH)(t.sW.SAVE_NEW_INVOICE_CL,(0,e.Ky)()),Ae=(0,e.PH)(t.sW.ADD_INVOICE_CL,(0,e.Ky)()),le=(0,e.PH)(t.sW.UPDATE_INVOICE_CL,(0,e.Ky)()),We=(0,e.PH)(t.sW.DELETE_EXPIRED_INVOICE_CL,(0,e.Ky)()),yt=(0,e.PH)(t.sW.SET_CHANNEL_TRANSACTION_CL,(0,e.Ky)()),Ve=((0,e.PH)(t.sW.SET_CHANNEL_TRANSACTION_RES_CL,(0,e.Ky)()),(0,e.PH)(t.sW.FETCH_UTXOS_CL)),ue=(0,e.PH)(t.sW.SET_UTXOS_CL,(0,e.Ky)()),Te=(0,e.PH)(t.sW.FETCH_OFFER_INVOICE_CL,(0,e.Ky)()),ke=(0,e.PH)(t.sW.SET_OFFER_INVOICE_CL,(0,e.Ky)()),Y=(0,e.PH)(t.sW.FETCH_OFFERS_CL),X=(0,e.PH)(t.sW.SET_OFFERS_CL,(0,e.Ky)()),he=(0,e.PH)(t.sW.SAVE_NEW_OFFER_CL,(0,e.Ky)()),Me=(0,e.PH)(t.sW.ADD_OFFER_CL,(0,e.Ky)()),ze=(0,e.PH)(t.sW.DISABLE_OFFER_CL,(0,e.Ky)()),ht=(0,e.PH)(t.sW.UPDATE_OFFER_CL,(0,e.Ky)()),it=(0,e.PH)(t.sW.FETCH_OFFER_BOOKMARKS_CL),ft=(0,e.PH)(t.sW.SET_OFFER_BOOKMARKS_CL,(0,e.Ky)()),nt=(0,e.PH)(t.sW.ADD_UPDATE_OFFER_BOOKMARK_CL,(0,e.Ky)()),st=(0,e.PH)(t.sW.DELETE_OFFER_BOOKMARK_CL,(0,e.Ky)()),wt=(0,e.PH)(t.sW.REMOVE_OFFER_BOOKMARK_CL,(0,e.Ky)())},3504:(Ue,K,m)=>{"use strict";m.d(K,{s:()=>i});var e=m(6642),t=m(7579),v=m(9646),M=m(8306),s=m(4128),C=m(5577),c=m(2722),R=m(4004),o=m(262),O=m(1365),T=m(2340),P=m(1786),S=m(1954),D=m(7731),w=m(7861),U=m(1443),G=m(7080),W=m(1189),ee=m(5e3),ie=m(8138),_e=m(5620),fe=m(5986),de=m(62),ne=m(5043),se=m(9291),oe=m(7998),y=m(9808);let i=(()=>{class a{constructor(u,_,L,I,x,r,b,J,F){this.actions=u,this.httpClient=_,this.store=L,this.sessionService=I,this.commonService=x,this.logger=r,this.router=b,this.wsService=J,this.location=F,this.CHILD_API_URL=T.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)(D.sW.FETCH_INFO_CL),(0,C.z)(B=>(this.flgInitialized=!1,this.store.dispatch((0,w.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,U.Ni)({payload:{action:"FetchInfo",status:D.Bn.INITIATED}})),this.store.dispatch((0,w.ac)({payload:D.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+T.NZ.GETINFO_API).pipe((0,c.R)(this.actions.pipe((0,e.l4)(D.pg.SET_SELECTED_NODE))),(0,R.U)(te=>(this.logger.info(te),te.chains&&te.chains.length&&te.chains[0]&&"object"==typeof te.chains[0]&&te.chains[0].hasOwnProperty("chain")&&te.chains[0].chain.toLowerCase().indexOf("bitcoin")<0?(this.store.dispatch((0,U.Ni)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:D.m6.GET_NODE_INFO})),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.qR)({payload:{data:{type:D.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:D.pg.LOGOUT}):(this.initializeRemainingData(te,B.payload.loadPage),this.store.dispatch((0,U.Ni)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:D.m6.GET_NODE_INFO})),{type:D.sW.SET_INFO_CL,payload:te||{}}))),(0,o.K)(te=>{const xe=this.commonService.extractErrorCode(te),Pe="ETIMEDOUT"===xe?"Unable to Connect to C-Lightning Server.":this.commonService.extractErrorMessage(te);return this.router.navigate(["/error"],{state:{errorCode:xe,errorMessage:Pe}}),this.handleErrorWithoutAlert("FetchInfo",D.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:xe,error:Pe}),(0,v.of)({type:D.pg.VOID})})))))),this.fetchFeesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.FETCH_FEES_CL),(0,C.z)(()=>(this.store.dispatch((0,U.Ni)({payload:{action:"FetchFees",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.FEES_API))),(0,R.U)(B=>(this.logger.info(B),this.store.dispatch((0,U.Ni)({payload:{action:"FetchFees",status:D.Bn.COMPLETED}})),{type:D.sW.SET_FEES_CL,payload:B||{}})),(0,o.K)(B=>(this.handleErrorWithoutAlert("FetchFees",D.m6.NO_SPINNER,"Fetching Fees Failed.",B),(0,v.of)({type:D.pg.VOID}))))),this.fetchFeeRatesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.FETCH_FEE_RATES_CL),(0,C.z)(B=>(this.store.dispatch((0,U.Ni)({payload:{action:"FetchFeeRates"+B.payload,status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.NETWORK_API+"/feeRates/"+B.payload).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,U.Ni)({payload:{action:"FetchFeeRates"+B.payload,status:D.Bn.COMPLETED}})),{type:D.sW.SET_FEE_RATES_CL,payload:te||{}})),(0,o.K)(te=>(this.handleErrorWithoutAlert("FetchFeeRates"+B.payload,D.m6.NO_SPINNER,"Fetching Fee Rates Failed.",te),(0,v.of)({type:D.pg.VOID})))))))),this.fetchBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.FETCH_BALANCE_CL),(0,C.z)(()=>(this.store.dispatch((0,U.Ni)({payload:{action:"FetchBalance",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.BALANCE_API))),(0,R.U)(B=>(this.logger.info(B),this.store.dispatch((0,U.Ni)({payload:{action:"FetchBalance",status:D.Bn.COMPLETED}})),{type:D.sW.SET_BALANCE_CL,payload:B||{}})),(0,o.K)(B=>(this.handleErrorWithoutAlert("FetchBalance",D.m6.NO_SPINNER,"Fetching Balances Failed.",B),(0,v.of)({type:D.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.FETCH_LOCAL_REMOTE_BALANCE_CL),(0,C.z)(()=>(this.store.dispatch((0,U.Ni)({payload:{action:"FetchLocalRemoteBalance",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.CHANNELS_API+"/localremotebalance"))),(0,R.U)(B=>(this.logger.info(B),this.store.dispatch((0,U.Ni)({payload:{action:"FetchLocalRemoteBalance",status:D.Bn.COMPLETED}})),{type:D.sW.SET_LOCAL_REMOTE_BALANCE_CL,payload:B||{}})),(0,o.K)(B=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",D.m6.NO_SPINNER,"Fetching Balances Failed.",B),(0,v.of)({type:D.pg.VOID}))))),this.getNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.GET_NEW_ADDRESS_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:D.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+T.NZ.ON_CHAIN_API+"?type="+B.payload.addressCode).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,w.uO)({payload:D.m6.GENERATE_NEW_ADDRESS})),{type:D.sW.SET_NEW_ADDRESS_CL,payload:te&&te.address?te.address:{}})),(0,o.K)(te=>(this.handleErrorWithAlert("GenerateNewAddress",D.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+T.NZ.ON_CHAIN_API+"?type="+B.payload.addressId,te),(0,v.of)({type:D.pg.VOID})))))))),this.setNewAddressCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.SET_NEW_ADDRESS_CL),(0,R.U)(B=>(this.logger.info(B.payload),B.payload))),{dispatch:!1}),this.peersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.FETCH_PEERS_CL),(0,C.z)(()=>(this.store.dispatch((0,U.Ni)({payload:{action:"FetchPeers",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.PEERS_API).pipe((0,R.U)(B=>(this.logger.info(B),this.store.dispatch((0,U.Ni)({payload:{action:"FetchPeers",status:D.Bn.COMPLETED}})),{type:D.sW.SET_PEERS_CL,payload:B||[]})),(0,o.K)(B=>(this.handleErrorWithoutAlert("FetchPeers",D.m6.NO_SPINNER,"Fetching Peers Failed.",B),(0,v.of)({type:D.pg.VOID})))))))),this.saveNewPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.SAVE_NEW_PEER_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:D.m6.CONNECT_PEER})),this.store.dispatch((0,U.Ni)({payload:{action:"SaveNewPeer",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+T.NZ.PEERS_API,{id:B.payload.id}).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,U.Ni)({payload:{action:"SaveNewPeer",status:D.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:D.m6.CONNECT_PEER})),this.store.dispatch((0,U.Z8)({payload:te||[]})),{type:D.sW.NEWLY_ADDED_PEER_CL,payload:{peer:te.find(xe=>0===B.payload.id.indexOf(xe.id))}})),(0,o.K)(te=>(this.handleErrorWithoutAlert("SaveNewPeer",D.m6.CONNECT_PEER,"Peer Connection Failed.",te),(0,v.of)({type:D.pg.VOID})))))))),this.detachPeerCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.DETACH_PEER_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:D.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+T.NZ.PEERS_API+"/"+B.payload.id+"?force="+B.payload.force).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,w.uO)({payload:D.m6.DISCONNECT_PEER})),this.store.dispatch((0,w.jW)({payload:"Peer Disconnected Successfully!"})),{type:D.sW.REMOVE_PEER_CL,payload:{id:B.payload.id}})),(0,o.K)(te=>(this.handleErrorWithAlert("PeerDisconnect",D.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+T.NZ.PEERS_API+"/"+B.payload.id,te),(0,v.of)({type:D.pg.VOID})))))))),this.channelsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.FETCH_CHANNELS_CL),(0,C.z)(()=>(this.store.dispatch((0,U.Ni)({payload:{action:"FetchChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.CHANNELS_API+"/listChannels"))),(0,R.U)(B=>{this.logger.info(B),this.store.dispatch((0,U.Ni)({payload:{action:"FetchChannels",status:D.Bn.COMPLETED}})),this.store.dispatch((0,U.u0)({payload:{status:"settled"}}));const te={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return B.forEach(xe=>{"CHANNELD_NORMAL"===xe.state?xe.connected?te.activeChannels.push(xe):te.inactiveChannels.push(xe):te.pendingChannels.push(xe)}),{type:D.sW.SET_CHANNELS_CL,payload:te}}),(0,o.K)(B=>(this.handleErrorWithoutAlert("FetchChannels",D.m6.NO_SPINNER,"Fetching Channels Failed.",B),(0,v.of)({type:D.pg.VOID}))))),this.openNewChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.SAVE_NEW_CHANNEL_CL),(0,C.z)(B=>{this.store.dispatch((0,w.ac)({payload:D.m6.OPEN_CHANNEL})),this.store.dispatch((0,U.Ni)({payload:{action:"SaveNewChannel",status:D.Bn.INITIATED}}));const te={id:B.payload.peerId,satoshis:B.payload.satoshis,feeRate:B.payload.feeRate,announce:B.payload.announce,minconf:B.payload.minconf?B.payload.minconf:null};return B.payload.utxos&&(te.utxos=B.payload.utxos),this.httpClient.post(this.CHILD_API_URL+T.NZ.CHANNELS_API,te).pipe((0,R.U)(xe=>(this.logger.info(xe),this.store.dispatch((0,U.Ni)({payload:{action:"SaveNewChannel",status:D.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:D.m6.OPEN_CHANNEL})),this.store.dispatch((0,w.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,U.EG)()),this.store.dispatch((0,U.Ly)()),{type:D.sW.FETCH_CHANNELS_CL})),(0,o.K)(xe=>(this.handleErrorWithoutAlert("SaveNewChannel",D.m6.OPEN_CHANNEL,"Opening Channel Failed.",xe),(0,v.of)({type:D.pg.VOID}))))}))),this.updateChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.UPDATE_CHANNEL_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:D.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+T.NZ.CHANNELS_API+"/setChannelFee",{id:B.payload.channelId,base:B.payload.baseFeeMsat,ppm:B.payload.feeRate}).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,w.uO)({payload:D.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,w.jW)("all"===B.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:D.sW.FETCH_CHANNELS_CL})),(0,o.K)(te=>(this.handleErrorWithAlert("UpdateChannel",D.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+T.NZ.CHANNELS_API,te),(0,v.of)({type:D.pg.VOID})))))))),this.closeChannelCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.CLOSE_CHANNEL_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:B.payload.force?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+T.NZ.CHANNELS_API+"/"+B.payload.channelId+(B.payload.force?"?force="+B.payload.force:"")).pipe((0,R.U)(xe=>(this.logger.info(xe),this.store.dispatch((0,w.uO)({payload:B.payload.force?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL})),this.store.dispatch((0,U.UR)()),this.store.dispatch((0,U.g3)()),this.store.dispatch((0,w.jW)({payload:"Channel Closed Successfully!"})),{type:D.sW.REMOVE_CHANNEL_CL,payload:B.payload})),(0,o.K)(xe=>(this.handleErrorWithAlert("CloseChannel",B.payload.force?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+T.NZ.CHANNELS_API,xe),(0,v.of)({type:D.pg.VOID})))))))),this.paymentsFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.FETCH_PAYMENTS_CL),(0,C.z)(()=>(this.store.dispatch((0,U.Ni)({payload:{action:"FetchPayments",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.PAYMENTS_API))),(0,R.U)(B=>(this.logger.info(B),this.store.dispatch((0,U.Ni)({payload:{action:"FetchPayments",status:D.Bn.COMPLETED}})),{type:D.sW.SET_PAYMENTS_CL,payload:B||[]})),(0,o.K)(B=>(this.handleErrorWithoutAlert("FetchPayments",D.m6.NO_SPINNER,"Fetching Payments Failed.",B),(0,v.of)({type:D.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.FETCH_OFFER_INVOICE_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:D.m6.FETCH_INVOICE})),this.store.dispatch((0,U.Ni)({payload:{action:"FetchOfferInvoice",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+T.NZ.OFFERS_API+"/fetchOfferInvoice",B.payload).pipe((0,R.U)(te=>{this.logger.info(te),setTimeout(()=>{this.store.dispatch((0,U.Ni)({payload:{action:"FetchOfferInvoice",status:D.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:D.m6.FETCH_INVOICE})),this.store.dispatch((0,U.VD)({payload:te||{}}))},500)}),(0,o.K)(te=>(this.handleErrorWithoutAlert("FetchOfferInvoice",D.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",te),(0,v.of)({type:D.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.SET_OFFER_INVOICE_CL),(0,R.U)(B=>(this.logger.info(B.payload),B.payload))),{dispatch:!1}),this.sendPaymentCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.SEND_PAYMENT_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:B.payload.uiMessage})),this.store.dispatch((0,U.Ni)({payload:{action:"SendPayment",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+T.NZ.PAYMENTS_API,B.payload).pipe((0,R.U)(te=>{this.logger.info(te),this.store.dispatch((0,U.Ni)({payload:{action:"SendPayment",status:D.Bn.COMPLETED}}));let xe="Payment Sent Successfully!";te.saveToDBError&&(xe="Payment Sent Successfully but Offer Saving to Database Failed."),te.saveToDBResponse&&"NA"!==te.saveToDBResponse&&(this.store.dispatch((0,U.e9)({payload:te.saveToDBResponse})),xe="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,U.UR)()),this.store.dispatch((0,U.EG)()),this.store.dispatch((0,U.cQ)()),this.store.dispatch((0,w.uO)({payload:B.payload.uiMessage})),this.store.dispatch((0,w.jW)({payload:xe})),this.store.dispatch((0,U.TM)({payload:te.paymentResponse}))},1e3)}),(0,o.K)(te=>(this.logger.error("Error: "+JSON.stringify(te)),B.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",B.payload.uiMessage,"Send Payment Failed.",te):this.handleErrorWithAlert("SendPayment",B.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+T.NZ.PAYMENTS_API,te),(0,v.of)({type:D.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.GET_QUERY_ROUTES_CL),(0,C.z)(B=>(this.store.dispatch((0,U.Ni)({payload:{action:"GetQueryRoutes",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.NETWORK_API+"/getRoute/"+B.payload.destPubkey+"/"+B.payload.amount).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,U.Ni)({payload:{action:"GetQueryRoutes",status:D.Bn.COMPLETED}})),{type:D.sW.SET_QUERY_ROUTES_CL,payload:te})),(0,o.K)(te=>(this.store.dispatch((0,U.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",D.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+T.NZ.NETWORK_API+"/getRoute/"+B.payload.destPubkey+"/"+B.payload.amount,te),(0,v.of)({type:D.pg.VOID})))))))),this.setQueryRoutesCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.SET_QUERY_ROUTES_CL),(0,R.U)(B=>B.payload)),{dispatch:!1}),this.peerLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.PEER_LOOKUP_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:D.m6.SEARCHING_NODE})),this.store.dispatch((0,U.Ni)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.NETWORK_API+"/listNode/"+B.payload).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,U.Ni)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:D.m6.SEARCHING_NODE})),{type:D.sW.SET_LOOKUP_CL,payload:te})),(0,o.K)(te=>(this.handleErrorWithAlert("Lookup",D.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+T.NZ.NETWORK_API+"/listNode/"+B.payload,te),(0,v.of)({type:D.pg.VOID})))))))),this.channelLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.CHANNEL_LOOKUP_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:B.payload.uiMessage})),this.store.dispatch((0,U.Ni)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.NETWORK_API+"/listChannel/"+B.payload.shortChannelID).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,U.Ni)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:B.payload.uiMessage})),{type:D.sW.SET_LOOKUP_CL,payload:te})),(0,o.K)(te=>(B.payload.showError?this.handleErrorWithAlert("Lookup",B.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+T.NZ.NETWORK_API+"/listChannel/"+B.payload.shortChannelID,te):this.store.dispatch((0,w.uO)({payload:B.payload.uiMessage})),this.store.dispatch((0,U.v_)({payload:[]})),(0,v.of)({type:D.pg.VOID})))))))),this.invoiceLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.INVOICE_LOOKUP_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:D.m6.SEARCHING_INVOICE})),this.store.dispatch((0,U.Ni)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.INVOICES_API+"?label="+B.payload).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,U.Ni)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:D.m6.SEARCHING_INVOICE})),te.invoices&&te.invoices.length&&te.invoices.length>0&&this.store.dispatch((0,U.aL)({payload:te.invoices[0]})),{type:D.sW.SET_LOOKUP_CL,payload:te.invoices&&te.invoices.length&&te.invoices.length>0?te.invoices[0]:te})),(0,o.K)(te=>(this.handleErrorWithoutAlert("Lookup",D.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",te),this.store.dispatch((0,w.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,v.of)({type:D.pg.VOID})))))))),this.setLookupCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.SET_LOOKUP_CL),(0,R.U)(B=>(this.logger.info(B.payload),B.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.GET_FORWARDING_HISTORY_CL),(0,O.M)(this.store.select(G.W3)),(0,C.z)(([B,te])=>(this.store.dispatch((0,U.Ni)({payload:{action:"FetchForwardingHistory",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.CHANNELS_API+"/listForwards?status="+B.payload.status).pipe((0,R.U)(xe=>{if(this.logger.info(xe),this.store.dispatch((0,U.Ni)({payload:{action:"FetchForwardingHistory",status:D.Bn.COMPLETED}})),!te.api_version||!this.commonService.isVersionCompatible(te.api_version,"0.5.0")){const Fe=[],q=[];xe.forEach(j=>{"settled"===j.status?q.push(j):("failed"===j.status||"local_failed"===j.status)&&Fe.push(j)}),xe=JSON.parse(JSON.stringify(q)),this.store.dispatch((0,U.M7)({payload:Fe}))}return{type:D.sW.SET_FORWARDING_HISTORY_CL,payload:xe}}),(0,o.K)(xe=>(this.handleErrorWithAlert("FetchForwardingHistory",D.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+T.NZ.CHANNELS_API+"/listForwards?status="+B.payload.status,xe),(0,v.of)({type:D.pg.VOID})))))))),this.fetchFailedForwardingHistoryCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.GET_FAILED_FORWARDING_HISTORY_CL),(0,O.M)(this.store.select(G.W3)),(0,C.z)(([B,te])=>{if(this.store.dispatch((0,U.Ni)({payload:{action:"FetchFailedForwardingHistory",status:D.Bn.INITIATED}})),!te.api_version||!this.commonService.isVersionCompatible(te.api_version,"0.5.0"))return this.store.dispatch((0,U.Ni)({payload:{action:"FetchFailedForwardingHistory",status:D.Bn.COMPLETED}})),(0,v.of)({type:D.pg.VOID});let Pe=new M.y;const Fe=this.httpClient.get(this.CHILD_API_URL+T.NZ.CHANNELS_API+"/listForwards?status=failed"),q=this.httpClient.get(this.CHILD_API_URL+T.NZ.CHANNELS_API+"/listForwards?status=local_failed");return Pe=(0,s.D)([Fe,q]),Pe.pipe((0,R.U)(j=>(this.logger.info(j),this.store.dispatch((0,U.Ni)({payload:{action:"FetchFailedForwardingHistory",status:D.Bn.COMPLETED}})),{type:D.sW.SET_FAILED_FORWARDING_HISTORY_CL,payload:this.commonService.sortDescByKey([...j[0],...j[1]],"received_time")})),(0,o.K)(j=>(this.handleErrorWithAlert("FetchFailedForwardingHistory",D.m6.NO_SPINNER,"Get Failed Forwarding History Failed",this.CHILD_API_URL+T.NZ.CHANNELS_API+"/listForwards?status=failed",j),(0,v.of)({type:D.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.DELETE_EXPIRED_INVOICE_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:D.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+T.NZ.INVOICES_API+(B.payload?"?maxexpiry="+B.payload:"")).pipe((0,R.U)(xe=>(this.logger.info(xe),this.store.dispatch((0,w.uO)({payload:D.m6.DELETE_INVOICE})),this.store.dispatch((0,w.jW)({payload:"Invoices Deleted Successfully!"})),{type:D.sW.FETCH_INVOICES_CL,payload:{num_max_invoices:1e6,reversed:!0}})),(0,o.K)(xe=>(this.handleErrorWithAlert("DeleteInvoices",D.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+T.NZ.INVOICES_API,xe),(0,v.of)({type:D.pg.VOID})))))))),this.saveNewInvoiceCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.SAVE_NEW_INVOICE_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:D.m6.ADD_INVOICE})),this.store.dispatch((0,U.Ni)({payload:{action:"SaveNewInvoice",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+T.NZ.INVOICES_API,{label:B.payload.label,amount:B.payload.amount,description:B.payload.description,expiry:B.payload.expiry,private:B.payload.private}).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,U.Ni)({payload:{action:"SaveNewInvoice",status:D.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:D.m6.ADD_INVOICE})),te.msatoshi=B.payload.amount,te.label=B.payload.label,te.expires_at=Math.round((new Date).getTime()/1e3+B.payload.expiry),te.description=B.payload.description,te.status="unpaid",setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{invoice:te,newlyAdded:!0,component:S.$}}}))},100),{type:D.sW.ADD_INVOICE_CL,payload:te})),(0,o.K)(te=>(this.handleErrorWithoutAlert("SaveNewInvoice",D.m6.ADD_INVOICE,"Add Invoice Failed.",te),(0,v.of)({type:D.pg.VOID})))))))),this.saveNewOfferCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.SAVE_NEW_OFFER_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:D.m6.CREATE_OFFER})),this.store.dispatch((0,U.Ni)({payload:{action:"SaveNewOffer",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+T.NZ.OFFERS_API,{amount:B.payload.amount,description:B.payload.description,vendor:B.payload.vendor}).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,U.Ni)({payload:{action:"SaveNewOffer",status:D.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:D.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{offer:te,newlyAdded:!0,component:W.V}}}))},100),{type:D.sW.ADD_OFFER_CL,payload:te})),(0,o.K)(te=>(this.handleErrorWithoutAlert("SaveNewOffer",D.m6.CREATE_OFFER,"Create Offer Failed.",te),(0,v.of)({type:D.pg.VOID})))))))),this.invoicesFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.FETCH_INVOICES_CL),(0,C.z)(B=>(this.store.dispatch((0,U.Ni)({payload:{action:"FetchInvoices",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.INVOICES_API+"?num_max_invoices="+(B.payload.num_max_invoices?B.payload.num_max_invoices:1e6)+"&index_offset="+(B.payload.index_offset?B.payload.index_offset:0)+"&reversed="+(!B.payload.reversed||B.payload.reversed)).pipe((0,R.U)(Fe=>(this.logger.info(Fe),this.store.dispatch((0,U.Ni)({payload:{action:"FetchInvoices",status:D.Bn.COMPLETED}})),{type:D.sW.SET_INVOICES_CL,payload:Fe})),(0,o.K)(Fe=>(this.handleErrorWithoutAlert("FetchInvoices",D.m6.NO_SPINNER,"Fetching Invoices Failed.",Fe),(0,v.of)({type:D.pg.VOID})))))))),this.offersFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.FETCH_OFFERS_CL),(0,C.z)(B=>(this.store.dispatch((0,U.Ni)({payload:{action:"FetchOffers",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.OFFERS_API).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,U.Ni)({payload:{action:"FetchOffers",status:D.Bn.COMPLETED}})),{type:D.sW.SET_OFFERS_CL,payload:te.offers?te.offers:[]})),(0,o.K)(te=>(this.handleErrorWithoutAlert("FetchOffers",D.m6.NO_SPINNER,"Fetching Offers Failed.",te),(0,v.of)({type:D.pg.VOID})))))))),this.offersDisableCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.DISABLE_OFFER_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:D.m6.DISABLE_OFFER})),this.store.dispatch((0,U.Ni)({payload:{action:"DisableOffer",status:D.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+T.NZ.OFFERS_API+"/"+B.payload.offer_id).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,U.Ni)({payload:{action:"DisableOffer",status:D.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:D.m6.DISABLE_OFFER})),this.store.dispatch((0,w.jW)({payload:"Offer Disabled Successfully!"})),{type:D.sW.UPDATE_OFFER_CL,payload:{offer:te}})),(0,o.K)(te=>(this.handleErrorWithoutAlert("DisableOffer",D.m6.DISABLE_OFFER,"Disabling Offer Failed.",te),(0,v.of)({type:D.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.FETCH_OFFER_BOOKMARKS_CL),(0,C.z)(B=>(this.store.dispatch((0,U.Ni)({payload:{action:"FetchOfferBookmarks",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.OFFERS_API+"/offerbookmarks").pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,U.Ni)({payload:{action:"FetchOfferBookmarks",status:D.Bn.COMPLETED}})),{type:D.sW.SET_OFFER_BOOKMARKS_CL,payload:te||[]})),(0,o.K)(te=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",D.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",te),(0,v.of)({type:D.pg.VOID})))))))),this.peidOffersDeleteCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.DELETE_OFFER_BOOKMARK_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:D.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,U.Ni)({payload:{action:"DeleteOfferBookmark",status:D.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+T.NZ.OFFERS_API+"/offerbookmark/"+B.payload.bolt12).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,U.Ni)({payload:{action:"DeleteOfferBookmark",status:D.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:D.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,w.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:D.sW.REMOVE_OFFER_BOOKMARK_CL,payload:{bolt12:B.payload.bolt12}})),(0,o.K)(te=>(this.handleErrorWithAlert("DeleteOfferBookmark",D.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+T.NZ.OFFERS_API+"/offerbookmark/"+B.payload.bolt12,te),(0,v.of)({type:D.pg.VOID})))))))),this.SetChannelTransactionCL=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.SET_CHANNEL_TRANSACTION_CL),(0,C.z)(B=>(this.store.dispatch((0,w.ac)({payload:D.m6.SEND_FUNDS})),this.store.dispatch((0,U.Ni)({payload:{action:"SetChannelTransaction",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+T.NZ.ON_CHAIN_API,B.payload).pipe((0,R.U)(te=>(this.logger.info(te),this.store.dispatch((0,U.Ni)({payload:{action:"SetChannelTransaction",status:D.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:D.m6.SEND_FUNDS})),this.store.dispatch((0,U.EG)()),this.store.dispatch((0,U.Ly)()),{type:D.sW.SET_CHANNEL_TRANSACTION_RES_CL,payload:te})),(0,o.K)(te=>(this.handleErrorWithoutAlert("SetChannelTransaction",D.m6.SEND_FUNDS,"Sending Fund Failed.",te),(0,v.of)({type:D.pg.VOID})))))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(D.sW.FETCH_UTXOS_CL),(0,C.z)(()=>(this.store.dispatch((0,U.Ni)({payload:{action:"FetchUTXOs",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+T.NZ.ON_CHAIN_API+"/utxos"))),(0,R.U)(B=>(this.logger.info(B),this.store.dispatch((0,U.Ni)({payload:{action:"FetchUTXOs",status:D.Bn.COMPLETED}})),{type:D.sW.SET_UTXOS_CL,payload:B.outputs||[]})),(0,o.K)(B=>(this.handleErrorWithoutAlert("FetchUTXOs",D.m6.NO_SPINNER,"Fetching UTXOs Failed.",B),(0,v.of)({type:D.pg.VOID}))))),this.store.select(G.yA).pipe((0,c.R)(this.unSubs[0])).subscribe(B=>{B.FetchInfo.status!==D.Bn.COMPLETED&&B.FetchInfo.status!==D.Bn.ERROR||B.FetchFees.status!==D.Bn.COMPLETED&&B.FetchFees.status!==D.Bn.ERROR||B.FetchChannels.status!==D.Bn.COMPLETED&&B.FetchChannels.status!==D.Bn.ERROR||B.FetchBalance.status!==D.Bn.COMPLETED&&B.FetchBalance.status!==D.Bn.ERROR||B.FetchLocalRemoteBalance.status!==D.Bn.COMPLETED&&B.FetchLocalRemoteBalance.status!==D.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,w.uO)({payload:D.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,c.R)(this.unSubs[1])).subscribe(B=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(B)),B)switch(B.event){case D.U5.INVOICE:this.logger.info(B),B&&B.data&&B.data.label&&this.store.dispatch((0,U.aL)({payload:B.data}));break;case D.U5.SEND_PAYMENT:case D.U5.BLOCK_HEIGHT:this.logger.info(B);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(B))}})}initializeRemainingData(u,_){this.sessionService.setItem("clUnlocked","true");const L={identity_pubkey:u.id,alias:u.alias,testnet:"testnet"===u.network.toLowerCase(),chains:u.chains,uris:u.uris,version:u.version,api_version:u.api_version,numberOfPendingChannels:u.num_pending_channels};this.store.dispatch((0,w.ac)({payload:D.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,w._V)({payload:L}));let I=this.location.path();I.includes("/lnd/")?I=I.replace("/lnd/","/cl/"):I.includes("/ecl/")&&(I=I.replace("/ecl/","/cl/")),(I.includes("/login")||I.includes("/error")||""===I||"HOME"===_||I.includes("?access-key="))&&(I="/cl/home"),this.router.navigate([I]),this.store.dispatch((0,U.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,U.SN)()),this.store.dispatch((0,U.UR)()),this.store.dispatch((0,U.EG)()),this.store.dispatch((0,U.g3)()),this.store.dispatch((0,U.HJ)({payload:"perkw"})),this.store.dispatch((0,U.HJ)({payload:"perkb"})),this.store.dispatch((0,U.$W)()),this.store.dispatch((0,U.Ly)()),this.store.dispatch((0,U.cQ)())}handleErrorWithoutAlert(u,_,L,I){if(this.logger.error("ERROR IN: "+u+"\n"+JSON.stringify(I)),401===I.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,w.uO)({payload:_}));const x=this.commonService.extractErrorMessage(I,L);this.store.dispatch((0,U.Ni)({payload:{action:u,status:D.Bn.ERROR,statusCode:I.status.toString(),message:x}}))}}handleErrorWithAlert(u,_,L,I,x){if(this.logger.error(x),401===x.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,w.uO)({payload:_}));const r=this.commonService.extractErrorMessage(x);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:L,message:{code:x.status,message:r,URL:I},component:P.H}}})),this.store.dispatch((0,U.Ni)({payload:{action:u,status:D.Bn.ERROR,statusCode:x.status.toString(),message:r,URL:I}}))}}ngOnDestroy(){this.unSubs.forEach(u=>{u.next(null),u.complete()})}}return a.\u0275fac=function(u){return new(u||a)(ee.LFG(e.eX),ee.LFG(ie.eN),ee.LFG(_e.yh),ee.LFG(fe.m),ee.LFG(de.v),ee.LFG(ne.mQ),ee.LFG(se.F0),ee.LFG(oe.d),ee.LFG(y.Ye))},a.\u0275prov=ee.Yz7({token:a,factory:a.\u0275fac}),a})()},7080:(Ue,K,m)=>{"use strict";m.d(K,{Jo:()=>v,W3:()=>M,yA:()=>C,PP:()=>c,Wi:()=>R,JG:()=>o,zm:()=>O,hx:()=>T,gc:()=>P,T4:()=>S,ZW:()=>D,Rn:()=>w,Wj:()=>U,Bo:()=>G,xQ:()=>W,OL:()=>ee,jK:()=>ie,Ao:()=>_e,Hz:()=>fe,Y_:()=>de,EQ:()=>ne});var e=m(5620);const t=(0,e.ZF)("cl"),v=(0,e.P1)(t,oe=>oe.nodeSettings),M=(0,e.P1)(t,oe=>oe.information),C=((0,e.P1)(t,oe=>oe.apisCallStatus.FetchInfo),(0,e.P1)(t,oe=>oe.apisCallStatus)),c=(0,e.P1)(t,oe=>({payments:oe.payments,apiCallStatus:oe.apisCallStatus.FetchPayments})),R=(0,e.P1)(t,oe=>({peers:oe.peers,apiCallStatus:oe.apisCallStatus.FetchPeers})),o=(0,e.P1)(t,oe=>({fees:oe.fees,apiCallStatus:oe.apisCallStatus.FetchFees})),O=(0,e.P1)(t,oe=>({feeRatesPerKB:oe.feeRatesPerKB,apiCallStatus:oe.apisCallStatus.FetchFeeRatesperkb})),T=(0,e.P1)(t,oe=>({feeRatesPerKW:oe.feeRatesPerKW,apiCallStatus:oe.apisCallStatus.FetchFeeRatesperkw})),P=(0,e.P1)(t,oe=>({listInvoices:oe.invoices,apiCallStatus:oe.apisCallStatus.FetchInvoices})),S=(0,e.P1)(t,oe=>({utxos:oe.utxos,apiCallStatus:oe.apisCallStatus.FetchUTXOs})),D=(0,e.P1)(t,oe=>({activeChannels:oe.activeChannels,pendingChannels:oe.pendingChannels,inactiveChannels:oe.inactiveChannels,apiCallStatus:oe.apisCallStatus.FetchChannels})),w=(0,e.P1)(t,oe=>({balance:oe.balance,apiCallStatus:oe.apisCallStatus.FetchBalance})),U=(0,e.P1)(t,oe=>({localRemoteBalance:oe.localRemoteBalance,apiCallStatus:oe.apisCallStatus.FetchLocalRemoteBalance})),G=(0,e.P1)(t,oe=>({forwardingHistory:oe.forwardingHistory,apiCallStatus:oe.apisCallStatus.FetchForwardingHistory})),W=(0,e.P1)(t,oe=>({failedForwardingHistory:oe.failedForwardingHistory,apiCallStatus:oe.apisCallStatus.FetchFailedForwardingHistory})),ee=(0,e.P1)(t,oe=>({information:oe.information,nodeSettings:oe.nodeSettings,balance:oe.balance})),ie=(0,e.P1)(t,oe=>({information:oe.information,balance:oe.balance,numPeers:oe.peers.length})),_e=(0,e.P1)(t,oe=>({information:oe.information,balance:oe.balance})),fe=(0,e.P1)(t,oe=>({information:oe.information,nodeSettings:oe.nodeSettings,apisCallStatus:[oe.apisCallStatus.FetchInfo,oe.apisCallStatus.FetchForwardingHistory]})),de=(0,e.P1)(t,oe=>({offers:oe.offers,apiCallStatus:oe.apisCallStatus.FetchOffers})),ne=(0,e.P1)(t,oe=>({offersBookmarks:oe.offersBookmarks,apiCallStatus:oe.apisCallStatus.FetchOfferBookmarks}))},1954:(Ue,K,m)=>{"use strict";m.d(K,{$:()=>yt});var e=m(8966),t=m(801),v=m(7579),M=m(2722),s=m(7731),C=m(7080),c=m(5e3),R=m(5043),o=m(62),O=m(7261),T=m(5620),P=m(7093),S=m(9808),D=m(3322),w=m(9224),U=m(9444),G=m(7423),W=m(4834),ee=m(159),ie=m(7238),_e=m(773),fe=m(3390),de=m(6895);function ne(Ne,Ve){if(1&Ne&&c._UZ(0,"qr-code",33),2&Ne){const ue=c.oxw();c.Q6J("value",(null==ue.invoice?null:ue.invoice.bolt11)||(null==ue.invoice?null:ue.invoice.bolt12))("size",ue.qrWidth)("errorCorrectionLevel","L")}}function se(Ne,Ve){1&Ne&&(c.TgZ(0,"span",34),c._uU(1,"N/A"),c.qZA())}const oe=function(Ne){return{"mr-0":Ne}};function y(Ne,Ve){if(1&Ne&&c._UZ(0,"span",35),2&Ne){const ue=c.oxw();c.Q6J("ngClass",c.VKq(1,oe,ue.screenSize===ue.screenSizeEnum.XS))}}function i(Ne,Ve){if(1&Ne&&c._UZ(0,"span",36),2&Ne){const ue=c.oxw();c.Q6J("ngClass",c.VKq(1,oe,ue.screenSize===ue.screenSizeEnum.XS))}}function a(Ne,Ve){if(1&Ne&&c._UZ(0,"span",37),2&Ne){const ue=c.oxw();c.Q6J("ngClass",c.VKq(1,oe,ue.screenSize===ue.screenSizeEnum.XS))}}function p(Ne,Ve){if(1&Ne&&c._UZ(0,"qr-code",33),2&Ne){const ue=c.oxw();c.Q6J("value",(null==ue.invoice?null:ue.invoice.bolt11)||(null==ue.invoice?null:ue.invoice.bolt12))("size",ue.qrWidth)("errorCorrectionLevel","L")}}function u(Ne,Ve){1&Ne&&(c.TgZ(0,"span",38),c._uU(1,"QR Code Not Applicable"),c.qZA())}function _(Ne,Ve){1&Ne&&c._UZ(0,"mat-divider",39),2&Ne&&c.Q6J("inset",!0)}function L(Ne,Ve){if(1&Ne&&(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&Ne){const ue=c.oxw();c.xp6(2),c.Q6J("icon",ue.faExclamationTriangle),c.xp6(2),c.Oqu(null==ue.invoice?null:ue.invoice.warning_capacity)}}function I(Ne,Ve){1&Ne&&(c.ynx(0),c._uU(1," (zero amount) "),c.BQk())}function x(Ne,Ve){1&Ne&&c._UZ(0,"span",47)}const r=function(){return[]};function b(Ne,Ve){if(1&Ne&&(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&Ne){const ue=c.oxw(2);c.xp6(3),c.hij("",c.lcZ(4,2,(null==ue.invoice?null:ue.invoice.msatoshi_received)/1e3)," Sats"),c.xp6(2),c.Q6J("ngForOf",c.DdM(4,r).constructor(35))}}function J(Ne,Ve){if(1&Ne&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"number"),c.qZA()),2&Ne){const ue=c.oxw(2);c.xp6(1),c.hij("",c.lcZ(2,1,(null==ue.invoice?null:ue.invoice.msatoshi_received)/1e3)," Sats")}}function F(Ne,Ve){if(1&Ne&&(c.ynx(0),c.YNc(1,b,6,5,"div",42),c.YNc(2,J,3,3,"div",23),c.BQk()),2&Ne){const ue=c.oxw();c.xp6(1),c.Q6J("ngIf",ue.flgInvoicePaid),c.xp6(1),c.Q6J("ngIf",!ue.flgInvoicePaid)}}function B(Ne,Ve){1&Ne&&(c.TgZ(0,"span"),c._uU(1,"-"),c.qZA())}function te(Ne,Ve){1&Ne&&c._UZ(0,"mat-spinner",49),2&Ne&&c.Q6J("diameter",20)}function xe(Ne,Ve){if(1&Ne&&(c.ynx(0),c.YNc(1,B,2,0,"span",23),c.YNc(2,te,1,1,"mat-spinner",48),c.BQk()),2&Ne){const ue=c.oxw();c.xp6(1),c.Q6J("ngIf","unpaid"!==(null==ue.invoice?null:ue.invoice.status)||!ue.flgVersionCompatible),c.xp6(1),c.Q6J("ngIf","unpaid"===(null==ue.invoice?null:ue.invoice.status)&&ue.flgVersionCompatible)}}function Pe(Ne,Ve){if(1&Ne&&(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&Ne){const ue=c.oxw();c.xp6(7),c.Oqu(null==ue.invoice?null:ue.invoice.payment_hash),c.xp6(7),c.Oqu(null==ue.invoice?null:ue.invoice.label)}}function Fe(Ne,Ve){1&Ne&&(c.TgZ(0,"p"),c._uU(1,"Show Advanced"),c.qZA())}function q(Ne,Ve){1&Ne&&(c.TgZ(0,"p"),c._uU(1,"Hide Advanced"),c.qZA())}function j(Ne,Ve){if(1&Ne){const ue=c.EpF();c.TgZ(0,"button",50),c.NdJ("copied",function(ke){return c.CHM(ue),c.oxw().onCopyPayment(ke)}),c._uU(1,"Copy Invoice"),c.qZA()}if(2&Ne){const ue=c.oxw();c.Q6J("payload",(null==ue.invoice?null:ue.invoice.bolt11)||(null==ue.invoice?null:ue.invoice.bolt12))}}function we(Ne,Ve){if(1&Ne){const ue=c.EpF();c.TgZ(0,"button",51),c.NdJ("click",function(){return c.CHM(ue),c.oxw().onClose()}),c._uU(1,"OK"),c.qZA()}}const Ae=function(Ne){return{"display-none":Ne}},le=function(Ne){return{"xs-scroll-y":Ne}},We=function(Ne,Ve){return{"mt-2":Ne,"mt-1":Ve}};let yt=(()=>{class Ne{constructor(ue,Te,ke,Y,X,he){this.dialogRef=ue,this.data=Te,this.logger=ke,this.commonService=Y,this.snackBar=X,this.store=he,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(C.W3).pipe((0,M.R)(this.unSubs[0])).subscribe(ue=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ue.api_version,"0.6.0")}),this.store.select(C.gc).pipe((0,M.R)(this.unSubs[1])).subscribe(ue=>{const Te=this.invoice.status;this.invoice=(ue.listInvoices.invoices||[]).find(Y=>Y.payment_hash===this.invoice.payment_hash),Te!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ue)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(ue){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+ue)}ngOnDestroy(){this.unSubs.forEach(ue=>{ue.next(null),ue.complete()})}}return Ne.\u0275fac=function(ue){return new(ue||Ne)(c.Y36(e.so),c.Y36(e.WI),c.Y36(R.mQ),c.Y36(o.v),c.Y36(O.ux),c.Y36(T.yh))},Ne.\u0275cmp=c.Xpm({type:Ne,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(ue,Te){if(1&ue&&(c.TgZ(0,"div",0),c.TgZ(1,"div",1),c.YNc(2,ne,1,3,"qr-code",2),c.YNc(3,se,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 Te.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,L,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,F,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,Pe,16,2,"div",23),c.TgZ(65,"div",27),c.TgZ(66,"button",28),c.NdJ("click",function(){return Te.onShowAdvanced()}),c.YNc(67,Fe,2,0,"p",29),c.YNc(68,q,2,0,"ng-template",null,30,c.W1O),c.qZA(),c.YNc(70,j,2,1,"button",31),c.YNc(71,we,2,0,"button",32),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&ue){const ke=c.MAs(69);c.xp6(1),c.Q6J("fxLayoutAlign",null!=Te.invoice&&Te.invoice.bolt11&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||null!=Te.invoice&&Te.invoice.bolt12&&""!==(null==Te.invoice?null:Te.invoice.bolt12)?"center start":"center center")("ngClass",c.VKq(40,Ae,Te.screenSize===Te.screenSizeEnum.XS||Te.screenSize===Te.screenSizeEnum.SM)),c.xp6(1),c.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),c.xp6(1),c.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12)),c.xp6(4),c.Q6J("icon",Te.faReceipt),c.xp6(2),c.hij(" ",Te.screenSize===Te.screenSizeEnum.XS?Te.newlyAdded?"Created":"Invoice":Te.newlyAdded?"Invoice Created":"Invoice Information"," "),c.xp6(1),c.Q6J("ngIf","paid"===(null==Te.invoice?null:Te.invoice.status)),c.xp6(1),c.Q6J("ngIf","unpaid"===(null==Te.invoice?null:Te.invoice.status)),c.xp6(1),c.Q6J("ngIf","expired"===(null==Te.invoice?null:Te.invoice.status)),c.xp6(3),c.Q6J("ngClass",c.VKq(42,le,Te.screenSize===Te.screenSizeEnum.XS)),c.xp6(2),c.Q6J("fxLayoutAlign",null!=Te.invoice&&Te.invoice.bolt11&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||null!=Te.invoice&&Te.invoice.bolt12&&""!==(null==Te.invoice?null:Te.invoice.bolt12)?"center start":"center center")("ngClass",c.VKq(44,Ae,Te.screenSize!==Te.screenSizeEnum.XS&&Te.screenSize!==Te.screenSizeEnum.SM)),c.xp6(1),c.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),c.xp6(1),c.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12)),c.xp6(1),c.Q6J("ngIf",Te.screenSize===Te.screenSizeEnum.XS||Te.screenSize===Te.screenSizeEnum.SM),c.xp6(1),c.Q6J("ngIf",null==Te.invoice?null:Te.invoice.warning_capacity),c.xp6(4),c.Oqu(Te.screenSize===Te.screenSizeEnum.XS?"Amount":"Amount Requested"),c.xp6(2),c.hij(" ",c.lcZ(28,32,(null==Te.invoice?null:Te.invoice.msatoshi)/1e3||0)," Sats"),c.xp6(2),c.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.msatoshi)||"0"===(null==Te.invoice?null:Te.invoice.msatoshi)),c.xp6(5),c.Q6J("ngIf","paid"===(null==Te.invoice?null:Te.invoice.status)),c.xp6(1),c.Q6J("ngIf","paid"!==(null==Te.invoice?null:Te.invoice.status)),c.xp6(7),c.Oqu(c.xi3(43,34,1e3*(null==Te.invoice?null:Te.invoice.expires_at),"dd/MMM/y HH:mm")),c.xp6(6),c.Oqu(c.xi3(49,37,1e3*(null==Te.invoice?null:Te.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),c.xp6(8),c.Oqu((null==Te.invoice?null:Te.invoice.description)||"-"),c.xp6(5),c.hij("",null!=Te.invoice&&Te.invoice.bolt12?"Bolt12":null!=Te.invoice&&Te.invoice.bolt11&&!Te.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),c.xp6(2),c.Oqu((null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)),c.xp6(1),c.Q6J("ngIf",Te.showAdvanced),c.xp6(1),c.Q6J("ngClass",c.WLB(46,We,!Te.showAdvanced,Te.showAdvanced)),c.xp6(2),c.Q6J("ngIf",!Te.showAdvanced)("ngIfElse",ke),c.xp6(3),c.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),c.xp6(1),c.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12))}},directives:[P.xw,P.Wh,P.yH,S.mk,D.oO,S.O5,w.dk,U.BN,G.lW,w.dn,W.d,ee.uU,ie.gM,S.sg,_e.$g,fe.h,de.y],pipes:[S.JJ,S.uU],styles:[""]}),Ne})()},1189:(Ue,K,m)=>{"use strict";m.d(K,{V:()=>B});var e=m(8966),t=m(801),v=m(7579),M=m(2722),s=m(7731),C=m(7080),c=m(5e3),R=m(5043),o=m(62),O=m(7261),T=m(5620),P=m(8104),S=m(7093),D=m(9808),w=m(3322),U=m(9224),G=m(9444),W=m(7423),ee=m(4834),ie=m(159),_e=m(3390),fe=m(6895);function de(te,xe){if(1&te&&c._UZ(0,"qr-code",28),2&te){const Pe=c.oxw();c.Q6J("value",null==Pe.offer?null:Pe.offer.bolt12)("size",Pe.qrWidth)("errorCorrectionLevel","L")}}function ne(te,xe){1&te&&(c.TgZ(0,"span",29),c._uU(1,"N/A"),c.qZA())}function se(te,xe){if(1&te&&c._UZ(0,"qr-code",28),2&te){const Pe=c.oxw();c.Q6J("value",null==Pe.offer?null:Pe.offer.bolt12)("size",Pe.qrWidth)("errorCorrectionLevel","L")}}function oe(te,xe){1&te&&(c.TgZ(0,"span",30),c._uU(1,"QR Code Not Applicable"),c.qZA())}function y(te,xe){1&te&&c._UZ(0,"mat-divider",31),2&te&&c.Q6J("inset",!0)}function i(te,xe){1&te&&c._UZ(0,"mat-divider",19)}function a(te,xe){if(1&te&&(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&te){const Pe=c.oxw(2);c.xp6(5),c.hij(" ",null!=Pe.offer&&Pe.offer.used?null!=Pe.offer&&Pe.offer.used?"Yes":"No":"N/K"," "),c.xp6(5),c.hij(" ",null!=Pe.offer&&Pe.offer.single_use?null!=Pe.offer&&Pe.offer.single_use?"Yes":"No":"N/K"," ")}}function p(te,xe){1&te&&c._UZ(0,"mat-divider",19)}function u(te,xe){if(1&te&&(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&te){const Pe=c.oxw(2);c.xp6(5),c.Oqu((null==Pe.offerDecoded?null:Pe.offerDecoded.vendor)||(null==Pe.offerDecoded?null:Pe.offerDecoded.issuer))}}function _(te,xe){if(1&te&&(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&te){const Pe=c.oxw();c.xp6(1),c.Q6J("ngIf",(null==Pe.offer?null:Pe.offer.used)||(null==Pe.offer?null:Pe.offer.single_use)),c.xp6(1),c.Q6J("ngIf",(null==Pe.offer?null:Pe.offer.used)||(null==Pe.offer?null:Pe.offer.single_use)),c.xp6(1),c.Q6J("ngIf",(null==Pe.offerDecoded?null:Pe.offerDecoded.vendor)||(null==Pe.offerDecoded?null:Pe.offerDecoded.issuer)),c.xp6(1),c.Q6J("ngIf",(null==Pe.offerDecoded?null:Pe.offerDecoded.vendor)||(null==Pe.offerDecoded?null:Pe.offerDecoded.issuer)),c.xp6(7),c.Oqu(Pe.offerDecoded.offer_id)}}function L(te,xe){1&te&&(c.TgZ(0,"p"),c._uU(1,"Show Advanced"),c.qZA())}function I(te,xe){1&te&&(c.TgZ(0,"p"),c._uU(1,"Hide Advanced"),c.qZA())}function x(te,xe){if(1&te){const Pe=c.EpF();c.TgZ(0,"button",35),c.NdJ("copied",function(q){return c.CHM(Pe),c.oxw().onCopyOffer(q)}),c._uU(1,"Copy Offer"),c.qZA()}if(2&te){const Pe=c.oxw();c.Q6J("payload",null==Pe.offer?null:Pe.offer.bolt12)}}function r(te,xe){if(1&te){const Pe=c.EpF();c.TgZ(0,"button",36),c.NdJ("click",function(){return c.CHM(Pe),c.oxw().onClose()}),c._uU(1,"OK"),c.qZA()}}const b=function(te){return{"display-none":te}},J=function(te){return{"xs-scroll-y":te}},F=function(te,xe){return{"mt-2":te,"mt-1":xe}};let B=(()=>{class te{constructor(Pe,Fe,q,j,we,Ae,le){this.dialogRef=Pe,this.data=Fe,this.logger=q,this.commonService=j,this.snackBar=we,this.store=Ae,this.dataService=le,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(C.W3).pipe((0,M.R)(this.unSubs[0])).subscribe(Pe=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Pe.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,M.R)(this.unSubs[1])).subscribe(Pe=>{this.offerDecoded=Pe,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(Pe){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+Pe)}ngOnDestroy(){this.unSubs.forEach(Pe=>{Pe.next(null),Pe.complete()})}}return te.\u0275fac=function(Pe){return new(Pe||te)(c.Y36(e.so),c.Y36(e.WI),c.Y36(R.mQ),c.Y36(o.v),c.Y36(O.ux),c.Y36(T.yh),c.Y36(P.D))},te.\u0275cmp=c.Xpm({type:te,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(Pe,Fe){if(1&Pe&&(c.TgZ(0,"div",0),c.TgZ(1,"div",1),c.YNc(2,de,1,3,"qr-code",2),c.YNc(3,ne,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 Fe.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,se,1,3,"qr-code",2),c.YNc(16,oe,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 Fe.onShowAdvanced()}),c.YNc(47,L,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&Pe){const q=c.MAs(49);c.xp6(1),c.Q6J("fxLayoutAlign",null!=Fe.offer&&Fe.offer.bolt12&&""!==(null==Fe.offer?null:Fe.offer.bolt12)?"center start":"center center")("ngClass",c.VKq(24,b,Fe.screenSize===Fe.screenSizeEnum.XS||Fe.screenSize===Fe.screenSizeEnum.SM)),c.xp6(1),c.Q6J("ngIf",(null==Fe.offer?null:Fe.offer.bolt12)&&""!==(null==Fe.offer?null:Fe.offer.bolt12)),c.xp6(1),c.Q6J("ngIf",!(null!=Fe.offer&&Fe.offer.bolt12)||""===(null==Fe.offer?null:Fe.offer.bolt12)),c.xp6(4),c.Q6J("icon",Fe.faReceipt),c.xp6(2),c.Oqu(Fe.screenSize===Fe.screenSizeEnum.XS?Fe.newlyAdded?"Created":"Offer":Fe.newlyAdded?"Offer Created":"Offer Information"),c.xp6(3),c.Q6J("ngClass",c.VKq(26,J,Fe.screenSize===Fe.screenSizeEnum.XS)),c.xp6(2),c.Q6J("fxLayoutAlign",null!=Fe.offer&&Fe.offer.bolt12&&""!==(null==Fe.offer?null:Fe.offer.bolt12)?"center start":"center center")("ngClass",c.VKq(28,b,Fe.screenSize!==Fe.screenSizeEnum.XS&&Fe.screenSize!==Fe.screenSizeEnum.SM)),c.xp6(1),c.Q6J("ngIf",(null==Fe.offer?null:Fe.offer.bolt12)&&""!==(null==Fe.offer?null:Fe.offer.bolt12)),c.xp6(1),c.Q6J("ngIf",!(null!=Fe.offer&&Fe.offer.bolt12)||""===(null==Fe.offer?null:Fe.offer.bolt12)),c.xp6(1),c.Q6J("ngIf",Fe.screenSize===Fe.screenSizeEnum.XS||Fe.screenSize===Fe.screenSizeEnum.SM),c.xp6(6),c.hij(" ",null!=Fe.offerDecoded&&Fe.offerDecoded.amount_msat&&0!==(null==Fe.offerDecoded?null:Fe.offerDecoded.amount)?c.lcZ(24,22,(null==Fe.offerDecoded?null:Fe.offerDecoded.amount)/1e3):"Open Offer"," "),c.xp6(6),c.hij(" ",null!=Fe.offer&&Fe.offer.active?null!=Fe.offer&&Fe.offer.active?"Active":"Inactive":"N/K"," "),c.xp6(7),c.hij(" ",null==Fe.offerDecoded?null:Fe.offerDecoded.description," "),c.xp6(7),c.Oqu(null==Fe.offer?null:Fe.offer.bolt12),c.xp6(1),c.Q6J("ngIf",Fe.showAdvanced),c.xp6(1),c.Q6J("ngClass",c.WLB(30,F,!Fe.showAdvanced,Fe.showAdvanced)),c.xp6(2),c.Q6J("ngIf",!Fe.showAdvanced)("ngIfElse",q),c.xp6(3),c.Q6J("ngIf",(null==Fe.offer?null:Fe.offer.bolt12)&&""!==(null==Fe.offer?null:Fe.offer.bolt12)),c.xp6(1),c.Q6J("ngIf",!(null!=Fe.offer&&Fe.offer.bolt12)||""===(null==Fe.offer?null:Fe.offer.bolt12))}},directives:[S.xw,S.Wh,S.yH,D.mk,w.oO,D.O5,U.dk,G.BN,W.lW,U.dn,ee.d,ie.uU,_e.h,fe.y],pipes:[D.JJ],styles:[""]}),te})()},2994:(Ue,K,m)=>{"use strict";m.d(K,{QZ:()=>v,Fd:()=>M,Zr:()=>s,iz:()=>C,CX:()=>c,SN:()=>R,RX:()=>o,UR:()=>O,eN:()=>T,TW:()=>P,i:()=>S,iL:()=>D,Bw:()=>w,On:()=>U,HG:()=>G,$W:()=>W,Z8:()=>ee,El:()=>ie,GD:()=>de,EK:()=>ne,_E:()=>se,YX:()=>y,pW:()=>i,BL:()=>a,OG:()=>p,cQ:()=>u,HI:()=>_,WO:()=>L,kL:()=>I,oV:()=>x,TM:()=>r,mC:()=>b,Lf:()=>J,Iy:()=>F,WM:()=>te,Nr:()=>xe,Z$:()=>Pe,YP:()=>Fe,aL:()=>q,Sf:()=>j,n7:()=>we,DJ:()=>le,ti:()=>We});var e=m(5620),t=m(7731);const v=(0,e.PH)(t.lr.UPDATE_API_CALL_STATUS_ECL,(0,e.Ky)()),M=(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)()),C=(0,e.PH)(t.lr.FETCH_INFO_ECL,(0,e.Ky)()),c=(0,e.PH)(t.lr.SET_INFO_ECL,(0,e.Ky)()),R=(0,e.PH)(t.lr.FETCH_FEES_ECL),o=(0,e.PH)(t.lr.SET_FEES_ECL,(0,e.Ky)()),O=(0,e.PH)(t.lr.FETCH_CHANNELS_ECL,(0,e.Ky)()),T=(0,e.PH)(t.lr.SET_ACTIVE_CHANNELS_ECL,(0,e.Ky)()),P=(0,e.PH)(t.lr.SET_PENDING_CHANNELS_ECL,(0,e.Ky)()),S=(0,e.PH)(t.lr.SET_INACTIVE_CHANNELS_ECL,(0,e.Ky)()),D=(0,e.PH)(t.lr.FETCH_ONCHAIN_BALANCE_ECL),w=(0,e.PH)(t.lr.SET_ONCHAIN_BALANCE_ECL,(0,e.Ky)()),U=(0,e.PH)(t.lr.SET_LIGHTNING_BALANCE_ECL,(0,e.Ky)()),G=(0,e.PH)(t.lr.SET_CHANNELS_STATUS_ECL,(0,e.Ky)()),W=(0,e.PH)(t.lr.FETCH_PEERS_ECL),ee=(0,e.PH)(t.lr.SET_PEERS_ECL,(0,e.Ky)()),ie=(0,e.PH)(t.lr.SAVE_NEW_PEER_ECL,(0,e.Ky)()),de=((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)())),ne=(0,e.PH)(t.lr.REMOVE_PEER_ECL,(0,e.Ky)()),se=(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)()),L=(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),J=(0,e.PH)(t.lr.SET_TRANSACTIONS_ECL,(0,e.Ky)()),F=(0,e.PH)(t.lr.SEND_ONCHAIN_FUNDS_ECL,(0,e.Ky)()),te=((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)()),Pe=(0,e.PH)(t.lr.CREATE_INVOICE_ECL,(0,e.Ky)()),Fe=(0,e.PH)(t.lr.ADD_INVOICE_ECL,(0,e.Ky)()),q=(0,e.PH)(t.lr.UPDATE_INVOICE_ECL,(0,e.Ky)()),j=(0,e.PH)(t.lr.PEER_LOOKUP_ECL,(0,e.Ky)()),we=(0,e.PH)(t.lr.INVOICE_LOOKUP_ECL,(0,e.Ky)()),le=((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:(Ue,K,m)=>{"use strict";m.d(K,{o:()=>ne});var e=m(6642),t=m(7579),v=m(9646),M=m(5577),s=m(2722),C=m(4004),c=m(262),R=m(2340),o=m(1786),O=m(7731),T=m(7861),P=m(7766),S=m(2994),D=m(2501),w=m(5e3),U=m(8138),G=m(5620),W=m(5986),ee=m(62),ie=m(5043),_e=m(9291),fe=m(7998),de=m(9808);let ne=(()=>{class se{constructor(y,i,a,p,u,_,L,I,x){this.actions=y,this.httpClient=i,this.store=a,this.sessionService=p,this.commonService=u,this.logger=_,this.router=L,this.wsService=I,this.location=x,this.CHILD_API_URL=R.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)(O.lr.FETCH_INFO_ECL),(0,M.z)(r=>(this.flgInitialized=!1,this.store.dispatch((0,T.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,T.ac)({payload:O.m6.GET_NODE_INFO})),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInfo",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,e.l4)(O.pg.SET_SELECTED_NODE))),(0,C.U)(b=>(this.logger.info(b),this.initializeRemainingData(b,r.payload.loadPage),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInfo",status:O.Bn.COMPLETED}})),this.store.dispatch((0,T.uO)({payload:O.m6.GET_NODE_INFO})),{type:O.lr.SET_INFO_ECL,payload:b||{}})),(0,c.K)(b=>{const J=this.commonService.extractErrorCode(b),F=503===J?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(b);return this.router.navigate(["/error"],{state:{errorCode:J,errorMessage:F}}),this.handleErrorWithoutAlert("FetchInfo",O.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:J,error:F}),(0,v.of)({type:O.pg.VOID})})))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.FETCH_FEES_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchFees",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/fees").pipe((0,C.U)(r=>(this.logger.info(r),this.store.dispatch((0,S.QZ)({payload:{action:"FetchFees",status:O.Bn.COMPLETED}})),{type:O.lr.SET_FEES_ECL,payload:r||{}})),(0,c.K)(r=>(this.handleErrorWithoutAlert("FetchFees",O.m6.NO_SPINNER,"Fetching Fees Failed.",r),(0,v.of)({type:O.pg.VOID})))))))),this.fetchPayments=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.FETCH_PAYMENTS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchPayments",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/payments").pipe((0,C.U)(r=>(this.logger.info(r),this.store.dispatch((0,S.QZ)({payload:{action:"FetchPayments",status:O.Bn.COMPLETED}})),{type:O.lr.SET_PAYMENTS_ECL,payload:r||{}})),(0,c.K)(r=>(this.handleErrorWithoutAlert("FetchPayments",O.m6.NO_SPINNER,"Fetching Payments Failed.",r),(0,v.of)({type:O.pg.VOID})))))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.FETCH_CHANNELS_ECL),(0,M.z)(r=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchChannels",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API).pipe((0,C.U)(b=>(this.logger.info(b),this.rawChannelsList=b,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,S.QZ)({payload:{action:"FetchChannels",status:O.Bn.COMPLETED}})),r.payload&&r.payload.fetchPayments&&this.store.dispatch((0,S.cQ)()),{type:O.pg.VOID})),(0,c.K)(b=>(this.handleErrorWithoutAlert("FetchChannels",O.m6.NO_SPINNER,"Fetching Channels Failed.",b),(0,v.of)({type:O.pg.VOID})))))))),this.fetchOnchainBalance=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchOnchainBalance",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/balance"))),(0,C.U)(r=>(this.logger.info(r),this.store.dispatch((0,S.QZ)({payload:{action:"FetchOnchainBalance",status:O.Bn.COMPLETED}})),{type:O.lr.SET_ONCHAIN_BALANCE_ECL,payload:r||{}})),(0,c.K)(r=>(this.handleErrorWithoutAlert("FetchOnchainBalance",O.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",r),(0,v.of)({type:O.pg.VOID}))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.FETCH_PEERS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchPeers",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PEERS_API).pipe((0,C.U)(r=>(this.logger.info(r),this.store.dispatch((0,S.QZ)({payload:{action:"FetchPeers",status:O.Bn.COMPLETED}})),{type:O.lr.SET_PEERS_ECL,payload:r||[]})),(0,c.K)(r=>(this.handleErrorWithoutAlert("FetchPeers",O.m6.NO_SPINNER,"Fetching Peers Failed.",r),(0,v.of)({type:O.pg.VOID})))))))),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.GET_NEW_ADDRESS_ECL),(0,M.z)(()=>(this.store.dispatch((0,T.ac)({payload:O.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API).pipe((0,C.U)(r=>(this.logger.info(r),this.store.dispatch((0,T.uO)({payload:O.m6.GENERATE_NEW_ADDRESS})),{type:O.lr.SET_NEW_ADDRESS_ECL,payload:r})),(0,c.K)(r=>(this.handleErrorWithAlert("GetNewAddress",O.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+R.NZ.ON_CHAIN_API,r),(0,v.of)({type:O.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.SET_NEW_ADDRESS_ECL),(0,C.U)(r=>(this.logger.info(r.payload),r.payload))),{dispatch:!1}),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.SAVE_NEW_PEER_ECL),(0,M.z)(r=>(this.store.dispatch((0,T.ac)({payload:O.m6.CONNECT_PEER})),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewPeer",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PEERS_API+(r.payload.id.includes("@")?"?uri=":"?nodeId=")+r.payload.id,{}).pipe((0,C.U)(b=>(this.logger.info(b),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewPeer",status:O.Bn.COMPLETED}})),b=b||[],this.store.dispatch((0,T.uO)({payload:O.m6.CONNECT_PEER})),this.store.dispatch((0,S.Z8)({payload:b})),{type:O.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:b.find(J=>J.nodeId===(r.payload.id.includes("@")?r.payload.id.substring(0,r.payload.id.indexOf("@")):r.payload.id))}})),(0,c.K)(b=>(this.handleErrorWithoutAlert("SaveNewPeer",O.m6.CONNECT_PEER,"Peer Connection Failed.",b),(0,v.of)({type:O.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.DETACH_PEER_ECL),(0,M.z)(r=>(this.store.dispatch((0,T.ac)({payload:O.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.PEERS_API+"/"+r.payload.nodeId).pipe((0,C.U)(b=>(this.logger.info(b),this.store.dispatch((0,T.uO)({payload:O.m6.DISCONNECT_PEER})),this.store.dispatch((0,T.jW)({payload:"Disconnecting Peer!"})),{type:O.lr.REMOVE_PEER_ECL,payload:{nodeId:r.payload.nodeId}})),(0,c.K)(b=>(this.handleErrorWithAlert("DisconnectPeer",O.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+R.NZ.PEERS_API+"/"+r.payload.nodeId,b),(0,v.of)({type:O.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.SAVE_NEW_CHANNEL_ECL),(0,M.z)(r=>(this.store.dispatch((0,T.ac)({payload:O.m6.OPEN_CHANNEL})),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewChannel",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.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,C.U)(J=>(this.logger.info(J),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewChannel",status:O.Bn.COMPLETED}})),this.store.dispatch((0,S.$W)()),this.store.dispatch((0,S.iL)()),this.store.dispatch((0,T.uO)({payload:O.m6.OPEN_CHANNEL})),this.store.dispatch((0,T.jW)({payload:"Channel Added Successfully!"})),{type:O.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,c.K)(J=>(this.handleErrorWithoutAlert("SaveNewChannel",O.m6.OPEN_CHANNEL,"Opening Channel Failed.",J),(0,v.of)({type:O.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.UPDATE_CHANNEL_ECL),(0,M.z)(r=>{this.store.dispatch((0,T.ac)({payload:O.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+R.NZ.CHANNELS_API+"/updateRelayFee"+b,{}).pipe((0,C.U)(J=>(this.logger.info(J),this.store.dispatch((0,T.uO)({payload:O.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,T.jW)(r.payload.nodeIds||r.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:O.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,c.K)(J=>(this.handleErrorWithAlert("UpdateChannels",O.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API,J),(0,v.of)({type:O.pg.VOID}))))}))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.CLOSE_CHANNEL_ECL),(0,M.z)(r=>(this.store.dispatch((0,T.ac)({payload:r.payload.force?O.m6.FORCE_CLOSE_CHANNEL:O.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.CHANNELS_API+"?channelId="+r.payload.channelId+"&force="+r.payload.force).pipe((0,C.U)(b=>(this.logger.info(b),setTimeout(()=>{this.store.dispatch((0,T.uO)({payload:r.payload.force?O.m6.FORCE_CLOSE_CHANNEL:O.m6.CLOSE_CHANNEL})),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,T.jW)({payload:r.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:O.pg.VOID})),(0,c.K)(b=>(this.handleErrorWithAlert("CloseChannel",r.payload.force?O.m6.FORCE_CLOSE_CHANNEL:O.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+R.NZ.CHANNELS_API,b),(0,v.of)({type:O.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.GET_QUERY_ROUTES_ECL),(0,M.z)(r=>this.httpClient.get(this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+r.payload.nodeId+"&amountMsat="+r.payload.amount).pipe((0,C.U)(b=>(this.logger.info(b),{type:O.lr.SET_QUERY_ROUTES_ECL,payload:b})),(0,c.K)(b=>(this.store.dispatch((0,S.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",O.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+r.payload.nodeId+"&amountMsat="+r.payload.amount,b),(0,v.of)({type:O.pg.VOID}))))))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.SET_QUERY_ROUTES_ECL),(0,C.U)(r=>r.payload)),{dispatch:!1}),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.SEND_PAYMENT_ECL),(0,M.z)(r=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,T.ac)({payload:O.m6.SEND_PAYMENT})),this.store.dispatch((0,S.QZ)({payload:{action:"SendPayment",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PAYMENTS_API,r.payload).pipe((0,C.U)(b=>(this.logger.info(b),this.latestPaymentRes=b,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:O.pg.VOID})),(0,c.K)(b=>(this.logger.error("Error: "+JSON.stringify(b)),r.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",O.m6.SEND_PAYMENT,"Send Payment Failed.",b):this.handleErrorWithAlert("SendPayment",O.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API,b),(0,v.of)({type:O.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.FETCH_TRANSACTIONS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchTransactions",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,C.U)(r=>(this.logger.info(r),this.store.dispatch((0,S.QZ)({payload:{action:"FetchTransactions",status:O.Bn.COMPLETED}})),{type:O.lr.SET_TRANSACTIONS_ECL,payload:r||[]})),(0,c.K)(r=>(this.handleErrorWithoutAlert("FetchTransactions",O.m6.NO_SPINNER,"Fetching Transactions Failed.",r),(0,v.of)({type:O.pg.VOID}))))),this.SendOnchainFunds=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.SEND_ONCHAIN_FUNDS_ECL),(0,M.z)(r=>(this.store.dispatch((0,T.ac)({payload:O.m6.SEND_FUNDS})),this.store.dispatch((0,S.QZ)({payload:{action:"SendOnchainFunds",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.ON_CHAIN_API,r.payload).pipe((0,C.U)(b=>(this.logger.info(b),this.store.dispatch((0,S.QZ)({payload:{action:"SendOnchainFunds",status:O.Bn.COMPLETED}})),this.store.dispatch((0,T.uO)({payload:O.m6.SEND_FUNDS})),this.store.dispatch((0,S.iL)()),{type:O.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:b})),(0,c.K)(b=>(this.handleErrorWithoutAlert("SendOnchainFunds",O.m6.SEND_FUNDS,"Sending Fund Failed.",b),(0,v.of)({type:O.pg.VOID})))))))),this.createInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.CREATE_INVOICE_ECL),(0,M.z)(r=>(this.store.dispatch((0,T.ac)({payload:O.m6.CREATE_INVOICE})),this.store.dispatch((0,S.QZ)({payload:{action:"CreateInvoice",status:O.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.INVOICES_API,r.payload).pipe((0,C.U)(b=>(this.logger.info(b),this.store.dispatch((0,S.QZ)({payload:{action:"CreateInvoice",status:O.Bn.COMPLETED}})),this.store.dispatch((0,T.uO)({payload:O.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,T.qR)({payload:{data:{invoice:b,newlyAdded:!0,component:P.R}}}))},100),{type:O.lr.ADD_INVOICE_ECL,payload:b})),(0,c.K)(b=>(this.handleErrorWithoutAlert("CreateInvoice",O.m6.CREATE_INVOICE,"Create Invoice Failed.",b),(0,v.of)({type:O.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.FETCH_INVOICES_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchInvoices",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API).pipe((0,C.U)(r=>(this.logger.info(r),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInvoices",status:O.Bn.COMPLETED}})),{type:O.lr.SET_INVOICES_ECL,payload:r})),(0,c.K)(r=>(this.handleErrorWithoutAlert("FetchInvoices",O.m6.NO_SPINNER,"Fetching Invoices Failed.",r),(0,v.of)({type:O.pg.VOID})))))))),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.PEER_LOOKUP_ECL),(0,M.z)(r=>(this.store.dispatch((0,T.ac)({payload:O.m6.SEARCHING_NODE})),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+r.payload).pipe((0,C.U)(b=>(this.logger.info(b),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:O.Bn.COMPLETED}})),this.store.dispatch((0,T.uO)({payload:O.m6.SEARCHING_NODE})),{type:O.lr.SET_LOOKUP_ECL,payload:b})),(0,c.K)(b=>(this.handleErrorWithAlert("Lookup",O.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+r.payload,b),(0,v.of)({type:O.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.INVOICE_LOOKUP_ECL),(0,M.z)(r=>(this.store.dispatch((0,T.ac)({payload:O.m6.SEARCHING_INVOICE})),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:O.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"/"+r.payload).pipe((0,C.U)(b=>(this.logger.info(b),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:O.Bn.COMPLETED}})),this.store.dispatch((0,T.uO)({payload:O.m6.SEARCHING_INVOICE})),this.store.dispatch((0,S.aL)({payload:b})),{type:O.lr.SET_LOOKUP_ECL,payload:b})),(0,c.K)(b=>(this.handleErrorWithoutAlert("Lookup",O.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",b),this.store.dispatch((0,T.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,v.of)({type:O.pg.VOID})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(O.lr.SET_LOOKUP_ECL),(0,C.U)(r=>(this.logger.info(r.payload),r.payload))),{dispatch:!1}),this.handleSendPaymentStatus=r=>{this.store.dispatch((0,S.QZ)({payload:{action:"SendPayment",status:O.Bn.COMPLETED}})),this.store.dispatch((0,T.uO)({payload:O.m6.SEND_PAYMENT})),this.store.dispatch((0,S.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,T.jW)({payload:r}))},this.store.select(D.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(r=>{r.FetchInfo.status!==O.Bn.COMPLETED&&r.FetchInfo.status!==O.Bn.ERROR||r.FetchFees.status!==O.Bn.COMPLETED&&r.FetchFees.status!==O.Bn.ERROR||r.FetchOnchainBalance.status!==O.Bn.COMPLETED&&r.FetchOnchainBalance.status!==O.Bn.ERROR||r.FetchChannels.status!==O.Bn.COMPLETED&&r.FetchChannels.status!==O.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,T.uO)({payload:O.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 O.$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 O.$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 O.$v.PAYMENT_RECEIVED:this.store.dispatch((0,S.aL)({payload:r}));break;case O.$v.PAYMENT_RELAYED:delete r.source,this.store.dispatch((0,S.ti)({payload:r}));break;case O.$v.CHANNEL_STATE_CHANGED:"NORMAL"===r.currentState||"CLOSED"===r.currentState?(this.rawChannelsList=this.rawChannelsList.map(J=>(J.channelId===r.channelId&&J.nodeId===r.remoteNodeId&&(J.state=r.currentState),J)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,S.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 _=[],L=[],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," "),L.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(L)),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:L,balances:p,status:I})),this.store.dispatch((0,S.eN)({payload:u})),this.store.dispatch((0,S.TW)({payload:_})),this.store.dispatch((0,S.i)({payload:L})),this.store.dispatch((0,S.On)({payload:p})),this.store.dispatch((0,S.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,T.ac)({payload:O.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,T._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,S.WM)()),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,S.SN)()),this.store.dispatch((0,S.iL)()),this.store.dispatch((0,S.$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,T.ts)()),this.store.dispatch((0,T.kS)()),this.store.dispatch((0,T.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,T.uO)({payload:i})),this.store.dispatch((0,S.QZ)({payload:{action:y,status:O.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,T.ts)()),this.store.dispatch((0,T.kS)()),this.store.dispatch((0,T.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,T.uO)({payload:i}));const _=this.commonService.extractErrorMessage(u);this.store.dispatch((0,T.qR)({payload:{data:{type:"ERROR",alertTitle:a,message:{code:u.status,message:_,URL:p},component:o.H}}})),this.store.dispatch((0,S.QZ)({payload:{action:y,status:O.Bn.ERROR,statusCode:u.status.toString(),message:_,URL:p}}))}}ngOnDestroy(){this.unSubs.forEach(y=>{y.next(null),y.complete()})}}return se.\u0275fac=function(y){return new(y||se)(w.LFG(e.eX),w.LFG(U.eN),w.LFG(G.yh),w.LFG(W.m),w.LFG(ee.v),w.LFG(ie.mQ),w.LFG(_e.F0),w.LFG(fe.d),w.LFG(de.Ye))},se.\u0275prov=w.Yz7({token:se,factory:se.\u0275fac}),se})()},2501:(Ue,K,m)=>{"use strict";m.d(K,{LR:()=>v,yD:()=>M,T$:()=>s,yA:()=>c,PP:()=>R,JG:()=>o,Xz:()=>O,dx:()=>T,Ef:()=>P,Bo:()=>S,kY:()=>D});var e=m(5620);const t=(0,e.ZF)("ecl"),v=(0,e.P1)(t,w=>w.nodeSettings),M=(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)),R=(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})),O=(0,e.P1)(t,w=>({activeChannels:w.activeChannels,pendingChannels:w.pendingChannels,inactiveChannels:w.inactiveChannels,lightningBalance:w.lightningBalance,channelsStatus:w.channelsStatus,apiCallStatus:w.apisCallStatus.FetchChannels})),T=(0,e.P1)(t,w=>({transactions:w.transactions,apiCallStatus:w.apisCallStatus.FetchTransactions})),P=(0,e.P1)(t,w=>({invoices:w.invoices,apiCallStatus:w.apisCallStatus.FetchInvoices})),S=(0,e.P1)(t,w=>({peers:w.peers,apiCallStatus:w.apisCallStatus.FetchPeers})),D=(0,e.P1)(t,w=>({onchainBalance:w.onchainBalance,apiCallStatus:w.apisCallStatus.FetchOnchainBalance}))},7766:(Ue,K,m)=>{"use strict";m.d(K,{R:()=>q});var e=m(8966),t=m(801),v=m(7579),M=m(2722),s=m(7731),C=m(2501),c=m(5e3),R=m(5043),o=m(62),O=m(7261),T=m(5620),P=m(7093),S=m(9808),D=m(3322),w=m(9224),U=m(9444),G=m(7423),W=m(4834),ee=m(159),ie=m(773),_e=m(3390),fe=m(6895);function de(j,we){if(1&j&&c._UZ(0,"qr-code",29),2&j){const Ae=c.oxw();c.Q6J("value",null==Ae.invoice?null:Ae.invoice.serialized)("size",Ae.qrWidth)("errorCorrectionLevel","L")}}function ne(j,we){1&j&&(c.TgZ(0,"span",30),c._uU(1,"N/A"),c.qZA())}function se(j,we){if(1&j&&c._UZ(0,"qr-code",29),2&j){const Ae=c.oxw();c.Q6J("value",null==Ae.invoice?null:Ae.invoice.serialized)("size",Ae.qrWidth)("errorCorrectionLevel","L")}}function oe(j,we){1&j&&(c.TgZ(0,"span",31),c._uU(1,"QR Code Not Applicable"),c.qZA())}function y(j,we){1&j&&c._UZ(0,"mat-divider",32),2&j&&c.Q6J("inset",!0)}function i(j,we){1&j&&(c.ynx(0),c._uU(1," (zero amount) "),c.BQk())}function a(j,we){1&j&&c._UZ(0,"span",38)}const p=function(){return[]};function u(j,we){if(1&j&&(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&j){const Ae=c.oxw(2);c.xp6(3),c.hij("",c.lcZ(4,2,null==Ae.invoice?null:Ae.invoice.amountSettled)," Sats"),c.xp6(2),c.Q6J("ngForOf",c.DdM(4,p).constructor(35))}}function _(j,we){if(1&j&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"number"),c.qZA()),2&j){const Ae=c.oxw(2);c.xp6(1),c.hij("",c.lcZ(2,1,null==Ae.invoice?null:Ae.invoice.amountSettled)," Sats")}}function L(j,we){if(1&j&&(c.ynx(0),c.YNc(1,u,6,5,"div",33),c.YNc(2,_,3,3,"div",19),c.BQk()),2&j){const Ae=c.oxw();c.xp6(1),c.Q6J("ngIf",Ae.flgInvoicePaid),c.xp6(1),c.Q6J("ngIf",!Ae.flgInvoicePaid)}}function I(j,we){1&j&&(c.TgZ(0,"span"),c._uU(1,"-"),c.qZA())}function x(j,we){1&j&&c._UZ(0,"mat-spinner",40),2&j&&c.Q6J("diameter",20)}function r(j,we){if(1&j&&(c.ynx(0),c.YNc(1,I,2,0,"span",19),c.YNc(2,x,1,1,"mat-spinner",39),c.BQk()),2&j){const Ae=c.oxw();c.xp6(1),c.Q6J("ngIf","unpaid"!==(null==Ae.invoice?null:Ae.invoice.status)||!Ae.flgVersionCompatible),c.xp6(1),c.Q6J("ngIf","unpaid"===(null==Ae.invoice?null:Ae.invoice.status)&&Ae.flgVersionCompatible)}}function b(j,we){if(1&j&&(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&j){const Ae=c.oxw();c.xp6(7),c.Oqu(c.xi3(8,4,1e3*(null==Ae.invoice?null:Ae.invoice.expiresAt),"dd/MMM/y HH:mm")),c.xp6(6),c.Oqu(c.xi3(14,7,1e3*(null==Ae.invoice?null:Ae.invoice.receivedAt),"dd/MMM/y HH:mm")),c.xp6(8),c.Oqu(null==Ae.invoice?null:Ae.invoice.paymentHash),c.xp6(7),c.Oqu(null==Ae.invoice?null:Ae.invoice.nodeId)}}function J(j,we){1&j&&(c.TgZ(0,"p"),c._uU(1,"Show Advanced"),c.qZA())}function F(j,we){1&j&&(c.TgZ(0,"p"),c._uU(1,"Hide Advanced"),c.qZA())}function B(j,we){if(1&j){const Ae=c.EpF();c.TgZ(0,"button",43),c.NdJ("copied",function(We){return c.CHM(Ae),c.oxw().onCopyPayment(We)}),c._uU(1,"Copy Invoice"),c.qZA()}if(2&j){const Ae=c.oxw();c.Q6J("payload",null==Ae.invoice?null:Ae.invoice.serialized)}}function te(j,we){if(1&j){const Ae=c.EpF();c.TgZ(0,"button",44),c.NdJ("click",function(){return c.CHM(Ae),c.oxw().onClose()}),c._uU(1,"OK"),c.qZA()}}const xe=function(j){return{"display-none":j}},Pe=function(j){return{"xs-scroll-y":j}},Fe=function(j,we){return{"mt-2":j,"mt-1":we}};let q=(()=>{class j{constructor(Ae,le,We,yt,Ne,Ve){this.dialogRef=Ae,this.data=le,this.logger=We,this.commonService=yt,this.snackBar=Ne,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(C.yD).pipe((0,M.R)(this.unSubs[0])).subscribe(Ae=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Ae.version,"0.5.0")}),this.store.select(C.Ef).pipe((0,M.R)(this.unSubs[1])).subscribe(Ae=>{const le=this.invoice.status;this.invoice=(Ae.invoices&&Ae.invoices.length>0?Ae.invoices:[]).find(yt=>yt.paymentHash===this.invoice.paymentHash),le!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Ae)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(Ae){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+Ae)}ngOnDestroy(){this.unSubs.forEach(Ae=>{Ae.next(null),Ae.complete()})}}return j.\u0275fac=function(Ae){return new(Ae||j)(c.Y36(e.so),c.Y36(e.WI),c.Y36(R.mQ),c.Y36(o.v),c.Y36(O.ux),c.Y36(T.yh))},j.\u0275cmp=c.Xpm({type:j,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(Ae,le){if(1&Ae&&(c.TgZ(0,"div",0),c.TgZ(1,"div",1),c.YNc(2,de,1,3,"qr-code",2),c.YNc(3,ne,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 le.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,se,1,3,"qr-code",2),c.YNc(16,oe,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,L,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 le.onShowAdvanced()}),c.YNc(63,J,2,0,"p",25),c.YNc(64,F,2,0,"ng-template",null,26,c.W1O),c.qZA(),c.YNc(66,B,2,1,"button",27),c.YNc(67,te,2,0,"button",28),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&Ae){const We=c.MAs(65);c.xp6(1),c.Q6J("fxLayoutAlign",null!=le.invoice&&le.invoice.serialized&&""!==(null==le.invoice?null:le.invoice.serialized)?"center start":"center center")("ngClass",c.VKq(33,xe,le.screenSize===le.screenSizeEnum.XS||le.screenSize===le.screenSizeEnum.SM)),c.xp6(1),c.Q6J("ngIf",(null==le.invoice?null:le.invoice.serialized)&&""!==(null==le.invoice?null:le.invoice.serialized)),c.xp6(1),c.Q6J("ngIf",!(null!=le.invoice&&le.invoice.serialized)||""===(null==le.invoice?null:le.invoice.serialized)),c.xp6(4),c.Q6J("icon",le.faReceipt),c.xp6(2),c.Oqu(le.screenSize===le.screenSizeEnum.XS?le.newlyAdded?"Created":"Invoice":le.newlyAdded?"Invoice Created":"Invoice Information"),c.xp6(3),c.Q6J("ngClass",c.VKq(35,Pe,le.screenSize===le.screenSizeEnum.XS)),c.xp6(2),c.Q6J("fxLayoutAlign",null!=le.invoice&&le.invoice.serialized&&""!==(null==le.invoice?null:le.invoice.serialized)?"center start":"center center")("ngClass",c.VKq(37,xe,le.screenSize!==le.screenSizeEnum.XS&&le.screenSize!==le.screenSizeEnum.SM)),c.xp6(1),c.Q6J("ngIf",(null==le.invoice?null:le.invoice.serialized)&&""!==(null==le.invoice?null:le.invoice.serialized)),c.xp6(1),c.Q6J("ngIf",!(null!=le.invoice&&le.invoice.serialized)||""===(null==le.invoice?null:le.invoice.serialized)),c.xp6(1),c.Q6J("ngIf",le.screenSize===le.screenSizeEnum.XS||le.screenSize===le.screenSizeEnum.SM),c.xp6(6),c.hij("",c.lcZ(24,26,(null==le.invoice?null:le.invoice.amount)||0)," Sats"),c.xp6(2),c.Q6J("ngIf",!(null!=le.invoice&&le.invoice.amount)||"0"===(null==le.invoice?null:le.invoice.amount)),c.xp6(5),c.Q6J("ngIf",null==le.invoice?null:le.invoice.amountSettled),c.xp6(1),c.Q6J("ngIf",!(null!=le.invoice&&le.invoice.amountSettled)),c.xp6(7),c.Oqu(c.xi3(39,28,1e3*(null==le.invoice?null:le.invoice.timestamp),"dd/MMM/y HH:mm")),c.xp6(6),c.Oqu(c.lcZ(45,31,null==le.invoice?null:le.invoice.status)),c.xp6(8),c.Oqu((null==le.invoice?null:le.invoice.description)||"-"),c.xp6(7),c.Oqu((null==le.invoice?null:le.invoice.serialized)||"N/A"),c.xp6(1),c.Q6J("ngIf",le.showAdvanced),c.xp6(1),c.Q6J("ngClass",c.WLB(39,Fe,!le.showAdvanced,le.showAdvanced)),c.xp6(2),c.Q6J("ngIf",!le.showAdvanced)("ngIfElse",We),c.xp6(3),c.Q6J("ngIf",(null==le.invoice?null:le.invoice.serialized)&&""!==(null==le.invoice?null:le.invoice.serialized)),c.xp6(1),c.Q6J("ngIf",!(null!=le.invoice&&le.invoice.serialized)||""===(null==le.invoice?null:le.invoice.serialized))}},directives:[P.xw,P.Wh,P.yH,S.mk,D.oO,S.O5,w.dk,U.BN,G.lW,w.dn,W.d,ee.uU,S.sg,ie.$g,_e.h,fe.y],pipes:[S.JJ,S.uU,S.rS],styles:[""]}),j})()},6523:(Ue,K,m)=>{"use strict";m.d(K,{PC:()=>v,Ll:()=>M,JT:()=>s,sQ:()=>C,CX:()=>c,$W:()=>R,Z8:()=>o,El:()=>O,z:()=>P,EK:()=>S,Rd:()=>D,YP:()=>U,SN:()=>G,RX:()=>W,Bl:()=>ee,Jl:()=>ie,Rv:()=>_e,ks:()=>fe,UR:()=>de,as:()=>ne,Z7:()=>se,TW:()=>oe,Zh:()=>y,_L:()=>i,pW:()=>a,YX:()=>p,BL:()=>u,OG:()=>_,Vv:()=>L,Cp:()=>I,tb:()=>b,B_:()=>J,vV:()=>F,WM:()=>te,Nr:()=>xe,aL:()=>Pe,mC:()=>Fe,Lf:()=>q,Ly:()=>j,UH:()=>we,cQ:()=>Ae,HI:()=>le,oV:()=>We,dV:()=>Ne,_E:()=>ue,Wi:()=>ke,fu:()=>X,y2:()=>Me,xG:()=>ht,Sf:()=>it,$A:()=>ft,n7:()=>nt,v_:()=>st,u0:()=>wt,QJ:()=>Bt,WO:()=>Nt,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)()),M=(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)()),C=(0,e.PH)(t.uR.FETCH_INFO_LND,(0,e.Ky)()),c=(0,e.PH)(t.uR.SET_INFO_LND,(0,e.Ky)()),R=(0,e.PH)(t.uR.FETCH_PEERS_LND),o=(0,e.PH)(t.uR.SET_PEERS_LND,(0,e.Ky)()),O=(0,e.PH)(t.uR.SAVE_NEW_PEER_LND,(0,e.Ky)()),P=((0,e.PH)(t.uR.NEWLY_ADDED_PEER_LND,(0,e.Ky)()),(0,e.PH)(t.uR.DETACH_PEER_LND,(0,e.Ky)())),S=(0,e.PH)(t.uR.REMOVE_PEER_LND,(0,e.Ky)()),D=(0,e.PH)(t.uR.SAVE_NEW_INVOICE_LND,(0,e.Ky)()),U=((0,e.PH)(t.uR.NEWLY_SAVED_INVOICE_LND,(0,e.Ky)()),(0,e.PH)(t.uR.ADD_INVOICE_LND,(0,e.Ky)())),G=(0,e.PH)(t.uR.FETCH_FEES_LND),W=(0,e.PH)(t.uR.SET_FEES_LND,(0,e.Ky)()),ee=(0,e.PH)(t.uR.FETCH_BLOCKCHAIN_BALANCE_LND),ie=(0,e.PH)(t.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,e.Ky)()),_e=(0,e.PH)(t.uR.FETCH_NETWORK_LND),fe=(0,e.PH)(t.uR.SET_NETWORK_LND,(0,e.Ky)()),de=(0,e.PH)(t.uR.FETCH_CHANNELS_LND),ne=(0,e.PH)(t.uR.SET_CHANNELS_LND,(0,e.Ky)()),se=(0,e.PH)(t.uR.FETCH_PENDING_CHANNELS_LND),oe=(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)()),L=(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)),J=(0,e.PH)(t.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,e.Ky)()),F=(0,e.PH)(t.uR.RESTORE_CHANNELS_LND,(0,e.Ky)()),te=((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)()),Pe=(0,e.PH)(t.uR.UPDATE_INVOICE_LND,(0,e.Ky)()),Fe=(0,e.PH)(t.uR.FETCH_TRANSACTIONS_LND),q=(0,e.PH)(t.uR.SET_TRANSACTIONS_LND,(0,e.Ky)()),j=(0,e.PH)(t.uR.FETCH_UTXOS_LND),we=(0,e.PH)(t.uR.SET_UTXOS_LND,(0,e.Ky)()),Ae=(0,e.PH)(t.uR.FETCH_PAYMENTS_LND,(0,e.Ky)()),le=(0,e.PH)(t.uR.SET_PAYMENTS_LND,(0,e.Ky)()),We=(0,e.PH)(t.uR.SEND_PAYMENT_LND,(0,e.Ky)()),Ne=((0,e.PH)(t.uR.SEND_PAYMENT_STATUS_LND,(0,e.Ky)()),(0,e.PH)(t.uR.FETCH_GRAPH_NODE_LND,(0,e.Ky)())),ue=((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)())),X=((0,e.PH)(t.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,e.Ky)()),(0,e.PH)(t.uR.GEN_SEED_LND,(0,e.Ky)())),Me=((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)()),Nt=(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:(Ue,K,m)=>{"use strict";m.d(K,{l:()=>oe});var e=m(6642),t=m(7579),v=m(9646),M=m(5577),s=m(2722),C=m(4004),c=m(262),R=m(1365),o=m(2340),O=m(8627),T=m(1786),P=m(7731),S=m(7861),D=m(6523),w=m(6529),U=m(5e3),G=m(8138),W=m(5620),ee=m(5043),ie=m(62),_e=m(5986),fe=m(8966),de=m(9291),ne=m(7998),se=m(9808);let oe=(()=>{class y{constructor(a,p,u,_,L,I,x,r,b,J){this.actions=a,this.httpClient=p,this.store=u,this.logger=_,this.commonService=L,this.sessionService=I,this.dialog=x,this.router=r,this.wsService=b,this.location=J,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)(P.uR.FETCH_INFO_LND),(0,M.z)(F=>(this.flgInitialized=!1,this.store.dispatch((0,S.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.ac)({payload:P.m6.GET_NODE_INFO})),this.store.dispatch((0,D.PC)({payload:{action:"FetchInfo",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.GETINFO_API).pipe((0,s.R)(this.actions.pipe((0,e.l4)(P.pg.SET_SELECTED_NODE))),(0,C.U)(B=>(this.logger.info(B),B.chains&&B.chains.length&&B.chains[0]&&("string"==typeof B.chains[0]&&B.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof B.chains[0]&&B.chains[0].hasOwnProperty("chain")&&B.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,D.PC)({payload:{action:"FetchInfo",status:P.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.qR)({payload:{data:{type:P.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:P.pg.LOGOUT}):B.identity_pubkey?(B.lnImplementation="LND",this.initializeRemainingData(B,F.payload.loadPage),this.store.dispatch((0,D.PC)({payload:{action:"FetchInfo",status:P.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),{type:P.uR.SET_INFO_LND,payload:B||{}}):(this.store.dispatch((0,D.PC)({payload:{action:"FetchInfo",status:P.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:P.uR.SET_INFO_LND,payload:{}}))),(0,c.K)(B=>{if("string"==typeof B.error.error&&B.error.error.includes("Not Found")||"string"==typeof B.error.error&&B.error.error.includes("wallet locked")||502===B.status&&!B.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",P.m6.GET_NODE_INFO,"Fetching Node Info Failed.",B);else if("string"==typeof B.error.error&&B.error.error.includes("starting up")&&500===B.status)setTimeout(()=>{this.store.dispatch((0,D.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const te=this.commonService.extractErrorCode(B),xe=503===te?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(B);this.router.navigate(["/error"],{state:{errorCode:te,errorMessage:xe}}),this.handleErrorWithoutAlert("FetchInfo",P.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:te,error:xe})}return(0,v.of)({type:P.pg.VOID})})))))),this.peersFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_PEERS_LND),(0,M.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchPeers",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.PEERS_API).pipe((0,C.U)(F=>(this.logger.info(F),this.store.dispatch((0,D.PC)({payload:{action:"FetchPeers",status:P.Bn.COMPLETED}})),{type:P.uR.SET_PEERS_LND,payload:F||[]})),(0,c.K)(F=>(this.handleErrorWithoutAlert("FetchPeers",P.m6.NO_SPINNER,"Fetching Peers Failed.",F),(0,v.of)({type:P.pg.VOID})))))))),this.saveNewPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SAVE_NEW_PEER_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:P.m6.CONNECT_PEER})),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewPeer",status:P.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.PEERS_API,{pubkey:F.payload.pubkey,host:F.payload.host,perm:F.payload.perm}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewPeer",status:P.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:P.m6.CONNECT_PEER})),this.store.dispatch((0,D.Z8)({payload:B||[]})),{type:P.uR.NEWLY_ADDED_PEER_LND,payload:{peer:B[0]}})),(0,c.K)(B=>(this.handleErrorWithoutAlert("SaveNewPeer",P.m6.CONNECT_PEER,"Peer Connection Failed.",B),(0,v.of)({type:P.pg.VOID})))))))),this.detachPeer=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.DETACH_PEER_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:P.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+o.NZ.PEERS_API+"/"+F.payload.pubkey).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.uO)({payload:P.m6.DISCONNECT_PEER})),this.store.dispatch((0,S.jW)({payload:"Peer Disconnected Successfully."})),{type:P.uR.REMOVE_PEER_LND,payload:{pubkey:F.payload.pubkey}})),(0,c.K)(B=>(this.handleErrorWithAlert("DetachPeer",P.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+o.NZ.PEERS_API+"/"+F.payload.pubkey,B),(0,v.of)({type:P.pg.VOID})))))))),this.saveNewInvoice=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SAVE_NEW_INVOICE_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewInvoice",status:P.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.INVOICES_API,{memo:F.payload.memo,amount:F.payload.invoiceValue,private:F.payload.private,expiry:F.payload.expiry}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewInvoice",status:P.Bn.COMPLETED}})),this.store.dispatch((0,D.WM)({payload:{num_max_invoices:F.payload.pageSize,reversed:!0}})),F.payload.openModal?(B.memo=F.payload.memo,B.value=F.payload.invoiceValue,B.expiry=F.payload.expiry,B.cltv_expiry="144",B.private=F.payload.private,B.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,S.qR)({payload:{data:{invoice:B,newlyAdded:!0,component:O.v}}}))},100),{type:P.pg.CLOSE_SPINNER,payload:F.payload.uiMessage}):{type:P.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:B.payment_request}})),(0,c.K)(B=>(this.handleErrorWithoutAlert("SaveNewInvoice",F.payload.uiMessage,"Add Invoice Failed.",B),(0,v.of)({type:P.pg.VOID})))))))),this.openNewChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SAVE_NEW_CHANNEL_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:P.m6.OPEN_CHANNEL})),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewChannel",status:P.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.CHANNELS_API,{node_pubkey:F.payload.selectedPeerPubkey,local_funding_amount:F.payload.fundingAmount,private:F.payload.private,trans_type:F.payload.transType,trans_type_value:F.payload.transTypeValue,spend_unconfirmed:F.payload.spendUnconfirmed}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,D.PC)({payload:{action:"SaveNewChannel",status:P.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:P.m6.OPEN_CHANNEL})),this.store.dispatch((0,D.Bl)()),this.store.dispatch((0,D.UR)()),this.store.dispatch((0,D.Vv)({payload:{uiMessage:P.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:P.uR.FETCH_PENDING_CHANNELS_LND})),(0,c.K)(B=>(this.handleErrorWithoutAlert("SaveNewChannel",P.m6.OPEN_CHANNEL,"Opening Channel Failed.",B),(0,v.of)({type:P.pg.VOID})))))))),this.updateChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.UPDATE_CHANNEL_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:P.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:F.payload.baseFeeMsat,feeRate:F.payload.feeRate,timeLockDelta:F.payload.timeLockDelta,chanPoint:F.payload.chanPoint}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.uO)({payload:P.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,S.jW)("all"===F.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:P.uR.FETCH_CHANNELS_LND})),(0,c.K)(B=>(this.handleErrorWithAlert("UpdateChannels",P.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+o.NZ.CHANNELS_API+"/chanPolicy",B),(0,v.of)({type:P.pg.VOID})))))))),this.closeChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.CLOSE_CHANNEL_LND),(0,M.z)(F=>{this.store.dispatch((0,S.ac)({payload:F.payload.forcibly?P.m6.FORCE_CLOSE_CHANNEL:P.m6.CLOSE_CHANNEL}));let B=this.CHILD_API_URL+o.NZ.CHANNELS_API+"/"+F.payload.channelPoint+"?force="+F.payload.forcibly;return F.payload.targetConf&&(B=B+"&target_conf="+F.payload.targetConf),F.payload.satPerByte&&(B=B+"&sat_per_byte="+F.payload.satPerByte),this.httpClient.delete(B).pipe((0,C.U)(te=>(this.logger.info(te),this.store.dispatch((0,S.uO)({payload:F.payload.forcibly?P.m6.FORCE_CLOSE_CHANNEL:P.m6.CLOSE_CHANNEL})),this.store.dispatch((0,D.UR)()),this.store.dispatch((0,D.Z7)()),this.store.dispatch((0,D.Vv)({payload:{uiMessage:P.m6.NO_SPINNER,channelPoint:"ALL",showMessage:te.message}})),{type:P.pg.VOID})),(0,c.K)(te=>(this.handleErrorWithAlert("CloseChannel",F.payload.forcibly?P.m6.FORCE_CLOSE_CHANNEL:P.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+o.NZ.CHANNELS_API+"/"+F.payload.channelPoint+"?force="+F.payload.forcibly,te),(0,v.of)({type:P.pg.VOID}))))}))),this.backupChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.BACKUP_CHANNELS_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"BackupChannels",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API+"/"+F.payload.channelPoint).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,D.PC)({payload:{action:"BackupChannels",status:P.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,S.jW)({payload:F.payload.showMessage+" "+B.message})),{type:P.uR.BACKUP_CHANNELS_RES_LND,payload:B.message})),(0,c.K)(B=>(this.handleErrorWithAlert("BackupChannels",F.payload.uiMessage,F.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API+"/"+F.payload.channelPoint,B),(0,v.of)({type:P.pg.VOID})))))))),this.verifyChannel=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.VERIFY_CHANNEL_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:P.m6.VERIFY_CHANNEL})),this.store.dispatch((0,D.PC)({payload:{action:"VerifyChannel",status:P.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API+"/verify/"+F.payload.channelPoint,{}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,D.PC)({payload:{action:"VerifyChannel",status:P.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:P.m6.VERIFY_CHANNEL})),this.store.dispatch((0,S.jW)({payload:B.message})),{type:P.uR.VERIFY_CHANNEL_RES_LND,payload:B.message})),(0,c.K)(B=>(this.handleErrorWithAlert("VerifyChannel",P.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API+"/verify/"+F.payload.channelPoint,B),(0,v.of)({type:P.pg.VOID})))))))),this.restoreChannels=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.RESTORE_CHANNELS_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:P.m6.RESTORE_CHANNEL})),this.store.dispatch((0,D.PC)({payload:{action:"RestoreChannels",status:P.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API+"/restore/"+F.payload.channelPoint,{}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,D.PC)({payload:{action:"RestoreChannels",status:P.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:P.m6.RESTORE_CHANNEL})),this.store.dispatch((0,S.jW)({payload:B.message})),this.store.dispatch((0,D.B_)({payload:B.list})),{type:P.uR.RESTORE_CHANNELS_RES_LND,payload:B.message})),(0,c.K)(B=>(this.handleErrorWithAlert("RestoreChannels",P.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API+"/restore/"+F.payload.channelPoint,B),(0,v.of)({type:P.pg.VOID})))))))),this.fetchFees=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_FEES_LND),(0,M.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchFees",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.FEES_API))),(0,C.U)(F=>(this.logger.info(F),this.store.dispatch((0,D.PC)({payload:{action:"FetchFees",status:P.Bn.COMPLETED}})),F.forwarding_events_history&&(this.store.dispatch((0,D.QJ)({payload:F.forwarding_events_history})),delete F.forwarding_events_history),{type:P.uR.SET_FEES_LND,payload:F||{}})),(0,c.K)(F=>(this.handleErrorWithoutAlert("FetchFees",P.m6.NO_SPINNER,"Fetching Fees Failed.",F),(0,v.of)({type:P.pg.VOID}))))),this.balanceBlockchainFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,M.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchBalance",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.BALANCE_API))),(0,C.U)(F=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchBalance",status:P.Bn.COMPLETED}})),this.logger.info(F),{type:P.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:F||{total_balance:""}})),(0,c.K)(F=>(this.handleErrorWithoutAlert("FetchBalance",P.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",F),(0,v.of)({type:P.pg.VOID}))))),this.networkInfoFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_NETWORK_LND),(0,M.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchNetwork",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.NETWORK_API+"/info"))),(0,C.U)(F=>(this.logger.info(F),this.store.dispatch((0,D.PC)({payload:{action:"FetchNetwork",status:P.Bn.COMPLETED}})),{type:P.uR.SET_NETWORK_LND,payload:F||{}})),(0,c.K)(F=>(this.handleErrorWithoutAlert("FetchNetwork",P.m6.NO_SPINNER,"Fetching Network Failed.",F),(0,v.of)({type:P.pg.VOID}))))),this.channelsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchChannels",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_API).pipe((0,C.U)(F=>(this.logger.info(F),this.store.dispatch((0,D.PC)({payload:{action:"FetchChannels",status:P.Bn.COMPLETED}})),{type:P.uR.SET_CHANNELS_LND,payload:F.channels||[]})),(0,c.K)(F=>(this.handleErrorWithoutAlert("FetchChannels",P.m6.NO_SPINNER,"Fetching Channels Failed.",F),(0,v.of)({type:P.pg.VOID})))))))),this.channelsPendingFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_PENDING_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchPendingChannels",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/pending").pipe((0,C.U)(F=>{this.logger.info(F),this.store.dispatch((0,D.PC)({payload:{action:"FetchPendingChannels",status:P.Bn.COMPLETED}}));const B={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 F&&(B.total_limbo_balance=F.total_limbo_balance,F.pending_closing_channels&&(B.closing.num_channels=F.pending_closing_channels.length,B.total_channels=B.total_channels+F.pending_closing_channels.length,F.pending_closing_channels.forEach(te=>{B.closing.limbo_balance=+B.closing.limbo_balance+(te.channel.local_balance?+te.channel.local_balance:0)})),F.pending_force_closing_channels&&(B.force_closing.num_channels=F.pending_force_closing_channels.length,B.total_channels=B.total_channels+F.pending_force_closing_channels.length,F.pending_force_closing_channels.forEach(te=>{B.force_closing.limbo_balance=+B.force_closing.limbo_balance+(te.channel.local_balance?+te.channel.local_balance:0)})),F.pending_open_channels&&(B.open.num_channels=F.pending_open_channels.length,B.total_channels=B.total_channels+F.pending_open_channels.length,F.pending_open_channels.forEach(te=>{B.open.limbo_balance=+B.open.limbo_balance+(te.channel.local_balance?+te.channel.local_balance:0)})),F.waiting_close_channels&&(B.waiting_close.num_channels=F.waiting_close_channels.length,B.total_channels=B.total_channels+F.waiting_close_channels.length,F.waiting_close_channels.forEach(te=>{B.waiting_close.limbo_balance=+B.waiting_close.limbo_balance+(te.channel.local_balance?+te.channel.local_balance:0)}))),{type:P.uR.SET_PENDING_CHANNELS_LND,payload:F?{pendingChannels:F,pendingChannelsSummary:B}:{pendingChannels:{},pendingChannelsSummary:B}}}),(0,c.K)(F=>(this.handleErrorWithoutAlert("FetchPendingChannels",P.m6.NO_SPINNER,"Fetching Pending Channels Failed.",F),(0,v.of)({type:P.pg.VOID})))))))),this.channelsClosedFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_CLOSED_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchClosedChannels",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/closed").pipe((0,C.U)(F=>(this.logger.info(F),this.store.dispatch((0,D.PC)({payload:{action:"FetchClosedChannels",status:P.Bn.COMPLETED}})),{type:P.uR.SET_CLOSED_CHANNELS_LND,payload:F.channels||[]})),(0,c.K)(F=>(this.handleErrorWithoutAlert("FetchClosedChannels",P.m6.NO_SPINNER,"Fetching Closed Channels Failed.",F),(0,v.of)({type:P.pg.VOID})))))))),this.invoicesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_INVOICES_LND),(0,M.z)(F=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchInvoices",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.INVOICES_API+"?num_max_invoices="+(F.payload.num_max_invoices?F.payload.num_max_invoices:100)+"&index_offset="+(F.payload.index_offset?F.payload.index_offset:0)+"&reversed="+(!!F.payload.reversed&&F.payload.reversed)).pipe((0,C.U)(Pe=>(this.logger.info(Pe),this.store.dispatch((0,D.PC)({payload:{action:"FetchInvoices",status:P.Bn.COMPLETED}})),F.payload.reversed&&!F.payload.index_offset&&(Pe.total_invoices=+Pe.last_index_offset),{type:P.uR.SET_INVOICES_LND,payload:Pe})),(0,c.K)(Pe=>(this.handleErrorWithoutAlert("FetchInvoices",P.m6.NO_SPINNER,"Fetching Invoices Failed.",Pe),(0,v.of)({type:P.pg.VOID})))))))),this.transactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_TRANSACTIONS_LND),(0,M.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchTransactions",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.TRANSACTIONS_API))),(0,C.U)(F=>(this.logger.info(F),this.store.dispatch((0,D.PC)({payload:{action:"FetchTransactions",status:P.Bn.COMPLETED}})),{type:P.uR.SET_TRANSACTIONS_LND,payload:F||[]})),(0,c.K)(F=>(this.handleErrorWithoutAlert("FetchTransactions",P.m6.NO_SPINNER,"Fetching Transactions Failed.",F),(0,v.of)({type:P.pg.VOID}))))),this.utxosFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_UTXOS_LND),(0,R.M)(this.store.select(w.Q5)),(0,M.z)(([F,B])=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchUTXOs",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.WALLET_API+"/getUTXOs?max_confs="+(B&&B.block_height?B.block_height:1e9)))),(0,C.U)(F=>(this.logger.info(F),this.store.dispatch((0,D.PC)({payload:{action:"FetchUTXOs",status:P.Bn.COMPLETED}})),{type:P.uR.SET_UTXOS_LND,payload:F||[]})),(0,c.K)(F=>(this.handleErrorWithoutAlert("FetchUTXOs",P.m6.NO_SPINNER,"Fetching UTXOs Failed.",F),(0,v.of)({type:P.pg.VOID}))))),this.paymentsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_PAYMENTS_LND),(0,M.z)(F=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchPayments",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.PAYMENTS_API+"?max_payments="+(F.payload.max_payments?F.payload.max_payments:100)+"&index_offset="+(F.payload.index_offset?F.payload.index_offset:0)+"&reversed="+(!!F.payload.reversed&&F.payload.reversed)).pipe((0,C.U)(Pe=>(this.logger.info(Pe),this.store.dispatch((0,D.PC)({payload:{action:"FetchPayments",status:P.Bn.COMPLETED}})),{type:P.uR.SET_PAYMENTS_LND,payload:Pe})),(0,c.K)(Pe=>(this.handleErrorWithoutAlert("FetchPayments",P.m6.NO_SPINNER,"Fetching Payments Failed.",Pe),(0,v.of)({type:P.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SEND_PAYMENT_LND),(0,M.z)(F=>{this.store.dispatch((0,S.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"SendPayment",status:P.Bn.INITIATED}}));const B={};return B.paymentReq=F.payload.paymentReq,F.payload.paymentAmount&&(B.paymentAmount=F.payload.paymentAmount),F.payload.outgoingChannel&&(B.outgoingChannel=F.payload.outgoingChannel.chan_id),F.payload.allowSelfPayment&&(B.allowSelfPayment=F.payload.allowSelfPayment),F.payload.lastHopPubkey&&(B.lastHopPubkey=F.payload.lastHopPubkey),F.payload.feeLimitType&&F.payload.feeLimitType!==P.Vc[0].id&&(B.feeLimit={},B.feeLimit[F.payload.feeLimitType]=F.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+o.NZ.CHANNELS_API+"/transactions",B).pipe((0,C.U)(te=>{if(this.logger.info(te),this.store.dispatch((0,S.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"SendPayment",status:P.Bn.COMPLETED}})),te.payment_error)return F.payload.allowSelfPayment?(this.store.dispatch((0,D.WM)({payload:{num_max_invoices:P.IV,reversed:!0}})),{type:P.uR.SEND_PAYMENT_STATUS_LND,payload:te}):(F.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed.",te.payment_error):this.handleErrorWithAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+o.NZ.CHANNELS_API+"/transactions",te.payment_error),{type:P.pg.VOID});if(this.store.dispatch((0,S.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"SendPayment",status:P.Bn.COMPLETED}})),this.store.dispatch((0,D.UR)()),this.store.dispatch((0,D.cQ)({payload:{max_payments:P.IV,reversed:!0}})),F.payload.allowSelfPayment)this.store.dispatch((0,D.WM)({payload:{num_max_invoices:P.IV,reversed:!0}}));else{let xe="Payment Sent Successfully.";te.payment_route&&te.payment_route.total_fees_msat&&(xe="Payment sent successfully with the total fee "+te.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,S.jW)({payload:xe}))}return{type:P.uR.SEND_PAYMENT_STATUS_LND,payload:te}}),(0,c.K)(te=>(this.logger.error("Error: "+JSON.stringify(te)),F.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed.",te),this.store.dispatch((0,D.WM)({payload:{num_max_invoices:P.IV,reversed:!0}})),(0,v.of)({type:P.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(te)}})):(F.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed.",te):this.handleErrorWithAlert("SendPayment",F.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+o.NZ.CHANNELS_API+"/transactions",te),(0,v.of)({type:P.pg.VOID})))))}))),this.graphNodeFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.FETCH_GRAPH_NODE_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:P.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,D.PC)({payload:{action:"FetchGraphNode",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.NETWORK_API+"/node/"+F.payload.pubkey).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.uO)({payload:P.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,D.PC)({payload:{action:"FetchGraphNode",status:P.Bn.COMPLETED}})),{type:P.uR.SET_GRAPH_NODE_LND,payload:B&&B.node?{node:B.node}:{node:null}})),(0,c.K)(B=>(this.handleErrorWithoutAlert("FetchGraphNode",P.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",B),(0,v.of)({type:P.pg.VOID})))))))),this.setGraphNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SET_GRAPH_NODE_LND),(0,C.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.getNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.GET_NEW_ADDRESS_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:P.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+o.NZ.NEW_ADDRESS_API+"?type="+F.payload.addressId).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.uO)({payload:P.m6.GENERATE_NEW_ADDRESS})),{type:P.uR.SET_NEW_ADDRESS_LND,payload:B&&B.address?B.address:{}})),(0,c.K)(B=>(this.handleErrorWithAlert("GetNewAddress",P.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+o.NZ.NEW_ADDRESS_API+"?type="+F.payload.addressId,B),(0,v.of)({type:P.pg.VOID})))))))),this.setNewAddress=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SET_NEW_ADDRESS_LND),(0,C.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SET_CHANNEL_TRANSACTION_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:P.m6.SEND_FUNDS})),this.store.dispatch((0,D.PC)({payload:{action:"SetChannelTransaction",status:P.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.TRANSACTIONS_API,{amount:F.payload.amount,address:F.payload.address,sendAll:F.payload.sendAll,fees:F.payload.fees,blocks:F.payload.blocks}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,D.PC)({payload:{action:"SetChannelTransaction",status:P.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:P.m6.SEND_FUNDS})),this.store.dispatch((0,D.mC)()),this.store.dispatch((0,D.Bl)()),this.store.dispatch((0,D.UR)()),{type:P.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:B})),(0,c.K)(B=>(this.handleErrorWithoutAlert("SetChannelTransaction",P.m6.SEND_FUNDS,"Sending Fund Failed.",B),(0,v.of)({type:P.pg.VOID})))))))),this.fetchForwardingHistory=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.GET_FORWARDING_HISTORY_LND),(0,M.z)(F=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchForwardingHistory",status:P.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+o.NZ.SWITCH_API,{num_max_events:F.payload.num_max_events,index_offset:F.payload.index_offset,end_time:F.payload.end_time,start_time:F.payload.start_time}).pipe((0,C.U)(te=>(this.logger.info(te),this.store.dispatch((0,D.PC)({payload:{action:"FetchForwardingHistory",status:P.Bn.COMPLETED}})),{type:P.uR.SET_FORWARDING_HISTORY_LND,payload:te})),(0,c.K)(te=>(this.handleErrorWithAlert("FetchForwardingHistory",P.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+o.NZ.SWITCH_API,te),(0,v.of)({type:P.pg.VOID})))))))),this.queryRoutesFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.GET_QUERY_ROUTES_LND),(0,M.z)(F=>{let B=this.CHILD_API_URL+o.NZ.NETWORK_API+"/routes/"+F.payload.destPubkey+"/"+F.payload.amount;return F.payload.outgoingChanId&&(B=B+"?outgoing_chan_id="+F.payload.outgoingChanId),this.httpClient.get(B).pipe((0,C.U)(te=>(this.logger.info(te),{type:P.uR.SET_QUERY_ROUTES_LND,payload:te})),(0,c.K)(te=>(this.store.dispatch((0,D.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",P.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+o.NZ.NETWORK_API,te),(0,v.of)({type:P.pg.VOID}))))}))),this.setQueryRoutes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SET_QUERY_ROUTES_LND),(0,C.U)(F=>F.payload)),{dispatch:!1}),this.genSeed=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.GEN_SEED_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:P.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+o.NZ.WALLET_API+"/genseed/"+F.payload).pipe((0,C.U)(B=>(this.logger.info("Generated GenSeed!"),this.logger.info(B),this.store.dispatch((0,S.uO)({payload:P.m6.GEN_SEED})),{type:P.uR.GEN_SEED_RESPONSE_LND,payload:B.cipher_seed_mnemonic})),(0,c.K)(B=>(this.handleErrorWithAlert("GenSeed",P.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+o.NZ.WALLET_API+"/genseed/"+F.payload,B),(0,v.of)({type:P.pg.VOID})))))))),this.updateSelNodeOptions=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,M.z)(()=>this.httpClient.get(this.CHILD_API_URL+o.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,C.U)(F=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(F),{type:P.pg.VOID})),(0,c.K)(F=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",P.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",F),(0,v.of)({type:P.pg.VOID}))))))),this.genSeedResponse=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.GEN_SEED_RESPONSE_LND),(0,C.U)(F=>F.payload)),{dispatch:!1}),this.initWalletRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.INIT_WALLET_RESPONSE_LND),(0,C.U)(F=>F.payload)),{dispatch:!1}),this.initWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.INIT_WALLET_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:P.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+o.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:F.payload.pwd,cipher_seed_mnemonic:F.payload.cipher?F.payload.cipher:"",aezeed_passphrase:F.payload.passphrase?F.payload.passphrase:""}).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.uO)({payload:P.m6.INITIALIZE_WALLET})),{type:P.uR.INIT_WALLET_RESPONSE_LND,payload:B})),(0,c.K)(B=>(this.handleErrorWithAlert("InitWallet",P.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+o.NZ.WALLET_API+"/initwallet",B),(0,v.of)({type:P.pg.VOID})))))))),this.unlockWallet=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.UNLOCK_WALLET_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:P.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+o.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:F.payload.pwd}).pipe((0,C.U)(B=>(this.logger.info(B),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,S.uO)({payload:P.m6.UNLOCK_WALLET})),this.store.dispatch((0,S.ac)({payload:P.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,S.uO)({payload:P.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,D.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:P.pg.VOID})),(0,c.K)(B=>(this.handleErrorWithAlert("UnlockWallet",P.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+o.NZ.WALLET_API+"/unlockwallet",B),(0,v.of)({type:P.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.PEER_LOOKUP_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:P.m6.SEARCHING_NODE})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.NETWORK_API+"/node/"+F.payload).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.uO)({payload:P.m6.SEARCHING_NODE})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:P.Bn.COMPLETED}})),{type:P.uR.SET_LOOKUP_LND,payload:B})),(0,c.K)(B=>(this.handleErrorWithAlert("Lookup",P.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+o.NZ.NETWORK_API+"/node/"+F.payload,B),(0,v.of)({type:P.pg.VOID})))))))),this.channelLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.CHANNEL_LOOKUP_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:F.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.NETWORK_API+"/edge/"+F.payload.channelID).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.uO)({payload:F.payload.uiMessage})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:P.Bn.COMPLETED}})),{type:P.uR.SET_LOOKUP_LND,payload:B})),(0,c.K)(B=>(this.handleErrorWithAlert("Lookup",F.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+o.NZ.NETWORK_API+"/edge/"+F.payload.channelID,B),this.store.dispatch((0,D.v_)({payload:{}})),(0,v.of)({type:P.pg.VOID})))))))),this.invoiceLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.INVOICE_LOOKUP_LND),(0,M.z)(F=>(this.store.dispatch((0,S.ac)({payload:P.m6.SEARCHING_INVOICE})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.INVOICES_API+"/"+F.payload).pipe((0,C.U)(B=>(this.logger.info(B),this.store.dispatch((0,S.uO)({payload:P.m6.SEARCHING_INVOICE})),this.store.dispatch((0,D.PC)({payload:{action:"Lookup",status:P.Bn.COMPLETED}})),this.store.dispatch((0,D.aL)({payload:B})),{type:P.uR.SET_LOOKUP_LND,payload:B})),(0,c.K)(B=>(this.handleErrorWithoutAlert("Lookup",P.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",B),this.store.dispatch((0,S.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,v.of)({type:P.pg.VOID})))))))),this.setLookup=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SET_LOOKUP_LND),(0,C.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.RESTORE_CHANNELS_LIST_LND),(0,M.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"RestoreChannelsList",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,C.U)(F=>(this.logger.info(F),this.store.dispatch((0,D.PC)({payload:{action:"RestoreChannelsList",status:P.Bn.COMPLETED}})),{type:P.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:F||{all_restore_exists:!1,files:[]}})),(0,c.K)(F=>(this.handleErrorWithAlert("RestoreChannelsList",P.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+o.NZ.CHANNELS_BACKUP_API,F),(0,v.of)({type:P.pg.VOID})))))))),this.setRestoreChannelList=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,C.U)(F=>(this.logger.info(F.payload),F.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(P.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,M.z)(()=>(this.store.dispatch((0,D.PC)({payload:{action:"FetchLightningTransactions",status:P.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+o.NZ.PAYMENTS_API+"/alltransactions").pipe((0,C.U)(F=>(this.logger.info(F),this.store.dispatch((0,D.PC)({payload:{action:"FetchLightningTransactions",status:P.Bn.COMPLETED}})),{type:P.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:F})),(0,c.K)(F=>(this.handleErrorWithoutAlert("FetchLightningTransactions",P.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",F),(0,v.of)({type:P.pg.VOID})))))))),this.store.select(w.yA).pipe((0,s.R)(this.unSubs[0])).subscribe(F=>{F.FetchInfo.status!==P.Bn.COMPLETED&&F.FetchInfo.status!==P.Bn.ERROR||F.FetchFees.status!==P.Bn.COMPLETED&&F.FetchFees.status!==P.Bn.ERROR||F.FetchBalanceBlockchain.status!==P.Bn.COMPLETED&&F.FetchBalanceBlockchain.status!==P.Bn.ERROR||F.FetchAllChannels.status!==P.Bn.COMPLETED&&F.FetchAllChannels.status!==P.Bn.ERROR||F.FetchPendingChannels.status!==P.Bn.COMPLETED&&F.FetchPendingChannels.status!==P.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,S.uO)({payload:P.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,s.R)(this.unSubs[1])).subscribe(F=>{this.logger.info("Received new message from the service: "+JSON.stringify(F)),F&&(F.type===P.g8.INVOICE?(this.logger.info(F),F&&F.result&&F.result.payment_request&&this.store.dispatch((0,D.aL)({payload:F.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(F)))})}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,S.ac)({payload:P.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,S._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,D.SN)()),this.store.dispatch((0,D.Bl)()),this.store.dispatch((0,D.UR)()),this.store.dispatch((0,D.Z7)()),this.store.dispatch((0,D.Zh)()),this.store.dispatch((0,D.$W)()),this.store.dispatch((0,D.Rv)()),this.store.dispatch((0,D.Jo)()),this.store.dispatch((0,D.WM)({payload:{num_max_invoices:10,reversed:!0}})),this.store.dispatch((0,D.cQ)({payload:{max_payments:10,reversed:!0}}))}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,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,S.uO)({payload:p})),this.store.dispatch((0,D.PC)({payload:{action:a,status:P.Bn.ERROR,statusCode:_.status.toString(),message:this.commonService.extractErrorMessage(_,u)}})))}handleErrorWithAlert(a,p,u,_,L){if(this.logger.error(L),401===L.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,S.uO)({payload:p}));const I=this.commonService.extractErrorMessage(L);this.store.dispatch((0,S.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:L.status,message:I,URL:_},component:T.H}}})),this.store.dispatch((0,D.PC)({payload:{action:a,status:P.Bn.ERROR,statusCode:L.status.toString(),message:I,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(a=>{a.next(null),a.complete()})}}return y.\u0275fac=function(a){return new(a||y)(U.LFG(e.eX),U.LFG(G.eN),U.LFG(W.yh),U.LFG(ee.mQ),U.LFG(ie.v),U.LFG(_e.m),U.LFG(fe.uw),U.LFG(de.F0),U.LFG(ne.d),U.LFG(se.Ye))},y.\u0275prov=U.Yz7({token:y,factory:y.\u0275fac}),y})()},6529:(Ue,K,m)=>{"use strict";m.d(K,{$k:()=>v,Q5:()=>M,yA:()=>C,Bo:()=>c,PP:()=>R,JG:()=>o,Wi:()=>O,dx:()=>T,Ef:()=>P,ZW:()=>S,ni:()=>w,P2:()=>U,qU:()=>G,T4:()=>ee,N7:()=>ie,l5:()=>_e,_f:()=>fe,bx:()=>de});var e=m(5620);const t=(0,e.ZF)("lnd"),v=(0,e.P1)(t,ne=>ne.nodeSettings),M=(0,e.P1)(t,ne=>ne.information),C=((0,e.P1)(t,ne=>({information:ne.information,apiCallStatus:ne.apisCallStatus.FetchInfo})),(0,e.P1)(t,ne=>ne.apisCallStatus)),c=(0,e.P1)(t,ne=>({forwardingHistory:ne.forwardingHistory,apiCallStatus:ne.apisCallStatus.FetchForwardingHistory})),R=(0,e.P1)(t,ne=>({listPayments:ne.listPayments,apiCallStatus:ne.apisCallStatus.FetchPayments})),o=(0,e.P1)(t,ne=>({fees:ne.fees,apiCallStatus:ne.apisCallStatus.FetchFees})),O=(0,e.P1)(t,ne=>({peers:ne.peers,apiCallStatus:ne.apisCallStatus.FetchPeers})),T=(0,e.P1)(t,ne=>({transactions:ne.transactions,apiCallStatus:ne.apisCallStatus.FetchTransactions})),P=(0,e.P1)(t,ne=>({listInvoices:ne.listInvoices,apiCallStatus:ne.apisCallStatus.FetchInvoices})),S=(0,e.P1)(t,ne=>({channels:ne.channels,channelsSummary:ne.channelsSummary,lightningBalance:ne.lightningBalance,apiCallStatus:ne.apisCallStatus.FetchAllChannels})),w=((0,e.P1)(t,ne=>({channelsSummary:ne.channelsSummary,pendingChannels:ne.pendingChannels,closedChannels:ne.closedChannels,apiCallStatus:ne.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,ne=>({pendingChannels:ne.pendingChannels,pendingChannelsSummary:ne.pendingChannelsSummary,apiCallStatus:ne.apisCallStatus.FetchPendingChannels}))),U=(0,e.P1)(t,ne=>({closedChannels:ne.closedChannels,apiCallStatus:ne.apisCallStatus.FetchClosedChannels})),G=(0,e.P1)(t,ne=>({blockchainBalance:ne.blockchainBalance,apiCallStatus:ne.apisCallStatus.FetchBalanceBlockchain})),ee=((0,e.P1)(t,ne=>({lightningBalance:ne.lightningBalance,apiCallStatus:ne.apisCallStatus.FetchAllChannels})),(0,e.P1)(t,ne=>({utxos:ne.utxos,apiCallStatus:ne.apisCallStatus.FetchUTXOs}))),ie=(0,e.P1)(t,ne=>({networkInfo:ne.networkInfo,apiCallStatus:ne.apisCallStatus.FetchNetwork})),_e=(0,e.P1)(t,ne=>({allLightningTransactions:ne.allLightningTransactions,apiCallStatus:ne.apisCallStatus.FetchLightningTransactions})),fe=(0,e.P1)(t,ne=>({channels:ne.channels,pendingChannels:ne.pendingChannels,closedChannels:ne.closedChannels})),de=(0,e.P1)(t,ne=>({information:ne.information,nodeSettings:ne.nodeSettings,apiCallStatus:ne.apisCallStatus.FetchInfo}))},8627:(Ue,K,m)=>{"use strict";m.d(K,{v:()=>X});var e=m(8966),t=m(801),v=m(7579),M=m(2722),s=m(7731),C=m(6529),c=m(5e3),R=m(5043),o=m(62),O=m(7261),T=m(5620),P=m(7093),S=m(9808),D=m(3322),w=m(9224),U=m(9444),G=m(7423),W=m(644),ee=m(4834),ie=m(159),_e=m(773),fe=m(1125),de=m(7238),ne=m(5245),se=m(3390),oe=m(6895);const y=["scrollContainer"];function i(he,Me){if(1&he&&c._UZ(0,"qr-code",32),2&he){const ze=c.oxw();c.Q6J("value",null==ze.invoice?null:ze.invoice.payment_request)("size",ze.qrWidth)("errorCorrectionLevel","L")}}function a(he,Me){1&he&&(c.TgZ(0,"span",33),c._uU(1,"N/A"),c.qZA())}function p(he,Me){if(1&he&&c._UZ(0,"qr-code",32),2&he){const ze=c.oxw();c.Q6J("value",null==ze.invoice?null:ze.invoice.payment_request)("size",ze.qrWidth)("errorCorrectionLevel","L")}}function u(he,Me){1&he&&(c.TgZ(0,"span",34),c._uU(1,"QR Code Not Applicable"),c.qZA())}function _(he,Me){1&he&&c._UZ(0,"mat-divider",22),2&he&&c.Q6J("inset",!0)}function L(he,Me){1&he&&(c.ynx(0),c._uU(1," (zero amount) "),c.BQk())}function I(he,Me){1&he&&c._UZ(0,"span",40)}const x=function(){return[]};function r(he,Me){if(1&he&&(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&he){const ze=c.oxw(2);c.xp6(3),c.hij("",c.lcZ(4,2,null==ze.invoice?null:ze.invoice.amt_paid_sat)," Sats"),c.xp6(2),c.Q6J("ngForOf",c.DdM(4,x).constructor(35))}}function b(he,Me){if(1&he&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"number"),c.qZA()),2&he){const ze=c.oxw(2);c.xp6(1),c.hij("",c.lcZ(2,1,null==ze.invoice?null:ze.invoice.amt_paid_sat)," Sats")}}function J(he,Me){if(1&he&&(c.ynx(0),c.YNc(1,r,6,5,"div",35),c.YNc(2,b,3,3,"div",21),c.BQk()),2&he){const ze=c.oxw();c.xp6(1),c.Q6J("ngIf",ze.flgInvoicePaid),c.xp6(1),c.Q6J("ngIf",!ze.flgInvoicePaid)}}function F(he,Me){1&he&&(c.TgZ(0,"span"),c._uU(1,"-"),c.qZA())}function B(he,Me){1&he&&c._UZ(0,"mat-spinner",42),2&he&&c.Q6J("diameter",20)}function te(he,Me){if(1&he&&(c.ynx(0),c.YNc(1,F,2,0,"span",21),c.YNc(2,B,1,1,"mat-spinner",41),c.BQk()),2&he){const ze=c.oxw();c.xp6(1),c.Q6J("ngIf","OPEN"!==(null==ze.invoice?null:ze.invoice.state)||!ze.flgVersionCompatible),c.xp6(1),c.Q6J("ngIf","OPEN"===(null==ze.invoice?null:ze.invoice.state)&&ze.flgVersionCompatible)}}const xe=function(he){return{"mr-0":he}};function Pe(he,Me){if(1&he&&c._UZ(0,"span",59),2&he){const ze=c.oxw(4);c.Q6J("ngClass",c.VKq(1,xe,ze.screenSize===ze.screenSizeEnum.XS))}}function Fe(he,Me){if(1&he&&c._UZ(0,"span",60),2&he){const ze=c.oxw(4);c.Q6J("ngClass",c.VKq(1,xe,ze.screenSize===ze.screenSizeEnum.XS))}}function q(he,Me){if(1&he&&c._UZ(0,"span",61),2&he){const ze=c.oxw(4);c.Q6J("ngClass",c.VKq(1,xe,ze.screenSize===ze.screenSizeEnum.XS))}}function j(he,Me){if(1&he&&(c.TgZ(0,"div",48),c.TgZ(1,"div",53),c.TgZ(2,"span",54),c.YNc(3,Pe,1,3,"span",55),c.YNc(4,Fe,1,3,"span",56),c.YNc(5,q,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&he){const ze=Me.$implicit,ht=c.oxw(3);c.xp6(3),c.Q6J("ngIf","SETTLED"===ze.state),c.xp6(1),c.Q6J("ngIf","ACCEPTED"===ze.state),c.xp6(1),c.Q6J("ngIf","CANCELED"===ze.state),c.xp6(1),c.hij(" ",ze.chan_id," "),c.xp6(2),c.Oqu(c.xi3(9,6,+ze.amt_msat/1e3||0,ht.getDecimalFormat(ze))),c.xp6(2),c.Q6J("inset",!0)}}function we(he,Me){if(1&he){const ze=c.EpF();c.TgZ(0,"div",17),c.TgZ(1,"mat-expansion-panel",46),c.NdJ("opened",function(){return c.CHM(ze),c.oxw(2).flgOpened=!0})("closed",function(){return c.CHM(ze),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,j,11,9,"div",52),c.qZA(),c.qZA(),c.qZA()}if(2&he){const ze=c.oxw(2);c.xp6(12),c.Q6J("inset",!0),c.xp6(1),c.Q6J("ngForOf",null==ze.invoice?null:ze.invoice.htlcs)}}function Ae(he,Me){1&he&&c._UZ(0,"mat-divider",22),2&he&&c.Q6J("inset",!0)}function le(he,Me){if(1&he&&(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,we,14,2,"div",45),c.YNc(27,Ae,1,1,"mat-divider",14),c.qZA()),2&he){const ze=c.oxw();c.xp6(1),c.Q6J("inset",!0),c.xp6(6),c.Oqu((null==ze.invoice?null:ze.invoice.r_preimage)||"-"),c.xp6(1),c.Q6J("inset",!0),c.xp6(6),c.Oqu(null==ze.invoice?null:ze.invoice.state),c.xp6(5),c.Oqu(null==ze.invoice?null:ze.invoice.expiry),c.xp6(5),c.Oqu(null!=ze.invoice&&ze.invoice.private?"Yes":"No"),c.xp6(1),c.Q6J("inset",!0),c.xp6(1),c.Q6J("ngIf",(null==ze.invoice?null:ze.invoice.htlcs)&&(null==ze.invoice?null:ze.invoice.htlcs.length)>0),c.xp6(1),c.Q6J("ngIf",(null==ze.invoice?null:ze.invoice.htlcs)&&(null==ze.invoice?null:ze.invoice.htlcs.length)>0)}}function We(he,Me){if(1&he){const ze=c.EpF();c.TgZ(0,"div",62),c.TgZ(1,"button",63),c.NdJ("click",function(){return c.CHM(ze),c.oxw().onScrollDown()}),c.TgZ(2,"mat-icon",64),c._uU(3,"arrow_downward"),c.qZA(),c.qZA(),c.qZA()}}function yt(he,Me){1&he&&(c.TgZ(0,"p"),c._uU(1,"Show Advanced"),c.qZA())}function Ne(he,Me){1&he&&(c.TgZ(0,"p"),c._uU(1,"Hide Advanced"),c.qZA())}function Ve(he,Me){if(1&he){const ze=c.EpF();c.TgZ(0,"button",65),c.NdJ("copied",function(it){return c.CHM(ze),c.oxw().onCopyPayment(it)}),c._uU(1),c.qZA()}if(2&he){const ze=c.oxw();c.Q6J("payload",null==ze.invoice?null:ze.invoice.payment_request),c.xp6(1),c.Oqu(ze.screenSize===ze.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function ue(he,Me){if(1&he){const ze=c.EpF();c.TgZ(0,"button",66),c.NdJ("click",function(){return c.CHM(ze),c.oxw().onClose()}),c._uU(1,"OK"),c.qZA()}}const Te=function(he){return{"display-none":he}},ke=function(he){return{"xs-scroll-y":he}},Y=function(he){return{"h-46":he}};let X=(()=>{class he{constructor(ze,ht,it,ft,nt,st){this.dialogRef=ze,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(ze){ze&&(this.scrollContainer=ze)}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(C.Q5).pipe((0,M.R)(this.unSubs[0])).subscribe(ht=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ht.version,"0.11.0")});const ze=JSON.parse(JSON.stringify(this.invoice));this.store.select(C.Ef).pipe((0,M.R)(this.unSubs[1])).subscribe(ht=>{const it=this.invoice.state,nt=(ht.listInvoices.invoices||[]).find(st=>st.r_hash===ze.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(ze){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+ze)}getDecimalFormat(ze){return ze.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(ze=>{ze.next(null),ze.complete()})}}return he.\u0275fac=function(ze){return new(ze||he)(c.Y36(e.so),c.Y36(e.WI),c.Y36(R.mQ),c.Y36(o.v),c.Y36(O.ux),c.Y36(T.yh))},he.\u0275cmp=c.Xpm({type:he,selectors:[["rtl-invoice-information"]],viewQuery:function(ze,ht){if(1&ze&&c.Gf(y,5),2&ze){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(ze,ht){if(1&ze&&(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,L,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,J,3,2,"ng-container",21),c.YNc(33,te,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,le,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,yt,2,0,"p",28),c.YNc(67,Ne,2,0,"ng-template",null,29,c.W1O),c.qZA(),c.YNc(69,Ve,2,2,"button",30),c.YNc(70,ue,2,0,"button",31),c.qZA(),c.qZA(),c.qZA()),2&ze){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,Te,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,Te,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,Y,(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:[P.xw,P.Wh,P.yH,S.mk,D.oO,S.O5,w.dk,U.BN,G.lW,w.dn,W.$V,ee.d,ie.uU,S.sg,_e.$g,fe.ib,fe.yz,fe.yK,de.gM,ne.Hw,se.h,oe.y],pipes:[S.JJ,S.uU],styles:[""]}),he})()},7772:(Ue,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:(Ue,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:(Ue,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:(Ue,K,m)=>{"use strict";m.d(K,{H:()=>T});var e=m(8966),t=m(5e3),v=m(5043),M=m(7093),s=m(9224),C=m(7423),c=m(9808),R=m(4834),o=m(3390);function O(P,S){if(1&P&&(t.TgZ(0,"p",14),t._uU(1),t.qZA()),2&P){const D=t.oxw();t.xp6(1),t.Oqu(D.data.titleMessage)}}let T=(()=>{class P{constructor(D,w,U){this.dialogRef=D,this.data=w,this.logger=U,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 P.\u0275fac=function(D){return new(D||P)(t.Y36(e.so),t.Y36(e.WI),t.Y36(v.mQ))},P.\u0275cmp=t.Xpm({type:P,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(D,w){1&D&&(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,O,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&D&&(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:[M.xw,M.yH,s.dk,M.Wh,C.lW,s.dn,c.O5,R.d,o.h,e.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),P})()},9442:(Ue,K,m)=>{"use strict";m.d(K,{w:()=>R});var e=m(801),t=m(5e3),v=m(9291),M=m(7093),s=m(9444),C=m(9224),c=m(7423);let R=(()=>{class o{constructor(T){this.router=T,this.faTimes=e.NBC}goToHelp(){this.router.navigate(["/help"])}}return o.\u0275fac=function(T){return new(T||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(T,P){1&T&&(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 P.goToHelp()}),t._uU(12,"Go To Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&T&&(t.xp6(1),t.Q6J("icon",P.faTimes))},directives:[M.xw,M.Wh,s.BN,C.a8,C.dn,M.yH,c.lW],encapsulation:2}),o})()},8213:(Ue,K,m)=>{"use strict";m.d(K,{a:()=>Xi});var e=m(3075),t=m(7579),v=m(2722),M=m(8966),s=m(801),C=m(7772),c=m(7731),R=m(6529),o=m(5e3),O=m(5620),T=m(9107),P=m(9808),S=m(5043),D=m(9291),w=m(62),U=m(7093),G=m(9224),W=m(7423),ee=m(5615),ie=m(1125),_e=m(3322),fe=m(5245),de=m(7238),ne=m(4834);function se(Ke,mt){1&Ke&&o.GkF(0)}function oe(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,oe,1,0,"ng-container",0),o.qZA()),2&Ke){const be=o.oxw(),qe=o.MAs(4);o.Q6J("expanded",be.panelExpanded)("ngClass",o.VKq(7,y,!be.flgShowPanel)),o.xp6(4),o.AsE("Quote for ",be.termCaption," amount (",o.lcZ(5,5,be.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 be=o.oxw(2);o.xp6(6),o.Oqu(o.lcZ(7,1,null==be.quote?null:be.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 be=o.oxw(2);o.xp6(7),o.Oqu(null==be.quote?null:be.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 be=o.oxw();o.xp6(2),o.Q6J("fxFlex",null!=be.quote&&be.quote.prepay_amt_sat?"30":"50"),o.xp6(6),o.Oqu(o.lcZ(9,9,null==be.quote?null:be.quote.swap_fee_sat)),o.xp6(2),o.Q6J("fxFlex",null!=be.quote&&be.quote.prepay_amt_sat?"35":"50"),o.xp6(2),o.hij(" ",null!=be.quote&&be.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=be.quote&&be.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),o.xp6(4),o.Oqu(o.lcZ(17,11,null!=be.quote&&be.quote.htlc_sweep_fee_sat?be.quote.htlc_sweep_fee_sat:null!=be.quote&&be.quote.htlc_publish_fee_sat?be.quote.htlc_publish_fee_sat:0)),o.xp6(2),o.Q6J("ngIf",null==be.quote?null:be.quote.prepay_amt_sat),o.xp6(9),o.Oqu(o.lcZ(28,13,(null==be.quote?null:be.quote.amount)*((null!=be.quote&&be.quote.off_chain_swap_routing_fee_percentage?null==be.quote?null:be.quote.off_chain_swap_routing_fee_percentage:2)/100))),o.xp6(9),o.Q6J("ngIf",""!==(null==be.quote?null:be.quote.swap_payment_dest)),o.xp6(1),o.Q6J("ngIf",""!==(null==be.quote?null:be.quote.swap_payment_dest))}}let L=(()=>{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(be){return new(be||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(be,qe){if(1&be&&(o.YNc(0,se,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&be){const vt=o.MAs(2),me=o.MAs(4);o.Q6J("ngTemplateOutlet",qe.showPanel?vt:me)}},directives:[P.tP,ie.ib,U.yH,P.mk,_e.oO,ie.yz,ie.yK,U.Wh,U.xw,fe.Hw,de.gM,P.O5,ne.d],pipes:[P.JJ],styles:[""]}),Ke})();var I=m(7322),x=m(7531),r=m(3390),b=m(2368),J=m(9814),F=m(5899);function B(Ke,mt){1&Ke&&o.GkF(0)}function te(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 be=o.oxw();o.xp6(2),o.Oqu(null!=be.loopStatus&&be.loopStatus.error?null==be.loopStatus?null:be.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 be=o.oxw();o.xp6(6),o.Oqu(null==be.loopStatus?null:be.loopStatus.id_bytes),o.xp6(7),o.Oqu(null==be.loopStatus?null:be.loopStatus.htlc_address)}}let Pe=(()=>{class Ke{constructor(){}}return Ke.\u0275fac=function(be){return new(be||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(be,qe){if(1&be&&(o.YNc(0,B,1,0,"ng-container",0),o.YNc(1,te,3,1,"ng-template",null,1,o.W1O),o.YNc(3,xe,14,2,"ng-template",null,2,o.W1O)),2&be){const vt=o.MAs(2),me=o.MAs(4);o.Q6J("ngTemplateOutlet",null!=qe.loopStatus&&qe.loopStatus.error?vt:me)}},directives:[P.tP,U.xw,U.yH,U.Wh,ne.d],styles:[""]}),Ke})();var Fe=m(113);function q(Ke,mt){1&Ke&&o.GkF(0)}const j=function(Ke,mt){return{"small-svg":Ke,"large-svg":mt}};function we(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(vt){return o.CHM(be),o.oxw().onSwipe(vt)}),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 be=o.oxw();o.Q6J("@sliderAnimation",be.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,j,be.screenSize===be.screenSizeEnum.XS,be.screenSize!==be.screenSizeEnum.XS))}}function Ae(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(vt){return o.CHM(be),o.oxw().onSwipe(vt)}),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 be=o.oxw();o.Q6J("@sliderAnimation",be.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,j,be.screenSize===be.screenSizeEnum.XS,be.screenSize!==be.screenSizeEnum.XS))}}function le(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(vt){return o.CHM(be),o.oxw().onSwipe(vt)}),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 be=o.oxw();o.Q6J("@sliderAnimation",be.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,j,be.screenSize===be.screenSizeEnum.XS,be.screenSize!==be.screenSizeEnum.XS))}}function We(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(vt){return o.CHM(be),o.oxw().onSwipe(vt)}),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 be=o.oxw();o.Q6J("@sliderAnimation",be.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,j,be.screenSize===be.screenSizeEnum.XS,be.screenSize!==be.screenSizeEnum.XS))}}function yt(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(vt){return o.CHM(be),o.oxw().onSwipe(vt)}),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 be=o.oxw();o.Q6J("@sliderAnimation",be.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,j,be.screenSize===be.screenSizeEnum.XS,be.screenSize!==be.screenSizeEnum.XS))}}let Ne=(()=>{class Ke{constructor(be){this.commonService=be,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new o.vpe,this.screenSize="",this.screenSizeEnum=c.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(be){2===be.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===be.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ke.\u0275fac=function(be){return new(be||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(be,qe){if(1&be&&(o.YNc(0,q,1,0,"ng-container",0),o.YNc(1,we,32,5,"ng-template",null,1,o.W1O),o.YNc(3,Ae,51,5,"ng-template",null,2,o.W1O),o.YNc(5,le,74,5,"ng-template",null,3,o.W1O),o.YNc(7,We,53,5,"ng-template",null,4,o.W1O),o.YNc(9,yt,66,5,"ng-template",null,5,o.W1O)),2&be){const vt=o.MAs(2),me=o.MAs(4),$e=o.MAs(6),St=o.MAs(8),Pt=o.MAs(10);o.Q6J("ngTemplateOutlet",1===qe.stepNumber?vt:2===qe.stepNumber?me:3===qe.stepNumber?$e:4===qe.stepNumber?St:Pt)}},directives:[P.tP,U.xw,U.yH,U.Wh,P.mk,_e.oO,G.n5,G.$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:[Fe.l]}}),Ke})();function Ve(Ke,mt){1&Ke&&o.GkF(0)}const ue=function(Ke,mt){return{"small-svg":Ke,"large-svg":mt}};function Te(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(vt){return o.CHM(be),o.oxw().onSwipe(vt)}),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 be=o.oxw();o.Q6J("@sliderAnimation",be.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,ue,be.screenSize===be.screenSizeEnum.XS,be.screenSize!==be.screenSizeEnum.XS))}}function ke(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(vt){return o.CHM(be),o.oxw().onSwipe(vt)}),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 be=o.oxw();o.Q6J("@sliderAnimation",be.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,ue,be.screenSize===be.screenSizeEnum.XS,be.screenSize!==be.screenSizeEnum.XS))}}function Y(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(vt){return o.CHM(be),o.oxw().onSwipe(vt)}),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 be=o.oxw();o.Q6J("@sliderAnimation",be.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,ue,be.screenSize===be.screenSizeEnum.XS,be.screenSize!==be.screenSizeEnum.XS))}}function X(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(vt){return o.CHM(be),o.oxw().onSwipe(vt)}),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 be=o.oxw();o.Q6J("@sliderAnimation",be.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,ue,be.screenSize===be.screenSizeEnum.XS,be.screenSize!==be.screenSizeEnum.XS))}}function he(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"div",6),o.NdJ("swipe",function(vt){return o.CHM(be),o.oxw().onSwipe(vt)}),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 be=o.oxw();o.Q6J("@sliderAnimation",be.animationDirection),o.xp6(1),o.Q6J("ngClass",o.WLB(2,ue,be.screenSize===be.screenSizeEnum.XS,be.screenSize!==be.screenSizeEnum.XS))}}let Me=(()=>{class Ke{constructor(be){this.commonService=be,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new o.vpe,this.screenSize="",this.screenSizeEnum=c.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(be){2===be.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===be.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ke.\u0275fac=function(be){return new(be||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(be,qe){if(1&be&&(o.YNc(0,Ve,1,0,"ng-container",0),o.YNc(1,Te,32,5,"ng-template",null,1,o.W1O),o.YNc(3,ke,66,5,"ng-template",null,2,o.W1O),o.YNc(5,Y,93,5,"ng-template",null,3,o.W1O),o.YNc(7,X,54,5,"ng-template",null,4,o.W1O),o.YNc(9,he,51,5,"ng-template",null,5,o.W1O)),2&be){const vt=o.MAs(2),me=o.MAs(4),$e=o.MAs(6),St=o.MAs(8),Pt=o.MAs(10);o.Q6J("ngTemplateOutlet",1===qe.stepNumber?vt:2===qe.stepNumber?me:3===qe.stepNumber?$e:4===qe.stepNumber?St:Pt)}},directives:[P.tP,U.xw,U.yH,U.Wh,P.mk,_e.oO,G.n5,G.$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:[Fe.l]}}),Ke})();const ze=["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 be=o.oxw(2);o.xp6(4),o.Oqu(o.lcZ(5,2,be.channel.remote_alias)),o.xp6(5),o.Oqu(be.channel.chan_id)}}function it(Ke,mt){if(1&Ke&&o._uU(0),2&Ke){const be=o.oxw(2);o.Oqu(be.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 be=o.oxw(2);o.xp6(1),o.hij("Amount must be greater than or equal to ",o.lcZ(2,1,be.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 be=o.oxw(2);o.xp6(1),o.hij("Amount must be less than or equal to ",o.lcZ(2,1,be.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 Nt(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,Nt,2,0,"mat-error",25),o.YNc(3,Vt,2,0,"mat-error",25),o.qZA()),2&Ke){const be=o.oxw(2);o.xp6(1),o.Q6J("step",1),o.xp6(1),o.Q6J("ngIf",null==be.inputFormGroup.controls.routingFeePercent.errors?null:be.inputFormGroup.controls.routingFeePercent.errors.required),o.xp6(1),o.Q6J("ngIf",null==be.inputFormGroup.controls.routingFeePercent.errors?null:be.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 be=o.oxw(2);o.Oqu(be.quoteFormLabel)}}function Ri(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 be=o.EpF();o.TgZ(0,"button",57),o.NdJ("click",function(){return o.CHM(be),o.oxw(2).onValidateAmount()}),o._uU(1,"Next"),o.qZA()}}function di(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"button",58),o.NdJ("click",function(){return o.CHM(be),o.oxw(2).onLoop()}),o._uU(1),o.qZA()}if(2&Ke){const be=o.oxw(2);o.xp6(1),o.hij("Initiate ",be.loopDirectionCaption,"")}}function He(Ke,mt){if(1&Ke&&o._uU(0),2&Ke){const be=o.oxw(3);o.Oqu(be.addressFormLabel)}}function Se(Ke,mt){1&Ke&&(o.TgZ(0,"mat-error"),o._uU(1,"Address is required."),o.qZA())}function V(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"mat-step",16),o.TgZ(1,"form",17),o.YNc(2,He,1,1,"ng-template",18),o.TgZ(3,"div",59),o.TgZ(4,"mat-radio-group",60),o.NdJ("change",function(vt){return o.CHM(be),o.oxw(2).onAddressTypeChange(vt)}),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,Se,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(be),o.oxw(2).onLoop()}),o._uU(14),o.qZA(),o.qZA(),o.qZA(),o.qZA()}if(2&Ke){const be=o.oxw(2);o.Q6J("stepControl",be.addressFormGroup)("editable",be.flgEditable),o.xp6(1),o.Q6J("formGroup",be.addressFormGroup),o.xp6(9),o.Q6J("required","external"===be.addressFormGroup.controls.addressType.value),o.xp6(1),o.Q6J("ngIf",null==be.addressFormGroup.controls.address.errors?null:be.addressFormGroup.controls.address.errors.required),o.xp6(3),o.hij("Initiate ",be.loopDirectionCaption,"")}}function ve(Ke,mt){if(1&Ke&&o._uU(0),2&Ke){const be=o.oxw(2);o.hij("",be.loopDirectionCaption," Status")}}function Ee(Ke,mt){if(1&Ke&&(o.TgZ(0,"mat-icon",66),o._uU(1),o.qZA()),2&Ke){const be=o.oxw(2);o.xp6(1),o.Oqu(be.loopStatus&&null!=be.loopStatus&&be.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 Rt(Ke,mt){if(1&Ke&&(o.TgZ(0,"h4",68),o._uU(1),o.qZA()),2&Ke){const be=o.oxw(2);o.xp6(1),o.Oqu(be.loopStatus&&be.loopStatus.error?be.loopDirectionCaption+" failed.":be.loopStatus&&be.loopStatus.id_bytes&&be.channel?be.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":be.loopDirectionCaption+" request placed successfully.")}}function Xt(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"button",69),o.NdJ("click",function(){return o.CHM(be),o.oxw(2).goToLoop()}),o._uU(1,"Check Status"),o.qZA()}}function lt(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"button",70),o.NdJ("click",function(){return o.CHM(be),o.oxw(2).onRestart()}),o._uU(1,"Start Again"),o.qZA()}}function Re(Ke,mt){if(1&Ke){const be=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(be),o.oxw().showInfo()}),o._uU(8,"?"),o.qZA(),o.TgZ(9,"button",10),o.NdJ("click",function(){return o.CHM(be),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(vt){return o.CHM(be),o.oxw().stepSelectionChanged(vt)}),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(be),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,Ri,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,V,15,6,"mat-step",35),o.TgZ(52,"mat-step",36),o.TgZ(53,"form",17),o.YNc(54,ve,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,Ee,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,Rt,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 be=o.oxw(),qe=o.MAs(2);o.Q6J("@opacityAnimation",void 0),o.xp6(3),o.Q6J("fxFlex",be.screenSize===be.screenSizeEnum.XS||be.screenSize===be.screenSizeEnum.SM?"83":"91"),o.xp6(2),o.Oqu(be.channel?"Channel "+be.loopDirectionCaption:be.loopDirectionCaption),o.xp6(1),o.Q6J("fxFlex",be.screenSize===be.screenSizeEnum.XS||be.screenSize===be.screenSizeEnum.SM?"17":"9"),o.xp6(7),o.Q6J("ngIf",be.channel),o.xp6(1),o.Q6J("linear",!0),o.xp6(2),o.Q6J("stepControl",be.inputFormGroup)("editable",be.flgEditable),o.xp6(1),o.Q6J("formGroup",be.inputFormGroup),o.xp6(3),o.Q6J("quote",be.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),o.xp6(1),o.Q6J("quote",be.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),o.xp6(2),o.Q6J("fxFlex",be.direction===be.LoopTypeEnum.LOOP_OUT?"35":"48"),o.xp6(1),o.Q6J("step",1e3),o.xp6(2),o.AsE("Range: ",o.lcZ(27,51,be.minQuote.amount),"-",o.lcZ(28,53,be.maxQuote.amount),""),o.xp6(5),o.Q6J("ngIf",null==be.inputFormGroup.controls.amount.errors?null:be.inputFormGroup.controls.amount.errors.required),o.xp6(1),o.Q6J("ngIf",null==be.inputFormGroup.controls.amount.errors?null:be.inputFormGroup.controls.amount.errors.min),o.xp6(1),o.Q6J("ngIf",null==be.inputFormGroup.controls.amount.errors?null:be.inputFormGroup.controls.amount.errors.max),o.xp6(1),o.Q6J("fxFlex",be.direction===be.LoopTypeEnum.LOOP_OUT?"30":"48"),o.xp6(1),o.Q6J("step",1),o.xp6(1),o.Q6J("ngIf",null==be.inputFormGroup.controls.sweepConfTarget.errors?null:be.inputFormGroup.controls.sweepConfTarget.errors.required),o.xp6(1),o.Q6J("ngIf",null==be.inputFormGroup.controls.sweepConfTarget.errors?null:be.inputFormGroup.controls.sweepConfTarget.errors.min),o.xp6(1),o.Q6J("ngIf",be.direction===be.LoopTypeEnum.LOOP_OUT),o.xp6(1),o.Q6J("ngIf",be.direction===be.LoopTypeEnum.LOOP_OUT),o.xp6(4),o.Q6J("stepControl",be.quoteFormGroup)("editable",be.flgEditable),o.xp6(1),o.Q6J("formGroup",be.quoteFormGroup),o.xp6(2),o.Q6J("quote",be.quote)("showPanel",!1),o.xp6(1),o.Q6J("ngIf",be.inputFormGroup.controls.amount.value>be.localBalanceToCompare),o.xp6(2),o.Q6J("ngIf",be.direction===be.LoopTypeEnum.LOOP_OUT),o.xp6(1),o.Q6J("ngIf",be.direction===be.LoopTypeEnum.LOOP_IN),o.xp6(1),o.Q6J("ngIf",be.direction===be.LoopTypeEnum.LOOP_OUT),o.xp6(1),o.Q6J("stepControl",be.statusFormGroup),o.xp6(1),o.Q6J("formGroup",be.statusFormGroup),o.xp6(3),o.Q6J("expanded",!!be.loopStatus),o.xp6(4),o.Oqu(be.loopStatus?be.loopStatus.id_bytes?be.loopDirectionCaption+" request details":be.loopDirectionCaption+" error details":"Waiting for "+be.loopDirectionCaption+" request..."),o.xp6(1),o.Q6J("ngIf",be.loopStatus),o.xp6(1),o.Q6J("ngIf",!be.loopStatus)("ngIfElse",qe),o.xp6(1),o.Q6J("ngIf",!be.loopStatus),o.xp6(1),o.Q6J("ngIf",be.loopStatus),o.xp6(2),o.Q6J("ngIf",be.loopStatus&&be.loopStatus.id_bytes&&be.channel),o.xp6(1),o.Q6J("ngIf",be.loopStatus&&(be.loopStatus.error||!be.loopStatus.id_bytes)),o.xp6(2),o.Q6J("mat-dialog-close",!1)}}function Be(Ke,mt){if(1&Ke&&o._UZ(0,"rtl-loop-status",71),2&Ke){const be=o.oxw();o.Q6J("loopStatus",be.loopStatus)}}function rt(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"rtl-loop-out-info-graphics",88),o.NdJ("stepNumberChange",function(vt){return o.CHM(be),o.oxw(2).stepNumber=vt}),o.qZA()}if(2&Ke){const be=o.oxw(2);o.Q6J("stepNumber",be.stepNumber)("animationDirection",be.animationDirection)}}function ot(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"rtl-loop-in-info-graphics",88),o.NdJ("stepNumberChange",function(vt){return o.CHM(be),o.oxw(2).stepNumber=vt}),o.qZA()}if(2&Ke){const be=o.oxw(2);o.Q6J("stepNumber",be.stepNumber)("animationDirection",be.animationDirection)}}const At=function(Ke,mt){return{"dot-primary":Ke,"dot-primary-lighter":mt}};function li(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"span",89),o.NdJ("click",function(){const me=o.CHM(be).$implicit;return o.oxw(2).onStepChanged(me)}),o._UZ(1,"p",90),o.qZA()}if(2&Ke){const be=mt.$implicit,qe=o.oxw(2);o.xp6(1),o.Q6J("ngClass",o.WLB(1,At,qe.stepNumber===be,qe.stepNumber!==be))}}function Ut(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"button",91),o.NdJ("click",function(){return o.CHM(be),o.oxw(2).onReadMore()}),o._uU(1,"Read More"),o.qZA()}}function Ft(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"button",92),o.NdJ("click",function(){return o.CHM(be),o.oxw(2).onStepChanged(4)}),o._uU(1,"Back"),o.qZA()}}function Si(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"button",93),o.NdJ("click",function(){o.CHM(be);const vt=o.oxw(2);return vt.flgShowInfo=!1,vt.stepNumber=1}),o._uU(1,"Close"),o.qZA()}}function ai(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"button",94),o.NdJ("click",function(){o.CHM(be);const vt=o.oxw(2);return vt.flgShowInfo=!1,vt.stepNumber=1}),o._uU(1,"Close"),o.qZA()}}function ci(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"button",95),o.NdJ("click",function(){o.CHM(be);const vt=o.oxw(2);return vt.onStepChanged(vt.stepNumber-1)}),o._uU(1,"Back"),o.qZA()}}function rn(Ke,mt){if(1&Ke){const be=o.EpF();o.TgZ(0,"button",96),o.NdJ("click",function(){o.CHM(be);const vt=o.oxw(2);return vt.onStepChanged(vt.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 be=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(be);const vt=o.oxw();return vt.flgShowInfo=!1,vt.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 be=o.oxw();o.Q6J("@opacityAnimation",void 0),o.xp6(9),o.Q6J("ngIf",be.direction===be.LoopTypeEnum.LOOP_OUT),o.xp6(1),o.Q6J("ngIf",be.direction===be.LoopTypeEnum.LOOP_IN),o.xp6(2),o.Q6J("ngForOf",o.DdM(10,Vi)),o.xp6(2),o.Q6J("ngIf",5===be.stepNumber),o.xp6(1),o.Q6J("ngIf",5===be.stepNumber),o.xp6(1),o.Q6J("ngIf",5===be.stepNumber),o.xp6(1),o.Q6J("ngIf",be.stepNumber<5),o.xp6(1),o.Q6J("ngIf",be.stepNumber>1&&be.stepNumber<5),o.xp6(1),o.Q6J("ngIf",be.stepNumber<5)}}let Xi=(()=>{class Ke{constructor(be,qe,vt,me,$e,St,Pt,yi,Pi){this.dialogRef=be,this.data=qe,this.store=vt,this.loopService=me,this.formBuilder=$e,this.decimalPipe=St,this.logger=Pt,this.router=yi,this.commonService=Pi,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(R.ZW).pipe((0,v.R)(this.unSubs[6])).subscribe(be=>{this.localBalanceToCompare=this.channel?+this.channel.local_balance:+be.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(be=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===c.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,v.R)(this.unSubs[5])).subscribe(be=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(be){"external"===be.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:be=>{this.loopStatus=be,this.loopService.listSwaps(),this.flgEditable=!0},error:be=>{this.loopStatus={error:be},this.flgEditable=!0,this.logger.error(be)}});else{const be=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:"",vt=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,be,+this.quote.htlc_sweep_fee_sat,this.prepayRoutingFee,+this.quote.prepay_amt_sat,+this.quote.swap_fee_sat,vt,qe).pipe((0,v.R)(this.unSubs[1])).subscribe({next:me=>{this.loopStatus=me,this.loopService.listSwaps(),this.flgEditable=!0},error:me=>{this.loopStatus={error:me},this.flgEditable=!0,this.logger.error(me)}})}}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 be=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,be).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,be).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(be){switch(be.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!==be.selectedIndex&&be.selectedIndex<be.previouslySelectedIndex||this.direction===c.$I.LOOP_IN&&be.selectedIndex<be.previouslySelectedIndex)&&be.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(be){this.animationDirection=be<this.stepNumber?"backward":"forward",this.stepNumber=be}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(be=>{be.next(null),be.complete()})}}return Ke.\u0275fac=function(be){return new(be||Ke)(o.Y36(M.so),o.Y36(M.WI),o.Y36(O.yh),o.Y36(T.W),o.Y36(e.qu),o.Y36(P.JJ),o.Y36(S.mQ),o.Y36(D.F0),o.Y36(w.v))},Ke.\u0275cmp=o.Xpm({type:Ke,selectors:[["rtl-loop-modal"]],viewQuery:function(be,qe){if(1&be&&o.Gf(ze,5),2&be){let vt;o.iGM(vt=o.CRH())&&(qe.stepper=vt.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(be,qe){1&be&&(o.YNc(0,Re,71,55,"div",0),o.YNc(1,Be,1,1,"ng-template",null,1,o.W1O),o.YNc(3,Di,20,11,"div",2)),2&be&&(o.Q6J("ngIf",!qe.flgShowInfo),o.xp6(3),o.Q6J("ngIf",qe.flgShowInfo))},directives:[P.O5,U.xw,U.yH,U.Wh,G.dk,W.lW,G.dn,ee.Vq,ee.C0,e._Y,e.JL,e.sg,ee.VY,L,I.KE,x.Nt,e.wV,e.Fj,r.h,e.JJ,e.u,e.Q7,I.bx,I.R9,ie.ib,ie.yz,ie.yK,M.ZT,I.TO,b.Rr,fe.Hw,de.gM,J.VQ,J.U0,F.pW,Pe,P.sg,Ne,Me,P.mk,_e.oO],pipes:[P.JJ,P.rS],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[C._]}}),Ke})()},3390:(Ue,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:(Ue,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())},C=>{this.copied.emit("Error could not copy text: "+JSON.stringify(C))})}}return v.\u0275fac=function(s){return new(s||v)},v.\u0275dir=e.lG2({type:v,selectors:[["","rtlClipboard",""]],hostBindings:function(s,C){1&s&&e.NdJ("click",function(R){return C.onClick(R)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),v})()},6534:(Ue,K,m)=>{"use strict";m.d(K,{q:()=>v});var e=m(3075),t=m(5e3);let v=(()=>{class M{validate(C){return this.min?e.kI.min(+this.min)(C):null}}return M.\u0275fac=function(C){return new(C||M)},M.\u0275dir=t.lG2({type:M,selectors:[["input","min",""]],inputs:{min:"min"},features:[t._Bn([{provide:e.Cf,useExisting:M,multi:!0}])]}),M})()},1643:(Ue,K,m)=>{"use strict";m.d(K,{a1:()=>s,QM:()=>C,lB:()=>c,fY:()=>R});var e=m(4004),t=m(5e3),v=m(9291),M=m(5986);let s=(()=>{class o{constructor(T,P){this.router=T,this.sessionService=P}canActivate(T){return!(!this.sessionService.getItem("token")||"settings"!==T.url[0].path&&"auth"!==T.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return o.\u0275fac=function(T){return new(T||o)(t.LFG(v.F0),t.LFG(M.m))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac}),o})(),C=(()=>{class o{constructor(T){this.sessionService=T}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(T=>T.lndUnlocked))}}return o.\u0275fac=function(T){return new(T||o)(t.LFG(M.m))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac}),o})(),c=(()=>{class o{constructor(T){this.sessionService=T}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(T=>T.clUnlocked))}}return o.\u0275fac=function(T){return new(T||o)(t.LFG(M.m))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac}),o})(),R=(()=>{class o{constructor(T){this.sessionService=T}canActivate(){return!!this.sessionService.watchSession().pipe((0,e.U)(T=>T.eclUnlocked))}}return o.\u0275fac=function(T){return new(T||o)(t.LFG(M.m))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac}),o})()},62:(Ue,K,m)=>{"use strict";m.d(K,{v:()=>T});var e=m(1135),t=m(9646),v=m(2843),M=m(5698),s=m(4004),C=m(262),c=m(7731),R=m(5e3),o=m(8104),O=m(5043);let T=(()=>{class P{constructor(D,w){this.dataService=D,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(D){this.screenSize=D}getContainerSize(){return this.containerSize}setContainerSize(D,w){this.containerSize={width:D,height:w},this.containerSizeUpdated.next(this.containerSize)}sortByKey(D,w,U,G="asc"){return D.sort("number"===U?"desc"===G?(W,ee)=>+W[w]>+ee[w]?-1:1:(W,ee)=>+W[w]>+ee[w]?1:-1:"desc"===G?(W,ee)=>W[w]>ee[w]?-1:1:(W,ee)=>W[w]>ee[w]?1:-1)}sortDescByKey(D,w){return D.sort((U,G)=>{const W=+U[w],ee=+G[w];return W>ee?-1:W<ee?1:0})}sortAscByKey(D,w){return D.sort((U,G)=>{const W=+U[w],ee=+G[w];return W<ee?-1:W>ee?1:0})}camelCase(D){return D.replace(/(?:^\w|[A-Z]|\b\w)/g,(w,U)=>w.toUpperCase()).replace(/\s+/g,"").replace(/-/g," ")}titleCase(D){return D.indexOf("!\n")>0||D.indexOf(".\n")>0?D.split("\n").reduce((w,U)=>w+U.charAt(0).toUpperCase()+U.substring(1).toLowerCase()+"\n",""):D.charAt(0).toUpperCase()+D.substring(1).toLowerCase()}convertCurrency(D,w,U,G,W){const ee=(new Date).valueOf();return W&&G&&this.ratesAPIStatus!==c.Bn.INITIATED&&(w===c.NT.OTHER||U===c.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ee<this.conversionData.last_fetched.valueOf()+3e5?(0,t.of)(this.convertWithFiat(D,w,G)):(this.ratesAPIStatus=c.Bn.INITIATED,this.dataService.getFiatRates().pipe((0,M.q)(1),(0,s.U)(ie=>(this.ratesAPIStatus=c.Bn.COMPLETED,this.conversionData.data=ie&&"object"==typeof ie?ie:ie&&"string"==typeof ie?JSON.parse(ie):{},this.conversionData.last_fetched=ee,this.convertWithFiat(D,w,G))),(0,C.K)(ie=>(this.ratesAPIStatus=c.Bn.ERROR,(0,v._)(()=>this.extractErrorMessage(ie,"Currency Conversion Error.")))))):(0,t.of)(this.convertWithoutFiat(D,w))}convertWithoutFiat(D,w){const U={};switch(U[c.NT.SATS]=0,U[c.NT.BTC]=0,w){case c.NT.SATS:U[c.NT.SATS]=D,U[c.NT.BTC]=1e-8*D;break;case c.NT.BTC:U[c.NT.SATS]=1e8*D,U[c.NT.BTC]=D}return U}convertWithFiat(D,w,U){const G={unit:U,symbol:this.conversionData.data[U].symbol};switch(G[c.NT.SATS]=0,G[c.NT.BTC]=0,G[c.NT.OTHER]=0,w){case c.NT.SATS:G[c.NT.SATS]=D,G[c.NT.BTC]=1e-8*D,G[c.NT.OTHER]=1e-8*D*this.conversionData.data[U].last;break;case c.NT.BTC:G[c.NT.SATS]=1e8*D,G[c.NT.BTC]=D,G[c.NT.OTHER]=D*this.conversionData.data[U].last;break;case c.NT.OTHER:G[c.NT.SATS]=D/this.conversionData.data[U].last*1e8,G[c.NT.BTC]=D/this.conversionData.data[U].last,G[c.NT.OTHER]=D}return G}convertTime(D,w,U){switch(w){case c.Qk.SECS:switch(U){case c.Qk.MINS:D/=60;break;case c.Qk.HOURS:D/=3600;break;case c.Qk.DAYS:D/=86400}break;case c.Qk.MINS:switch(U){case c.Qk.SECS:D*=60;break;case c.Qk.HOURS:D/=60;break;case c.Qk.DAYS:D/=1440}break;case c.Qk.HOURS:switch(U){case c.Qk.SECS:D*=3600;break;case c.Qk.MINS:D*=60;break;case c.Qk.DAYS:D/=24}break;case c.Qk.DAYS:switch(U){case c.Qk.SECS:D=3600*D*24;break;case c.Qk.MINS:D=60*D*24;break;case c.Qk.HOURS:D*=24}}return D}downloadFile(D,w,U=".json",G=".csv"){let W=new Blob;W=".json"===U?new Blob(["\ufeff"+this.convertToCSV(D)],{type:"text/csv;charset=utf-8;"}):new Blob([D.toString()],{type:"text/plain;charset=utf-8"});const ee=document.createElement("a"),ie=URL.createObjectURL(W);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ee.setAttribute("target","_blank"),ee.setAttribute("href",ie),ee.setAttribute("download",w+G),ee.style.visibility="hidden",document.body.appendChild(ee),ee.click(),document.body.removeChild(ee)}convertToCSV(D){const w=[];let U="",G="",W="";return"object"!=typeof D&&(D=JSON.parse(D)),D.forEach((ie,_e)=>{for(const fe in ie)w.findIndex(de=>de===fe)<0&&w.push(fe)}),W=w.join(",")+"\r\n",D.forEach(ie=>{U="",w.forEach(_e=>{ie.hasOwnProperty(_e)?Array.isArray(ie[_e])?(G="",ie[_e].forEach((fe,de)=>{G+="object"==typeof fe?"("+JSON.stringify(fe).replace(/\,/g,";")+")":"("+fe+")"}),U+=G+","):U+="object"==typeof ie[_e]?JSON.stringify(ie[_e]).replace(/\,/g,";")+",":ie[_e]+",":U+=","}),W+=U.slice(0,-1)+"\r\n"}),W}isVersionCompatible(D,w){if(D){const U=D.trim().replace("v","").split("-")[0].split(".")||[],G=w.split(".");return+U[0]>+G[0]||+U[0]==+G[0]&&+U[1]>+G[1]||+U[0]==+G[0]&&+U[1]==+G[1]&&+U[2]>=+G[2]}return!1}extractErrorMessage(D,w="Unknown Error."){const U=this.titleCase(D.error&&D.error.error&&D.error.error.error&&D.error.error.error.error&&D.error.error.error.error.error&&"string"==typeof D.error.error.error.error.error?D.error.error.error.error.error:D.error&&D.error.error&&D.error.error.error&&D.error.error.error.error&&"string"==typeof D.error.error.error.error?D.error.error.error.error:D.error&&D.error.error&&D.error.error.error&&"string"==typeof D.error.error.error?D.error.error.error:D.error&&D.error.error&&"string"==typeof D.error.error?D.error.error:D.error&&"string"==typeof D.error?D.error:D.error&&D.error.error&&D.error.error.error&&D.error.error.error.error&&D.error.error.error.error.message&&"string"==typeof D.error.error.error.error.message?D.error.error.error.error.message:D.error&&D.error.error&&D.error.error.error&&D.error.error.error.message&&"string"==typeof D.error.error.error.message?D.error.error.error.message:D.error&&D.error.error&&D.error.error.message&&"string"==typeof D.error.error.message?D.error.error.message:D.error&&D.error.message&&"string"==typeof D.error.message?D.error.message:D.message&&"string"==typeof D.message?D.message:w);return this.logger.info("Error Message: "+U),U}extractErrorCode(D,w=500){const U=D.error&&D.error.error&&D.error.error.message&&D.error.error.message.code?D.error.error.message.code:D.error&&D.error.error&&D.error.error.code?D.error.error.code:D.error&&D.error.code?D.error.code:D.code?D.code:D.status?D.status:w;return this.logger.info("Error Code: "+U),U}extractErrorNumber(D,w=500){const U=D.error&&D.error.error&&D.error.error.errno?D.error.error.errno:D.error&&D.error.errno?D.error.errno:D.errno?D.errno:D.status?D.status:w;return this.logger.info("Error Number: "+U),U}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return P.\u0275fac=function(D){return new(D||P)(R.LFG(o.D),R.LFG(O.mQ))},P.\u0275prov=R.Yz7({token:P,factory:P.\u0275fac}),P})()},7731:(Ue,K,m)=>{"use strict";m.d(K,{pt:()=>t,uA:()=>v,Xz:()=>M,Er:()=>s,LO:()=>C,IV:()=>c,TJ:()=>R,_t:()=>o,Dr:()=>O,Vc:()=>T,vn:()=>P,wZ:()=>S,$v:()=>D,U5:()=>w,g8:()=>U,ol:()=>G,n_:()=>W,OJ:()=>ee,Qk:()=>ie,NT:()=>_e,Gi:()=>fe,cu:()=>de,HW:()=>ne,x$:()=>se,uX:()=>oe,Fq:()=>y,$I:()=>i,hc:()=>a,Qw:()=>p,gg:()=>u,op:()=>_,JX:()=>L,kO:()=>I,Bn:()=>x,m6:()=>r,IX:()=>b,pg:()=>J,uR:()=>F,sW:()=>B,lr:()=>te,_C:()=>xe,H_:()=>Pe,hZ:()=>Fe});var e=m(6087);function t(q){const j=new e.ye;return j.itemsPerPageLabel=q+" per page:",j}const v=["Sats","BTC"],M={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"}],C=["SECS","MINS","HOURS","DAYS"],c=10,R=[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)"}],O=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],T=[{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"}],P=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vB)"}],S={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 D=(()=>{return(q=D||(D={})).PAYMENT_RECEIVED="payment-received",q.PAYMENT_RELAYED="payment-relayed",q.PAYMENT_SENT="payment-sent",q.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",q.PAYMENT_FAILED="payment-failed",q.CHANNEL_OPENED="channel-opened",q.CHANNEL_STATE_CHANGED="channel-state-changed",q.CHANNEL_CLOSED="channel-closed",D;var q})(),w=(()=>{return(q=w||(w={})).INVOICE="invoice",q.BLOCK_HEIGHT="block-height",q.SEND_PAYMENT="send-payment",w;var q})(),U=(()=>((U||(U={})).INVOICE="invoice",U))(),G=(()=>{return(q=G||(G={})).OPERATOR="OPERATOR",q.MERCHANT="MERCHANT",q.ALL="ALL",G;var q})(),W=(()=>{return(q=W||(W={})).INFORMATION="Information",q.WARNING="Warning",q.ERROR="Error",q.SUCCESS="Success",q.CONFIRM="Confirm",W;var q})(),ee=(()=>{return(q=ee||(ee={})).JWT="JWT",q.PASSWORD="PASSWORD",ee;var q})(),ie=(()=>{return(q=ie||(ie={})).SECS="SECS",q.MINS="MINS",q.HOURS="HOURS",q.DAYS="DAYS",ie;var q})(),_e=(()=>{return(q=_e||(_e={})).SATS="Sats",q.BTC="BTC",q.OTHER="OTHER",_e;var q})(),fe=(()=>{return(q=fe||(fe={})).ARRAY="ARRAY",q.NUMBER="NUMBER",q.STRING="STRING",q.BOOLEAN="BOOLEAN",q.PASSWORD="PASSWORD",q.DATE="DATE",q.DATE_TIME="DATE_TIME",fe;var q})(),de=(()=>{return(q=de||(de={})).XS="XS",q.SM="SM",q.MD="MD",q.LG="LG",q.XL="XL",de;var q})();const ne={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"}},se={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 oe=(()=>{return(q=oe||(oe={})).CHANNELD_NORMAL="Active",q.OPENINGD="Opening",q.CHANNELD_AWAITING_LOCKIN="Pending Open",q.CHANNELD_SHUTTING_DOWN="Shutting Down",q.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",q.CLOSINGD_COMPLETE="Closed",q.AWAITING_UNILATERAL="Awaiting Unilateral Close",q.FUNDING_SPEND_SEEN="Funding Spend Seen",q.ONCHAIN="Onchain",q.DUALOPEND_OPEN_INIT="Dual Open Initialized",q.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",oe;var q})(),y=(()=>{return(q=y||(y={})).INITIATED="Initiated",q.PREIMAGE_REVEALED="Preimage Revealed",q.HTLC_PUBLISHED="HTLC Published",q.SUCCESS="Successful",q.FAILED="Failed",q.INVOICE_SETTLED="Invoice Settled",y;var q})(),i=(()=>{return(q=i||(i={})).LOOP_OUT="LOOP_OUT",q.LOOP_IN="LOOP_IN",i;var q})(),a=(()=>{return(q=a||(a={})).SWAP_OUT="SWAP_OUT",q.SWAP_IN="SWAP_IN",a;var q})(),p=(()=>{return(q=p||(p={}))["swap.created"]="Swap Created",q["swap.expired"]="Swap Expired",q["invoice.set"]="Invoice Set",q["invoice.paid"]="Invoice Paid",q["invoice.pending"]="Invoice Pending",q["invoice.settled"]="Invoice Settled",q["invoice.failedToPay"]="Invoice Failed To Pay",q["channel.created"]="Channel Created",q["transaction.failed"]="Transaction Failed",q["transaction.mempool"]="Transaction Mempool",q["transaction.claimed"]="Transaction Claimed",q["transaction.refunded"]="Transaction Refunded",q["transaction.confirmed"]="Transaction Confirmed",q["swap.refunded"]="Swap Refunded",q["swap.abandoned"]="Swap Abandoned",p;var q})();const u=[{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}],_=["MONTHLY","YEARLY"];var L=(()=>{return(q=L||(L={})).LOOP="LOOP",q.BOLTZ="BOLTZ",q.OFFERS="OFFERS",L;var q})();const I=["password","changeme","moneyprintergobrrr"];var x=(()=>{return(q=x||(x={})).UN_INITIATED="UN_INITIATED",q.INITIATED="INITIATED",q.COMPLETED="COMPLETED",q.ERROR="ERROR",x;var q})();const r={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 b=(()=>{return(q=b||(b={})).INVOICE="INVOICE",q.OFFER="OFFER",q.KEYSEND="KEYSEND",b;var q})(),J=(()=>{return(q=J||(J={})).VOID="VOID",q.SET_API_URL_ECL="SET_API_URL_ECL",q.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",q.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",q.RESET_ROOT_STORE="RESET_ROOT_STORE",q.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",q.OPEN_SNACK_BAR="OPEN_SNACKBAR",q.OPEN_SPINNER="OPEN_SPINNER",q.CLOSE_SPINNER="CLOSE_SPINNER",q.OPEN_ALERT="OPEN_ALERT",q.CLOSE_ALERT="CLOSE_ALERT",q.OPEN_CONFIRMATION="OPEN_CONFIRMATION",q.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",q.SHOW_PUBKEY="SHOW_PUBKEY",q.FETCH_CONFIG="FETCH_CONFIG",q.SHOW_CONFIG="SHOW_CONFIG",q.FETCH_STORE="FETCH_STORE",q.SET_STORE="SET_STORE",q.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",q.SET_RTL_CONFIG="SET_RTL_CONFIG",q.SAVE_SSO="SAVE_SSO",q.SAVE_SETTINGS="SAVE_SETTINGS",q.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",q.SET_SELECTED_NODE="SET_SELECTED_NODE",q.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",q.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",q.SET_NODE_DATA="SET_NODE_DATA",q.IS_AUTHORIZED="IS_AUTHORIZED",q.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",q.LOGIN="LOGIN",q.VERIFY_TWO_FA="VERIFY_TWO_FA",q.LOGOUT="LOGOUT",q.RESET_PASSWORD="RESET_PASSWORD",q.RESET_PASSWORD_RES="RESET_PASSWORD_RES",q.FETCH_FILE="FETCH_FILE",q.SHOW_FILE="SHOW_FILE",J;var q})(),F=(()=>{return(q=F||(F={})).RESET_LND_STORE="RESET_LND_STORE",q.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",q.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",q.FETCH_INFO_LND="FETCH_INFO_LND",q.SET_INFO_LND="SET_INFO_LND",q.FETCH_PEERS_LND="FETCH_PEERS_LND",q.SET_PEERS_LND="SET_PEERS_LND",q.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",q.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",q.DETACH_PEER_LND="DETACH_PEER_LND",q.REMOVE_PEER_LND="REMOVE_PEER_LND",q.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",q.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",q.ADD_INVOICE_LND="ADD_INVOICE_LND",q.FETCH_FEES_LND="FETCH_FEES_LND",q.SET_FEES_LND="SET_FEES_LND",q.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",q.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",q.FETCH_NETWORK_LND="FETCH_NETWORK_LND",q.SET_NETWORK_LND="SET_NETWORK_LND",q.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",q.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",q.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",q.SET_CHANNELS_LND="SET_CHANNELS_LND",q.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",q.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",q.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",q.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",q.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",q.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",q.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",q.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",q.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",q.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",q.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",q.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",q.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",q.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",q.FETCH_INVOICES_LND="FETCH_INVOICES_LND",q.SET_INVOICES_LND="SET_INVOICES_LND",q.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",q.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",q.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",q.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",q.FETCH_UTXOS_LND="FETCH_UTXOS_LND",q.SET_UTXOS_LND="SET_UTXOS_LND",q.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",q.SET_PAYMENTS_LND="SET_PAYMENTS_LND",q.SEND_PAYMENT_LND="SEND_PAYMENT_LND",q.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",q.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",q.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",q.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",q.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",q.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",q.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",q.GEN_SEED_LND="GEN_SEED_LND",q.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",q.INIT_WALLET_LND="INIT_WALLET_LND",q.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",q.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",q.PEER_LOOKUP_LND="PEER_LOOKUP_LND",q.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",q.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",q.SET_LOOKUP_LND="SET_LOOKUP_LND",q.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",q.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",q.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",q.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",q.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",q.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",F;var q})(),B=(()=>{return(q=B||(B={})).RESET_CL_STORE="RESET_CL_STORE",q.UPDATE_API_CALL_STATUS_CL="UPDATE_API_CALL_STATUS_CL",q.SET_CHILD_NODE_SETTINGS_CL="SET_CHILD_NODE_SETTINGS_CL",q.FETCH_INFO_CL="FETCH_INFO_CL_CL",q.SET_INFO_CL="SET_INFO_CL",q.FETCH_FEES_CL="FETCH_FEES_CL",q.SET_FEES_CL="SET_FEES_CL",q.FETCH_FEE_RATES_CL="FETCH_FEE_RATES_CL",q.SET_FEE_RATES_CL="SET_FEE_RATES_CL",q.FETCH_BALANCE_CL="FETCH_BALANCE_CL",q.SET_BALANCE_CL="SET_BALANCE_CL",q.FETCH_LOCAL_REMOTE_BALANCE_CL="FETCH_LOCAL_REMOTE_BALANCE_CL",q.SET_LOCAL_REMOTE_BALANCE_CL="SET_LOCAL_REMOTE_BALANCE_CL",q.GET_NEW_ADDRESS_CL="GET_NEW_ADDRESS_CL",q.SET_NEW_ADDRESS_CL="SET_NEW_ADDRESS_CL",q.FETCH_UTXOS_CL="FETCH_UTXOS_CL",q.SET_UTXOS_CL="SET_UTXOS_CL",q.FETCH_PEERS_CL="FETCH_PEERS_CL",q.SET_PEERS_CL="SET_PEERS_CL",q.SAVE_NEW_PEER_CL="SAVE_NEW_PEER_CL",q.NEWLY_ADDED_PEER_CL="NEWLY_ADDED_PEER_CL",q.ADD_PEER_CL="ADD_PEER_CL",q.DETACH_PEER_CL="DETACH_PEER_CL",q.REMOVE_PEER_CL="REMOVE_PEER_CL",q.FETCH_CHANNELS_CL="FETCH_CHANNELS_CL",q.SET_CHANNELS_CL="SET_CHANNELS_CL",q.UPDATE_CHANNEL_CL="UPDATE_CHANNEL_CL",q.SAVE_NEW_CHANNEL_CL="SAVE_NEW_CHANNEL_CL",q.CLOSE_CHANNEL_CL="CLOSE_CHANNEL_CL",q.REMOVE_CHANNEL_CL="REMOVE_CHANNEL_CL",q.FETCH_PAYMENTS_CL="FETCH_PAYMENTS_CL",q.SET_PAYMENTS_CL="SET_PAYMENTS_CL",q.SEND_PAYMENT_CL="SEND_PAYMENT_CL",q.SEND_PAYMENT_STATUS_CL="SEND_PAYMENT_STATUS_CL",q.GET_QUERY_ROUTES_CL="GET_QUERY_ROUTES_CL",q.SET_QUERY_ROUTES_CL="SET_QUERY_ROUTES_CL",q.PEER_LOOKUP_CL="PEER_LOOKUP_CL",q.CHANNEL_LOOKUP_CL="CHANNEL_LOOKUP_CL",q.INVOICE_LOOKUP_CL="INVOICE_LOOKUP_CL",q.SET_LOOKUP_CL="SET_LOOKUP_CL",q.GET_FORWARDING_HISTORY_CL="GET_FORWARDING_HISTORY_CL",q.SET_FORWARDING_HISTORY_CL="SET_FORWARDING_HISTORY_CL",q.GET_FAILED_FORWARDING_HISTORY_CL="GET_FAILED_FORWARDING_HISTORY_CL",q.SET_FAILED_FORWARDING_HISTORY_CL="SET_FAILED_FORWARDING_HISTORY_CL",q.FETCH_INVOICES_CL="FETCH_INVOICES_CL",q.SET_INVOICES_CL="SET_INVOICES_CL",q.SAVE_NEW_INVOICE_CL="SAVE_NEW_INVOICE_CL",q.ADD_INVOICE_CL="ADD_INVOICE_CL",q.UPDATE_INVOICE_CL="UPDATE_INVOICE_CL",q.DELETE_EXPIRED_INVOICE_CL="DELETE_EXPIRED_INVOICE_CL",q.SET_CHANNEL_TRANSACTION_CL="SET_CHANNEL_TRANSACTION_CL",q.SET_CHANNEL_TRANSACTION_RES_CL="SET_CHANNEL_TRANSACTION_RES_CL",q.FETCH_OFFER_INVOICE_CL="FETCH_OFFER_INVOICE_CL",q.SET_OFFER_INVOICE_CL="SET_OFFER_INVOICE_CL",q.FETCH_OFFERS_CL="FETCH_OFFERS_CL",q.SET_OFFERS_CL="SET_OFFERS_CL",q.SAVE_NEW_OFFER_CL="SAVE_NEW_OFFER_CL",q.ADD_OFFER_CL="ADD_OFFER_CL",q.DISABLE_OFFER_CL="DISABLE_OFFER_CL",q.UPDATE_OFFER_CL="UPDATE_OFFER_CL",q.FETCH_OFFER_BOOKMARKS_CL="FETCH_OFFER_BOOKMARKS_CL",q.SET_OFFER_BOOKMARKS_CL="SET_OFFER_BOOKMARKS_CL",q.ADD_UPDATE_OFFER_BOOKMARK_CL="ADD_UPDATE_OFFER_BOOKMARK_CL",q.DELETE_OFFER_BOOKMARK_CL="DELETE_OFFER_BOOKMARK_CL",q.REMOVE_OFFER_BOOKMARK_CL="REMOVE_OFFER_BOOKMARK_CL",B;var q})(),te=(()=>{return(q=te||(te={})).RESET_ECL_STORE="RESET_ECL_STORE",q.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",q.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",q.FETCH_INFO_ECL="FETCH_INFO_ECL",q.SET_INFO_ECL="SET_INFO_ECL",q.FETCH_FEES_ECL="FETCH_FEES_ECL",q.SET_FEES_ECL="SET_FEES_ECL",q.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",q.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",q.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",q.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",q.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",q.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",q.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",q.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",q.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",q.FETCH_PEERS_ECL="FETCH_PEERS_ECL",q.SET_PEERS_ECL="SET_PEERS_ECL",q.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",q.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",q.ADD_PEER_ECL="ADD_PEER_ECL",q.DETACH_PEER_ECL="DETACH_PEER_ECL",q.REMOVE_PEER_ECL="REMOVE_PEER_ECL",q.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",q.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",q.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",q.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",q.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",q.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",q.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",q.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",q.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",q.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",q.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",q.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",q.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",q.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",q.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",q.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",q.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",q.SET_INVOICES_ECL="SET_INVOICES_ECL",q.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",q.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",q.ADD_INVOICE_ECL="ADD_INVOICE_ECL",q.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",q.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",q.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",q.SET_LOOKUP_ECL="SET_LOOKUP_ECL",q.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",q.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",te;var q})();const xe=[{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 Pe=(()=>{return(q=Pe||(Pe={})).gossip_queries_ex="Gossip queries including additional information",q.option_anchor_outputs="Anchor outputs",q.option_data_loss_protect="Extra channel re-establish fields",q.var_onion_optin="Variable-length routing onion payloads",q.option_static_remotekey="Static key for remote output",q.option_support_large_channel="Create large channels",q.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",q.payment_secret="Payment secret field",q.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",q.basic_mpp="Basic multi-part payments",q.gossip_queries="More sophisticated gossip control",q.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",q.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",q.amp="AMP",Pe;var q})(),Fe=(()=>{return(q=Fe||(Fe={}))["data-loss-protect"]="Extra channel re-establish fields",q["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",q["gossip-queries"]="More sophisticated gossip control",q["tlv-onion"]="Variable-length routing onion payloads",q["ext-gossip-queries"]="Gossip queries can include additional information",q["static-remote-key"]="Static key for remote output",q["payment-addr"]="Payment secret field",q["multi-path-payments"]="Basic multi-part payments",q["wumbo-channels"]="Wumbo Channels",q.anchors="Anchor outputs",q["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",q.amp="AMP",Fe;var q})()},8104:(Ue,K,m)=>{"use strict";m.d(K,{D:()=>_e});var e=m(8138),t=m(7579),v=m(2843),M=m(9646),s=m(2722),C=m(4004),c=m(262),R=m(1365),o=m(5577),O=m(2340),T=m(7731),P=m(1786),S=m(7861),D=m(6523),w=m(6529),U=m(5e3),G=m(5620),W=m(5043),ee=m(7261),ie=m(9808);let _e=(()=>{class fe{constructor(ne,se,oe,y,i){this.httpClient=ne,this.store=se,this.logger=oe,this.snackBar=y,this.titleCasePipe=i,this.lnImplementation="LND",this.childAPIUrl=O.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(ne){switch(this.lnImplementation=ne,ne){case"CLT":this.childAPIUrl=O.T5+"/cl";break;case"ECL":this.childAPIUrl=O.T5+"/ecl";break;default:this.childAPIUrl=O.T5+"/lnd"}}getFiatRates(){return this.httpClient.get(O.NZ.CONF_API+"/rates")}decodePayment(ne,se){const oe=this.childAPIUrl+O.NZ.PAYMENTS_API+"/decode/"+ne;return this.store.dispatch((0,S.ac)({payload:T.m6.DECODE_PAYMENT})),this.httpClient.get(oe).pipe((0,s.R)(this.unSubs[0]),(0,C.U)(y=>(this.store.dispatch((0,S.uO)({payload:T.m6.DECODE_PAYMENT})),y)),(0,c.K)(y=>(se?this.handleErrorWithoutAlert("Decode Payment",T.m6.DECODE_PAYMENT,y):this.handleErrorWithAlert("decodePaymentData",T.m6.DECODE_PAYMENT,"Decode Payment Failed",this.childAPIUrl+O.NZ.PAYMENTS_API+"/decode/",y),(0,v._)(()=>new Error(this.extractErrorMessage(y))))))}decodePayments(ne){let se=this.childAPIUrl+O.NZ.PAYMENTS_API,oe=T.m6.DECODE_PAYMENTS;return"ECL"===this.getLnImplementation()&&(se=this.childAPIUrl+O.NZ.PAYMENTS_API+"/getsentinfos",oe=T.m6.GET_SENT_PAYMENTS),this.store.dispatch((0,S.ac)({payload:oe})),this.httpClient.post(se,{payments:ne}).pipe((0,s.R)(this.unSubs[1]),(0,C.U)(y=>(this.store.dispatch((0,S.uO)({payload:oe})),y)),(0,c.K)(y=>(this.handleErrorWithAlert("decodePaymentsData",oe,oe+" Failed",se,y),(0,v._)(()=>new Error(this.extractErrorMessage(y))))))}getAliasesFromPubkeys(ne,se){if(se){const oe=(new e.LE).set("pubkeys",ne);return this.httpClient.get(this.childAPIUrl+O.NZ.NETWORK_API+"/nodes",{params:oe})}return this.httpClient.get(this.childAPIUrl+O.NZ.NETWORK_API+"/node/"+ne)}signMessage(ne){return this.store.dispatch((0,S.ac)({payload:T.m6.SIGN_MESSAGE})),this.httpClient.post(this.childAPIUrl+O.NZ.MESSAGE_API+"/sign",{message:ne}).pipe((0,s.R)(this.unSubs[2]),(0,C.U)(se=>(this.store.dispatch((0,S.uO)({payload:T.m6.SIGN_MESSAGE})),se)),(0,c.K)(se=>(this.handleErrorWithAlert("signMessageData",T.m6.SIGN_MESSAGE,"Sign Message Failed",this.childAPIUrl+O.NZ.MESSAGE_API+"/sign",se),(0,v._)(()=>new Error(this.extractErrorMessage(se))))))}verifyMessage(ne,se){return this.store.dispatch((0,S.ac)({payload:T.m6.VERIFY_MESSAGE})),this.httpClient.post(this.childAPIUrl+O.NZ.MESSAGE_API+"/verify",{message:ne,signature:se}).pipe((0,s.R)(this.unSubs[3]),(0,C.U)(oe=>(this.store.dispatch((0,S.uO)({payload:T.m6.VERIFY_MESSAGE})),oe)),(0,c.K)(oe=>(this.handleErrorWithAlert("verifyMessageData",T.m6.VERIFY_MESSAGE,"Verify Message Failed",this.childAPIUrl+O.NZ.MESSAGE_API+"/verify",oe),(0,v._)(()=>new Error(this.extractErrorMessage(oe))))))}bumpFee(ne,se,oe,y){const i={txid:ne,outputIndex:se};return oe&&(i.targetConf=oe),y&&(i.satPerByte=y),this.store.dispatch((0,S.ac)({payload:T.m6.BUMP_FEE})),this.httpClient.post(this.childAPIUrl+O.NZ.WALLET_API+"/bumpfee",i).pipe((0,s.R)(this.unSubs[4]),(0,C.U)(a=>(this.store.dispatch((0,S.uO)({payload:T.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",T.m6.BUMP_FEE,a),(0,v._)(()=>new Error(this.extractErrorMessage(a))))))}labelUTXO(ne,se,oe=!0){const y={txid:ne,label:se,overwrite:oe};return this.store.dispatch((0,S.ac)({payload:T.m6.LABEL_UTXO})),this.httpClient.post(this.childAPIUrl+O.NZ.WALLET_API+"/label",y).pipe((0,s.R)(this.unSubs[5]),(0,C.U)(i=>(this.store.dispatch((0,S.uO)({payload:T.m6.LABEL_UTXO})),i)),(0,c.K)(i=>(this.handleErrorWithoutAlert("Lease UTXO",T.m6.LABEL_UTXO,i),(0,v._)(()=>new Error(this.extractErrorMessage(i))))))}leaseUTXO(ne,se){const oe={txid:ne,outputIndex:se};return this.store.dispatch((0,S.ac)({payload:T.m6.LEASE_UTXO})),this.httpClient.post(this.childAPIUrl+O.NZ.WALLET_API+"/lease",oe).pipe((0,s.R)(this.unSubs[6])).subscribe({next:y=>{this.store.dispatch((0,S.uO)({payload:T.m6.LEASE_UTXO})),this.store.dispatch((0,D.mC)()),this.store.dispatch((0,D.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",T.m6.LEASE_UTXO,y),(0,v._)(()=>new Error(this.extractErrorMessage(y))))})}getForwardingHistory(ne,se){const oe={end_time:se,start_time:ne};return this.store.dispatch((0,S.ac)({payload:T.m6.GET_FEE_REPORT})),this.httpClient.post(this.childAPIUrl+O.NZ.SWITCH_API,oe).pipe((0,s.R)(this.unSubs[7]),(0,R.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,S.uO)({payload:T.m6.GET_FEE_REPORT})),(0,M.of)(y)}),(0,c.K)(y=>(this.handleErrorWithAlert("getForwardingHistoryData",T.m6.GET_FEE_REPORT,"Forwarding History Failed",this.childAPIUrl+O.NZ.SWITCH_API,y),(0,v._)(()=>new Error(this.extractErrorMessage(y))))))}extractErrorMessage(ne,se="Unknown Error."){return this.titleCasePipe.transform(ne.error&&ne.error.error&&ne.error.error.error&&ne.error.error.error.error&&ne.error.error.error.error.error&&"string"==typeof ne.error.error.error.error.error?ne.error.error.error.error.error:ne.error&&ne.error.error&&ne.error.error.error&&ne.error.error.error.error&&"string"==typeof ne.error.error.error.error?ne.error.error.error.error:ne.error&&ne.error.error&&ne.error.error.error&&"string"==typeof ne.error.error.error?ne.error.error.error:ne.error&&ne.error.error&&"string"==typeof ne.error.error?ne.error.error:ne.error&&"string"==typeof ne.error?ne.error:ne.error&&ne.error.error&&ne.error.error.error&&ne.error.error.error.error&&ne.error.error.error.error.message&&"string"==typeof ne.error.error.error.error.message?ne.error.error.error.error.message:ne.error&&ne.error.error&&ne.error.error.error&&ne.error.error.error.message&&"string"==typeof ne.error.error.error.message?ne.error.error.error.message:ne.error&&ne.error.error&&ne.error.error.message&&"string"==typeof ne.error.error.message?ne.error.error.message:ne.error&&ne.error.message&&"string"==typeof ne.error.message?ne.error.message:ne.message&&"string"==typeof ne.message?ne.message:se)}handleErrorWithoutAlert(ne,se,oe){this.logger.error("ERROR IN: "+ne+"\n"+JSON.stringify(oe)),401===oe.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,S.uO)({payload:se})),this.store.dispatch((0,S.qi)({payload:{action:ne,status:T.Bn.ERROR,statusCode:oe.status.toString(),message:this.extractErrorMessage(oe)}})))}handleErrorWithAlert(ne,se,oe,y,i){if(this.logger.error(i),401===i.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,S.uO)({payload:se}));const a=this.extractErrorMessage(i);this.store.dispatch((0,S.qR)({payload:{data:{type:"ERROR",alertTitle:oe,message:{code:i.status?i.status:"Unknown Error",message:a,URL:y},component:P.H}}})),this.store.dispatch((0,S.qi)({payload:{action:ne,status:T.Bn.ERROR,statusCode:i.status.toString(),message:a,URL:y}}))}}ngOnDestroy(){this.unSubs.forEach(ne=>{ne.next(null),ne.complete()})}}return fe.\u0275fac=function(ne){return new(ne||fe)(U.LFG(e.eN),U.LFG(G.yh),U.LFG(W.mQ),U.LFG(ee.ux),U.LFG(ie.rS))},fe.\u0275prov=U.Yz7({token:fe,factory:fe.\u0275fac}),fe})()},5043:(Ue,K,m)=>{"use strict";m.d(K,{mQ:()=>C,LG:()=>c});var e=m(2340),t=m(5e3);const{isDebugMode:v}=e.NZ,M=()=>null;let C=(()=>{class R{invokeConsoleMethod(O,T){}}return R.\u0275fac=function(O){return new(O||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac}),R})(),c=(()=>{class R{get info(){return v?console.log.bind(console):M}get warn(){return v?console.warn.bind(console):M}get error(){return v?console.error.bind(console):M}invokeConsoleMethod(O,T){(console[O]||console.log||M).apply(console,[T])}}return R.\u0275fac=function(O){return new(O||R)},R.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac}),R})()},9107:(Ue,K,m)=>{"use strict";m.d(K,{W:()=>U});var e=m(8138),t=m(1135),v=m(7579),M=m(2843),s=m(2722),C=m(262),c=m(4004),R=m(2340),o=m(7731),O=m(1786),T=m(7861),P=m(5e3),S=m(5043),D=m(5620),w=m(62);let U=(()=>{class G{constructor(ee,ie,_e,fe){this.httpClient=ee,this.logger=ie,this.store=_e,this.commonService=fe,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,T.ac)({payload:o.m6.GET_LOOP_SWAPS})),this.loopUrl=R.T5+R.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,s.R)(this.unSubs[0])).subscribe({next:ee=>{this.store.dispatch((0,T.uO)({payload:o.m6.GET_LOOP_SWAPS})),this.swaps=ee,this.swapsChanged.next(this.swaps)},error:ee=>this.handleErrorWithAlert(o.m6.GET_LOOP_SWAPS,this.loopUrl,ee)})}loopOut(ee,ie,_e,fe,de,ne,se,oe,y,i){const a={amount:ee,targetConf:_e,swapRoutingFee:fe,minerFee:de,prepayRoutingFee:ne,prepayAmt:se,swapFee:oe,swapPublicationDeadline:y,destAddress:i};return""!==ie&&(a.chanId=ie),this.loopUrl=R.T5+R.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,a).pipe((0,C.K)(p=>this.handleErrorWithoutAlert("Loop Out for Channel: "+ie,o.m6.NO_SPINNER,p)))}getLoopOutTerms(){return this.loopUrl=R.T5+R.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,C.K)(ee=>this.handleErrorWithoutAlert("Loop Out Terms",o.m6.NO_SPINNER,ee)))}getLoopOutQuote(ee,ie,_e){let fe=new e.LE;return fe=fe.append("targetConf",ie.toString()),fe=fe.append("swapPublicationDeadline",_e.toString()),this.loopUrl=R.T5+R.NZ.LOOP_API+"/out/quote/"+ee,this.store.dispatch((0,T.ac)({payload:o.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:fe}).pipe((0,s.R)(this.unSubs[1]),(0,c.U)(de=>(this.store.dispatch((0,T.uO)({payload:o.m6.GET_QUOTE})),de)),(0,C.K)(de=>this.handleErrorWithoutAlert("Loop Out Quote",o.m6.GET_QUOTE,de)))}getLoopOutTermsAndQuotes(ee){let ie=new e.LE;return ie=ie.append("targetConf",ee.toString()),ie=ie.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=R.T5+R.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,T.ac)({payload:o.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,s.R)(this.unSubs[2]),(0,c.U)(_e=>(this.store.dispatch((0,T.uO)({payload:o.m6.GET_TERMS_QUOTES})),_e)),(0,C.K)(_e=>this.handleErrorWithAlert(o.m6.GET_TERMS_QUOTES,this.loopUrl,_e)))}loopIn(ee,ie,_e,fe,de){const ne={amount:ee,swapFee:ie,minerFee:_e,lastHop:fe,externalHtlc:de};return this.loopUrl=R.T5+R.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,ne).pipe((0,C.K)(se=>this.handleErrorWithoutAlert("Loop In",o.m6.NO_SPINNER,se)))}getLoopInTerms(){return this.loopUrl=R.T5+R.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,C.K)(ee=>this.handleErrorWithoutAlert("Loop In Terms",o.m6.NO_SPINNER,ee)))}getLoopInQuote(ee,ie,_e){let fe=new e.LE;return fe=fe.append("targetConf",ie.toString()),fe=fe.append("swapPublicationDeadline",_e.toString()),this.loopUrl=R.T5+R.NZ.LOOP_API+"/in/quote/"+ee,this.store.dispatch((0,T.ac)({payload:o.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:fe}).pipe((0,s.R)(this.unSubs[3]),(0,c.U)(de=>(this.store.dispatch((0,T.uO)({payload:o.m6.GET_QUOTE})),de)),(0,C.K)(de=>this.handleErrorWithoutAlert("Loop In Qoute",o.m6.GET_QUOTE,de)))}getLoopInTermsAndQuotes(ee){let ie=new e.LE;return ie=ie.append("targetConf",ee.toString()),ie=ie.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=R.T5+R.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,T.ac)({payload:o.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,s.R)(this.unSubs[4]),(0,c.U)(_e=>(this.store.dispatch((0,T.uO)({payload:o.m6.GET_TERMS_QUOTES})),_e)),(0,C.K)(_e=>this.handleErrorWithAlert(o.m6.GET_TERMS_QUOTES,this.loopUrl,_e)))}getSwap(ee){return this.loopUrl=R.T5+R.NZ.LOOP_API+"/swap/"+ee,this.httpClient.get(this.loopUrl).pipe((0,C.K)(ie=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+ee,o.m6.NO_SPINNER,ie)))}handleErrorWithoutAlert(ee,ie,_e){let fe="";return this.logger.error("ERROR IN: "+ee+"\n"+JSON.stringify(_e)),this.store.dispatch((0,T.uO)({payload:ie})),401===_e.status?(fe="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,T.kS)())):503===_e.status?(fe="Unable to Connect to Loop Server.",this.store.dispatch((0,T.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:_e.status,message:"Unable to Connect to Loop Server",URL:ee},component:O.H}}}))):fe=this.commonService.extractErrorMessage(_e),(0,M._)(()=>new Error(fe))}handleErrorWithAlert(ee,ie,_e){let fe="";return this.logger.error(_e),this.store.dispatch((0,T.uO)({payload:ee})),401===_e.status?(fe="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,T.kS)())):503===_e.status?(fe="Unable to Connect to Loop Server.",this.store.dispatch((0,T.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:_e.status,message:"Unable to Connect to Loop Server",URL:ie},component:O.H}}}))):(fe=this.commonService.extractErrorMessage(_e),this.store.dispatch((0,T.qR)({payload:{data:{type:o.n_.ERROR,alertTitle:"ERROR",message:{code:_e.error&&_e.error.error&&_e.error.error.code?_e.error.error.code:_e.error&&_e.error.code?_e.error.code:_e.code?_e.code:_e.status,message:fe,URL:ie},component:O.H}}}))),(0,M._)(()=>new Error(fe))}ngOnDestroy(){this.unSubs.forEach(ee=>{ee.next(null),ee.complete()})}}return G.\u0275fac=function(ee){return new(ee||G)(P.LFG(e.eN),P.LFG(S.mQ),P.LFG(D.yh),P.LFG(w.v))},G.\u0275prov=P.Yz7({token:G,factory:G.\u0275fac}),G})()},5986:(Ue,K,m)=>{"use strict";m.d(K,{m:()=>v});var e=m(7579),t=m(5e3);let v=(()=>{class M{constructor(){this.sessionSub=new e.x}watchSession(){return this.sessionSub.asObservable()}getItem(C){return sessionStorage.getItem(C)}getAllItems(){return sessionStorage}setItem(C,c){sessionStorage.setItem(C,c),this.sessionSub.next(sessionStorage)}removeItem(C){sessionStorage.removeItem(C),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return M.\u0275fac=function(C){return new(C||M)},M.\u0275prov=t.Yz7({token:M,factory:M.\u0275fac}),M})()},7998:(Ue,K,m)=>{"use strict";m.d(K,{d:()=>D});var e=m(1135),t=m(7579),v=m(2722),M=m(930),s=m(8306),C=m(727),c=m(4707);const R={url:"",deserializer:w=>JSON.parse(w.data),serializer:w=>JSON.stringify(w)};class O extends t.u{constructor(U,G){if(super(),this._socket=null,U instanceof s.y)this.destination=G,this.source=U;else{const W=this._config=Object.assign({},R);if(this._output=new t.x,"string"==typeof U)W.url=U;else for(const ee in U)U.hasOwnProperty(ee)&&(W[ee]=U[ee]);if(!W.WebSocketCtor&&WebSocket)W.WebSocketCtor=WebSocket;else if(!W.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new c.t}}lift(U){const G=new O(this._config,this.destination);return G.operator=U,G.source=this,G}_resetState(){this._socket=null,this.source||(this.destination=new c.t),this._output=new t.x}multiplex(U,G,W){const ee=this;return new s.y(ie=>{try{ee.next(U())}catch(fe){ie.error(fe)}const _e=ee.subscribe(fe=>{try{W(fe)&&ie.next(fe)}catch(de){ie.error(de)}},fe=>ie.error(fe),()=>ie.complete());return()=>{try{ee.next(G())}catch(fe){ie.error(fe)}_e.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:U,protocol:G,url:W,binaryType:ee}=this._config,ie=this._output;let _e=null;try{_e=G?new U(W,G):new U(W),this._socket=_e,ee&&(this._socket.binaryType=ee)}catch(de){return void ie.error(de)}const fe=new C.w0(()=>{this._socket=null,_e&&1===_e.readyState&&_e.close()});_e.onopen=de=>{const{_socket:ne}=this;if(!ne)return _e.close(),void this._resetState();const{openObserver:se}=this._config;se&&se.next(de);const oe=this.destination;this.destination=M.Lv.create(y=>{if(1===_e.readyState)try{const{serializer:i}=this._config;_e.send(i(y))}catch(i){this.destination.error(i)}},y=>{const{closingObserver:i}=this._config;i&&i.next(void 0),y&&y.code?_e.close(y.code,y.reason):ie.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),_e.close(),this._resetState()}),oe&&oe instanceof c.t&&fe.add(oe.subscribe(this.destination))},_e.onerror=de=>{this._resetState(),ie.error(de)},_e.onclose=de=>{this._resetState();const{closeObserver:ne}=this._config;ne&&ne.next(de),de.wasClean?ie.complete():ie.error(de)},_e.onmessage=de=>{try{const{deserializer:ne}=this._config;ie.next(ne(de))}catch(ne){ie.error(ne)}}}_subscribe(U){const{source:G}=this;return G?G.subscribe(U):(this._socket||this._connectSocket(),this._output.subscribe(U),U.add(()=>{const{_socket:W}=this;0===this._output.observers.length&&(W&&(1===W.readyState||0===W.readyState)&&W.close(),this._resetState())}),U)}unsubscribe(){const{_socket:U}=this;U&&(1===U.readyState||0===U.readyState)&&U.close(),this._resetState(),super.unsubscribe()}}var T=m(5e3),P=m(5043),S=m(5986);let D=(()=>{class w{constructor(G,W){this.logger=G,this.sessionService=W,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(G,W){(!this.socket||this.socket.closed)&&(this.wsUrl=G,this.nodeIndex=W,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new O({url:G,protocol:[this.sessionService.getItem("token"),W]}),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:G=>{if((G="string"==typeof G?JSON.parse(G):G).error)this.handleError(G.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(G)),G.source){case"LND":this.lndWSMessages.next(G);break;case"CLT":this.clWSMessages.next(G);break;case"ECL":this.eclWSMessages.next(G)}},error:G=>this.handleError(G),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(G){this.logger.error(G),this.clWSMessages.error(G),this.eclWSMessages.error(G),this.lndWSMessages.error(G),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(G){return new(G||w)(T.LFG(P.mQ),T.LFG(S.m))},w.\u0275prov=T.Yz7({token:w,factory:w.\u0275fac}),w})()},8750:(Ue,K,m)=>{"use strict";m.d(K,{m:()=>mi});var e=m(9808),t=m(9291),v=m(3075),M=m(8138),s=m(9444),C=m(5e3),c=m(3270),R=m(3322),o=m(7093);m(3191);let qe=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=C.oAB({type:Ct}),Ct.\u0275inj=C.cJS({imports:[[c.IR]]}),Ct})(),me=(()=>{class Ct{constructor(bt,Wt){(0,e.PM)(Wt)&&!bt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(bt,Wt=[]){return{ngModule:Ct,providers:bt.serverLoaded?[{provide:c.WU,useValue:Object.assign(Object.assign({},c.g5),bt)},{provide:c.Bs,useValue:Wt,multi:!0},{provide:c.wY,useValue:!0}]:[{provide:c.WU,useValue:Object.assign(Object.assign({},c.g5),bt)},{provide:c.Bs,useValue:Wt,multi:!0}]}}}return Ct.\u0275fac=function(bt){return new(bt||Ct)(C.LFG(c.wY),C.LFG(C.Lbi))},Ct.\u0275mod=C.oAB({type:Ct}),Ct.\u0275inj=C.cJS({imports:[[o.ae,R.aT,qe],o.ae,R.aT,qe]}),Ct})();var $e=m(5113),St=m(508),Pt=m(8966),yi=m(1079),Pi=m(7544),Ii=m(7423);m(449),m(5664);let Rn=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=C.oAB({type:Ct}),Ct.\u0275inj=C.cJS({imports:[[St.BQ,St.si],St.BQ]}),Ct})();var xr=m(9224),wi=m(7446),Fi=m(6856),sn=m(1125),Sr=m(3954),ya=m(5245),qn=m(7531),kr=m(4623),ba=m(2181),xa=m(6087),Va=m(5899),zr=m(773),is=m(9814),rr=m(4107),ua=m(2638),la=m(2368);m(1159),m(6360),m(925),m(727),m(226);let Sa=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=C.oAB({type:Ct}),Ct.\u0275inj=C.cJS({imports:[[e.ez,St.BQ],St.BQ]}),Ct})();var Rr=m(7261),na=m(4847),Mr=m(5615),ns=m(2075),Wa=m(3251),mr=m(4594),fa=m(7238),ra=m(149),pa=m(6046),Zn=m(159),rs=m(644),Ya=m(9776);let Xe=(()=>{class Ct extends Ya.Xj{_createContainer(){const bt=document.createElement("div");bt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(bt),this._containerElement=bt}}return Ct.\u0275fac=function(){let ei;return function(Wt){return(ei||(ei=C.n5z(Ct)))(Wt||Ct)}}(),Ct.\u0275prov=C.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();var ye=m(5043),Q=m(7731);const ae={suppressScrollX:!1,suppressScrollY:!1};let Qe=(()=>{class Ct extends St.LF{format(bt,Wt){if("input"===Wt){let xi=bt.getDate().toString();return xi=+xi<10?"0"+xi:xi,xi+"/"+Q.gg[bt.getMonth()].name.toUpperCase()+"/"+bt.getFullYear()}return Q.gg[bt.getMonth()].name.toUpperCase()+" "+bt.getFullYear()}}return Ct.\u0275fac=function(){let ei;return function(Wt){return(ei||(ei=C.n5z(Ct)))(Wt||Ct)}}(),Ct.\u0275prov=C.Yz7({token:Ct,factory:Ct.\u0275fac}),Ct})();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 mi=(()=>{class Ct{}return Ct.\u0275fac=function(bt){return new(bt||Ct)},Ct.\u0275mod=C.oAB({type:Ct}),Ct.\u0275inj=C.cJS({providers:[{provide:ye.mQ,useClass:ye.LG},{provide:rs.op,useValue:ae},{provide:Rr.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:Pt.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:St._A,useClass:Qe},{provide:St.sG,useValue:Yt},{provide:Ya.Xj,useClass:Xe},e.JJ,e.rS,e.uU],imports:[[e.ez,v.u5,v.UX,s.uH,me,$e.xu,Pt.Is,Ii.ot,Rn,xr.QW,wi.p9,sn.To,Sr.N6,Fi.FA,St.XK,ya.Ps,qn.c,kr.ie,ba.Tx,Va.Cv,zr.Cq,is.Fk,ra.dp,rr.LD,ua.SJ,la.rP,na.JX,ns.p0,mr.g0,fa.AV,Pi.g,xa.TU,Mr.T5,Sa,Wa.Nh,Rr.ZX,yi.Bb,pa.a4,Zn.OF,t.Bz,M.JF,rs.Xd],v.u5,v.UX,s.uH,me,$e.xu,Pt.Is,Ii.ot,Rn,xr.QW,wi.p9,sn.To,Sr.N6,Fi.FA,St.XK,ya.Ps,qn.c,kr.ie,ba.Tx,Va.Cv,zr.Cq,is.Fk,ra.dp,rr.LD,ua.SJ,la.rP,na.JX,ns.p0,mr.g0,fa.AV,Pi.g,xa.TU,Mr.T5,Sa,Wa.Nh,Rr.ZX,yi.Bb,pa.a4,Zn.OF,rs.Xd]}),Ct})()},7861:(Ue,K,m)=>{"use strict";m.d(K,{lC:()=>M,qi:()=>s,ts:()=>C,jW:()=>c,ac:()=>R,uO:()=>o,qR:()=>O,M6:()=>T,c1:()=>P,yb:()=>S,tj:()=>D,Q2:()=>w,tw:()=>G,vI:()=>W,ey:()=>ee,XT:()=>ie,zQ:()=>_e,Uy:()=>fe,fk:()=>de,Tm:()=>ne,jS:()=>se,_V:()=>oe,kS:()=>i,c0:()=>a,QO:()=>u,x4:()=>L,dc:()=>x});var e=m(5620),t=m(7731);(0,e.PH)(t.pg.VOID);const M=(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)()),C=(0,e.PH)(t.pg.CLOSE_ALL_DIALOGS),c=(0,e.PH)(t.pg.OPEN_SNACK_BAR,(0,e.Ky)()),R=(0,e.PH)(t.pg.OPEN_SPINNER,(0,e.Ky)()),o=(0,e.PH)(t.pg.CLOSE_SPINNER,(0,e.Ky)()),O=(0,e.PH)(t.pg.OPEN_ALERT,(0,e.Ky)()),T=(0,e.PH)(t.pg.CLOSE_ALERT,(0,e.Ky)()),P=(0,e.PH)(t.pg.OPEN_CONFIRMATION,(0,e.Ky)()),S=(0,e.PH)(t.pg.CLOSE_CONFIRMATION,(0,e.Ky)()),D=(0,e.PH)(t.pg.SHOW_PUBKEY),w=(0,e.PH)(t.pg.FETCH_CONFIG,(0,e.Ky)()),G=((0,e.PH)(t.pg.SHOW_CONFIG,(0,e.Ky)()),(0,e.PH)(t.pg.UPDATE_SELECTED_NODE_OPTIONS)),W=(0,e.PH)(t.pg.RESET_ROOT_STORE,(0,e.Ky)()),ee=(0,e.PH)(t.pg.FETCH_RTL_CONFIG),ie=(0,e.PH)(t.pg.SET_RTL_CONFIG,(0,e.Ky)()),_e=(0,e.PH)(t.pg.SAVE_SETTINGS,(0,e.Ky)()),fe=(0,e.PH)(t.pg.TWO_FA_SAVE_SETTINGS,(0,e.Ky)()),de=(0,e.PH)(t.pg.SET_SELECTED_NODE,(0,e.Ky)()),ne=(0,e.PH)(t.pg.UPDATE_ROOT_NODE_SETTINGS,(0,e.Ky)()),se=(0,e.PH)(t.pg.UPDATE_SERVICE_SETTINGS,(0,e.Ky)()),oe=(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)())),L=((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:(Ue,K,m)=>{"use strict";m.d(K,{V:()=>Ki});var e=m(6642),t=m(7579),v=m(9646),M=m(8306),s=m(4128),C=m(4004),c=m(5698),R=m(1365),o=m(5577),O=m(262),T=m(2722),P=m(2340),S=m(7731),D=m(8966),w=m(5e3),U=m(7093),G=m(773);let W=(()=>{class at{constructor(gt,Lt){this.dialogRef=gt,this.data=Lt}}return at.\u0275fac=function(gt){return new(gt||at)(w.Y36(D.so),w.Y36(D.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:[U.xw,U.Wh,G.$g],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),at})();var ee=m(5043),ie=m(7261),_e=m(62),fe=m(9808),de=m(3322),ne=m(9224),se=m(7423),oe=m(159),y=m(644),i=m(5245),a=m(3390),p=m(6895),u=m(4834);const _=["scrollContainer"];function L(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 J(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 F(at,Qt){1&at&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_downward"),w.qZA())}function B(at,Qt){1&at&&(w.TgZ(0,"mat-icon",23),w._uU(1,"arrow_upward"),w.qZA())}function te(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,F,2,0,"mat-icon",22),w.YNc(3,B,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 Pe(at,Qt){1&at&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&at&&w.Q6J("mat-dialog-close",!1)}function Fe(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 q(at,Qt){1&at&&(w.TgZ(0,"button",25),w._uU(1,"Close"),w.qZA()),2&at&&w.Q6J("mat-dialog-close",!1)}function j(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 we(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 Ae(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 le(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,le,1,1,"span",45),w.BQk()),2&at){const gt=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",gt.value)}}function yt(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 Ne(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 ue(at,Qt){1&at&&(w.TgZ(0,"mat-icon",51),w._uU(1,"info"),w.qZA())}const Te=function(at){return{"failed-status":at}};function ke(at,Qt){if(1&at&&(w.TgZ(0,"p",49),w._uU(1),w.YNc(2,ue,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,Te,gt.value===Lt.LoopStateEnum.FAILED)),w.xp6(1),w.hij(" ",gt.value," "),w.xp6(1),w.Q6J("ngIf",gt.value===Lt.LoopStateEnum.FAILED)}}function Y(at,Qt){if(1&at&&w._uU(0),2&at){const gt=w.oxw(3).$implicit;w.Oqu(gt.value)}}function X(at,Qt){if(1&at&&(w.ynx(0),w.YNc(1,ke,3,5,"p",47),w.YNc(2,Y,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 he(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,yt,3,4,"ng-container",43),w.YNc(4,Ne,3,4,"ng-container",43),w.YNc(5,Ve,2,1,"ng-container",43),w.YNc(6,X,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 Me(at,Qt){1&at&&(w.TgZ(0,"span",52),w._uU(1,"\xa0"),w.qZA())}function ze(at,Qt){if(1&at&&(w.TgZ(0,"div",37),w.TgZ(1,"h4",38),w._uU(2),w.qZA(),w.YNc(3,he,7,5,"span",39),w.YNc(4,Me,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,ze,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,we,1,3,"qr-code",2),w.qZA(),w.TgZ(3,"div",29),w.YNc(4,Ae,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=S.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=S.n_,this.dataTypeEnum=S.Gi,this.screenSize="",this.screenSizeEnum=S.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===S.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(D.so),w.Y36(D.WI),w.Y36(ee.mQ),w.Y36(ie.ux),w.Y36(_e.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,L,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,J,3,1,"ng-container",8),w.YNc(12,te,4,2,"div",9),w.TgZ(13,"div",10),w.YNc(14,xe,2,1,"button",11),w.YNc(15,Pe,2,1,"button",12),w.YNc(16,Fe,2,2,"button",13),w.YNc(17,q,2,1,"button",12),w.YNc(18,j,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:[U.xw,U.Wh,U.yH,fe.mk,de.oO,fe.O5,ne.dk,se.lW,oe.uU,ne.dn,y.$V,fe.tP,i.Hw,a.h,D.ZT,p.y,fe.sg,u.d,fe.RF,fe.n9,fe.ED],pipes:[fe.uU,fe.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),at})();var wt=m(801),Bt=m(7861),Nt=m(5620),Vt=m(3075),Oi=m(9444),jt=m(7322),ti=m(7531),Ri=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 He(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 Se(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 V(at,Qt){if(1&at&&(w.ynx(0),w.YNc(1,Se,2,1,"span",32),w.BQk()),2&at){const gt=w.oxw(2).$implicit;w.xp6(1),w.Q6J("ngForOf",gt.value)}}function ve(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 Ee(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 Rt(at,Qt){if(1&at&&(w.TgZ(0,"span"),w.TgZ(1,"span",29),w.YNc(2,V,2,1,"ng-container",30),w.YNc(3,ve,3,4,"ng-container",30),w.YNc(4,Ee,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,Rt,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 Be(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=S.n_,this.dataTypeEnum=S.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===S.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(D.so),w.Y36(D.WI),w.Y36(ee.mQ),w.Y36(Nt.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,He,2,1,"p",10),w.YNc(13,Be,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:[U.xw,U.yH,ne.dk,U.Wh,se.lW,ne.dn,Vt._Y,Vt.JL,Vt.F,fe.O5,Oi.BN,fe.sg,u.d,fe.RF,fe.n9,fe.ED,jt.KE,jt.bx,ti.Nt,Ri.q,Vt.Fj,a.h,Vt.Q7,Vt.JJ,Vt.On,jt.TO],pipes:[fe.uU,fe.JJ,fe.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 be=(()=>{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=S.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(D.so),w.Y36(D.WI),w.Y36(ee.mQ),w.Y36(ie.ux),w.Y36(_e.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:[U.xw,U.Wh,U.yH,fe.mk,de.oO,oe.uU,ne.dk,Oi.BN,se.lW,ne.dn,fe.O5,u.d,a.h,p.y,jt.KE,Vi.gD,fe.sg,Di.ey],styles:[""]}),at})();var qe=m(6523),vt=m(1443),me=m(2994),$e=m(8377),St=m(8138),Pt=m(7998),yi=m(5986),Pi=m(8104),Ii=m(9291);let Ki=(()=>{class at{constructor(gt,Lt,ui,Ci,Wi,$i,An,On,pn,Rn,xr){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=Rn,this.router=xr,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)(S.pg.CLOSE_ALL_DIALOGS),(0,C.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.pg.OPEN_SNACK_BAR),(0,C.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)(S.pg.OPEN_SPINNER),(0,C.U)(wi=>{wi.payload!==S.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(W,{data:{titleMessage:wi.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.pg.CLOSE_SPINNER),(0,C.U)(wi=>{if(wi.payload!==S.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)(S.pg.OPEN_ALERT),(0,C.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)(S.pg.CLOSE_ALERT),(0,C.U)(wi=>(this.dialogRef&&this.dialogRef.close(),wi.payload))),{dispatch:!1}),this.openConfirm=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.pg.OPEN_CONFIRMATION),(0,C.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)(S.pg.CLOSE_CONFIRMATION),(0,c.q)(1),(0,C.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)(S.pg.SHOW_PUBKEY),(0,R.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:be}}})):this.snackBar.open("Node Pubkey does not exist."),(0,v.of)({type:S.pg.VOID}))))),this.appConfigFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.pg.FETCH_RTL_CONFIG),(0,o.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===S.cu.XS||this.screenSize===S.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===S.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,Bt.ac)({payload:S.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Bt.qi)({payload:{action:"FetchRTLConfig",status:S.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(P.NZ.CONF_API+"/rtlconf"):this.httpClient.get(P.NZ.CONF_API+"/rtlconfinit"))),(0,C.U)(wi=>{let Fi;return this.logger.info(wi),this.store.dispatch((0,Bt.uO)({payload:S.m6.GET_RTL_CONFIG})),this.store.dispatch((0,Bt.qi)({payload:{action:"FetchRTLConfig",status:S.Bn.COMPLETED}})),wi.nodes.forEach(sn=>{sn.settings.currencyUnits=[...S.uA,sn.settings.currencyUnit],+sn.index===wi.selectedNodeIndex&&(Fi=sn)}),Fi?(this.store.dispatch((0,Bt.fk)({payload:{uiMessage:S.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Fi,isInitialSetup:!0}})),{type:S.pg.SET_RTL_CONFIG,payload:wi}):{type:S.pg.VOID}}),(0,O.K)(wi=>(this.handleErrorWithAlert("FetchRTLConfig",S.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",P.NZ.CONF_API,wi),(0,v.of)({type:S.pg.VOID}))))),this.settingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.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:S.Bn.INITIATED}}));let Fi=new M.y;if(wi.payload.settings&&wi.payload.defaultNodeIndex){const sn=this.httpClient.post(P.NZ.CONF_API,{updatedSettings:wi.payload.settings}),Sr=this.httpClient.post(P.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(P.NZ.CONF_API,{updatedSettings:wi.payload.settings}):!wi.payload.settings&&wi.payload.defaultNodeIndex&&(Fi=this.httpClient.post(P.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:wi.payload.defaultNodeIndex}));return Fi.pipe((0,C.U)(sn=>(this.logger.info(sn),this.store.dispatch((0,Bt.qi)({payload:{action:"UpdateSettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,Bt.uO)({payload:wi.payload.uiMessage})),{type:S.pg.OPEN_SNACK_BAR,payload:sn.length?sn[0].message+".":sn.message+"."})),(0,O.K)(sn=>(this.handleErrorWithAlert("UpdateSettings",wi.payload.uiMessage,"Update Settings Failed!",P.NZ.CONF_API,sn.length?sn[0]:sn),(0,v.of)({type:S.pg.VOID}))))}))),this.updateServicesettings=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.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:S.Bn.INITIATED}})),this.httpClient.post(P.NZ.CONF_API+"/updateServiceSettings",wi.payload).pipe((0,C.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Bt.qi)({payload:{action:"UpdateServiceSettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,Bt.uO)({payload:wi.payload.uiMessage})),this.store.dispatch((0,Bt.Tm)({payload:wi.payload})),{type:S.pg.OPEN_SNACK_BAR,payload:Fi.message+"."})),(0,O.K)(Fi=>(this.handleErrorWithAlert("UpdateServiceSettings",wi.payload.uiMessage,"Update Service Settings Failed!",P.NZ.CONF_API,Fi),(0,v.of)({type:S.pg.VOID})))))))),this.twoFASettingSave=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.pg.TWO_FA_SAVE_SETTINGS),(0,o.z)(wi=>(this.store.dispatch((0,Bt.ac)({payload:S.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Bt.qi)({payload:{action:"Update2FASettings",status:S.Bn.INITIATED}})),this.httpClient.post(P.NZ.CONF_API+"/update2FA",{secret2fa:wi.payload.secret2fa}))),(0,R.M)(this.store.select($e.Yj)),(0,C.U)(([wi,Fi])=>{this.logger.info(wi),Fi.enable2FA=!Fi.enable2FA,this.store.dispatch((0,Bt.qi)({payload:{action:"Update2FASettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,Bt.uO)({payload:S.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,Bt.XT)({payload:Fi}))}),(0,O.K)(wi=>(this.handleErrorWithAlert("Update2FASettings",S.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",P.NZ.CONF_API,wi),(0,v.of)({type:S.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.pg.FETCH_CONFIG),(0,o.z)(wi=>(this.store.dispatch((0,Bt.ac)({payload:S.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,Bt.qi)({payload:{action:"fetchConfig",status:S.Bn.INITIATED}})),this.httpClient.get(P.NZ.CONF_API+"/config/"+wi.payload).pipe((0,C.U)(Fi=>(this.store.dispatch((0,Bt.qi)({payload:{action:"fetchConfig",status:S.Bn.COMPLETED}})),this.store.dispatch((0,Bt.uO)({payload:S.m6.OPEN_CONFIG_FILE})),{type:S.pg.SHOW_CONFIG,payload:Fi})),(0,O.K)(Fi=>(this.handleErrorWithAlert("fetchConfig",S.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",P.NZ.CONF_API+"/config/"+wi.payload,Fi),(0,v.of)({type:S.pg.VOID})))))))),this.showLnConfig=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.pg.SHOW_CONFIG),(0,C.U)(wi=>wi.payload)),{dispatch:!1}),this.isAuthorized=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.pg.IS_AUTHORIZED),(0,o.z)(wi=>(this.store.dispatch((0,Bt.qi)({payload:{action:"IsAuthorized",status:S.Bn.INITIATED}})),this.httpClient.post(P.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload&&""!==wi.payload.trim()?S.OJ.PASSWORD:S.OJ.JWT,authenticationValue:wi.payload&&""!==wi.payload.trim()?wi.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,C.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Bt.qi)({payload:{action:"IsAuthorized",status:S.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:S.pg.IS_AUTHORIZED_RES,payload:Fi})),(0,O.K)(Fi=>(this.handleErrorWithAlert("IsAuthorized",S.m6.NO_SPINNER,"Authorization Failed",P.NZ.AUTHENTICATE_API,Fi),(0,v.of)({type:S.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.pg.IS_AUTHORIZED_RES),(0,C.U)(wi=>wi.payload)),{dispatch:!1}),this.authLogin=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.pg.LOGIN),(0,R.M)(this.store.select($e.Yj)),(0,o.z)(([wi,Fi])=>(this.store.dispatch((0,qe.Ll)({payload:null})),this.store.dispatch((0,vt.xH)({payload:null})),this.store.dispatch((0,me.Fd)({payload:null})),this.store.dispatch((0,Bt.qi)({payload:{action:"Login",status:S.Bn.INITIATED}})),this.httpClient.post(P.NZ.AUTHENTICATE_API,{authenticateWith:wi.payload.password?S.OJ.PASSWORD:S.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,C.U)(sn=>{this.logger.info(sn),this.store.dispatch((0,Bt.qi)({payload:{action:"Login",status:S.Bn.COMPLETED}})),this.setLoggedInDetails(wi.payload.defaultPassword,sn)}),(0,O.K)(sn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",S.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:S.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.pg.VERIFY_TWO_FA),(0,o.z)(wi=>(this.store.dispatch((0,Bt.ac)({payload:S.m6.VERIFY_TOKEN})),this.store.dispatch((0,Bt.qi)({payload:{action:"VerifyToken",status:S.Bn.INITIATED}})),this.httpClient.post(P.NZ.AUTHENTICATE_API+"/token",{authentication2FA:wi.payload.token}).pipe((0,C.U)(Fi=>{this.logger.info(Fi),this.store.dispatch((0,Bt.uO)({payload:S.m6.VERIFY_TOKEN})),this.store.dispatch((0,Bt.qi)({payload:{action:"VerifyToken",status:S.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,wi.payload.authResponse)}),(0,O.K)(Fi=>(this.handleErrorWithAlert("VerifyToken",S.m6.VERIFY_TOKEN,"Authorization Failed!",P.NZ.AUTHENTICATE_API+"/token",Fi),(0,v.of)({type:S.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.pg.LOGOUT),(0,R.M)(this.store.select($e.Yj)),(0,o.z)(([wi,Fi])=>(this.store.dispatch((0,Bt.ac)({payload:S.m6.LOG_OUT})),this.httpClient.get(P.NZ.AUTHENTICATE_API+"/logout").pipe((0,C.U)(sn=>{this.logger.info(sn),this.store.dispatch((0,Bt.uO)({payload:S.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,T.R)(this.unSubs[1]),(0,e.l4)(S.pg.RESET_PASSWORD),(0,o.z)(wi=>(this.store.dispatch((0,Bt.qi)({payload:{action:"ResetPassword",status:S.Bn.INITIATED}})),this.httpClient.post(P.NZ.AUTHENTICATE_API+"/reset",{currPassword:wi.payload.currPassword,newPassword:wi.payload.newPassword}).pipe((0,T.R)(this.unSubs[0]),(0,C.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Bt.qi)({payload:{action:"ResetPassword",status:S.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:S.pg.RESET_PASSWORD_RES,payload:Fi.token})),(0,O.K)(Fi=>(this.handleErrorWithAlert("ResetPassword",S.m6.NO_SPINNER,"Password Reset Failed!",P.NZ.AUTHENTICATE_API+"/reset",Fi),(0,v.of)({type:S.pg.VOID})))))))),this.setSelectedNode=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.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:S.Bn.INITIATED}})),this.httpClient.post(P.NZ.CONF_API+"/updateSelNode",{prevNodeIndex:wi.payload.prevLnNodeIndex,currNodeIndex:wi.payload.currentLnNode.index}).pipe((0,C.U)(Fi=>(this.logger.info(Fi),this.store.dispatch((0,Bt.qi)({payload:{action:"UpdateSelNode",status:S.Bn.COMPLETED}})),this.store.dispatch((0,Bt.uO)({payload:wi.payload.uiMessage})),this.initializeNode(wi.payload.currentLnNode,wi.payload.isInitialSetup),{type:S.pg.VOID})),(0,O.K)(Fi=>(this.handleErrorWithAlert("UpdateSelNode",wi.payload.uiMessage,"Update Selected Node Failed!",P.NZ.CONF_API+"/updateSelNode",Fi),(0,v.of)({type:S.pg.VOID})))))))),this.fetchFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.pg.FETCH_FILE),(0,o.z)(wi=>{this.store.dispatch((0,Bt.ac)({payload:S.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,Bt.qi)({payload:{action:"FetchFile",status:S.Bn.INITIATED}}));const Fi="?channel="+wi.payload.channelPoint+(wi.payload.path?"&path="+wi.payload.path:"");return this.httpClient.get(P.NZ.CONF_API+"/file"+Fi).pipe((0,C.U)(sn=>(this.store.dispatch((0,Bt.qi)({payload:{action:"FetchFile",status:S.Bn.COMPLETED}})),this.store.dispatch((0,Bt.uO)({payload:S.m6.DOWNLOAD_BACKUP_FILE})),{type:S.pg.SHOW_FILE,payload:sn})),(0,O.K)(sn=>(this.handleErrorWithAlert("fetchFile",S.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",P.NZ.CONF_API+"/file"+Fi,{status:this.commonService.extractErrorNumber(sn),error:{error:this.commonService.extractErrorCode(sn)}}),(0,v.of)({type:S.pg.VOID}))))}))),this.showFile=(0,e.GW)(()=>this.actions.pipe((0,e.l4)(S.pg.SHOW_FILE),(0,C.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:[...S.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:S.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,vt.xH)({payload:Ci})),this.store.dispatch((0,me.Fd)({payload:Ci})),this.sessionService.getItem("token")){const Wi=gt.lnImplementation?gt.lnImplementation.toUpperCase():"LND";this.dataService.setChildAPIUrl(Wi);const $i=P.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":P.T5;switch(this.wsService.connectWebSocket($i.replace(/^http/,"ws")+P.NZ.Web_SOCKET_API,gt.index.toString()),Wi){case"CLT":this.store.dispatch((0,vt.CN)({payload:{loadPage:ui}}));break;case"ECL":this.store.dispatch((0,me.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.store.dispatch((0,Bt.ey)()),this.sessionService.setItem("defaultPassword",gt),gt&&(this.sessionService.setItem("defaultPassword","true"),this.store.dispatch((0,Bt.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"]))}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:S.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:S.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(Nt.yh),w.LFG(ee.mQ),w.LFG(Pt.d),w.LFG(yi.m),w.LFG(_e.v),w.LFG(Pi.D),w.LFG(D.uw),w.LFG(ie.ux),w.LFG(Ii.F0))},at.\u0275prov=w.Yz7({token:at,factory:at.\u0275fac}),at})()},8377:(Ue,K,m)=>{"use strict";m.d(K,{dT:()=>M,Yj:()=>s,R4:()=>C,ul:()=>c,Sr:()=>R,gW:()=>o});var e=m(5620);const t=(0,e.ZF)("root"),M=((0,e.P1)(t,O=>O.apiURL),(0,e.P1)(t,O=>O.selNode)),s=(0,e.P1)(t,O=>O.appConfig),C=(0,e.P1)(t,O=>O.nodeData),c=(0,e.P1)(t,O=>O.apisCallStatus.Login),R=(0,e.P1)(t,O=>O.apisCallStatus.IsAuthorized),o=(0,e.P1)(t,O=>({nodeDate:O.nodeData,selNode:O.selNode}))},2340:(Ue,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.1-beta"},8990:(Ue,K,m)=>{"use strict";var e=m(2313),t=m(5e3),v=m(6360),M=m(8138),s=m(5113),C=m(5620),c=m(6642),R=m(9565),o=m(7579),O=m(6451),T=m(4968),P=m(457),S=m(4986),D=m(2805);function w($=0,Ze=S.z){return $<0&&($=0),(0,D.H)($,$,Ze)}var U=m(9646),G=m(727),W=m(4482),ee=m(5403),ie=m(8737),_e=m(3269),fe=m(9672),ne=m(9300),se=m(8505),oe=m(3900),y=m(2722),i=m(8746),a=m(1884),p=m(4004);class u{}class _{constructor(Ze,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,Ze&&this.setConfig(Ze)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,O.T)((0,T.R)(window,"mousemove"),(0,T.R)(window,"resize"),(0,T.R)(document,"keydown"))),this.idle$=(0,P.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function($,...Ze){var z,Oe;const _t=null!==(z=(0,_e.yG)(Ze))&&void 0!==z?z:S.z,pi=null!==(Oe=Ze[0])&&void 0!==Oe?Oe:null,Ln=Ze[1]||1/0;return(0,W.e)((hr,Un)=>{let ur=[],ka=!1;const Nr=Js=>{const{buffer:Go,subs:ho}=Js;ho.unsubscribe(),(0,ie.P)(ur,Js),Un.next(Go),ka&&ws()},ws=()=>{if(ur){const Js=new G.w0;Un.add(Js);const ho={buffer:[],subs:Js};ur.push(ho),(0,fe.f)(Js,_t,()=>Nr(ho),$)}};null!==pi&&pi>=0?(0,fe.f)(Un,_t,ws,pi,!0):ka=!0,ws();const Qs=new ee.Q(Un,Js=>{const Go=ur.slice();for(const ho of Go){const{buffer:v1}=ho;v1.push(Js),Ln<=v1.length&&Nr(ho)}},()=>{for(;null==ur?void 0:ur.length;)Un.next(ur.shift().buffer);null==Qs||Qs.unsubscribe(),Un.complete(),Un.unsubscribe()},void 0,()=>ur=null);hr.subscribe(Qs)})}(this.idleSensitivityMillisec),(0,ne.h)(Ze=>!Ze.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,se.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,oe.w)(()=>this._ngZone.runOutsideAngular(()=>w(1e3).pipe((0,y.R)((0,O.T)(this.activityEvents$,(0,D.H)(this.idleMillisec).pipe((0,se.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,oe.w)(Ze=>Ze?this.timer$:(0,U.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,ne.h)(Ze=>!!Ze),(0,se.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(Ze){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(Ze):console.error("Call stopWatching() before set config values")}setConfig(Ze){Ze.idle&&(this.idleMillisec=1e3*Ze.idle),Ze.ping&&(this.pingMillisec=1e3*Ze.ping),Ze.idleSensitivity&&(this.idleSensitivityMillisec=1e3*Ze.idleSensitivity),Ze.timeout&&(this.timeout=Ze.timeout)}setCustomActivityEvents(Ze){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=Ze:console.error("Call stopWatching() before set custom activity events")}setupTimer(Ze){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,U.of)(()=>new Date).pipe((0,p.U)(z=>z()),(0,oe.w)(z=>w(1e3).pipe((0,p.U)(()=>Math.round(((new Date).valueOf()-z.valueOf())/1e3)),(0,se.b)(Oe=>{Oe>=Ze&&this.timeout$.next(!0)}))))})}setupPing(Ze){this.ping$=w(Ze).pipe((0,ne.h)(()=>!this.isTimeout))}}_.\u0275fac=function(Ze){return new(Ze||_)(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 L=(()=>{class ${static forRoot(z){return{ngModule:$,providers:[{provide:u,useValue:z}]}}}return $.\u0275fac=function(z){return new(z||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({imports:[[]]}),$})();var I=m(9291),x=m(801),r=m(8377),b=m(7093),J=m(9444),F=m(9224),B=m(3251),te=m(9808);const xe=function(){return{initial:!1}};function Pe($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(z);const _t=t.oxw();return _t.activeLink=_t.links[1].link}),t._uU(1),t.qZA()}if(2&$){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 Fe($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(z);const _t=t.oxw();return _t.activeLink=_t.links[2].link}),t._uU(1),t.qZA()}if(2&$){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 q=(()=>{class ${constructor(z,Oe){this.store=z,this.router=Oe,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(Oe=>this.router.url.includes(Oe.link));this.activeLink=z?z.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,ne.h)(Oe=>Oe instanceof I.Av)).subscribe(Oe=>{const _t=this.links.find(pi=>Oe.urlAfterRedirects.includes(pi.link));this.activeLink=_t?_t.link:this.links[0].link}),this.store.select(r.Yj).pipe((0,y.R)(this.unSubs[1])).subscribe(Oe=>{this.appConfig=Oe}),this.store.select(r.dT).pipe((0,y.R)(this.unSubs[2])).subscribe(Oe=>{this.showBitcoind=!1,this.selNode=Oe,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 $.\u0275fac=function(z){return new(z||$)(t.Y36(C.yh),t.Y36(I.F0))},$.\u0275cmp=t.Xpm({type:$,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,Oe){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 Oe.activeLink=Oe.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,Pe,2,5,"div",7),t.YNc(11,Fe,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",Oe.faUserCog),t.xp6(7),t.s9C("routerLink",Oe.links[0].link),t.Q6J("active",Oe.activeLink===Oe.links[0].link),t.xp6(1),t.Oqu(Oe.links[0].name),t.xp6(1),t.Q6J("ngIf",!+Oe.appConfig.sso.rtlSSO),t.xp6(1),t.Q6J("ngIf",Oe.showBitcoind))},directives:[b.xw,b.Wh,J.BN,F.a8,F.dn,B.BU,B.Nj,I.rH,te.O5,b.yH,I.lC],styles:[""]}),$})();var j=m(7731),we=m(7861),Ae=m(5043),le=m(644),We=m(3075),yt=m(7322),Ne=m(4107),Ve=m(3390),ue=m(7423),Te=m(508);function ke($,Ze){if(1&$&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&$){const z=Ze.$implicit;t.Q6J("value",z.index),t.xp6(1),t.AsE(" ",z.lnNode," (",z.lnImplementation,") ")}}function Y($,Ze){if(1&$){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(_t){return t.CHM(z),t.oxw().appConfig.defaultNodeIndex=_t}),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&$){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 X=(()=>{class ${constructor(z,Oe){this.logger=z,this.store=Oe,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,we.zQ)({payload:{uiMessage:j.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 $.\u0275fac=function(z){return new(z||$)(t.Y36(Ae.mQ),t.Y36(C.yh))},$.\u0275cmp=t.Xpm({type:$,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,Oe){1&z&&(t.TgZ(0,"div",0),t.YNc(1,Y,21,4,"form",1),t.qZA()),2&z&&(t.xp6(1),t.Q6J("ngIf",Oe.appConfig.nodes&&Oe.appConfig.nodes.length&&Oe.appConfig.nodes.length>0))},directives:[b.xw,b.yH,le.$V,te.O5,We._Y,We.JL,We.F,b.Wh,J.BN,yt.KE,Ne.gD,Ve.h,We.JJ,We.On,te.sg,ue.lW,Te.ey],styles:[""]}),$})();var he=m(8012),Me=m(5698),ze=m(8966),ht=m(5768),it=m(3093),ft=m(7261),nt=m(5615),st=m(7531),wt=m(6895),Bt=m(159);const Nt=["stepper"];function Vt($,Ze){if(1&$&&t._uU(0),2&$){const z=t.oxw();t.Oqu(z.passwordFormLabel)}}function Oi($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function jt($,Ze){if(1&$&&t._uU(0),2&$){const z=t.oxw(2);t.Oqu(z.secretFormLabel)}}function ti($,Ze){if(1&$&&t._UZ(0,"qr-code",32),2&$){const z=t.oxw(2);t.Q6J("value",z.otpauth)("size",180)("errorCorrectionLevel","L")}}function Ri($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Secret Code is required."),t.qZA())}function si($,Ze){if(1&$){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(_t){return t.CHM(z),t.oxw().onCopySecret(_t)}),t.qZA(),t.YNc(13,Ri,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&$){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($,Ze){if(1&$&&t._uU(0),2&$){const z=t.oxw(2);t.Oqu(z.tokenFormLabel)}}function He($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}function Se($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is invalid."),t.qZA())}function V($,Ze){if(1&$){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,He,2,0,"mat-error",14),t.YNc(5,Se,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&$){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 ve($,Ze){1&$&&(t.TgZ(0,"div"),t.TgZ(1,"strong"),t._uU(2,"Success! You are all set."),t.qZA(),t.qZA())}function Ee($,Ze){if(1&$&&(t.TgZ(0,"mat-step",33),t.TgZ(1,"form",34),t.YNc(2,di,1,1,"ng-template",12),t.YNc(3,V,9,3,"div",35),t.YNc(4,ve,3,0,"div",14),t.qZA(),t.qZA()),2&$){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($,Ze){if(1&$&&t._uU(0),2&$){const z=t.oxw(2);t.Oqu(z.disableFormLabel)}}function $t($,Ze){if(1&$){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&$){const z=t.oxw(2);t.xp6(2),t.Q6J("icon",z.faExclamationTriangle)}}function Rt($,Ze){1&$&&(t.TgZ(0,"div"),t.TgZ(1,"strong"),t._uU(2,"Two factor authentication removed from RTL."),t.qZA(),t.qZA())}function Xt($,Ze){if(1&$&&(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,Rt,3,0,"div",14),t.qZA(),t.qZA()),2&$){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 ${constructor(z,Oe,_t,pi,Ln,hr){this.dialogRef=z,this.data=Oe,this.store=_t,this.formBuilder=pi,this.rtlEffects=Ln,this.snackBar=hr,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,we.QO)({payload:he(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,Me.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,we.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,we.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 $.\u0275fac=function(z){return new(z||$)(t.Y36(ze.so),t.Y36(ze.WI),t.Y36(C.yh),t.Y36(We.qu),t.Y36(it.V),t.Y36(ft.ux))},$.\u0275cmp=t.Xpm({type:$,selectors:[["rtl-two-factor-auth"]],viewQuery:function(z,Oe){if(1&z&&t.Gf(Nt,5),2&z){let _t;t.iGM(_t=t.CRH())&&(Oe.stepper=_t.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,Oe){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(pi){return Oe.stepSelectionChanged(pi)}),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 Oe.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,Ee,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",Oe.passwordFormGroup)("editable",Oe.flgEditable),t.xp6(1),t.Q6J("formGroup",Oe.passwordFormGroup),t.xp6(5),t.Q6J("ngIf",null==Oe.passwordFormGroup||null==Oe.passwordFormGroup.controls||null==Oe.passwordFormGroup.controls.password||null==Oe.passwordFormGroup.controls.password.errors?null:Oe.passwordFormGroup.controls.password.errors.required),t.xp6(4),t.Q6J("ngIf",!Oe.showDisableStepper),t.xp6(1),t.Q6J("ngIf",!Oe.showDisableStepper),t.xp6(1),t.Q6J("ngIf",Oe.showDisableStepper),t.xp6(2),t.Q6J("mat-dialog-close",!1),t.xp6(1),t.Oqu(Oe.flgValidated&&Oe.isTokenValid?"Close":"Cancel"))},directives:[b.xw,b.yH,F.dk,b.Wh,ue.lW,ze.ZT,F.dn,nt.Vq,nt.C0,We._Y,We.JL,We.sg,nt.VY,yt.KE,st.Nt,We.Fj,Ve.h,We.JJ,We.u,We.Q7,te.O5,yt.TO,J.BN,yt.R9,wt.y,nt.Ic,Bt.uU],styles:[""]}),$})();var Re=m(5986),Be=m(4834);const rt=["authForm"];function ot($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Current password is required."),t.qZA())}function At($,Ze){if(1&$&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&$){const z=t.oxw(2);t.xp6(1),t.Oqu(z.errorMsg)}}function li($,Ze){if(1&$&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&$){const z=t.oxw(2);t.xp6(1),t.Oqu(z.errorConfirmMsg)}}function Ut($,Ze){if(1&$){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(_t){return t.CHM(z),t.oxw().currPassword=_t}),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(_t){return t.CHM(z),t.oxw().newPassword=_t}),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(_t){return t.CHM(z),t.oxw().confirmPassword=_t}),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&$){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 ${constructor(z,Oe,_t,pi,Ln){this.logger=z,this.store=Oe,this.actions=_t,this.router=pi,this.sessionService=Ln,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,ne.h)(z=>z.type===j.pg.RESET_PASSWORD_RES)).subscribe(z=>{if(j.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||j.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,we.c0)({payload:{currPassword:he(this.currPassword).toString(),newPassword:he(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):j.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=j.kO.reduce((Oe,_t,pi)=>pi<j.kO.length-1?Oe+_t+'" / "':Oe+_t+'".','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,we.qR)({payload:{data:{appConfig:this.appConfig,component:lt}}}))}onResetPassword(){this.form.resetForm()}ngOnDestroy(){this.initializeNodeData&&this.store.dispatch((0,we.fk)({payload:{uiMessage:j.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:this.selNode,isInitialSetup:!0}})),this.unSubs.forEach(z=>{z.next(),z.complete()})}}return $.\u0275fac=function(z){return new(z||$)(t.Y36(Ae.mQ),t.Y36(C.yh),t.Y36(c.eX),t.Y36(I.F0),t.Y36(Re.m))},$.\u0275cmp=t.Xpm({type:$,selectors:[["rtl-auth-settings"]],viewQuery:function(z,Oe){if(1&z&&t.Gf(rt,5),2&z){let _t;t.iGM(_t=t.CRH())&&(Oe.form=_t.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","11",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"],["matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","6","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","7","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","8","required","",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","9",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10","type","button",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"]],template:function(z,Oe){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 Oe.on2FAuth()}),t._uU(13),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(1),t.Q6J("ngIf",null==Oe.appConfig?null:Oe.appConfig.allowPasswordUpdate),t.xp6(3),t.Q6J("icon",Oe.faUserClock),t.xp6(4),t.Q6J("icon",Oe.faInfoCircle),t.xp6(5),t.Oqu(Oe.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[b.xw,b.yH,b.Wh,te.O5,J.BN,ue.lW,We._Y,We.JL,We.F,yt.KE,st.Nt,We.Fj,We.Q7,We.JJ,We.On,Be.d,yt.TO],styles:[""]}),$})();var Si=m(4623);function ai($,Ze){1&$&&t._UZ(0,"mat-divider",7)}function ci($,Ze){if(1&$&&(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&$){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($,Ze){if(1&$&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&$){const z=t.oxw().$implicit;t.xp6(1),t.Oqu(z)}}function Vi($,Ze){if(1&$&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&$){const z=t.oxw().$implicit;t.xp6(1),t.Oqu(z)}}function Di($,Ze){1&$&&t._UZ(0,"mat-divider",15),2&$&&t.Q6J("inset",!0)}function Xi($,Ze){if(1&$&&(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&$){const z=Ze.$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($,Ze){if(1&$&&(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&$){const z=t.oxw();t.xp6(2),t.Q6J("ngForOf",z.configData)}}let mt=(()=>{class ${constructor(z,Oe,_t){this.store=z,this.rtlEffects=Oe,this.router=_t,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,ne.h)(z=>z instanceof I.Av)).subscribe(z=>{this.selectedNodeType=z.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}),this.store.dispatch((0,we.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,y.R)(this.unSubs[1])).subscribe(z=>{const Oe=z.data;this.fileFormat=z.format,this.configData=""===Oe||!Oe||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==Oe&&Oe&&"JSON"===this.fileFormat?Oe:"":Oe.split("\n")})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return $.\u0275fac=function(z){return new(z||$)(t.Y36(C.yh),t.Y36(it.V),t.Y36(I.F0))},$.\u0275cmp=t.Xpm({type:$,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,Oe){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",""!==Oe.configData&&"JSON"===Oe.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==Oe.configData&&("INI"===Oe.fileFormat||"HOCON"===Oe.fileFormat)))},directives:[b.xw,b.yH,b.Wh,te.O5,Be.d,Si.i$,te.sg,Si.Tg,F.$j],pipes:[te.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),$})();const be=function(){return{initial:!1}};function qe($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){t.CHM(z);const _t=t.oxw();return _t.activeLink=_t.links[1].link}),t._uU(1),t.qZA()}if(2&$){const z=t.oxw();t.s9C("routerLink",z.links[1].link),t.Q6J("active",z.activeLink===z.links[1].link)("state",t.DdM(4,be)),t.xp6(1),t.Oqu(z.links[1].name)}}function vt($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(z);const _t=t.oxw();return _t.activeLink=_t.links[2].link}),t._uU(1),t.qZA()}if(2&$){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 me($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){t.CHM(z);const _t=t.oxw();return _t.activeLink=_t.links[3].link}),t._uU(1),t.qZA()}if(2&$){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 ${constructor(z,Oe){this.store=z,this.router=Oe,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(Oe=>this.router.url.includes(Oe.link));this.activeLink=z?z.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,ne.h)(Oe=>Oe instanceof I.Av)).subscribe(Oe=>{const _t=this.links.find(pi=>Oe.urlAfterRedirects.includes(pi.link));this.activeLink=_t?_t.link:this.links[0].link}),this.store.select(r.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(Oe=>{switch(this.showLnConfig=!1,this.selNode=Oe,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 $.\u0275fac=function(z){return new(z||$)(t.Y36(C.yh),t.Y36(I.F0))},$.\u0275cmp=t.Xpm({type:$,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,Oe){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 Oe.activeLink=Oe.links[0].link}),t._uU(9),t.qZA(),t.YNc(10,qe,2,5,"div",7),t.YNc(11,vt,2,3,"div",8),t.YNc(12,me,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",Oe.faTools),t.xp6(7),t.s9C("routerLink",Oe.links[0].link),t.Q6J("active",Oe.activeLink===Oe.links[0].link),t.xp6(1),t.Oqu(Oe.links[0].name),t.xp6(1),t.Q6J("ngIf","LND"===(null==Oe.selNode||null==Oe.selNode.lnImplementation?null:Oe.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf","CLT"===(null==Oe.selNode||null==Oe.selNode.lnImplementation?null:Oe.selNode.lnImplementation.toUpperCase())),t.xp6(1),t.Q6J("ngIf",Oe.showLnConfig))},directives:[b.xw,b.Wh,J.BN,F.a8,F.dn,B.BU,B.Nj,I.rH,te.O5,b.yH,I.lC],styles:[""]}),$})();function St($,Ze){1&$&&t._UZ(0,"mat-divider",7)}function Pt($,Ze){if(1&$&&(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&$){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($,Ze){if(1&$&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&$){const z=t.oxw().$implicit;t.xp6(1),t.Oqu(z)}}function Pi($,Ze){if(1&$&&(t.TgZ(0,"h4",14),t._uU(1),t.qZA()),2&$){const z=t.oxw().$implicit;t.xp6(1),t.Oqu(z)}}function Ii($,Ze){1&$&&t._UZ(0,"mat-divider",15),2&$&&t.Q6J("inset",!0)}function Ki($,Ze){if(1&$&&(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,Pi,2,1,"h4",12),t.qZA(),t.YNc(5,Ii,1,1,"mat-divider",13),t.qZA()),2&$){const z=Ze.$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($,Ze){if(1&$&&(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&$){const z=t.oxw();t.xp6(2),t.Q6J("ngForOf",z.configData)}}let Qt=(()=>{class ${constructor(z,Oe,_t){this.store=z,this.rtlEffects=Oe,this.router=_t,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,ne.h)(z=>z instanceof I.Av)).subscribe(z=>{this.selectedNodeType=z.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}),this.store.dispatch((0,we.Q2)({payload:this.selectedNodeType})),this.rtlEffects.showLnConfig.pipe((0,y.R)(this.unSubs[1])).subscribe(z=>{const Oe=z.data;this.fileFormat=z.format,this.configData=""===Oe||!Oe||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==Oe&&Oe&&"JSON"===this.fileFormat?Oe:"":Oe.split("\n")})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return $.\u0275fac=function(z){return new(z||$)(t.Y36(C.yh),t.Y36(it.V),t.Y36(I.F0))},$.\u0275cmp=t.Xpm({type:$,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,Oe){1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,Pt,5,4,"div",2),t.YNc(3,at,3,1,"div",3),t.qZA(),t.qZA()),2&z&&(t.xp6(2),t.Q6J("ngIf",""!==Oe.configData&&"JSON"===Oe.fileFormat),t.xp6(1),t.Q6J("ngIf",""!==Oe.configData&&("INI"===Oe.fileFormat||"HOCON"===Oe.fileFormat)))},directives:[b.xw,b.yH,b.Wh,te.O5,Be.d,Si.i$,te.sg,Si.Tg,F.$j],pipes:[te.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),$})();var gt=m(2994),Lt=m(1443),ui=m(6523),Ci=m(62),Wi=m(2368),$i=m(9814),An=m(3322);function On($,Ze){if(1&$&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&$){const z=Ze.$implicit;t.Q6J("value",z.id),t.xp6(1),t.hij(" ",z.id," ")}}function pn($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Currency unit is required."),t.qZA())}function Rn($,Ze){if(1&$&&(t.TgZ(0,"mat-radio-button",36),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&$){const z=Ze.$implicit,Oe=t.oxw();t.Q6J("value",z)("checked",Oe.selNode.settings.userPersona===z),t.xp6(1),t.hij(" ",t.lcZ(2,3,z)," ")}}const xr=function($){return{"mr-4":$}};function wi($,Ze){if(1&$&&(t.TgZ(0,"mat-radio-button",37),t._uU(1),t.qZA()),2&$){const z=Ze.$implicit,Oe=t.oxw();t.Q6J("value",z)("ngClass",t.VKq(3,xr,Oe.screenSize===Oe.screenSizeEnum.XS||Oe.screenSize===Oe.screenSizeEnum.SM)),t.xp6(1),t.hij("",z.name," ")}}const Fi=function($){return{skin:!0,"selected-color":$}};function sn($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"span",38),t.TgZ(1,"div",39),t.NdJ("click",function(){const pi=t.CHM(z).$implicit;return t.oxw().changeThemeColor(pi.id)}),t.ALo(2,"lowercase"),t.qZA(),t._uU(3),t.qZA()}if(2&$){const z=Ze.$implicit,Oe=t.oxw();t.xp6(1),t.Tol(t.lcZ(2,4,z.id)),t.Q6J("ngClass",t.VKq(6,Fi,Oe.selectedThemeColor===z.id)),t.xp6(2),t.hij(" ",z.name," ")}}let Sr=(()=>{class ${constructor(z,Oe,_t){this.logger=z,this.commonService=Oe,this.store=_t,this.faExclamationTriangle=x.eHv,this.faMoneyBillAlt=x.co4,this.faPaintBrush=x.XsY,this.faInfoCircle=x.sqG,this.userPersonas=[j.ol.OPERATOR,j.ol.MERCHANT],this.currencyUnits=j.Er,this.themeModes=j.wZ.modes,this.themeColors=j.wZ.themes,this.selectedThemeMode=j.wZ.modes[0],this.selectedThemeColor=j.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=j.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(Oe=>this.selNode.settings.themeMode===Oe.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=[...j.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,Oe){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,we.zQ)({payload:{uiMessage:j.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(Oe=>Oe.id===this.previousSettings.themeMode),this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,we.fk)({payload:{uiMessage:j.m6.NO_SPINNER,prevLnNodeIndex:+z,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(),z.complete()})}}return $.\u0275fac=function(z){return new(z||$)(t.Y36(Ae.mQ),t.Y36(Ci.v),t.Y36(C.yh))},$.\u0275cmp=t.Xpm({type:$,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,Oe){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(pi){return Oe.selNode.settings.fiatConversion=pi})("change",function(pi){return Oe.selNode.settings.currencyUnit=pi.checked?Oe.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(pi){return Oe.selNode.settings.currencyUnit=pi})("selectionChange",function(pi){return Oe.onCurrencyChange(pi)}),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(pi){return Oe.selNode.settings.userPersona=pi}),t.YNc(40,Rn,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(pi){return Oe.selectedThemeMode=pi})("change",function(){return Oe.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 Oe.onResetSettings()}),t._uU(57,"Reset"),t.qZA(),t.TgZ(58,"button",34),t.NdJ("click",function(){return Oe.onUpdateSettings()}),t._uU(59,"Update"),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(4),t.Q6J("icon",Oe.faMoneyBillAlt),t.xp6(5),t.Q6J("icon",Oe.faExclamationTriangle),t.xp6(8),t.Q6J("ngModel",Oe.selNode.settings.fiatConversion),t.xp6(3),t.Q6J("ngModel",Oe.selNode.settings.currencyUnit)("disabled",!Oe.selNode.settings.fiatConversion)("required",Oe.selNode.settings.fiatConversion),t.xp6(2),t.Q6J("ngForOf",Oe.currencyUnits),t.xp6(1),t.Q6J("ngIf",Oe.selNode.settings.fiatConversion&&!Oe.selNode.settings.currencyUnit),t.xp6(4),t.Q6J("icon",Oe.faPaintBrush),t.xp6(6),t.Q6J("icon",Oe.faInfoCircle),t.xp6(6),t.Q6J("ngModel",Oe.selNode.settings.userPersona),t.xp6(1),t.Q6J("ngForOf",Oe.userPersonas),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Q6J("ngModel",Oe.selectedThemeMode),t.xp6(1),t.Q6J("ngForOf",Oe.themeModes),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Q6J("ngForOf",Oe.themeColors))},directives:[b.xw,b.yH,le.$V,We._Y,We.JL,We.F,b.Wh,J.BN,Wi.Rr,We.JJ,We.On,yt.KE,Ne.gD,Ve.h,We.Q7,te.sg,te.O5,$i.VQ,Be.d,ue.lW,Te.ey,yt.TO,$i.U0,te.mk,An.oO],pipes:[te.rS,te.i8],styles:[""]}),$})();const ya=function(){return{initial:!1}};let qn=(()=>{class ${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(Oe=>this.router.url.includes(Oe.link));this.activeLink=z?z.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,ne.h)(Oe=>Oe instanceof I.Av)).subscribe(Oe=>{const _t=this.links.find(pi=>Oe.urlAfterRedirects.includes(pi.link));this.activeLink=_t?_t.link:this.links[0].link})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return $.\u0275fac=function(z){return new(z||$)(t.Y36(I.F0))},$.\u0275cmp=t.Xpm({type:$,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,Oe){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 Oe.activeLink=Oe.links[0].link}),t._uU(9),t.qZA(),t.TgZ(10,"div",7),t.NdJ("click",function(){return Oe.activeLink=Oe.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",Oe.faLayerGroup),t.xp6(7),t.s9C("routerLink",Oe.links[0].link),t.Q6J("active",Oe.activeLink===Oe.links[0].link),t.xp6(1),t.Oqu(Oe.links[0].name),t.xp6(1),t.s9C("routerLink",Oe.links[1].link),t.Q6J("active",Oe.activeLink===Oe.links[1].link)("state",t.DdM(8,ya)),t.xp6(1),t.Oqu(Oe.links[1].name))},directives:[b.xw,b.Wh,J.BN,F.a8,F.dn,B.BU,B.Nj,I.rH,b.yH,I.lC],styles:[""]}),$})();const kr=["form"];function ba($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop server URL is required."),t.qZA())}function xa($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the loop server url with 'https://'."),t.qZA())}function Va($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Loop macaroon path is required."),t.qZA())}let zr=(()=>{class ${constructor(z,Oe){this.logger=z,this.store=Oe,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,we.jS)({payload:{uiMessage:j.m6.UPDATE_LOOP_SETTINGS,service:j.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 $.\u0275fac=function(z){return new(z||$)(t.Y36(Ae.mQ),t.Y36(C.yh))},$.\u0275cmp=t.Xpm({type:$,selectors:[["rtl-loop-service-settings"]],viewQuery:function(z,Oe){if(1&z&&t.Gf(kr,7),2&z){let _t;t.iGM(_t=t.CRH())&&(Oe.form=_t.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,Oe){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(pi){return Oe.enableLoop=pi})("change",function(pi){return Oe.onEnableServiceChanged(pi)}),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(pi){return Oe.selNode.settings.swapServerUrl=pi}),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(pi){return Oe.selNode.authentication.swapMacaroonPath=pi}),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,Va,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 Oe.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return Oe.onUpdateService()}),t._uU(33,"Update"),t.qZA(),t.qZA(),t.qZA()),2&z){const _t=t.MAs(19);t.xp6(2),t.Q6J("icon",Oe.faInfoCircle),t.xp6(13),t.Q6J("ngModel",Oe.enableLoop),t.xp6(3),t.Q6J("ngModel",Oe.selNode.settings.swapServerUrl)("required",Oe.enableLoop)("disabled",!Oe.enableLoop),t.xp6(4),t.Q6J("ngIf",!Oe.selNode.settings.swapServerUrl&&Oe.enableLoop),t.xp6(1),t.Q6J("ngIf",(null==_t||null==_t.errors?null:_t.errors.invalid)&&Oe.enableLoop),t.xp6(2),t.Q6J("ngModel",Oe.selNode.authentication.swapMacaroonPath)("required",Oe.enableLoop)("disabled",!Oe.enableLoop),t.xp6(3),t.Q6J("ngIf",!Oe.selNode.authentication.swapMacaroonPath&&Oe.enableLoop)}},directives:[b.xw,b.yH,le.$V,J.BN,We._Y,We.JL,We.F,b.Wh,Wi.Rr,Ve.h,We.JJ,We.On,yt.KE,st.Nt,We.Fj,We.Q7,yt.bx,te.O5,ue.lW,yt.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),$})();const is=["form"];function rr($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz server URL is required."),t.qZA())}function ua($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Specify the boltz server url with 'https://'."),t.qZA())}function la($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Boltz macaroon path is required."),t.qZA())}let Ur=(()=>{class ${constructor(z,Oe){this.logger=z,this.store=Oe,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,we.jS)({payload:{uiMessage:j.m6.UPDATE_BOLTZ_SETTINGS,service:j.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 $.\u0275fac=function(z){return new(z||$)(t.Y36(Ae.mQ),t.Y36(C.yh))},$.\u0275cmp=t.Xpm({type:$,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(z,Oe){if(1&z&&t.Gf(is,7),2&z){let _t;t.iGM(_t=t.CRH())&&(Oe.form=_t.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,Oe){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(pi){return Oe.enableBoltz=pi})("change",function(pi){return Oe.onEnableServiceChanged(pi)}),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(pi){return Oe.serverUrl=pi}),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(pi){return Oe.macaroonPath=pi}),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 Oe.onReset()}),t._uU(31,"Reset"),t.qZA(),t.TgZ(32,"button",15),t.NdJ("click",function(){return Oe.onUpdateService()}),t._uU(33,"Update"),t.qZA(),t.qZA(),t.qZA()),2&z){const _t=t.MAs(19);t.xp6(2),t.Q6J("icon",Oe.faInfoCircle),t.xp6(13),t.Q6J("ngModel",Oe.enableBoltz),t.xp6(3),t.Q6J("ngModel",Oe.serverUrl)("required",Oe.enableBoltz)("disabled",!Oe.enableBoltz),t.xp6(4),t.Q6J("ngIf",(!Oe.serverUrl||""===Oe.serverUrl.trim())&&Oe.enableBoltz),t.xp6(1),t.Q6J("ngIf",(null==_t||null==_t.errors?null:_t.errors.invalid)&&Oe.enableBoltz),t.xp6(2),t.Q6J("ngModel",Oe.macaroonPath)("required",Oe.enableBoltz)("disabled",!Oe.enableBoltz),t.xp6(3),t.Q6J("ngIf",!Oe.macaroonPath&&Oe.enableBoltz)}},directives:[b.xw,b.yH,le.$V,J.BN,We._Y,We.JL,We.F,b.Wh,Wi.Rr,Ve.h,We.JJ,We.On,yt.KE,st.Nt,We.Fj,We.Q7,yt.bx,te.O5,ue.lW,yt.TO],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),$})(),Pa=(()=>{class ${constructor(z,Oe){this.store=z,this.router=Oe,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(Oe=>this.router.url.includes(Oe.link));this.activeLink=z?z.link:this.links[0].link,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,ne.h)(Oe=>Oe instanceof I.Av)).subscribe(Oe=>{const _t=this.links.find(pi=>Oe.urlAfterRedirects.includes(pi.link));this.activeLink=_t?_t.link:this.links[0].link}),this.store.select(r.dT).pipe((0,y.R)(this.unSubs[1])).subscribe(Oe=>{switch(this.showLnConfig=!1,this.showBitcoind=!1,this.selNode=Oe,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 $.\u0275fac=function(z){return new(z||$)(t.Y36(C.yh),t.Y36(I.F0))},$.\u0275cmp=t.Xpm({type:$,selectors:[["rtl-services"]],decls:1,vars:0,template:function(z,Oe){1&z&&t._UZ(0,"router-outlet")},directives:[I.lC],styles:[""]}),$})();var Ra=m(8213),Zr=m(9107),Qr=m(6087),Cr=m(4847),_n=m(2075),Kn=m(5899);function Dr($,Ze){1&$&&t._UZ(0,"mat-progress-bar",34)}function Jr($,Ze){1&$&&(t.TgZ(0,"th",35),t._uU(1," Initiation Time "),t.qZA())}function Ga($,Ze){if(1&$&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,z.initiation_time/1e6,"dd/MMM/y HH:mm"))}}function Pr($,Ze){1&$&&(t.TgZ(0,"th",35),t._uU(1," Last Update Time "),t.qZA())}function Na($,Ze){if(1&$&&(t.TgZ(0,"td",36),t._uU(1),t.ALo(2,"date"),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,z.last_update_time/1e6,"dd/MMM/y HH:mm"))}}function Ca($,Ze){1&$&&(t.TgZ(0,"th",35),t._uU(1," ID "),t.qZA())}function Vr($,Ze){if(1&$&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(1),t.Oqu(z.id)}}function er($,Ze){1&$&&(t.TgZ(0,"th",35),t._uU(1," ID (Bytes) "),t.qZA())}function Fa($,Ze){if(1&$&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(1),t.Oqu(z.id_bytes)}}function dr($,Ze){1&$&&(t.TgZ(0,"th",35),t._uU(1," State "),t.qZA())}function ia($,Ze){if(1&$&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&$){const z=Ze.$implicit,Oe=t.oxw();t.xp6(1),t.Oqu(Oe.LoopStateEnum[z.state])}}function Sa($,Ze){1&$&&(t.TgZ(0,"th",35),t._uU(1," HTLC Address "),t.qZA())}function Rr($,Ze){if(1&$&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(1),t.Oqu(z.htlc_address)}}function na($,Ze){1&$&&(t.TgZ(0,"th",37),t._uU(1," Amount (Sats) "),t.qZA())}function Mr($,Ze){if(1&$&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,z.amt))}}function ns($,Ze){1&$&&(t.TgZ(0,"th",37),t._uU(1," Cost Server (Sats) "),t.qZA())}function Wa($,Ze){if(1&$&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,z.cost_server))}}function mr($,Ze){1&$&&(t.TgZ(0,"th",37),t._uU(1," Cost Offchain (Sats) "),t.qZA())}function fa($,Ze){if(1&$&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,z.cost_offchain))}}function ra($,Ze){1&$&&(t.TgZ(0,"th",37),t._uU(1," Cost Onchain (Sats) "),t.qZA())}function pa($,Ze){if(1&$&&(t.TgZ(0,"td",36),t.TgZ(1,"span",38),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==z?null:z.cost_onchain)," ")}}function Zn($,Ze){if(1&$){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 rs($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"td",43),t.TgZ(1,"button",44),t.NdJ("click",function(_t){const Ln=t.CHM(z).$implicit;return t.oxw().onSwapClick(Ln,_t)}),t._uU(2,"View Info"),t.qZA(),t.qZA()}}function Ya($,Ze){if(1&$&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&$){const z=t.oxw(2);t.xp6(1),t.Oqu(z.emptyTableMessage)}}function Xe($,Ze){if(1&$&&(t.TgZ(0,"td",45),t.YNc(1,Ya,2,1,"p",46),t.qZA()),2&$){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 ye=function($){return{"display-none":$}};function Q($,Ze){if(1&$&&t._UZ(0,"tr",47),2&$){const z=t.oxw();t.Q6J("ngClass",t.VKq(1,ye,(null==z.listSwaps?null:z.listSwaps.data)&&(null==z.listSwaps||null==z.listSwaps.data?null:z.listSwaps.data.length)>0))}}function ae($,Ze){1&$&&t._UZ(0,"tr",48)}function Qe($,Ze){1&$&&t._UZ(0,"tr",49)}const Yt=function($){return{"overflow-auto error-border":$,"overflow-auto":!0}},mi=function(){return["no_swap"]};let Ct=(()=>{class ${constructor(z,Oe,_t,pi){this.logger=z,this.commonService=Oe,this.store=_t,this.loopService=pi,this.selectedSwapType=j.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.LoopStateEnum=j.Fq,this.faHistory=x.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=j.IV,this.pageSizeOptions=j.TJ,this.screenSize="",this.screenSizeEnum=j.cu,this.unSubs=[new o.x,new o.x,new o.x],this.screenSize=this.commonService.getScreenSize(),this.screenSize===j.cu.XS||this.screenSize===j.cu.SM?(this.flgSticky=!1,this.displayedColumns=["state","amt","actions"]):this.screenSize===j.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===j.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}onSwapClick(z,Oe){this.loopService.getSwap(z.id_bytes.replace(/\//g,"_").replace(/\+/g,"-")).pipe((0,y.R)(this.unSubs[2])).subscribe(_t=>{this.store.dispatch((0,we.qR)({payload:{data:{type:j.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:j.Fq[_t.state],title:"Status",width:50,type:j.Gi.STRING},{key:"amt",value:_t.amt,title:"Amount (Sats)",width:50,type:j.Gi.NUMBER}],[{key:"initiation_time",value:_t.initiation_time/1e9,title:"Initiation Time",width:50,type:j.Gi.DATE_TIME},{key:"last_update_time",value:_t.last_update_time/1e9,title:"Last Update Time",width:50,type:j.Gi.DATE_TIME}],[{key:"cost_server",value:_t.cost_server,title:"Server Cost (Sats)",width:33,type:j.Gi.NUMBER},{key:"cost_offchain",value:_t.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:j.Gi.NUMBER},{key:"cost_onchain",value:_t.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:j.Gi.NUMBER}],[{key:"id_bytes",value:_t.id_bytes,title:"ID",width:100,type:j.Gi.STRING}],[{key:"htlc_address",value:_t.htlc_address,title:"HTLC Address",width:100,type:j.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(z){this.listSwaps=new _n.by([...z]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(Oe,_t)=>Oe[_t]&&isNaN(Oe[_t])?Oe[_t].toLocaleLowerCase():Oe[_t]?+Oe[_t]:null,this.listSwaps.filterPredicate=(Oe,_t)=>JSON.stringify(Oe).toLowerCase().includes(_t),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===j.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return $.\u0275fac=function(z){return new(z||$)(t.Y36(Ae.mQ),t.Y36(Ci.v),t.Y36(C.yh),t.Y36(Zr.W))},$.\u0275cmp=t.Xpm({type:$,selectors:[["rtl-swaps"]],viewQuery:function(z,Oe){if(1&z&&(t.Gf(Cr.YE,5),t.Gf(Qr.NW,5)),2&z){let _t;t.iGM(_t=t.CRH())&&(Oe.sort=_t.first),t.iGM(_t=t.CRH())&&(Oe.paginator=_t.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:Qr.ye,useValue:(0,j.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,Oe){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 Oe.applyFilter()})("ngModelChange",function(pi){return Oe.selFilter=pi}),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,Ga,3,4,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Pr,2,0,"th",13),t.YNc(18,Na,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,Fa,2,1,"td",14),t.BQk(),t.ynx(25,18),t.YNc(26,dr,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,Rr,2,1,"td",14),t.BQk(),t.ynx(31,20),t.YNc(32,na,2,0,"th",21),t.YNc(33,Mr,4,3,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,ns,2,0,"th",21),t.YNc(36,Wa,4,3,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,mr,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,rs,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,ae,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",Oe.faHistory),t.xp6(2),t.hij("",Oe.swapCaption," History"),t.xp6(2),t.Q6J("ngModel",Oe.selFilter),t.xp6(3),t.Q6J("ngIf",!0===Oe.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",Oe.listSwaps)("ngClass",t.VKq(13,Yt,"error"===Oe.flgLoading[0])),t.xp6(37),t.Q6J("matFooterRowDef",t.DdM(15,mi)),t.xp6(1),t.Q6J("matHeaderRowDef",Oe.displayedColumns)("matHeaderRowDefSticky",Oe.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",Oe.displayedColumns),t.xp6(1),t.Q6J("pageSize",Oe.pageSize)("pageSizeOptions",Oe.pageSizeOptions)("showFirstLastButtons",Oe.screenSize!==Oe.screenSizeEnum.XS))},directives:[b.xw,b.yH,b.Wh,J.BN,yt.KE,st.Nt,We.Fj,We.JJ,We.On,le.$V,te.O5,_n.BZ,Cr.YE,te.mk,An.oO,_n.w1,_n.fO,_n.Dz,_n.mD,_n.Ke,_n.as,_n.nj,Qr.NW,Kn.pW,_n.ge,Cr.nU,_n.ev,Ne.gD,Ne.$L,Te.ey,ue.lW,_n.yh,_n.Q2,_n.XQ,_n.Gk],pipes:[te.uU,te.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),$})();const ei=function($){return["../",$]};function bt($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",10),t.NdJ("click",function(){const pi=t.CHM(z).$implicit;return t.oxw().onSelectedIndexChange(pi)}),t._uU(1),t.qZA()}if(2&$){const z=Ze.$implicit,Oe=t.oxw();t.Q6J("active",Oe.activeTab.link===z.link)("routerLink",t.VKq(3,ei,z.link)),t.xp6(1),t.Oqu(z.name)}}let Wt=(()=>{class ${constructor(z,Oe,_t){this.router=z,this.loopService=Oe,this.store=_t,this.faInfinity=x.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=j.$I,this.selectedSwapType=j.$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(Oe=>this.router.url.includes(Oe.link));this.activeTab=z||this.links[0],this.selectedSwapType=z&&"loopin"===z.link?j.$I.LOOP_IN:j.$I.LOOP_OUT,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,ne.h)(Oe=>Oe instanceof I.Av)).subscribe(Oe=>{const _t=this.links.find(pi=>Oe.urlAfterRedirects.includes(pi.link));this.activeTab=_t||this.links[0],this.selectedSwapType=_t&&"loopin"===_t.link?j.$I.LOOP_IN:j.$I.LOOP_OUT}),this.loopService.swapsChanged.pipe((0,y.R)(this.unSubs[1])).subscribe({next:Oe=>{this.flgLoading[0]=!1,this.storedSwaps=Oe,this.filteredSwaps=this.storedSwaps.filter(_t=>_t.type===this.selectedSwapType)},error:Oe=>{this.flgLoading[0]="error",this.emptyTableMessage=Oe.message?Oe.message:"No loop "+(this.selectedSwapType===j.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(z){this.selectedSwapType="loopin"===z.link?j.$I.LOOP_IN:j.$I.LOOP_OUT,this.filteredSwaps=this.storedSwaps.filter(Oe=>Oe.type===this.selectedSwapType)}onLoop(z){z===j.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,y.R)(this.unSubs[2])).subscribe(Oe=>{this.store.dispatch((0,we.qR)({payload:{data:{minQuote:Oe[0],maxQuote:Oe[1],direction:z,component:Ra.a}}}))}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,y.R)(this.unSubs[3])).subscribe(Oe=>{this.store.dispatch((0,we.qR)({payload:{data:{minQuote:Oe[0],maxQuote:Oe[1],direction:z,component:Ra.a}}}))})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return $.\u0275fac=function(z){return new(z||$)(t.Y36(I.F0),t.Y36(Zr.W),t.Y36(C.yh))},$.\u0275cmp=t.Xpm({type:$,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,Oe){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,bt,2,5,"div",6),t.qZA(),t.TgZ(9,"div",7),t.TgZ(10,"button",8),t.NdJ("click",function(){return Oe.onLoop(Oe.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",Oe.faInfinity),t.xp6(7),t.Q6J("ngForOf",Oe.links),t.xp6(3),t.hij("Start ",Oe.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",Oe.selectedSwapType)("swapsData",Oe.filteredSwaps)("flgLoading",Oe.flgLoading)("emptyTableMessage",Oe.emptyTableMessage))},directives:[b.xw,b.Wh,J.BN,F.a8,F.dn,B.BU,te.sg,ue.lW,Ct,b.yH,B.Nj,I.rH],styles:[""]}),$})();var xi=m(7772),zi=m(1135),vn=m(2843),wn=m(262),Qi=m(2340),gr=m(1786);let Fn=(()=>{class ${constructor(z,Oe,_t,pi){this.httpClient=z,this.logger=Oe,this.store=_t,this.commonService=pi,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,we.ac)({payload:j.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,we.uO)({payload:j.m6.GET_BOLTZ_SWAPS})),this.swaps=z,this.swapsChanged.next(this.swaps)},error:z=>this.handleErrorWithAlert(j.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)(Oe=>this.handleErrorWithAlert(j.m6.NO_SPINNER,this.swapUrl,Oe)))}serviceInfo(){return this.store.dispatch((0,we.ac)({payload:j.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,we.uO)({payload:j.m6.GET_SERVICE_INFO})),z)),(0,wn.K)(z=>this.handleErrorWithAlert(j.m6.GET_SERVICE_INFO,this.swapUrl,z)))}swapOut(z,Oe){const _t={amount:z,address:Oe};return this.swapUrl=Qi.T5+Qi.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,_t).pipe((0,wn.K)(pi=>this.handleErrorWithoutAlert("Swap Out for Address: "+Oe,j.m6.NO_SPINNER,pi)))}swapIn(z){const Oe={amount:z};return this.swapUrl=Qi.T5+Qi.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,Oe).pipe((0,wn.K)(_t=>this.handleErrorWithoutAlert("Swap In for Amount: "+z,j.m6.NO_SPINNER,_t)))}handleErrorWithoutAlert(z,Oe,_t){let pi="";return this.logger.error("ERROR IN: "+z+"\n"+JSON.stringify(_t)),this.store.dispatch((0,we.uO)({payload:Oe})),401===_t.status?(pi="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,we.kS)())):503===_t.status?(pi="Unable to Connect to Boltz Server.",this.store.dispatch((0,we.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:_t.status,message:"Unable to Connect to Boltz Server",URL:z},component:gr.H}}}))):pi=this.commonService.extractErrorMessage(_t),(0,vn._)(()=>new Error(pi))}handleErrorWithAlert(z,Oe,_t){let pi="";return 401===_t.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,we.kS)())),this.logger.error(_t),this.store.dispatch((0,we.uO)({payload:z})),401===_t.status?(pi="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,we.kS)())):503===_t.status?(pi="Unable to Connect to Boltz Server.",this.store.dispatch((0,we.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:_t.status,message:"Unable to Connect to Boltz Server",URL:Oe},component:gr.H}}}))):(pi=this.commonService.extractErrorMessage(_t),this.store.dispatch((0,we.qR)({payload:{data:{type:j.n_.ERROR,alertTitle:"ERROR",message:{code:_t.error&&_t.error.error&&_t.error.error.code?_t.error.error.code:_t.error&&_t.error.code?_t.error.code:_t.code?_t.code:_t.status,message:pi,URL:Oe},component:gr.H}}}))),(0,vn._)(()=>new Error(pi))}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return $.\u0275fac=function(z){return new(z||$)(t.LFG(M.eN),t.LFG(Ae.mQ),t.LFG(C.yh),t.LFG(Ci.v))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();var Gn=m(1125);let ma=(()=>{class ${constructor(){this.serviceInfo={},this.direction=j.hc.SWAP_OUT,this.swapTypeEnum=j.hc}}return $.\u0275fac=function(z){return new(z||$)},$.\u0275cmp=t.Xpm({type:$,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,Oe){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==Oe.serviceInfo||null==Oe.serviceInfo.limits?null:Oe.serviceInfo.limits.minimal)),t.xp6(6),t.Oqu(t.lcZ(18,7,null==Oe.serviceInfo||null==Oe.serviceInfo.limits?null:Oe.serviceInfo.limits.maximal)),t.xp6(8),t.Oqu(t.lcZ(26,9,null==Oe.serviceInfo||null==Oe.serviceInfo.fees?null:Oe.serviceInfo.fees.percentage)),t.xp6(6),t.Oqu(t.lcZ(32,11,Oe.direction===Oe.swapTypeEnum.SWAP_OUT?null==Oe.serviceInfo||null==Oe.serviceInfo.fees||null==Oe.serviceInfo.fees.miner?null:Oe.serviceInfo.fees.miner.reverse:null==Oe.serviceInfo||null==Oe.serviceInfo.fees||null==Oe.serviceInfo.fees.miner?null:Oe.serviceInfo.fees.miner.normal)))},directives:[Gn.ib,b.yH,Gn.yz,Gn.yK,b.Wh,b.xw,Be.d],pipes:[te.JJ],styles:[""]}),$})();var Lr=m(5245);function us($,Ze){1&$&&t.GkF(0)}function ja($,Ze){if(1&$&&(t.TgZ(0,"div",4),t.TgZ(1,"span",5),t._uU(2),t.qZA(),t.qZA()),2&$){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($,Ze){if(1&$&&(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&$){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 Nn($,Ze){if(1&$&&(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&$){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 ${constructor(){this.swapStatus=null,this.direction=j.hc.SWAP_OUT,this.swapTypeEnum=j.hc}}return $.\u0275fac=function(z){return new(z||$)},$.\u0275cmp=t.Xpm({type:$,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,Oe){if(1&z&&(t.YNc(0,us,1,0,"ng-container",0),t.YNc(1,ja,3,1,"ng-template",null,1,t.W1O),t.YNc(3,ki,25,6,"ng-template",null,2,t.W1O),t.YNc(5,Nn,27,6,"ng-template",null,3,t.W1O)),2&z){const _t=t.MAs(2),pi=t.MAs(4),Ln=t.MAs(6);t.Q6J("ngTemplateOutlet",null!=Oe.swapStatus&&Oe.swapStatus.error?_t:Oe.direction===Oe.swapTypeEnum.SWAP_OUT?pi:Ln)}},directives:[te.tP,b.xw,b.yH,b.Wh,Be.d],pipes:[te.JJ],styles:[""]}),$})();var cr=m(113);function Ys($,Ze){1&$&&t.GkF(0)}const as=function($,Ze){return{"small-svg":$,"large-svg":Ze}};function xt($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(_t){return t.CHM(z),t.oxw().onSwipe(_t)}),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&$){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,as,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}function re($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(_t){return t.CHM(z),t.oxw().onSwipe(_t)}),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&$){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,as,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}function pe($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(_t){return t.CHM(z),t.oxw().onSwipe(_t)}),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&$){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,as,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}function je($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(_t){return t.CHM(z),t.oxw().onSwipe(_t)}),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&$){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,as,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}function Mt($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(_t){return t.CHM(z),t.oxw().onSwipe(_t)}),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&$){const z=t.oxw();t.Q6J("@sliderAnimation",z.animationDirection),t.xp6(1),t.Q6J("ngClass",t.WLB(2,as,z.screenSize===z.screenSizeEnum.XS,z.screenSize!==z.screenSizeEnum.XS))}}let kt=(()=>{class ${constructor(z){this.commonService=z,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=j.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 $.\u0275fac=function(z){return new(z||$)(t.Y36(Ci.v))},$.\u0275cmp=t.Xpm({type:$,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,Oe){if(1&z&&(t.YNc(0,Ys,1,0,"ng-container",0),t.YNc(1,xt,18,5,"ng-template",null,1,t.W1O),t.YNc(3,re,19,5,"ng-template",null,2,t.W1O),t.YNc(5,pe,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 _t=t.MAs(2),pi=t.MAs(4),Ln=t.MAs(6),hr=t.MAs(8),Un=t.MAs(10);t.Q6J("ngTemplateOutlet",1===Oe.stepNumber?_t:2===Oe.stepNumber?pi:3===Oe.stepNumber?Ln:4===Oe.stepNumber?hr:Un)}},directives:[te.tP,b.xw,b.yH,b.Wh,te.mk,An.oO,F.n5,F.$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]}}),$})();function Kt($,Ze){1&$&&t.GkF(0)}const Jt=function($,Ze){return{"small-svg":$,"large-svg":Ze}};function fi($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(_t){return t.CHM(z),t.oxw().onSwipe(_t)}),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&$){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($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(_t){return t.CHM(z),t.oxw().onSwipe(_t)}),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&$){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($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(_t){return t.CHM(z),t.oxw().onSwipe(_t)}),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&$){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($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(_t){return t.CHM(z),t.oxw().onSwipe(_t)}),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&$){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($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",6),t.NdJ("swipe",function(_t){return t.CHM(z),t.oxw().onSwipe(_t)}),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&$){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 In=(()=>{class ${constructor(z){this.commonService=z,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.vpe,this.screenSize="",this.screenSizeEnum=j.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 $.\u0275fac=function(z){return new(z||$)(t.Y36(Ci.v))},$.\u0275cmp=t.Xpm({type:$,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,Oe){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 _t=t.MAs(2),pi=t.MAs(4),Ln=t.MAs(6),hr=t.MAs(8),Un=t.MAs(10);t.Q6J("ngTemplateOutlet",1===Oe.stepNumber?_t:2===Oe.stepNumber?pi:3===Oe.stepNumber?Ln:4===Oe.stepNumber?hr:Un)}},directives:[te.tP,b.xw,b.yH,b.Wh,te.mk,An.oO,F.n5,F.$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]}}),$})();const tt=["stepper"];function Et($,Ze){if(1&$&&t._uU(0),2&$){const z=t.oxw(2);t.Oqu(z.inputFormLabel)}}function It($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function zt($,Ze){if(1&$&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&$){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($,Ze){if(1&$&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"number"),t.qZA()),2&$){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($,Ze){1&$&&(t.TgZ(0,"button",40),t._uU(1,"Next"),t.qZA())}function Mi($,Ze){if(1&$){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&$){const z=t.oxw(2);t.xp6(1),t.hij("Initiate ",z.swapDirectionCaption,"")}}function Ei($,Ze){if(1&$&&t._uU(0),2&$){const z=t.oxw(3);t.Oqu(z.addressFormLabel)}}function ji($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function hn($,Ze){if(1&$){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(_t){return t.CHM(z),t.oxw(2).onAddressTypeChange(_t)}),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&$){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($,Ze){if(1&$&&t._uU(0),2&$){const z=t.oxw(2);t.hij("",z.swapDirectionCaption," Status")}}function Tn($,Ze){if(1&$&&(t.TgZ(0,"mat-icon",49),t._uU(1),t.qZA()),2&$){const z=t.oxw(2);t.xp6(1),t.Oqu(z.swapStatus&&null!=z.swapStatus&&z.swapStatus.id?"check":"close")}}function Vn($,Ze){1&$&&t._UZ(0,"div")}function wr($,Ze){1&$&&t._UZ(0,"mat-progress-bar",50)}function Or($,Ze){if(1&$&&(t.TgZ(0,"h4",51),t._uU(1),t.qZA()),2&$){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 Ar($,Ze){if(1&$){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($,Ze){if(1&$){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(_t){return t.CHM(z),t.oxw().stepSelectionChanged(_t)}),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,Tn,2,1,"mat-icon",33),t.qZA(),t.qZA(),t.qZA(),t.YNc(46,Vn,1,0,"div",34),t.qZA(),t.YNc(47,wr,1,0,"mat-progress-bar",35),t.qZA(),t.YNc(48,Or,2,1,"h4",36),t.TgZ(49,"div",25),t.YNc(50,Ar,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&$){const z=t.oxw(),Oe=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",Oe),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 _r($,Ze){if(1&$&&t._UZ(0,"rtl-boltz-swap-status",53),2&$){const z=t.oxw();t.Q6J("swapStatus",z.swapStatus)("direction",z.direction)}}function Bi($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"rtl-boltz-swapout-info-graphics",70),t.NdJ("stepNumberChange",function(_t){return t.CHM(z),t.oxw(2).stepNumber=_t}),t.qZA()}if(2&$){const z=t.oxw(2);t.Q6J("stepNumber",z.stepNumber)("animationDirection",z.animationDirection)}}function an($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"rtl-boltz-swapin-info-graphics",70),t.NdJ("stepNumberChange",function(_t){return t.CHM(z),t.oxw(2).stepNumber=_t}),t.qZA()}if(2&$){const z=t.oxw(2);t.Q6J("stepNumber",z.stepNumber)("animationDirection",z.animationDirection)}}const fn=function($,Ze){return{"dot-primary":$,"dot-primary-lighter":Ze}};function kn($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"span",71),t.NdJ("click",function(){const pi=t.CHM(z).$implicit;return t.oxw(2).onStepChanged(pi)}),t._UZ(1,"p",72),t.qZA()}if(2&$){const z=Ze.$implicit,Oe=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.WLB(1,fn,Oe.stepNumber===z,Oe.stepNumber!==z))}}function Pn($,Ze){if(1&$){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($,Ze){if(1&$){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($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"button",75),t.NdJ("click",function(){t.CHM(z);const _t=t.oxw(2);return _t.flgShowInfo=!1,_t.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function ca($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"button",76),t.NdJ("click",function(){t.CHM(z);const _t=t.oxw(2);return _t.flgShowInfo=!1,_t.stepNumber=1}),t._uU(1,"Close"),t.qZA()}}function Wn($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"button",77),t.NdJ("click",function(){t.CHM(z);const _t=t.oxw(2);return _t.onStepChanged(_t.stepNumber-1)}),t._uU(1,"Back"),t.qZA()}}function ps($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"button",78),t.NdJ("click",function(){t.CHM(z);const _t=t.oxw(2);return _t.onStepChanged(_t.stepNumber+1)}),t._uU(1,"Next"),t.qZA()}}const La=function(){return[1,2,3,4,5]};function Rs($,Ze){if(1&$){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 _t=t.oxw();return _t.flgShowInfo=!1,_t.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,kn,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&$){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 js=(()=>{class ${constructor(z,Oe,_t,pi,Ln,hr,Un,ur,ka){this.dialogRef=z,this.data=Oe,this.store=_t,this.boltzService=pi,this.formBuilder=Ln,this.decimalPipe=hr,this.logger=Un,this.router=ur,this.commonService=ka,this.faInfoCircle=x.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=j.hc,this.direction=j.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=j.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===j.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===j.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===j.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===j.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===j.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:Oe=>{this.swapStatus=Oe,this.boltzService.listSwaps(),this.flgEditable=!0},error:Oe=>{this.swapStatus={error:Oe},this.flgEditable=!0,this.logger.error(Oe)}})}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===j.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 $.\u0275fac=function(z){return new(z||$)(t.Y36(ze.so),t.Y36(ze.WI),t.Y36(C.yh),t.Y36(Fn),t.Y36(We.qu),t.Y36(te.JJ),t.Y36(Ae.mQ),t.Y36(I.F0),t.Y36(Ci.v))},$.\u0275cmp=t.Xpm({type:$,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(z,Oe){if(1&z&&t.Gf(tt,5),2&z){let _t;t.iGM(_t=t.CRH())&&(Oe.stepper=_t.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,Oe){1&z&&(t.YNc(0,Yn,54,34,"div",0),t.YNc(1,_r,1,2,"ng-template",null,1,t.W1O),t.YNc(3,Rs,20,11,"div",2)),2&z&&(t.Q6J("ngIf",!Oe.flgShowInfo),t.xp6(3),t.Q6J("ngIf",Oe.flgShowInfo))},directives:[te.O5,b.xw,b.yH,b.Wh,F.dk,ue.lW,F.dn,nt.Vq,nt.C0,We._Y,We.JL,We.sg,nt.VY,ma,yt.KE,st.Nt,We.wV,We.Fj,Ve.h,We.JJ,We.u,We.Q7,yt.bx,yt.R9,Gn.ib,Gn.yz,Gn.yK,ze.ZT,yt.TO,nt.Ic,$i.VQ,$i.U0,Lr.Hw,Kn.pW,fs,te.sg,kt,In,te.mk,An.oO],pipes:[te.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[xi._]}}),$})();function Ma($,Ze){1&$&&t._UZ(0,"mat-progress-bar",32)}function vs($,Ze){1&$&&(t.TgZ(0,"th",33),t._uU(1," Status "),t.qZA())}function Il($,Ze){if(1&$&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&$){const z=Ze.$implicit,Oe=t.oxw();t.xp6(1),t.Oqu(Oe.swapStateEnum[z.status])}}function $o($,Ze){1&$&&(t.TgZ(0,"th",33),t._uU(1," Swap ID "),t.qZA())}function Io($,Ze){if(1&$&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(1),t.Oqu(z.id)}}function Cs($,Ze){1&$&&(t.TgZ(0,"th",33),t._uU(1," Claim Address "),t.qZA())}function kl($,Ze){if(1&$&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(1),t.Oqu(z.claimAddress)}}function dc($,Ze){1&$&&(t.TgZ(0,"th",35),t._uU(1," Onchain Amount (Sats) "),t.qZA())}function $c($,Ze){if(1&$&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,z.onchainAmount))}}function e1($,Ze){1&$&&(t.TgZ(0,"th",33),t._uU(1," Lockup Address "),t.qZA())}function ko($,Ze){if(1&$&&(t.TgZ(0,"td",34),t._uU(1),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(1),t.Oqu(z.lockupAddress)}}function Pl($,Ze){1&$&&(t.TgZ(0,"th",35),t._uU(1," Expected Amount (Sats) "),t.qZA())}function el($,Ze){if(1&$&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,z.expectedAmount))}}function _o($,Ze){1&$&&(t.TgZ(0,"th",35),t._uU(1," Timeout Block Height "),t.qZA())}function Rl($,Ze){if(1&$&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,z.timeoutBlockHeight))}}function Nl($,Ze){1&$&&(t.TgZ(0,"th",35),t._uU(1," Amount (Sats) "),t.qZA())}function ao($,Ze){if(1&$&&(t.TgZ(0,"td",34),t.TgZ(1,"span",36),t._uU(2),t.ALo(3,"number"),t.qZA(),t.qZA()),2&$){const z=Ze.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,z.amt))}}function tl($,Ze){if(1&$){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($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"td",41),t.TgZ(1,"button",42),t.NdJ("click",function(_t){const Ln=t.CHM(z).$implicit;return t.oxw().onSwapClick(Ln,_t)}),t._uU(2,"View Info"),t.qZA(),t.qZA()}}function il($,Ze){if(1&$&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&$){const z=t.oxw(2);t.xp6(1),t.Oqu(z.emptyTableMessage)}}function vo($,Ze){if(1&$&&(t.TgZ(0,"td",43),t.YNc(1,il,2,1,"p",44),t.qZA()),2&$){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 t1=function($){return{"display-none":$}};function uc($,Ze){if(1&$&&t._UZ(0,"tr",45),2&$){const z=t.oxw();t.Q6J("ngClass",t.VKq(1,t1,(null==z.listSwaps?null:z.listSwaps.data)&&(null==z.listSwaps||null==z.listSwaps.data?null:z.listSwaps.data.length)>0))}}function Ge($,Ze){1&$&&t._UZ(0,"tr",46)}function De($,Ze){1&$&&t._UZ(0,"tr",47)}const Ce=function($){return{"overflow-auto error-border":$,"overflow-auto":!0}},Je=function(){return["no_swap"]};let ct=(()=>{class ${constructor(z,Oe,_t,pi){this.logger=z,this.commonService=Oe,this.store=_t,this.boltzService=pi,this.selectedSwapType=j.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.swapStateEnum=j.Qw,this.faHistory=x.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.selFilter="",this.flgSticky=!1,this.pageSize=j.IV,this.pageSizeOptions=j.TJ,this.screenSize="",this.screenSizeEnum=j.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===j.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.screenSize===j.cu.XS||this.screenSize===j.cu.SM?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===j.hc.SWAP_IN?["status","id","expectedAmount","actions"]:["status","id","onchainAmount","actions"]):this.screenSize===j.cu.MD?(this.flgSticky=!1,this.displayedColumns=this.selectedSwapType===j.hc.SWAP_IN?["status","id","expectedAmount","timeoutBlockHeight","actions"]:["status","id","onchainAmount","timeoutBlockHeight","actions"]):(this.flgSticky=!0,this.displayedColumns=this.selectedSwapType===j.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,Oe){this.boltzService.swapInfo(z.id).pipe((0,y.R)(this.unSubs[1])).subscribe(_t=>{this.store.dispatch((0,we.qR)({payload:{data:{type:j.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:j.Qw[(_t=this.selectedSwapType===j.hc.SWAP_IN?_t.swap:_t.reverseSwap).status],title:"Status",width:50,type:j.Gi.STRING},{key:"id",value:_t.id,title:"ID",width:50,type:j.Gi.STRING}],[{key:"amount",value:_t.onchainAmount?_t.onchainAmount:_t.expectedAmount?_t.expectedAmount:0,title:_t.onchainAmount?"Onchain Amount (Sats)":_t.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:j.Gi.NUMBER},{key:"timeoutBlockHeight",value:_t.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:j.Gi.NUMBER}],[{key:"address",value:_t.claimAddress?_t.claimAddress:_t.lockupAddress?_t.lockupAddress:"",title:_t.claimAddress?"Claim Address":_t.lockupAddress?"Lockup Address":"Address",width:100,type:j.Gi.STRING}],[{key:"invoice",value:_t.invoice,title:"Invoice",width:100,type:j.Gi.STRING}],[{key:"privateKey",value:_t.privateKey,title:"Private Key",width:100,type:j.Gi.STRING}],[{key:"preimage",value:_t.preimage,title:"Preimage",width:100,type:j.Gi.STRING}],[{key:"redeemScript",value:_t.redeemScript,title:"Redeem Script",width:100,type:j.Gi.STRING}],[{key:"lockupTransactionId",value:_t.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:j.Gi.STRING},{key:"transactionId",value:_t.claimTransactionId?_t.claimTransactionId:_t.refundTransactionId?_t.refundTransactionId:"",title:_t.claimTransactionId?"Claim Transaction ID":_t.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:j.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(z){this.listSwaps=new _n.by(z?[...z]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(Oe,_t)=>Oe[_t]&&isNaN(Oe[_t])?Oe[_t].toLocaleLowerCase():Oe[_t]?+Oe[_t]:null,this.listSwaps.filterPredicate=(Oe,_t)=>JSON.stringify(Oe).toLowerCase().includes(_t),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===j.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return $.\u0275fac=function(z){return new(z||$)(t.Y36(Ae.mQ),t.Y36(Ci.v),t.Y36(C.yh),t.Y36(Fn))},$.\u0275cmp=t.Xpm({type:$,selectors:[["rtl-boltz-swaps"]],viewQuery:function(z,Oe){if(1&z&&(t.Gf(Cr.YE,5),t.Gf(Qr.NW,5)),2&z){let _t;t.iGM(_t=t.CRH())&&(Oe.sort=_t.first),t.iGM(_t=t.CRH())&&(Oe.paginator=_t.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[t._Bn([{provide:Qr.ye,useValue:(0,j.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,Oe){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 Oe.applyFilter()})("ngModelChange",function(pi){return Oe.selFilter=pi}),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,$o,2,0,"th",13),t.YNc(18,Io,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,$c,4,3,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,e1,2,0,"th",13),t.YNc(27,ko,2,1,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,Pl,2,0,"th",18),t.YNc(30,el,4,3,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,_o,2,0,"th",18),t.YNc(33,Rl,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,tl,6,0,"th",24),t.YNc(39,so,3,0,"td",25),t.BQk(),t.ynx(40,26),t.YNc(41,vo,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,De,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",Oe.faHistory),t.xp6(2),t.hij("",Oe.swapCaption," History"),t.xp6(2),t.Q6J("ngModel",Oe.selFilter),t.xp6(3),t.Q6J("ngIf",!0===Oe.flgLoading[0]),t.xp6(1),t.Q6J("dataSource",Oe.listSwaps)("ngClass",t.VKq(13,Ce,"error"===Oe.flgLoading[0])),t.xp6(31),t.Q6J("matFooterRowDef",t.DdM(15,Je)),t.xp6(1),t.Q6J("matHeaderRowDef",Oe.displayedColumns)("matHeaderRowDefSticky",Oe.flgSticky),t.xp6(1),t.Q6J("matRowDefColumns",Oe.displayedColumns),t.xp6(1),t.Q6J("pageSize",Oe.pageSize)("pageSizeOptions",Oe.pageSizeOptions)("showFirstLastButtons",Oe.screenSize!==Oe.screenSizeEnum.XS))},directives:[b.xw,b.yH,b.Wh,J.BN,yt.KE,st.Nt,We.Fj,We.JJ,We.On,le.$V,te.O5,_n.BZ,Cr.YE,te.mk,An.oO,_n.w1,_n.fO,_n.Dz,_n.mD,_n.Ke,_n.as,_n.nj,Qr.NW,Kn.pW,_n.ge,Cr.nU,_n.ev,Ne.gD,Ne.$L,Te.ey,ue.lW,_n.yh,_n.Q2,_n.XQ,_n.Gk],pipes:[te.JJ],styles:[".mat-column-actions[_ngcontent-%COMP%]{min-height:4.8rem}"]}),$})();const Ot=function($){return["../",$]};function qt($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"div",15),t.NdJ("click",function(){const pi=t.CHM(z).$implicit;return t.oxw().onSelectedIndexChange(pi)}),t._uU(1),t.qZA()}if(2&$){const z=Ze.$implicit,Oe=t.oxw();t.Q6J("active",Oe.activeTab.link===z.link)("routerLink",t.VKq(3,Ot,z.link)),t.xp6(1),t.Oqu(z.name)}}let ii=(()=>{class ${constructor(z,Oe,_t){this.router=z,this.store=Oe,this.boltzService=_t,this.swapTypeEnum=j.hc,this.selectedSwapType=j.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(Oe=>this.router.url.includes(Oe.link));this.activeTab=z||this.links[0],this.selectedSwapType=z&&"swapin"===z.link?j.hc.SWAP_IN:j.hc.SWAP_OUT,this.router.events.pipe((0,y.R)(this.unSubs[0]),(0,ne.h)(Oe=>Oe instanceof I.Av)).subscribe(Oe=>{const _t=this.links.find(pi=>Oe.urlAfterRedirects.includes(pi.link));this.activeTab=_t||this.links[0],this.selectedSwapType=_t&&"swapin"===_t.link?j.hc.SWAP_IN:j.hc.SWAP_OUT}),this.boltzService.swapsChanged.pipe((0,y.R)(this.unSubs[1])).subscribe({next:Oe=>{this.swaps=Oe,this.swapsData=this.selectedSwapType===j.hc.SWAP_IN?Oe.swaps:Oe.reverseSwaps,this.flgLoading[0]=!1},error:Oe=>{this.flgLoading[0]="error",this.emptyTableMessage=Oe.message?Oe.message:"No swap "+(this.selectedSwapType===j.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(z){"swapin"===z.link?(this.selectedSwapType=j.hc.SWAP_IN,this.swapsData=this.swaps.swaps):(this.selectedSwapType=j.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps)}onSwap(z){this.boltzService.serviceInfo().pipe((0,y.R)(this.unSubs[2])).subscribe(Oe=>{this.store.dispatch((0,we.qR)({payload:{data:{serviceInfo:Oe,direction:z,component:js}}}))})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return $.\u0275fac=function(z){return new(z||$)(t.Y36(I.F0),t.Y36(C.yh),t.Y36(Fn))},$.\u0275cmp=t.Xpm({type:$,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,Oe){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 Oe.onSwap(Oe.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",Oe.links),t.xp6(3),t.hij("Start ",Oe.activeTab.name,""),t.xp6(1),t.Q6J("selectedSwapType",Oe.selectedSwapType)("swapsData",Oe.swapsData)("flgLoading",Oe.flgLoading)("emptyTableMessage",Oe.emptyTableMessage))},directives:[b.xw,b.Wh,F.a8,F.dn,b.yH,B.BU,te.sg,ue.lW,ct,B.Nj,I.rH],styles:[""]}),$})();class Bn{constructor(Ze){this.help=Ze}}function yo($,Ze){if(1&$&&(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&$){const z=t.oxw().$implicit,Oe=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",Oe.flgLoggedIn?Oe.LNPLink+z.help.link:"/login"),t.xp6(1),t.Oqu(Oe.flgLoggedIn?z.help.linkCaption:"Login to go to the page")}}function ss($,Ze){if(1&$&&(t.TgZ(0,"div",6),t.YNc(1,yo,8,4,"mat-expansion-panel",7),t.qZA()),2&$){const z=Ze.$implicit,Oe=t.oxw();t.xp6(1),t.Q6J("ngIf","ALL"===z.help.lnImplementation||z.help.lnImplementation===Oe.selNode.lnImplementation)}}let qa=(()=>{class ${constructor(z,Oe){this.store=z,this.sessionService=Oe,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 Bn({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 Bn({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 Bn({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 Bn({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 Bn({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 Bn({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 Bn({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 Bn({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 Bn({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 Bn({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 Bn({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 Bn({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 $.\u0275fac=function(z){return new(z||$)(t.Y36(C.yh),t.Y36(Re.m))},$.\u0275cmp=t.Xpm({type:$,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,Oe){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,ss,2,1,"div",5),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(2),t.Q6J("icon",Oe.faQuestion),t.xp6(5),t.Q6J("ngForOf",Oe.helpTopics))},directives:[b.xw,b.yH,b.Wh,J.BN,te.sg,te.O5,Gn.ib,Gn.yz,Gn.yK,Gn.u4,I.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),$})();var Ns=m(9841);function Ba($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Token is required."),t.qZA())}let ys=(()=>{class ${constructor(z,Oe){this.dialogRef=z,this.store=Oe,this.faUserClock=x.hnx,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,we.M6)({payload:{twoFAToken:this.token}}))}}return $.\u0275fac=function(z){return new(z||$)(t.Y36(ze.so),t.Y36(C.yh))},$.\u0275cmp=t.Xpm({type:$,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,Oe){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 Oe.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 Oe.onVerifyToken()}),t.TgZ(11,"mat-form-field"),t.TgZ(12,"input",9),t.NdJ("ngModelChange",function(pi){return Oe.token=pi}),t.qZA(),t.YNc(13,Ba,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",Oe.token),t.xp6(1),t.Q6J("ngIf",!Oe.token))},directives:[b.xw,b.Wh,b.yH,F.dk,ue.lW,F.dn,We._Y,We.JL,We.F,yt.KE,st.Nt,We.Fj,Ve.h,We.Q7,We.JJ,We.On,te.O5,yt.TO],styles:[""]}),$})();function os($,Ze){1&$&&(t.TgZ(0,"mat-error"),t._uU(1,"Password is required."),t.qZA())}function Fs($,Ze){if(1&$&&(t.TgZ(0,"p",20),t.TgZ(1,"mat-icon",21),t._uU(2,"close"),t.qZA(),t._uU(3),t.qZA()),2&$){const z=t.oxw();t.xp6(3),t.hij(" ",z.loginErrorMessage," ")}}const n1=function($){return{"padding-gap-large":$}},r1=function($,Ze){return{"font-size-200":$,"font-size-300":Ze}};let Po=(()=>{class ${constructor(z,Oe,_t,pi){this.logger=z,this.store=Oe,this.rtlEffects=_t,this.commonService=pi,this.faUnlockAlt=x.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=j.cu,this.loginErrorMessage="",this.apiCallStatusEnum=j.Bn,this.unSubs=[new o.x,new o.x,new o.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,Ns.a)([this.store.select(r.ul),this.store.select(r.Sr)]).pipe((0,y.R)(this.unSubs[0])).subscribe(([z,Oe])=>{this.loginErrorMessage="",z.status===j.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof z.message?JSON.stringify(z.message):z.message),this.logger.error(z.message)),Oe.status===j.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof Oe.message?JSON.stringify(Oe.message):Oe.message),this.logger.error(Oe.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,we.qR)({payload:{maxWidth:"35rem",data:{component:ys}}})),this.rtlEffects.closeAlert.pipe((0,Me.q)(1)).subscribe(z=>{z&&this.store.dispatch((0,we.x4)({payload:{password:he(this.password),defaultPassword:j.kO.includes(this.password.toLowerCase()),twoFAToken:z.twoFAToken}}))})):this.store.dispatch((0,we.x4)({payload:{password:he(this.password),defaultPassword:j.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return $.\u0275fac=function(z){return new(z||$)(t.Y36(Ae.mQ),t.Y36(C.yh),t.Y36(it.V),t.Y36(Ci.v))},$.\u0275cmp=t.Xpm({type:$,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,Oe){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(pi){return Oe.password=pi}),t.qZA(),t.TgZ(16,"mat-icon",14),t.NdJ("click",function(){return Oe.flgShow=!Oe.flgShow}),t._uU(17),t.qZA(),t.YNc(18,os,2,0,"mat-error",15),t.qZA(),t.YNc(19,Fs,4,1,"p",16),t.TgZ(20,"div",17),t.TgZ(21,"button",18),t.NdJ("click",function(){return Oe.resetData()}),t._uU(22,"Clear"),t.qZA(),t.TgZ(23,"button",19),t.NdJ("click",function(){return Oe.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,n1,Oe.screenSize===Oe.screenSizeEnum.XS)),t.xp6(2),t.Q6J("ngClass",t.WLB(9,r1,Oe.screenSize===Oe.screenSizeEnum.XS,Oe.screenSize!==Oe.screenSizeEnum.XS)),t.xp6(7),t.Q6J("type",Oe.flgShow?"text":"password")("ngModel",Oe.password),t.xp6(2),t.Oqu(Oe.flgShow?"visibility_off":"visibility"),t.xp6(1),t.Q6J("ngIf",!Oe.password),t.xp6(1),t.Q6J("ngIf",""!==Oe.loginErrorMessage))},directives:[b.xw,b.yH,b.Wh,F.a8,te.mk,An.oO,F.dk,F.n5,F.dn,We._Y,We.JL,We.F,yt.KE,st.Nt,We.Fj,Ve.h,We.Q7,We.JJ,We.On,Lr.Hw,yt.R9,te.O5,ue.lW,yt.TO],styles:[".login-container[_ngcontent-%COMP%]{height:90vh}.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}"]}),$})();var Ro=m(9442);let No=(()=>{class ${constructor(z,Oe){this.activatedRoute=z,this.router=Oe,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 $.\u0275fac=function(z){return new(z||$)(t.Y36(I.gz),t.Y36(I.F0))},$.\u0275cmp=t.Xpm({type:$,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,Oe){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 Oe.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",Oe.faTimes),t.xp6(2),t.hij("Error ",Oe.error.errorCode,""),t.xp6(3),t.Oqu(Oe.error.errorMessage))},directives:[b.xw,b.yH,b.Wh,F.a8,F.dk,F.n5,J.BN,F.dn,ue.lW],encapsulation:2}),$})();var Oa=m(1643);function fc($,Ze){1&$&&t._UZ(0,"span",16)}function Fo($,Ze){1&$&&t._UZ(0,"span",17)}function a1($,Ze){if(1&$){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(_t){return t.CHM(z),t.oxw(2).enableOffers=_t})("change",function(){return t.CHM(z),t.oxw(2).onUpdateFeature()}),t._uU(28),t.qZA(),t.qZA()}if(2&$){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 f0($,Ze){if(1&$&&(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,Fo,1,0,"span",13),t._uU(8),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"div",14),t.YNc(10,a1,29,5,"form",15),t.qZA(),t.qZA()),2&$){const z=Ze.$implicit,Oe=Ze.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===Oe)}}const p0=I.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([m.e(893),m.e(859)]).then(m.bind(m,1859)).then($=>$.LNDModule),canActivate:[Oa.a1]},{path:"cl",loadChildren:()=>Promise.all([m.e(893),m.e(632)]).then(m.bind(m,7632)).then($=>$.CLModule),canActivate:[Oa.a1]},{path:"ecl",loadChildren:()=>Promise.all([m.e(893),m.e(637)]).then(m.bind(m,8637)).then($=>$.ECLModule),canActivate:[Oa.a1]},{path:"settings",component:q,canActivate:[Oa.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:X,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 ${constructor(z,Oe){this.logger=z,this.store=Oe,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,we.jS)({payload:{uiMessage:j.m6.UPDATE_SETTING,service:j.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 $.\u0275fac=function(z){return new(z||$)(t.Y36(Ae.mQ),t.Y36(C.yh))},$.\u0275cmp=t.Xpm({type:$,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,Oe){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,f0,11,6,"mat-expansion-panel",8),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(2),t.Q6J("icon",Oe.faInfoCircle),t.xp6(6),t.Q6J("icon",Oe.faCode),t.xp6(4),t.Q6J("ngForOf",Oe.features))},directives:[b.xw,b.yH,le.$V,J.BN,We._Y,We.JL,We.F,b.Wh,Gn.pp,te.sg,Gn.ib,Gn.yz,Gn.yK,te.O5,Be.d,Wi.Rr,Ve.h,We.JJ,We.On],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),$})(),canActivate:[Oa.a1]},{path:"lnconfig",component:Qt,canActivate:[Oa.a1]}]},{path:"services",component:Pa,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:qa},{path:"login",component:Po},{path:"error",component:No},{path:"**",component:Ro.w}]);var s1=m(8750),nl=m(8878),rl=m(4594),Fl=m(2181);function Ka($,Ze){if(1&$&&(t.TgZ(0,"p",2),t._UZ(1,"fa-icon",3),t.TgZ(2,"span"),t._uU(3),t.qZA(),t.qZA()),2&$){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($,Ze){if(1&$&&(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&$){const z=t.oxw();t.xp6(1),t.Q6J("icon",z.faUserCog)}}function m0($,Ze){if(1&$&&(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&$){const z=t.oxw();t.xp6(1),t.Q6J("icon",z.faLifeRing)}}function sa($,Ze){if(1&$){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&$){const z=t.oxw();t.xp6(1),t.Q6J("icon",z.faEject)}}let Bo=(()=>{class ${constructor(z,Oe,_t,pi,Ln){this.logger=z,this.sessionService=Oe,this.store=_t,this.rtlEffects=pi,this.actions=Ln,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 Oe=this.information.chains[0];this.informationChain.chain=Oe.chain,this.informationChain.network=Oe.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,ne.h)(z=>z.type===j.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,we.c1)({payload:{data:{type:j.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,we.kS)()))})}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return $.\u0275fac=function(z){return new(z||$)(t.Y36(Ae.mQ),t.Y36(Re.m),t.Y36(C.yh),t.Y36(it.V),t.Y36(c.eX))},$.\u0275cmp=t.Xpm({type:$,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,Oe){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,Ka,4,2,"p",4),t.YNc(7,aa,4,1,"a",5),t.YNc(8,m0,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 _t=t.MAs(1);t.Q6J("overlapTrigger",!1),t.xp6(3),t.Q6J("icon",Oe.faCodeBranch),t.xp6(2),t.hij("Version: ",Oe.version,""),t.xp6(1),t.Q6J("ngIf",null==Oe.information?null:Oe.information.api_version),t.xp6(1),t.Q6J("ngIf",Oe.showLogout),t.xp6(1),t.Q6J("ngIf",Oe.showLogout),t.xp6(1),t.Q6J("ngIf",Oe.showLogout),t.xp6(1),t.Q6J("matMenuTriggerFor",_t)}},directives:[Fl.VK,Fl.OP,J.BN,te.O5,ue.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}),$})();var Bs=m(2638),o1=m(8258),wa=m(149);const oo={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/lnd/home",userPersona:j.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/lnd/onchain",userPersona:j.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/lnd/connections",userPersona:j.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/lnd/connections",userPersona:j.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/lnd/transactions",userPersona:j.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/lnd/routing",userPersona:j.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/lnd/reports",userPersona:j.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/lnd/graph",userPersona:j.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:x.hkK,link:"/lnd/messages",userPersona:j.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:x.q7m,link:"/lnd/channelbackup",userPersona:j.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:x.o4t,link:"/lnd/network",userPersona:j.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:x.xf3,link:"/lnd/network",userPersona:j.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:x.Krp,link:"/services/loop",userPersona:j.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:x.vqe,link:"/services/loop",userPersona:j.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:j.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:j.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:j.ol.ALL}],CLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/cl/home",userPersona:j.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/cl/onchain",userPersona:j.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/cl/connections",userPersona:j.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/cl/connections",userPersona:j.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/cl/transactions",userPersona:j.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/cl/routing",userPersona:j.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/cl/reports",userPersona:j.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/cl/graph",userPersona:j.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:x.hkK,link:"/cl/messages",userPersona:j.ol.ALL},{id:37,parentId:3,name:"Fee Rates",iconType:"FA",icon:x.USL,link:"/cl/rates",userPersona:j.ol.OPERATOR},{id:38,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:x.xf3,link:"/cl/rates",userPersona:j.ol.MERCHANT}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:j.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:j.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:x.HLz,link:"/ecl/home",userPersona:j.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:x.nNP,link:"/ecl/onchain",userPersona:j.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:x.BDt,link:"/ecl/connections",userPersona:j.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:x.FVb,link:"/ecl/connections",userPersona:j.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:x.Ssp,link:"/ecl/transactions",userPersona:j.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:x.SuH,link:"/ecl/routing",userPersona:j.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:x.koM,link:"/ecl/reports",userPersona:j.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:x.wn1,link:"/ecl/graph",userPersona:j.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:x.CgH,link:"/config",userPersona:j.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:x.Psp,link:"/help",userPersona:j.ol.ALL}]};var al=m(7238);function qs($,Ze){if(1&$&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&$){const z=Ze.$implicit;t.Q6J("value",z.index),t.xp6(1),t.AsE(" ",z.lnNode," (",z.lnImplementation,") ")}}function l1($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"mat-select",9),t.NdJ("selectionChange",function(_t){return t.CHM(z),t.oxw().onNodeSelectionChange(_t.value)}),t.YNc(1,qs,2,3,"mat-option",10),t.qZA()}if(2&$){const z=t.oxw();t.Q6J("value",z.selConfigNodeIndex),t.xp6(1),t.Q6J("ngForOf",z.appConfig.nodes)}}function g0($,Ze){if(1&$&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&$){const z=t.oxw().$implicit;t.oxw(2);const Oe=t.MAs(11);t.xp6(1),t.Q6J("ngTemplateOutlet","boltzIconBlock"===z.icon?Oe:null)}}function _0($,Ze){if(1&$&&t._UZ(0,"fa-icon",23),2&$){const z=t.oxw().$implicit;t.Q6J("icon",z.icon)}}function c1($,Ze){if(1&$&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&$){const z=t.oxw().$implicit;t.xp6(1),t.Oqu(z.icon)}}function dh($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"mat-tree-node",15),t.TgZ(1,"div",16),t.NdJ("click",function(){const pi=t.CHM(z).$implicit;return t.oxw(2).onChildNavClicked(pi)}),t.TgZ(2,"div",17),t.YNc(3,g0,2,1,"span",18),t.YNc(4,_0,1,1,"fa-icon",19),t.YNc(5,c1,2,1,"mat-icon",20),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&$){const z=Ze.$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 v0($,Ze){if(1&$&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&$){const z=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",z.icon)}}function ms($,Ze){if(1&$&&t._UZ(0,"fa-icon",23),2&$){const z=t.oxw().$implicit;t.Q6J("icon",z.icon)}}function h1($,Ze){if(1&$&&(t.TgZ(0,"mat-icon",24),t._uU(1),t.qZA()),2&$){const z=t.oxw().$implicit;t.xp6(1),t.Oqu(z.icon)}}function sl($,Ze){if(1&$&&(t.TgZ(0,"mat-nested-tree-node",25),t.TgZ(1,"div",26),t.TgZ(2,"div",27),t.YNc(3,v0,2,1,"span",28),t.YNc(4,ms,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.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&$){const z=Ze.$implicit,Oe=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(Oe.treeControlNested.isExpanded(z)?"arrow_drop_up":"arrow_drop_down"),t.xp6(1),t.ekj("tree-children-invisible",!Oe.treeControlNested.isExpanded(z))}}function d1($,Ze){if(1&$&&(t.TgZ(0,"mat-tree",5,12),t.YNc(2,dh,8,5,"mat-tree-node",13),t.YNc(3,sl,13,8,"mat-nested-tree-node",14),t.qZA()),2&$){const z=t.oxw();t.Q6J("dataSource",z.navMenus)("treeControl",z.treeControlNested),t.xp6(3),t.Q6J("matTreeNodeDefWhen",z.hasChild)}}function ol($,Ze){if(1&$&&(t.TgZ(0,"span",21),t.GkF(1,22),t.qZA()),2&$){const z=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",z.icon)}}function mc($,Ze){if(1&$&&t._UZ(0,"fa-icon",36),2&$){const z=t.oxw().$implicit;t.s9C("matTooltip",z.name),t.Q6J("icon",z.icon)}}function y0($,Ze){if(1&$&&(t.TgZ(0,"mat-icon",37),t._uU(1),t.qZA()),2&$){const z=t.oxw().$implicit;t.s9C("matTooltip",z.name),t.xp6(1),t.Oqu(z.icon)}}function gc($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const pi=t.CHM(z).$implicit;return t.oxw().onShowData(pi)}),t.YNc(1,ol,2,1,"span",18),t.YNc(2,mc,1,2,"fa-icon",34),t.YNc(3,y0,2,2,"mat-icon",35),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.qZA()}if(2&$){const z=Ze.$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($,Ze){if(1&$&&(t.TgZ(0,"span",33),t.GkF(1,22),t.qZA()),2&$){const z=t.oxw().$implicit;t.xp6(1),t.Q6J("ngTemplateOutlet",z.icon)}}function vc($,Ze){if(1&$&&t._UZ(0,"fa-icon",36),2&$){const z=t.oxw().$implicit;t.s9C("matTooltip",z.name),t.Q6J("icon",z.icon)}}function u1($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"mat-tree-node",16),t.NdJ("click",function(){const pi=t.CHM(z).$implicit;return t.oxw(2).onClick(pi)}),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&$){const z=Ze.$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($,Ze){if(1&$&&(t.TgZ(0,"mat-tree",5),t.YNc(1,u1,5,3,"mat-tree-node",6),t.qZA()),2&$){const z=t.oxw();t.Q6J("dataSource",z.navMenusLogout)("treeControl",z.treeControlLogout)}}function Ho($,Ze){1&$&&(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 ${constructor(z,Oe,_t,pi,Ln,hr){this.logger=z,this.commonService=Oe,this.sessionService=_t,this.store=pi,this.actions=Ln,this.rtlEffects=hr,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=j.ol,this.unSubs=[new o.x,new o.x,new o.x,new o.x,new o.x,new o.x],this.treeControlNested=new o1.VY(Un=>Un.children),this.treeControlLogout=new o1.VY(Un=>Un.children),this.treeControlShowData=new o1.VY(Un=>Un.children),this.navMenus=new wa.WX,this.navMenusLogout=new wa.WX,this.navMenusShowData=new wa.WX,this.hasChild=(Un,ur)=>!!ur.children&&ur.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(Oe=>{this.appConfig=Oe}),this.store.select(r.gW).pipe((0,y.R)(this.unSubs[1])).subscribe(Oe=>{if(this.information=Oe.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 _t=this.information.chains[0];this.informationChain.chain=_t.chain,this.informationChain.network=_t.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=Oe.selNode,this.settings=this.selNode.settings,this.selConfigNodeIndex=+Oe.selNode.index,this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(Oe)}),this.sessionService.watchSession().pipe((0,y.R)(this.unSubs[2])).subscribe(Oe=>{this.showLogout=!!Oe.token,this.flgLoading=!!Oe.token}),this.actions.pipe((0,y.R)(this.unSubs[3]),(0,ne.h)(Oe=>Oe.type===j.pg.LOGOUT)).subscribe(Oe=>{this.showLogout=!1})}onClick(z){"Logout"===z.name&&(this.store.dispatch((0,we.c1)({payload:{data:{type:j.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,y.R)(this.unSubs[4])).subscribe(Oe=>{Oe&&(this.showLogout=!1,this.store.dispatch((0,we.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(Oe=>Oe.children&&Oe.children.length?(Oe.children=Oe.children.filter(_t=>(_t.userPersona===j.ol.ALL||_t.userPersona===this.settings.userPersona)&&"/services/loop"!==_t.link&&"/services/boltz"!==_t.link||"/services/loop"===_t.link&&this.settings.swapServerUrl&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===_t.link&&this.settings.boltzServerUrl&&""!==this.settings.boltzServerUrl.trim()),Oe.children.length>0):Oe.userPersona===j.ol.ALL||Oe.userPersona===this.settings.userPersona)}loadCLTMenu(){let z=[];z=JSON.parse(JSON.stringify(oo.CLChildren)),this.navMenus.data=z.filter(Oe=>(Oe.children&&Oe.children.length&&(Oe.children=Oe.children.filter(_t=>(_t.userPersona===j.ol.ALL||_t.userPersona===this.settings.userPersona)&&"/cl/messages"!==_t.link||"/cl/messages"===_t.link&&this.information.api_version&&this.commonService.isVersionCompatible(this.information.api_version,"0.2.2"))),Oe.userPersona===j.ol.ALL||Oe.userPersona===this.settings.userPersona))}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(oo.ECLChildren))}onShowData(z){this.store.dispatch((0,we.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(z){const Oe=this.selConfigNodeIndex;this.selConfigNodeIndex=z;const _t=this.appConfig.nodes.find(pi=>+pi.index===z);this.store.dispatch((0,we.fk)({payload:{uiMessage:j.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+Oe,currentLnNode:_t,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(z=>{z.next(null),z.complete()})}}return $.\u0275fac=function(z){return new(z||$)(t.Y36(Ae.mQ),t.Y36(Ci.v),t.Y36(Re.m),t.Y36(C.yh),t.Y36(c.eX),t.Y36(it.V))},$.\u0275cmp=t.Xpm({type:$,selectors:[["rtl-side-navigation"]],viewQuery:function(z,Oe){if(1&z&&t.Gf(wa.gi,5),2&z){let _t;t.iGM(_t=t.CRH())&&(Oe.tree=_t.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,Oe){1&z&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,l1,2,2,"mat-select",2),t._UZ(3,"mat-divider",3),t.YNc(4,d1,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,Ho,6,0,"ng-template",null,8,t.W1O)),2&z&&(t.xp6(2),t.Q6J("ngIf",Oe.appConfig.nodes.length>1),t.xp6(2),t.Q6J("ngIf",null==Oe.settings?null:Oe.settings.lnServerUrl),t.xp6(2),t.Q6J("dataSource",Oe.navMenusShowData)("treeControl",Oe.treeControlShowData),t.xp6(3),t.Q6J("ngIf",Oe.showLogout))},directives:[b.xw,b.yH,b.Wh,le.$V,te.O5,Be.d,wa.gi,wa.fQ,Ne.gD,te.sg,Te.ey,wa.uo,wa.eu,I.Od,I.rH,te.tP,J.BN,Lr.Hw,wa.GZ,ue.lW,wa.Ar,al.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),$})();var Ha=m(773);const Ms=["sideNavigation"],zs=["sideNavContent"];function yc($,Ze){if(1&$){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&$){const z=t.oxw();t.Q6J("matTooltip",z.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",z.smallScreen)}}function f1($,Ze){1&$&&(t.O4$(),t._UZ(0,"path",18))}function bc($,Ze){1&$&&(t.O4$(),t._UZ(0,"path",19))}function Hl($,Ze){if(1&$){const z=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(z);const _t=t.oxw();return _t.flgSidenavPinned=!_t.flgSidenavPinned}),t.O4$(),t.TgZ(1,"svg",15),t.YNc(2,f1,1,0,"path",16),t.YNc(3,bc,1,0,"path",17),t.qZA(),t.qZA()}if(2&$){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($,Ze){if(1&$&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&$){const z=t.oxw();t.xp6(1),t.Oqu(z.information.alias?"RTL - "+z.information.alias:"RTL")}}function $r($,Ze){if(1&$&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&$){const z=t.oxw();t.xp6(1),t.Oqu(z.information.alias?"Ride The Lightning - "+z.information.alias:"Ride The Lightning")}}function ll($,Ze){1&$&&(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 b0=function($,Ze){return[$,Ze]};let Ia=(()=>{class ${constructor(z,Oe,_t,pi,Ln,hr,Un,ur,ka){this.logger=z,this.commonService=Oe,this.store=_t,this.actions=pi,this.userIdle=Ln,this.router=hr,this.sessionService=Un,this.breakpointObserver=ur,this.renderer=ka,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(j.cu.XS),this.smallScreen=!0):z.breakpoints[s.u3.TabletPortrait]?(this.commonService.setScreenSize(j.cu.SM),this.smallScreen=!0):z.breakpoints[s.u3.Small]||z.breakpoints[s.u3.Medium]?(this.commonService.setScreenSize(j.cu.MD),this.smallScreen=!1):z.breakpoints[s.u3.Large]?(this.commonService.setScreenSize(j.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(j.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,we.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,ne.h)(z=>z.type===j.pg.SET_RTL_CONFIG||z.type===j.pg.LOGOUT)).subscribe(z=>{z.type===j.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,we.x4)({payload:{password:he(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),z.type===j.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,we.ts)()),this.store.dispatch((0,we.qR)({payload:{data:{type:j.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,we.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.flgLoggedIn&&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 $.\u0275fac=function(z){return new(z||$)(t.Y36(Ae.mQ),t.Y36(Ci.v),t.Y36(C.yh),t.Y36(c.eX),t.Y36(_),t.Y36(I.F0),t.Y36(Re.m),t.Y36(s.Yg),t.Y36(t.Qsj))},$.\u0275cmp=t.Xpm({type:$,selectors:[["rtl-app"]],viewQuery:function(z,Oe){if(1&z&&(t.Gf(Ms,5),t.Gf(zs,5)),2&z){let _t;t.iGM(_t=t.CRH())&&(Oe.sideNavigation=_t.first),t.iGM(_t=t.CRH())&&(Oe.sideNavContent=_t.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,Oe){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(pi){return Oe.onNavigationClicked(pi)}),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,ll,4,0,"div",12),t.qZA()),2&z&&(t.Q6J("ngClass",t.WLB(12,b0,t.lcZ(1,8,Oe.settings.themeColor),t.lcZ(2,10,Oe.settings.themeMode))),t.xp6(5),t.Q6J("ngIf",Oe.flgLoggedIn),t.xp6(1),t.Q6J("ngIf",!Oe.smallScreen&&Oe.flgLoggedIn),t.xp6(2),t.Q6J("ngIf",Oe.smallScreen),t.xp6(1),t.Q6J("ngIf",!Oe.smallScreen),t.xp6(4),t.Q6J("opened",Oe.flgSideNavOpened&&Oe.flgLoggedIn)("mode",Oe.flgSidenavPinned&&!Oe.smallScreen?"side":"over"),t.xp6(9),t.Q6J("ngIf",!Oe.settings.themeColor))},directives:[b.xw,te.mk,An.oO,rl.Ye,b.Wh,te.O5,Bo,Bs.TM,Bs.JX,le.$V,lo,b.yH,Bs.Rh,I.lC,ue.lW,al.gM,Lr.Hw,Ha.$g],pipes:[te.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[nl.g]}}),$})(),Cc=(()=>{class ${constructor(z){this.sessionService=z}intercept(z,Oe){if(this.sessionService.getItem("token")){const _t=z.clone({headers:z.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return Oe.handle(_t)}return Oe.handle(z)}}return $.\u0275fac=function(z){return new(z||$)(t.LFG(Re.m))},$.\u0275prov=t.Yz7({token:$,factory:$.\u0275fac}),$})();var cl=m(8104),p1=m(7998),zo=m(711),m1=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},bo={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},xo={apiURL:"",apisCallStatus:{Login:{status:j.Bn.UN_INITIATED},IsAuthorized:{status:j.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Mc,authentication:bo,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:Mc,authentication:bo}]},nodeData:{}},zl=(0,C.Lq)(xo,(0,C.on)(we.qi,($,{payload:Ze})=>{const z=JSON.parse(JSON.stringify($.apisCallStatus));return z[Ze.action]={status:Ze.status,statusCode:Ze.statusCode,message:Ze.message,URL:Ze.URL,filePath:Ze.filePath},Object.assign(Object.assign({},$),{apisCallStatus:z})}),(0,C.on)(we.vI,($,{payload:Ze})=>Object.assign(Object.assign({},xo),{apisCallStatus:$.apisCallStatus,appConfig:$.appConfig,selNode:Ze})),(0,C.on)(we.fk,($,{payload:Ze})=>Object.assign(Object.assign({},$),{selNode:Ze.currentLnNode})),(0,C.on)(we.Tm,($,{payload:Ze})=>{const z=JSON.parse(JSON.stringify($.selNode));switch(Ze.service){case j.JX.BOLTZ:z.settings.boltzServerUrl=Ze.settings.boltzServerUrl;break;case j.JX.LOOP:z.settings.swapServerUrl=Ze.settings.swapServerUrl;break;case j.JX.OFFERS:z.settings.enableOffers=Ze.settings.enableOffers}return Object.assign(Object.assign({},$),{selNode:z})}),(0,C.on)(we._V,($,{payload:Ze})=>Object.assign(Object.assign({},$),{nodeData:Ze})),(0,C.on)(we.XT,($,{payload:Ze})=>Object.assign(Object.assign({},$),{appConfig:Ze}))),Us={apisCallStatus:{FetchInfo:{status:j.Bn.UN_INITIATED},FetchFees:{status:j.Bn.UN_INITIATED},FetchPeers:{status:j.Bn.UN_INITIATED},FetchClosedChannels:{status:j.Bn.UN_INITIATED},FetchPendingChannels:{status:j.Bn.UN_INITIATED},FetchAllChannels:{status:j.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:j.Bn.UN_INITIATED},FetchInvoices:{status:j.Bn.UN_INITIATED},FetchPayments:{status:j.Bn.UN_INITIATED},FetchForwardingHistory:{status:j.Bn.UN_INITIATED},FetchUTXOs:{status:j.Bn.UN_INITIATED},FetchTransactions:{status:j.Bn.UN_INITIATED},FetchLightningTransactions:{status:j.Bn.UN_INITIATED},FetchNetwork:{status:j.Bn.UN_INITIATED}},nodeSettings:{userPersona:j.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 x0=!1,Ks=!1;const Uo=(0,C.Lq)(Us,(0,C.on)(ui.PC,($,{payload:Ze})=>{const z=JSON.parse(JSON.stringify($.apisCallStatus));return z[Ze.action]={status:Ze.status,statusCode:Ze.statusCode,message:Ze.message,URL:Ze.URL,filePath:Ze.filePath},Object.assign(Object.assign({},$),{apisCallStatus:z})}),(0,C.on)(ui.JT,($,{payload:Ze})=>Object.assign(Object.assign({},$),{nodeSettings:Ze})),(0,C.on)(ui.Ll,($,{payload:Ze})=>Object.assign(Object.assign({},Us),{nodeSettings:Ze})),(0,C.on)(ui.CX,($,{payload:Ze})=>Object.assign(Object.assign({},$),{information:Ze})),(0,C.on)(ui.Z8,($,{payload:Ze})=>Object.assign(Object.assign({},$),{peers:Ze})),(0,C.on)(ui.EK,($,{payload:Ze})=>{const z=[...$.peers],Oe=$.peers.findIndex(_t=>_t.pub_key===Ze.pubkey);return Oe>-1&&z.splice(Oe,1),Object.assign(Object.assign({},$),{peers:z})}),(0,C.on)(ui.YP,($,{payload:Ze})=>{const z=$.listInvoices;return z.invoices.unshift(Ze),Object.assign(Object.assign({},$),{listInvoices:z})}),(0,C.on)(ui.aL,($,{payload:Ze})=>{const z=$.listInvoices;return z.invoices=z.invoices.map(Oe=>Oe.payment_request===Ze.payment_request?Ze:Oe),Object.assign(Object.assign({},$),{listInvoices:z})}),(0,C.on)(ui.RX,($,{payload:Ze})=>Object.assign(Object.assign({},$),{fees:Ze})),(0,C.on)(ui._L,($,{payload:Ze})=>Object.assign(Object.assign({},$),{closedChannels:Ze})),(0,C.on)(ui.TW,($,{payload:Ze})=>Object.assign(Object.assign({},$),{pendingChannels:Ze.pendingChannels,pendingChannelsSummary:Ze.pendingChannelsSummary})),(0,C.on)(ui.as,($,{payload:Ze})=>{let z=0,Oe=0,_t=0,pi=0,Ln=0,hr=0;return Ze&&Ze.forEach(Un=>{Un.local_balance||(Un.local_balance=0),!0===Un.active?(Ln+=+Un.local_balance,_t+=1,Un.local_balance?z=+z+ +Un.local_balance:Un.local_balance=0,Un.remote_balance?Oe=+Oe+ +Un.remote_balance:Un.remote_balance=0):(hr+=+Un.local_balance,pi+=1)}),Object.assign(Object.assign({},$),{channels:Ze,channelsSummary:{active:{num_channels:_t,capacity:Ln},inactive:{num_channels:pi,capacity:hr}},lightningBalance:{local:z,remote:Oe}})}),(0,C.on)(ui.OG,($,{payload:Ze})=>{const z=[...$.channels],Oe=$.channels.findIndex(_t=>_t.channel_point===Ze.channelPoint);return Oe>-1&&z.splice(Oe,1),Object.assign(Object.assign({},$),{channels:z})}),(0,C.on)(ui.Jl,($,{payload:Ze})=>Object.assign(Object.assign({},$),{blockchainBalance:Ze})),(0,C.on)(ui.ks,($,{payload:Ze})=>Object.assign(Object.assign({},$),{networkInfo:Ze})),(0,C.on)(ui.Nr,($,{payload:Ze})=>(Ze.total_invoices||(Ze.total_invoices=$.listInvoices.total_invoices),Object.assign(Object.assign({},$),{listInvoices:Ze}))),(0,C.on)(ui.Lf,($,{payload:Ze})=>{if(x0=!0,Ze.length&&Ks){const z=[...$.utxos];return z.forEach(Oe=>{const _t=Ze.find(pi=>pi.tx_hash===Oe.outpoint.txid_str);Oe.label=_t&&_t.label?_t.label:""}),Object.assign(Object.assign({},$),{utxos:z,transactions:Ze})}return Object.assign(Object.assign({},$),{transactions:Ze})}),(0,C.on)(ui.UH,($,{payload:Ze})=>{if(Ks=!0,Ze.length&&x0){const z=[...$.transactions];Ze.forEach(Oe=>{const _t=z.find(pi=>pi.tx_hash===Oe.outpoint.txid_str);Oe.label=_t&&_t.label?_t.label:""})}return Object.assign(Object.assign({},$),{utxos:Ze})}),(0,C.on)(ui.HI,($,{payload:Ze})=>Object.assign(Object.assign({},$),{listPayments:Ze})),(0,C.on)(ui.Fr,($,{payload:Ze})=>Object.assign(Object.assign({},$),{allLightningTransactions:Ze})),(0,C.on)(ui.QJ,($,{payload:Ze})=>{const z=Ze.forwarding_events?JSON.parse(JSON.stringify(Ze)):{};if(z.forwarding_events){const Oe=[...$.channels,...$.closedChannels];z.forwarding_events.forEach(_t=>{if(Oe&&Oe.length>0)for(let pi=0;pi<Oe.length;pi++){if(Oe[pi].chan_id.toString()===_t.chan_id_in&&(_t.alias_in=Oe[pi].remote_alias?Oe[pi].remote_alias:_t.chan_id_in,_t.alias_out)||Oe[pi].chan_id.toString()===_t.chan_id_out&&(_t.alias_out=Oe[pi].remote_alias?Oe[pi].remote_alias:_t.chan_id_out,_t.alias_in))return;pi===Oe.length-1&&(_t.alias_in||(_t.alias_in=_t.chan_id_in),_t.alias_out||(_t.alias_out=_t.chan_id_out))}else _t.alias_in=_t.chan_id_in,_t.alias_out=_t.chan_id_out})}return Object.assign(Object.assign({},$),{forwardingHistory:z})})),co={apisCallStatus:{FetchInfo:{status:j.Bn.UN_INITIATED},FetchInvoices:{status:j.Bn.UN_INITIATED},FetchFees:{status:j.Bn.UN_INITIATED},FetchChannels:{status:j.Bn.UN_INITIATED},FetchBalance:{status:j.Bn.UN_INITIATED},FetchLocalRemoteBalance:{status:j.Bn.UN_INITIATED},FetchFeeRatesperkb:{status:j.Bn.UN_INITIATED},FetchFeeRatesperkw:{status:j.Bn.UN_INITIATED},FetchPeers:{status:j.Bn.UN_INITIATED},FetchUTXOs:{status:j.Bn.UN_INITIATED},FetchPayments:{status:j.Bn.UN_INITIATED},FetchForwardingHistory:{status:j.Bn.UN_INITIATED},FetchFailedForwardingHistory:{status:j.Bn.UN_INITIATED},FetchOffers:{status:j.Bn.UN_INITIATED},FetchOfferBookmarks:{status:j.Bn.UN_INITIATED}},nodeSettings:{userPersona:j.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:[],invoices:{invoices:[]},utxos:[],offers:[],offersBookmarks:[]},g1=(0,C.Lq)(co,(0,C.on)(Lt.Ni,($,{payload:Ze})=>{const z=JSON.parse(JSON.stringify($.apisCallStatus));return z[Ze.action]={status:Ze.status,statusCode:Ze.statusCode,message:Ze.message,URL:Ze.URL,filePath:Ze.filePath},Object.assign(Object.assign({},$),{apisCallStatus:z})}),(0,C.on)(Lt.oo,($,{payload:Ze})=>Object.assign(Object.assign({},$),{nodeSettings:Ze})),(0,C.on)(Lt.xH,($,{payload:Ze})=>Object.assign(Object.assign({},co),{nodeSettings:Ze})),(0,C.on)(Lt.CX,($,{payload:Ze})=>Object.assign(Object.assign({},$),{information:Ze})),(0,C.on)(Lt.RX,($,{payload:Ze})=>Object.assign(Object.assign({},$),{fees:Ze})),(0,C.on)(Lt.I8,($,{payload:Ze})=>Ze.perkb?Object.assign(Object.assign({},$),{feeRatesPerKB:Ze}):Ze.perkw?Object.assign(Object.assign({},$),{feeRatesPerKW:Ze}):Object.assign({},$)),(0,C.on)(Lt.Lu,($,{payload:Ze})=>Object.assign(Object.assign({},$),{balance:Ze})),(0,C.on)(Lt.xS,($,{payload:Ze})=>Object.assign(Object.assign({},$),{localRemoteBalance:Ze})),(0,C.on)(Lt.Z8,($,{payload:Ze})=>Object.assign(Object.assign({},$),{peers:Ze})),(0,C.on)(Lt.X3,($,{payload:Ze})=>Object.assign(Object.assign({},$),{peers:[...$.peers,Ze]})),(0,C.on)(Lt.EK,($,{payload:Ze})=>{const z=[...$.peers],Oe=$.peers.findIndex(_t=>_t.id===Ze.id);return Oe>-1&&z.splice(Oe,1),Object.assign(Object.assign({},$),{peers:z})}),(0,C.on)(Lt.as,($,{payload:Ze})=>Object.assign(Object.assign({},$),{activeChannels:Ze.activeChannels,pendingChannels:Ze.pendingChannels,inactiveChannels:Ze.inactiveChannels})),(0,C.on)(Lt.OG,($,{payload:Ze})=>{const z=[...$.peers];return z.forEach(Oe=>{Oe.id===Ze.id&&(Oe.connected=!1,delete Oe.netaddr)}),Object.assign(Object.assign({},$),{peers:z})}),(0,C.on)(Lt.HI,($,{payload:Ze})=>Object.assign(Object.assign({},$),{payments:Ze})),(0,C.on)(Lt.QJ,($,{payload:Ze})=>{const z=$.fees,Oe=[...$.activeChannels,...$.pendingChannels,...$.inactiveChannels];return Ze=_1(Ze,Oe),z.totalTxCount=Ze.length,Object.assign(Object.assign({},$),{fee:z,forwardingHistory:Ze})}),(0,C.on)(Lt.M7,($,{payload:Ze})=>{const z=[...$.activeChannels,...$.pendingChannels,...$.inactiveChannels];return Ze=_1(Ze,z),Object.assign(Object.assign({},$),{failedForwardingHistory:Ze})}),(0,C.on)(Lt.YP,($,{payload:Ze})=>{const z=$.invoices;return z.invoices.unshift(Ze),Object.assign(Object.assign({},$),{invoices:z})}),(0,C.on)(Lt.Nr,($,{payload:Ze})=>Object.assign(Object.assign({},$),{invoices:Ze})),(0,C.on)(Lt.aL,($,{payload:Ze})=>{const z=$.invoices;return z.invoices=z.invoices.map(Oe=>Oe.label===Ze.label?Ze:Oe),Object.assign(Object.assign({},$),{invoices:z})}),(0,C.on)(Lt.UH,($,{payload:Ze})=>Object.assign(Object.assign({},$),{utxos:Ze})),(0,C.on)(Lt.Zu,($,{payload:Ze})=>Object.assign(Object.assign({},$),{offers:Ze})),(0,C.on)(Lt.ZH,($,{payload:Ze})=>{const z=$.offers;return z.unshift(Ze),Object.assign(Object.assign({},$),{offers:z})}),(0,C.on)(Lt.JK,($,{payload:Ze})=>{const z=[...$.offers],Oe=$.offers.findIndex(_t=>_t.offer_id===Ze.offer.offer_id);return Oe>-1&&z.splice(Oe,1,Ze.offer),Object.assign(Object.assign({},$),{offers:z})}),(0,C.on)(Lt.d7,($,{payload:Ze})=>Object.assign(Object.assign({},$),{offersBookmarks:Ze})),(0,C.on)(Lt.e9,($,{payload:Ze})=>{const z=[...$.offersBookmarks],Oe=z.findIndex(_t=>_t.bolt12===Ze.bolt12);if(Oe<0)z.unshift(Ze);else{const _t=Object.assign({},z[Oe]);_t.title=Ze.title,_t.amountmSat=Ze.amountmSat,_t.lastUpdatedAt=Ze.lastUpdatedAt,_t.description=Ze.description,_t.vendor=Ze.vendor,z.splice(Oe,1,_t)}return Object.assign(Object.assign({},$),{offersBookmarks:z})}),(0,C.on)(Lt.en,($,{payload:Ze})=>{const z=[...$.offersBookmarks],Oe=$.offersBookmarks.findIndex(_t=>_t.bolt12===Ze.bolt12);return Oe>-1&&z.splice(Oe,1),Object.assign(Object.assign({},$),{offersBookmarks:z})})),_1=($,Ze)=>($&&$.length>0?$.forEach((z,Oe)=>{if(Ze&&Ze.length>0)for(let _t=0;_t<Ze.length;_t++){if(Ze[_t].short_channel_id&&Ze[_t].short_channel_id===z.in_channel&&(z.in_channel_alias=Ze[_t].alias?Ze[_t].alias:z.in_channel,z.out_channel_alias)||Ze[_t].short_channel_id&&Ze[_t].short_channel_id.toString()===z.out_channel&&(z.out_channel_alias=Ze[_t].alias?Ze[_t].alias:z.out_channel,z.in_channel_alias))return;_t===Ze.length-1&&(z.in_channel_alias||(z.in_channel_alias=z.in_channel),z.out_channel_alias||(z.out_channel_alias=z.out_channel))}else z.in_channel_alias=z.in_channel,z.out_channel_alias=z.out_channel}):$=[],$),Co={apisCallStatus:{FetchInfo:{status:j.Bn.UN_INITIATED},FetchFees:{status:j.Bn.UN_INITIATED},FetchChannels:{status:j.Bn.UN_INITIATED},FetchOnchainBalance:{status:j.Bn.UN_INITIATED},FetchPeers:{status:j.Bn.UN_INITIATED},FetchPayments:{status:j.Bn.UN_INITIATED},FetchInvoices:{status:j.Bn.UN_INITIATED},FetchTransactions:{status:j.Bn.UN_INITIATED}},nodeSettings:{userPersona:j.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:[]},Zo=(0,C.Lq)(Co,(0,C.on)(gt.QZ,($,{payload:Ze})=>{const z=JSON.parse(JSON.stringify($.apisCallStatus));return z[Ze.action]={status:Ze.status,statusCode:Ze.statusCode,message:Ze.message,URL:Ze.URL,filePath:Ze.filePath},Object.assign(Object.assign({},$),{apisCallStatus:z})}),(0,C.on)(gt.Zr,($,{payload:Ze})=>Object.assign(Object.assign({},$),{nodeSettings:Ze})),(0,C.on)(gt.Fd,($,{payload:Ze})=>Object.assign(Object.assign({},Co),{nodeSettings:Ze})),(0,C.on)(gt.CX,($,{payload:Ze})=>Object.assign(Object.assign({},$),{information:Ze})),(0,C.on)(gt.RX,($,{payload:Ze})=>Object.assign(Object.assign({},$),{fees:Ze})),(0,C.on)(gt.eN,($,{payload:Ze})=>Object.assign(Object.assign({},$),{activeChannels:Ze})),(0,C.on)(gt.TW,($,{payload:Ze})=>Object.assign(Object.assign({},$),{pendingChannels:Ze})),(0,C.on)(gt.i,($,{payload:Ze})=>Object.assign(Object.assign({},$),{inactiveChannels:Ze})),(0,C.on)(gt.HG,($,{payload:Ze})=>Object.assign(Object.assign({},$),{channelsStatus:Ze})),(0,C.on)(gt.Bw,($,{payload:Ze})=>Object.assign(Object.assign({},$),{onchainBalance:Ze})),(0,C.on)(gt.On,($,{payload:Ze})=>Object.assign(Object.assign({},$),{lightningBalance:Ze})),(0,C.on)(gt.Z8,($,{payload:Ze})=>Object.assign(Object.assign({},$),{peers:Ze})),(0,C.on)(gt.EK,($,{payload:Ze})=>{const z=[...$.peers],Oe=$.peers.findIndex(_t=>_t.nodeId===Ze.nodeId);return Oe>-1&&z.splice(Oe,1),Object.assign(Object.assign({},$),{peers:z})}),(0,C.on)(gt.OG,($,{payload:Ze})=>{const z=[...$.activeChannels],Oe=$.activeChannels.findIndex(_t=>_t.channelId===Ze.channelId);return Oe>-1&&z.splice(Oe,1),Object.assign(Object.assign({},$),{activeChannels:z})}),(0,C.on)(gt.HI,($,{payload:Ze})=>{if(Ze&&Ze.sent){const z=[...$.activeChannels,...$.pendingChannels,...$.inactiveChannels];Ze.sent.map(Oe=>{const _t=$.peers.find(pi=>pi.nodeId===Oe.recipientNodeId);return Oe.recipientNodeAlias=_t?_t.alias:Oe.recipientNodeId,Oe.parts&&Oe.parts.map(pi=>{const Ln=z.find(hr=>hr.channelId===pi.toChannelId);return pi.toChannelAlias=Ln?Ln.alias:pi.toChannelId,Oe.parts}),Ze.sent})}if(Ze&&Ze.relayed){const z=[...$.activeChannels,...$.pendingChannels,...$.inactiveChannels];Ze.relayed.forEach(Oe=>{Oe=Vo(Oe,z)})}return Object.assign(Object.assign({},$),{payments:Ze})}),(0,C.on)(gt.Lf,($,{payload:Ze})=>Object.assign(Object.assign({},$),{transactions:Ze})),(0,C.on)(gt.YP,($,{payload:Ze})=>{const z=$.invoices;return z.unshift(Ze),Object.assign(Object.assign({},$),{invoices:z})}),(0,C.on)(gt.Nr,($,{payload:Ze})=>Object.assign(Object.assign({},$),{invoices:Ze})),(0,C.on)(gt.aL,($,{payload:Ze})=>{let z=$.invoices;return z=z.map(Oe=>{if(Oe.paymentHash===Ze.paymentHash){if(Ze.hasOwnProperty("type")){const _t=JSON.parse(JSON.stringify(Oe));return _t.amountSettled=Ze.parts&&Ze.parts.length&&Ze.parts.length>0&&Ze.parts[0].amount?Ze.parts[0].amount/1e3:0,_t.receivedAt=Ze.parts&&Ze.parts.length&&Ze.parts.length>0&&Ze.parts[0].timestamp?Math.round(Ze.parts[0].timestamp/1e3):0,_t.status="received",_t}return Ze}return Oe}),Object.assign(Object.assign({},$),{invoices:z})}),(0,C.on)(gt.DJ,($,{payload:Ze})=>{let z=$.pendingChannels;return z=z.map(Oe=>(Oe.channelId===Ze.channelId&&Oe.nodeId===Ze.remoteNodeId&&(Ze.currentState=Ze.currentState.replace(/_/g," "),Oe.state=Ze.currentState),Oe)),Object.assign(Object.assign({},$),{pendingChannels:z})}),(0,C.on)(gt.ti,($,{payload:Ze})=>{const z=$.payments,Oe=Vo(Ze,[...$.activeChannels,...$.pendingChannels,...$.inactiveChannels]);Oe.amountIn=Math.round(Ze.amountIn/1e3),Oe.amountOut=Math.round(Ze.amountOut/1e3),z.relayed.unshift(Oe);const _t=Ze.amountIn-Ze.amountOut,pi={localBalance:$.lightningBalance.localBalance+_t,remoteBalance:$.lightningBalance.remoteBalance-_t},Ln=$.channelsStatus;Ln.active.capacity=$.channelsStatus.active.capacity+_t;const hr={daily_fee:$.fees.daily_fee+_t,daily_txs:$.fees.daily_txs+1,weekly_fee:$.fees.weekly_fee+_t,weekly_txs:$.fees.weekly_txs+1,monthly_fee:$.fees.monthly_fee+_t,monthly_txs:$.fees.monthly_txs+1},Un=$.activeChannels;let ur=!1,ka=!1;for(const Nr of Un){if(Nr.channelId===Ze.fromChannelId){ur=!0;const ws=Nr.toLocal+Nr.toRemote;Nr.toLocal=Nr.toLocal+Oe.amountIn,Nr.toRemote=Nr.toRemote-Oe.amountIn,Nr.balancedness=0===ws?1:+(1-Math.abs((Nr.toLocal-Nr.toRemote)/ws)).toFixed(3)}if(Nr.channelId===Ze.toChannelId){ka=!0;const ws=Nr.toLocal+Nr.toRemote;Nr.toLocal=Nr.toLocal-Oe.amountOut,Nr.toRemote=Nr.toRemote+Oe.amountOut,Nr.balancedness=0===ws?1:+(1-Math.abs((Nr.toLocal-Nr.toRemote)/ws)).toFixed(3)}if(ka&&ur)break}return Object.assign(Object.assign({},$),{payments:z,lightningBalance:pi,channelStatus:Ln,fees:hr,activeChannels:Un})})),Vo=($,Ze)=>{if("payment-relayed"===$.type)if(Ze&&Ze.length>0)for(let z=0;z<Ze.length;z++){if(Ze[z].channelId.toString()===$.fromChannelId&&($.fromChannelAlias=Ze[z].alias?Ze[z].alias:$.fromChannelId,$.fromShortChannelId=Ze[z].shortChannelId?Ze[z].shortChannelId:"",$.toChannelAlias)||Ze[z].channelId.toString()===$.toChannelId&&($.toChannelAlias=Ze[z].alias?Ze[z].alias:$.toChannelId,$.toShortChannelId=Ze[z].shortChannelId?Ze[z].shortChannelId:"",$.fromChannelAlias))return $;z===Ze.length-1&&($.fromChannelAlias||($.fromChannelAlias=$.fromChannelId.substring(0,17)+"...",$.fromShortChannelId=""),$.toChannelAlias||($.toChannelAlias=$.toChannelId.substring(0,17)+"...",$.toShortChannelId=""))}else $.fromChannelAlias=$.fromChannelId.substring(0,17)+"...",$.fromShortChannelId="",$.toChannelAlias=$.toChannelId.substring(0,17)+"...",$.toShortChannelId="";else if($.type="trampoline-payment-relayed"){if(Ze&&Ze.length>0)for(let z=0;z<Ze.length;z++)$.incoming.forEach(Oe=>{Ze[z].channelId.toString()===Oe.channelId&&(Oe.channelAlias=Ze[z].alias?Ze[z].alias:Oe.channelId,Oe.shortChannelId=Ze[z].shortChannelId?Ze[z].shortChannelId:"")}),$.outgoing.forEach(Oe=>{Ze[z].channelId.toString()===Oe.channelId&&(Oe.channelAlias=Ze[z].alias?Ze[z].alias:Oe.channelId,Oe.shortChannelId=Ze[z].shortChannelId?Ze[z].shortChannelId:"")}),z===Ze.length-1&&($.incoming[0].channelAlias||$.incoming.forEach(Oe=>{Oe.channelAlias=Oe.channelId.substring(0,17)+"...",Oe.shortChannelId=""}),$.outgoing[0].channelAlias||$.outgoing.forEach(Oe=>{Oe.channelAlias=Oe.channelId.substring(0,17)+"...",Oe.shortChannelId=""}));else $.incoming.forEach(z=>{z.channelAlias=z.channelId.substring(0,17)+"...",z.shortChannelId=""}),$.outgoing.forEach(z=>{z.channelAlias=z.channelId.substring(0,17)+"...",z.shortChannelId=""});$.amountIn=$.incoming.reduce((z,Oe)=>z+Oe.amount,0),$.fromChannelId=$.incoming[0].channelId,$.fromChannelAlias=$.incoming[0].channelAlias,$.fromShortChannelId=$.incoming[0].shortChannelId,$.amountOut=$.outgoing.reduce((z,Oe)=>z+Oe.amount,0),$.toChannelId=$.outgoing[0].channelId,$.toChannelAlias=$.outgoing[0].channelAlias,$.toShortChannelId=$.outgoing[0].shortChannelId}return $};let fh=(()=>{class ${}return $.\u0275fac=function(z){return new(z||$)},$.\u0275mod=t.oAB({type:$,bootstrap:[Ia]}),$.\u0275inj=t.cJS({providers:[{provide:M.TP,useClass:Cc,multi:!0},Oa.a1,Re.m,cl.D,p1.d,Zr.W,Ci.v,Fn],imports:[[v.PW,s1.m,p0,s.xu,e.t6,L.forRoot({idle:3590,timeout:10,ping:12e3}),C.Aw.forRoot({root:zl,lnd:Uo,cl:g1,ecl:Zo},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),c.sQ.forRoot([it.V,zo.l,m1.s,uh.o]),Qi.NZ.production?[]:R.FT.instrument()]]}),$})();Qi.NZ.production&&(0,t.G48)(),e.q6().bootstrapModule(fh).catch($=>console.log($))},7854:(Ue,K)=>{"use strict";function m(j){return Object.keys(j).map(we=>j[we])}var j;Object.defineProperty(K,"__esModule",{value:!0}),(j=K.HashAlgorithms||(K.HashAlgorithms={})).SHA1="sha1",j.SHA256="sha256",j.SHA512="sha512";const e=m(K.HashAlgorithms);!function(j){j.ASCII="ascii",j.BASE64="base64",j.HEX="hex",j.LATIN1="latin1",j.UTF8="utf8"}(K.KeyEncodings||(K.KeyEncodings={}));const t=m(K.KeyEncodings);!function(j){j.HOTP="hotp",j.TOTP="totp"}(K.Strategy||(K.Strategy={}));const v=m(K.Strategy),M=()=>{throw new Error("Please provide an options.createDigest implementation.")};function s(j){return/^(\d+)$/.test(j)}function C(j,we,Ae){return j.length>=we?j:`${Array(we+1).join(Ae)}${j}`.slice(-1*we)}function c(j){const we=`otpauth://${j.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,Ae=[];if(v.indexOf(j.type)<0)throw new Error(`Expecting options.type to be one of ${v.join(", ")}. Received ${j.type}.`);if("hotp"===j.type){if(null==j.counter||"number"!=typeof j.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');Ae.push(`&counter=${j.counter}`)}return"totp"===j.type&&j.step&&Ae.push(`&period=${j.step}`),j.digits&&Ae.push(`&digits=${j.digits}`),j.algorithm&&Ae.push(`&algorithm=${j.algorithm.toUpperCase()}`),j.issuer&&Ae.push(`&issuer=${encodeURIComponent(j.issuer)}`),we.replace("{labelPrefix}",encodeURIComponent(j.issuer||j.accountName)).replace("{accountName}",encodeURIComponent(j.accountName)).replace("{secret}",j.secret).replace("{query}",Ae.join(""))}class R{constructor(we={}){this._defaultOptions=Object.freeze(ro({},we)),this._options=Object.freeze({})}create(we={}){return new R(we)}clone(we={}){const Ae=this.create(ro(ro({},this._defaultOptions),we));return Ae.options=this._options,Ae}get options(){return Object.freeze(ro(ro({},this._defaultOptions),this._options))}set options(we){this._options=Object.freeze(ro(ro({},this._options),we))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function o(j){if("function"!=typeof j.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof j.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof j.digits)throw new Error("Expecting options.digits to be a number.");if(!j.algorithm||e.indexOf(j.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${e.join(", ")}. Received ${j.algorithm}.`);if(!j.encoding||t.indexOf(j.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${t.join(", ")}. Received ${j.encoding}.`)}const O=(j,we,Ae)=>Buffer.from(we,Ae).toString("hex");function T(){return{algorithm:K.HashAlgorithms.SHA1,createHmacKey:O,createDigest:M,digits:6,encoding:K.KeyEncodings.ASCII}}function P(j){const we=ro(ro({},T()),j);return o(we),Object.freeze(we)}function S(j){return C(j.toString(16),16,"0")}function D(j,we){const Ae=Buffer.from(j,"hex"),le=15&Ae[Ae.length-1],yt=((127&Ae[le])<<24|(255&Ae[le+1])<<16|(255&Ae[le+2])<<8|255&Ae[le+3])%Math.pow(10,we);return C(String(yt),we,"0")}function U(j,we,Ae){const le=Ae.digest||function(j,we,Ae){const le=S(we),We=Ae.createHmacKey(Ae.algorithm,j,Ae.encoding);return Ae.createDigest(Ae.algorithm,We,le)}(j,we,Ae);return D(le,Ae.digits)}function G(j,we,Ae,le){return!!s(j)&&j===U(we,Ae,le)}function W(j,we,Ae,le,We){return c({algorithm:We.algorithm,digits:We.digits,type:K.Strategy.HOTP,accountName:j,counter:le,issuer:we,secret:Ae})}class ee extends R{create(we={}){return new ee(we)}allOptions(){return P(this.options)}generate(we,Ae){return U(we,Ae,this.allOptions())}check(we,Ae,le){return G(we,Ae,le,this.allOptions())}verify(we){if("object"!=typeof we)throw new Error("Expecting argument 0 of verify to be an object");return this.check(we.token,we.secret,we.counter)}keyuri(we,Ae,le,We){return W(we,Ae,le,We,this.allOptions())}}function ie(j){if("number"==typeof j)return[Math.abs(j),Math.abs(j)];if(Array.isArray(j)){const[we,Ae]=j;if("number"==typeof we&&"number"==typeof Ae)return[Math.abs(we),Math.abs(Ae)]}throw new Error("Expecting options.window to be an number or [number, number].")}function _e(j){if(o(j),ie(j.window),"number"!=typeof j.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof j.step)throw new Error("Expecting options.step to be a number.")}const fe=(j,we,Ae)=>{const le=j.length,We=Buffer.from(j,we).toString("hex");if(le<Ae){const yt=new Array(Ae-le+1).join(We);return Buffer.from(yt,"hex").slice(0,Ae).toString("hex")}return We},de=(j,we,Ae)=>{switch(j){case K.HashAlgorithms.SHA1:return fe(we,Ae,20);case K.HashAlgorithms.SHA256:return fe(we,Ae,32);case K.HashAlgorithms.SHA512:return fe(we,Ae,64);default:throw new Error(`Expecting algorithm to be one of ${e.join(", ")}. Received ${j}.`)}};function ne(){return{algorithm:K.HashAlgorithms.SHA1,createDigest:M,createHmacKey:de,digits:6,encoding:K.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function se(j){const we=ro(ro({},ne()),j);return _e(we),Object.freeze(we)}function oe(j,we){return Math.floor(j/we/1e3)}function y(j,we){return U(j,oe(we.epoch,we.step),we)}function i(j,we,Ae,le){const We=[];if(0===le)return We;for(let yt=1;yt<=le;yt++)We.push(j+we*yt*Ae);return We}function a(j,we,Ae){const le=ie(Ae),We=1e3*we;return{current:j,past:i(j,-1,We,le[0]),future:i(j,1,We,le[1])}}function p(j,we,Ae){return!!s(j)&&j===y(we,Ae)}function u(j,we,Ae,le){let We=null;return j.some((yt,Ne)=>!!p(we,Ae,_8(ro({},le),{epoch:yt}))&&(We=Ne+1,!0)),We}function _(j,we,Ae){if(p(j,we,Ae))return 0;const le=a(Ae.epoch,Ae.step,Ae.window),We=u(le.past,j,we,Ae);return null!==We?-1*We:u(le.future,j,we,Ae)}function L(j,we){return Math.floor(j/1e3)%we}function I(j,we){return we-L(j,we)}function x(j,we,Ae,le){return c({algorithm:le.algorithm,digits:le.digits,step:le.step,type:K.Strategy.TOTP,accountName:j,issuer:we,secret:Ae})}class r extends ee{create(we={}){return new r(we)}allOptions(){return se(this.options)}generate(we){return y(we,this.allOptions())}checkDelta(we,Ae){return _(we,Ae,this.allOptions())}check(we,Ae){return"number"==typeof this.checkDelta(we,Ae)}verify(we){if("object"!=typeof we)throw new Error("Expecting argument 0 of verify to be an object");return this.check(we.token,we.secret)}timeRemaining(){const we=this.allOptions();return I(we.epoch,we.step)}timeUsed(){const we=this.allOptions();return L(we.epoch,we.step)}keyuri(we,Ae,le){return x(we,Ae,le,this.allOptions())}}function b(j){if(_e(j),"function"!=typeof j.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(j.keyEncoder&&"function"!=typeof j.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function J(){return{algorithm:K.HashAlgorithms.SHA1,createDigest:M,createHmacKey:de,digits:6,encoding:K.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function F(j){const we=ro(ro({},J()),j);return b(we),Object.freeze(we)}function B(j,we){return we.keyEncoder(j,we.encoding)}function te(j,we){return we.keyDecoder(j,we.encoding)}function xe(j,we){return B(we.createRandomBytes(j,we.encoding),we)}function Pe(j,we){return y(te(j,we),we)}function Fe(j,we,Ae){return _(j,te(we,Ae),Ae)}class q extends r{create(we={}){return new q(we)}allOptions(){return F(this.options)}generate(we){return Pe(we,this.allOptions())}checkDelta(we,Ae){return Fe(we,Ae,this.allOptions())}encode(we){return B(we,this.allOptions())}decode(we){return te(we,this.allOptions())}generateSecret(we=10){return xe(we,this.allOptions())}}K.Authenticator=q,K.HASH_ALGORITHMS=e,K.HOTP=ee,K.KEY_ENCODINGS=t,K.OTP=R,K.STRATEGY=v,K.TOTP=r,K.authenticatorCheckWithWindow=Fe,K.authenticatorDecoder=te,K.authenticatorDefaultOptions=J,K.authenticatorEncoder=B,K.authenticatorGenerateSecret=xe,K.authenticatorOptionValidator=b,K.authenticatorOptions=F,K.authenticatorToken=Pe,K.createDigestPlaceholder=M,K.hotpCheck=G,K.hotpCounter=S,K.hotpCreateHmacKey=O,K.hotpDefaultOptions=T,K.hotpDigestToToken=D,K.hotpKeyuri=W,K.hotpOptions=P,K.hotpOptionsValidator=o,K.hotpToken=U,K.isTokenValid=s,K.keyuri=c,K.objectValues=m,K.padStart=C,K.totpCheck=p,K.totpCheckByEpoch=u,K.totpCheckWithWindow=_,K.totpCounter=oe,K.totpCreateHmacKey=de,K.totpDefaultOptions=ne,K.totpEpochAvailable=a,K.totpKeyuri=x,K.totpOptions=se,K.totpOptionsValidator=_e,K.totpPadSecret=fe,K.totpTimeRemaining=I,K.totpTimeUsed=L,K.totpToken=y},6098:(Ue,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,C,c)=>t.createHmac(s,Buffer.from(C,"hex")).update(Buffer.from(c,"hex")).digest().toString("hex"),K.createRandomBytes=(s,C)=>t.randomBytes(s).toString(C)},1415:(Ue,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,C)=>t.decode(s).toString(C),K.keyEncoder=(s,C)=>t.encode(Buffer.from(s,C).toString("ascii")).toString().replace(/=/g,"")},842:(Ue,K,m)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var e=m(6098),t=m(1415),v=m(7854);const M=new v.HOTP({createDigest:e.createDigest}),s=new v.TOTP({createDigest:e.createDigest}),C=new v.Authenticator({createDigest:e.createDigest,createRandomBytes:e.createRandomBytes,keyDecoder:t.keyDecoder,keyEncoder:t.keyEncoder});K.authenticator=C,K.hotp=M,K.totp=s},6046:(Ue,K,m)=>{"use strict";m.d(K,{H5:()=>f4,K$:()=>u4,a4:()=>oh});var e=m(5e3),t=m(9808),v=m(7429),M=m(655),s=m(4968),C=m(8372),c=m(1777);function R(){}function o(f){return null==f?R:function(){return this.querySelector(f)}}function T(f){return"object"==typeof f&&"length"in f?f:Array.from(f)}function P(){return[]}function S(f){return null==f?P:function(){return this.querySelectorAll(f)}}function U(f){return function(){return this.matches(f)}}function G(f){return function(A){return A.matches(f)}}var W=Array.prototype.find;function ie(){return this.firstElementChild}var fe=Array.prototype.filter;function de(){return this.children}function y(f){return new Array(f.length)}function a(f,A){this.ownerDocument=f.ownerDocument,this.namespaceURI=f.namespaceURI,this._next=null,this._parent=f,this.__data__=A}function p(f){return function(){return f}}function u(f,A,n,d,k,H){for(var Le,ce=0,dt=A.length,pt=H.length;ce<pt;++ce)(Le=A[ce])?(Le.__data__=H[ce],d[ce]=Le):n[ce]=new a(f,H[ce]);for(;ce<dt;++ce)(Le=A[ce])&&(k[ce]=Le)}function _(f,A,n,d,k,H,ce){var Le,dt,ni,pt=new Map,Dt=A.length,Ht=H.length,Zt=new Array(Dt);for(Le=0;Le<Dt;++Le)(dt=A[Le])&&(Zt[Le]=ni=ce.call(dt,dt.__data__,Le,A)+"",pt.has(ni)?k[Le]=dt:pt.set(ni,dt));for(Le=0;Le<Ht;++Le)ni=ce.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=A[Le])&&pt.get(Zt[Le])===dt&&(k[Le]=dt)}function L(f){return f.__data__}function B(f,A){return f<A?-1:f>A?1:f>=A?0:NaN}a.prototype={constructor:a,appendChild:function(f){return this._parent.insertBefore(f,this._next)},insertBefore:function(f,A){return this._parent.insertBefore(f,A)},querySelector:function(f){return this._parent.querySelector(f)},querySelectorAll:function(f){return this._parent.querySelectorAll(f)}};var we="http://www.w3.org/1999/xhtml";const Ae={svg:"http://www.w3.org/2000/svg",xhtml:we,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function le(f){var A=f+="",n=A.indexOf(":");return n>=0&&"xmlns"!==(A=f.slice(0,n))&&(f=f.slice(n+1)),Ae.hasOwnProperty(A)?{space:Ae[A],local:f}:f}function We(f){return function(){this.removeAttribute(f)}}function yt(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Ne(f,A){return function(){this.setAttribute(f,A)}}function Ve(f,A){return function(){this.setAttributeNS(f.space,f.local,A)}}function ue(f,A){return function(){var n=A.apply(this,arguments);null==n?this.removeAttribute(f):this.setAttribute(f,n)}}function Te(f,A){return function(){var n=A.apply(this,arguments);null==n?this.removeAttributeNS(f.space,f.local):this.setAttributeNS(f.space,f.local,n)}}function Y(f){return f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView}function X(f){return function(){this.style.removeProperty(f)}}function he(f,A,n){return function(){this.style.setProperty(f,A,n)}}function Me(f,A,n){return function(){var d=A.apply(this,arguments);null==d?this.style.removeProperty(f):this.style.setProperty(f,d,n)}}function ht(f,A){return f.style.getPropertyValue(A)||Y(f).getComputedStyle(f,null).getPropertyValue(A)}function it(f){return function(){delete this[f]}}function ft(f,A){return function(){this[f]=A}}function nt(f,A){return function(){var n=A.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 Nt(f)}function Nt(f){this._node=f,this._names=wt(f.getAttribute("class")||"")}function Vt(f,A){for(var n=Bt(f),d=-1,k=A.length;++d<k;)n.add(A[d])}function Oi(f,A){for(var n=Bt(f),d=-1,k=A.length;++d<k;)n.remove(A[d])}function jt(f){return function(){Vt(this,f)}}function ti(f){return function(){Oi(this,f)}}function Ri(f,A){return function(){(A.apply(this,arguments)?Vt:Oi)(this,f)}}function di(){this.textContent=""}function He(f){return function(){this.textContent=f}}function Se(f){return function(){var A=f.apply(this,arguments);this.textContent=null==A?"":A}}function ve(){this.innerHTML=""}function Ee(f){return function(){this.innerHTML=f}}function et(f){return function(){var A=f.apply(this,arguments);this.innerHTML=null==A?"":A}}function Rt(){this.nextSibling&&this.parentNode.appendChild(this)}function lt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Be(f){return function(){var A=this.ownerDocument,n=this.namespaceURI;return n===we&&A.documentElement.namespaceURI===we?A.createElement(f):A.createElementNS(n,f)}}function rt(f){return function(){return this.ownerDocument.createElementNS(f.space,f.local)}}function ot(f){var A=le(f);return(A.local?rt:Be)(A)}function li(){return null}function Ft(){var f=this.parentNode;f&&f.removeChild(this)}function ai(){var f=this.cloneNode(!1),A=this.parentNode;return A?A.insertBefore(f,this.nextSibling):f}function ci(){var f=this.cloneNode(!0),A=this.parentNode;return A?A.insertBefore(f,this.nextSibling):f}function Xi(f){return f.trim().split(/^|\s+/).map(function(A){var n="",d=A.indexOf(".");return d>=0&&(n=A.slice(d+1),A=A.slice(0,d)),{type:A,name:n}})}function Ke(f){return function(){var A=this.__on;if(A){for(var H,n=0,d=-1,k=A.length;n<k;++n)H=A[n],f.type&&H.type!==f.type||H.name!==f.name?A[++d]=H:this.removeEventListener(H.type,H.listener,H.options);++d?A.length=d:delete this.__on}}}function mt(f,A,n){return function(){var k,d=this.__on,H=function(f){return function(A){f.call(this,A,this.__data__)}}(A);if(d)for(var ce=0,Le=d.length;ce<Le;++ce)if((k=d[ce]).type===f.type&&k.name===f.name)return this.removeEventListener(k.type,k.listener,k.options),this.addEventListener(k.type,k.listener=H,k.options=n),void(k.value=A);this.addEventListener(f.type,H,n),k={type:f.type,name:f.name,value:A,listener:H,options:n},d?d.push(k):this.__on=[k]}}function qe(f,A,n){var d=Y(f),k=d.CustomEvent;"function"==typeof k?k=new k(A,n):(k=d.document.createEvent("Event"),n?(k.initEvent(A,n.bubbles,n.cancelable),k.detail=n.detail):k.initEvent(A,!1,!1)),f.dispatchEvent(k)}function vt(f,A){return function(){return qe(this,f,A)}}function me(f,A){return function(){return qe(this,f,A.apply(this,arguments))}}Nt.prototype={add:function(f){this._names.indexOf(f)<0&&(this._names.push(f),this._node.setAttribute("class",this._names.join(" ")))},remove:function(f){var A=this._names.indexOf(f);A>=0&&(this._names.splice(A,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(f){return this._names.indexOf(f)>=0}};var Pt=[null];function yi(f,A){this._groups=f,this._parents=A}function Pi(){return new yi([[document.documentElement]],Pt)}yi.prototype=Pi.prototype={constructor:yi,select:function(f){"function"!=typeof f&&(f=o(f));for(var A=this._groups,n=A.length,d=new Array(n),k=0;k<n;++k)for(var dt,pt,H=A[k],ce=H.length,Le=d[k]=new Array(ce),Dt=0;Dt<ce;++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 A=f.apply(this,arguments);return null==A?[]:T(A)}}(f):S(f);for(var A=this._groups,n=A.length,d=[],k=[],H=0;H<n;++H)for(var dt,ce=A[H],Le=ce.length,pt=0;pt<Le;++pt)(dt=ce[pt])&&(d.push(f.call(dt,dt.__data__,pt,ce)),k.push(dt));return new yi(d,k)},selectChild:function(f){return this.select(null==f?ie:function(f){return function(){return W.call(this.children,f)}}("function"==typeof f?f:G(f)))},selectChildren:function(f){return this.selectAll(null==f?de:function(f){return function(){return fe.call(this.children,f)}}("function"==typeof f?f:G(f)))},filter:function(f){"function"!=typeof f&&(f=U(f));for(var A=this._groups,n=A.length,d=new Array(n),k=0;k<n;++k)for(var dt,H=A[k],ce=H.length,Le=d[k]=[],pt=0;pt<ce;++pt)(dt=H[pt])&&f.call(dt,dt.__data__,pt,H)&&Le.push(dt);return new yi(d,this._parents)},data:function(f,A){if(!arguments.length)return Array.from(this,L);var n=A?_:u,d=this._parents,k=this._groups;"function"!=typeof f&&(f=p(f));for(var H=k.length,ce=new Array(H),Le=new Array(H),dt=new Array(H),pt=0;pt<H;++pt){var Dt=d[pt],Ht=k[pt],Zt=Ht.length,ni=T(f.call(Dt,Dt&&Dt.__data__,pt,d)),bi=ni.length,Hi=Le[pt]=new Array(bi),hi=ce[pt]=new Array(bi),Ui=dt[pt]=new Array(Zt);n(Dt,Ht,Hi,hi,Ui,ni,A);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(ce=new yi(ce,d))._enter=Le,ce._exit=dt,ce},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,A,n){var d=this.enter(),k=this,H=this.exit();return d="function"==typeof f?f(d):d.append(f+""),null!=A&&(k=A(k)),null==n?H.remove():n(H),d&&k?d.merge(k).order():k},merge:function(f){if(!(f instanceof yi))throw new Error("invalid merge");for(var A=this._groups,n=f._groups,d=A.length,H=Math.min(d,n.length),ce=new Array(d),Le=0;Le<H;++Le)for(var Zt,dt=A[Le],pt=n[Le],Dt=dt.length,Ht=ce[Le]=new Array(Dt),ni=0;ni<Dt;++ni)(Zt=dt[ni]||pt[ni])&&(Ht[ni]=Zt);for(;Le<d;++Le)ce[Le]=A[Le];return new yi(ce,this._parents)},selection:function(){return this},order:function(){for(var f=this._groups,A=-1,n=f.length;++A<n;)for(var ce,d=f[A],k=d.length-1,H=d[k];--k>=0;)(ce=d[k])&&(H&&4^ce.compareDocumentPosition(H)&&H.parentNode.insertBefore(ce,H),H=ce);return this},sort:function(f){function A(Ht,Zt){return Ht&&Zt?f(Ht.__data__,Zt.__data__):!Ht-!Zt}f||(f=B);for(var n=this._groups,d=n.length,k=new Array(d),H=0;H<d;++H){for(var pt,ce=n[H],Le=ce.length,dt=k[H]=new Array(Le),Dt=0;Dt<Le;++Dt)(pt=ce[Dt])&&(dt[Dt]=pt);dt.sort(A)}return new yi(k,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,A=0,n=f.length;A<n;++A)for(var d=f[A],k=0,H=d.length;k<H;++k){var ce=d[k];if(ce)return ce}return null},size:function(){let f=0;for(const A of this)++f;return f},empty:function(){return!this.node()},each:function(f){for(var A=this._groups,n=0,d=A.length;n<d;++n)for(var Le,k=A[n],H=0,ce=k.length;H<ce;++H)(Le=k[H])&&f.call(Le,Le.__data__,H,k);return this},attr:function(f,A){var n=le(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==A?n.local?yt:We:"function"==typeof A?n.local?Te:ue:n.local?Ve:Ne)(n,A))},style:function(f,A,n){return arguments.length>1?this.each((null==A?X:"function"==typeof A?Me:he)(f,A,null==n?"":n)):ht(this.node(),f)},property:function(f,A){return arguments.length>1?this.each((null==A?it:"function"==typeof A?nt:ft)(f,A)):this.node()[f]},classed:function(f,A){var n=wt(f+"");if(arguments.length<2){for(var d=Bt(this.node()),k=-1,H=n.length;++k<H;)if(!d.contains(n[k]))return!1;return!0}return this.each(("function"==typeof A?Ri:A?jt:ti)(n,A))},text:function(f){return arguments.length?this.each(null==f?di:("function"==typeof f?Se:He)(f)):this.node().textContent},html:function(f){return arguments.length?this.each(null==f?ve:("function"==typeof f?et:Ee)(f)):this.node().innerHTML},raise:function(){return this.each(Rt)},lower:function(){return this.each(lt)},append:function(f){var A="function"==typeof f?f:ot(f);return this.select(function(){return this.appendChild(A.apply(this,arguments))})},insert:function(f,A){var n="function"==typeof f?f:ot(f),d=null==A?li:"function"==typeof A?A:o(A);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,A,n){var k,ce,d=Xi(f+""),H=d.length;if(!(arguments.length<2)){for(Le=A?mt:Ke,k=0;k<H;++k)this.each(Le(d[k],A,n));return this}var Le=this.node().__on;if(Le)for(var Dt,dt=0,pt=Le.length;dt<pt;++dt)for(k=0,Dt=Le[dt];k<H;++k)if((ce=d[k]).type===Dt.type&&ce.name===Dt.name)return Dt.value},dispatch:function(f,A){return this.each(("function"==typeof A?me:vt)(f,A))},[Symbol.iterator]:function*(){for(var f=this._groups,A=0,n=f.length;A<n;++A)for(var ce,d=f[A],k=0,H=d.length;k<H;++k)(ce=d[k])&&(yield ce)}};const Ki=Pi;var Qt={value:()=>{}};function gt(){for(var d,f=0,A=arguments.length,n={};f<A;++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,A){return f.trim().split(/^|\s+/).map(function(n){var d="",k=n.indexOf(".");if(k>=0&&(d=n.slice(k+1),n=n.slice(0,k)),n&&!A.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:d}})}function Ci(f,A){for(var k,n=0,d=f.length;n<d;++n)if((k=f[n]).name===A)return k.value}function Wi(f,A,n){for(var d=0,k=f.length;d<k;++d)if(f[d].name===A){f[d]=Qt,f=f.slice(0,d).concat(f.slice(d+1));break}return null!=n&&f.push({name:A,value:n}),f}Lt.prototype=gt.prototype={constructor:Lt,on:function(f,A){var k,n=this._,d=ui(f+"",n),H=-1,ce=d.length;if(!(arguments.length<2)){if(null!=A&&"function"!=typeof A)throw new Error("invalid callback: "+A);for(;++H<ce;)if(k=(f=d[H]).type)n[k]=Wi(n[k],f.name,A);else if(null==A)for(k in n)n[k]=Wi(n[k],f.name,null);return this}for(;++H<ce;)if((k=(f=d[H]).type)&&(k=Ci(n[k],f.name)))return k},copy:function(){var f={},A=this._;for(var n in A)f[n]=A[n].slice();return new Lt(f)},call:function(f,A){if((k=arguments.length-2)>0)for(var k,H,n=new Array(k),d=0;d<k;++d)n[d]=arguments[d+2];if(!this._.hasOwnProperty(f))throw new Error("unknown type: "+f);for(d=0,k=(H=this._[f]).length;d<k;++d)H[d].value.apply(A,n)},apply:function(f,A,n){if(!this._.hasOwnProperty(f))throw new Error("unknown type: "+f);for(var d=this._[f],k=0,H=d.length;k<H;++k)d[k].value.apply(A,n)}};const $i=gt;function xr(f,A,n){f.prototype=A.prototype=n,n.constructor=f}function wi(f,A){var n=Object.create(f.prototype);for(var d in A)n[d]=A[d];return n}function Fi(){}var Sr=1/.7,ya="\\s*([+-]?\\d+)\\s*",qn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",kr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ba=/^#([0-9a-f]{3,8})$/,xa=new RegExp("^rgb\\("+[ya,ya,ya]+"\\)$"),Va=new RegExp("^rgb\\("+[kr,kr,kr]+"\\)$"),zr=new RegExp("^rgba\\("+[ya,ya,ya,qn]+"\\)$"),is=new RegExp("^rgba\\("+[kr,kr,kr,qn]+"\\)$"),rr=new RegExp("^hsl\\("+[qn,kr,kr]+"\\)$"),ua=new RegExp("^hsla\\("+[qn,kr,kr,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 A,n;return f=(f+"").trim().toLowerCase(),(A=ba.exec(f))?(n=A[1].length,A=parseInt(A[1],16),6===n?Qr(A):3===n?new Dr(A>>8&15|A>>4&240,A>>4&15|240&A,(15&A)<<4|15&A,1):8===n?Cr(A>>24&255,A>>16&255,A>>8&255,(255&A)/255):4===n?Cr(A>>12&15|A>>8&240,A>>8&15|A>>4&240,A>>4&15|240&A,((15&A)<<4|15&A)/255):null):(A=xa.exec(f))?new Dr(A[1],A[2],A[3],1):(A=Va.exec(f))?new Dr(255*A[1]/100,255*A[2]/100,255*A[3]/100,1):(A=zr.exec(f))?Cr(A[1],A[2],A[3],A[4]):(A=is.exec(f))?Cr(255*A[1]/100,255*A[2]/100,255*A[3]/100,A[4]):(A=rr.exec(f))?Na(A[1],A[2]/100,A[3]/100,1):(A=ua.exec(f))?Na(A[1],A[2]/100,A[3]/100,A[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 Cr(f,A,n,d){return d<=0&&(f=A=n=NaN),new Dr(f,A,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,A,n,d){return 1===arguments.length?_n(f):new Dr(f,A,n,null==d?1:d)}function Dr(f,A,n,d){this.r=+f,this.g=+A,this.b=+n,this.opacity=+d}function Jr(){return"#"+Pr(this.r)+Pr(this.g)+Pr(this.b)}function Ga(){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 Na(f,A,n,d){return d<=0?f=A=n=NaN:n<=0||n>=1?f=A=NaN:A<=0&&(f=NaN),new er(f,A,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 A=(f=f.rgb()).r/255,n=f.g/255,d=f.b/255,k=Math.min(A,n,d),H=Math.max(A,n,d),ce=NaN,Le=H-k,dt=(H+k)/2;return Le?(ce=A===H?(n-d)/Le+6*(n<d):n===H?(d-A)/Le+2:(A-n)/Le+4,Le/=dt<.5?H+k:2-H-k,ce*=60):Le=dt>0&&dt<1?0:ce,new er(ce,Le,dt,f.opacity)}function er(f,A,n,d){this.h=+f,this.s=+A,this.l=+n,this.opacity=+d}function Fa(f,A,n){return 255*(f<60?A+(n-A)*f/60:f<180?n:f<240?A+(n-A)*(240-f)/60:A)}function dr(f,A,n,d,k){var H=f*f,ce=H*f;return((1-3*f+3*H-ce)*A+(4-6*H+3*ce)*n+(1+3*f+3*H-3*ce)*d+ce*k)/6}xr(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}),xr(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:Ga,toString:Ga})),xr(er,function(f,A,n,d){return 1===arguments.length?Ca(f):new er(f,A,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),A=isNaN(f)||isNaN(this.s)?0:this.s,n=this.l,d=n+(n<.5?n:1-n)*A,k=2*n-d;return new Dr(Fa(f>=240?f-240:f+120,k,d),Fa(f,k,d),Fa(f<120?f+240:f-120,k,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 Rr=f=>()=>f;function mr(f,A){var n=A-f;return n?function(f,A){return function(n){return f+n*A}}(f,n):Rr(isNaN(f)?A:f)}const fa=function f(A){var n=function(f){return 1==(f=+f)?mr:function(A,n){return n-A?function(f,A,n){return f=Math.pow(f,n),A=Math.pow(A,n)-f,n=1/n,function(d){return Math.pow(f+d*A,n)}}(A,n,f):Rr(isNaN(A)?n:A)}}(A);function d(k,H){var ce=n((k=Kn(k)).r,(H=Kn(H)).r),Le=n(k.g,H.g),dt=n(k.b,H.b),pt=mr(k.opacity,H.opacity);return function(Dt){return k.r=ce(Dt),k.g=Le(Dt),k.b=dt(Dt),k.opacity=pt(Dt),k+""}}return d.gamma=f,d}(1);function ra(f){return function(A){var ce,Le,n=A.length,d=new Array(n),k=new Array(n),H=new Array(n);for(ce=0;ce<n;++ce)Le=Kn(A[ce]),d[ce]=Le.r||0,k[ce]=Le.g||0,H[ce]=Le.b||0;return d=f(d),k=f(k),H=f(H),Le.opacity=1,function(dt){return Le.r=d(dt),Le.g=k(dt),Le.b=H(dt),Le+""}}}function Ya(f,A){var ce,n=A?A.length:0,d=f?Math.min(n,f.length):0,k=new Array(d),H=new Array(n);for(ce=0;ce<d;++ce)k[ce]=Wt(f[ce],A[ce]);for(;ce<n;++ce)H[ce]=A[ce];return function(Le){for(ce=0;ce<d;++ce)H[ce]=k[ce](Le);return H}}function Xe(f,A){var n=new Date;return f=+f,A=+A,function(d){return n.setTime(f*(1-d)+A*d),n}}function ye(f,A){return f=+f,A=+A,function(n){return f*(1-n)+A*n}}function Q(f,A){var k,n={},d={};for(k in(null===f||"object"!=typeof f)&&(f={}),(null===A||"object"!=typeof A)&&(A={}),A)k in f?n[k]=Wt(f[k],A[k]):d[k]=A[k];return function(H){for(k in n)d[k]=n[k](H);return d}}ra(function(f){var A=f.length-1;return function(n){var d=n<=0?n=0:n>=1?(n=1,A-1):Math.floor(n*A),k=f[d],H=f[d+1];return dr((n-d/A)*A,d>0?f[d-1]:2*k-H,k,H,d<A-1?f[d+2]:2*H-k)}}),ra(function(f){var A=f.length;return function(n){var d=Math.floor(((n%=1)<0?++n:n)*A);return dr((n-d/A)*A,f[(d+A-1)%A],f[d%A],f[(d+1)%A],f[(d+2)%A])}});var ae=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qe=new RegExp(ae.source,"g");function Ct(f,A){var d,k,H,n=ae.lastIndex=Qe.lastIndex=0,ce=-1,Le=[],dt=[];for(f+="",A+="";(d=ae.exec(f))&&(k=Qe.exec(A));)(H=k.index)>n&&(H=A.slice(n,H),Le[ce]?Le[ce]+=H:Le[++ce]=H),(d=d[0])===(k=k[0])?Le[ce]?Le[ce]+=k:Le[++ce]=k:(Le[++ce]=null,dt.push({i:ce,x:ye(d,k)})),n=Qe.lastIndex;return n<A.length&&(H=A.slice(n),Le[ce]?Le[ce]+=H:Le[++ce]=H),Le.length<2?dt[0]?function(f){return function(A){return f(A)+""}}(dt[0].x):function(f){return function(){return f}}(A):(A=dt.length,function(pt){for(var Ht,Dt=0;Dt<A;++Dt)Le[(Ht=dt[Dt]).i]=Ht.x(pt);return Le.join("")})}function ei(f,A){A||(A=[]);var k,n=f?Math.min(A.length,f.length):0,d=A.slice();return function(H){for(k=0;k<n;++k)d[k]=f[k]*(1-H)+A[k]*H;return d}}function Wt(f,A){var d,n=typeof A;return null==A||"boolean"===n?Rr(A):("number"===n?ye:"string"===n?(d=Zr(A))?(A=d,fa):Ct:A instanceof Zr?fa:A instanceof Date?Xe:function(f){return ArrayBuffer.isView(f)&&!(f instanceof DataView)}(A)?ei:Array.isArray(A)?Ya:"function"!=typeof A.valueOf&&"function"!=typeof A.toString||isNaN(A)?Q:ye)(f,A)}var Fn,Gn,vn=0,wn=0,Qi=0,ma=0,Lr=0,us=0,ja="object"==typeof performance&&performance.now?performance:Date,ki="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(f){setTimeout(f,17)};function Nn(){return Lr||(ki(fs),Lr=ja.now()+us)}function fs(){Lr=0}function cr(){this._call=this._time=this._next=null}function Ys(f,A,n){var d=new cr;return d.restart(f,A,n),d}function xt(){Lr=(ma=ja.now())+us,vn=wn=0;try{!function(){Nn(),++vn;for(var A,f=Fn;f;)(A=Lr-f._time)>=0&&f._call.call(null,A),f=f._next;--vn}()}finally{vn=0,function(){for(var f,n,A=Fn,d=1/0;A;)A._call?(d>A._time&&(d=A._time),f=A,A=A._next):(n=A._next,A._next=null,A=f?f._next=n:Fn=n);Gn=f,je(d)}(),Lr=0}}function re(){var f=ja.now(),A=f-ma;A>1e3&&(us-=A,ma=f)}function je(f){vn||(wn&&(wn=clearTimeout(wn)),f-Lr>24?(f<1/0&&(wn=setTimeout(xt,f-ja.now()-us)),Qi&&(Qi=clearInterval(Qi))):(Qi||(ma=ja.now(),Qi=setInterval(re,1e3)),vn=1,ki(xt)))}function Mt(f,A,n){var d=new cr;return d.restart(k=>{d.stop(),f(k+A)},A=null==A?0:+A,n),d}cr.prototype=Ys.prototype={constructor:cr,restart:function(f,A,n){if("function"!=typeof f)throw new TypeError("callback is not a function");n=(null==n?Nn():+n)+(null==A?0:+A),!this._next&&Gn!==this&&(Gn?Gn._next=this:Fn=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,A,n,d,k,H){var ce=f.__transition;if(ce){if(n in ce)return}else f.__transition={};!function(f,A,n){var k,d=f.__transition;function ce(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(ce);4===ni.state?(ni.state=6,ni.timer.stop(),ni.on.call("interrupt",f,f.__data__,ni.index,ni.group),delete d[Dt]):+Dt<A&&(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,k=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))&&(k[++Ht]=ni);k.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=k.length;++Ht<Zt;)k[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[A],d)return;delete f.__transition}d[A]=n,n.timer=Ys(function(pt){n.state=1,n.timer.restart(ce,n.delay,n.time),n.delay<=pt&&ce(pt-n.delay)},0,n.time)}(f,n,{name:A,index:d,group:k,on:kt,tween:Kt,time:H.time,delay:H.delay,duration:H.duration,ease:H.ease,timer:null,state:0})}function Et(f,A){var n=zt(f,A);if(n.state>0)throw new Error("too late; already scheduled");return n}function It(f,A){var n=zt(f,A);if(n.state>3)throw new Error("too late; already running");return n}function zt(f,A){var n=f.__transition;if(!n||!(n=n[A]))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,A,n,d,k,H){var ce,Le,dt;return(ce=Math.sqrt(f*f+A*A))&&(f/=ce,A/=ce),(dt=f*n+A*d)&&(n-=f*dt,d-=A*dt),(Le=Math.sqrt(n*n+d*d))&&(n/=Le,d/=Le,dt/=Le),f*d<A*n&&(f=-f,A=-A,dt=-dt,ce=-ce),{translateX:k,translateY:H,rotate:Math.atan2(A,f)*Ei,skewX:Math.atan(dt)*Ei,scaleX:ce,scaleY:Le}}function wr(f,A,n,d){function k(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,A,null,n);bi.push({i:Hi-4,x:ye(pt,Ht)},{i:Hi-2,x:ye(Dt,Zt)})}else(Ht||Zt)&&ni.push("translate("+Ht+A+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(k(Ht)+"rotate(",null,d)-2,x:ye(pt,Dt)})):Dt&&Ht.push(k(Ht)+"rotate("+Dt+d)}(pt.rotate,Dt.rotate,Ht,Zt),function(pt,Dt,Ht,Zt){pt!==Dt?Zt.push({i:Ht.push(k(Ht)+"skewX(",null,d)-2,x:ye(pt,Dt)}):Dt&&Ht.push(k(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(k(ni)+"scale(",null,",",null,")");bi.push({i:Hi-4,x:ye(pt,Ht)},{i:Hi-2,x:ye(Dt,Zt)})}else(1!==Ht||1!==Zt)&&ni.push(k(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=wr(function(f){const A=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(f+"");return A.isIdentity?ji:hn(A.a,A.b,A.c,A.d,A.e,A.f)},"px, ","px)","deg)"),Ar=wr(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,A){var n,d;return function(){var k=It(this,f),H=k.tween;if(H!==n)for(var ce=0,Le=(d=n=H).length;ce<Le;++ce)if(d[ce].name===A){(d=d.slice()).splice(ce,1);break}k.tween=d}}function _r(f,A,n){var d,k;if("function"!=typeof n)throw new Error;return function(){var H=It(this,f),ce=H.tween;if(ce!==d){k=(d=ce).slice();for(var Le={name:A,value:n},dt=0,pt=k.length;dt<pt;++dt)if(k[dt].name===A){k[dt]=Le;break}dt===pt&&k.push(Le)}H.tween=k}}function an(f,A,n){var d=f._id;return f.each(function(){var k=It(this,d);(k.value||(k.value={}))[A]=n.apply(this,arguments)}),function(k){return zt(k,d).value[A]}}function fn(f,A){var n;return("number"==typeof A?ye:A instanceof Zr?fa:(n=Zr(A))?(A=n,fa):Ct)(f,A)}function kn(f){return function(){this.removeAttribute(f)}}function Pn(f){return function(){this.removeAttributeNS(f.space,f.local)}}function Da(f,A,n){var d,H,k=n+"";return function(){var ce=this.getAttribute(f);return ce===k?null:ce===d?H:H=A(d=ce,n)}}function Xr(f,A,n){var d,H,k=n+"";return function(){var ce=this.getAttributeNS(f.space,f.local);return ce===k?null:ce===d?H:H=A(d=ce,n)}}function ca(f,A,n){var d,k,H;return function(){var ce,dt,Le=n(this);return null==Le?void this.removeAttribute(f):(ce=this.getAttribute(f))===(dt=Le+"")?null:ce===d&&dt===k?H:(k=dt,H=A(d=ce,Le))}}function Wn(f,A,n){var d,k,H;return function(){var ce,dt,Le=n(this);return null==Le?void this.removeAttributeNS(f.space,f.local):(ce=this.getAttributeNS(f.space,f.local))===(dt=Le+"")?null:ce===d&&dt===k?H:(k=dt,H=A(d=ce,Le))}}function La(f,A){return function(n){this.setAttribute(f,A.call(this,n))}}function Rs(f,A){return function(n){this.setAttributeNS(f.space,f.local,A.call(this,n))}}function js(f,A){var n,d;function k(){var H=A.apply(this,arguments);return H!==d&&(n=(d=H)&&Rs(f,H)),n}return k._value=A,k}function Ma(f,A){var n,d;function k(){var H=A.apply(this,arguments);return H!==d&&(n=(d=H)&&La(f,H)),n}return k._value=A,k}function Il(f,A){return function(){Et(this,f).delay=+A.apply(this,arguments)}}function $o(f,A){return A=+A,function(){Et(this,f).delay=A}}function Cs(f,A){return function(){It(this,f).duration=+A.apply(this,arguments)}}function kl(f,A){return A=+A,function(){It(this,f).duration=A}}function $c(f,A){if("function"!=typeof A)throw new Error;return function(){It(this,f).ease=A}}function Nl(f,A,n){var d,k,H=function(f){return(f+"").trim().split(/^|\s+/).every(function(A){var n=A.indexOf(".");return n>=0&&(A=A.slice(0,n)),!A||"start"===A})}(A)?Et:It;return function(){var ce=H(this,f),Le=ce.on;Le!==d&&(k=(d=Le).copy()).on(A,n),ce.on=k}}var t1=Ki.prototype.constructor;function De(f){return function(){this.style.removeProperty(f)}}function qt(f,A,n){return function(d){this.style.setProperty(f,A.call(this,d),n)}}function ii(f,A,n){var d,k;function H(){var ce=A.apply(this,arguments);return ce!==k&&(d=(k=ce)&&qt(f,ce,n)),d}return H._value=A,H}function Xn(f){return function(A){this.textContent=f.call(this,A)}}function Bn(f){var A,n;function d(){var k=f.apply(this,arguments);return k!==n&&(A=(n=k)&&Xn(k)),A}return d._value=f,d}var Ns=0;function Ba(f,A,n,d){this._groups=f,this._parents=A,this._name=n,this._id=d}function os(){return++Ns}var Fs=Ki.prototype;Ba.prototype=function(f){return Ki().transition(f)}.prototype={constructor:Ba,select:function(f){var A=this._name,n=this._id;"function"!=typeof f&&(f=o(f));for(var d=this._groups,k=d.length,H=new Array(k),ce=0;ce<k;++ce)for(var Dt,Ht,Le=d[ce],dt=Le.length,pt=H[ce]=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],A,n,Zt,pt,zt(Dt,n)));return new Ba(H,this._parents,A,n)},selectAll:function(f){var A=this._name,n=this._id;"function"!=typeof f&&(f=S(f));for(var d=this._groups,k=d.length,H=[],ce=[],Le=0;Le<k;++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,A,n,Hi,Zt,bi);H.push(Zt),ce.push(Dt)}return new Ba(H,ce,A,n)},filter:function(f){"function"!=typeof f&&(f=U(f));for(var A=this._groups,n=A.length,d=new Array(n),k=0;k<n;++k)for(var dt,H=A[k],ce=H.length,Le=d[k]=[],pt=0;pt<ce;++pt)(dt=H[pt])&&f.call(dt,dt.__data__,pt,H)&&Le.push(dt);return new Ba(d,this._parents,this._name,this._id)},merge:function(f){if(f._id!==this._id)throw new Error;for(var A=this._groups,n=f._groups,d=A.length,H=Math.min(d,n.length),ce=new Array(d),Le=0;Le<H;++Le)for(var Zt,dt=A[Le],pt=n[Le],Dt=dt.length,Ht=ce[Le]=new Array(Dt),ni=0;ni<Dt;++ni)(Zt=dt[ni]||pt[ni])&&(Ht[ni]=Zt);for(;Le<d;++Le)ce[Le]=A[Le];return new Ba(ce,this._parents,this._name,this._id)},selection:function(){return new t1(this._groups,this._parents)},transition:function(){for(var f=this._name,A=this._id,n=os(),d=this._groups,k=d.length,H=0;H<k;++H)for(var dt,ce=d[H],Le=ce.length,pt=0;pt<Le;++pt)if(dt=ce[pt]){var Dt=zt(dt,A);tt(dt,f,n,pt,ce,{time:Dt.time+Dt.delay+Dt.duration,delay:0,duration:Dt.duration,ease:Dt.ease})}return new Ba(d,this._parents,f,n)},call:Fs.call,nodes:Fs.nodes,node:Fs.node,size:Fs.size,empty:Fs.empty,each:Fs.each,on:function(f,A){var n=this._id;return arguments.length<2?zt(this.node(),n).on.on(f):this.each(Nl(n,f,A))},attr:function(f,A){var n=le(f),d="transform"===n?Ar:fn;return this.attrTween(f,"function"==typeof A?(n.local?Wn:ca)(n,d,an(this,"attr."+f,A)):null==A?(n.local?Pn:kn)(n):(n.local?Xr:Da)(n,d,A))},attrTween:function(f,A){var n="attr."+f;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==A)return this.tween(n,null);if("function"!=typeof A)throw new Error;var d=le(f);return this.tween(n,(d.local?js:Ma)(d,A))},style:function(f,A,n){var d="transform"==(f+="")?Or:fn;return null==A?this.styleTween(f,function(f,A){var n,d,k;return function(){var H=ht(this,f),ce=(this.style.removeProperty(f),ht(this,f));return H===ce?null:H===n&&ce===d?k:k=A(n=H,d=ce)}}(f,d)).on("end.style."+f,De(f)):"function"==typeof A?this.styleTween(f,function(f,A,n){var d,k,H;return function(){var ce=ht(this,f),Le=n(this),dt=Le+"";return null==Le&&(this.style.removeProperty(f),dt=Le=ht(this,f)),ce===dt?null:ce===d&&dt===k?H:(k=dt,H=A(d=ce,Le))}}(f,d,an(this,"style."+f,A))).each(function(f,A){var n,d,k,Le,H="style."+A,ce="end."+H;return function(){var dt=It(this,f),pt=dt.on,Dt=null==dt.value[H]?Le||(Le=De(A)):void 0;(pt!==n||k!==Dt)&&(d=(n=pt).copy()).on(ce,k=Dt),dt.on=d}}(this._id,f)):this.styleTween(f,function(f,A,n){var d,H,k=n+"";return function(){var ce=ht(this,f);return ce===k?null:ce===d?H:H=A(d=ce,n)}}(f,d,A),n).on("end.style."+f,null)},styleTween:function(f,A,n){var d="style."+(f+="");if(arguments.length<2)return(d=this.tween(d))&&d._value;if(null==A)return this.tween(d,null);if("function"!=typeof A)throw new Error;return this.tween(d,ii(f,A,null==n?"":n))},text:function(f){return this.tween("text","function"==typeof f?function(f){return function(){var A=f(this);this.textContent=null==A?"":A}}(an(this,"text",f)):function(f){return function(){this.textContent=f}}(null==f?"":f+""))},textTween:function(f){var A="text";if(arguments.length<1)return(A=this.tween(A))&&A._value;if(null==f)return this.tween(A,null);if("function"!=typeof f)throw new Error;return this.tween(A,Bn(f))},remove:function(){return this.on("end.remove",(f=this._id,function(){var A=this.parentNode;for(var n in this.__transition)if(+n!==f)return;A&&A.removeChild(this)}));var f},tween:function(f,A){var n=this._id;if(f+="",arguments.length<2){for(var ce,d=zt(this.node(),n).tween,k=0,H=d.length;k<H;++k)if((ce=d[k]).name===f)return ce.value;return null}return this.each((null==A?Yn:_r)(n,f,A))},delay:function(f){var A=this._id;return arguments.length?this.each(("function"==typeof f?Il:$o)(A,f)):zt(this.node(),A).delay},duration:function(f){var A=this._id;return arguments.length?this.each(("function"==typeof f?Cs:kl)(A,f)):zt(this.node(),A).duration},ease:function(f){var A=this._id;return arguments.length?this.each($c(A,f)):zt(this.node(),A).ease},easeVarying:function(f){if("function"!=typeof f)throw new Error;return this.each(function(f,A){return function(){var n=A.apply(this,arguments);if("function"!=typeof n)throw new Error;It(this,f).ease=n}}(this._id,f))},end:function(){var f,A,n=this,d=n._id,k=n.size();return new Promise(function(H,ce){var Le={value:ce},dt={value:function(){0==--k&&H()}};n.each(function(){var pt=It(this,d),Dt=pt.on;Dt!==f&&((A=(f=Dt).copy())._.cancel.push(Le),A._.interrupt.push(Le),A._.end.push(dt)),pt.on=A}),0===k&&H()})},[Symbol.iterator]:Fs[Symbol.iterator]};var Ro={time:null,delay:0,duration:250,ease:function(f){return((f*=2)<=1?f*f*f:(f-=2)*f*f+2)/2}};function No(f,A){for(var n;!(n=f.__transition)||!(n=n[A]);)if(!(f=f.parentNode))throw new Error(`transition ${A} not found`);return n}Ki.prototype.interrupt=function(f){return this.each(function(){!function(f,A){var d,k,ce,n=f.__transition,H=!0;if(n){for(ce in A=null==A?null:A+"",n)(d=n[ce]).name===A?(k=d.state>2&&d.state<5,d.state=6,d.timer.stop(),d.on.call(k?"interrupt":"cancel",f,f.__data__,d.index,d.group),delete n[ce]):H=!1;H&&delete f.__transition}}(this,f)})},Ki.prototype.transition=function(f){var A,n;f instanceof Ba?(A=f._id,f=f._name):(A=os(),(n=Ro).time=Nn(),f=null==f?null:f+"");for(var d=this._groups,k=d.length,H=0;H<k;++H)for(var dt,ce=d[H],Le=ce.length,pt=0;pt<Le;++pt)(dt=ce[pt])&&tt(dt,f,A,pt,ce,n||No(dt,A));return new Ba(d,this._parents,f,A)};Math;function qs(f){return{type:f}}function ol(f,A){return f<A?-1:f>A?1:f>=A?0:NaN}function mc(f){let A=f,n=f;function d(ce,Le,dt,pt){for(null==dt&&(dt=0),null==pt&&(pt=ce.length);dt<pt;){const Dt=dt+pt>>>1;n(ce[Dt],Le)<0?dt=Dt+1:pt=Dt}return dt}return 1===f.length&&(A=(ce,Le)=>f(ce)-Le,n=function(f){return(A,n)=>ol(f(A),n)}(f)),{left:d,center:function(ce,Le,dt,pt){null==dt&&(dt=0),null==pt&&(pt=ce.length);const Dt=d(ce,Le,dt,pt-1);return Dt>dt&&A(ce[Dt-1],Le)>-A(ce[Dt],Le)?Dt-1:Dt},right:function(ce,Le,dt,pt){for(null==dt&&(dt=0),null==pt&&(pt=ce.length);dt<pt;){const Dt=dt+pt>>>1;n(ce[Dt],Le)>0?pt=Dt:dt=Dt+1}return dt}}}["w","e"].map(qs),["n","s"].map(qs),["n","w","e","s","nw","ne","sw","se"].map(qs);var gc=Math.sqrt(50),_c=Math.sqrt(10),vc=Math.sqrt(2);function Bl(f,A,n){var d=(A-f)/Math.max(0,n),k=Math.floor(Math.log(d)/Math.LN10),H=d/Math.pow(10,k);return k>=0?(H>=gc?10:H>=_c?5:H>=vc?2:1)*Math.pow(10,k):-Math.pow(10,-k)/(H>=gc?10:H>=_c?5:H>=vc?2:1)}function Ho(f,A,n){var d=Math.abs(A-f)/Math.max(0,n),k=Math.pow(10,Math.floor(Math.log(d)/Math.LN10)),H=d/k;return H>=gc?k*=10:H>=_c?k*=5:H>=vc&&(k*=2),A<f?-k:k}const lo=1e3,Ha=6e4,Ms=60*Ha,zs=24*Ms,yc=7*zs,f1=30*zs,bc=365*zs;var Hl=new Date,xc=new Date;function $r(f,A,n,d){function k(H){return f(H=0===arguments.length?new Date:new Date(+H)),H}return k.floor=function(H){return f(H=new Date(+H)),H},k.ceil=function(H){return f(H=new Date(H-1)),A(H,1),f(H),H},k.round=function(H){var ce=k(H),Le=k.ceil(H);return H-ce<Le-H?ce:Le},k.offset=function(H,ce){return A(H=new Date(+H),null==ce?1:Math.floor(ce)),H},k.range=function(H,ce,Le){var pt,dt=[];if(H=k.ceil(H),Le=null==Le?1:Math.floor(Le),!(H<ce&&Le>0))return dt;do{dt.push(pt=new Date(+H)),A(H,Le),f(H)}while(pt<H&&H<ce);return dt},k.filter=function(H){return $r(function(ce){if(ce>=ce)for(;f(ce),!H(ce);)ce.setTime(ce-1)},function(ce,Le){if(ce>=ce)if(Le<0)for(;++Le<=0;)for(;A(ce,-1),!H(ce););else for(;--Le>=0;)for(;A(ce,1),!H(ce););})},n&&(k.count=function(H,ce){return Hl.setTime(+H),xc.setTime(+ce),f(Hl),f(xc),Math.floor(n(Hl,xc))},k.every=function(H){return H=Math.floor(H),isFinite(H)&&H>0?H>1?k.filter(d?function(ce){return d(ce)%H==0}:function(ce){return k.count(0,ce)%H==0}):k:null}),k}var ll=$r(function(){},function(f,A){f.setTime(+f+A)},function(f,A){return A-f});ll.every=function(f){return f=Math.floor(f),isFinite(f)&&f>0?f>1?$r(function(A){A.setTime(Math.floor(A/f)*f)},function(A,n){A.setTime(+A+n*f)},function(A,n){return(n-A)/f}):ll:null};const b0=ll;const cl=$r(function(f){f.setTime(f-f.getMilliseconds())},function(f,A){f.setTime(+f+A*lo)},function(f,A){return(A-f)/lo},function(f){return f.getUTCSeconds()});const m1=$r(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*lo)},function(f,A){f.setTime(+f+A*Ha)},function(f,A){return(A-f)/Ha},function(f){return f.getMinutes()});const bo=$r(function(f){f.setTime(f-f.getMilliseconds()-f.getSeconds()*lo-f.getMinutes()*Ha)},function(f,A){f.setTime(+f+A*Ms)},function(f,A){return(A-f)/Ms},function(f){return f.getHours()});const Us=$r(f=>f.setHours(0,0,0,0),(f,A)=>f.setDate(f.getDate()+A),(f,A)=>(A-f-(A.getTimezoneOffset()-f.getTimezoneOffset())*Ha)/zs,f=>f.getDate()-1);function Ks(f){return $r(function(A){A.setDate(A.getDate()-(A.getDay()+7-f)%7),A.setHours(0,0,0,0)},function(A,n){A.setDate(A.getDate()+7*n)},function(A,n){return(n-A-(n.getTimezoneOffset()-A.getTimezoneOffset())*Ha)/yc})}var Uo=Ks(0),co=Ks(1),Co=(Ks(2),Ks(3),Ks(4));const hr=(Ks(5),Ks(6),$r(function(f){f.setDate(1),f.setHours(0,0,0,0)},function(f,A){f.setMonth(f.getMonth()+A)},function(f,A){return A.getMonth()-f.getMonth()+12*(A.getFullYear()-f.getFullYear())},function(f){return f.getMonth()}));var ur=$r(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,A){f.setFullYear(f.getFullYear()+A)},function(f,A){return A.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});ur.every=function(f){return isFinite(f=Math.floor(f))&&f>0?$r(function(A){A.setFullYear(Math.floor(A.getFullYear()/f)*f),A.setMonth(0,1),A.setHours(0,0,0,0)},function(A,n){A.setFullYear(A.getFullYear()+n*f)}):null};const ka=ur;const Qs=$r(function(f){f.setUTCSeconds(0,0)},function(f,A){f.setTime(+f+A*Ha)},function(f,A){return(A-f)/Ha},function(f){return f.getUTCMinutes()});const ho=$r(function(f){f.setUTCMinutes(0,0,0)},function(f,A){f.setTime(+f+A*Ms)},function(f,A){return(A-f)/Ms},function(f){return f.getUTCHours()});const C0=$r(function(f){f.setUTCHours(0,0,0,0)},function(f,A){f.setUTCDate(f.getUTCDate()+A)},function(f,A){return(A-f)/zs},function(f){return f.getUTCDate()-1});function hl(f){return $r(function(A){A.setUTCDate(A.getUTCDate()-(A.getUTCDay()+7-f)%7),A.setUTCHours(0,0,0,0)},function(A,n){A.setUTCDate(A.getUTCDate()+7*n)},function(A,n){return(n-A)/yc})}var M0=hl(0),y1=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,A){f.setUTCMonth(f.getUTCMonth()+A)},function(f,A){return A.getUTCMonth()-f.getUTCMonth()+12*(A.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,A){f.setUTCFullYear(f.getUTCFullYear()+A)},function(f,A){return A.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});ul.every=function(f){return isFinite(f=Math.floor(f))&&f>0?$r(function(A){A.setUTCFullYear(Math.floor(A.getUTCFullYear()/f)*f),A.setUTCMonth(0,1),A.setUTCHours(0,0,0,0)},function(A,n){A.setUTCFullYear(A.getUTCFullYear()+n*f)}):null};const fl=ul;function Zl(f,A,n,d,k,H){const ce=[[cl,1,lo],[cl,5,5e3],[cl,15,15e3],[cl,30,3e4],[H,1,Ha],[H,5,5*Ha],[H,15,15*Ha],[H,30,30*Ha],[k,1,Ms],[k,3,3*Ms],[k,6,6*Ms],[k,12,12*Ms],[d,1,zs],[d,2,2*zs],[n,1,yc],[A,1,f1],[A,3,3*f1],[f,1,bc]];function dt(pt,Dt,Ht){const Zt=Math.abs(Dt-pt)/Ht,ni=mc(([,,hi])=>hi).right(ce,Zt);if(ni===ce.length)return f.every(Ho(pt/bc,Dt/bc,Ht));if(0===ni)return b0.every(Math.max(Ho(pt,Dt,Ht),1));const[bi,Hi]=ce[Zt/ce[ni-1][2]<ce[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,ho,Qs),[mh,z4]=Zl(ka,hr,Uo,Us,bo,m1);function gh(f){if(0<=f.y&&f.y<100){var A=new Date(-1,f.m,f.d,f.H,f.M,f.S,f.L);return A.setFullYear(f.y),A}return new Date(f.y,f.m,f.d,f.H,f.M,f.S,f.L)}function _h(f){if(0<=f.y&&f.y<100){var A=new Date(Date.UTC(-1,f.m,f.d,f.H,f.M,f.S,f.L));return A.setUTCFullYear(f.y),A}return new Date(Date.UTC(f.y,f.m,f.d,f.H,f.M,f.S,f.L))}function pl(f,A,n){return{y:f,m:A,d:n,H:0,M:0,S:0,L:0}}var b1={"-":"",_:" ",0:"0"},Qa=/^\s*\d+/,U4=/^%/,vh=/[\\^$*+?|[\]().{}]/g;function ar(f,A,n){var d=f<0?"-":"",k=(d?-f:f)+"",H=k.length;return d+(H<n?new Array(n-H+1).join(A)+k:k)}function Xu(f){return f.replace(vh,"\\$&")}function wc(f){return new RegExp("^(?:"+f.map(Xu).join("|")+")","i")}function Ac(f){return new Map(f.map((A,n)=>[A.toLowerCase(),n]))}function yh(f,A,n){var d=Qa.exec(A.slice(n,n+1));return d?(f.w=+d[0],n+d[0].length):-1}function x1(f,A,n){var d=Qa.exec(A.slice(n,n+1));return d?(f.u=+d[0],n+d[0].length):-1}function bh(f,A,n){var d=Qa.exec(A.slice(n,n+2));return d?(f.U=+d[0],n+d[0].length):-1}function A0(f,A,n){var d=Qa.exec(A.slice(n,n+2));return d?(f.V=+d[0],n+d[0].length):-1}function $u(f,A,n){var d=Qa.exec(A.slice(n,n+2));return d?(f.W=+d[0],n+d[0].length):-1}function ha(f,A,n){var d=Qa.exec(A.slice(n,n+4));return d?(f.y=+d[0],n+d[0].length):-1}function E0(f,A,n){var d=Qa.exec(A.slice(n,n+2));return d?(f.y=+d[0]+(+d[0]>68?1900:2e3),n+d[0].length):-1}function ef(f,A,n){var d=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(A.slice(n,n+6));return d?(f.Z=d[1]?0:-(d[2]+(d[3]||"00")),n+d[0].length):-1}function T0(f,A,n){var d=Qa.exec(A.slice(n,n+1));return d?(f.q=3*d[0]-3,n+d[0].length):-1}function xh(f,A,n){var d=Qa.exec(A.slice(n,n+2));return d?(f.m=d[0]-1,n+d[0].length):-1}function Ch(f,A,n){var d=Qa.exec(A.slice(n,n+2));return d?(f.d=+d[0],n+d[0].length):-1}function tf(f,A,n){var d=Qa.exec(A.slice(n,n+3));return d?(f.m=0,f.d=+d[0],n+d[0].length):-1}function Mh(f,A,n){var d=Qa.exec(A.slice(n,n+2));return d?(f.H=+d[0],n+d[0].length):-1}function nf(f,A,n){var d=Qa.exec(A.slice(n,n+2));return d?(f.M=+d[0],n+d[0].length):-1}function rf(f,A,n){var d=Qa.exec(A.slice(n,n+2));return d?(f.S=+d[0],n+d[0].length):-1}function Z4(f,A,n){var d=Qa.exec(A.slice(n,n+3));return d?(f.L=+d[0],n+d[0].length):-1}function V4(f,A,n){var d=Qa.exec(A.slice(n,n+6));return d?(f.L=Math.floor(d[0]/1e3),n+d[0].length):-1}function Ec(f,A,n){var d=U4.exec(A.slice(n,n+1));return d?n+d[0].length:-1}function gs(f,A,n){var d=Qa.exec(A.slice(n));return d?(f.Q=+d[0],n+d[0].length):-1}function S0(f,A,n){var d=Qa.exec(A.slice(n));return d?(f.s=+d[0],n+d[0].length):-1}function D0(f,A){return ar(f.getDate(),A,2)}function wh(f,A){return ar(f.getHours(),A,2)}function ls(f,A){return ar(f.getHours()%12||12,A,2)}function Tc(f,A){return ar(1+Us.count(ka(f),f),A,3)}function C1(f,A){return ar(f.getMilliseconds(),A,3)}function af(f,A){return C1(f,A)+"000"}function sf(f,A){return ar(f.getMonth()+1,A,2)}function Ah(f,A){return ar(f.getMinutes(),A,2)}function lf(f,A){return ar(f.getSeconds(),A,2)}function Eh(f){var A=f.getDay();return 0===A?7:A}function Th(f,A){return ar(Uo.count(ka(f)-1,f),A,2)}function L0(f){var A=f.getDay();return A>=4||0===A?Co(f):Co.ceil(f)}function cf(f,A){return f=L0(f),ar(Co.count(ka(f),f)+(4===ka(f).getDay()),A,2)}function hf(f){return f.getDay()}function df(f,A){return ar(co.count(ka(f)-1,f),A,2)}function O0(f,A){return ar(f.getFullYear()%100,A,2)}function uf(f,A){return ar((f=L0(f)).getFullYear()%100,A,2)}function ff(f,A){return ar(f.getFullYear()%1e4,A,4)}function G4(f,A){var n=f.getDay();return ar((f=n>=4||0===n?Co(f):Co.ceil(f)).getFullYear()%1e4,A,4)}function I0(f){var A=f.getTimezoneOffset();return(A>0?"-":(A*=-1,"+"))+ar(A/60|0,"0",2)+ar(A%60,"0",2)}function Sh(f,A){return ar(f.getUTCDate(),A,2)}function pf(f,A){return ar(f.getUTCHours(),A,2)}function Sc(f,A){return ar(f.getUTCHours()%12||12,A,2)}function mf(f,A){return ar(1+C0.count(fl(f),f),A,3)}function Dh(f,A){return ar(f.getUTCMilliseconds(),A,3)}function gf(f,A){return Dh(f,A)+"000"}function _f(f,A){return ar(f.getUTCMonth()+1,A,2)}function vf(f,A){return ar(f.getUTCMinutes(),A,2)}function Lh(f,A){return ar(f.getUTCSeconds(),A,2)}function yf(f){var A=f.getUTCDay();return 0===A?7:A}function bf(f,A){return ar(M0.count(fl(f)-1,f),A,2)}function Oh(f){var A=f.getUTCDay();return A>=4||0===A?dl(f):dl.ceil(f)}function xf(f,A){return f=Oh(f),ar(dl.count(fl(f),f)+(4===fl(f).getUTCDay()),A,2)}function Ih(f){return f.getUTCDay()}function kh(f,A){return ar(y1.count(fl(f)-1,f),A,2)}function Cf(f,A){return ar(f.getUTCFullYear()%100,A,2)}function Mf(f,A){return ar((f=Oh(f)).getUTCFullYear()%100,A,2)}function Vl(f,A){return ar(f.getUTCFullYear()%1e4,A,4)}function uo(f,A){var n=f.getUTCDay();return ar((f=n>=4||0===n?dl(f):dl.ceil(f)).getUTCFullYear()%1e4,A,4)}function W4(){return"+0000"}function wf(){return"%"}function k0(f){return+f}function Af(f){return Math.floor(+f/1e3)}function P0(f){return null===f?NaN:+f}(function(f){var A=f.dateTime,n=f.date,d=f.time,k=f.periods,H=f.days,ce=f.shortDays,Le=f.months,dt=f.shortMonths,pt=wc(k),Dt=Ac(k),Ht=wc(H),Zt=Ac(H),ni=wc(ce),bi=Ac(ce),Hi=wc(Le),hi=Ac(Le),Ui=wc(dt),Gi=Ac(dt),qi={a:function(ln){return ce[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:wh,I:ls,j:Tc,L:C1,m:sf,M:Ah,p:function(ln){return k[+(ln.getHours()>=12)]},q:function(ln){return 1+~~(ln.getMonth()/3)},Q:k0,s:Af,S:lf,u:Eh,U:Th,V:cf,w:hf,W:df,x:null,X:null,y:O0,Y:ff,Z:I0,"%":wf},cn={a:function(ln){return ce[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:Sh,e:Sh,f:gf,g:Mf,G:uo,H:pf,I:Sc,j:mf,L:Dh,m:_f,M:vf,p:function(ln){return k[+(ln.getUTCHours()>=12)]},q:function(ln){return 1+~~(ln.getUTCMonth()/3)},Q:k0,s:Af,S:Lh,u:yf,U:bf,V:xf,w:Ih,W:kh,x:null,X:null,y:Cf,Y:Vl,Z:W4,"%":wf},un={a:function(ln,Hn,ir){var Yi=ni.exec(Hn.slice(ir));return Yi?(ln.w=bi.get(Yi[0].toLowerCase()),ir+Yi[0].length):-1},A:function(ln,Hn,ir){var Yi=Ht.exec(Hn.slice(ir));return Yi?(ln.w=Zt.get(Yi[0].toLowerCase()),ir+Yi[0].length):-1},b:function(ln,Hn,ir){var Yi=Ui.exec(Hn.slice(ir));return Yi?(ln.m=Gi.get(Yi[0].toLowerCase()),ir+Yi[0].length):-1},B:function(ln,Hn,ir){var Yi=Hi.exec(Hn.slice(ir));return Yi?(ln.m=hi.get(Yi[0].toLowerCase()),ir+Yi[0].length):-1},c:function(ln,Hn,ir){return Qn(ln,A,Hn,ir)},d:Ch,e:Ch,f:V4,g:E0,G:ha,H:Mh,I:Mh,j:tf,L:Z4,m:xh,M:nf,p:function(ln,Hn,ir){var Yi=pt.exec(Hn.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:x1,U:bh,V:A0,w:yh,W:$u,x:function(ln,Hn,ir){return Qn(ln,n,Hn,ir)},X:function(ln,Hn,ir){return Qn(ln,d,Hn,ir)},y:E0,Y:ha,Z:ef,"%":Ec};function tn(ln,Hn){return function(ir){var Ps,zn,va,Yi=[],Ta=-1,Ir=0,ks=ln.length;for(ir instanceof Date||(ir=new Date(+ir));++Ta<ks;)37===ln.charCodeAt(Ta)&&(Yi.push(ln.slice(Ir,Ta)),null!=(zn=b1[Ps=ln.charAt(++Ta)])?Ps=ln.charAt(++Ta):zn="e"===Ps?" ":"0",(va=Hn[Ps])&&(Ps=va(ir,zn)),Yi.push(Ps),Ir=Ta+1);return Yi.push(ln.slice(Ir,Ta)),Yi.join("")}}function fr(ln,Hn){return function(ir){var Ir,ks,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(Hn&&!("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?(ks=(Ir=_h(pl(Yi.y,0,1))).getUTCDay(),Ir=ks>4||0===ks?y1.ceil(Ir):y1(Ir),Ir=C0.offset(Ir,7*(Yi.V-1)),Yi.y=Ir.getUTCFullYear(),Yi.m=Ir.getUTCMonth(),Yi.d=Ir.getUTCDate()+(Yi.w+6)%7):(ks=(Ir=gh(pl(Yi.y,0,1))).getDay(),Ir=ks>4||0===ks?co.ceil(Ir):co(Ir),Ir=Us.offset(Ir,7*(Yi.V-1)),Yi.y=Ir.getFullYear(),Yi.m=Ir.getMonth(),Yi.d=Ir.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),ks="Z"in Yi?_h(pl(Yi.y,0,1)).getUTCDay():gh(pl(Yi.y,0,1)).getDay(),Yi.m=0,Yi.d="W"in Yi?(Yi.w+6)%7+7*Yi.W-(ks+5)%7:Yi.w+7*Yi.U-(ks+6)%7);return"Z"in Yi?(Yi.H+=Yi.Z/100|0,Yi.M+=Yi.Z%100,_h(Yi)):gh(Yi)}}function Qn(ln,Hn,ir,Yi){for(var Ps,zn,Ta=0,Ir=Hn.length,ks=ir.length;Ta<Ir;){if(Yi>=ks)return-1;if(37===(Ps=Hn.charCodeAt(Ta++))){if(Ps=Hn.charAt(Ta++),!(zn=un[Ps in b1?Hn.charAt(Ta++):Ps])||(Yi=zn(ln,ir,Yi))<0)return-1}else if(Ps!=ir.charCodeAt(Yi++))return-1}return Yi}qi.x=tn(n,qi),qi.X=tn(d,qi),qi.c=tn(A,qi),cn.x=tn(n,cn),cn.X=tn(d,cn),cn.c=tn(A,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 R0=mc(ol).right,ml=(mc(P0),R0);function N0(f,A){return f=+f,A=+A,function(n){return Math.round(f*(1-n)+A*n)}}function Sf(f){return+f}var E1=[0,1];function Gl(f){return f}function F0(f,A){return(A-=f=+f)?function(n){return(n-f)/A}:function(f){return function(){return f}}(isNaN(A)?NaN:.5)}function Lf(f,A,n){var d=f[0],k=f[1],H=A[0],ce=A[1];return k<d?(d=F0(k,d),H=n(ce,H)):(d=F0(d,k),H=n(H,ce)),function(Le){return H(d(Le))}}function Of(f,A,n){var d=Math.min(f.length,A.length)-1,k=new Array(d),H=new Array(d),ce=-1;for(f[d]<f[0]&&(f=f.slice().reverse(),A=A.slice().reverse());++ce<d;)k[ce]=F0(f[ce],f[ce+1]),H[ce]=n(A[ce],A[ce+1]);return function(Le){var dt=ml(f,Le,1,d)-1;return H[dt](k[dt](Le))}}function Fh(f,A){return A.domain(f.domain()).range(f.range()).interpolate(f.interpolate()).clamp(f.clamp()).unknown(f.unknown())}function T1(){return function(){var d,k,H,Le,dt,pt,f=E1,A=E1,n=Wt,ce=Gl;function Dt(){var Zt=Math.min(f.length,A.length);return ce!==Gl&&(ce=function(f,A){var n;return f>A&&(n=f,f=A,A=n),function(d){return Math.max(f,Math.min(A,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),A,n)))(d(ce(Zt)))}return Ht.invert=function(Zt){return ce(k((pt||(pt=Le(A,f.map(d),ye)))(Zt)))},Ht.domain=function(Zt){return arguments.length?(f=Array.from(Zt,Sf),Dt()):f.slice()},Ht.range=function(Zt){return arguments.length?(A=Array.from(Zt),Dt()):A.slice()},Ht.rangeRound=function(Zt){return A=Array.from(Zt),n=N0,Dt()},Ht.clamp=function(Zt){return arguments.length?(ce=!!Zt||Gl,Dt()):ce!==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,k=ni,Dt()}}()(Gl,Gl)}function gl(f,A){switch(arguments.length){case 0:break;case 1:this.range(f);break;default:this.range(A).domain(f)}return this}var Oc,H0=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Lc(f){if(!(A=H0.exec(f)))throw new Error("invalid format: "+f);var A;return new S1({fill:A[1],align:A[2],sign:A[3],symbol:A[4],zero:A[5],width:A[6],comma:A[7],precision:A[8]&&A[8].slice(1),trim:A[9],type:A[10]})}function S1(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 L1(f,A){if((n=(f=A?f.toExponential(A-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=L1(Math.abs(f)))?f[1]:NaN}function Z0(f,A){var n=L1(f,A);if(!n)return f+"";var d=n[0],k=n[1];return k<0?"0."+new Array(-k).join("0")+d:d.length>k+1?d.slice(0,k+1)+"."+d.slice(k+1):d+new Array(k-d.length+2).join("0")}Lc.prototype=S1.prototype,S1.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 I1={"%":(f,A)=>(100*f).toFixed(A),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,A)=>f.toExponential(A),f:(f,A)=>f.toFixed(A),g:(f,A)=>f.toPrecision(A),o:f=>Math.round(f).toString(8),p:(f,A)=>Z0(100*f,A),r:Z0,s:function(f,A){var n=L1(f,A);if(!n)return f+"";var d=n[0],k=n[1],H=k-(Oc=3*Math.max(-8,Math.min(8,Math.floor(k/3))))+1,ce=d.length;return H===ce?d:H>ce?d+new Array(H-ce+1).join("0"):H>0?d.slice(0,H)+"."+d.slice(H):"0."+new Array(1-H).join("0")+L1(f,Math.max(0,A+H-1))[0]},X:f=>Math.round(f).toString(16).toUpperCase(),x:f=>Math.round(f).toString(16)};function V0(f){return f}var Ic,G0,Vh,k1=Array.prototype.map,Wl=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Yh(f){var A=f.domain;return f.ticks=function(n){var d=A();return function(f,A,n){var d,H,ce,Le,k=-1;if(n=+n,(f=+f)==(A=+A)&&n>0)return[f];if((d=A<f)&&(H=f,f=A,A=H),0===(Le=Bl(f,A,n))||!isFinite(Le))return[];if(Le>0){let dt=Math.round(f/Le),pt=Math.round(A/Le);for(dt*Le<f&&++dt,pt*Le>A&&--pt,ce=new Array(H=pt-dt+1);++k<H;)ce[k]=(dt+k)*Le}else{Le=-Le;let dt=Math.round(f*Le),pt=Math.round(A*Le);for(dt/Le<f&&++dt,pt/Le>A&&--pt,ce=new Array(H=pt-dt+1);++k<H;)ce[k]=(dt+k)/Le}return d&&ce.reverse(),ce}(d[0],d[d.length-1],null==n?10:n)},f.tickFormat=function(n,d){var k=A();return function(f,A,n,d){var H,k=Ho(f,A,n);switch((d=Lc(null==d?",f":d)).type){case"s":var ce=Math.max(Math.abs(f),Math.abs(A));return null==d.precision&&!isNaN(H=function(f,A){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(_l(A)/3)))-_l(Math.abs(f)))}(k,ce))&&(d.precision=H),Vh(d,ce);case"":case"e":case"g":case"p":case"r":null==d.precision&&!isNaN(H=function(f,A){return f=Math.abs(f),A=Math.abs(A)-f,Math.max(0,_l(A)-_l(f))+1}(k,Math.max(Math.abs(f),Math.abs(A))))&&(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)))}(k))&&(d.precision=H-2*("%"===d.type))}return G0(d)}(k[0],k[k.length-1],null==n?10:n,d)},f.nice=function(n){null==n&&(n=10);var dt,pt,d=A(),k=0,H=d.length-1,ce=d[k],Le=d[H],Dt=10;for(Le<ce&&(pt=ce,ce=Le,Le=pt,pt=k,k=H,H=pt);Dt-- >0;){if((pt=Bl(ce,Le,n))===dt)return d[k]=ce,d[H]=Le,A(d);if(pt>0)ce=Math.floor(ce/pt)*pt,Le=Math.ceil(Le/pt)*pt;else{if(!(pt<0))break;ce=Math.ceil(ce*pt)/pt,Le=Math.floor(Le*pt)/pt}dt=pt}return f},f}function Er(){var f=T1();return f.copy=function(){return Fh(f,Er())},gl.apply(f,arguments),Yh(f)}function Y0(f,A,n){f=+f,A=+A,n=(k=arguments.length)<2?(A=f,f=0,1):k<3?1:+n;for(var d=-1,k=0|Math.max(0,Math.ceil((A-f)/n)),H=new Array(k);++d<k;)H[d]=f+d*n;return H}Ic=function(f){var A=void 0===f.grouping||void 0===f.thousands?V0:function(f,A){return function(n,d){for(var k=n.length,H=[],ce=0,Le=f[0],dt=0;k>0&&Le>0&&(dt+Le+1>d&&(Le=Math.max(1,d-dt)),H.push(n.substring(k-=Le,k+Le)),!((dt+=Le+1)>d));)Le=f[ce=(ce+1)%f.length];return H.reverse().join(A)}}(k1.call(f.grouping,Number),f.thousands+""),n=void 0===f.currency?"":f.currency[0]+"",d=void 0===f.currency?"":f.currency[1]+"",k=void 0===f.decimal?".":f.decimal+"",H=void 0===f.numerals?V0:function(f){return function(A){return A.replace(/[0-9]/g,function(n){return f[+n]})}}(k1.call(f.numerals,String)),ce=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=Lc(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"):I1[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():"",fr="$"===Hi?d:/[%p]/.test(un)?ce:"",Qn=I1[un],Br=/[defgprs%]/.test(un);function or(dn){var lr,Ea,br,bn=tn,gn=fr;if("c"===un)gn=Qn(dn)+gn,dn="";else{var pr=(dn=+dn)<0||1/dn<0;if(dn=isNaN(dn)?dt:Qn(Math.abs(dn),qi),cn&&(dn=function(f){e:for(var k,A=f.length,n=1,d=-1;n<A;++n)switch(f[n]){case".":d=k=n;break;case"0":0===d&&(d=n),k=n;break;default:if(!+f[n])break e;d>0&&(d=0)}return d>0?f.slice(0,d)+f.slice(k+1):f}(dn)),pr&&0==+dn&&"+"!==bi&&(pr=!1),bn=(pr?"("===bi?bi:Le:"-"===bi||"("===bi?"":bi)+bn,gn=("s"===un?Wl[8+Oc/3]:"")+gn+(pr&&"("===bi?")":""),Br)for(lr=-1,Ea=dn.length;++lr<Ea;)if(48>(br=dn.charCodeAt(lr))||br>57){gn=(46===br?k+dn.slice(lr+1):dn.slice(lr))+gn,dn=dn.slice(0,lr);break}}Gi&&!hi&&(dn=A(dn,1/0));var Ua=bn.length+dn.length+gn.length,$n=Ua<Ui?new Array(Ui-Ua+1).join(Zt):"";switch(Gi&&hi&&(dn=A($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,Ua=$n.length>>1)+bn+dn+gn+$n.slice(Ua);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=Lc(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=Ic.format,Vh=Ic.formatPrefix;const jh=Symbol("implicit");function P1(){var f=new Map,A=[],n=[],d=jh;function k(H){var ce=H+"",Le=f.get(ce);if(!Le){if(d!==jh)return d;f.set(ce,Le=A.push(H))}return n[(Le-1)%n.length]}return k.domain=function(H){if(!arguments.length)return A.slice();A=[],f=new Map;for(const ce of H){const Le=ce+"";f.has(Le)||f.set(Le,A.push(ce))}return k},k.range=function(H){return arguments.length?(n=Array.from(H),k):n.slice()},k.unknown=function(H){return arguments.length?(d=H,k):d},k.copy=function(){return P1(A,n).unknown(d)},gl.apply(k,arguments),k}function Tr(){var H,ce,f=P1().unknown(void 0),A=f.domain,n=f.range,d=0,k=1,Le=!1,dt=0,pt=0,Dt=.5;function Ht(){var Zt=A().length,ni=k<d,bi=ni?k:d,Hi=ni?d:k;H=(Hi-bi)/Math.max(1,Zt-dt+2*pt),Le&&(H=Math.floor(H)),bi+=(Hi-bi-H*(Zt-dt))*Dt,ce=H*(1-dt),Le&&(bi=Math.round(bi),ce=Math.round(ce));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?(A(Zt),Ht()):A()},f.range=function(Zt){return arguments.length?([d,k]=Zt,d=+d,k=+k,Ht()):[d,k]},f.rangeRound=function(Zt){return[d,k]=Zt,d=+d,k=+k,Le=!0,Ht()},f.bandwidth=function(){return ce},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(A(),[d,k]).round(Le).paddingInner(dt).paddingOuter(pt).align(Dt)},gl.apply(Ht(),arguments)}function Rf(f,A,n=P0){if(d=f.length){if((A=+A)<=0||d<2)return+n(f[0],0,f);if(A>=1)return+n(f[d-1],d-1,f);var d,k=(d-1)*A,H=Math.floor(k),ce=+n(f[H],H,f);return ce+(+n(f[H+1],H+1,f)-ce)*(k-H)}}function Qh(){var d,f=[],A=[],n=[];function k(){var ce=0,Le=Math.max(1,A.length);for(n=new Array(Le-1);++ce<Le;)n[ce-1]=Rf(f,ce/Le);return H}function H(ce){return null==ce||isNaN(ce=+ce)?d:A[ml(n,ce)]}return H.invertExtent=function(ce){var Le=A.indexOf(ce);return Le<0?[NaN,NaN]:[Le>0?n[Le-1]:f[0],Le<n.length?n[Le]:f[f.length-1]]},H.domain=function(ce){if(!arguments.length)return f.slice();f=[];for(let Le of ce)null!=Le&&!isNaN(Le=+Le)&&f.push(Le);return f.sort(ol),k()},H.range=function(ce){return arguments.length?(A=Array.from(ce),k()):A.slice()},H.unknown=function(ce){return arguments.length?(d=ce,H):d},H.quantiles=function(){return n.slice()},H.copy=function(){return Qh().domain(f).range(A).unknown(d)},gl.apply(H,arguments)}function Jh(f){this._context=f}Jh.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,A){switch(f=+f,A=+A,this._point){case 0:this._point=1,this._line?this._context.lineTo(f,A):this._context.moveTo(f,A);break;case 1:this._point=2;default:this._context.lineTo(f,A)}}};const B1=Math.PI,H1=2*B1,jo=1e-6,z1=H1-jo;function Es(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Nf(){}function Yl(f,A,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-A),f._y2+f._k*(f._y1-n),f._x2,f._y2)}function Pc(f,A){this._context=f,this._k=(1-A)/6}function Rc(f,A){this._context=f,this._k=(1-A)/6}function $h(f){this._curve=f}function Zf(f,A,n,d,k){for(var ce,H=f.children,Le=-1,dt=H.length,pt=f.value&&(d-A)/f.value;++Le<dt;)(ce=H[Le]).y0=n,ce.y1=k,ce.x0=A,ce.x1=A+=ce.value*pt}function Vf(f,A,n,d,k){for(var ce,H=f.children,Le=-1,dt=H.length,pt=f.value&&(k-n)/f.value;++Le<dt;)(ce=H[Le]).x0=A,ce.x1=d,ce.y0=n,ce.y1=n+=ce.value*pt}function sd(f){var A=0,n=f.children,d=n&&n.length;if(d)for(;--d>=0;)A+=n[d].value;else A=1;f.value=A}function ud(f,A){f instanceof Map?(f=[void 0,f],void 0===A&&(A=n3)):void 0===A&&(A=i3);for(var d,H,ce,Le,dt,n=new zc(f),k=[n];d=k.pop();)if((ce=A(d.data))&&(dt=(ce=Array.from(ce)).length))for(d.children=ce,Le=dt-1;Le>=0;--Le)k.push(H=ce[Le]=new zc(ce[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 fd(f){void 0!==f.data.value&&(f.value=f.data.value),f.data=f.data.data}function Kf(f){var A=0;do{f.height=A}while((f=f.parent)&&f.height<++A)}function zc(f){this.data=f,this.depth=this.height=0,this.parent=null}Es.prototype=function(){return new Es}.prototype={constructor:Es,moveTo:function(f,A){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+A)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(f,A){this._+="L"+(this._x1=+f)+","+(this._y1=+A)},quadraticCurveTo:function(f,A,n,d){this._+="Q"+ +f+","+ +A+","+(this._x1=+n)+","+(this._y1=+d)},bezierCurveTo:function(f,A,n,d,k,H){this._+="C"+ +f+","+ +A+","+ +n+","+ +d+","+(this._x1=+k)+","+(this._y1=+H)},arcTo:function(f,A,n,d,k){var H=this._x1,ce=this._y1,Le=(n=+n)-(f=+f),dt=(d=+d)-(A=+A),pt=H-f,Dt=ce-A,Ht=pt*pt+Dt*Dt;if((k=+k)<0)throw new Error("negative radius: "+k);if(null===this._x1)this._+="M"+(this._x1=f)+","+(this._y1=A);else if(Ht>jo)if(Math.abs(Dt*Le-dt*pt)>jo&&k){var Zt=n-H,ni=d-ce,bi=Le*Le+dt*dt,Hi=Zt*Zt+ni*ni,hi=Math.sqrt(bi),Ui=Math.sqrt(Ht),Gi=k*Math.tan((B1-Math.acos((bi+Ht-Hi)/(2*hi*Ui)))/2),qi=Gi/Ui,cn=Gi/hi;Math.abs(qi-1)>jo&&(this._+="L"+(f+qi*pt)+","+(A+qi*Dt)),this._+="A"+k+","+k+",0,0,"+ +(Dt*Zt>pt*ni)+","+(this._x1=f+cn*Le)+","+(this._y1=A+cn*dt)}else this._+="L"+(this._x1=f)+","+(this._y1=A)},arc:function(f,A,n,d,k,H){f=+f,A=+A,H=!!H;var ce=(n=+n)*Math.cos(d),Le=n*Math.sin(d),dt=f+ce,pt=A+Le,Dt=1^H,Ht=H?d-k:k-d;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+dt+","+pt:(Math.abs(this._x1-dt)>jo||Math.abs(this._y1-pt)>jo)&&(this._+="L"+dt+","+pt),n&&(Ht<0&&(Ht=Ht%H1+H1),Ht>z1?this._+="A"+n+","+n+",0,1,"+Dt+","+(f-ce)+","+(A-Le)+"A"+n+","+n+",0,1,"+Dt+","+(this._x1=dt)+","+(this._y1=pt):Ht>jo&&(this._+="A"+n+","+n+",0,"+ +(Ht>=B1)+","+Dt+","+(this._x1=f+n*Math.cos(k))+","+(this._y1=A+n*Math.sin(k))))},rect:function(f,A,n,d){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+A)+"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,A){switch(f=+f,A=+A,this._point){case 0:this._point=1,this._line?this._context.lineTo(f,A):this._context.moveTo(f,A);break;case 1:this._point=2,this._x1=f,this._y1=A;break;case 2:this._point=3;default:Yl(this,f,A)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=A}},function f(A){function n(d){return new Pc(d,A)}return n.tension=function(d){return f(+d)},n}(0),Rc.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,A){switch(f=+f,A=+A,this._point){case 0:this._point=1,this._x3=f,this._y3=A;break;case 1:this._point=2,this._context.moveTo(this._x4=f,this._y4=A);break;case 2:this._point=3,this._x5=f,this._y5=A;break;default:Yl(this,f,A)}this._x0=this._x1,this._x1=this._x2,this._x2=f,this._y0=this._y1,this._y1=this._y2,this._y2=A}},function f(A){function n(d){return new Rc(d,A)}return n.tension=function(d){return f(+d)},n}(0),function(f){function A(n){return new $h(f(n))}A._curve=f}(function(f){return new Jh(f)}),$h.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(f,A){this._curve.point(A*Math.sin(f),A*-Math.cos(f))}},Math,Math,Math,Math,Math,Math,Math,Math,Math,m(7293),function f(A){function n(d,k,H,ce,Le){!function(f,A,n,d,k,H){for(var dt,pt,ni,bi,hi,Ui,Gi,qi,cn,un,tn,ce=[],Le=A.children,Dt=0,Ht=0,Zt=Le.length,Hi=A.value;Dt<Zt;){ni=k-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}ce.push(dt={value:hi,dice:ni<bi,children:Le.slice(Dt,Ht)}),dt.dice?Zf(dt,n,d,k,Hi?d+=bi*hi/Hi:H):Vf(dt,n,d,Hi?n+=ni*hi/Hi:k,H),Hi-=hi,Dt=Ht}}(A,d,k,H,ce,Le)}return n.ratio=function(d){return f((d=+d)>1?d:1)},n}((1+Math.sqrt(5))/2),zc.prototype=ud.prototype={constructor:zc,count:function(){return this.eachAfter(sd)},each:function(f,A){let n=-1;for(const d of this)f.call(A,d,++n,this);return this},eachAfter:function(f,A){for(var H,ce,Le,n=this,d=[n],k=[],dt=-1;n=d.pop();)if(k.push(n),H=n.children)for(ce=0,Le=H.length;ce<Le;++ce)d.push(H[ce]);for(;n=k.pop();)f.call(A,n,++dt,this);return this},eachBefore:function(f,A){for(var k,H,n=this,d=[n],ce=-1;n=d.pop();)if(f.call(A,n,++ce,this),k=n.children)for(H=k.length-1;H>=0;--H)d.push(k[H]);return this},find:function(f,A){let n=-1;for(const d of this)if(f.call(A,d,++n,this))return d},sum:function(f){return this.eachAfter(function(A){for(var n=+f(A.data)||0,d=A.children,k=d&&d.length;--k>=0;)n+=d[k].value;A.value=n})},sort:function(f){return this.eachBefore(function(A){A.children&&A.children.sort(f)})},path:function(f){for(var A=this,n=function(f,A){if(f===A)return f;var n=f.ancestors(),d=A.ancestors(),k=null;for(f=n.pop(),A=d.pop();f===A;)k=f,f=n.pop(),A=d.pop();return k}(A,f),d=[A];A!==n;)d.push(A=A.parent);for(var k=d.length;f!==n;)d.splice(k,0,f),f=f.parent;return d},ancestors:function(){for(var f=this,A=[f];f=f.parent;)A.push(f);return A},descendants:function(){return Array.from(this)},leaves:function(){var f=[];return this.eachBefore(function(A){A.children||f.push(A)}),f},links:function(){var f=this,A=[];return f.each(function(n){n!==f&&A.push({source:n.parent,target:n})}),A},copy:function(){return ud(this).eachBefore(fd)},[Symbol.iterator]:function*(){var A,d,k,H,f=this,n=[f];do{for(A=n.reverse(),n=[];f=A.pop();)if(yield f,d=f.children)for(k=0,H=d.length;k<H;++k)n.push(d[k])}while(n.length)}};const md=["caretElm"];function Xf(f,A){}const gd=function(f){return{model:f}};function $f(f,A){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,gd,n.context))}}function e6(f,A){if(1&f&&e._UZ(0,"span",6),2&f){const n=e.oxw();e.Q6J("innerHTML",n.title,e.oJD)}}function _d(f,A){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 vd(f,A){if(1&f){const n=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"ngx-charts-legend",5),e.NdJ("labelClick",function(k){return e.CHM(n),e.oxw().legendLabelClick.emit(k)})("labelActivate",function(k){return e.CHM(n),e.oxw().legendLabelActivate.emit(k)})("labelDeactivate",function(k){return e.CHM(n),e.oxw().legendLabelDeactivate.emit(k)}),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 yd=["*"],po=["ngx-charts-axis-label",""],W1=["ticksel"],t6=["ngx-charts-x-axis-ticks",""];function i6(f,A){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=A.$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,A){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 bd(f,A){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,r3,2,2,"g",5),e.qZA()),2&f){const n=A.$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,A){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("dimensionsChanged",function(k){return e.CHM(n),e.oxw().emitTicksHeight(k)}),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 xd(f,A){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,A){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=A.$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,A){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 Y1(f,A){if(1&f&&(e.O4$(),e._UZ(0,"line",9)),2&f){const n=e.oxw(3);e.uIk("x2",n.gridLineWidth)}}function j1(f,A){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,A){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Y1,1,1,"line",8),e.YNc(2,j1,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,A){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,o6,3,3,"g",7),e.qZA()),2&f){const n=A.$implicit,d=e.oxw();e.uIk("transform",d.transform(n)),e.xp6(1),e.Q6J("ngIf",d.showGridLines)}}function p2(f,A){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 Cd(f,A){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,A){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,Cd,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,A){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("dimensionsChanged",function(k){return e.CHM(n),e.oxw().emitTicksWidth(k)}),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,A){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 Ed=["ngx-charts-grid-panel",""],Ao=["ngx-charts-grid-panel-series",""];function q1(f,A){if(1&f&&(e.O4$(),e._UZ(0,"g",1)),2&f){const n=A.$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,A){if(1&f&&(e.O4$(),e._UZ(0,"stop")),2&f){const n=A.$implicit;e.Udp("stop-color",n.color)("stop-opacity",n.opacity),e.uIk("offset",n.offset+"%")}}function p6(f,A){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,A){if(1&f){const n=e.EpF();e.TgZ(0,"li",6),e.TgZ(1,"ngx-charts-legend-entry",7),e.NdJ("select",function(k){return e.CHM(n),e.oxw().labelClick.emit(k)})("activate",function(k){return e.CHM(n),e.oxw().activate(k)})("deactivate",function(k){return e.CHM(n),e.oxw().deactivate(k)}),e.qZA(),e.qZA()}if(2&f){const n=A.$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"],vr=function(f,A){return[f,A]},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,A){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,A){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",5),e.NdJ("dimensionsChanged",function(k){return e.CHM(n),e.oxw().updateXAxisHeight(k)}),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,A){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(k){return e.CHM(n),e.oxw().updateYAxisWidth(k)}),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,A){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",6),e.NdJ("dimensionsChanged",function(k){return e.CHM(n),e.oxw().updateXAxisHeight(k)}),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,A){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",7),e.NdJ("dimensionsChanged",function(k){return e.CHM(n),e.oxw().updateYAxisWidth(k)}),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 P6(f,A){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",8),e.NdJ("select",function(k){const ce=e.CHM(n).$implicit;return e.oxw().onClick(k,ce)})("activate",function(k){const ce=e.CHM(n).$implicit;return e.oxw().onActivate(k,ce)})("deactivate",function(k){const ce=e.CHM(n).$implicit;return e.oxw().onDeactivate(k,ce)})("dataLabelHeightChanged",function(k){const ce=e.CHM(n).index;return e.oxw().onDataLabelMaxHeightChanged(k,ce)}),e.qZA()}if(2&f){const n=A.$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,A){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",2),e.NdJ("select",function(k){return e.CHM(n),e.oxw().onClick(k)})("activate",function(k){return e.CHM(n),e.oxw().activate.emit(k)})("deactivate",function(k){return e.CHM(n),e.oxw().deactivate.emit(k)}),e.qZA()}if(2&f){const n=A.$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 J1(f,A){if(1&f){const n=e.EpF();e.O4$(),e.TgZ(0,"g",4),e.NdJ("dimensionsChanged",function(k){const ce=e.CHM(n).index;return e.oxw(2).dataLabelHeightChanged.emit({size:k,index:ce})}),e.qZA()}if(2&f){const n=A.$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 Vs(f,A){if(1&f&&(e.O4$(),e.TgZ(0,"g"),e.YNc(1,J1,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 e0=(()=>{class f{constructor(n,d,k){this.applicationRef=n,this.componentFactoryResolver=d,this.injector=k}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 k=Object.getOwnPropertyNames(d.inputs);for(const H of k)n.instance[H]=d.inputs[H]}if(void 0!==d.outputs){const k=Object.getOwnPropertyNames(d.outputs);for(const H of k)n.instance[H]=d.outputs[H]}}return n}appendComponent(n,d={},k){k||(k=this.getRootViewContainer());const H=this.getComponentRootNode(k),ce=new v.u0(H,this.componentFactoryResolver,this.applicationRef,this.injector),Le=new v.C5(n),dt=ce.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,A,n){n=n||{};let d,k,H,ce=null,Le=0;function dt(){Le=!1===n.leading?0:+new Date,ce=null,H=f.apply(d,k)}return function(){const pt=+new Date;!Le&&!1===n.leading&&(Le=pt);const Dt=A-(pt-Le);return d=this,k=arguments,Dt<=0?(clearTimeout(ce),ce=null,Le=pt,H=f.apply(d,k)):!ce&&!1!==n.trailing&&(ce=setTimeout(dt,Dt)),H}}function l4(f,A){return function(d,k,H){return{configurable:!0,enumerable:H.enumerable,get:function(){return Object.defineProperty(this,k,{configurable:!0,enumerable:H.enumerable,value:H2(H.value,f,A)}),this[k]}}}}var Dn=(()=>{return(f=Dn||(Dn={})).Top="top",f.Bottom="bottom",f.Left="left",f.Right="right",f.Center="center",Dn;var f})();function t0(f,A,n){return n===Dn.Top?f.top-7:n===Dn.Bottom?f.top+f.height-A.height+7:n===Dn.Center?f.top+f.height/2-A.height/2:void 0}function z2(f,A,n){return n===Dn.Left?f.left-7:n===Dn.Right?f.left+f.width-A.width+7:n===Dn.Center?f.left+f.width/2-A.width/2:void 0}class Ss{static calculateVerticalAlignment(A,n,d){let k=t0(A,n,d);return k+n.height>window.innerHeight&&(k=window.innerHeight-n.height),k}static calculateVerticalCaret(A,n,d,k){let H;k===Dn.Top&&(H=A.height/2-d.height/2+7),k===Dn.Bottom&&(H=n.height-A.height/2-d.height/2-7),k===Dn.Center&&(H=n.height/2-d.height/2);const ce=t0(A,n,k);return ce+n.height>window.innerHeight&&(H+=ce+n.height-window.innerHeight),H}static calculateHorizontalAlignment(A,n,d){let k=z2(A,n,d);return k+n.width>window.innerWidth&&(k=window.innerWidth-n.width),k}static calculateHorizontalCaret(A,n,d,k){let H;k===Dn.Left&&(H=A.width/2-d.width/2+7),k===Dn.Right&&(H=n.width-A.width/2-d.width/2-7),k===Dn.Center&&(H=n.width/2-d.width/2);const ce=z2(A,n,k);return ce+n.width>window.innerWidth&&(H+=ce+n.width-window.innerWidth),H}static shouldFlip(A,n,d,k){let H=!1;return d===Dn.Right&&A.left+A.width+n.width+k>window.innerWidth&&(H=!0),d===Dn.Left&&A.left-n.width-k<0&&(H=!0),d===Dn.Top&&A.top-n.height-k<0&&(H=!0),d===Dn.Bottom&&A.top+A.height+n.height+k>window.innerHeight&&(H=!0),H}static positionCaret(A,n,d,k,H){let ce=0,Le=0;return A===Dn.Right?(Le=-7,ce=Ss.calculateVerticalCaret(d,n,k,H)):A===Dn.Left?(Le=n.width,ce=Ss.calculateVerticalCaret(d,n,k,H)):A===Dn.Top?(ce=n.height,Le=Ss.calculateHorizontalCaret(d,n,k,H)):A===Dn.Bottom&&(ce=-7,Le=Ss.calculateHorizontalCaret(d,n,k,H)),{top:ce,left:Le}}static positionContent(A,n,d,k,H){let ce=0,Le=0;return A===Dn.Right?(Le=d.left+d.width+k,ce=Ss.calculateVerticalAlignment(d,n,H)):A===Dn.Left?(Le=d.left-n.width-k,ce=Ss.calculateVerticalAlignment(d,n,H)):A===Dn.Top?(ce=d.top-n.height-k,Le=Ss.calculateHorizontalAlignment(d,n,H)):A===Dn.Bottom&&(ce=d.top+d.height+k,Le=Ss.calculateHorizontalAlignment(d,n,H)),{top:ce,left:Le}}static determinePlacement(A,n,d,k){if(Ss.shouldFlip(d,n,A,k)){if(A===Dn.Right)return Dn.Left;if(A===Dn.Left)return Dn.Right;if(A===Dn.Top)return Dn.Bottom;if(A===Dn.Bottom)return Dn.Top}return A}}let gu=(()=>{class f{constructor(n,d,k){this.element=n,this.renderer=d,this.platformId=k}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 k=n.getBoundingClientRect();this.checkFlip(d,k),this.positionContent(n,d,k),this.showCaret&&this.positionCaret(d,k),setTimeout(()=>this.renderer.addClass(n,"animate"),1)}positionContent(n,d,k){const{top:H,left:ce}=Ss.positionContent(this.placement,k,d,this.spacing,this.alignment);this.renderer.setStyle(n,"top",`${H}px`),this.renderer.setStyle(n,"left",`${ce}px`)}positionCaret(n,d){const k=this.caretElm.nativeElement,H=k.getBoundingClientRect(),{top:ce,left:Le}=Ss.positionCaret(this.placement,d,n,H,this.alignment);this.renderer.setStyle(k,"top",`${ce}px`),this.renderer.setStyle(k,"left",`${Le}px`)}checkFlip(n,d){this.placement=Ss.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(md,5),2&n){let k;e.iGM(k=e.CRH())&&(d.caretElm=k.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,M.gn)([l4(100)],f.prototype,"onWindowResize",null),f})(),Wc=(()=>{class f extends class{constructor(A){this.injectionService=A,this.defaults={},this.components=new Map}getByType(A=this.type){return this.components.get(A)}create(A){return this.createByType(this.type,A)}createByType(A,n){n=this.assignDefaults(n);const d=this.injectComponent(A,n);return this.register(A,d),d}destroy(A){const n=this.components.get(A.componentType);if(n&&n.length){const d=n.indexOf(A);d>-1&&(n[d].destroy(),n.splice(d,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(A){const n=this.components.get(A);if(n&&n.length){let d=n.length-1;for(;d>=0;)this.destroy(n[d--])}}injectComponent(A,n){return this.injectionService.appendComponent(A,n)}assignDefaults(A){const n=Object.assign({},this.defaults.inputs),d=Object.assign({},this.defaults.outputs);return!A.inputs&&!A.outputs&&(A={inputs:A}),n&&(A.inputs=Object.assign(Object.assign({},n),A.inputs)),d&&(A.outputs=Object.assign(Object.assign({},d),A.outputs)),A}register(A,n){this.components.has(A)||this.components.set(A,[]),this.components.get(A).push(n)}}{constructor(n){super(n),this.type=gu}}return f.\u0275fac=function(n){return new(n||f)(e.LFG(e0))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac}),f})();var yr=(()=>{return(f=yr||(yr={})).Right="right",f.Below="below",yr;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=yr,this.LegendType=Qo}ngOnChanges(n){this.update()}update(){let n=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===yr.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!==yr.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([Wc]),e.TTD],ngContentSelectors:yd,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,_d,1,5,"ngx-charts-scale-legend",2),e.YNc(4,vd,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})(),vu=(()=>{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:k}=this.element.nativeElement;d&&k?(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 Yc(f){return"[object Date]"===toString.call(f)}let Yr=(()=>{class f{constructor(n,d,k,H){this.chartElement=n,this.zone=d,this.cd=k,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 vu(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 k=this.chartElement.nativeElement;if((0,t.NF)(this.platformId)&&null!==k.parentNode){const H=k.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,Yc(d.label)&&(d.label=d.label.toLocaleDateString()),d.series)for(let k=0;k<d.series.length;k++){const H=d.series[k];H.label=H.name,Yc(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,C.b)(200)).subscribe(k=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=d}cloneData(n){const d=[];for(const k of n){const H={name:k.name};if(void 0!==k.value&&(H.value=k.value),void 0!==k.series){H.series=[];for(const ce of k.series){const Le=Object.assign({},ce);H.series.push(Le)}}void 0!==k.extra&&(H.extra=JSON.parse(JSON.stringify(k.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 yu=(()=>{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:po,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 Jo(f,A=16){return"string"!=typeof f?"number"==typeof f?f+"":"":(f=f.trim()).length<=A?f:`${f.slice(0,A)}...`}function bu(f,A){if(f.length>A){const n=[],d=Math.floor(f.length/A);for(let k=0;k<f.length;k++)k%d==0&&n.push(f[k]);f=n}return f}var Xa=(()=>{return(f=Xa||(Xa={})).Start="start",f.Middle="middle",f.End="end",Xa;var f})();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.rotateTicks=!0,this.dimensionsChanged=new e.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Xa.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(k){return"Date"===k.constructor.name?k.toLocaleDateString():k.toLocaleString()};const d=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(k){return this.scale(k)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",d&&0!==d?(this.textTransform=`rotate(${d})`,this.textAnchor=Xa.End,this.verticalSpacing=10):this.textAnchor=Xa.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 ce=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let Le=ce;const dt=Math.floor(this.width/n.length);for(;Le>dt&&d>-90;)d-=30,Le=Math.cos(d*(Math.PI/180))*ce;return this.approxHeight=Math.max(Math.abs(Math.sin(d*(Math.PI/180))*ce),10),d}getTicks(){let n;const d=this.getMaxTicks(20),k=this.getMaxTicks(100);return this.tickValues?n=this.tickValues:this.scale.ticks?n=this.scale.ticks.apply(this.scale,[k]):(n=this.scale.domain(),n=bu(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?Jo(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(W1,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksElement=k.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,bd,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(xu,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksComponent=k.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,xd,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,xu,yu],encapsulation:2,changeDetection:0}),f})();function Gs(f,A,n,d,k,[H,ce,Le,dt]){let pt="";return pt=`M${[f+k,A]}`,pt+="h"+((n=0===(n=Math.floor(n))?1:n)-2*k),pt+=ce?`a${[k,k]} 0 0 1 ${[k,k]}`:`h${k}v${k}`,pt+="v"+((d=0===(d=Math.floor(d))?1:d)-2*k),pt+=dt?`a${[k,k]} 0 0 1 ${[-k,k]}`:`v${k}h${-k}`,pt+="h"+(2*k-n),pt+=Le?`a${[k,k]} 0 0 1 ${[-k,-k]}`:`h${-k}v${-k}`,pt+="v"+(2*k-d),pt+=H?`a${[k,k]} 0 0 1 ${[k,-k]}`:`v${-k}h${k}`,pt+="z",pt}let Cu=(()=>{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=Xa.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(k){return"Date"===k.constructor.name?k.toLocaleDateString():k.toLocaleString()},this.adjustedScale=n.bandwidth?function(k){return n(k)+.5*n.bandwidth()}:n,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case ga.Top:case ga.Bottom:this.transform=function(k){return"translate("+this.adjustedScale(k)+",0)"},this.textAnchor=Xa.Middle,this.y2=this.innerTickSize*d,this.y1=this.tickSpacing*d,this.dy=d<0?"0em":".71em";break;case ga.Left:this.transform=function(k){return"translate(0,"+this.adjustedScale(k)+")"},this.textAnchor=Xa.End,this.x2=this.innerTickSize*-d,this.x1=this.tickSpacing*-d,this.dy=".32em";break;case ga.Right:this.transform=function(k){return"translate(0,"+this.adjustedScale(k)+")"},this.textAnchor=Xa.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=Gs(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let n;const d=this.getMaxTicks(20),k=this.getMaxTicks(50);return this.tickValues?n=this.tickValues:this.scale.ticks?n=this.scale.ticks.apply(this.scale,[k]):(n=this.scale.domain(),n=bu(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?Jo(n,this.maxTickLength):n}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(k=>this.tickTrim(this.tickFormat(k)).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(W1,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksElement=k.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})(),$a=(()=>{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(Cu,5),2&n){let k;e.iGM(k=e.CRH())&&(d.ticksComponent=k.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,Cu,yu],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})(),To=(()=>{return(f=To||(To={}))[f.all="all"]="all",f[f.focus="focus"]="focus",f[f.mouseover="mouseover"]="mouseover",To;var f})();let Ds=(()=>{class f{constructor(n,d,k){this.tooltipService=n,this.viewContainerRef=d,this.renderer=k,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Dn.Top,this.tooltipAlignment=Dn.Center,this.tooltipType=ds.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=To.all,this.tooltipImmediateExit=!1,this.show=new e.vpe,this.hide=new e.vpe}get listensForFocus(){return this.tooltipShowEvent===To.all||this.tooltipShowEvent===To.focus}get listensForHover(){return this.tooltipShowEvent===To.all||this.tooltipShowEvent===To.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 k=this.createBoundOptions();this.component=this.tooltipService.create(k),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(Wc),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:[e0,Wc],imports:[[t.ez]]}),f})();function za(f){return f instanceof Date?f.toLocaleDateString():f.toLocaleString()}const V2={};function es(){let f=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return f=`a${f}`,V2[f]?es():(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:Ed,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,n0=(()=>{class f{ngOnChanges(n){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(n=>{let d,k,H,ce,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(),k=this.xScale.bandwidth()+d,H=this.dims.height,ce=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(),k=this.dims.width,H=this.yScale.bandwidth()+d,ce=0,Le=this.yScale(n.name)-d/2}return{name:n.name,class:dt,height:H,width:k,x:ce,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:Ao,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,q1,1,10,"g",0),2&n&&e.Q6J("ngForOf",d.gridPanels)},directives:[t.sg,to],encapsulation:2,changeDetection:0}),f})(),ts=(()=>{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 k=za(d);-1===n.findIndex(ce=>ce.label===k)&&n.push({label:d,formattedLabel:k,color:this.colors.getColor(d)})}return n}isActive(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(k=>n.label===k.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,Au]},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})(),Au=(()=>{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 k=[];return n.reverse().forEach((H,ce)=>{k.push(`${H} ${Math.round(100*d[ce])}%`)}),k.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})(),Ws=(()=>{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:A,margins:n,showXAxis:d=!1,showYAxis:k=!1,xAxisHeight:H=0,yAxisWidth:ce=0,showXLabel:Le=!1,showYLabel:dt=!1,showLegend:pt=!1,legendType:Dt=_i.Ordinal,legendPosition:Ht=yr.Right,columns:Zt=12}){let ni=n[3],bi=f,Hi=A-n[0]-n[2];if(pt&&Ht===yr.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)),k&&(bi-=5,bi-=ce,ni+=ce,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(A,n,d,k){"string"==typeof A&&(A=J2.find(H=>H.name===A)),this.colorDomain=A.domain,this.scaleType=n,this.domain=d,this.customColors=k,this.scale=this.generateColorScheme(A,n,this.domain)}generateColorScheme(A,n,d){let k;switch("string"==typeof A&&(A=J2.find(H=>H.name===A)),n){case _i.Quantile:k=Qh().range(A.domain).domain(d);break;case _i.Ordinal:k=P1().range(A.domain).domain(d);break;case _i.Linear:{const H=[...A.domain];1===H.length&&(H.push(H[0]),this.colorDomain=H);const ce=Y0(0,1,1/H.length);k=Er().range(H).domain(ce)}}return k}getColor(A){if(null==A)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(A))}{if("function"==typeof this.customColors)return this.customColors(A);const n=A.toString();let d;return this.customColors&&this.customColors.length>0&&(d=this.customColors.find(k=>k.name.toLowerCase()===n.toLowerCase())),d?d.value:this.scale(A)}}getLinearGradientStops(A,n){void 0===n&&(n=this.domain[0]);const d=Er().domain(this.domain).range([0,1]),k=Tr().domain(this.colorDomain).range([0,1]),H=this.getColor(A),ce=d(n),Le=this.getColor(n),dt=d(A);let pt=1,Dt=ce;const Ht=[];for(Ht.push({color:Le,offset:ce,originalOffset:ce,opacity:1});Dt<dt&&pt<this.colorDomain.length;){const Zt=this.colorDomain[pt],ni=k(Zt);if(ni<=ce)pt++;else{if(ni.toFixed(4)>=(dt-k.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===ce)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-ce)/(dt-ce)*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:[[Ws]]}),f})(),l0=(()=>{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"+es().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]],Pt)}(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=Gs(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===sr.Horizontal&&(n=Math.min(this.width,n),d=Gs(this.x,this.y,1,this.height,0,this.edges)):this.orientation===sr.Vertical?d=Gs(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===sr.Horizontal&&(d=Gs(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=Gs(this.x,this.y,this.width,this.height,n,this.edges)):this.orientation===sr.Horizontal&&(n=Math.min(this.width,n),d=Gs(this.x,this.y,this.width,this.height,n,this.edges)):d=Gs(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,ts],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=yr.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 k=this.yScaleMax?Math.max(this.yScaleMax,...n):Math.max(0,...n);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(k=Math.max(k,...this.yAxisTicks)),[d,k]}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 k=this.activeEntries.findIndex(H=>H.name===n.name&&H.value===n.value&&H.series===n.series);this.activeEntries.splice(k,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:n,entries:this.activeEntries})}}return f.\u0275fac=function(){let A;return function(d){return(A||(A=e.n5z(f)))(d||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(n,d,k){if(1&n&&e.Suo(k,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,vr,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,Qc,tr,$a]},styles:[oa],encapsulation:2,changeDetection:0}),f})(),f4=(()=>{class f extends Yr{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=yr.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 k of d.series)n.includes(k.label)||n.push(k.label);return n}getValueDomain(){const n=[];for(const H of this.results)for(const ce of H.series)n.includes(ce.value)||n.push(ce.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,k=!1){const H=Object.assign({},n);d&&(H.series=d.name);const ce=this.results.map(Le=>Le.series).flat().filter(Le=>k?Le.label===H.name:Le.name===H.name&&Le.series===H.series);this.activeEntries=[...ce],this.activate.emit({value:H,entries:this.activeEntries})}onDeactivate(n,d,k=!1){const H=Object.assign({},n);d&&(H.series=d.name),this.activeEntries=this.activeEntries.filter(ce=>k?ce.label!==H.name:!(ce.name===H.name&&ce.series===H.series)),this.deactivate.emit({value:H,entries:this.activeEntries})}}return f.\u0275fac=function(){let A;return function(d){return(A||(A=e.n5z(f)))(d||f)}}(),f.\u0275cmp=e.Xpm({type:f,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(n,d,k){if(1&n&&e.Suo(k,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,P6,1,17,"g",5),e.qZA(),e.qZA()),2&n&&(e.Q6J("view",e.WLB(15,vr,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,n0,t.O5,t.sg,tr,$a,Qc]},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 Is=(()=>{return(f=Is||(Is={})).positive="positive",f.negative="negative",Is;var f})();let Qc=(()=>{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),k={[Is.positive]:0,[Is.negative]:0};let ce,H=Is.positive;this.type===_a.Normalized&&(ce=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=za(Dt);H=pt>0?Is.positive:Is.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=k[H],hi=Hi+pt;k[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=k[H],hi=Hi+pt;k[H]+=pt,ce>0?(Hi=100*Hi/ce,hi=100*hi/ce):(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,A=>({"&":"&amp;","'":"&#x27;","`":"&#x60;",'"':"&quot;","<":"&lt;",">":"&gt;"}[A]))}(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,ce)=>ce>0?H+ce:H,0),k=this.series.map(H=>H.value).reduce((H,ce)=>ce<0?H+ce:H,0);n.total=d+k,n.x=0,n.y=0,n.height=this.yScale(n.total>0?d:k),n.width=this.xScale.bandwidth(),this.barsForDataLabels.push(n)}else this.barsForDataLabels=this.series.map(n=>{var d;const k={};return k.series=null!==(d=this.seriesName)&&void 0!==d?d:n.label,k.total=n.value,k.x=this.xScale(n.label),k.y=this.yScale(0),k.height=this.yScale(k.total)-this.yScale(0),k.width=this.xScale.bandwidth(),k})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Dn.Top,this.tooltipType=this.tooltipDisabled?void 0:ds.tooltip}isActive(n){return!!this.activeEntries&&void 0!==this.activeEntries.find(k=>n.name===k.name&&n.value===k.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,Vs,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,l0,Ds,Tu]},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})(),Tu=(()=>{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):za(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})(),Su=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ws]]}),f})(),Ou=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ws]]}),f})(),ku=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ws]]}),f})(),Sl=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ws]]}),f})(),m4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ws]]}),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:[[Ws]]}),f})(),I3=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ws,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:[[Ws]]}),f})(),C4=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ws]]}),f})(),J3=(()=>{class f{}return f.\u0275fac=function(n){return new(n||f)},f.\u0275mod=e.oAB({type:f}),f.\u0275inj=e.cJS({imports:[[Ws,ea,Su]]}),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:[Ws,d4,Su,Ou,ku,Sl,m4,I3,b4,ea,C4,J3]}),f})()},7977:(Ue,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:(Ue,K,m)=>{"use strict";const e=m(1131),t=m(196),v=m(3894);function s(C,c){this.name=C,this.body=c,this.decoders={},this.encoders={}}K.define=function(c,R){return new s(c,R)},s.prototype._createNamed=function(c){const R=this.name;function o(O){this._initNamed(O,R)}return v(o,c),o.prototype._initNamed=function(T,P){c.call(this,T,P)},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,R,o){return this._getDecoder(R).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,R,o){return this._getEncoder(R).encode(c,o)}},2769:(Ue,K,m)=>{"use strict";const e=m(3894),t=m(4919).b,v=m(2038).Buffer;function M(C,c){t.call(this,c),v.isBuffer(C)?(this.base=C,this.offset=0,this.length=C.length):this.error("Input not Buffer")}function s(C,c){if(Array.isArray(C))this.length=0,this.value=C.map(function(R){return s.isEncoderBuffer(R)||(R=new s(R,c)),this.length+=R.length,R},this);else if("number"==typeof C){if(!(0<=C&&C<=255))return c.error("non-byte EncoderBuffer value");this.value=C,this.length=1}else if("string"==typeof C)this.value=C,this.length=v.byteLength(C);else{if(!v.isBuffer(C))return c.error("Unsupported type: "+typeof C);this.value=C,this.length=C.length}}e(M,t),K.C=M,M.isDecoderBuffer=function(c){return c instanceof M||"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},M.prototype.save=function(){return{offset:this.offset,reporter:t.prototype.save.call(this)}},M.prototype.restore=function(c){const R=new M(this.base);return R.offset=c.offset,R.length=this.offset,this.offset=c.offset,t.prototype.restore.call(this,c.reporter),R},M.prototype.isEmpty=function(){return this.offset===this.length},M.prototype.readUInt8=function(c){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(c||"DecoderBuffer overrun")},M.prototype.skip=function(c,R){if(!(this.offset+c<=this.length))return this.error(R||"DecoderBuffer overrun");const o=new M(this.base);return o._reporterState=this._reporterState,o.offset=this.offset,o.length=this.offset+c,this.offset+=c,o},M.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,R){return c||(c=v.alloc(this.length)),R||(R=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(o){o.join(c,R),R+=o.length}):("number"==typeof this.value?c[R]=this.value:"string"==typeof this.value?c.write(this.value,R):v.isBuffer(this.value)&&this.value.copy(c,R),R+=this.length)),c}},7813:(Ue,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:(Ue,K,m)=>{"use strict";const e=m(4919).b,t=m(2769).R,v=m(2769).C,M=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"],C=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function R(O,T,P){const S={};this._baseState=S,S.name=P,S.enc=O,S.parent=T||null,S.children=null,S.tag=null,S.args=null,S.reverseArgs=null,S.choice=null,S.optional=!1,S.any=!1,S.obj=!1,S.use=null,S.useDecoder=null,S.key=null,S.default=null,S.explicit=null,S.implicit=null,S.contains=null,S.parent||(S.children=[],this._wrap())}Ue.exports=R;const o=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];R.prototype.clone=function(){const T=this._baseState,P={};o.forEach(function(D){P[D]=T[D]});const S=new this.constructor(P.parent);return S._baseState=P,S},R.prototype._wrap=function(){const T=this._baseState;C.forEach(function(P){this[P]=function(){const D=new this.constructor(this);return T.children.push(D),D[P].apply(D,arguments)}},this)},R.prototype._init=function(T){const P=this._baseState;M(null===P.parent),T.call(this),P.children=P.children.filter(function(S){return S._baseState.parent===this},this),M.equal(P.children.length,1,"Root node can have only one child")},R.prototype._useArgs=function(T){const P=this._baseState,S=T.filter(function(D){return D instanceof this.constructor},this);T=T.filter(function(D){return!(D instanceof this.constructor)},this),0!==S.length&&(M(null===P.children),P.children=S,S.forEach(function(D){D._baseState.parent=this},this)),0!==T.length&&(M(null===P.args),P.args=T,P.reverseArgs=T.map(function(D){if("object"!=typeof D||D.constructor!==Object)return D;const w={};return Object.keys(D).forEach(function(U){U==(0|U)&&(U|=0),w[D[U]]=U}),w}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(O){R.prototype[O]=function(){throw new Error(O+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(O){R.prototype[O]=function(){const P=this._baseState,S=Array.prototype.slice.call(arguments);return M(null===P.tag),P.tag=O,this._useArgs(S),this}}),R.prototype.use=function(T){M(T);const P=this._baseState;return M(null===P.use),P.use=T,this},R.prototype.optional=function(){return this._baseState.optional=!0,this},R.prototype.def=function(T){const P=this._baseState;return M(null===P.default),P.default=T,P.optional=!0,this},R.prototype.explicit=function(T){const P=this._baseState;return M(null===P.explicit&&null===P.implicit),P.explicit=T,this},R.prototype.implicit=function(T){const P=this._baseState;return M(null===P.explicit&&null===P.implicit),P.implicit=T,this},R.prototype.obj=function(){const T=this._baseState,P=Array.prototype.slice.call(arguments);return T.obj=!0,0!==P.length&&this._useArgs(P),this},R.prototype.key=function(T){const P=this._baseState;return M(null===P.key),P.key=T,this},R.prototype.any=function(){return this._baseState.any=!0,this},R.prototype.choice=function(T){const P=this._baseState;return M(null===P.choice),P.choice=T,this._useArgs(Object.keys(T).map(function(S){return T[S]})),this},R.prototype.contains=function(T){const P=this._baseState;return M(null===P.use),P.contains=T,this},R.prototype._decode=function(T,P){const S=this._baseState;if(null===S.parent)return T.wrapResult(S.children[0]._decode(T,P));let G,D=S.default,w=!0,U=null;if(null!==S.key&&(U=T.enterKey(S.key)),S.optional){let W=null;if(null!==S.explicit?W=S.explicit:null!==S.implicit?W=S.implicit:null!==S.tag&&(W=S.tag),null!==W||S.any){if(w=this._peekTag(T,W,S.any),T.isError(w))return w}else{const ee=T.save();try{null===S.choice?this._decodeGeneric(S.tag,T,P):this._decodeChoice(T,P),w=!0}catch(ie){w=!1}T.restore(ee)}}if(S.obj&&w&&(G=T.enterObject()),w){if(null!==S.explicit){const ee=this._decodeTag(T,S.explicit);if(T.isError(ee))return ee;T=ee}const W=T.offset;if(null===S.use&&null===S.choice){let ee;S.any&&(ee=T.save());const ie=this._decodeTag(T,null!==S.implicit?S.implicit:S.tag,S.any);if(T.isError(ie))return ie;S.any?D=T.raw(ee):T=ie}if(P&&P.track&&null!==S.tag&&P.track(T.path(),W,T.length,"tagged"),P&&P.track&&null!==S.tag&&P.track(T.path(),T.offset,T.length,"content"),S.any||(D=null===S.choice?this._decodeGeneric(S.tag,T,P):this._decodeChoice(T,P)),T.isError(D))return D;if(!S.any&&null===S.choice&&null!==S.children&&S.children.forEach(function(ie){ie._decode(T,P)}),S.contains&&("octstr"===S.tag||"bitstr"===S.tag)){const ee=new v(D);D=this._getUse(S.contains,T._reporterState.obj)._decode(ee,P)}}return S.obj&&w&&(D=T.leaveObject(G)),null===S.key||null===D&&!0!==w?null!==U&&T.exitKey(U):T.leaveKey(U,S.key,D),D},R.prototype._decodeGeneric=function(T,P,S){const D=this._baseState;return"seq"===T||"set"===T?null:"seqof"===T||"setof"===T?this._decodeList(P,T,D.args[0],S):/str$/.test(T)?this._decodeStr(P,T,S):"objid"===T&&D.args?this._decodeObjid(P,D.args[0],D.args[1],S):"objid"===T?this._decodeObjid(P,null,null,S):"gentime"===T||"utctime"===T?this._decodeTime(P,T,S):"null_"===T?this._decodeNull(P,S):"bool"===T?this._decodeBool(P,S):"objDesc"===T?this._decodeStr(P,T,S):"int"===T||"enum"===T?this._decodeInt(P,D.args&&D.args[0],S):null!==D.use?this._getUse(D.use,P._reporterState.obj)._decode(P,S):P.error("unknown tag: "+T)},R.prototype._getUse=function(T,P){const S=this._baseState;return S.useDecoder=this._use(T,P),M(null===S.useDecoder._baseState.parent),S.useDecoder=S.useDecoder._baseState.children[0],S.implicit!==S.useDecoder._baseState.implicit&&(S.useDecoder=S.useDecoder.clone(),S.useDecoder._baseState.implicit=S.implicit),S.useDecoder},R.prototype._decodeChoice=function(T,P){const S=this._baseState;let D=null,w=!1;return Object.keys(S.choice).some(function(U){const G=T.save(),W=S.choice[U];try{const ee=W._decode(T,P);if(T.isError(ee))return!1;D={type:U,value:ee},w=!0}catch(ee){return T.restore(G),!1}return!0},this),w?D:T.error("Choice not matched")},R.prototype._createEncoderBuffer=function(T){return new t(T,this.reporter)},R.prototype._encode=function(T,P,S){const D=this._baseState;if(null!==D.default&&D.default===T)return;const w=this._encodeValue(T,P,S);return void 0===w||this._skipDefault(w,P,S)?void 0:w},R.prototype._encodeValue=function(T,P,S){const D=this._baseState;if(null===D.parent)return D.children[0]._encode(T,P||new e);let w=null;if(this.reporter=P,D.optional&&void 0===T){if(null===D.default)return;T=D.default}let U=null,G=!1;if(D.any)w=this._createEncoderBuffer(T);else if(D.choice)w=this._encodeChoice(T,P);else if(D.contains)U=this._getUse(D.contains,S)._encode(T,P),G=!0;else if(D.children)U=D.children.map(function(W){if("null_"===W._baseState.tag)return W._encode(null,P,T);if(null===W._baseState.key)return P.error("Child should have a key");const ee=P.enterKey(W._baseState.key);if("object"!=typeof T)return P.error("Child expected, but input is not object");const ie=W._encode(T[W._baseState.key],P,T);return P.leaveKey(ee),ie},this).filter(function(W){return W}),U=this._createEncoderBuffer(U);else if("seqof"===D.tag||"setof"===D.tag){if(!D.args||1!==D.args.length)return P.error("Too many args for : "+D.tag);if(!Array.isArray(T))return P.error("seqof/setof, but data is not Array");const W=this.clone();W._baseState.implicit=null,U=this._createEncoderBuffer(T.map(function(ee){return this._getUse(this._baseState.args[0],T)._encode(ee,P)},W))}else null!==D.use?w=this._getUse(D.use,S)._encode(T,P):(U=this._encodePrimitive(D.tag,T),G=!0);if(!D.any&&null===D.choice){const W=null!==D.implicit?D.implicit:D.tag,ee=null===D.implicit?"universal":"context";null===W?null===D.use&&P.error("Tag could be omitted only for .use()"):null===D.use&&(w=this._encodeComposite(W,G,ee,U))}return null!==D.explicit&&(w=this._encodeComposite(D.explicit,!1,"context",w)),w},R.prototype._encodeChoice=function(T,P){const S=this._baseState,D=S.choice[T.type];return D||M(!1,T.type+" not found in "+JSON.stringify(Object.keys(S.choice))),D._encode(T.value,P)},R.prototype._encodePrimitive=function(T,P){const S=this._baseState;if(/str$/.test(T))return this._encodeStr(P,T);if("objid"===T&&S.args)return this._encodeObjid(P,S.reverseArgs[0],S.args[1]);if("objid"===T)return this._encodeObjid(P,null,null);if("gentime"===T||"utctime"===T)return this._encodeTime(P,T);if("null_"===T)return this._encodeNull();if("int"===T||"enum"===T)return this._encodeInt(P,S.args&&S.reverseArgs[0]);if("bool"===T)return this._encodeBool(P);if("objDesc"===T)return this._encodeStr(P,T);throw new Error("Unsupported tag: "+T)},R.prototype._isNumstr=function(T){return/^[0-9 ]*$/.test(T)},R.prototype._isPrintstr=function(T){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(T)}},4919:(Ue,K,m)=>{"use strict";const e=m(3894);function t(M){this._reporterState={obj:null,path:[],options:M||{},errors:[]}}function v(M,s){this.path=M,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 C=this._reporterState;C.obj=s.obj,C.path=C.path.slice(0,s.pathLen)},t.prototype.enterKey=function(s){return this._reporterState.path.push(s)},t.prototype.exitKey=function(s){const C=this._reporterState;C.path=C.path.slice(0,s-1)},t.prototype.leaveKey=function(s,C,c){const R=this._reporterState;this.exitKey(s),null!==R.obj&&(R.obj[C]=c)},t.prototype.path=function(){return this._reporterState.path.join("/")},t.prototype.enterObject=function(){const s=this._reporterState,C=s.obj;return s.obj={},C},t.prototype.leaveObject=function(s){const C=this._reporterState,c=C.obj;return C.obj=s,c},t.prototype.error=function(s){let C;const c=this._reporterState,R=s instanceof v;if(C=R?s:new v(c.path.map(function(o){return"["+JSON.stringify(o)+"]"}).join(""),s.message||s,s.stack),!c.options.partial)throw C;return R||c.errors.push(C),C},t.prototype.wrapResult=function(s){const C=this._reporterState;return C.options.partial?{result:this.isError(s)?null:s,errors:C.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(C){this.stack=C.stack}return this}},5496:(Ue,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:(Ue,K,m)=>{"use strict";const e=K;e._reverse=function(v){const M={};return Object.keys(v).forEach(function(s){(0|s)==s&&(s|=0),M[v[s]]=s}),M},e.der=m(5496)},7127:(Ue,K,m)=>{"use strict";const e=m(3894),t=m(3854),v=m(2769).C,M=m(1430),s=m(5496);function C(O){this.enc="der",this.name=O.name,this.entity=O,this.tree=new c,this.tree._init(O.body)}function c(O){M.call(this,"der",O)}function R(O,T){let P=O.readUInt8(T);if(O.isError(P))return P;const S=s.tagClass[P>>6],D=0==(32&P);if(31==(31&P)){let U=P;for(P=0;128==(128&U);){if(U=O.readUInt8(T),O.isError(U))return U;P<<=7,P|=127&U}}else P&=31;return{cls:S,primitive:D,tag:P,tagStr:s.tag[P]}}function o(O,T,P){let S=O.readUInt8(P);if(O.isError(S))return S;if(!T&&128===S)return null;if(0==(128&S))return S;const D=127&S;if(D>4)return O.error("length octect is too long");S=0;for(let w=0;w<D;w++){S<<=8;const U=O.readUInt8(P);if(O.isError(U))return U;S|=U}return S}Ue.exports=C,C.prototype.decode=function(T,P){return v.isDecoderBuffer(T)||(T=new v(T,P)),this.tree._decode(T,P)},e(c,M),c.prototype._peekTag=function(T,P,S){if(T.isEmpty())return!1;const D=T.save(),w=R(T,'Failed to peek tag: "'+P+'"');return T.isError(w)?w:(T.restore(D),w.tag===P||w.tagStr===P||w.tagStr+"of"===P||S)},c.prototype._decodeTag=function(T,P,S){const D=R(T,'Failed to decode tag of "'+P+'"');if(T.isError(D))return D;let w=o(T,D.primitive,'Failed to get length of "'+P+'"');if(T.isError(w))return w;if(!S&&D.tag!==P&&D.tagStr!==P&&D.tagStr+"of"!==P)return T.error('Failed to match tag: "'+P+'"');if(D.primitive||null!==w)return T.skip(w,'Failed to match body of: "'+P+'"');const U=T.save(),G=this._skipUntilEnd(T,'Failed to skip indefinite length body: "'+this.tag+'"');return T.isError(G)?G:(w=T.offset-U.offset,T.restore(U),T.skip(w,'Failed to match body of: "'+P+'"'))},c.prototype._skipUntilEnd=function(T,P){for(;;){const S=R(T,P);if(T.isError(S))return S;const D=o(T,S.primitive,P);if(T.isError(D))return D;let w;if(w=S.primitive||null!==D?T.skip(D):this._skipUntilEnd(T,P),T.isError(w))return w;if("end"===S.tagStr)break}},c.prototype._decodeList=function(T,P,S,D){const w=[];for(;!T.isEmpty();){const U=this._peekTag(T,"end");if(T.isError(U))return U;const G=S.decode(T,"der",D);if(T.isError(G)&&U)break;w.push(G)}return w},c.prototype._decodeStr=function(T,P){if("bitstr"===P){const S=T.readUInt8();return T.isError(S)?S:{unused:S,data:T.raw()}}if("bmpstr"===P){const S=T.raw();if(S.length%2==1)return T.error("Decoding of string type: bmpstr length mismatch");let D="";for(let w=0;w<S.length/2;w++)D+=String.fromCharCode(S.readUInt16BE(2*w));return D}if("numstr"===P){const S=T.raw().toString("ascii");return this._isNumstr(S)?S:T.error("Decoding of string type: numstr unsupported characters")}if("octstr"===P)return T.raw();if("objDesc"===P)return T.raw();if("printstr"===P){const S=T.raw().toString("ascii");return this._isPrintstr(S)?S:T.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(P)?T.raw().toString():T.error("Decoding of string type: "+P+" unsupported")},c.prototype._decodeObjid=function(T,P,S){let D;const w=[];let U=0,G=0;for(;!T.isEmpty();)G=T.readUInt8(),U<<=7,U|=127&G,0==(128&G)&&(w.push(U),U=0);if(128&G&&w.push(U),D=S?w:[w[0]/40|0,w[0]%40].concat(w.slice(1)),P){let ie=P[D.join(" ")];void 0===ie&&(ie=P[D.join(".")]),void 0!==ie&&(D=ie)}return D},c.prototype._decodeTime=function(T,P){const S=T.raw().toString();let D,w,U,G,W,ee;if("gentime"===P)D=0|S.slice(0,4),w=0|S.slice(4,6),U=0|S.slice(6,8),G=0|S.slice(8,10),W=0|S.slice(10,12),ee=0|S.slice(12,14);else{if("utctime"!==P)return T.error("Decoding "+P+" time is not supported yet");D=0|S.slice(0,2),w=0|S.slice(2,4),U=0|S.slice(4,6),G=0|S.slice(6,8),W=0|S.slice(8,10),ee=0|S.slice(10,12),D=D<70?2e3+D:1900+D}return Date.UTC(D,w-1,U,G,W,ee,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(T){const P=T.readUInt8();return T.isError(P)?P:0!==P},c.prototype._decodeInt=function(T,P){const S=T.raw();let D=new t(S);return P&&(D=P[D.toString(10)]||D),D},c.prototype._use=function(T,P){return"function"==typeof T&&(T=T(P)),T._getDecoder("der").tree}},196:(Ue,K,m)=>{"use strict";const e=K;e.der=m(7127),e.pem=m(9617)},9617:(Ue,K,m)=>{"use strict";const e=m(3894),t=m(2038).Buffer,v=m(7127);function M(s){v.call(this,s),this.enc="pem"}e(M,v),Ue.exports=M,M.prototype.decode=function(C,c){const R=C.toString().split(/[\r\n]+/g),o=c.label.toUpperCase(),O=/^-----(BEGIN|END) ([^-]+)-----$/;let T=-1,P=-1;for(let w=0;w<R.length;w++){const U=R[w].match(O);if(null!==U&&U[2]===o){if(-1!==T){if("END"!==U[1])break;P=w;break}if("BEGIN"!==U[1])break;T=w}}if(-1===T||-1===P)throw new Error("PEM section not found for: "+o);const S=R.slice(T+1,P).join("");S.replace(/[^a-z0-9+/=]+/gi,"");const D=t.from(S,"base64");return v.prototype.decode.call(this,D,c)}},6374:(Ue,K,m)=>{"use strict";const e=m(3894),t=m(2038).Buffer,v=m(1430),M=m(5496);function s(o){this.enc="der",this.name=o.name,this.entity=o,this.tree=new C,this.tree._init(o.body)}function C(o){v.call(this,"der",o)}function c(o){return o<10?"0"+o:o}Ue.exports=s,s.prototype.encode=function(O,T){return this.tree._encode(O,T).join()},e(C,v),C.prototype._encodeComposite=function(O,T,P,S){const D=function(o,O,T,P){let S;if("seqof"===o?o="seq":"setof"===o&&(o="set"),M.tagByName.hasOwnProperty(o))S=M.tagByName[o];else{if("number"!=typeof o||(0|o)!==o)return P.error("Unknown tag: "+o);S=o}return S>=31?P.error("Multi-octet tag encoding unsupported"):(O||(S|=32),S|=M.tagClassByName[T||"universal"]<<6,S)}(O,T,P,this.reporter);if(S.length<128){const G=t.alloc(2);return G[0]=D,G[1]=S.length,this._createEncoderBuffer([G,S])}let w=1;for(let G=S.length;G>=256;G>>=8)w++;const U=t.alloc(2+w);U[0]=D,U[1]=128|w;for(let G=1+w,W=S.length;W>0;G--,W>>=8)U[G]=255&W;return this._createEncoderBuffer([U,S])},C.prototype._encodeStr=function(O,T){if("bitstr"===T)return this._createEncoderBuffer([0|O.unused,O.data]);if("bmpstr"===T){const P=t.alloc(2*O.length);for(let S=0;S<O.length;S++)P.writeUInt16BE(O.charCodeAt(S),2*S);return this._createEncoderBuffer(P)}return"numstr"===T?this._isNumstr(O)?this._createEncoderBuffer(O):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===T?this._isPrintstr(O)?this._createEncoderBuffer(O):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(T)||"objDesc"===T?this._createEncoderBuffer(O):this.reporter.error("Encoding of string type: "+T+" unsupported")},C.prototype._encodeObjid=function(O,T,P){if("string"==typeof O){if(!T)return this.reporter.error("string objid given, but no values map found");if(!T.hasOwnProperty(O))return this.reporter.error("objid not found in values map");O=T[O].split(/[\s.]+/g);for(let U=0;U<O.length;U++)O[U]|=0}else if(Array.isArray(O)){O=O.slice();for(let U=0;U<O.length;U++)O[U]|=0}if(!Array.isArray(O))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(O));if(!P){if(O[1]>=40)return this.reporter.error("Second objid identifier OOB");O.splice(0,2,40*O[0]+O[1])}let S=0;for(let U=0;U<O.length;U++){let G=O[U];for(S++;G>=128;G>>=7)S++}const D=t.alloc(S);let w=D.length-1;for(let U=O.length-1;U>=0;U--){let G=O[U];for(D[w--]=127&G;(G>>=7)>0;)D[w--]=128|127&G}return this._createEncoderBuffer(D)},C.prototype._encodeTime=function(O,T){let P;const S=new Date(O);return"gentime"===T?P=[c(S.getUTCFullYear()),c(S.getUTCMonth()+1),c(S.getUTCDate()),c(S.getUTCHours()),c(S.getUTCMinutes()),c(S.getUTCSeconds()),"Z"].join(""):"utctime"===T?P=[c(S.getUTCFullYear()%100),c(S.getUTCMonth()+1),c(S.getUTCDate()),c(S.getUTCHours()),c(S.getUTCMinutes()),c(S.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+T+" time is not supported yet"),this._encodeStr(P,"octstr")},C.prototype._encodeNull=function(){return this._createEncoderBuffer("")},C.prototype._encodeInt=function(O,T){if("string"==typeof O){if(!T)return this.reporter.error("String int or enum given, but no values map");if(!T.hasOwnProperty(O))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(O));O=T[O]}if("number"!=typeof O&&!t.isBuffer(O)){const D=O.toArray();!O.sign&&128&D[0]&&D.unshift(0),O=t.from(D)}if(t.isBuffer(O)){let D=O.length;0===O.length&&D++;const w=t.alloc(D);return O.copy(w),0===O.length&&(w[0]=0),this._createEncoderBuffer(w)}if(O<128)return this._createEncoderBuffer(O);if(O<256)return this._createEncoderBuffer([0,O]);let P=1;for(let D=O;D>=256;D>>=8)P++;const S=new Array(P);for(let D=S.length-1;D>=0;D--)S[D]=255&O,O>>=8;return 128&S[0]&&S.unshift(0),this._createEncoderBuffer(t.from(S))},C.prototype._encodeBool=function(O){return this._createEncoderBuffer(O?255:0)},C.prototype._use=function(O,T){return"function"==typeof O&&(O=O(T)),O._getEncoder("der").tree},C.prototype._skipDefault=function(O,T,P){const S=this._baseState;let D;if(null===S.default)return!1;const w=O.join();if(void 0===S.defaultBuffer&&(S.defaultBuffer=this._encodeValue(S.default,T,P).join()),w.length!==S.defaultBuffer.length)return!1;for(D=0;D<w.length;D++)if(w[D]!==S.defaultBuffer[D])return!1;return!0}},1131:(Ue,K,m)=>{"use strict";const e=K;e.der=m(6374),e.pem=m(3530)},3530:(Ue,K,m)=>{"use strict";const e=m(3894),t=m(6374);function v(M){t.call(this,M),this.enc="pem"}e(v,t),Ue.exports=v,v.prototype.encode=function(s,C){const R=t.prototype.encode.call(this,s).toString("base64"),o=["-----BEGIN "+C.label+"-----"];for(let O=0;O<R.length;O+=64)o.push(R.slice(O,O+64));return o.push("-----END "+C.label+"-----"),o.join("\n")}},3854:function(Ue,K,m){!function(e,t){"use strict";function v(y,i){if(!y)throw new Error(i||"Assertion failed")}function M(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 C;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{C="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 R(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),L=i;L<_;L++){var I=y.charCodeAt(L)-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 _,L,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(L=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=L>>>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,L=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=R(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=R(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=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 L=i.length-p,I=L%u,x=Math.min(L,L-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 J=1;for(r=o(i,b,i.length,a),b=0;b<I;b++)J*=a;this.imuln(J),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 O=["","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"],T=[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],P=[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 D(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],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r<p;r++){for(var b=x>>>26,J=67108863&x,F=Math.min(r,i.length-1),B=Math.max(0,r-y.length+1);B<=F;B++)b+=(L=(u=0|y.words[r-B|0])*(_=0|i.words[B])+J)/67108864|0,J=67108863&L;a.words[r]=0|J,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,L=0;L<this.length;L++){var I=this.words[L],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||L!==this.length-1?O[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}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=T[i],b=P[i];p="";var J=this.clone();for(J.negative=0;!J.isZero();){var F=J.modn(b).toString(i);p=(J=J.idivn(b)).isZero()?F+p:O[r-F.length]+F+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!==C),this.toArrayLike(C,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,L="le"===a,I=new i(_),b=this.clone();if(L){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,L=0;L<u.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+(0|u.words[L])+_),_=a>>>26;for(;0!==_&&L<p.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;L<p.length;L++)this.words[L]=p.words[L];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 L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I<u.length;I++)L=(a=(0|u.words[I])+L)>>26,this.words[I]=67108863&a;if(0===L&&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,L=p.words,I=0,J=0|u[0],F=8191&J,B=J>>>13,te=0|u[1],xe=8191&te,Pe=te>>>13,Fe=0|u[2],q=8191&Fe,j=Fe>>>13,we=0|u[3],Ae=8191&we,le=we>>>13,We=0|u[4],yt=8191&We,Ne=We>>>13,Ve=0|u[5],ue=8191&Ve,Te=Ve>>>13,ke=0|u[6],Y=8191&ke,X=ke>>>13,he=0|u[7],Me=8191&he,ze=he>>>13,ht=0|u[8],it=8191&ht,ft=ht>>>13,nt=0|u[9],st=8191&nt,wt=nt>>>13,Bt=0|_[0],Nt=8191&Bt,Vt=Bt>>>13,Oi=0|_[1],jt=8191&Oi,ti=Oi>>>13,Ri=0|_[2],si=8191&Ri,di=Ri>>>13,He=0|_[3],Se=8191&He,V=He>>>13,ve=0|_[4],Ee=8191&ve,et=ve>>>13,$t=0|_[5],Rt=8191&$t,Xt=$t>>>13,lt=0|_[6],Re=8191&lt,Be=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(F,Nt))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(B,Nt)|0))<<13)|0;I=((b=Math.imul(B,Vt))+(r>>>13)|0)+(rn>>>26)|0,rn&=67108863,x=Math.imul(xe,Nt),r=(r=Math.imul(xe,Vt))+Math.imul(Pe,Nt)|0,b=Math.imul(Pe,Vt);var Vi=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ti)|0)+Math.imul(B,jt)|0))<<13)|0;I=((b=b+Math.imul(B,ti)|0)+(r>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,x=Math.imul(q,Nt),r=(r=Math.imul(q,Vt))+Math.imul(j,Nt)|0,b=Math.imul(j,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ti)|0)+Math.imul(Pe,jt)|0,b=b+Math.imul(Pe,ti)|0;var Di=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,di)|0)+Math.imul(B,si)|0))<<13)|0;I=((b=b+Math.imul(B,di)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(Ae,Nt),r=(r=Math.imul(Ae,Vt))+Math.imul(le,Nt)|0,b=Math.imul(le,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(xe,si)|0,r=(r=r+Math.imul(xe,di)|0)+Math.imul(Pe,si)|0,b=b+Math.imul(Pe,di)|0;var Xi=(I+(x=x+Math.imul(F,Se)|0)|0)+((8191&(r=(r=r+Math.imul(F,V)|0)+Math.imul(B,Se)|0))<<13)|0;I=((b=b+Math.imul(B,V)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(yt,Nt),r=(r=Math.imul(yt,Vt))+Math.imul(Ne,Nt)|0,b=Math.imul(Ne,Vt),x=x+Math.imul(Ae,jt)|0,r=(r=r+Math.imul(Ae,ti)|0)+Math.imul(le,jt)|0,b=b+Math.imul(le,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(xe,Se)|0,r=(r=r+Math.imul(xe,V)|0)+Math.imul(Pe,Se)|0,b=b+Math.imul(Pe,V)|0;var Ke=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(B,Ee)|0))<<13)|0;I=((b=b+Math.imul(B,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ue,Nt),r=(r=Math.imul(ue,Vt))+Math.imul(Te,Nt)|0,b=Math.imul(Te,Vt),x=x+Math.imul(yt,jt)|0,r=(r=r+Math.imul(yt,ti)|0)+Math.imul(Ne,jt)|0,b=b+Math.imul(Ne,ti)|0,x=x+Math.imul(Ae,si)|0,r=(r=r+Math.imul(Ae,di)|0)+Math.imul(le,si)|0,b=b+Math.imul(le,di)|0,x=x+Math.imul(q,Se)|0,r=(r=r+Math.imul(q,V)|0)+Math.imul(j,Se)|0,b=b+Math.imul(j,V)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Pe,Ee)|0,b=b+Math.imul(Pe,et)|0;var mt=(I+(x=x+Math.imul(F,Rt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Xt)|0)+Math.imul(B,Rt)|0))<<13)|0;I=((b=b+Math.imul(B,Xt)|0)+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(Y,Nt),r=(r=Math.imul(Y,Vt))+Math.imul(X,Nt)|0,b=Math.imul(X,Vt),x=x+Math.imul(ue,jt)|0,r=(r=r+Math.imul(ue,ti)|0)+Math.imul(Te,jt)|0,b=b+Math.imul(Te,ti)|0,x=x+Math.imul(yt,si)|0,r=(r=r+Math.imul(yt,di)|0)+Math.imul(Ne,si)|0,b=b+Math.imul(Ne,di)|0,x=x+Math.imul(Ae,Se)|0,r=(r=r+Math.imul(Ae,V)|0)+Math.imul(le,Se)|0,b=b+Math.imul(le,V)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul(j,Ee)|0,b=b+Math.imul(j,et)|0,x=x+Math.imul(xe,Rt)|0,r=(r=r+Math.imul(xe,Xt)|0)+Math.imul(Pe,Rt)|0,b=b+Math.imul(Pe,Xt)|0;var be=(I+(x=x+Math.imul(F,Re)|0)|0)+((8191&(r=(r=r+Math.imul(F,Be)|0)+Math.imul(B,Re)|0))<<13)|0;I=((b=b+Math.imul(B,Be)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,x=Math.imul(Me,Nt),r=(r=Math.imul(Me,Vt))+Math.imul(ze,Nt)|0,b=Math.imul(ze,Vt),x=x+Math.imul(Y,jt)|0,r=(r=r+Math.imul(Y,ti)|0)+Math.imul(X,jt)|0,b=b+Math.imul(X,ti)|0,x=x+Math.imul(ue,si)|0,r=(r=r+Math.imul(ue,di)|0)+Math.imul(Te,si)|0,b=b+Math.imul(Te,di)|0,x=x+Math.imul(yt,Se)|0,r=(r=r+Math.imul(yt,V)|0)+Math.imul(Ne,Se)|0,b=b+Math.imul(Ne,V)|0,x=x+Math.imul(Ae,Ee)|0,r=(r=r+Math.imul(Ae,et)|0)+Math.imul(le,Ee)|0,b=b+Math.imul(le,et)|0,x=x+Math.imul(q,Rt)|0,r=(r=r+Math.imul(q,Xt)|0)+Math.imul(j,Rt)|0,b=b+Math.imul(j,Xt)|0,x=x+Math.imul(xe,Re)|0,r=(r=r+Math.imul(xe,Be)|0)+Math.imul(Pe,Re)|0,b=b+Math.imul(Pe,Be)|0;var qe=(I+(x=x+Math.imul(F,ot)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(B,ot)|0))<<13)|0;I=((b=b+Math.imul(B,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(it,Nt),r=(r=Math.imul(it,Vt))+Math.imul(ft,Nt)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Me,jt)|0,r=(r=r+Math.imul(Me,ti)|0)+Math.imul(ze,jt)|0,b=b+Math.imul(ze,ti)|0,x=x+Math.imul(Y,si)|0,r=(r=r+Math.imul(Y,di)|0)+Math.imul(X,si)|0,b=b+Math.imul(X,di)|0,x=x+Math.imul(ue,Se)|0,r=(r=r+Math.imul(ue,V)|0)+Math.imul(Te,Se)|0,b=b+Math.imul(Te,V)|0,x=x+Math.imul(yt,Ee)|0,r=(r=r+Math.imul(yt,et)|0)+Math.imul(Ne,Ee)|0,b=b+Math.imul(Ne,et)|0,x=x+Math.imul(Ae,Rt)|0,r=(r=r+Math.imul(Ae,Xt)|0)+Math.imul(le,Rt)|0,b=b+Math.imul(le,Xt)|0,x=x+Math.imul(q,Re)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul(j,Re)|0,b=b+Math.imul(j,Be)|0,x=x+Math.imul(xe,ot)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Pe,ot)|0,b=b+Math.imul(Pe,At)|0;var vt=(I+(x=x+Math.imul(F,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(F,Ft)|0)+Math.imul(B,Ut)|0))<<13)|0;I=((b=b+Math.imul(B,Ft)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,x=Math.imul(st,Nt),r=(r=Math.imul(st,Vt))+Math.imul(wt,Nt)|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(Me,si)|0,r=(r=r+Math.imul(Me,di)|0)+Math.imul(ze,si)|0,b=b+Math.imul(ze,di)|0,x=x+Math.imul(Y,Se)|0,r=(r=r+Math.imul(Y,V)|0)+Math.imul(X,Se)|0,b=b+Math.imul(X,V)|0,x=x+Math.imul(ue,Ee)|0,r=(r=r+Math.imul(ue,et)|0)+Math.imul(Te,Ee)|0,b=b+Math.imul(Te,et)|0,x=x+Math.imul(yt,Rt)|0,r=(r=r+Math.imul(yt,Xt)|0)+Math.imul(Ne,Rt)|0,b=b+Math.imul(Ne,Xt)|0,x=x+Math.imul(Ae,Re)|0,r=(r=r+Math.imul(Ae,Be)|0)+Math.imul(le,Re)|0,b=b+Math.imul(le,Be)|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(xe,Ut)|0,r=(r=r+Math.imul(xe,Ft)|0)+Math.imul(Pe,Ut)|0,b=b+Math.imul(Pe,Ft)|0;var me=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(B,ai)|0))<<13)|0;I=((b=b+Math.imul(B,ci)|0)+(r>>>13)|0)+(me>>>26)|0,me&=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(Me,Se)|0,r=(r=r+Math.imul(Me,V)|0)+Math.imul(ze,Se)|0,b=b+Math.imul(ze,V)|0,x=x+Math.imul(Y,Ee)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(X,Ee)|0,b=b+Math.imul(X,et)|0,x=x+Math.imul(ue,Rt)|0,r=(r=r+Math.imul(ue,Xt)|0)+Math.imul(Te,Rt)|0,b=b+Math.imul(Te,Xt)|0,x=x+Math.imul(yt,Re)|0,r=(r=r+Math.imul(yt,Be)|0)+Math.imul(Ne,Re)|0,b=b+Math.imul(Ne,Be)|0,x=x+Math.imul(Ae,ot)|0,r=(r=r+Math.imul(Ae,At)|0)+Math.imul(le,ot)|0,b=b+Math.imul(le,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 $e=(I+(x=x+Math.imul(xe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Pe,ai)|0))<<13)|0;I=((b=b+Math.imul(Pe,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,Se)|0,r=(r=r+Math.imul(it,V)|0)+Math.imul(ft,Se)|0,b=b+Math.imul(ft,V)|0,x=x+Math.imul(Me,Ee)|0,r=(r=r+Math.imul(Me,et)|0)+Math.imul(ze,Ee)|0,b=b+Math.imul(ze,et)|0,x=x+Math.imul(Y,Rt)|0,r=(r=r+Math.imul(Y,Xt)|0)+Math.imul(X,Rt)|0,b=b+Math.imul(X,Xt)|0,x=x+Math.imul(ue,Re)|0,r=(r=r+Math.imul(ue,Be)|0)+Math.imul(Te,Re)|0,b=b+Math.imul(Te,Be)|0,x=x+Math.imul(yt,ot)|0,r=(r=r+Math.imul(yt,At)|0)+Math.imul(Ne,ot)|0,b=b+Math.imul(Ne,At)|0,x=x+Math.imul(Ae,Ut)|0,r=(r=r+Math.imul(Ae,Ft)|0)+Math.imul(le,Ut)|0,b=b+Math.imul(le,Ft)|0;var St=(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)+(St>>>26)|0,St&=67108863,x=Math.imul(st,Se),r=(r=Math.imul(st,V))+Math.imul(wt,Se)|0,b=Math.imul(wt,V),x=x+Math.imul(it,Ee)|0,r=(r=r+Math.imul(it,et)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Me,Rt)|0,r=(r=r+Math.imul(Me,Xt)|0)+Math.imul(ze,Rt)|0,b=b+Math.imul(ze,Xt)|0,x=x+Math.imul(Y,Re)|0,r=(r=r+Math.imul(Y,Be)|0)+Math.imul(X,Re)|0,b=b+Math.imul(X,Be)|0,x=x+Math.imul(ue,ot)|0,r=(r=r+Math.imul(ue,At)|0)+Math.imul(Te,ot)|0,b=b+Math.imul(Te,At)|0,x=x+Math.imul(yt,Ut)|0,r=(r=r+Math.imul(yt,Ft)|0)+Math.imul(Ne,Ut)|0,b=b+Math.imul(Ne,Ft)|0;var Pt=(I+(x=x+Math.imul(Ae,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Ae,ci)|0)+Math.imul(le,ai)|0))<<13)|0;I=((b=b+Math.imul(le,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(st,Ee),r=(r=Math.imul(st,et))+Math.imul(wt,Ee)|0,b=Math.imul(wt,et),x=x+Math.imul(it,Rt)|0,r=(r=r+Math.imul(it,Xt)|0)+Math.imul(ft,Rt)|0,b=b+Math.imul(ft,Xt)|0,x=x+Math.imul(Me,Re)|0,r=(r=r+Math.imul(Me,Be)|0)+Math.imul(ze,Re)|0,b=b+Math.imul(ze,Be)|0,x=x+Math.imul(Y,ot)|0,r=(r=r+Math.imul(Y,At)|0)+Math.imul(X,ot)|0,b=b+Math.imul(X,At)|0,x=x+Math.imul(ue,Ut)|0,r=(r=r+Math.imul(ue,Ft)|0)+Math.imul(Te,Ut)|0,b=b+Math.imul(Te,Ft)|0;var yi=(I+(x=x+Math.imul(yt,ai)|0)|0)+((8191&(r=(r=r+Math.imul(yt,ci)|0)+Math.imul(Ne,ai)|0))<<13)|0;I=((b=b+Math.imul(Ne,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(st,Rt),r=(r=Math.imul(st,Xt))+Math.imul(wt,Rt)|0,b=Math.imul(wt,Xt),x=x+Math.imul(it,Re)|0,r=(r=r+Math.imul(it,Be)|0)+Math.imul(ft,Re)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Me,ot)|0,r=(r=r+Math.imul(Me,At)|0)+Math.imul(ze,ot)|0,b=b+Math.imul(ze,At)|0,x=x+Math.imul(Y,Ut)|0,r=(r=r+Math.imul(Y,Ft)|0)+Math.imul(X,Ut)|0,b=b+Math.imul(X,Ft)|0;var Pi=(I+(x=x+Math.imul(ue,ai)|0)|0)+((8191&(r=(r=r+Math.imul(ue,ci)|0)+Math.imul(Te,ai)|0))<<13)|0;I=((b=b+Math.imul(Te,ci)|0)+(r>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,x=Math.imul(st,Re),r=(r=Math.imul(st,Be))+Math.imul(wt,Re)|0,b=Math.imul(wt,Be),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(Me,Ut)|0,r=(r=r+Math.imul(Me,Ft)|0)+Math.imul(ze,Ut)|0,b=b+Math.imul(ze,Ft)|0;var Ii=(I+(x=x+Math.imul(Y,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ci)|0)+Math.imul(X,ai)|0))<<13)|0;I=((b=b+Math.imul(X,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(Me,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Me,ci)|0)+Math.imul(ze,ai)|0))<<13)|0;I=((b=b+Math.imul(ze,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,L[0]=rn,L[1]=Vi,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=mt,L[6]=be,L[7]=qe,L[8]=vt,L[9]=me,L[10]=$e,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Pi,L[15]=Ii,L[16]=Ki,L[17]=at,L[18]=Qt,0!==I&&(L[19]=I,p.length++),p};function G(y,i,a){return(new W).mulp(y,i,a)}function W(y,i){this.x=y,this.y=i}Math.imul||(w=D),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?D(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 L=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 B=(0|y.words[_-r])*(0|i.words[r]),te=67108863&B;I=67108863&(te=te+I|0),u+=(L=(L=L+(B/67108864|0)|0)+(te>>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):G(this,i,a),p},W.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},W.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},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I<L;I++)u[I]=a[i[I]],_[I]=p[i[I]]},W.prototype.transform=function(i,a,p,u,_,L){this.permute(L,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),J=0;J<_;J+=x)for(var F=r,B=b,te=0;te<I;te++){var xe=p[J+te],Pe=u[J+te],Fe=p[J+te+I],q=u[J+te+I],j=F*Fe-B*q;q=F*q+B*Fe,p[J+te]=xe+(Fe=j),u[J+te]=Pe+q,p[J+te+I]=xe-Fe,u[J+te+I]=Pe-q,te!==x&&(j=r*F-b*B,B=r*B+b*F,F=j)}},W.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},W.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]=-_}},W.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},W.prototype.convert13b=function(i,a,p,u){for(var _=0,L=0;L<a;L++)p[2*L]=8191&(_+=0|i[L]),p[2*L+1]=8191&(_>>>=13),_>>>=13;for(L=2*a;L<u;++L)p[L]=0;v(0===_),v(0==(-8192&_))},W.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},W.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),L=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),b=new Array(u),J=new Array(u),F=new Array(u),B=p.words;B.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,b,u),this.transform(I,L,x,r,u,_),this.transform(b,L,J,F,u,_);for(var te=0;te<u;te++){var xe=x[te]*J[te]-r[te]*F[te];r[te]=x[te]*F[te]+r[te]*J[te],x[te]=xe}return this.conjugate(x,r,u),this.transform(x,r,B,L,u,_),this.conjugate(B,L,u),this.normalize13b(B,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),G(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 L=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|L,L=I>>>26-a}L&&(this.words[_]=L,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,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;r<L;r++)x.words[r]=this.words[r];x.length=L}if(0!==L)if(this.length>L)for(this.length-=L,r=0;r<this.length;r++)this.words[r]=this.words[r+L];else this.words[0]=0,this.length=1;var b=0;for(r=this.length-1;r>=0&&(0!==b||r>=u);r--){var J=0|this.words[r];this.words[r]=b<<26-_|J>>>_,b=J&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 L,I=0;for(_=0;_<i.length;_++){L=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((L-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_<this.length-p;_++)I=(L=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_<this.length;_++)I=(L=-(0|this.words[_])+I)>>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=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 J=u.clone()._ishlnsubmul(_,1,x);0===J.negative&&(u=J,r&&(r.words[x]=1));for(var F=x-1;F>=0;F--){var B=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(B=Math.min(B/L|0,67108863),u._ishlnsubmul(_,B,F);0!==u.negative;)B--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=B)}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?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.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,_,L},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),L=p.cmp(u);return L<0||1===_&&0===L?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),L=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 J=0,F=1;0==(a.words[0]&F)&&J<26;++J,F<<=1);if(J>0)for(a.iushrn(J);J-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var B=0,te=1;0==(p.words[0]&te)&&B<26;++B,te<<=1);if(B>0)for(p.iushrn(B);B-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(b)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},s.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var J,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),L=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(L),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(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(J=0===a.cmpn(1)?u:_).cmpn(0)<0&&J.iadd(i),J},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 L=a;a=p,p=L}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,L=p;0!==_&&L<this.length;L++){var I=0|this.words[L];_=(I+=_)>>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,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 se(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 ee={k256:null,p224:null,p192:null,p25519:null};function ie(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 _e(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function fe(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function de(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ne(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(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 oe(y){se.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)}ie.prototype._tmp=function(){var i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.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},ie.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ie.prototype.imulK=function(i){return i.imul(this.k)},M(_e,ie),_e.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 L=i.words[9];for(a.words[a.length++]=L&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|L>>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.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},M(fe,ie),M(de,ie),M(ne,ie),ne.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(ee[i])return ee[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new fe;else if("p192"===i)a=new de;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new ne}return ee[i]=a,a},se.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},se.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")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.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)},se.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},se.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)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.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 L=new s(1).toRed(this),I=L.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),J=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),B=_;0!==F.cmp(L);){for(var te=F,xe=0;0!==te.cmp(L);xe++)te=te.redSqr();v(xe<B);var Pe=this.pow(b,new s(1).iushln(B-xe-1));J=J.redMul(Pe),b=Pe.redSqr(),F=F.redMul(b),B=xe}return J},se.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},se.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 L=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var b=a.words[_],J=r-1;J>=0;J--){var F=b>>J&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===J)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new oe(i)},M(oe,se),oe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},oe.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},oe.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),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},oe.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),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},oe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ue=m.nmd(Ue),this)},5343:(Ue,K)=>{"use strict";K.byteLength=function(S){var D=C(S),U=D[1];return 3*(D[0]+U)/4-U},K.toByteArray=function(S){var D,_e,w=C(S),U=w[0],G=w[1],W=new t(function(S,D,w){return 3*(D+w)/4-w}(0,U,G)),ee=0,ie=G>0?U-4:U;for(_e=0;_e<ie;_e+=4)D=e[S.charCodeAt(_e)]<<18|e[S.charCodeAt(_e+1)]<<12|e[S.charCodeAt(_e+2)]<<6|e[S.charCodeAt(_e+3)],W[ee++]=D>>16&255,W[ee++]=D>>8&255,W[ee++]=255&D;return 2===G&&(D=e[S.charCodeAt(_e)]<<2|e[S.charCodeAt(_e+1)]>>4,W[ee++]=255&D),1===G&&(D=e[S.charCodeAt(_e)]<<10|e[S.charCodeAt(_e+1)]<<4|e[S.charCodeAt(_e+2)]>>2,W[ee++]=D>>8&255,W[ee++]=255&D),W},K.fromByteArray=function(S){for(var D,w=S.length,U=w%3,G=[],W=16383,ee=0,ie=w-U;ee<ie;ee+=W)G.push(T(S,ee,ee+W>ie?ie:ee+W));return 1===U?G.push(m[(D=S[w-1])>>2]+m[D<<4&63]+"=="):2===U&&G.push(m[(D=(S[w-2]<<8)+S[w-1])>>10]+m[D>>4&63]+m[D<<2&63]+"="),G.join("")};for(var m=[],e=[],t="undefined"!=typeof Uint8Array?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=0,s=v.length;M<s;++M)m[M]=v[M],e[v.charCodeAt(M)]=M;function C(S){var D=S.length;if(D%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=S.indexOf("=");return-1===w&&(w=D),[w,w===D?0:4-w%4]}function O(S){return m[S>>18&63]+m[S>>12&63]+m[S>>6&63]+m[63&S]}function T(S,D,w){for(var G=[],W=D;W<w;W+=3)G.push(O((S[W]<<16&16711680)+(S[W+1]<<8&65280)+(255&S[W+2])));return G.join("")}e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},8538:function(Ue,K,m){!function(e,t){"use strict";function v(p,u){if(!p)throw new Error(u||"Assertion failed")}function M(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 C;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{C="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 R(p,u,_){var L=c(p,_);return _-1>=u&&(L|=c(p,_-1)<<4),L}function o(p,u,_,L){for(var I=0,x=0,r=Math.min(p.length,_),b=u;b<r;b++){var J=p.charCodeAt(b)-48;I*=L,x=J>=49?J-49+10:J>=17?J-17+10:J,v(J>=0&&x<L,"Invalid character"),I+=x}return I}function O(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,_,L){if("number"==typeof u)return this._initNumber(u,_,L);if("object"==typeof u)return this._initArray(u,_,L);"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,L):(this._parseBase(u,_,I),"le"===L&&this._initArray(this.toArray(),_,L)))},s.prototype._initNumber=function(u,_,L){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"===L&&this._initArray(this.toArray(),_,L)},s.prototype._initArray=function(u,_,L){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"===L)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"===L)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,_,L){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"===L)for(I=u.length-1;I>=_;I-=2)b=R(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=R(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,_,L){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-L,b=r%I,J=Math.min(r,r-b)+L,F=0,B=L;B<J;B+=I)F=o(u,B,B+I,_),this.imuln(x),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F);if(0!==b){var te=1;for(F=o(u,B,u.length,_),B=0;B<b;B++)te*=_;this.imuln(te),this.words[0]+F<67108864?this.words[0]+=F:this._iaddn(F)}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){O(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")]=T}catch(p){s.prototype.inspect=T}else s.prototype.inspect=T;function T(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var P=["","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"],S=[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],D=[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 G(p,u,_){_.negative=u.negative^p.negative;var L=p.length+u.length|0;_.length=L,L=L-1|0;var I=0|p.words[0],x=0|u.words[0],r=I*x,J=r/67108864|0;_.words[0]=67108863&r;for(var F=1;F<L;F++){for(var B=J>>>26,te=67108863&J,xe=Math.min(F,u.length-1),Pe=Math.max(0,F-p.length+1);Pe<=xe;Pe++)B+=(r=(I=0|p.words[F-Pe|0])*(x=0|u.words[Pe])+te)/67108864|0,te=67108863&r;_.words[F]=0|te,J=0|B}return 0!==J?_.words[F]=0|J:_.length--,_._strip()}s.prototype.toString=function(u,_){var L;if(_=0|_||1,16===(u=u||10)||"hex"===u){L="";for(var I=0,x=0,r=0;r<this.length;r++){var b=this.words[r],J=(16777215&(b<<I|x)).toString(16);L=0!=(x=b>>>24-I&16777215)||r!==this.length-1?P[6-J.length]+J+L:J+L,(I+=2)>=26&&(I-=26,r--)}for(0!==x&&(L=x.toString(16)+L);L.length%_!=0;)L="0"+L;return 0!==this.negative&&(L="-"+L),L}if(u===(0|u)&&u>=2&&u<=36){var F=S[u],B=D[u];L="";var te=this.clone();for(te.negative=0;!te.isZero();){var xe=te.modrn(B).toString(u);L=(te=te.idivn(B)).isZero()?xe+L:P[F-xe.length]+xe+L}for(this.isZero()&&(L="0"+L);L.length%_!=0;)L="0"+L;return 0!==this.negative&&(L="-"+L),L}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)},C&&(s.prototype.toBuffer=function(u,_){return this.toArrayLike(C,u,_)}),s.prototype.toArray=function(u,_){return this.toArrayLike(Array,u,_)},s.prototype.toArrayLike=function(u,_,L){this._strip();var I=this.byteLength(),x=L||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 L=0,I=0,x=0,r=0;x<this.length;x++){var b=this.words[x]<<r|I;u[L++]=255&b,L<u.length&&(u[L++]=b>>8&255),L<u.length&&(u[L++]=b>>16&255),6===r?(L<u.length&&(u[L++]=b>>24&255),I=0,r=0):(I=b>>>24,r+=2)}if(L<u.length)for(u[L++]=I;L<u.length;)u[L++]=0},s.prototype._toArrayLikeBE=function(u,_){for(var L=u.length-1,I=0,x=0,r=0;x<this.length;x++){var b=this.words[x]<<r|I;u[L--]=255&b,L>=0&&(u[L--]=b>>8&255),L>=0&&(u[L--]=b>>16&255),6===r?(L>=0&&(u[L--]=b>>24&255),I=0,r=0):(I=b>>>24,r+=2)}if(L>=0)for(u[L--]=I;L>=0;)u[L--]=0},s.prototype._countBits=Math.clz32?function(u){return 32-Math.clz32(u)}:function(u){var _=u,L=0;return _>=4096&&(L+=13,_>>>=13),_>=64&&(L+=7,_>>>=7),_>=8&&(L+=4,_>>>=4),_>=2&&(L+=2,_>>>=2),L+_},s.prototype._zeroBits=function(u){if(0===u)return 26;var _=u,L=0;return 0==(8191&_)&&(L+=13,_>>>=13),0==(127&_)&&(L+=7,_>>>=7),0==(15&_)&&(L+=4,_>>>=4),0==(3&_)&&(L+=2,_>>>=2),0==(1&_)&&L++,L},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 L=this._zeroBits(this.words[_]);if(u+=L,26!==L)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 L=0;L<_.length;L++)this.words[L]=this.words[L]&u.words[L];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 _,L;this.length>u.length?(_=this,L=u):(_=u,L=this);for(var I=0;I<L.length;I++)this.words[I]=_.words[I]^L.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),L=u%26;this._expand(_),L>0&&_--;for(var I=0;I<_;I++)this.words[I]=67108863&~this.words[I];return L>0&&(this.words[I]=~this.words[I]&67108863>>26-L),this._strip()},s.prototype.notn=function(u){return this.clone().inotn(u)},s.prototype.setn=function(u,_){v("number"==typeof u&&u>=0);var L=u/26|0,I=u%26;return this._expand(L+1),this.words[L]=_?this.words[L]|1<<I:this.words[L]&~(1<<I),this._strip()},s.prototype.iadd=function(u){var _,L,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?(L=this,I=u):(L=u,I=this);for(var x=0,r=0;r<I.length;r++)this.words[r]=67108863&(_=(0|L.words[r])+(0|I.words[r])+x),x=_>>>26;for(;0!==x&&r<L.length;r++)this.words[r]=67108863&(_=(0|L.words[r])+x),x=_>>>26;if(this.length=L.length,0!==x)this.words[this.length]=x,this.length++;else if(L!==this)for(;r<L.length;r++)this.words[r]=L.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,L=this.cmp(u);if(0===L)return this.negative=0,this.length=1,this.words[0]=0,this;L>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 W=function(u,_,L){var J,F,B,I=u.words,x=_.words,r=L.words,b=0,te=0|I[0],xe=8191&te,Pe=te>>>13,Fe=0|I[1],q=8191&Fe,j=Fe>>>13,we=0|I[2],Ae=8191&we,le=we>>>13,We=0|I[3],yt=8191&We,Ne=We>>>13,Ve=0|I[4],ue=8191&Ve,Te=Ve>>>13,ke=0|I[5],Y=8191&ke,X=ke>>>13,he=0|I[6],Me=8191&he,ze=he>>>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],Nt=8191&Bt,Vt=Bt>>>13,Oi=0|x[0],jt=8191&Oi,ti=Oi>>>13,Ri=0|x[1],si=8191&Ri,di=Ri>>>13,He=0|x[2],Se=8191&He,V=He>>>13,ve=0|x[3],Ee=8191&ve,et=ve>>>13,$t=0|x[4],Rt=8191&$t,Xt=$t>>>13,lt=0|x[5],Re=8191&lt,Be=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;L.negative=u.negative^_.negative,L.length=19;var Xi=(b+(J=Math.imul(xe,jt))|0)+((8191&(F=(F=Math.imul(xe,ti))+Math.imul(Pe,jt)|0))<<13)|0;b=((B=Math.imul(Pe,ti))+(F>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,J=Math.imul(q,jt),F=(F=Math.imul(q,ti))+Math.imul(j,jt)|0,B=Math.imul(j,ti);var Ke=(b+(J=J+Math.imul(xe,si)|0)|0)+((8191&(F=(F=F+Math.imul(xe,di)|0)+Math.imul(Pe,si)|0))<<13)|0;b=((B=B+Math.imul(Pe,di)|0)+(F>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,J=Math.imul(Ae,jt),F=(F=Math.imul(Ae,ti))+Math.imul(le,jt)|0,B=Math.imul(le,ti),J=J+Math.imul(q,si)|0,F=(F=F+Math.imul(q,di)|0)+Math.imul(j,si)|0,B=B+Math.imul(j,di)|0;var mt=(b+(J=J+Math.imul(xe,Se)|0)|0)+((8191&(F=(F=F+Math.imul(xe,V)|0)+Math.imul(Pe,Se)|0))<<13)|0;b=((B=B+Math.imul(Pe,V)|0)+(F>>>13)|0)+(mt>>>26)|0,mt&=67108863,J=Math.imul(yt,jt),F=(F=Math.imul(yt,ti))+Math.imul(Ne,jt)|0,B=Math.imul(Ne,ti),J=J+Math.imul(Ae,si)|0,F=(F=F+Math.imul(Ae,di)|0)+Math.imul(le,si)|0,B=B+Math.imul(le,di)|0,J=J+Math.imul(q,Se)|0,F=(F=F+Math.imul(q,V)|0)+Math.imul(j,Se)|0,B=B+Math.imul(j,V)|0;var be=(b+(J=J+Math.imul(xe,Ee)|0)|0)+((8191&(F=(F=F+Math.imul(xe,et)|0)+Math.imul(Pe,Ee)|0))<<13)|0;b=((B=B+Math.imul(Pe,et)|0)+(F>>>13)|0)+(be>>>26)|0,be&=67108863,J=Math.imul(ue,jt),F=(F=Math.imul(ue,ti))+Math.imul(Te,jt)|0,B=Math.imul(Te,ti),J=J+Math.imul(yt,si)|0,F=(F=F+Math.imul(yt,di)|0)+Math.imul(Ne,si)|0,B=B+Math.imul(Ne,di)|0,J=J+Math.imul(Ae,Se)|0,F=(F=F+Math.imul(Ae,V)|0)+Math.imul(le,Se)|0,B=B+Math.imul(le,V)|0,J=J+Math.imul(q,Ee)|0,F=(F=F+Math.imul(q,et)|0)+Math.imul(j,Ee)|0,B=B+Math.imul(j,et)|0;var qe=(b+(J=J+Math.imul(xe,Rt)|0)|0)+((8191&(F=(F=F+Math.imul(xe,Xt)|0)+Math.imul(Pe,Rt)|0))<<13)|0;b=((B=B+Math.imul(Pe,Xt)|0)+(F>>>13)|0)+(qe>>>26)|0,qe&=67108863,J=Math.imul(Y,jt),F=(F=Math.imul(Y,ti))+Math.imul(X,jt)|0,B=Math.imul(X,ti),J=J+Math.imul(ue,si)|0,F=(F=F+Math.imul(ue,di)|0)+Math.imul(Te,si)|0,B=B+Math.imul(Te,di)|0,J=J+Math.imul(yt,Se)|0,F=(F=F+Math.imul(yt,V)|0)+Math.imul(Ne,Se)|0,B=B+Math.imul(Ne,V)|0,J=J+Math.imul(Ae,Ee)|0,F=(F=F+Math.imul(Ae,et)|0)+Math.imul(le,Ee)|0,B=B+Math.imul(le,et)|0,J=J+Math.imul(q,Rt)|0,F=(F=F+Math.imul(q,Xt)|0)+Math.imul(j,Rt)|0,B=B+Math.imul(j,Xt)|0;var vt=(b+(J=J+Math.imul(xe,Re)|0)|0)+((8191&(F=(F=F+Math.imul(xe,Be)|0)+Math.imul(Pe,Re)|0))<<13)|0;b=((B=B+Math.imul(Pe,Be)|0)+(F>>>13)|0)+(vt>>>26)|0,vt&=67108863,J=Math.imul(Me,jt),F=(F=Math.imul(Me,ti))+Math.imul(ze,jt)|0,B=Math.imul(ze,ti),J=J+Math.imul(Y,si)|0,F=(F=F+Math.imul(Y,di)|0)+Math.imul(X,si)|0,B=B+Math.imul(X,di)|0,J=J+Math.imul(ue,Se)|0,F=(F=F+Math.imul(ue,V)|0)+Math.imul(Te,Se)|0,B=B+Math.imul(Te,V)|0,J=J+Math.imul(yt,Ee)|0,F=(F=F+Math.imul(yt,et)|0)+Math.imul(Ne,Ee)|0,B=B+Math.imul(Ne,et)|0,J=J+Math.imul(Ae,Rt)|0,F=(F=F+Math.imul(Ae,Xt)|0)+Math.imul(le,Rt)|0,B=B+Math.imul(le,Xt)|0,J=J+Math.imul(q,Re)|0,F=(F=F+Math.imul(q,Be)|0)+Math.imul(j,Re)|0,B=B+Math.imul(j,Be)|0;var me=(b+(J=J+Math.imul(xe,ot)|0)|0)+((8191&(F=(F=F+Math.imul(xe,At)|0)+Math.imul(Pe,ot)|0))<<13)|0;b=((B=B+Math.imul(Pe,At)|0)+(F>>>13)|0)+(me>>>26)|0,me&=67108863,J=Math.imul(it,jt),F=(F=Math.imul(it,ti))+Math.imul(ft,jt)|0,B=Math.imul(ft,ti),J=J+Math.imul(Me,si)|0,F=(F=F+Math.imul(Me,di)|0)+Math.imul(ze,si)|0,B=B+Math.imul(ze,di)|0,J=J+Math.imul(Y,Se)|0,F=(F=F+Math.imul(Y,V)|0)+Math.imul(X,Se)|0,B=B+Math.imul(X,V)|0,J=J+Math.imul(ue,Ee)|0,F=(F=F+Math.imul(ue,et)|0)+Math.imul(Te,Ee)|0,B=B+Math.imul(Te,et)|0,J=J+Math.imul(yt,Rt)|0,F=(F=F+Math.imul(yt,Xt)|0)+Math.imul(Ne,Rt)|0,B=B+Math.imul(Ne,Xt)|0,J=J+Math.imul(Ae,Re)|0,F=(F=F+Math.imul(Ae,Be)|0)+Math.imul(le,Re)|0,B=B+Math.imul(le,Be)|0,J=J+Math.imul(q,ot)|0,F=(F=F+Math.imul(q,At)|0)+Math.imul(j,ot)|0,B=B+Math.imul(j,At)|0;var $e=(b+(J=J+Math.imul(xe,Ut)|0)|0)+((8191&(F=(F=F+Math.imul(xe,Ft)|0)+Math.imul(Pe,Ut)|0))<<13)|0;b=((B=B+Math.imul(Pe,Ft)|0)+(F>>>13)|0)+($e>>>26)|0,$e&=67108863,J=Math.imul(st,jt),F=(F=Math.imul(st,ti))+Math.imul(wt,jt)|0,B=Math.imul(wt,ti),J=J+Math.imul(it,si)|0,F=(F=F+Math.imul(it,di)|0)+Math.imul(ft,si)|0,B=B+Math.imul(ft,di)|0,J=J+Math.imul(Me,Se)|0,F=(F=F+Math.imul(Me,V)|0)+Math.imul(ze,Se)|0,B=B+Math.imul(ze,V)|0,J=J+Math.imul(Y,Ee)|0,F=(F=F+Math.imul(Y,et)|0)+Math.imul(X,Ee)|0,B=B+Math.imul(X,et)|0,J=J+Math.imul(ue,Rt)|0,F=(F=F+Math.imul(ue,Xt)|0)+Math.imul(Te,Rt)|0,B=B+Math.imul(Te,Xt)|0,J=J+Math.imul(yt,Re)|0,F=(F=F+Math.imul(yt,Be)|0)+Math.imul(Ne,Re)|0,B=B+Math.imul(Ne,Be)|0,J=J+Math.imul(Ae,ot)|0,F=(F=F+Math.imul(Ae,At)|0)+Math.imul(le,ot)|0,B=B+Math.imul(le,At)|0,J=J+Math.imul(q,Ut)|0,F=(F=F+Math.imul(q,Ft)|0)+Math.imul(j,Ut)|0,B=B+Math.imul(j,Ft)|0;var St=(b+(J=J+Math.imul(xe,ai)|0)|0)+((8191&(F=(F=F+Math.imul(xe,ci)|0)+Math.imul(Pe,ai)|0))<<13)|0;b=((B=B+Math.imul(Pe,ci)|0)+(F>>>13)|0)+(St>>>26)|0,St&=67108863,J=Math.imul(Nt,jt),F=(F=Math.imul(Nt,ti))+Math.imul(Vt,jt)|0,B=Math.imul(Vt,ti),J=J+Math.imul(st,si)|0,F=(F=F+Math.imul(st,di)|0)+Math.imul(wt,si)|0,B=B+Math.imul(wt,di)|0,J=J+Math.imul(it,Se)|0,F=(F=F+Math.imul(it,V)|0)+Math.imul(ft,Se)|0,B=B+Math.imul(ft,V)|0,J=J+Math.imul(Me,Ee)|0,F=(F=F+Math.imul(Me,et)|0)+Math.imul(ze,Ee)|0,B=B+Math.imul(ze,et)|0,J=J+Math.imul(Y,Rt)|0,F=(F=F+Math.imul(Y,Xt)|0)+Math.imul(X,Rt)|0,B=B+Math.imul(X,Xt)|0,J=J+Math.imul(ue,Re)|0,F=(F=F+Math.imul(ue,Be)|0)+Math.imul(Te,Re)|0,B=B+Math.imul(Te,Be)|0,J=J+Math.imul(yt,ot)|0,F=(F=F+Math.imul(yt,At)|0)+Math.imul(Ne,ot)|0,B=B+Math.imul(Ne,At)|0,J=J+Math.imul(Ae,Ut)|0,F=(F=F+Math.imul(Ae,Ft)|0)+Math.imul(le,Ut)|0,B=B+Math.imul(le,Ft)|0,J=J+Math.imul(q,ai)|0,F=(F=F+Math.imul(q,ci)|0)+Math.imul(j,ai)|0,B=B+Math.imul(j,ci)|0;var Pt=(b+(J=J+Math.imul(xe,Vi)|0)|0)+((8191&(F=(F=F+Math.imul(xe,Di)|0)+Math.imul(Pe,Vi)|0))<<13)|0;b=((B=B+Math.imul(Pe,Di)|0)+(F>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,J=Math.imul(Nt,si),F=(F=Math.imul(Nt,di))+Math.imul(Vt,si)|0,B=Math.imul(Vt,di),J=J+Math.imul(st,Se)|0,F=(F=F+Math.imul(st,V)|0)+Math.imul(wt,Se)|0,B=B+Math.imul(wt,V)|0,J=J+Math.imul(it,Ee)|0,F=(F=F+Math.imul(it,et)|0)+Math.imul(ft,Ee)|0,B=B+Math.imul(ft,et)|0,J=J+Math.imul(Me,Rt)|0,F=(F=F+Math.imul(Me,Xt)|0)+Math.imul(ze,Rt)|0,B=B+Math.imul(ze,Xt)|0,J=J+Math.imul(Y,Re)|0,F=(F=F+Math.imul(Y,Be)|0)+Math.imul(X,Re)|0,B=B+Math.imul(X,Be)|0,J=J+Math.imul(ue,ot)|0,F=(F=F+Math.imul(ue,At)|0)+Math.imul(Te,ot)|0,B=B+Math.imul(Te,At)|0,J=J+Math.imul(yt,Ut)|0,F=(F=F+Math.imul(yt,Ft)|0)+Math.imul(Ne,Ut)|0,B=B+Math.imul(Ne,Ft)|0,J=J+Math.imul(Ae,ai)|0,F=(F=F+Math.imul(Ae,ci)|0)+Math.imul(le,ai)|0,B=B+Math.imul(le,ci)|0;var yi=(b+(J=J+Math.imul(q,Vi)|0)|0)+((8191&(F=(F=F+Math.imul(q,Di)|0)+Math.imul(j,Vi)|0))<<13)|0;b=((B=B+Math.imul(j,Di)|0)+(F>>>13)|0)+(yi>>>26)|0,yi&=67108863,J=Math.imul(Nt,Se),F=(F=Math.imul(Nt,V))+Math.imul(Vt,Se)|0,B=Math.imul(Vt,V),J=J+Math.imul(st,Ee)|0,F=(F=F+Math.imul(st,et)|0)+Math.imul(wt,Ee)|0,B=B+Math.imul(wt,et)|0,J=J+Math.imul(it,Rt)|0,F=(F=F+Math.imul(it,Xt)|0)+Math.imul(ft,Rt)|0,B=B+Math.imul(ft,Xt)|0,J=J+Math.imul(Me,Re)|0,F=(F=F+Math.imul(Me,Be)|0)+Math.imul(ze,Re)|0,B=B+Math.imul(ze,Be)|0,J=J+Math.imul(Y,ot)|0,F=(F=F+Math.imul(Y,At)|0)+Math.imul(X,ot)|0,B=B+Math.imul(X,At)|0,J=J+Math.imul(ue,Ut)|0,F=(F=F+Math.imul(ue,Ft)|0)+Math.imul(Te,Ut)|0,B=B+Math.imul(Te,Ft)|0,J=J+Math.imul(yt,ai)|0,F=(F=F+Math.imul(yt,ci)|0)+Math.imul(Ne,ai)|0,B=B+Math.imul(Ne,ci)|0;var Pi=(b+(J=J+Math.imul(Ae,Vi)|0)|0)+((8191&(F=(F=F+Math.imul(Ae,Di)|0)+Math.imul(le,Vi)|0))<<13)|0;b=((B=B+Math.imul(le,Di)|0)+(F>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,J=Math.imul(Nt,Ee),F=(F=Math.imul(Nt,et))+Math.imul(Vt,Ee)|0,B=Math.imul(Vt,et),J=J+Math.imul(st,Rt)|0,F=(F=F+Math.imul(st,Xt)|0)+Math.imul(wt,Rt)|0,B=B+Math.imul(wt,Xt)|0,J=J+Math.imul(it,Re)|0,F=(F=F+Math.imul(it,Be)|0)+Math.imul(ft,Re)|0,B=B+Math.imul(ft,Be)|0,J=J+Math.imul(Me,ot)|0,F=(F=F+Math.imul(Me,At)|0)+Math.imul(ze,ot)|0,B=B+Math.imul(ze,At)|0,J=J+Math.imul(Y,Ut)|0,F=(F=F+Math.imul(Y,Ft)|0)+Math.imul(X,Ut)|0,B=B+Math.imul(X,Ft)|0,J=J+Math.imul(ue,ai)|0,F=(F=F+Math.imul(ue,ci)|0)+Math.imul(Te,ai)|0,B=B+Math.imul(Te,ci)|0;var Ii=(b+(J=J+Math.imul(yt,Vi)|0)|0)+((8191&(F=(F=F+Math.imul(yt,Di)|0)+Math.imul(Ne,Vi)|0))<<13)|0;b=((B=B+Math.imul(Ne,Di)|0)+(F>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,J=Math.imul(Nt,Rt),F=(F=Math.imul(Nt,Xt))+Math.imul(Vt,Rt)|0,B=Math.imul(Vt,Xt),J=J+Math.imul(st,Re)|0,F=(F=F+Math.imul(st,Be)|0)+Math.imul(wt,Re)|0,B=B+Math.imul(wt,Be)|0,J=J+Math.imul(it,ot)|0,F=(F=F+Math.imul(it,At)|0)+Math.imul(ft,ot)|0,B=B+Math.imul(ft,At)|0,J=J+Math.imul(Me,Ut)|0,F=(F=F+Math.imul(Me,Ft)|0)+Math.imul(ze,Ut)|0,B=B+Math.imul(ze,Ft)|0,J=J+Math.imul(Y,ai)|0,F=(F=F+Math.imul(Y,ci)|0)+Math.imul(X,ai)|0,B=B+Math.imul(X,ci)|0;var Ki=(b+(J=J+Math.imul(ue,Vi)|0)|0)+((8191&(F=(F=F+Math.imul(ue,Di)|0)+Math.imul(Te,Vi)|0))<<13)|0;b=((B=B+Math.imul(Te,Di)|0)+(F>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,J=Math.imul(Nt,Re),F=(F=Math.imul(Nt,Be))+Math.imul(Vt,Re)|0,B=Math.imul(Vt,Be),J=J+Math.imul(st,ot)|0,F=(F=F+Math.imul(st,At)|0)+Math.imul(wt,ot)|0,B=B+Math.imul(wt,At)|0,J=J+Math.imul(it,Ut)|0,F=(F=F+Math.imul(it,Ft)|0)+Math.imul(ft,Ut)|0,B=B+Math.imul(ft,Ft)|0,J=J+Math.imul(Me,ai)|0,F=(F=F+Math.imul(Me,ci)|0)+Math.imul(ze,ai)|0,B=B+Math.imul(ze,ci)|0;var at=(b+(J=J+Math.imul(Y,Vi)|0)|0)+((8191&(F=(F=F+Math.imul(Y,Di)|0)+Math.imul(X,Vi)|0))<<13)|0;b=((B=B+Math.imul(X,Di)|0)+(F>>>13)|0)+(at>>>26)|0,at&=67108863,J=Math.imul(Nt,ot),F=(F=Math.imul(Nt,At))+Math.imul(Vt,ot)|0,B=Math.imul(Vt,At),J=J+Math.imul(st,Ut)|0,F=(F=F+Math.imul(st,Ft)|0)+Math.imul(wt,Ut)|0,B=B+Math.imul(wt,Ft)|0,J=J+Math.imul(it,ai)|0,F=(F=F+Math.imul(it,ci)|0)+Math.imul(ft,ai)|0,B=B+Math.imul(ft,ci)|0;var Qt=(b+(J=J+Math.imul(Me,Vi)|0)|0)+((8191&(F=(F=F+Math.imul(Me,Di)|0)+Math.imul(ze,Vi)|0))<<13)|0;b=((B=B+Math.imul(ze,Di)|0)+(F>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,J=Math.imul(Nt,Ut),F=(F=Math.imul(Nt,Ft))+Math.imul(Vt,Ut)|0,B=Math.imul(Vt,Ft),J=J+Math.imul(st,ai)|0,F=(F=F+Math.imul(st,ci)|0)+Math.imul(wt,ai)|0,B=B+Math.imul(wt,ci)|0;var gt=(b+(J=J+Math.imul(it,Vi)|0)|0)+((8191&(F=(F=F+Math.imul(it,Di)|0)+Math.imul(ft,Vi)|0))<<13)|0;b=((B=B+Math.imul(ft,Di)|0)+(F>>>13)|0)+(gt>>>26)|0,gt&=67108863,J=Math.imul(Nt,ai),F=(F=Math.imul(Nt,ci))+Math.imul(Vt,ai)|0,B=Math.imul(Vt,ci);var Lt=(b+(J=J+Math.imul(st,Vi)|0)|0)+((8191&(F=(F=F+Math.imul(st,Di)|0)+Math.imul(wt,Vi)|0))<<13)|0;b=((B=B+Math.imul(wt,Di)|0)+(F>>>13)|0)+(Lt>>>26)|0,Lt&=67108863;var ui=(b+(J=Math.imul(Nt,Vi))|0)+((8191&(F=(F=Math.imul(Nt,Di))+Math.imul(Vt,Vi)|0))<<13)|0;return b=((B=Math.imul(Vt,Di))+(F>>>13)|0)+(ui>>>26)|0,ui&=67108863,r[0]=Xi,r[1]=Ke,r[2]=mt,r[3]=be,r[4]=qe,r[5]=vt,r[6]=me,r[7]=$e,r[8]=St,r[9]=Pt,r[10]=yi,r[11]=Pi,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,L.length++),L};function ee(p,u,_){_.negative=u.negative^p.negative,_.length=p.length+u.length;for(var L=0,I=0,x=0;x<_.length-1;x++){var r=I;I=0;for(var b=67108863&L,J=Math.min(x,u.length-1),F=Math.max(0,x-p.length+1);F<=J;F++){var Pe=(0|p.words[x-F])*(0|u.words[F]),Fe=67108863&Pe;b=67108863&(Fe=Fe+b|0),I+=(r=(r=r+(Pe/67108864|0)|0)+(Fe>>>26)|0)>>>26,r&=67108863}_.words[x]=b,L=r,r=I}return 0!==L?_.words[x]=L:_.length--,_._strip()}function ie(p,u,_){return ee(p,u,_)}function _e(p,u){this.x=p,this.y=u}Math.imul||(W=G),s.prototype.mulTo=function(u,_){var I=this.length+u.length;return 10===this.length&&10===u.length?W(this,u,_):I<63?G(this,u,_):I<1024?ee(this,u,_):ie(this,u,_)},_e.prototype.makeRBT=function(u){for(var _=new Array(u),L=s.prototype._countBits(u)-1,I=0;I<u;I++)_[I]=this.revBin(I,L,u);return _},_e.prototype.revBin=function(u,_,L){if(0===u||u===L-1)return u;for(var I=0,x=0;x<_;x++)I|=(1&u)<<_-x-1,u>>=1;return I},_e.prototype.permute=function(u,_,L,I,x,r){for(var b=0;b<r;b++)I[b]=_[u[b]],x[b]=L[u[b]]},_e.prototype.transform=function(u,_,L,I,x,r){this.permute(r,u,_,L,I,x);for(var b=1;b<x;b<<=1)for(var J=b<<1,F=Math.cos(2*Math.PI/J),B=Math.sin(2*Math.PI/J),te=0;te<x;te+=J)for(var xe=F,Pe=B,Fe=0;Fe<b;Fe++){var q=L[te+Fe],j=I[te+Fe],we=L[te+Fe+b],Ae=I[te+Fe+b],le=xe*we-Pe*Ae;Ae=xe*Ae+Pe*we,L[te+Fe]=q+(we=le),I[te+Fe]=j+Ae,L[te+Fe+b]=q-we,I[te+Fe+b]=j-Ae,Fe!==J&&(le=F*xe-B*Pe,Pe=F*Pe+B*xe,xe=le)}},_e.prototype.guessLen13b=function(u,_){var L=1|Math.max(_,u),I=1&L,x=0;for(L=L/2|0;L;L>>>=1)x++;return 1<<x+1+I},_e.prototype.conjugate=function(u,_,L){if(!(L<=1))for(var I=0;I<L/2;I++){var x=u[I];u[I]=u[L-I-1],u[L-I-1]=x,x=_[I],_[I]=-_[L-I-1],_[L-I-1]=-x}},_e.prototype.normalize13b=function(u,_){for(var L=0,I=0;I<_/2;I++){var x=8192*Math.round(u[2*I+1]/_)+Math.round(u[2*I]/_)+L;u[I]=67108863&x,L=x<67108864?0:x/67108864|0}return u},_e.prototype.convert13b=function(u,_,L,I){for(var x=0,r=0;r<_;r++)L[2*r]=8191&(x+=0|u[r]),L[2*r+1]=8191&(x>>>=13),x>>>=13;for(r=2*_;r<I;++r)L[r]=0;v(0===x),v(0==(-8192&x))},_e.prototype.stub=function(u){for(var _=new Array(u),L=0;L<u;L++)_[L]=0;return _},_e.prototype.mulp=function(u,_,L){var I=2*this.guessLen13b(u.length,_.length),x=this.makeRBT(I),r=this.stub(I),b=new Array(I),J=new Array(I),F=new Array(I),B=new Array(I),te=new Array(I),xe=new Array(I),Pe=L.words;Pe.length=I,this.convert13b(u.words,u.length,b,I),this.convert13b(_.words,_.length,B,I),this.transform(b,r,J,F,I,x),this.transform(B,r,te,xe,I,x);for(var Fe=0;Fe<I;Fe++){var q=J[Fe]*te[Fe]-F[Fe]*xe[Fe];F[Fe]=J[Fe]*xe[Fe]+F[Fe]*te[Fe],J[Fe]=q}return this.conjugate(J,F,I),this.transform(J,F,Pe,r,I,x),this.conjugate(Pe,r,I),this.normalize13b(Pe,I),L.negative=u.negative^_.negative,L.length=u.length+_.length,L._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),ie(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 L=0,I=0;I<this.length;I++){var x=(0|this.words[I])*u,r=(67108863&x)+(67108863&L);L>>=26,L+=x/67108864|0,L+=r>>>26,this.words[I]=67108863&r}return 0!==L&&(this.words[I]=L,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 L=this,I=0;I<_.length&&0===_[I];I++,L=L.sqr());if(++I<_.length)for(var x=L.sqr();I<_.length;I++,x=x.sqr())0!==_[I]&&(L=L.mul(x));return L},s.prototype.iushln=function(u){v("number"==typeof u&&u>=0);var x,_=u%26,L=(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!==L){for(x=this.length-1;x>=0;x--)this.words[x+L]=this.words[x];for(x=0;x<L;x++)this.words[x]=0;this.length+=L}return this._strip()},s.prototype.ishln=function(u){return v(0===this.negative),this.iushln(u)},s.prototype.iushrn=function(u,_,L){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,J=L;if(I-=r,I=Math.max(0,I),J){for(var F=0;F<r;F++)J.words[F]=this.words[F];J.length=r}if(0!==r)if(this.length>r)for(this.length-=r,F=0;F<this.length;F++)this.words[F]=this.words[F+r];else this.words[0]=0,this.length=1;var B=0;for(F=this.length-1;F>=0&&(0!==B||F>=I);F--){var te=0|this.words[F];this.words[F]=B<<26-x|te>>>x,B=te&b}return J&&0!==B&&(J.words[J.length++]=B),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(u,_,L){return v(0===this.negative),this.iushrn(u,_,L)},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,L=(u-_)/26;return!(this.length<=L||!(this.words[L]&1<<_))},s.prototype.imaskn=function(u){v("number"==typeof u&&u>=0);var _=u%26,L=(u-_)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=L?this:(0!==_&&L++,this.length=Math.min(L,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,_,L){var x;this._expand(u.length+L);var r,b=0;for(x=0;x<u.length;x++){r=(0|this.words[x+L])+b;var J=(0|u.words[x])*_;b=((r-=67108863&J)>>26)-(J/67108864|0),this.words[x+L]=67108863&r}for(;x<this.length-L;x++)b=(r=(0|this.words[x+L])+b)>>26,this.words[x+L]=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 L,I=this.clone(),x=u,r=0|x.words[x.length-1];0!=(L=26-this._countBits(r))&&(x=x.ushln(L),I.iushln(L),r=0|x.words[x.length-1]);var F,J=I.length-x.length;if("mod"!==_){(F=new s(null)).length=J+1,F.words=new Array(F.length);for(var B=0;B<F.length;B++)F.words[B]=0}var te=I.clone()._ishlnsubmul(x,1,J);0===te.negative&&(I=te,F&&(F.words[J]=1));for(var xe=J-1;xe>=0;xe--){var Pe=67108864*(0|I.words[x.length+xe])+(0|I.words[x.length+xe-1]);for(Pe=Math.min(Pe/r|0,67108863),I._ishlnsubmul(x,Pe,xe);0!==I.negative;)Pe--,I.negative=0,I._ishlnsubmul(x,1,xe),I.isZero()||(I.negative^=1);F&&(F.words[xe]=Pe)}return F&&F._strip(),I._strip(),"div"!==_&&0!==L&&I.iushrn(L),{div:F||null,mod:I}},s.prototype.divmod=function(u,_,L){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(),L&&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(),L&&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 L=0!==_.div.negative?_.mod.isub(u):_.mod,I=u.ushrn(1),x=u.andln(1),r=L.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 L=(1<<26)%u,I=0,x=this.length-1;x>=0;x--)I=(L*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 L=0,I=this.length-1;I>=0;I--){var x=(0|this.words[I])+67108864*L;this.words[I]=x/u|0,L=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,L=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),J=0;_.isEven()&&L.isEven();)_.iushrn(1),L.iushrn(1),++J;for(var F=L.clone(),B=_.clone();!_.isZero();){for(var te=0,xe=1;0==(_.words[0]&xe)&&te<26;++te,xe<<=1);if(te>0)for(_.iushrn(te);te-- >0;)(I.isOdd()||x.isOdd())&&(I.iadd(F),x.isub(B)),I.iushrn(1),x.iushrn(1);for(var Pe=0,Fe=1;0==(L.words[0]&Fe)&&Pe<26;++Pe,Fe<<=1);if(Pe>0)for(L.iushrn(Pe);Pe-- >0;)(r.isOdd()||b.isOdd())&&(r.iadd(F),b.isub(B)),r.iushrn(1),b.iushrn(1);_.cmp(L)>=0?(_.isub(L),I.isub(r),x.isub(b)):(L.isub(_),r.isub(I),b.isub(x))}return{a:r,b,gcd:L.iushln(J)}},s.prototype._invmp=function(u){v(0===u.negative),v(!u.isZero());var te,_=this,L=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var I=new s(1),x=new s(0),r=L.clone();_.cmpn(1)>0&&L.cmpn(1)>0;){for(var b=0,J=1;0==(_.words[0]&J)&&b<26;++b,J<<=1);if(b>0)for(_.iushrn(b);b-- >0;)I.isOdd()&&I.iadd(r),I.iushrn(1);for(var F=0,B=1;0==(L.words[0]&B)&&F<26;++F,B<<=1);if(F>0)for(L.iushrn(F);F-- >0;)x.isOdd()&&x.iadd(r),x.iushrn(1);_.cmp(L)>=0?(_.isub(L),I.isub(x)):(L.isub(_),x.isub(I))}return(te=0===_.cmpn(1)?I:x).cmpn(0)<0&&te.iadd(u),te},s.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var _=this.clone(),L=u.clone();_.negative=0,L.negative=0;for(var I=0;_.isEven()&&L.isEven();I++)_.iushrn(1),L.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;L.isEven();)L.iushrn(1);var x=_.cmp(L);if(x<0){var r=_;_=L,L=r}else if(0===x||0===L.cmpn(1))break;_.isub(L)}return L.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,L=(u-_)/26,I=1<<_;if(this.length<=L)return this._expand(L+1),this.words[L]|=I,this;for(var x=I,r=L;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 L,_=u<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this._strip(),this.length>1)L=1;else{_&&(u=-u),v(u<=67108863,"Number is too big");var I=0|this.words[0];L=I===u?0:I<u?-1:1}return 0!==this.negative?0|-L:L},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,L=this.length-1;L>=0;L--){var I=0|this.words[L],x=0|u.words[L];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 fe={k256:null,p224:null,p192:null,p25519:null};function de(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 ne(){de.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function se(){de.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function oe(){de.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function y(){de.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)}de.prototype._tmp=function(){var u=new s(null);return u.words=new Array(Math.ceil(this.n/13)),u},de.prototype.ireduce=function(u){var L,_=u;do{this.split(_,this.tmp),L=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(L>this.n);var I=L<this.n?-1:_.ucmp(this.p);return 0===I?(_.words[0]=0,_.length=1):I>0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},de.prototype.split=function(u,_){u.iushrn(this.n,0,_)},de.prototype.imulK=function(u){return u.imul(this.k)},M(ne,de),ne.prototype.split=function(u,_){for(var L=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&L,x=10;x<u.length;x++){var b=0|u.words[x];u.words[x-10]=(b&L)<<4|r>>>22,r=b}u.words[x-10]=r>>>=22,u.length-=0===r&&u.length>10?10:9},ne.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var _=0,L=0;L<u.length;L++){var I=0|u.words[L];u.words[L]=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},M(se,de),M(oe,de),M(y,de),y.prototype.imulK=function(u){for(var _=0,L=0;L<u.length;L++){var I=19*(0|u.words[L])+_,x=67108863&I;I>>>=26,u.words[L]=x,_=I}return 0!==_&&(u.words[u.length++]=_),u},s._prime=function(u){if(fe[u])return fe[u];var _;if("k256"===u)_=new ne;else if("p224"===u)_=new se;else if("p192"===u)_=new oe;else{if("p25519"!==u)throw new Error("Unknown prime "+u);_=new y}return fe[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):(O(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 L=u.add(_);return L.cmp(this.m)>=0&&L.isub(this.m),L._forceRed(this)},i.prototype.iadd=function(u,_){this._verify2(u,_);var L=u.iadd(_);return L.cmp(this.m)>=0&&L.isub(this.m),L},i.prototype.sub=function(u,_){this._verify2(u,_);var L=u.sub(_);return L.cmpn(0)<0&&L.iadd(this.m),L._forceRed(this)},i.prototype.isub=function(u,_){this._verify2(u,_);var L=u.isub(_);return L.cmpn(0)<0&&L.iadd(this.m),L},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 L=this.m.add(new s(1)).iushrn(2);return this.pow(u,L)}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(),J=this.m.subn(1).iushrn(1),F=this.m.bitLength();for(F=new s(2*F*F).toRed(this);0!==this.pow(F,J).cmp(b);)F.redIAdd(b);for(var B=this.pow(F,I),te=this.pow(u,I.addn(1).iushrn(1)),xe=this.pow(u,I),Pe=x;0!==xe.cmp(r);){for(var Fe=xe,q=0;0!==Fe.cmp(r);q++)Fe=Fe.redSqr();v(q<Pe);var j=this.pow(B,new s(1).iushln(Pe-q-1));te=te.redMul(j),B=j.redSqr(),xe=xe.redMul(B),Pe=q}return te},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,J=0,F=_.bitLength()%26;for(0===F&&(F=26),x=_.length-1;x>=0;x--){for(var B=_.words[x],te=F-1;te>=0;te--){var xe=B>>te&1;r!==I[0]&&(r=this.sqr(r)),0!==xe||0!==b?(b<<=1,b|=xe,(4==++J||0===x&&0===te)&&(r=this.mul(r,I[b]),J=0,b=0)):J=0}F=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)},M(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 L=u.imul(_),I=L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=L.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 L=u.mul(_),I=L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=L.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)}}(Ue=m.nmd(Ue),this)},7950:(Ue,K,m)=>{var e;function t(M){this.rand=M}if(Ue.exports=function(s){return e||(e=new t(null)),e.generate(s)},Ue.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 C=new Uint8Array(s),c=0;c<C.length;c++)C[c]=this.rand.getByte();return C},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?t.prototype._rand=function(s){var C=new Uint8Array(s);return self.crypto.getRandomValues(C),C}:self.msCrypto&&self.msCrypto.getRandomValues?t.prototype._rand=function(s){var C=new Uint8Array(s);return self.msCrypto.getRandomValues(C),C}:"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(M){}},1899:(Ue,K,m)=>{var e=m(3502).Buffer;function t(R){e.isBuffer(R)||(R=e.from(R));for(var o=R.length/4|0,O=new Array(o),T=0;T<o;T++)O[T]=R.readUInt32BE(4*T);return O}function v(R){for(;0<R.length;R++)R[0]=0}function M(R,o,O,T,P){for(var _e,fe,de,ne,S=O[0],D=O[1],w=O[2],U=O[3],G=R[0]^o[0],W=R[1]^o[1],ee=R[2]^o[2],ie=R[3]^o[3],se=4,oe=1;oe<P;oe++)_e=S[G>>>24]^D[W>>>16&255]^w[ee>>>8&255]^U[255&ie]^o[se++],fe=S[W>>>24]^D[ee>>>16&255]^w[ie>>>8&255]^U[255&G]^o[se++],de=S[ee>>>24]^D[ie>>>16&255]^w[G>>>8&255]^U[255&W]^o[se++],ne=S[ie>>>24]^D[G>>>16&255]^w[W>>>8&255]^U[255&ee]^o[se++],G=_e,W=fe,ee=de,ie=ne;return _e=(T[G>>>24]<<24|T[W>>>16&255]<<16|T[ee>>>8&255]<<8|T[255&ie])^o[se++],fe=(T[W>>>24]<<24|T[ee>>>16&255]<<16|T[ie>>>8&255]<<8|T[255&G])^o[se++],de=(T[ee>>>24]<<24|T[ie>>>16&255]<<16|T[G>>>8&255]<<8|T[255&W])^o[se++],ne=(T[ie>>>24]<<24|T[G>>>16&255]<<16|T[W>>>8&255]<<8|T[255&ee])^o[se++],[_e>>>=0,fe>>>=0,de>>>=0,ne>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],C=function(){for(var R=new Array(256),o=0;o<256;o++)R[o]=o<128?o<<1:o<<1^283;for(var O=[],T=[],P=[[],[],[],[]],S=[[],[],[],[]],D=0,w=0,U=0;U<256;++U){var G=w^w<<1^w<<2^w<<3^w<<4;O[D]=G=G>>>8^255&G^99,T[G]=D;var W=R[D],ee=R[W],ie=R[ee],_e=257*R[G]^16843008*G;P[0][D]=_e<<24|_e>>>8,P[1][D]=_e<<16|_e>>>16,P[2][D]=_e<<8|_e>>>24,P[3][D]=_e,S[0][G]=(_e=16843009*ie^65537*ee^257*W^16843008*D)<<24|_e>>>8,S[1][G]=_e<<16|_e>>>16,S[2][G]=_e<<8|_e>>>24,S[3][G]=_e,0===D?D=w=1:(D=W^R[R[R[ie^W]]],w^=R[R[w]])}return{SBOX:O,INV_SBOX:T,SUB_MIX:P,INV_SUB_MIX:S}}();function c(R){this._key=t(R),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var R=this._key,o=R.length,O=o+6,T=4*(O+1),P=[],S=0;S<o;S++)P[S]=R[S];for(S=o;S<T;S++){var D=P[S-1];S%o==0?(D=C.SBOX[(D=D<<8|D>>>24)>>>24]<<24|C.SBOX[D>>>16&255]<<16|C.SBOX[D>>>8&255]<<8|C.SBOX[255&D],D^=s[S/o|0]<<24):o>6&&S%o==4&&(D=C.SBOX[D>>>24]<<24|C.SBOX[D>>>16&255]<<16|C.SBOX[D>>>8&255]<<8|C.SBOX[255&D]),P[S]=P[S-o]^D}for(var w=[],U=0;U<T;U++){var G=T-U,W=P[G-(U%4?0:4)];w[U]=U<4||G<=4?W:C.INV_SUB_MIX[0][C.SBOX[W>>>24]]^C.INV_SUB_MIX[1][C.SBOX[W>>>16&255]]^C.INV_SUB_MIX[2][C.SBOX[W>>>8&255]]^C.INV_SUB_MIX[3][C.SBOX[255&W]]}this._nRounds=O,this._keySchedule=P,this._invKeySchedule=w},c.prototype.encryptBlockRaw=function(R){return M(R=t(R),this._keySchedule,C.SUB_MIX,C.SBOX,this._nRounds)},c.prototype.encryptBlock=function(R){var o=this.encryptBlockRaw(R),O=e.allocUnsafe(16);return O.writeUInt32BE(o[0],0),O.writeUInt32BE(o[1],4),O.writeUInt32BE(o[2],8),O.writeUInt32BE(o[3],12),O},c.prototype.decryptBlock=function(R){var o=(R=t(R))[1];R[1]=R[3],R[3]=o;var O=M(R,this._invKeySchedule,C.INV_SUB_MIX,C.INV_SBOX,this._nRounds),T=e.allocUnsafe(16);return T.writeUInt32BE(O[0],0),T.writeUInt32BE(O[3],4),T.writeUInt32BE(O[2],8),T.writeUInt32BE(O[1],12),T},c.prototype.scrub=function(){v(this._keySchedule),v(this._invKeySchedule),v(this._key)},Ue.exports.AES=c},9382:(Ue,K,m)=>{var e=m(1899),t=m(3502).Buffer,v=m(1052),M=m(3894),s=m(8857),C=m(8789),c=m(7968);function O(T,P,S,D){v.call(this);var w=t.alloc(4,0);this._cipher=new e.AES(P);var U=this._cipher.encryptBlock(w);this._ghash=new s(U),S=function(T,P,S){if(12===P.length)return T._finID=t.concat([P,t.from([0,0,0,1])]),t.concat([P,t.from([0,0,0,2])]);var D=new s(S),w=P.length,U=w%16;D.update(P),U&&D.update(t.alloc(U=16-U,0)),D.update(t.alloc(8,0));var G=8*w,W=t.alloc(8);W.writeUIntBE(G,0,8),D.update(W),T._finID=D.state;var ee=t.from(T._finID);return c(ee),ee}(this,S,U),this._prev=t.from(S),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=D,this._alen=0,this._len=0,this._mode=T,this._authTag=null,this._called=!1}M(O,v),O.prototype._update=function(T){if(!this._called&&this._alen){var P=16-this._alen%16;P<16&&(P=t.alloc(P,0),this._ghash.update(P))}this._called=!0;var S=this._mode.encrypt(this,T);return this._ghash.update(this._decrypt?T:S),this._len+=T.length,S},O.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var T=C(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(T,P){var S=0;T.length!==P.length&&S++;for(var D=Math.min(T.length,P.length),w=0;w<D;++w)S+=T[w]^P[w];return S}(T,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=T,this._cipher.scrub()},O.prototype.getAuthTag=function(){if(this._decrypt||!t.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},O.prototype.setAuthTag=function(P){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=P},O.prototype.setAAD=function(P){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(P),this._alen+=P.length},Ue.exports=O},4330:(Ue,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:(Ue,K,m)=>{var e=m(9382),t=m(3502).Buffer,v=m(9171),M=m(8441),s=m(1052),C=m(1899),c=m(347);function o(D,w,U){s.call(this),this._cache=new O,this._last=void 0,this._cipher=new C.AES(w),this._prev=t.from(U),this._mode=D,this._autopadding=!0}function O(){this.cache=t.allocUnsafe(0)}function P(D,w,U){var G=v[D.toLowerCase()];if(!G)throw new TypeError("invalid suite type");if("string"==typeof U&&(U=t.from(U)),"GCM"!==G.mode&&U.length!==G.iv)throw new TypeError("invalid iv length "+U.length);if("string"==typeof w&&(w=t.from(w)),w.length!==G.key/8)throw new TypeError("invalid key length "+w.length);return"stream"===G.type?new M(G.module,w,U,!0):"auth"===G.type?new e(G.module,w,U,!0):new o(G.module,w,U)}m(3894)(o,s),o.prototype._update=function(D){this._cache.add(D);for(var w,U,G=[];w=this._cache.get(this._autopadding);)U=this._mode.decrypt(this,w),G.push(U);return t.concat(G)},o.prototype._final=function(){var D=this._cache.flush();if(this._autopadding)return function(D){var w=D[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var U=-1;++U<w;)if(D[U+(16-w)]!==w)throw new Error("unable to decrypt data");if(16!==w)return D.slice(0,16-w)}(this._mode.decrypt(this,D));if(D)throw new Error("data not multiple of block length")},o.prototype.setAutoPadding=function(D){return this._autopadding=!!D,this},O.prototype.add=function(D){this.cache=t.concat([this.cache,D])},O.prototype.get=function(D){var w;if(D){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},O.prototype.flush=function(){if(this.cache.length)return this.cache},K.createDecipher=function(D,w){var U=v[D.toLowerCase()];if(!U)throw new TypeError("invalid suite type");var G=c(w,!1,U.key,U.iv);return P(D,G.key,G.iv)},K.createDecipheriv=P},6900:(Ue,K,m)=>{var e=m(9171),t=m(9382),v=m(3502).Buffer,M=m(8441),s=m(1052),C=m(1899),c=m(347);function o(D,w,U){s.call(this),this._cache=new T,this._cipher=new C.AES(w),this._prev=v.from(U),this._mode=D,this._autopadding=!0}m(3894)(o,s),o.prototype._update=function(D){this._cache.add(D);for(var w,U,G=[];w=this._cache.get();)U=this._mode.encrypt(this,w),G.push(U);return v.concat(G)};var O=v.alloc(16,16);function T(){this.cache=v.allocUnsafe(0)}function P(D,w,U){var G=e[D.toLowerCase()];if(!G)throw new TypeError("invalid suite type");if("string"==typeof w&&(w=v.from(w)),w.length!==G.key/8)throw new TypeError("invalid key length "+w.length);if("string"==typeof U&&(U=v.from(U)),"GCM"!==G.mode&&U.length!==G.iv)throw new TypeError("invalid iv length "+U.length);return"stream"===G.type?new M(G.module,w,U):"auth"===G.type?new t(G.module,w,U):new o(G.module,w,U)}o.prototype._final=function(){var D=this._cache.flush();if(this._autopadding)return D=this._mode.encrypt(this,D),this._cipher.scrub(),D;if(!D.equals(O))throw this._cipher.scrub(),new Error("data not multiple of block length")},o.prototype.setAutoPadding=function(D){return this._autopadding=!!D,this},T.prototype.add=function(D){this.cache=v.concat([this.cache,D])},T.prototype.get=function(){if(this.cache.length>15){var D=this.cache.slice(0,16);return this.cache=this.cache.slice(16),D}return null},T.prototype.flush=function(){for(var D=16-this.cache.length,w=v.allocUnsafe(D),U=-1;++U<D;)w.writeUInt8(D,U);return v.concat([this.cache,w])},K.createCipheriv=P,K.createCipher=function(D,w){var U=e[D.toLowerCase()];if(!U)throw new TypeError("invalid suite type");var G=c(w,!1,U.key,U.iv);return P(D,G.key,G.iv)}},8857:(Ue,K,m)=>{var e=m(3502).Buffer,t=e.alloc(16,0);function M(C){var c=e.allocUnsafe(16);return c.writeUInt32BE(C[0]>>>0,0),c.writeUInt32BE(C[1]>>>0,4),c.writeUInt32BE(C[2]>>>0,8),c.writeUInt32BE(C[3]>>>0,12),c}function s(C){this.h=C,this.state=e.alloc(16,0),this.cache=e.allocUnsafe(0)}s.prototype.ghash=function(C){for(var c=-1;++c<C.length;)this.state[c]^=C[c];this._multiply()},s.prototype._multiply=function(){for(var R,O,C=function(C){return[C.readUInt32BE(0),C.readUInt32BE(4),C.readUInt32BE(8),C.readUInt32BE(12)]}(this.h),c=[0,0,0,0],T=-1;++T<128;){for(0!=(this.state[~~(T/8)]&1<<7-T%8)&&(c[0]^=C[0],c[1]^=C[1],c[2]^=C[2],c[3]^=C[3]),O=0!=(1&C[3]),R=3;R>0;R--)C[R]=C[R]>>>1|(1&C[R-1])<<31;C[0]=C[0]>>>1,O&&(C[0]=C[0]^225<<24)}this.state=M(c)},s.prototype.update=function(C){this.cache=e.concat([this.cache,C]);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(C,c){return this.cache.length&&this.ghash(e.concat([this.cache,t],16)),this.ghash(M([0,C,0,c])),this.state},Ue.exports=s},7968:Ue=>{Ue.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:(Ue,K,m)=>{var e=m(8789);K.encrypt=function(t,v){var M=e(v,t._prev);return t._prev=t._cipher.encryptBlock(M),t._prev},K.decrypt=function(t,v){var M=t._prev;t._prev=v;var s=t._cipher.decryptBlock(v);return e(s,M)}},9885:(Ue,K,m)=>{var e=m(3502).Buffer,t=m(8789);function v(M,s,C){var c=s.length,R=t(s,M._cache);return M._cache=M._cache.slice(c),M._prev=e.concat([M._prev,C?s:R]),R}K.encrypt=function(M,s,C){for(var R,c=e.allocUnsafe(0);s.length;){if(0===M._cache.length&&(M._cache=M._cipher.encryptBlock(M._prev),M._prev=e.allocUnsafe(0)),!(M._cache.length<=s.length)){c=e.concat([c,v(M,s,C)]);break}c=e.concat([c,v(M,s.slice(0,R=M._cache.length),C)]),s=s.slice(R)}return c}},6531:(Ue,K,m)=>{var e=m(3502).Buffer;function t(M,s,C){for(var T,P,R=-1,O=0;++R<8;)O+=(128&(P=M._cipher.encryptBlock(M._prev)[0]^(T=s&1<<7-R?128:0)))>>R%8,M._prev=v(M._prev,C?T:P);return O}function v(M,s){var C=M.length,c=-1,R=e.allocUnsafe(M.length);for(M=e.concat([M,e.from([s])]);++c<C;)R[c]=M[c]<<1|M[c+1]>>7;return R}K.encrypt=function(M,s,C){for(var c=s.length,R=e.allocUnsafe(c),o=-1;++o<c;)R[o]=t(M,s[o],C);return R}},1641:(Ue,K,m)=>{var e=m(3502).Buffer;function t(v,M,s){var c=v._cipher.encryptBlock(v._prev)[0]^M;return v._prev=e.concat([v._prev.slice(1),e.from([s?M:c])]),c}K.encrypt=function(v,M,s){for(var C=M.length,c=e.allocUnsafe(C),R=-1;++R<C;)c[R]=t(v,M[R],s);return c}},1150:(Ue,K,m)=>{var e=m(8789),t=m(3502).Buffer,v=m(7968);function M(C){var c=C._cipher.encryptBlockRaw(C._prev);return v(C._prev),c}K.encrypt=function(C,c){var R=Math.ceil(c.length/16),o=C._cache.length;C._cache=t.concat([C._cache,t.allocUnsafe(16*R)]);for(var O=0;O<R;O++){var T=M(C),P=o+16*O;C._cache.writeUInt32BE(T[0],P+0),C._cache.writeUInt32BE(T[1],P+4),C._cache.writeUInt32BE(T[2],P+8),C._cache.writeUInt32BE(T[3],P+12)}var S=C._cache.slice(0,c.length);return C._cache=C._cache.slice(c.length),e(c,S)}},1704:(Ue,K)=>{K.encrypt=function(m,e){return m._cipher.encryptBlock(e)},K.decrypt=function(m,e){return m._cipher.decryptBlock(e)}},9171:(Ue,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];Ue.exports=t},6816:(Ue,K,m)=>{var e=m(8789);function t(v){return v._prev=v._cipher.encryptBlock(v._prev),v._prev}K.encrypt=function(v,M){for(;v._cache.length<M.length;)v._cache=Buffer.concat([v._cache,t(v)]);var s=v._cache.slice(0,M.length);return v._cache=v._cache.slice(M.length),e(M,s)}},8441:(Ue,K,m)=>{var e=m(1899),t=m(3502).Buffer,v=m(1052);function s(C,c,R,o){v.call(this),this._cipher=new e.AES(c),this._prev=t.from(R),this._cache=t.allocUnsafe(0),this._secCache=t.allocUnsafe(0),this._decrypt=o,this._mode=C}m(3894)(s,v),s.prototype._update=function(C){return this._mode.encrypt(this,C,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},Ue.exports=s},5255:(Ue,K,m)=>{var e=m(9004),t=m(4330),v=m(9171),M=m(1115),s=m(347);function R(T,P,S){if(T=T.toLowerCase(),v[T])return t.createCipheriv(T,P,S);if(M[T])return new e({key:P,iv:S,mode:T});throw new TypeError("invalid suite type")}function o(T,P,S){if(T=T.toLowerCase(),v[T])return t.createDecipheriv(T,P,S);if(M[T])return new e({key:P,iv:S,mode:T,decrypt:!0});throw new TypeError("invalid suite type")}K.createCipher=K.Cipher=function(T,P){var S,D;if(T=T.toLowerCase(),v[T])S=v[T].key,D=v[T].iv;else{if(!M[T])throw new TypeError("invalid suite type");S=8*M[T].key,D=M[T].iv}var w=s(P,!1,S,D);return R(T,w.key,w.iv)},K.createCipheriv=K.Cipheriv=R,K.createDecipher=K.Decipher=function(T,P){var S,D;if(T=T.toLowerCase(),v[T])S=v[T].key,D=v[T].iv;else{if(!M[T])throw new TypeError("invalid suite type");S=8*M[T].key,D=M[T].iv}var w=s(P,!1,S,D);return o(T,w.key,w.iv)},K.createDecipheriv=K.Decipheriv=o,K.listCiphers=K.getCiphers=function(){return Object.keys(M).concat(t.getCiphers())}},9004:(Ue,K,m)=>{var e=m(1052),t=m(3684),v=m(3894),M=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 C(c){e.call(this);var O,R=c.mode.toLowerCase(),o=s[R];O=c.decrypt?"decrypt":"encrypt";var T=c.key;M.isBuffer(T)||(T=M.from(T)),("des-ede"===R||"des-ede-cbc"===R)&&(T=M.concat([T,T.slice(0,8)]));var P=c.iv;M.isBuffer(P)||(P=M.from(P)),this._des=o.create({key:T,iv:P,type:O})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],Ue.exports=C,v(C,e),C.prototype._update=function(c){return M.from(this._des.update(c))},C.prototype._final=function(){return M.from(this._des.final())}},1115:(Ue,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:(Ue,K,m)=>{var e=m(8538),t=m(3753);function M(C){var R,c=C.modulus.byteLength();do{R=new e(t(c))}while(R.cmp(C.modulus)>=0||!R.umod(C.prime1)||!R.umod(C.prime2));return R}function s(C,c){var R=function(C){var c=M(C);return{blinder:c.toRed(e.mont(C.modulus)).redPow(new e(C.publicExponent)).fromRed(),unblinder:c.invm(C.modulus)}}(c),o=c.modulus.byteLength(),O=new e(C).mul(R.blinder).umod(c.modulus),T=O.toRed(e.mont(c.prime1)),P=O.toRed(e.mont(c.prime2)),S=c.coefficient,D=c.prime1,w=c.prime2,U=T.redPow(c.exponent1).fromRed(),G=P.redPow(c.exponent2).fromRed(),W=U.isub(G).imul(S).umod(D).imul(w);return G.iadd(W).imul(R.unblinder).umod(c.modulus).toArrayLike(Buffer,"be",o)}s.getr=M,Ue.exports=s},7793:(Ue,K,m)=>{Ue.exports=m(5207)},3923:(Ue,K,m)=>{var e=m(8446).Buffer,t=m(6386),v=m(5685),M=m(3894),s=m(9947),C=m(3946),c=m(5207);function R(P){v.Writable.call(this);var S=c[P];if(!S)throw new Error("Unknown message digest");this._hashType=S.hash,this._hash=t(S.hash),this._tag=S.id,this._signType=S.sign}function o(P){v.Writable.call(this);var S=c[P];if(!S)throw new Error("Unknown message digest");this._hash=t(S.hash),this._tag=S.id,this._signType=S.sign}function O(P){return new R(P)}function T(P){return new o(P)}Object.keys(c).forEach(function(P){c[P].id=e.from(c[P].id,"hex"),c[P.toLowerCase()]=c[P]}),M(R,v.Writable),R.prototype._write=function(S,D,w){this._hash.update(S),w()},R.prototype.update=function(S,D){return"string"==typeof S&&(S=e.from(S,D)),this._hash.update(S),this},R.prototype.sign=function(S,D){this.end();var w=this._hash.digest(),U=s(w,S,this._hashType,this._signType,this._tag);return D?U.toString(D):U},M(o,v.Writable),o.prototype._write=function(S,D,w){this._hash.update(S),w()},o.prototype.update=function(S,D){return"string"==typeof S&&(S=e.from(S,D)),this._hash.update(S),this},o.prototype.verify=function(S,D,w){"string"==typeof D&&(D=e.from(D,w)),this.end();var U=this._hash.digest();return C(D,U,S,this._signType,this._tag)},Ue.exports={Sign:O,Verify:T,createSign:O,createVerify:T}},9947:(Ue,K,m)=>{var e=m(8446).Buffer,t=m(4529),v=m(8466),M=m(7715).ec,s=m(8538),C=m(2772),c=m(1308);function P(G,W,ee,ie){if((G=e.from(G.toArray())).length<W.byteLength()){var _e=e.alloc(W.byteLength()-G.length);G=e.concat([_e,G])}var fe=ee.length,de=function(G,W){G=(G=S(G,W)).mod(W);var ee=e.from(G.toArray());if(ee.length<W.byteLength()){var ie=e.alloc(W.byteLength()-ee.length);ee=e.concat([ie,ee])}return ee}(ee,W),ne=e.alloc(fe);ne.fill(1);var se=e.alloc(fe);return se=t(ie,se).update(ne).update(e.from([0])).update(G).update(de).digest(),ne=t(ie,se).update(ne).digest(),{k:se=t(ie,se).update(ne).update(e.from([1])).update(G).update(de).digest(),v:ne=t(ie,se).update(ne).digest()}}function S(G,W){var ee=new s(G),ie=(G.length<<3)-W.bitLength();return ie>0&&ee.ishrn(ie),ee}function w(G,W,ee){var ie,_e;do{for(ie=e.alloc(0);8*ie.length<G.bitLength();)W.v=t(ee,W.k).update(W.v).digest(),ie=e.concat([ie,W.v]);_e=S(ie,G),W.k=t(ee,W.k).update(W.v).update(e.from([0])).digest(),W.v=t(ee,W.k).update(W.v).digest()}while(-1!==_e.cmp(G));return _e}function U(G,W,ee,ie){return G.toRed(s.mont(ee)).redPow(W).fromRed().mod(ie)}Ue.exports=function(G,W,ee,ie,_e){var fe=C(W);if(fe.curve){if("ecdsa"!==ie&&"ecdsa/rsa"!==ie)throw new Error("wrong private key type");return function(G,W){var ee=c[W.curve.join(".")];if(!ee)throw new Error("unknown curve "+W.curve.join("."));var fe=new M(ee).keyFromPrivate(W.privateKey).sign(G);return e.from(fe.toDER())}(G,fe)}if("dsa"===fe.type){if("dsa"!==ie)throw new Error("wrong private key type");return function(G,W,ee){for(var se,ie=W.params.priv_key,_e=W.params.p,fe=W.params.q,de=W.params.g,ne=new s(0),oe=S(G,fe).mod(fe),y=!1,i=P(ie,fe,G,ee);!1===y;)ne=U(de,se=w(fe,i,ee),_e,fe),0===(y=se.invm(fe).imul(oe.add(ie.mul(ne))).mod(fe)).cmpn(0)&&(y=!1,ne=new s(0));return function(G,W){G=G.toArray(),W=W.toArray(),128&G[0]&&(G=[0].concat(G)),128&W[0]&&(W=[0].concat(W));var ie=[48,G.length+W.length+4,2,G.length];return ie=ie.concat(G,[2,W.length],W),e.from(ie)}(ne,y)}(G,fe,ee)}if("rsa"!==ie&&"ecdsa/rsa"!==ie)throw new Error("wrong private key type");G=e.concat([_e,G]);for(var de=fe.modulus.byteLength(),ne=[0,1];G.length+ne.length+1<de;)ne.push(255);ne.push(0);for(var se=-1;++se<G.length;)ne.push(G[se]);return v(ne,fe)},Ue.exports.getKey=P,Ue.exports.makeKey=w},3946:(Ue,K,m)=>{var e=m(8446).Buffer,t=m(8538),v=m(7715).ec,M=m(2772),s=m(1308);function o(O,T){if(O.cmpn(0)<=0)throw new Error("invalid sig");if(O.cmp(T)>=T)throw new Error("invalid sig")}Ue.exports=function(O,T,P,S,D){var w=M(P);if("ec"===w.type){if("ecdsa"!==S&&"ecdsa/rsa"!==S)throw new Error("wrong public key type");return function(O,T,P){var S=s[P.data.algorithm.curve.join(".")];if(!S)throw new Error("unknown curve "+P.data.algorithm.curve.join("."));return new v(S).verify(T,O,P.data.subjectPrivateKey.data)}(O,T,w)}if("dsa"===w.type){if("dsa"!==S)throw new Error("wrong public key type");return function(O,T,P){var S=P.data.p,D=P.data.q,w=P.data.g,U=P.data.pub_key,G=M.signature.decode(O,"der"),W=G.s,ee=G.r;o(W,D),o(ee,D);var ie=t.mont(S),_e=W.invm(D);return 0===w.toRed(ie).redPow(new t(T).mul(_e).mod(D)).fromRed().mul(U.toRed(ie).redPow(ee.mul(_e).mod(D)).fromRed()).mod(S).mod(D).cmp(ee)}(O,T,w)}if("rsa"!==S&&"ecdsa/rsa"!==S)throw new Error("wrong public key type");T=e.concat([D,T]);for(var U=w.modulus.byteLength(),G=[1],W=0;T.length+G.length+2<U;)G.push(255),W++;G.push(0);for(var ee=-1;++ee<T.length;)G.push(T[ee]);G=e.from(G);var ie=t.mont(w.modulus);O=(O=new t(O).toRed(ie)).redPow(new t(w.publicExponent)),O=e.from(O.fromRed().toArray());var _e=W<8?1:0;for(U=Math.min(O.length,G.length),O.length!==G.length&&(_e=1),ee=-1;++ee<U;)_e|=O[ee]^G[ee];return 0===_e}},8446:(Ue,K,m)=>{var e=m(3172),t=e.Buffer;function v(s,C){for(var c in s)C[c]=s[c]}function M(s,C,c){return t(s,C,c)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ue.exports=e:(v(e,K),K.Buffer=M),M.prototype=Object.create(t.prototype),v(t,M),M.from=function(s,C,c){if("number"==typeof s)throw new TypeError("Argument must not be a number");return t(s,C,c)},M.alloc=function(s,C,c){if("number"!=typeof s)throw new TypeError("Argument must be a number");var R=t(s);return void 0!==C?"string"==typeof c?R.fill(C,c):R.fill(C):R.fill(0),R},M.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t(s)},M.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e.SlowBuffer(s)}},8789:Ue=>{Ue.exports=function(m,e){for(var t=Math.min(m.length,e.length),v=new Buffer(t),M=0;M<t;++M)v[M]=m[M]^e[M];return v}},3172:(Ue,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(Ne){return+Ne!=Ne&&(Ne=0),c.alloc(+Ne)},K.INSPECT_MAX_BYTES=50;var M=2147483647;function C(Ne){if(Ne>M)throw new RangeError('The value "'+Ne+'" is invalid for option "size"');var Ve=new Uint8Array(Ne);return Object.setPrototypeOf(Ve,c.prototype),Ve}function c(Ne,Ve,ue){if("number"==typeof Ne){if("string"==typeof Ve)throw new TypeError('The "string" argument must be of type string. Received type number');return T(Ne)}return R(Ne,Ve,ue)}function R(Ne,Ve,ue){if("string"==typeof Ne)return function(Ne,Ve){if(("string"!=typeof Ve||""===Ve)&&(Ve="utf8"),!c.isEncoding(Ve))throw new TypeError("Unknown encoding: "+Ve);var ue=0|ee(Ne,Ve),Te=C(ue),ke=Te.write(Ne,Ve);return ke!==ue&&(Te=Te.slice(0,ke)),Te}(Ne,Ve);if(ArrayBuffer.isView(Ne))return function(Ne){if(le(Ne,Uint8Array)){var Ve=new Uint8Array(Ne);return w(Ve.buffer,Ve.byteOffset,Ve.byteLength)}return S(Ne)}(Ne);if(null==Ne)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ne);if(le(Ne,ArrayBuffer)||Ne&&le(Ne.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(le(Ne,SharedArrayBuffer)||Ne&&le(Ne.buffer,SharedArrayBuffer)))return w(Ne,Ve,ue);if("number"==typeof Ne)throw new TypeError('The "value" argument must not be of type number. Received type number');var Te=Ne.valueOf&&Ne.valueOf();if(null!=Te&&Te!==Ne)return c.from(Te,Ve,ue);var ke=function(Ne){if(c.isBuffer(Ne)){var Ve=0|G(Ne.length),ue=C(Ve);return 0===ue.length||Ne.copy(ue,0,0,Ve),ue}return void 0!==Ne.length?"number"!=typeof Ne.length||We(Ne.length)?C(0):S(Ne):"Buffer"===Ne.type&&Array.isArray(Ne.data)?S(Ne.data):void 0}(Ne);if(ke)return ke;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Ne[Symbol.toPrimitive])return c.from(Ne[Symbol.toPrimitive]("string"),Ve,ue);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ne)}function o(Ne){if("number"!=typeof Ne)throw new TypeError('"size" argument must be of type number');if(Ne<0)throw new RangeError('The value "'+Ne+'" is invalid for option "size"')}function T(Ne){return o(Ne),C(Ne<0?0:0|G(Ne))}function S(Ne){for(var Ve=Ne.length<0?0:0|G(Ne.length),ue=C(Ve),Te=0;Te<Ve;Te+=1)ue[Te]=255&Ne[Te];return ue}function w(Ne,Ve,ue){if(Ve<0||Ne.byteLength<Ve)throw new RangeError('"offset" is outside of buffer bounds');if(Ne.byteLength<Ve+(ue||0))throw new RangeError('"length" is outside of buffer bounds');var Te;return Te=void 0===Ve&&void 0===ue?new Uint8Array(Ne):void 0===ue?new Uint8Array(Ne,Ve):new Uint8Array(Ne,Ve,ue),Object.setPrototypeOf(Te,c.prototype),Te}function G(Ne){if(Ne>=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return 0|Ne}function ee(Ne,Ve){if(c.isBuffer(Ne))return Ne.length;if(ArrayBuffer.isView(Ne)||le(Ne,ArrayBuffer))return Ne.byteLength;if("string"!=typeof Ne)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ne);var ue=Ne.length,Te=arguments.length>2&&!0===arguments[2];if(!Te&&0===ue)return 0;for(var ke=!1;;)switch(Ve){case"ascii":case"latin1":case"binary":return ue;case"utf8":case"utf-8":return Fe(Ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ue;case"hex":return ue>>>1;case"base64":return we(Ne).length;default:if(ke)return Te?-1:Fe(Ne).length;Ve=(""+Ve).toLowerCase(),ke=!0}}function ie(Ne,Ve,ue){var Te=!1;if((void 0===Ve||Ve<0)&&(Ve=0),Ve>this.length||((void 0===ue||ue>this.length)&&(ue=this.length),ue<=0)||(ue>>>=0)<=(Ve>>>=0))return"";for(Ne||(Ne="utf8");;)switch(Ne){case"hex":return x(this,Ve,ue);case"utf8":case"utf-8":return p(this,Ve,ue);case"ascii":return L(this,Ve,ue);case"latin1":case"binary":return I(this,Ve,ue);case"base64":return a(this,Ve,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r(this,Ve,ue);default:if(Te)throw new TypeError("Unknown encoding: "+Ne);Ne=(Ne+"").toLowerCase(),Te=!0}}function _e(Ne,Ve,ue){var Te=Ne[Ve];Ne[Ve]=Ne[ue],Ne[ue]=Te}function fe(Ne,Ve,ue,Te,ke){if(0===Ne.length)return-1;if("string"==typeof ue?(Te=ue,ue=0):ue>2147483647?ue=2147483647:ue<-2147483648&&(ue=-2147483648),We(ue=+ue)&&(ue=ke?0:Ne.length-1),ue<0&&(ue=Ne.length+ue),ue>=Ne.length){if(ke)return-1;ue=Ne.length-1}else if(ue<0){if(!ke)return-1;ue=0}if("string"==typeof Ve&&(Ve=c.from(Ve,Te)),c.isBuffer(Ve))return 0===Ve.length?-1:de(Ne,Ve,ue,Te,ke);if("number"==typeof Ve)return Ve&=255,"function"==typeof Uint8Array.prototype.indexOf?ke?Uint8Array.prototype.indexOf.call(Ne,Ve,ue):Uint8Array.prototype.lastIndexOf.call(Ne,Ve,ue):de(Ne,[Ve],ue,Te,ke);throw new TypeError("val must be string, number or Buffer")}function de(Ne,Ve,ue,Te,ke){var ze,Y=1,X=Ne.length,he=Ve.length;if(void 0!==Te&&("ucs2"===(Te=String(Te).toLowerCase())||"ucs-2"===Te||"utf16le"===Te||"utf-16le"===Te)){if(Ne.length<2||Ve.length<2)return-1;Y=2,X/=2,he/=2,ue/=2}function Me(nt,st){return 1===Y?nt[st]:nt.readUInt16BE(st*Y)}if(ke){var ht=-1;for(ze=ue;ze<X;ze++)if(Me(Ne,ze)===Me(Ve,-1===ht?0:ze-ht)){if(-1===ht&&(ht=ze),ze-ht+1===he)return ht*Y}else-1!==ht&&(ze-=ze-ht),ht=-1}else for(ue+he>X&&(ue=X-he),ze=ue;ze>=0;ze--){for(var it=!0,ft=0;ft<he;ft++)if(Me(Ne,ze+ft)!==Me(Ve,ft)){it=!1;break}if(it)return ze}return-1}function ne(Ne,Ve,ue,Te){ue=Number(ue)||0;var ke=Ne.length-ue;Te?(Te=Number(Te))>ke&&(Te=ke):Te=ke;var Y=Ve.length;Te>Y/2&&(Te=Y/2);for(var X=0;X<Te;++X){var he=parseInt(Ve.substr(2*X,2),16);if(We(he))return X;Ne[ue+X]=he}return X}function se(Ne,Ve,ue,Te){return Ae(Fe(Ve,Ne.length-ue),Ne,ue,Te)}function oe(Ne,Ve,ue,Te){return Ae(function(Ne){for(var Ve=[],ue=0;ue<Ne.length;++ue)Ve.push(255&Ne.charCodeAt(ue));return Ve}(Ve),Ne,ue,Te)}function y(Ne,Ve,ue,Te){return Ae(we(Ve),Ne,ue,Te)}function i(Ne,Ve,ue,Te){return Ae(function(Ne,Ve){for(var ue,Te,Y=[],X=0;X<Ne.length&&!((Ve-=2)<0);++X)Te=(ue=Ne.charCodeAt(X))>>8,Y.push(ue%256),Y.push(Te);return Y}(Ve,Ne.length-ue),Ne,ue,Te)}function a(Ne,Ve,ue){return e.fromByteArray(0===Ve&&ue===Ne.length?Ne:Ne.slice(Ve,ue))}function p(Ne,Ve,ue){ue=Math.min(Ne.length,ue);for(var Te=[],ke=Ve;ke<ue;){var Me,ze,ht,it,Y=Ne[ke],X=null,he=Y>239?4:Y>223?3:Y>191?2:1;if(ke+he<=ue)switch(he){case 1:Y<128&&(X=Y);break;case 2:128==(192&(Me=Ne[ke+1]))&&(it=(31&Y)<<6|63&Me)>127&&(X=it);break;case 3:ze=Ne[ke+2],128==(192&(Me=Ne[ke+1]))&&128==(192&ze)&&(it=(15&Y)<<12|(63&Me)<<6|63&ze)>2047&&(it<55296||it>57343)&&(X=it);break;case 4:ze=Ne[ke+2],ht=Ne[ke+3],128==(192&(Me=Ne[ke+1]))&&128==(192&ze)&&128==(192&ht)&&(it=(15&Y)<<18|(63&Me)<<12|(63&ze)<<6|63&ht)>65535&&it<1114112&&(X=it)}null===X?(X=65533,he=1):X>65535&&(Te.push((X-=65536)>>>10&1023|55296),X=56320|1023&X),Te.push(X),ke+=he}return function(Ne){var Ve=Ne.length;if(Ve<=u)return String.fromCharCode.apply(String,Ne);for(var ue="",Te=0;Te<Ve;)ue+=String.fromCharCode.apply(String,Ne.slice(Te,Te+=u));return ue}(Te)}K.kMaxLength=M,!(c.TYPED_ARRAY_SUPPORT=function(){try{var Ne=new Uint8Array(1),Ve={foo:function(){return 42}};return Object.setPrototypeOf(Ve,Uint8Array.prototype),Object.setPrototypeOf(Ne,Ve),42===Ne.foo()}catch(ue){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(Ne,Ve,ue){return R(Ne,Ve,ue)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(Ne,Ve,ue){return function(Ne,Ve,ue){return o(Ne),Ne<=0?C(Ne):void 0!==Ve?"string"==typeof ue?C(Ne).fill(Ve,ue):C(Ne).fill(Ve):C(Ne)}(Ne,Ve,ue)},c.allocUnsafe=function(Ne){return T(Ne)},c.allocUnsafeSlow=function(Ne){return T(Ne)},c.isBuffer=function(Ve){return null!=Ve&&!0===Ve._isBuffer&&Ve!==c.prototype},c.compare=function(Ve,ue){if(le(Ve,Uint8Array)&&(Ve=c.from(Ve,Ve.offset,Ve.byteLength)),le(ue,Uint8Array)&&(ue=c.from(ue,ue.offset,ue.byteLength)),!c.isBuffer(Ve)||!c.isBuffer(ue))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ve===ue)return 0;for(var Te=Ve.length,ke=ue.length,Y=0,X=Math.min(Te,ke);Y<X;++Y)if(Ve[Y]!==ue[Y]){Te=Ve[Y],ke=ue[Y];break}return Te<ke?-1:ke<Te?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,ue){if(!Array.isArray(Ve))throw new TypeError('"list" argument must be an Array of Buffers');if(0===Ve.length)return c.alloc(0);var Te;if(void 0===ue)for(ue=0,Te=0;Te<Ve.length;++Te)ue+=Ve[Te].length;var ke=c.allocUnsafe(ue),Y=0;for(Te=0;Te<Ve.length;++Te){var X=Ve[Te];if(le(X,Uint8Array))Y+X.length>ke.length?c.from(X).copy(ke,Y):Uint8Array.prototype.set.call(ke,X,Y);else{if(!c.isBuffer(X))throw new TypeError('"list" argument must be an Array of Buffers');X.copy(ke,Y)}Y+=X.length}return ke},c.byteLength=ee,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 ue=0;ue<Ve;ue+=2)_e(this,ue,ue+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 ue=0;ue<Ve;ue+=4)_e(this,ue,ue+3),_e(this,ue+1,ue+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 ue=0;ue<Ve;ue+=8)_e(this,ue,ue+7),_e(this,ue+1,ue+6),_e(this,ue+2,ue+5),_e(this,ue+3,ue+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var Ve=this.length;return 0===Ve?"":0===arguments.length?p(this,0,Ve):ie.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="",ue=K.INSPECT_MAX_BYTES;return Ve=this.toString("hex",0,ue).replace(/(.{2})/g,"$1 ").trim(),this.length>ue&&(Ve+=" ... "),"<Buffer "+Ve+">"},v&&(c.prototype[v]=c.prototype.inspect),c.prototype.compare=function(Ve,ue,Te,ke,Y){if(le(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===ue&&(ue=0),void 0===Te&&(Te=Ve?Ve.length:0),void 0===ke&&(ke=0),void 0===Y&&(Y=this.length),ue<0||Te>Ve.length||ke<0||Y>this.length)throw new RangeError("out of range index");if(ke>=Y&&ue>=Te)return 0;if(ke>=Y)return-1;if(ue>=Te)return 1;if(this===Ve)return 0;for(var X=(Y>>>=0)-(ke>>>=0),he=(Te>>>=0)-(ue>>>=0),Me=Math.min(X,he),ze=this.slice(ke,Y),ht=Ve.slice(ue,Te),it=0;it<Me;++it)if(ze[it]!==ht[it]){X=ze[it],he=ht[it];break}return X<he?-1:he<X?1:0},c.prototype.includes=function(Ve,ue,Te){return-1!==this.indexOf(Ve,ue,Te)},c.prototype.indexOf=function(Ve,ue,Te){return fe(this,Ve,ue,Te,!0)},c.prototype.lastIndexOf=function(Ve,ue,Te){return fe(this,Ve,ue,Te,!1)},c.prototype.write=function(Ve,ue,Te,ke){if(void 0===ue)ke="utf8",Te=this.length,ue=0;else if(void 0===Te&&"string"==typeof ue)ke=ue,Te=this.length,ue=0;else{if(!isFinite(ue))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");ue>>>=0,isFinite(Te)?(Te>>>=0,void 0===ke&&(ke="utf8")):(ke=Te,Te=void 0)}var Y=this.length-ue;if((void 0===Te||Te>Y)&&(Te=Y),Ve.length>0&&(Te<0||ue<0)||ue>this.length)throw new RangeError("Attempt to write outside buffer bounds");ke||(ke="utf8");for(var X=!1;;)switch(ke){case"hex":return ne(this,Ve,ue,Te);case"utf8":case"utf-8":return se(this,Ve,ue,Te);case"ascii":case"latin1":case"binary":return oe(this,Ve,ue,Te);case"base64":return y(this,Ve,ue,Te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,Ve,ue,Te);default:if(X)throw new TypeError("Unknown encoding: "+ke);ke=(""+ke).toLowerCase(),X=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var u=4096;function L(Ne,Ve,ue){var Te="";ue=Math.min(Ne.length,ue);for(var ke=Ve;ke<ue;++ke)Te+=String.fromCharCode(127&Ne[ke]);return Te}function I(Ne,Ve,ue){var Te="";ue=Math.min(Ne.length,ue);for(var ke=Ve;ke<ue;++ke)Te+=String.fromCharCode(Ne[ke]);return Te}function x(Ne,Ve,ue){var Te=Ne.length;(!Ve||Ve<0)&&(Ve=0),(!ue||ue<0||ue>Te)&&(ue=Te);for(var ke="",Y=Ve;Y<ue;++Y)ke+=yt[Ne[Y]];return ke}function r(Ne,Ve,ue){for(var Te=Ne.slice(Ve,ue),ke="",Y=0;Y<Te.length-1;Y+=2)ke+=String.fromCharCode(Te[Y]+256*Te[Y+1]);return ke}function b(Ne,Ve,ue){if(Ne%1!=0||Ne<0)throw new RangeError("offset is not uint");if(Ne+Ve>ue)throw new RangeError("Trying to access beyond buffer length")}function J(Ne,Ve,ue,Te,ke,Y){if(!c.isBuffer(Ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ve>ke||Ve<Y)throw new RangeError('"value" argument is out of bounds');if(ue+Te>Ne.length)throw new RangeError("Index out of range")}function F(Ne,Ve,ue,Te,ke,Y){if(ue+Te>Ne.length)throw new RangeError("Index out of range");if(ue<0)throw new RangeError("Index out of range")}function B(Ne,Ve,ue,Te,ke){return Ve=+Ve,ue>>>=0,ke||F(Ne,0,ue,4),t.write(Ne,Ve,ue,Te,23,4),ue+4}function te(Ne,Ve,ue,Te,ke){return Ve=+Ve,ue>>>=0,ke||F(Ne,0,ue,8),t.write(Ne,Ve,ue,Te,52,8),ue+8}c.prototype.slice=function(Ve,ue){var Te=this.length;(Ve=~~Ve)<0?(Ve+=Te)<0&&(Ve=0):Ve>Te&&(Ve=Te),(ue=void 0===ue?Te:~~ue)<0?(ue+=Te)<0&&(ue=0):ue>Te&&(ue=Te),ue<Ve&&(ue=Ve);var ke=this.subarray(Ve,ue);return Object.setPrototypeOf(ke,c.prototype),ke},c.prototype.readUintLE=c.prototype.readUIntLE=function(Ve,ue,Te){Ve>>>=0,ue>>>=0,Te||b(Ve,ue,this.length);for(var ke=this[Ve],Y=1,X=0;++X<ue&&(Y*=256);)ke+=this[Ve+X]*Y;return ke},c.prototype.readUintBE=c.prototype.readUIntBE=function(Ve,ue,Te){Ve>>>=0,ue>>>=0,Te||b(Ve,ue,this.length);for(var ke=this[Ve+--ue],Y=1;ue>0&&(Y*=256);)ke+=this[Ve+--ue]*Y;return ke},c.prototype.readUint8=c.prototype.readUInt8=function(Ve,ue){return Ve>>>=0,ue||b(Ve,1,this.length),this[Ve]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(Ve,ue){return Ve>>>=0,ue||b(Ve,2,this.length),this[Ve]|this[Ve+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(Ve,ue){return Ve>>>=0,ue||b(Ve,2,this.length),this[Ve]<<8|this[Ve+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(Ve,ue){return Ve>>>=0,ue||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,ue){return Ve>>>=0,ue||b(Ve,4,this.length),16777216*this[Ve]+(this[Ve+1]<<16|this[Ve+2]<<8|this[Ve+3])},c.prototype.readIntLE=function(Ve,ue,Te){Ve>>>=0,ue>>>=0,Te||b(Ve,ue,this.length);for(var ke=this[Ve],Y=1,X=0;++X<ue&&(Y*=256);)ke+=this[Ve+X]*Y;return ke>=(Y*=128)&&(ke-=Math.pow(2,8*ue)),ke},c.prototype.readIntBE=function(Ve,ue,Te){Ve>>>=0,ue>>>=0,Te||b(Ve,ue,this.length);for(var ke=ue,Y=1,X=this[Ve+--ke];ke>0&&(Y*=256);)X+=this[Ve+--ke]*Y;return X>=(Y*=128)&&(X-=Math.pow(2,8*ue)),X},c.prototype.readInt8=function(Ve,ue){return Ve>>>=0,ue||b(Ve,1,this.length),128&this[Ve]?-1*(255-this[Ve]+1):this[Ve]},c.prototype.readInt16LE=function(Ve,ue){Ve>>>=0,ue||b(Ve,2,this.length);var Te=this[Ve]|this[Ve+1]<<8;return 32768&Te?4294901760|Te:Te},c.prototype.readInt16BE=function(Ve,ue){Ve>>>=0,ue||b(Ve,2,this.length);var Te=this[Ve+1]|this[Ve]<<8;return 32768&Te?4294901760|Te:Te},c.prototype.readInt32LE=function(Ve,ue){return Ve>>>=0,ue||b(Ve,4,this.length),this[Ve]|this[Ve+1]<<8|this[Ve+2]<<16|this[Ve+3]<<24},c.prototype.readInt32BE=function(Ve,ue){return Ve>>>=0,ue||b(Ve,4,this.length),this[Ve]<<24|this[Ve+1]<<16|this[Ve+2]<<8|this[Ve+3]},c.prototype.readFloatLE=function(Ve,ue){return Ve>>>=0,ue||b(Ve,4,this.length),t.read(this,Ve,!0,23,4)},c.prototype.readFloatBE=function(Ve,ue){return Ve>>>=0,ue||b(Ve,4,this.length),t.read(this,Ve,!1,23,4)},c.prototype.readDoubleLE=function(Ve,ue){return Ve>>>=0,ue||b(Ve,8,this.length),t.read(this,Ve,!0,52,8)},c.prototype.readDoubleBE=function(Ve,ue){return Ve>>>=0,ue||b(Ve,8,this.length),t.read(this,Ve,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(Ve,ue,Te,ke){Ve=+Ve,ue>>>=0,Te>>>=0,ke||J(this,Ve,ue,Te,Math.pow(2,8*Te)-1,0);var X=1,he=0;for(this[ue]=255&Ve;++he<Te&&(X*=256);)this[ue+he]=Ve/X&255;return ue+Te},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(Ve,ue,Te,ke){Ve=+Ve,ue>>>=0,Te>>>=0,ke||J(this,Ve,ue,Te,Math.pow(2,8*Te)-1,0);var X=Te-1,he=1;for(this[ue+X]=255&Ve;--X>=0&&(he*=256);)this[ue+X]=Ve/he&255;return ue+Te},c.prototype.writeUint8=c.prototype.writeUInt8=function(Ve,ue,Te){return Ve=+Ve,ue>>>=0,Te||J(this,Ve,ue,1,255,0),this[ue]=255&Ve,ue+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(Ve,ue,Te){return Ve=+Ve,ue>>>=0,Te||J(this,Ve,ue,2,65535,0),this[ue]=255&Ve,this[ue+1]=Ve>>>8,ue+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(Ve,ue,Te){return Ve=+Ve,ue>>>=0,Te||J(this,Ve,ue,2,65535,0),this[ue]=Ve>>>8,this[ue+1]=255&Ve,ue+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(Ve,ue,Te){return Ve=+Ve,ue>>>=0,Te||J(this,Ve,ue,4,4294967295,0),this[ue+3]=Ve>>>24,this[ue+2]=Ve>>>16,this[ue+1]=Ve>>>8,this[ue]=255&Ve,ue+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(Ve,ue,Te){return Ve=+Ve,ue>>>=0,Te||J(this,Ve,ue,4,4294967295,0),this[ue]=Ve>>>24,this[ue+1]=Ve>>>16,this[ue+2]=Ve>>>8,this[ue+3]=255&Ve,ue+4},c.prototype.writeIntLE=function(Ve,ue,Te,ke){if(Ve=+Ve,ue>>>=0,!ke){var Y=Math.pow(2,8*Te-1);J(this,Ve,ue,Te,Y-1,-Y)}var X=0,he=1,Me=0;for(this[ue]=255&Ve;++X<Te&&(he*=256);)Ve<0&&0===Me&&0!==this[ue+X-1]&&(Me=1),this[ue+X]=(Ve/he>>0)-Me&255;return ue+Te},c.prototype.writeIntBE=function(Ve,ue,Te,ke){if(Ve=+Ve,ue>>>=0,!ke){var Y=Math.pow(2,8*Te-1);J(this,Ve,ue,Te,Y-1,-Y)}var X=Te-1,he=1,Me=0;for(this[ue+X]=255&Ve;--X>=0&&(he*=256);)Ve<0&&0===Me&&0!==this[ue+X+1]&&(Me=1),this[ue+X]=(Ve/he>>0)-Me&255;return ue+Te},c.prototype.writeInt8=function(Ve,ue,Te){return Ve=+Ve,ue>>>=0,Te||J(this,Ve,ue,1,127,-128),Ve<0&&(Ve=255+Ve+1),this[ue]=255&Ve,ue+1},c.prototype.writeInt16LE=function(Ve,ue,Te){return Ve=+Ve,ue>>>=0,Te||J(this,Ve,ue,2,32767,-32768),this[ue]=255&Ve,this[ue+1]=Ve>>>8,ue+2},c.prototype.writeInt16BE=function(Ve,ue,Te){return Ve=+Ve,ue>>>=0,Te||J(this,Ve,ue,2,32767,-32768),this[ue]=Ve>>>8,this[ue+1]=255&Ve,ue+2},c.prototype.writeInt32LE=function(Ve,ue,Te){return Ve=+Ve,ue>>>=0,Te||J(this,Ve,ue,4,2147483647,-2147483648),this[ue]=255&Ve,this[ue+1]=Ve>>>8,this[ue+2]=Ve>>>16,this[ue+3]=Ve>>>24,ue+4},c.prototype.writeInt32BE=function(Ve,ue,Te){return Ve=+Ve,ue>>>=0,Te||J(this,Ve,ue,4,2147483647,-2147483648),Ve<0&&(Ve=4294967295+Ve+1),this[ue]=Ve>>>24,this[ue+1]=Ve>>>16,this[ue+2]=Ve>>>8,this[ue+3]=255&Ve,ue+4},c.prototype.writeFloatLE=function(Ve,ue,Te){return B(this,Ve,ue,!0,Te)},c.prototype.writeFloatBE=function(Ve,ue,Te){return B(this,Ve,ue,!1,Te)},c.prototype.writeDoubleLE=function(Ve,ue,Te){return te(this,Ve,ue,!0,Te)},c.prototype.writeDoubleBE=function(Ve,ue,Te){return te(this,Ve,ue,!1,Te)},c.prototype.copy=function(Ve,ue,Te,ke){if(!c.isBuffer(Ve))throw new TypeError("argument should be a Buffer");if(Te||(Te=0),!ke&&0!==ke&&(ke=this.length),ue>=Ve.length&&(ue=Ve.length),ue||(ue=0),ke>0&&ke<Te&&(ke=Te),ke===Te||0===Ve.length||0===this.length)return 0;if(ue<0)throw new RangeError("targetStart out of bounds");if(Te<0||Te>=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-ue<ke-Te&&(ke=Ve.length-ue+Te);var Y=ke-Te;return this===Ve&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(ue,Te,ke):Uint8Array.prototype.set.call(Ve,this.subarray(Te,ke),ue),Y},c.prototype.fill=function(Ve,ue,Te,ke){if("string"==typeof Ve){if("string"==typeof ue?(ke=ue,ue=0,Te=this.length):"string"==typeof Te&&(ke=Te,Te=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 Y=Ve.charCodeAt(0);("utf8"===ke&&Y<128||"latin1"===ke)&&(Ve=Y)}}else"number"==typeof Ve?Ve&=255:"boolean"==typeof Ve&&(Ve=Number(Ve));if(ue<0||this.length<ue||this.length<Te)throw new RangeError("Out of range index");if(Te<=ue)return this;var X;if(ue>>>=0,Te=void 0===Te?this.length:Te>>>0,Ve||(Ve=0),"number"==typeof Ve)for(X=ue;X<Te;++X)this[X]=Ve;else{var he=c.isBuffer(Ve)?Ve:c.from(Ve,ke),Me=he.length;if(0===Me)throw new TypeError('The value "'+Ve+'" is invalid for argument "value"');for(X=0;X<Te-ue;++X)this[X+ue]=he[X%Me]}return this};var xe=/[^+/0-9A-Za-z-_]/g;function Fe(Ne,Ve){Ve=Ve||1/0;for(var ue,Te=Ne.length,ke=null,Y=[],X=0;X<Te;++X){if((ue=Ne.charCodeAt(X))>55295&&ue<57344){if(!ke){if(ue>56319){(Ve-=3)>-1&&Y.push(239,191,189);continue}if(X+1===Te){(Ve-=3)>-1&&Y.push(239,191,189);continue}ke=ue;continue}if(ue<56320){(Ve-=3)>-1&&Y.push(239,191,189),ke=ue;continue}ue=65536+(ke-55296<<10|ue-56320)}else ke&&(Ve-=3)>-1&&Y.push(239,191,189);if(ke=null,ue<128){if((Ve-=1)<0)break;Y.push(ue)}else if(ue<2048){if((Ve-=2)<0)break;Y.push(ue>>6|192,63&ue|128)}else if(ue<65536){if((Ve-=3)<0)break;Y.push(ue>>12|224,ue>>6&63|128,63&ue|128)}else{if(!(ue<1114112))throw new Error("Invalid code point");if((Ve-=4)<0)break;Y.push(ue>>18|240,ue>>12&63|128,ue>>6&63|128,63&ue|128)}}return Y}function we(Ne){return e.toByteArray(function(Ne){if((Ne=(Ne=Ne.split("=")[0]).trim().replace(xe,"")).length<2)return"";for(;Ne.length%4!=0;)Ne+="=";return Ne}(Ne))}function Ae(Ne,Ve,ue,Te){for(var ke=0;ke<Te&&!(ke+ue>=Ve.length||ke>=Ne.length);++ke)Ve[ke+ue]=Ne[ke];return ke}function le(Ne,Ve){return Ne instanceof Ve||null!=Ne&&null!=Ne.constructor&&null!=Ne.constructor.name&&Ne.constructor.name===Ve.name}function We(Ne){return Ne!=Ne}var yt=function(){for(var Ne="0123456789abcdef",Ve=new Array(256),ue=0;ue<16;++ue)for(var Te=16*ue,ke=0;ke<16;++ke)Ve[Te+ke]=Ne[ue]+Ne[ke];return Ve}()},1052:(Ue,K,m)=>{var e=m(3502).Buffer,t=m(295).Transform,v=m(3054).s;function s(C){t.call(this),this.hashMode="string"==typeof C,this.hashMode?this[C]=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(C,c,R){"string"==typeof C&&(C=e.from(C,c));var o=this._update(C);return this.hashMode?this:(R&&(o=this._toString(o,R)),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(C,c,R){var o;try{this.hashMode?this._update(C):this.push(this._update(C))}catch(O){o=O}finally{R(o)}},s.prototype._flush=function(C){var c;try{this.push(this.__final())}catch(R){c=R}C(c)},s.prototype._finalOrDigest=function(C){var c=this.__final()||e.alloc(0);return C&&(c=this._toString(c,C,!0)),c},s.prototype._toString=function(C,c,R){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(C);return R&&(o+=this._decoder.end()),o},Ue.exports=s},7293:(Ue,K,m)=>{"use strict";const e=m(4315),t=m(2872),v=m(717);Ue.exports=function M(c,R){switch(t(c)){case"object":return function(c,R){if("function"==typeof R)return R(c);if(R||v(c)){const o=new c.constructor;for(let O in c)o[O]=M(c[O],R);return o}return c}(c,R);case"array":return function(c,R){const o=new c.constructor(c.length);for(let O=0;O<c.length;O++)o[O]=M(c[O],R);return o}(c,R);default:return e(c)}}},6128:function(Ue){!function(K){"use strict";var m={bytesToHex:function(v){return function(v){return v.map(function(M){return function(v,M){return v.length>2?v:Array(2-v.length+1).join("0")+v}(M.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(M){return parseInt(M,16)})}};Ue.exports?Ue.exports=m:K.convertHex=m}(this)},5612:function(Ue){!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)))}},Ue.exports?Ue.exports=m:K.convertString=m}(this)},4746:(Ue,K,m)=>{var e=m(7715),t=m(6422);Ue.exports=function(c){return new M(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 M(C){this.curveType=v[C],this.curveType||(this.curveType={name:C}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function s(C,c,R){Array.isArray(C)||(C=C.toArray());var o=new Buffer(C);if(R&&o.length<R){var O=new Buffer(R-o.length);O.fill(0),o=Buffer.concat([O,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,M.prototype.generateKeys=function(C,c){return this.keys=this.curve.genKeyPair(),this.getPublicKey(C,c)},M.prototype.computeSecret=function(C,c,R){return c=c||"utf8",Buffer.isBuffer(C)||(C=new Buffer(C,c)),s(this.curve.keyFromPublic(C).getPublic().mul(this.keys.getPrivate()).getX(),R,this.curveType.byteLength)},M.prototype.getPublicKey=function(C,c){var R=this.keys.getPublic("compressed"===c,!0);return"hybrid"===c&&(R[0]=R[R.length-1]%2?7:6),s(R,C)},M.prototype.getPrivateKey=function(C){return s(this.keys.getPrivate(),C)},M.prototype.setPublicKey=function(C,c){return c=c||"utf8",Buffer.isBuffer(C)||(C=new Buffer(C,c)),this.keys._importPublic(C),this},M.prototype.setPrivateKey=function(C,c){c=c||"utf8",Buffer.isBuffer(C)||(C=new Buffer(C,c));var R=new t(C);return R=R.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(R),this}},6422:function(Ue,K,m){!function(e,t){"use strict";function v(y,i){if(!y)throw new Error(i||"Assertion failed")}function M(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 C;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{C="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 R(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),L=i;L<_;L++){var I=y.charCodeAt(L)-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 _,L,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(L=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=L>>>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,L=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=R(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=R(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=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 L=i.length-p,I=L%u,x=Math.min(L,L-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 J=1;for(r=o(i,b,i.length,a),b=0;b<I;b++)J*=a;this.imuln(J),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 O=["","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"],T=[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],P=[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 D(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],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r<p;r++){for(var b=x>>>26,J=67108863&x,F=Math.min(r,i.length-1),B=Math.max(0,r-y.length+1);B<=F;B++)b+=(L=(u=0|y.words[r-B|0])*(_=0|i.words[B])+J)/67108864|0,J=67108863&L;a.words[r]=0|J,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,L=0;L<this.length;L++){var I=this.words[L],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||L!==this.length-1?O[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}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=T[i],b=P[i];p="";var J=this.clone();for(J.negative=0;!J.isZero();){var F=J.modn(b).toString(i);p=(J=J.idivn(b)).isZero()?F+p:O[r-F.length]+F+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!==C),this.toArrayLike(C,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,L="le"===a,I=new i(_),b=this.clone();if(L){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,L=0;L<u.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+(0|u.words[L])+_),_=a>>>26;for(;0!==_&&L<p.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;L<p.length;L++)this.words[L]=p.words[L];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 L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I<u.length;I++)L=(a=(0|u.words[I])+L)>>26,this.words[I]=67108863&a;if(0===L&&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,L=p.words,I=0,J=0|u[0],F=8191&J,B=J>>>13,te=0|u[1],xe=8191&te,Pe=te>>>13,Fe=0|u[2],q=8191&Fe,j=Fe>>>13,we=0|u[3],Ae=8191&we,le=we>>>13,We=0|u[4],yt=8191&We,Ne=We>>>13,Ve=0|u[5],ue=8191&Ve,Te=Ve>>>13,ke=0|u[6],Y=8191&ke,X=ke>>>13,he=0|u[7],Me=8191&he,ze=he>>>13,ht=0|u[8],it=8191&ht,ft=ht>>>13,nt=0|u[9],st=8191&nt,wt=nt>>>13,Bt=0|_[0],Nt=8191&Bt,Vt=Bt>>>13,Oi=0|_[1],jt=8191&Oi,ti=Oi>>>13,Ri=0|_[2],si=8191&Ri,di=Ri>>>13,He=0|_[3],Se=8191&He,V=He>>>13,ve=0|_[4],Ee=8191&ve,et=ve>>>13,$t=0|_[5],Rt=8191&$t,Xt=$t>>>13,lt=0|_[6],Re=8191&lt,Be=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(F,Nt))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(B,Nt)|0))<<13)|0;I=((b=Math.imul(B,Vt))+(r>>>13)|0)+(rn>>>26)|0,rn&=67108863,x=Math.imul(xe,Nt),r=(r=Math.imul(xe,Vt))+Math.imul(Pe,Nt)|0,b=Math.imul(Pe,Vt);var Vi=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ti)|0)+Math.imul(B,jt)|0))<<13)|0;I=((b=b+Math.imul(B,ti)|0)+(r>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,x=Math.imul(q,Nt),r=(r=Math.imul(q,Vt))+Math.imul(j,Nt)|0,b=Math.imul(j,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ti)|0)+Math.imul(Pe,jt)|0,b=b+Math.imul(Pe,ti)|0;var Di=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,di)|0)+Math.imul(B,si)|0))<<13)|0;I=((b=b+Math.imul(B,di)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(Ae,Nt),r=(r=Math.imul(Ae,Vt))+Math.imul(le,Nt)|0,b=Math.imul(le,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(xe,si)|0,r=(r=r+Math.imul(xe,di)|0)+Math.imul(Pe,si)|0,b=b+Math.imul(Pe,di)|0;var Xi=(I+(x=x+Math.imul(F,Se)|0)|0)+((8191&(r=(r=r+Math.imul(F,V)|0)+Math.imul(B,Se)|0))<<13)|0;I=((b=b+Math.imul(B,V)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(yt,Nt),r=(r=Math.imul(yt,Vt))+Math.imul(Ne,Nt)|0,b=Math.imul(Ne,Vt),x=x+Math.imul(Ae,jt)|0,r=(r=r+Math.imul(Ae,ti)|0)+Math.imul(le,jt)|0,b=b+Math.imul(le,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(xe,Se)|0,r=(r=r+Math.imul(xe,V)|0)+Math.imul(Pe,Se)|0,b=b+Math.imul(Pe,V)|0;var Ke=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(B,Ee)|0))<<13)|0;I=((b=b+Math.imul(B,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ue,Nt),r=(r=Math.imul(ue,Vt))+Math.imul(Te,Nt)|0,b=Math.imul(Te,Vt),x=x+Math.imul(yt,jt)|0,r=(r=r+Math.imul(yt,ti)|0)+Math.imul(Ne,jt)|0,b=b+Math.imul(Ne,ti)|0,x=x+Math.imul(Ae,si)|0,r=(r=r+Math.imul(Ae,di)|0)+Math.imul(le,si)|0,b=b+Math.imul(le,di)|0,x=x+Math.imul(q,Se)|0,r=(r=r+Math.imul(q,V)|0)+Math.imul(j,Se)|0,b=b+Math.imul(j,V)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Pe,Ee)|0,b=b+Math.imul(Pe,et)|0;var mt=(I+(x=x+Math.imul(F,Rt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Xt)|0)+Math.imul(B,Rt)|0))<<13)|0;I=((b=b+Math.imul(B,Xt)|0)+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(Y,Nt),r=(r=Math.imul(Y,Vt))+Math.imul(X,Nt)|0,b=Math.imul(X,Vt),x=x+Math.imul(ue,jt)|0,r=(r=r+Math.imul(ue,ti)|0)+Math.imul(Te,jt)|0,b=b+Math.imul(Te,ti)|0,x=x+Math.imul(yt,si)|0,r=(r=r+Math.imul(yt,di)|0)+Math.imul(Ne,si)|0,b=b+Math.imul(Ne,di)|0,x=x+Math.imul(Ae,Se)|0,r=(r=r+Math.imul(Ae,V)|0)+Math.imul(le,Se)|0,b=b+Math.imul(le,V)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul(j,Ee)|0,b=b+Math.imul(j,et)|0,x=x+Math.imul(xe,Rt)|0,r=(r=r+Math.imul(xe,Xt)|0)+Math.imul(Pe,Rt)|0,b=b+Math.imul(Pe,Xt)|0;var be=(I+(x=x+Math.imul(F,Re)|0)|0)+((8191&(r=(r=r+Math.imul(F,Be)|0)+Math.imul(B,Re)|0))<<13)|0;I=((b=b+Math.imul(B,Be)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,x=Math.imul(Me,Nt),r=(r=Math.imul(Me,Vt))+Math.imul(ze,Nt)|0,b=Math.imul(ze,Vt),x=x+Math.imul(Y,jt)|0,r=(r=r+Math.imul(Y,ti)|0)+Math.imul(X,jt)|0,b=b+Math.imul(X,ti)|0,x=x+Math.imul(ue,si)|0,r=(r=r+Math.imul(ue,di)|0)+Math.imul(Te,si)|0,b=b+Math.imul(Te,di)|0,x=x+Math.imul(yt,Se)|0,r=(r=r+Math.imul(yt,V)|0)+Math.imul(Ne,Se)|0,b=b+Math.imul(Ne,V)|0,x=x+Math.imul(Ae,Ee)|0,r=(r=r+Math.imul(Ae,et)|0)+Math.imul(le,Ee)|0,b=b+Math.imul(le,et)|0,x=x+Math.imul(q,Rt)|0,r=(r=r+Math.imul(q,Xt)|0)+Math.imul(j,Rt)|0,b=b+Math.imul(j,Xt)|0,x=x+Math.imul(xe,Re)|0,r=(r=r+Math.imul(xe,Be)|0)+Math.imul(Pe,Re)|0,b=b+Math.imul(Pe,Be)|0;var qe=(I+(x=x+Math.imul(F,ot)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(B,ot)|0))<<13)|0;I=((b=b+Math.imul(B,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(it,Nt),r=(r=Math.imul(it,Vt))+Math.imul(ft,Nt)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Me,jt)|0,r=(r=r+Math.imul(Me,ti)|0)+Math.imul(ze,jt)|0,b=b+Math.imul(ze,ti)|0,x=x+Math.imul(Y,si)|0,r=(r=r+Math.imul(Y,di)|0)+Math.imul(X,si)|0,b=b+Math.imul(X,di)|0,x=x+Math.imul(ue,Se)|0,r=(r=r+Math.imul(ue,V)|0)+Math.imul(Te,Se)|0,b=b+Math.imul(Te,V)|0,x=x+Math.imul(yt,Ee)|0,r=(r=r+Math.imul(yt,et)|0)+Math.imul(Ne,Ee)|0,b=b+Math.imul(Ne,et)|0,x=x+Math.imul(Ae,Rt)|0,r=(r=r+Math.imul(Ae,Xt)|0)+Math.imul(le,Rt)|0,b=b+Math.imul(le,Xt)|0,x=x+Math.imul(q,Re)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul(j,Re)|0,b=b+Math.imul(j,Be)|0,x=x+Math.imul(xe,ot)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Pe,ot)|0,b=b+Math.imul(Pe,At)|0;var vt=(I+(x=x+Math.imul(F,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(F,Ft)|0)+Math.imul(B,Ut)|0))<<13)|0;I=((b=b+Math.imul(B,Ft)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,x=Math.imul(st,Nt),r=(r=Math.imul(st,Vt))+Math.imul(wt,Nt)|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(Me,si)|0,r=(r=r+Math.imul(Me,di)|0)+Math.imul(ze,si)|0,b=b+Math.imul(ze,di)|0,x=x+Math.imul(Y,Se)|0,r=(r=r+Math.imul(Y,V)|0)+Math.imul(X,Se)|0,b=b+Math.imul(X,V)|0,x=x+Math.imul(ue,Ee)|0,r=(r=r+Math.imul(ue,et)|0)+Math.imul(Te,Ee)|0,b=b+Math.imul(Te,et)|0,x=x+Math.imul(yt,Rt)|0,r=(r=r+Math.imul(yt,Xt)|0)+Math.imul(Ne,Rt)|0,b=b+Math.imul(Ne,Xt)|0,x=x+Math.imul(Ae,Re)|0,r=(r=r+Math.imul(Ae,Be)|0)+Math.imul(le,Re)|0,b=b+Math.imul(le,Be)|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(xe,Ut)|0,r=(r=r+Math.imul(xe,Ft)|0)+Math.imul(Pe,Ut)|0,b=b+Math.imul(Pe,Ft)|0;var me=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(B,ai)|0))<<13)|0;I=((b=b+Math.imul(B,ci)|0)+(r>>>13)|0)+(me>>>26)|0,me&=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(Me,Se)|0,r=(r=r+Math.imul(Me,V)|0)+Math.imul(ze,Se)|0,b=b+Math.imul(ze,V)|0,x=x+Math.imul(Y,Ee)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(X,Ee)|0,b=b+Math.imul(X,et)|0,x=x+Math.imul(ue,Rt)|0,r=(r=r+Math.imul(ue,Xt)|0)+Math.imul(Te,Rt)|0,b=b+Math.imul(Te,Xt)|0,x=x+Math.imul(yt,Re)|0,r=(r=r+Math.imul(yt,Be)|0)+Math.imul(Ne,Re)|0,b=b+Math.imul(Ne,Be)|0,x=x+Math.imul(Ae,ot)|0,r=(r=r+Math.imul(Ae,At)|0)+Math.imul(le,ot)|0,b=b+Math.imul(le,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 $e=(I+(x=x+Math.imul(xe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Pe,ai)|0))<<13)|0;I=((b=b+Math.imul(Pe,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,Se)|0,r=(r=r+Math.imul(it,V)|0)+Math.imul(ft,Se)|0,b=b+Math.imul(ft,V)|0,x=x+Math.imul(Me,Ee)|0,r=(r=r+Math.imul(Me,et)|0)+Math.imul(ze,Ee)|0,b=b+Math.imul(ze,et)|0,x=x+Math.imul(Y,Rt)|0,r=(r=r+Math.imul(Y,Xt)|0)+Math.imul(X,Rt)|0,b=b+Math.imul(X,Xt)|0,x=x+Math.imul(ue,Re)|0,r=(r=r+Math.imul(ue,Be)|0)+Math.imul(Te,Re)|0,b=b+Math.imul(Te,Be)|0,x=x+Math.imul(yt,ot)|0,r=(r=r+Math.imul(yt,At)|0)+Math.imul(Ne,ot)|0,b=b+Math.imul(Ne,At)|0,x=x+Math.imul(Ae,Ut)|0,r=(r=r+Math.imul(Ae,Ft)|0)+Math.imul(le,Ut)|0,b=b+Math.imul(le,Ft)|0;var St=(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)+(St>>>26)|0,St&=67108863,x=Math.imul(st,Se),r=(r=Math.imul(st,V))+Math.imul(wt,Se)|0,b=Math.imul(wt,V),x=x+Math.imul(it,Ee)|0,r=(r=r+Math.imul(it,et)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Me,Rt)|0,r=(r=r+Math.imul(Me,Xt)|0)+Math.imul(ze,Rt)|0,b=b+Math.imul(ze,Xt)|0,x=x+Math.imul(Y,Re)|0,r=(r=r+Math.imul(Y,Be)|0)+Math.imul(X,Re)|0,b=b+Math.imul(X,Be)|0,x=x+Math.imul(ue,ot)|0,r=(r=r+Math.imul(ue,At)|0)+Math.imul(Te,ot)|0,b=b+Math.imul(Te,At)|0,x=x+Math.imul(yt,Ut)|0,r=(r=r+Math.imul(yt,Ft)|0)+Math.imul(Ne,Ut)|0,b=b+Math.imul(Ne,Ft)|0;var Pt=(I+(x=x+Math.imul(Ae,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Ae,ci)|0)+Math.imul(le,ai)|0))<<13)|0;I=((b=b+Math.imul(le,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(st,Ee),r=(r=Math.imul(st,et))+Math.imul(wt,Ee)|0,b=Math.imul(wt,et),x=x+Math.imul(it,Rt)|0,r=(r=r+Math.imul(it,Xt)|0)+Math.imul(ft,Rt)|0,b=b+Math.imul(ft,Xt)|0,x=x+Math.imul(Me,Re)|0,r=(r=r+Math.imul(Me,Be)|0)+Math.imul(ze,Re)|0,b=b+Math.imul(ze,Be)|0,x=x+Math.imul(Y,ot)|0,r=(r=r+Math.imul(Y,At)|0)+Math.imul(X,ot)|0,b=b+Math.imul(X,At)|0,x=x+Math.imul(ue,Ut)|0,r=(r=r+Math.imul(ue,Ft)|0)+Math.imul(Te,Ut)|0,b=b+Math.imul(Te,Ft)|0;var yi=(I+(x=x+Math.imul(yt,ai)|0)|0)+((8191&(r=(r=r+Math.imul(yt,ci)|0)+Math.imul(Ne,ai)|0))<<13)|0;I=((b=b+Math.imul(Ne,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(st,Rt),r=(r=Math.imul(st,Xt))+Math.imul(wt,Rt)|0,b=Math.imul(wt,Xt),x=x+Math.imul(it,Re)|0,r=(r=r+Math.imul(it,Be)|0)+Math.imul(ft,Re)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Me,ot)|0,r=(r=r+Math.imul(Me,At)|0)+Math.imul(ze,ot)|0,b=b+Math.imul(ze,At)|0,x=x+Math.imul(Y,Ut)|0,r=(r=r+Math.imul(Y,Ft)|0)+Math.imul(X,Ut)|0,b=b+Math.imul(X,Ft)|0;var Pi=(I+(x=x+Math.imul(ue,ai)|0)|0)+((8191&(r=(r=r+Math.imul(ue,ci)|0)+Math.imul(Te,ai)|0))<<13)|0;I=((b=b+Math.imul(Te,ci)|0)+(r>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,x=Math.imul(st,Re),r=(r=Math.imul(st,Be))+Math.imul(wt,Re)|0,b=Math.imul(wt,Be),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(Me,Ut)|0,r=(r=r+Math.imul(Me,Ft)|0)+Math.imul(ze,Ut)|0,b=b+Math.imul(ze,Ft)|0;var Ii=(I+(x=x+Math.imul(Y,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ci)|0)+Math.imul(X,ai)|0))<<13)|0;I=((b=b+Math.imul(X,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(Me,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Me,ci)|0)+Math.imul(ze,ai)|0))<<13)|0;I=((b=b+Math.imul(ze,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,L[0]=rn,L[1]=Vi,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=mt,L[6]=be,L[7]=qe,L[8]=vt,L[9]=me,L[10]=$e,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Pi,L[15]=Ii,L[16]=Ki,L[17]=at,L[18]=Qt,0!==I&&(L[19]=I,p.length++),p};function G(y,i,a){return(new W).mulp(y,i,a)}function W(y,i){this.x=y,this.y=i}Math.imul||(w=D),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?D(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 L=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 B=(0|y.words[_-r])*(0|i.words[r]),te=67108863&B;I=67108863&(te=te+I|0),u+=(L=(L=L+(B/67108864|0)|0)+(te>>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):G(this,i,a),p},W.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},W.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},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I<L;I++)u[I]=a[i[I]],_[I]=p[i[I]]},W.prototype.transform=function(i,a,p,u,_,L){this.permute(L,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),J=0;J<_;J+=x)for(var F=r,B=b,te=0;te<I;te++){var xe=p[J+te],Pe=u[J+te],Fe=p[J+te+I],q=u[J+te+I],j=F*Fe-B*q;q=F*q+B*Fe,p[J+te]=xe+(Fe=j),u[J+te]=Pe+q,p[J+te+I]=xe-Fe,u[J+te+I]=Pe-q,te!==x&&(j=r*F-b*B,B=r*B+b*F,F=j)}},W.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},W.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]=-_}},W.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},W.prototype.convert13b=function(i,a,p,u){for(var _=0,L=0;L<a;L++)p[2*L]=8191&(_+=0|i[L]),p[2*L+1]=8191&(_>>>=13),_>>>=13;for(L=2*a;L<u;++L)p[L]=0;v(0===_),v(0==(-8192&_))},W.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},W.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),L=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),b=new Array(u),J=new Array(u),F=new Array(u),B=p.words;B.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,b,u),this.transform(I,L,x,r,u,_),this.transform(b,L,J,F,u,_);for(var te=0;te<u;te++){var xe=x[te]*J[te]-r[te]*F[te];r[te]=x[te]*F[te]+r[te]*J[te],x[te]=xe}return this.conjugate(x,r,u),this.transform(x,r,B,L,u,_),this.conjugate(B,L,u),this.normalize13b(B,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),G(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 L=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|L,L=I>>>26-a}L&&(this.words[_]=L,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,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;r<L;r++)x.words[r]=this.words[r];x.length=L}if(0!==L)if(this.length>L)for(this.length-=L,r=0;r<this.length;r++)this.words[r]=this.words[r+L];else this.words[0]=0,this.length=1;var b=0;for(r=this.length-1;r>=0&&(0!==b||r>=u);r--){var J=0|this.words[r];this.words[r]=b<<26-_|J>>>_,b=J&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 L,I=0;for(_=0;_<i.length;_++){L=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((L-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_<this.length-p;_++)I=(L=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_<this.length;_++)I=(L=-(0|this.words[_])+I)>>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=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 J=u.clone()._ishlnsubmul(_,1,x);0===J.negative&&(u=J,r&&(r.words[x]=1));for(var F=x-1;F>=0;F--){var B=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(B=Math.min(B/L|0,67108863),u._ishlnsubmul(_,B,F);0!==u.negative;)B--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=B)}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?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.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,_,L},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),L=p.cmp(u);return L<0||1===_&&0===L?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),L=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 J=0,F=1;0==(a.words[0]&F)&&J<26;++J,F<<=1);if(J>0)for(a.iushrn(J);J-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var B=0,te=1;0==(p.words[0]&te)&&B<26;++B,te<<=1);if(B>0)for(p.iushrn(B);B-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(b)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},s.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var J,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),L=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(L),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(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(J=0===a.cmpn(1)?u:_).cmpn(0)<0&&J.iadd(i),J},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 L=a;a=p,p=L}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,L=p;0!==_&&L<this.length;L++){var I=0|this.words[L];_=(I+=_)>>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,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 se(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 ee={k256:null,p224:null,p192:null,p25519:null};function ie(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 _e(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function fe(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function de(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ne(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(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 oe(y){se.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)}ie.prototype._tmp=function(){var i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.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},ie.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ie.prototype.imulK=function(i){return i.imul(this.k)},M(_e,ie),_e.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 L=i.words[9];for(a.words[a.length++]=L&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|L>>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.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},M(fe,ie),M(de,ie),M(ne,ie),ne.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(ee[i])return ee[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new fe;else if("p192"===i)a=new de;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new ne}return ee[i]=a,a},se.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},se.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")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.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)},se.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},se.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)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.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 L=new s(1).toRed(this),I=L.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),J=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),B=_;0!==F.cmp(L);){for(var te=F,xe=0;0!==te.cmp(L);xe++)te=te.redSqr();v(xe<B);var Pe=this.pow(b,new s(1).iushln(B-xe-1));J=J.redMul(Pe),b=Pe.redSqr(),F=F.redMul(b),B=xe}return J},se.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},se.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 L=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var b=a.words[_],J=r-1;J>=0;J--){var F=b>>J&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===J)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new oe(i)},M(oe,se),oe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},oe.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},oe.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),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},oe.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),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},oe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ue=m.nmd(Ue),this)},6386:(Ue,K,m)=>{"use strict";var e=m(3894),t=m(8095),v=m(5634),M=m(5244),s=m(1052);function C(c){s.call(this,"digest"),this._hash=c}e(C,s),C.prototype._update=function(c){this._hash.update(c)},C.prototype._final=function(){return this._hash.digest()},Ue.exports=function(R){return"md5"===(R=R.toLowerCase())?new t:"rmd160"===R||"ripemd160"===R?new v:new C(M(R))}},5640:(Ue,K,m)=>{var e=m(8095);Ue.exports=function(t){return(new e).update(t).digest()}},4529:(Ue,K,m)=>{"use strict";var e=m(3894),t=m(7309),v=m(1052),M=m(3502).Buffer,s=m(5640),C=m(5634),c=m(5244),R=M.alloc(128);function o(O,T){v.call(this,"digest"),"string"==typeof T&&(T=M.from(T));var P="sha512"===O||"sha384"===O?128:64;this._alg=O,this._key=T,T.length>P?T=("rmd160"===O?new C:c(O)).update(T).digest():T.length<P&&(T=M.concat([T,R],P));for(var D=this._ipad=M.allocUnsafe(P),w=this._opad=M.allocUnsafe(P),U=0;U<P;U++)D[U]=54^T[U],w[U]=92^T[U];this._hash="rmd160"===O?new C:c(O),this._hash.update(D)}e(o,v),o.prototype._update=function(O){this._hash.update(O)},o.prototype._final=function(){var O=this._hash.digest();return("rmd160"===this._alg?new C:c(this._alg)).update(this._opad).update(O).digest()},Ue.exports=function(T,P){return"rmd160"===(T=T.toLowerCase())||"ripemd160"===T?new o("rmd160",P):"md5"===T?new t(s,P):new o(T,P)}},7309:(Ue,K,m)=>{"use strict";var e=m(3894),t=m(3502).Buffer,v=m(1052),M=t.alloc(128),s=64;function C(c,R){v.call(this,"digest"),"string"==typeof R&&(R=t.from(R)),this._alg=c,this._key=R,R.length>s?R=c(R):R.length<s&&(R=t.concat([R,M],s));for(var o=this._ipad=t.allocUnsafe(s),O=this._opad=t.allocUnsafe(s),T=0;T<s;T++)o[T]=54^R[T],O[T]=92^R[T];this._hash=[o]}e(C,v),C.prototype._update=function(c){this._hash.push(c)},C.prototype._final=function(){var c=this._alg(t.concat(this._hash));return this._alg(t.concat([this._opad,c]))},Ue.exports=C},1348:(Ue,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 M=m(9357);K.pbkdf2=M.pbkdf2,K.pbkdf2Sync=M.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 C=m(8829);K.DiffieHellmanGroup=C.DiffieHellmanGroup,K.createDiffieHellmanGroup=C.createDiffieHellmanGroup,K.getDiffieHellman=C.getDiffieHellman,K.createDiffieHellman=C.createDiffieHellman,K.DiffieHellman=C.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 R=m(3701);K.publicEncrypt=R.publicEncrypt,K.privateEncrypt=R.privateEncrypt,K.publicDecrypt=R.publicDecrypt,K.privateDecrypt=R.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:(Ue,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:(Ue,K,m)=>{"use strict";var e=m(2391),t=m(3894),v={};function M(C){e.equal(C.length,8,"Invalid IV length"),this.iv=new Array(8);for(var c=0;c<this.iv.length;c++)this.iv[c]=C[c]}K.instantiate=function(C){function c(T){C.call(this,T),this._cbcInit()}t(c,C);for(var R=Object.keys(v),o=0;o<R.length;o++){var O=R[o];c.prototype[O]=v[O]}return c.create=function(P){return new c(P)},c},v._cbcInit=function(){var c=new M(this.options.iv);this._cbcState=c},v._update=function(c,R,o,O){var P=this.constructor.super_.prototype,S=this._cbcState.iv;if("encrypt"===this.type){for(var D=0;D<this.blockSize;D++)S[D]^=c[R+D];for(P._update.call(this,S,0,o,O),D=0;D<this.blockSize;D++)S[D]=o[O+D]}else{for(P._update.call(this,c,R,o,O),D=0;D<this.blockSize;D++)o[O+D]^=S[D];for(D=0;D<this.blockSize;D++)S[D]=c[R+D]}}},8170:(Ue,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}Ue.exports=t,t.prototype._init=function(){},t.prototype.update=function(M){return 0===M.length?[]:"decrypt"===this.type?this._updateDecrypt(M):this._updateEncrypt(M)},t.prototype._buffer=function(M,s){for(var C=Math.min(this.buffer.length-this.bufferOff,M.length-s),c=0;c<C;c++)this.buffer[this.bufferOff+c]=M[s+c];return this.bufferOff+=C,C},t.prototype._flushBuffer=function(M,s){return this._update(this.buffer,0,M,s),this.bufferOff=0,this.blockSize},t.prototype._updateEncrypt=function(M){var s=0,C=0,R=new Array(((this.bufferOff+M.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(s+=this._buffer(M,s),this.bufferOff===this.buffer.length&&(C+=this._flushBuffer(R,C)));for(var o=M.length-(M.length-s)%this.blockSize;s<o;s+=this.blockSize)this._update(M,s,R,C),C+=this.blockSize;for(;s<M.length;s++,this.bufferOff++)this.buffer[this.bufferOff]=M[s];return R},t.prototype._updateDecrypt=function(M){for(var s=0,C=0,c=Math.ceil((this.bufferOff+M.length)/this.blockSize)-1,R=new Array(c*this.blockSize);c>0;c--)s+=this._buffer(M,s),C+=this._flushBuffer(R,C);return s+=this._buffer(M,s),R},t.prototype.final=function(M){var s,C;return M&&(s=this.update(M)),C="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),s?s.concat(C):C},t.prototype._pad=function(M,s){if(0===s)return!1;for(;s<M.length;)M[s++]=0;return!0},t.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var M=new Array(this.blockSize);return this._update(this.buffer,0,M,0),M},t.prototype._unpad=function(M){return M},t.prototype._finalDecrypt=function(){e.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var M=new Array(this.blockSize);return this._flushBuffer(M,0),this._unpad(M)}},4631:(Ue,K,m)=>{"use strict";var e=m(2391),t=m(3894),v=m(7451),M=m(8170);function s(){this.tmp=new Array(2),this.keys=null}function C(R){M.call(this,R);var o=new s;this._desState=o,this.deriveKeys(o,R.key)}t(C,M),Ue.exports=C,C.create=function(o){return new C(o)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];C.prototype.deriveKeys=function(o,O){o.keys=new Array(32),e.equal(O.length,this.blockSize,"Invalid key length");var T=v.readUInt32BE(O,0),P=v.readUInt32BE(O,4);v.pc1(T,P,o.tmp,0),T=o.tmp[0],P=o.tmp[1];for(var S=0;S<o.keys.length;S+=2){var D=c[S>>>1];T=v.r28shl(T,D),P=v.r28shl(P,D),v.pc2(T,P,o.keys,S)}},C.prototype._update=function(o,O,T,P){var S=this._desState,D=v.readUInt32BE(o,O),w=v.readUInt32BE(o,O+4);v.ip(D,w,S.tmp,0),D=S.tmp[0],w=S.tmp[1],"encrypt"===this.type?this._encrypt(S,D,w,S.tmp,0):this._decrypt(S,D,w,S.tmp,0),w=S.tmp[1],v.writeUInt32BE(T,D=S.tmp[0],P),v.writeUInt32BE(T,w,P+4)},C.prototype._pad=function(o,O){for(var T=o.length-O,P=O;P<o.length;P++)o[P]=T;return!0},C.prototype._unpad=function(o){for(var O=o[o.length-1],T=o.length-O;T<o.length;T++)e.equal(o[T],O);return o.slice(0,o.length-O)},C.prototype._encrypt=function(o,O,T,P,S){for(var D=O,w=T,U=0;U<o.keys.length;U+=2){var G=o.keys[U],W=o.keys[U+1];v.expand(w,o.tmp,0);var ee=v.substitute(G^=o.tmp[0],W^=o.tmp[1]),_e=w;w=(D^v.permute(ee))>>>0,D=_e}v.rip(w,D,P,S)},C.prototype._decrypt=function(o,O,T,P,S){for(var D=T,w=O,U=o.keys.length-2;U>=0;U-=2){var G=o.keys[U],W=o.keys[U+1];v.expand(D,o.tmp,0);var ee=v.substitute(G^=o.tmp[0],W^=o.tmp[1]),_e=D;D=(w^v.permute(ee))>>>0,w=_e}v.rip(D,w,P,S)}},1862:(Ue,K,m)=>{"use strict";var e=m(2391),t=m(3894),v=m(8170),M=m(4631);function s(c,R){e.equal(R.length,24,"Invalid key length");var o=R.slice(0,8),O=R.slice(8,16),T=R.slice(16,24);this.ciphers="encrypt"===c?[M.create({type:"encrypt",key:o}),M.create({type:"decrypt",key:O}),M.create({type:"encrypt",key:T})]:[M.create({type:"decrypt",key:T}),M.create({type:"encrypt",key:O}),M.create({type:"decrypt",key:o})]}function C(c){v.call(this,c);var R=new s(this.type,this.options.key);this._edeState=R}t(C,v),Ue.exports=C,C.create=function(R){return new C(R)},C.prototype._update=function(R,o,O,T){var P=this._edeState;P.ciphers[0]._update(R,o,O,T),P.ciphers[1]._update(O,T,O,T),P.ciphers[2]._update(O,T,O,T)},C.prototype._pad=M.prototype._pad,C.prototype._unpad=M.prototype._unpad},7451:(Ue,K)=>{"use strict";K.readUInt32BE=function(M,s){return(M[0+s]<<24|M[1+s]<<16|M[2+s]<<8|M[3+s])>>>0},K.writeUInt32BE=function(M,s,C){M[0+C]=s>>>24,M[1+C]=s>>>16&255,M[2+C]=s>>>8&255,M[3+C]=255&s},K.ip=function(M,s,C,c){for(var R=0,o=0,O=6;O>=0;O-=2){for(var T=0;T<=24;T+=8)R<<=1,R|=s>>>T+O&1;for(T=0;T<=24;T+=8)R<<=1,R|=M>>>T+O&1}for(O=6;O>=0;O-=2){for(T=1;T<=25;T+=8)o<<=1,o|=s>>>T+O&1;for(T=1;T<=25;T+=8)o<<=1,o|=M>>>T+O&1}C[c+0]=R>>>0,C[c+1]=o>>>0},K.rip=function(M,s,C,c){for(var R=0,o=0,O=0;O<4;O++)for(var T=24;T>=0;T-=8)R<<=1,R|=s>>>T+O&1,R<<=1,R|=M>>>T+O&1;for(O=4;O<8;O++)for(T=24;T>=0;T-=8)o<<=1,o|=s>>>T+O&1,o<<=1,o|=M>>>T+O&1;C[c+0]=R>>>0,C[c+1]=o>>>0},K.pc1=function(M,s,C,c){for(var R=0,o=0,O=7;O>=5;O--){for(var T=0;T<=24;T+=8)R<<=1,R|=s>>T+O&1;for(T=0;T<=24;T+=8)R<<=1,R|=M>>T+O&1}for(T=0;T<=24;T+=8)R<<=1,R|=s>>T+O&1;for(O=1;O<=3;O++){for(T=0;T<=24;T+=8)o<<=1,o|=s>>T+O&1;for(T=0;T<=24;T+=8)o<<=1,o|=M>>T+O&1}for(T=0;T<=24;T+=8)o<<=1,o|=M>>T+O&1;C[c+0]=R>>>0,C[c+1]=o>>>0},K.r28shl=function(M,s){return M<<s&268435455|M>>>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(M,s,C,c){for(var R=0,o=0,O=m.length>>>1,T=0;T<O;T++)R<<=1,R|=M>>>m[T]&1;for(T=O;T<m.length;T++)o<<=1,o|=s>>>m[T]&1;C[c+0]=R>>>0,C[c+1]=o>>>0},K.expand=function(M,s,C){var c=0,R=0;c=(1&M)<<5|M>>>27;for(var o=23;o>=15;o-=4)c<<=6,c|=M>>>o&63;for(o=11;o>=3;o-=4)R|=M>>>o&63,R<<=6;R|=(31&M)<<1|M>>>31,s[C+0]=c>>>0,s[C+1]=R>>>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(M,s){for(var C=0,c=0;c<4;c++)C<<=4,C|=e[64*c+(M>>>18-6*c&63)];for(c=0;c<4;c++)C<<=4,C|=e[256+64*c+(s>>>18-6*c&63)];return C>>>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(M){for(var s=0,C=0;C<t.length;C++)s<<=1,s|=M>>>t[C]&1;return s>>>0},K.padSplit=function(M,s,C){for(var c=M.toString(2);c.length<s;)c="0"+c;for(var R=[],o=0;o<s;o+=C)R.push(c.slice(o,o+C));return R.join(" ")}},8829:(Ue,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 R=new Buffer(t[c].prime,"hex"),o=new Buffer(t[c].gen,"hex");return new v(R,o)},K.createDiffieHellman=K.DiffieHellman=function C(c,R,o,O){return Buffer.isBuffer(R)||void 0===s[R]?C(c,"binary",R,o):(R=R||"binary",O=O||"binary",o=o||new Buffer([2]),Buffer.isBuffer(o)||(o=new Buffer(o,O)),"number"==typeof c?new v(e(c,o),o,!0):(Buffer.isBuffer(c)||(c=new Buffer(c,R)),new v(c,o,!0)))}},1419:(Ue,K,m)=>{var e=m(8313),v=new(m(7079)),M=new e(24),s=new e(11),C=new e(10),c=new e(3),R=new e(7),o=m(5563),O=m(3753);function T(G,W){return W=W||"utf8",Buffer.isBuffer(G)||(G=new Buffer(G,W)),this._pub=new e(G),this}function P(G,W){return W=W||"utf8",Buffer.isBuffer(G)||(G=new Buffer(G,W)),this._priv=new e(G),this}Ue.exports=w;var S={};function w(G,W,ee){this.setGenerator(W),this.__prime=new e(G),this._prime=e.mont(this.__prime),this._primeLen=G.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ee?(this.setPublicKey=T,this.setPrivateKey=P):this._primeCode=8}function U(G,W){var ee=new Buffer(G.toArray());return W?ee.toString(W):ee}Object.defineProperty(w.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(G,W){var ee=W.toString("hex"),ie=[ee,G.toString(16)].join("_");if(ie in S)return S[ie];var fe,_e=0;if(G.isEven()||!o.simpleSieve||!o.fermatTest(G)||!v.test(G))return _e+=1,S[ie]=_e+="02"===ee||"05"===ee?8:4,_e;switch(v.test(G.shrn(1))||(_e+=2),ee){case"02":G.mod(M).cmp(s)&&(_e+=8);break;case"05":(fe=G.mod(C)).cmp(c)&&fe.cmp(R)&&(_e+=8);break;default:_e+=4}return S[ie]=_e,_e}(this.__prime,this.__gen)),this._primeCode}}),w.prototype.generateKeys=function(){return this._priv||(this._priv=new e(O(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},w.prototype.computeSecret=function(G){var W=(G=(G=new e(G)).toRed(this._prime)).redPow(this._priv).fromRed(),ee=new Buffer(W.toArray()),ie=this.getPrime();if(ee.length<ie.length){var _e=new Buffer(ie.length-ee.length);_e.fill(0),ee=Buffer.concat([_e,ee])}return ee},w.prototype.getPublicKey=function(W){return U(this._pub,W)},w.prototype.getPrivateKey=function(W){return U(this._priv,W)},w.prototype.getPrime=function(G){return U(this.__prime,G)},w.prototype.getGenerator=function(G){return U(this._gen,G)},w.prototype.setGenerator=function(G,W){return W=W||"utf8",Buffer.isBuffer(G)||(G=new Buffer(G,W)),this.__gen=G,this._gen=new e(G),this}},5563:(Ue,K,m)=>{var e=m(3753);Ue.exports=_e,_e.simpleSieve=ee,_e.fermatTest=ie;var t=m(8313),v=new t(24),s=new(m(7079)),C=new t(1),c=new t(2),R=new t(5),T=(new t(16),new t(8),new t(10)),P=new t(3),D=(new t(7),new t(11)),w=new t(4),G=(new t(12),null);function ee(fe){for(var de=function(){if(null!==G)return G;var de=[];de[0]=2;for(var ne=1,se=3;se<1048576;se+=2){for(var oe=Math.ceil(Math.sqrt(se)),y=0;y<ne&&de[y]<=oe&&se%de[y]!=0;y++);ne!==y&&de[y]<=oe||(de[ne++]=se)}return G=de,de}(),ne=0;ne<de.length;ne++)if(0===fe.modn(de[ne]))return 0===fe.cmpn(de[ne]);return!0}function ie(fe){var de=t.mont(fe);return 0===c.toRed(de).redPow(fe.subn(1)).fromRed().cmpn(1)}function _e(fe,de){if(fe<16)return new t(2===de||5===de?[140,123]:[140,39]);de=new t(de);for(var ne,se;;){for(ne=new t(e(Math.ceil(fe/8)));ne.bitLength()>fe;)ne.ishrn(1);if(ne.isEven()&&ne.iadd(C),ne.testn(1)||ne.iadd(c),de.cmp(c)){if(!de.cmp(R))for(;ne.mod(T).cmp(P);)ne.iadd(w)}else for(;ne.mod(v).cmp(D);)ne.iadd(w);if(ee(se=ne.shrn(1))&&ee(ne)&&ie(se)&&ie(ne)&&s.test(se)&&s.test(ne))return ne}}},8313:function(Ue,K,m){!function(e,t){"use strict";function v(y,i){if(!y)throw new Error(i||"Assertion failed")}function M(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 C;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{C="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 R(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),L=i;L<_;L++){var I=y.charCodeAt(L)-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 _,L,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(L=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=L>>>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,L=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=R(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=R(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=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 L=i.length-p,I=L%u,x=Math.min(L,L-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 J=1;for(r=o(i,b,i.length,a),b=0;b<I;b++)J*=a;this.imuln(J),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 O=["","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"],T=[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],P=[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 D(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],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r<p;r++){for(var b=x>>>26,J=67108863&x,F=Math.min(r,i.length-1),B=Math.max(0,r-y.length+1);B<=F;B++)b+=(L=(u=0|y.words[r-B|0])*(_=0|i.words[B])+J)/67108864|0,J=67108863&L;a.words[r]=0|J,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,L=0;L<this.length;L++){var I=this.words[L],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||L!==this.length-1?O[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}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=T[i],b=P[i];p="";var J=this.clone();for(J.negative=0;!J.isZero();){var F=J.modn(b).toString(i);p=(J=J.idivn(b)).isZero()?F+p:O[r-F.length]+F+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!==C),this.toArrayLike(C,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,L="le"===a,I=new i(_),b=this.clone();if(L){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,L=0;L<u.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+(0|u.words[L])+_),_=a>>>26;for(;0!==_&&L<p.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;L<p.length;L++)this.words[L]=p.words[L];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 L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I<u.length;I++)L=(a=(0|u.words[I])+L)>>26,this.words[I]=67108863&a;if(0===L&&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,L=p.words,I=0,J=0|u[0],F=8191&J,B=J>>>13,te=0|u[1],xe=8191&te,Pe=te>>>13,Fe=0|u[2],q=8191&Fe,j=Fe>>>13,we=0|u[3],Ae=8191&we,le=we>>>13,We=0|u[4],yt=8191&We,Ne=We>>>13,Ve=0|u[5],ue=8191&Ve,Te=Ve>>>13,ke=0|u[6],Y=8191&ke,X=ke>>>13,he=0|u[7],Me=8191&he,ze=he>>>13,ht=0|u[8],it=8191&ht,ft=ht>>>13,nt=0|u[9],st=8191&nt,wt=nt>>>13,Bt=0|_[0],Nt=8191&Bt,Vt=Bt>>>13,Oi=0|_[1],jt=8191&Oi,ti=Oi>>>13,Ri=0|_[2],si=8191&Ri,di=Ri>>>13,He=0|_[3],Se=8191&He,V=He>>>13,ve=0|_[4],Ee=8191&ve,et=ve>>>13,$t=0|_[5],Rt=8191&$t,Xt=$t>>>13,lt=0|_[6],Re=8191&lt,Be=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(F,Nt))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(B,Nt)|0))<<13)|0;I=((b=Math.imul(B,Vt))+(r>>>13)|0)+(rn>>>26)|0,rn&=67108863,x=Math.imul(xe,Nt),r=(r=Math.imul(xe,Vt))+Math.imul(Pe,Nt)|0,b=Math.imul(Pe,Vt);var Vi=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ti)|0)+Math.imul(B,jt)|0))<<13)|0;I=((b=b+Math.imul(B,ti)|0)+(r>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,x=Math.imul(q,Nt),r=(r=Math.imul(q,Vt))+Math.imul(j,Nt)|0,b=Math.imul(j,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ti)|0)+Math.imul(Pe,jt)|0,b=b+Math.imul(Pe,ti)|0;var Di=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,di)|0)+Math.imul(B,si)|0))<<13)|0;I=((b=b+Math.imul(B,di)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(Ae,Nt),r=(r=Math.imul(Ae,Vt))+Math.imul(le,Nt)|0,b=Math.imul(le,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(xe,si)|0,r=(r=r+Math.imul(xe,di)|0)+Math.imul(Pe,si)|0,b=b+Math.imul(Pe,di)|0;var Xi=(I+(x=x+Math.imul(F,Se)|0)|0)+((8191&(r=(r=r+Math.imul(F,V)|0)+Math.imul(B,Se)|0))<<13)|0;I=((b=b+Math.imul(B,V)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(yt,Nt),r=(r=Math.imul(yt,Vt))+Math.imul(Ne,Nt)|0,b=Math.imul(Ne,Vt),x=x+Math.imul(Ae,jt)|0,r=(r=r+Math.imul(Ae,ti)|0)+Math.imul(le,jt)|0,b=b+Math.imul(le,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(xe,Se)|0,r=(r=r+Math.imul(xe,V)|0)+Math.imul(Pe,Se)|0,b=b+Math.imul(Pe,V)|0;var Ke=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(B,Ee)|0))<<13)|0;I=((b=b+Math.imul(B,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ue,Nt),r=(r=Math.imul(ue,Vt))+Math.imul(Te,Nt)|0,b=Math.imul(Te,Vt),x=x+Math.imul(yt,jt)|0,r=(r=r+Math.imul(yt,ti)|0)+Math.imul(Ne,jt)|0,b=b+Math.imul(Ne,ti)|0,x=x+Math.imul(Ae,si)|0,r=(r=r+Math.imul(Ae,di)|0)+Math.imul(le,si)|0,b=b+Math.imul(le,di)|0,x=x+Math.imul(q,Se)|0,r=(r=r+Math.imul(q,V)|0)+Math.imul(j,Se)|0,b=b+Math.imul(j,V)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Pe,Ee)|0,b=b+Math.imul(Pe,et)|0;var mt=(I+(x=x+Math.imul(F,Rt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Xt)|0)+Math.imul(B,Rt)|0))<<13)|0;I=((b=b+Math.imul(B,Xt)|0)+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(Y,Nt),r=(r=Math.imul(Y,Vt))+Math.imul(X,Nt)|0,b=Math.imul(X,Vt),x=x+Math.imul(ue,jt)|0,r=(r=r+Math.imul(ue,ti)|0)+Math.imul(Te,jt)|0,b=b+Math.imul(Te,ti)|0,x=x+Math.imul(yt,si)|0,r=(r=r+Math.imul(yt,di)|0)+Math.imul(Ne,si)|0,b=b+Math.imul(Ne,di)|0,x=x+Math.imul(Ae,Se)|0,r=(r=r+Math.imul(Ae,V)|0)+Math.imul(le,Se)|0,b=b+Math.imul(le,V)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul(j,Ee)|0,b=b+Math.imul(j,et)|0,x=x+Math.imul(xe,Rt)|0,r=(r=r+Math.imul(xe,Xt)|0)+Math.imul(Pe,Rt)|0,b=b+Math.imul(Pe,Xt)|0;var be=(I+(x=x+Math.imul(F,Re)|0)|0)+((8191&(r=(r=r+Math.imul(F,Be)|0)+Math.imul(B,Re)|0))<<13)|0;I=((b=b+Math.imul(B,Be)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,x=Math.imul(Me,Nt),r=(r=Math.imul(Me,Vt))+Math.imul(ze,Nt)|0,b=Math.imul(ze,Vt),x=x+Math.imul(Y,jt)|0,r=(r=r+Math.imul(Y,ti)|0)+Math.imul(X,jt)|0,b=b+Math.imul(X,ti)|0,x=x+Math.imul(ue,si)|0,r=(r=r+Math.imul(ue,di)|0)+Math.imul(Te,si)|0,b=b+Math.imul(Te,di)|0,x=x+Math.imul(yt,Se)|0,r=(r=r+Math.imul(yt,V)|0)+Math.imul(Ne,Se)|0,b=b+Math.imul(Ne,V)|0,x=x+Math.imul(Ae,Ee)|0,r=(r=r+Math.imul(Ae,et)|0)+Math.imul(le,Ee)|0,b=b+Math.imul(le,et)|0,x=x+Math.imul(q,Rt)|0,r=(r=r+Math.imul(q,Xt)|0)+Math.imul(j,Rt)|0,b=b+Math.imul(j,Xt)|0,x=x+Math.imul(xe,Re)|0,r=(r=r+Math.imul(xe,Be)|0)+Math.imul(Pe,Re)|0,b=b+Math.imul(Pe,Be)|0;var qe=(I+(x=x+Math.imul(F,ot)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(B,ot)|0))<<13)|0;I=((b=b+Math.imul(B,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(it,Nt),r=(r=Math.imul(it,Vt))+Math.imul(ft,Nt)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Me,jt)|0,r=(r=r+Math.imul(Me,ti)|0)+Math.imul(ze,jt)|0,b=b+Math.imul(ze,ti)|0,x=x+Math.imul(Y,si)|0,r=(r=r+Math.imul(Y,di)|0)+Math.imul(X,si)|0,b=b+Math.imul(X,di)|0,x=x+Math.imul(ue,Se)|0,r=(r=r+Math.imul(ue,V)|0)+Math.imul(Te,Se)|0,b=b+Math.imul(Te,V)|0,x=x+Math.imul(yt,Ee)|0,r=(r=r+Math.imul(yt,et)|0)+Math.imul(Ne,Ee)|0,b=b+Math.imul(Ne,et)|0,x=x+Math.imul(Ae,Rt)|0,r=(r=r+Math.imul(Ae,Xt)|0)+Math.imul(le,Rt)|0,b=b+Math.imul(le,Xt)|0,x=x+Math.imul(q,Re)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul(j,Re)|0,b=b+Math.imul(j,Be)|0,x=x+Math.imul(xe,ot)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Pe,ot)|0,b=b+Math.imul(Pe,At)|0;var vt=(I+(x=x+Math.imul(F,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(F,Ft)|0)+Math.imul(B,Ut)|0))<<13)|0;I=((b=b+Math.imul(B,Ft)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,x=Math.imul(st,Nt),r=(r=Math.imul(st,Vt))+Math.imul(wt,Nt)|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(Me,si)|0,r=(r=r+Math.imul(Me,di)|0)+Math.imul(ze,si)|0,b=b+Math.imul(ze,di)|0,x=x+Math.imul(Y,Se)|0,r=(r=r+Math.imul(Y,V)|0)+Math.imul(X,Se)|0,b=b+Math.imul(X,V)|0,x=x+Math.imul(ue,Ee)|0,r=(r=r+Math.imul(ue,et)|0)+Math.imul(Te,Ee)|0,b=b+Math.imul(Te,et)|0,x=x+Math.imul(yt,Rt)|0,r=(r=r+Math.imul(yt,Xt)|0)+Math.imul(Ne,Rt)|0,b=b+Math.imul(Ne,Xt)|0,x=x+Math.imul(Ae,Re)|0,r=(r=r+Math.imul(Ae,Be)|0)+Math.imul(le,Re)|0,b=b+Math.imul(le,Be)|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(xe,Ut)|0,r=(r=r+Math.imul(xe,Ft)|0)+Math.imul(Pe,Ut)|0,b=b+Math.imul(Pe,Ft)|0;var me=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(B,ai)|0))<<13)|0;I=((b=b+Math.imul(B,ci)|0)+(r>>>13)|0)+(me>>>26)|0,me&=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(Me,Se)|0,r=(r=r+Math.imul(Me,V)|0)+Math.imul(ze,Se)|0,b=b+Math.imul(ze,V)|0,x=x+Math.imul(Y,Ee)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(X,Ee)|0,b=b+Math.imul(X,et)|0,x=x+Math.imul(ue,Rt)|0,r=(r=r+Math.imul(ue,Xt)|0)+Math.imul(Te,Rt)|0,b=b+Math.imul(Te,Xt)|0,x=x+Math.imul(yt,Re)|0,r=(r=r+Math.imul(yt,Be)|0)+Math.imul(Ne,Re)|0,b=b+Math.imul(Ne,Be)|0,x=x+Math.imul(Ae,ot)|0,r=(r=r+Math.imul(Ae,At)|0)+Math.imul(le,ot)|0,b=b+Math.imul(le,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 $e=(I+(x=x+Math.imul(xe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Pe,ai)|0))<<13)|0;I=((b=b+Math.imul(Pe,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,Se)|0,r=(r=r+Math.imul(it,V)|0)+Math.imul(ft,Se)|0,b=b+Math.imul(ft,V)|0,x=x+Math.imul(Me,Ee)|0,r=(r=r+Math.imul(Me,et)|0)+Math.imul(ze,Ee)|0,b=b+Math.imul(ze,et)|0,x=x+Math.imul(Y,Rt)|0,r=(r=r+Math.imul(Y,Xt)|0)+Math.imul(X,Rt)|0,b=b+Math.imul(X,Xt)|0,x=x+Math.imul(ue,Re)|0,r=(r=r+Math.imul(ue,Be)|0)+Math.imul(Te,Re)|0,b=b+Math.imul(Te,Be)|0,x=x+Math.imul(yt,ot)|0,r=(r=r+Math.imul(yt,At)|0)+Math.imul(Ne,ot)|0,b=b+Math.imul(Ne,At)|0,x=x+Math.imul(Ae,Ut)|0,r=(r=r+Math.imul(Ae,Ft)|0)+Math.imul(le,Ut)|0,b=b+Math.imul(le,Ft)|0;var St=(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)+(St>>>26)|0,St&=67108863,x=Math.imul(st,Se),r=(r=Math.imul(st,V))+Math.imul(wt,Se)|0,b=Math.imul(wt,V),x=x+Math.imul(it,Ee)|0,r=(r=r+Math.imul(it,et)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Me,Rt)|0,r=(r=r+Math.imul(Me,Xt)|0)+Math.imul(ze,Rt)|0,b=b+Math.imul(ze,Xt)|0,x=x+Math.imul(Y,Re)|0,r=(r=r+Math.imul(Y,Be)|0)+Math.imul(X,Re)|0,b=b+Math.imul(X,Be)|0,x=x+Math.imul(ue,ot)|0,r=(r=r+Math.imul(ue,At)|0)+Math.imul(Te,ot)|0,b=b+Math.imul(Te,At)|0,x=x+Math.imul(yt,Ut)|0,r=(r=r+Math.imul(yt,Ft)|0)+Math.imul(Ne,Ut)|0,b=b+Math.imul(Ne,Ft)|0;var Pt=(I+(x=x+Math.imul(Ae,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Ae,ci)|0)+Math.imul(le,ai)|0))<<13)|0;I=((b=b+Math.imul(le,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(st,Ee),r=(r=Math.imul(st,et))+Math.imul(wt,Ee)|0,b=Math.imul(wt,et),x=x+Math.imul(it,Rt)|0,r=(r=r+Math.imul(it,Xt)|0)+Math.imul(ft,Rt)|0,b=b+Math.imul(ft,Xt)|0,x=x+Math.imul(Me,Re)|0,r=(r=r+Math.imul(Me,Be)|0)+Math.imul(ze,Re)|0,b=b+Math.imul(ze,Be)|0,x=x+Math.imul(Y,ot)|0,r=(r=r+Math.imul(Y,At)|0)+Math.imul(X,ot)|0,b=b+Math.imul(X,At)|0,x=x+Math.imul(ue,Ut)|0,r=(r=r+Math.imul(ue,Ft)|0)+Math.imul(Te,Ut)|0,b=b+Math.imul(Te,Ft)|0;var yi=(I+(x=x+Math.imul(yt,ai)|0)|0)+((8191&(r=(r=r+Math.imul(yt,ci)|0)+Math.imul(Ne,ai)|0))<<13)|0;I=((b=b+Math.imul(Ne,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(st,Rt),r=(r=Math.imul(st,Xt))+Math.imul(wt,Rt)|0,b=Math.imul(wt,Xt),x=x+Math.imul(it,Re)|0,r=(r=r+Math.imul(it,Be)|0)+Math.imul(ft,Re)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Me,ot)|0,r=(r=r+Math.imul(Me,At)|0)+Math.imul(ze,ot)|0,b=b+Math.imul(ze,At)|0,x=x+Math.imul(Y,Ut)|0,r=(r=r+Math.imul(Y,Ft)|0)+Math.imul(X,Ut)|0,b=b+Math.imul(X,Ft)|0;var Pi=(I+(x=x+Math.imul(ue,ai)|0)|0)+((8191&(r=(r=r+Math.imul(ue,ci)|0)+Math.imul(Te,ai)|0))<<13)|0;I=((b=b+Math.imul(Te,ci)|0)+(r>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,x=Math.imul(st,Re),r=(r=Math.imul(st,Be))+Math.imul(wt,Re)|0,b=Math.imul(wt,Be),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(Me,Ut)|0,r=(r=r+Math.imul(Me,Ft)|0)+Math.imul(ze,Ut)|0,b=b+Math.imul(ze,Ft)|0;var Ii=(I+(x=x+Math.imul(Y,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ci)|0)+Math.imul(X,ai)|0))<<13)|0;I=((b=b+Math.imul(X,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(Me,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Me,ci)|0)+Math.imul(ze,ai)|0))<<13)|0;I=((b=b+Math.imul(ze,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,L[0]=rn,L[1]=Vi,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=mt,L[6]=be,L[7]=qe,L[8]=vt,L[9]=me,L[10]=$e,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Pi,L[15]=Ii,L[16]=Ki,L[17]=at,L[18]=Qt,0!==I&&(L[19]=I,p.length++),p};function G(y,i,a){return(new W).mulp(y,i,a)}function W(y,i){this.x=y,this.y=i}Math.imul||(w=D),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?D(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 L=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 B=(0|y.words[_-r])*(0|i.words[r]),te=67108863&B;I=67108863&(te=te+I|0),u+=(L=(L=L+(B/67108864|0)|0)+(te>>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):G(this,i,a),p},W.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},W.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},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I<L;I++)u[I]=a[i[I]],_[I]=p[i[I]]},W.prototype.transform=function(i,a,p,u,_,L){this.permute(L,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),J=0;J<_;J+=x)for(var F=r,B=b,te=0;te<I;te++){var xe=p[J+te],Pe=u[J+te],Fe=p[J+te+I],q=u[J+te+I],j=F*Fe-B*q;q=F*q+B*Fe,p[J+te]=xe+(Fe=j),u[J+te]=Pe+q,p[J+te+I]=xe-Fe,u[J+te+I]=Pe-q,te!==x&&(j=r*F-b*B,B=r*B+b*F,F=j)}},W.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},W.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]=-_}},W.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},W.prototype.convert13b=function(i,a,p,u){for(var _=0,L=0;L<a;L++)p[2*L]=8191&(_+=0|i[L]),p[2*L+1]=8191&(_>>>=13),_>>>=13;for(L=2*a;L<u;++L)p[L]=0;v(0===_),v(0==(-8192&_))},W.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},W.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),L=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),b=new Array(u),J=new Array(u),F=new Array(u),B=p.words;B.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,b,u),this.transform(I,L,x,r,u,_),this.transform(b,L,J,F,u,_);for(var te=0;te<u;te++){var xe=x[te]*J[te]-r[te]*F[te];r[te]=x[te]*F[te]+r[te]*J[te],x[te]=xe}return this.conjugate(x,r,u),this.transform(x,r,B,L,u,_),this.conjugate(B,L,u),this.normalize13b(B,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),G(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 L=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|L,L=I>>>26-a}L&&(this.words[_]=L,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,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;r<L;r++)x.words[r]=this.words[r];x.length=L}if(0!==L)if(this.length>L)for(this.length-=L,r=0;r<this.length;r++)this.words[r]=this.words[r+L];else this.words[0]=0,this.length=1;var b=0;for(r=this.length-1;r>=0&&(0!==b||r>=u);r--){var J=0|this.words[r];this.words[r]=b<<26-_|J>>>_,b=J&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 L,I=0;for(_=0;_<i.length;_++){L=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((L-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_<this.length-p;_++)I=(L=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_<this.length;_++)I=(L=-(0|this.words[_])+I)>>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=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 J=u.clone()._ishlnsubmul(_,1,x);0===J.negative&&(u=J,r&&(r.words[x]=1));for(var F=x-1;F>=0;F--){var B=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(B=Math.min(B/L|0,67108863),u._ishlnsubmul(_,B,F);0!==u.negative;)B--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=B)}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?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.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,_,L},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),L=p.cmp(u);return L<0||1===_&&0===L?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),L=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 J=0,F=1;0==(a.words[0]&F)&&J<26;++J,F<<=1);if(J>0)for(a.iushrn(J);J-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var B=0,te=1;0==(p.words[0]&te)&&B<26;++B,te<<=1);if(B>0)for(p.iushrn(B);B-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(b)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},s.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var J,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),L=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(L),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(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(J=0===a.cmpn(1)?u:_).cmpn(0)<0&&J.iadd(i),J},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 L=a;a=p,p=L}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,L=p;0!==_&&L<this.length;L++){var I=0|this.words[L];_=(I+=_)>>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,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 se(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 ee={k256:null,p224:null,p192:null,p25519:null};function ie(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 _e(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function fe(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function de(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ne(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(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 oe(y){se.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)}ie.prototype._tmp=function(){var i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.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},ie.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ie.prototype.imulK=function(i){return i.imul(this.k)},M(_e,ie),_e.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 L=i.words[9];for(a.words[a.length++]=L&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|L>>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.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},M(fe,ie),M(de,ie),M(ne,ie),ne.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(ee[i])return ee[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new fe;else if("p192"===i)a=new de;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new ne}return ee[i]=a,a},se.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},se.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")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.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)},se.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},se.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)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.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 L=new s(1).toRed(this),I=L.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),J=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),B=_;0!==F.cmp(L);){for(var te=F,xe=0;0!==te.cmp(L);xe++)te=te.redSqr();v(xe<B);var Pe=this.pow(b,new s(1).iushln(B-xe-1));J=J.redMul(Pe),b=Pe.redSqr(),F=F.redMul(b),B=xe}return J},se.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},se.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 L=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var b=a.words[_],J=r-1;J>=0;J--){var F=b>>J&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===J)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new oe(i)},M(oe,se),oe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},oe.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},oe.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),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},oe.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),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},oe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ue=m.nmd(Ue),this)},4901:Ue=>{"use strict";var K={single_source_shortest_paths:function(m,e,t){var v={},M={};M[e]=0;var C,c,R,o,O,P,s=K.PriorityQueue.make();for(s.push(e,0);!s.empty();)for(R in o=(C=s.pop()).cost,O=m[c=C.value]||{})O.hasOwnProperty(R)&&(P=o+O[R],(void 0===M[R]||M[R]>P)&&(M[R]=P,s.push(R,P),v[R]=c));if(void 0!==t&&void 0===M[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}}};Ue.exports=K},7715:(Ue,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:(Ue,K,m)=>{"use strict";var e=m(7433),t=m(1970),v=t.getNAF,M=t.getJSF,s=t.assert;function C(R,o){this.type=R,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 O=this.n&&this.p.div(this.n);!O||O.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(R,o){this.curve=R,this.type=o,this.precomputed=null}Ue.exports=C,C.prototype.point=function(){throw new Error("Not implemented")},C.prototype.validate=function(){throw new Error("Not implemented")},C.prototype._fixedNafMul=function(o,O){s(o.precomputed);var T=o._getDoubles(),P=v(O,1,this._bitLength),S=(1<<T.step+1)-(T.step%2==0?2:1);S/=3;var w,U,D=[];for(w=0;w<P.length;w+=T.step){U=0;for(var G=w+T.step-1;G>=w;G--)U=(U<<1)+P[G];D.push(U)}for(var W=this.jpoint(null,null,null),ee=this.jpoint(null,null,null),ie=S;ie>0;ie--){for(w=0;w<D.length;w++)(U=D[w])===ie?ee=ee.mixedAdd(T.points[w]):U===-ie&&(ee=ee.mixedAdd(T.points[w].neg()));W=W.add(ee)}return W.toP()},C.prototype._wnafMul=function(o,O){for(var T=4,P=o._getNAFPoints(T),S=P.points,D=v(O,T=P.wnd,this._bitLength),w=this.jpoint(null,null,null),U=D.length-1;U>=0;U--){for(var G=0;U>=0&&0===D[U];U--)G++;if(U>=0&&G++,w=w.dblp(G),U<0)break;var W=D[U];s(0!==W),w="affine"===o.type?w.mixedAdd(W>0?S[W-1>>1]:S[-W-1>>1].neg()):w.add(W>0?S[W-1>>1]:S[-W-1>>1].neg())}return"affine"===o.type?w.toP():w},C.prototype._wnafMulAdd=function(o,O,T,P,S){var W,ee,ie,D=this._wnafT1,w=this._wnafT2,U=this._wnafT3,G=0;for(W=0;W<P;W++){var _e=(ie=O[W])._getNAFPoints(o);D[W]=_e.wnd,w[W]=_e.points}for(W=P-1;W>=1;W-=2){var fe=W-1,de=W;if(1===D[fe]&&1===D[de]){var ne=[O[fe],null,null,O[de]];0===O[fe].y.cmp(O[de].y)?(ne[1]=O[fe].add(O[de]),ne[2]=O[fe].toJ().mixedAdd(O[de].neg())):0===O[fe].y.cmp(O[de].y.redNeg())?(ne[1]=O[fe].toJ().mixedAdd(O[de]),ne[2]=O[fe].add(O[de].neg())):(ne[1]=O[fe].toJ().mixedAdd(O[de]),ne[2]=O[fe].toJ().mixedAdd(O[de].neg()));var se=[-3,-1,-5,-7,0,7,5,1,3],oe=M(T[fe],T[de]);for(G=Math.max(oe[0].length,G),U[fe]=new Array(G),U[de]=new Array(G),ee=0;ee<G;ee++)U[fe][ee]=se[3*(1+(0|oe[0][ee]))+(1+(0|oe[1][ee]))],U[de][ee]=0,w[fe]=ne}else U[fe]=v(T[fe],D[fe],this._bitLength),U[de]=v(T[de],D[de],this._bitLength),G=Math.max(U[fe].length,G),G=Math.max(U[de].length,G)}var a=this.jpoint(null,null,null),p=this._wnafT4;for(W=G;W>=0;W--){for(var u=0;W>=0;){var _=!0;for(ee=0;ee<P;ee++)p[ee]=0|U[ee][W],0!==p[ee]&&(_=!1);if(!_)break;u++,W--}if(W>=0&&u++,a=a.dblp(u),W<0)break;for(ee=0;ee<P;ee++){var L=p[ee];0!==L&&(L>0?ie=w[ee][L-1>>1]:L<0&&(ie=w[ee][-L-1>>1].neg()),a="affine"===ie.type?a.mixedAdd(ie):a.add(ie))}}for(W=0;W<P;W++)w[W]=null;return S?a:a.toP()},C.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},C.prototype.decodePoint=function(o,O){o=t.toArray(o,O);var T=this.p.byteLength();if((4===o[0]||6===o[0]||7===o[0])&&o.length-1==2*T)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+T),o.slice(1+T,1+2*T));if((2===o[0]||3===o[0])&&o.length-1===T)return this.pointFromX(o.slice(1,1+T),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 O=this.curve.p.byteLength(),T=this.getX().toArray("be",O);return o?[this.getY().isEven()?2:3].concat(T):[4].concat(T,this.getY().toArray("be",O))},c.prototype.encode=function(o,O){return t.encode(this._encode(O),o)},c.prototype.precompute=function(o){if(this.precomputed)return this;var O={doubles:null,naf:null,beta:null};return O.naf=this._getNAFPoints(8),O.doubles=this._getDoubles(4,o),O.beta=this._getBeta(),this.precomputed=O,this},c.prototype._hasDoubles=function(o){if(!this.precomputed)return!1;var O=this.precomputed.doubles;return!!O&&O.points.length>=Math.ceil((o.bitLength()+1)/O.step)},c.prototype._getDoubles=function(o,O){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var T=[this],P=this,S=0;S<O;S+=o){for(var D=0;D<o;D++)P=P.dbl();T.push(P)}return{step:o,points:T}},c.prototype._getNAFPoints=function(o){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var O=[this],T=(1<<o)-1,P=1===T?null:this.dbl(),S=1;S<T;S++)O[S]=O[S-1].add(P);return{wnd:o,points:O}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(o){for(var O=this,T=0;T<o;T++)O=O.dbl();return O}},3835:(Ue,K,m)=>{"use strict";var e=m(1970),t=m(7433),v=m(3894),M=m(7902),s=e.assert;function C(R){this.twisted=1!=(0|R.a),this.mOneA=this.twisted&&-1==(0|R.a),this.extended=this.mOneA,M.call(this,"edwards",R),this.a=new t(R.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new t(R.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new t(R.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|R.c)}function c(R,o,O,T,P){M.BasePoint.call(this,R,"projective"),null===o&&null===O&&null===T?(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(O,16),this.z=T?new t(T,16):this.curve.one,this.t=P&&new t(P,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(C,M),Ue.exports=C,C.prototype._mulA=function(o){return this.mOneA?o.redNeg():this.a.redMul(o)},C.prototype._mulC=function(o){return this.oneC?o:this.c.redMul(o)},C.prototype.jpoint=function(o,O,T,P){return this.point(o,O,T,P)},C.prototype.pointFromX=function(o,O){(o=new t(o,16)).red||(o=o.toRed(this.red));var T=o.redSqr(),P=this.c2.redSub(this.a.redMul(T)),S=this.one.redSub(this.c2.redMul(this.d).redMul(T)),D=P.redMul(S.redInvm()),w=D.redSqrt();if(0!==w.redSqr().redSub(D).cmp(this.zero))throw new Error("invalid point");var U=w.fromRed().isOdd();return(O&&!U||!O&&U)&&(w=w.redNeg()),this.point(o,w)},C.prototype.pointFromY=function(o,O){(o=new t(o,16)).red||(o=o.toRed(this.red));var T=o.redSqr(),P=T.redSub(this.c2),S=T.redMul(this.d).redMul(this.c2).redSub(this.a),D=P.redMul(S.redInvm());if(0===D.cmp(this.zero)){if(O)throw new Error("invalid point");return this.point(this.zero,o)}var w=D.redSqrt();if(0!==w.redSqr().redSub(D).cmp(this.zero))throw new Error("invalid point");return w.fromRed().isOdd()!==O&&(w=w.redNeg()),this.point(w,o)},C.prototype.validate=function(o){if(o.isInfinity())return!0;o.normalize();var O=o.x.redSqr(),T=o.y.redSqr(),P=O.redMul(this.a).redAdd(T),S=this.c2.redMul(this.one.redAdd(this.d.redMul(O).redMul(T)));return 0===P.cmp(S)},v(c,M.BasePoint),C.prototype.pointFromJSON=function(o){return c.fromJSON(this,o)},C.prototype.point=function(o,O,T,P){return new c(this,o,O,T,P)},c.fromJSON=function(o,O){return new c(o,O[0],O[1],O[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(),O=this.y.redSqr(),T=this.z.redSqr();T=T.redIAdd(T);var P=this.curve._mulA(o),S=this.x.redAdd(this.y).redSqr().redISub(o).redISub(O),D=P.redAdd(O),w=D.redSub(T),U=P.redSub(O),G=S.redMul(w),W=D.redMul(U),ee=S.redMul(U),ie=w.redMul(D);return this.curve.point(G,W,ie,ee)},c.prototype._projDbl=function(){var P,S,D,w,U,G,o=this.x.redAdd(this.y).redSqr(),O=this.x.redSqr(),T=this.y.redSqr();if(this.curve.twisted){var W=(w=this.curve._mulA(O)).redAdd(T);this.zOne?(P=o.redSub(O).redSub(T).redMul(W.redSub(this.curve.two)),S=W.redMul(w.redSub(T)),D=W.redSqr().redSub(W).redSub(W)):(U=this.z.redSqr(),G=W.redSub(U).redISub(U),P=o.redSub(O).redISub(T).redMul(G),S=W.redMul(w.redSub(T)),D=W.redMul(G))}else w=O.redAdd(T),U=this.curve._mulC(this.z).redSqr(),G=w.redSub(U).redSub(U),P=this.curve._mulC(o.redISub(w)).redMul(G),S=this.curve._mulC(w).redMul(O.redISub(T)),D=w.redMul(G);return this.curve.point(P,S,D)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(o){var O=this.y.redSub(this.x).redMul(o.y.redSub(o.x)),T=this.y.redAdd(this.x).redMul(o.y.redAdd(o.x)),P=this.t.redMul(this.curve.dd).redMul(o.t),S=this.z.redMul(o.z.redAdd(o.z)),D=T.redSub(O),w=S.redSub(P),U=S.redAdd(P),G=T.redAdd(O),W=D.redMul(w),ee=U.redMul(G),ie=D.redMul(G),_e=w.redMul(U);return this.curve.point(W,ee,_e,ie)},c.prototype._projAdd=function(o){var ee,ie,O=this.z.redMul(o.z),T=O.redSqr(),P=this.x.redMul(o.x),S=this.y.redMul(o.y),D=this.curve.d.redMul(P).redMul(S),w=T.redSub(D),U=T.redAdd(D),G=this.x.redAdd(this.y).redMul(o.x.redAdd(o.y)).redISub(P).redISub(S),W=O.redMul(w).redMul(G);return this.curve.twisted?(ee=O.redMul(U).redMul(S.redSub(this.curve._mulA(P))),ie=w.redMul(U)):(ee=O.redMul(U).redMul(S.redSub(P)),ie=this.curve._mulC(w).redMul(U)),this.curve.point(W,ee,ie)},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,O,T){return this.curve._wnafMulAdd(1,[this,O],[o,T],2,!1)},c.prototype.jmulAdd=function(o,O,T){return this.curve._wnafMulAdd(1,[this,O],[o,T],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 O=o.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(O))return!0;for(var T=o.clone(),P=this.curve.redN.redMul(this.z);;){if(T.iadd(this.curve.n),T.cmp(this.curve.p)>=0)return!1;if(O.redIAdd(P),0===this.x.cmp(O))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},6270:(Ue,K,m)=>{"use strict";var e=K;e.base=m(7902),e.short=m(1781),e.mont=m(7064),e.edwards=m(3835)},7064:(Ue,K,m)=>{"use strict";var e=m(7433),t=m(3894),v=m(7902),M=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 C(c,R,o){v.BasePoint.call(this,c,"projective"),null===R&&null===o?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new e(R,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),Ue.exports=s,s.prototype.validate=function(R){var o=R.normalize().x,O=o.redSqr(),T=O.redMul(o).redAdd(O.redMul(this.a)).redAdd(o);return 0===T.redSqrt().redSqr().cmp(T)},t(C,v.BasePoint),s.prototype.decodePoint=function(R,o){return this.point(M.toArray(R,o),1)},s.prototype.point=function(R,o){return new C(this,R,o)},s.prototype.pointFromJSON=function(R){return C.fromJSON(this,R)},C.prototype.precompute=function(){},C.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},C.fromJSON=function(R,o){return new C(R,o[0],o[1]||R.one)},C.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)+">"},C.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},C.prototype.dbl=function(){var o=this.x.redAdd(this.z).redSqr(),T=this.x.redSub(this.z).redSqr(),P=o.redSub(T),S=o.redMul(T),D=P.redMul(T.redAdd(this.curve.a24.redMul(P)));return this.curve.point(S,D)},C.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},C.prototype.diffAdd=function(R,o){var O=this.x.redAdd(this.z),T=this.x.redSub(this.z),P=R.x.redAdd(R.z),D=R.x.redSub(R.z).redMul(O),w=P.redMul(T),U=o.z.redMul(D.redAdd(w).redSqr()),G=o.x.redMul(D.redISub(w).redSqr());return this.curve.point(U,G)},C.prototype.mul=function(R){for(var o=R.clone(),O=this,T=this.curve.point(null,null),S=[];0!==o.cmpn(0);o.iushrn(1))S.push(o.andln(1));for(var D=S.length-1;D>=0;D--)0===S[D]?(O=O.diffAdd(T,this),T=T.dbl()):(T=O.diffAdd(T,this),O=O.dbl());return T},C.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},C.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},C.prototype.eq=function(R){return 0===this.getX().cmp(R.getX())},C.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},C.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(Ue,K,m)=>{"use strict";var e=m(1970),t=m(7433),v=m(3894),M=m(7902),s=e.assert;function C(o){M.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,O,T,P){M.BasePoint.call(this,o,"affine"),null===O&&null===T?(this.x=null,this.y=null,this.inf=!0):(this.x=new t(O,16),this.y=new t(T,16),P&&(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 R(o,O,T,P){M.BasePoint.call(this,o,"jacobian"),null===O&&null===T&&null===P?(this.x=this.curve.one,this.y=this.curve.one,this.z=new t(0)):(this.x=new t(O,16),this.y=new t(T,16),this.z=new t(P,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(C,M),Ue.exports=C,C.prototype._getEndomorphism=function(O){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var T,P;if(O.beta)T=new t(O.beta,16).toRed(this.red);else{var S=this._getEndoRoots(this.p);T=(T=S[0].cmp(S[1])<0?S[0]:S[1]).toRed(this.red)}if(O.lambda)P=new t(O.lambda,16);else{var D=this._getEndoRoots(this.n);0===this.g.mul(D[0]).x.cmp(this.g.x.redMul(T))?P=D[0]:s(0===this.g.mul(P=D[1]).x.cmp(this.g.x.redMul(T)))}return{beta:T,lambda:P,basis:O.basis?O.basis.map(function(U){return{a:new t(U.a,16),b:new t(U.b,16)}}):this._getEndoBasis(P)}}},C.prototype._getEndoRoots=function(O){var T=O===this.p?this.red:t.mont(O),P=new t(2).toRed(T).redInvm(),S=P.redNeg(),D=new t(3).toRed(T).redNeg().redSqrt().redMul(P);return[S.redAdd(D).fromRed(),S.redSub(D).fromRed()]},C.prototype._getEndoBasis=function(O){for(var W,ee,ie,_e,fe,de,ne,oe,y,T=this.n.ushrn(Math.floor(this.n.bitLength()/2)),P=O,S=this.n.clone(),D=new t(1),w=new t(0),U=new t(0),G=new t(1),se=0;0!==P.cmpn(0);){var i=S.div(P);oe=S.sub(i.mul(P)),y=U.sub(i.mul(D));var a=G.sub(i.mul(w));if(!ie&&oe.cmp(T)<0)W=ne.neg(),ee=D,ie=oe.neg(),_e=y;else if(ie&&2==++se)break;ne=oe,S=P,P=oe,U=D,D=y,G=w,w=a}fe=oe.neg(),de=y;var p=ie.sqr().add(_e.sqr());return fe.sqr().add(de.sqr()).cmp(p)>=0&&(fe=W,de=ee),ie.negative&&(ie=ie.neg(),_e=_e.neg()),fe.negative&&(fe=fe.neg(),de=de.neg()),[{a:ie,b:_e},{a:fe,b:de}]},C.prototype._endoSplit=function(O){var T=this.endo.basis,P=T[0],S=T[1],D=S.b.mul(O).divRound(this.n),w=P.b.neg().mul(O).divRound(this.n),U=D.mul(P.a),G=w.mul(S.a),W=D.mul(P.b),ee=w.mul(S.b);return{k1:O.sub(U).sub(G),k2:W.add(ee).neg()}},C.prototype.pointFromX=function(O,T){(O=new t(O,16)).red||(O=O.toRed(this.red));var P=O.redSqr().redMul(O).redIAdd(O.redMul(this.a)).redIAdd(this.b),S=P.redSqrt();if(0!==S.redSqr().redSub(P).cmp(this.zero))throw new Error("invalid point");var D=S.fromRed().isOdd();return(T&&!D||!T&&D)&&(S=S.redNeg()),this.point(O,S)},C.prototype.validate=function(O){if(O.inf)return!0;var T=O.x,P=O.y,S=this.a.redMul(T),D=T.redSqr().redMul(T).redIAdd(S).redIAdd(this.b);return 0===P.redSqr().redISub(D).cmpn(0)},C.prototype._endoWnafMulAdd=function(O,T,P){for(var S=this._endoWnafT1,D=this._endoWnafT2,w=0;w<O.length;w++){var U=this._endoSplit(T[w]),G=O[w],W=G._getBeta();U.k1.negative&&(U.k1.ineg(),G=G.neg(!0)),U.k2.negative&&(U.k2.ineg(),W=W.neg(!0)),S[2*w]=G,S[2*w+1]=W,D[2*w]=U.k1,D[2*w+1]=U.k2}for(var ee=this._wnafMulAdd(1,S,D,2*w,P),ie=0;ie<2*w;ie++)S[ie]=null,D[ie]=null;return ee},v(c,M.BasePoint),C.prototype.point=function(O,T,P){return new c(this,O,T,P)},C.prototype.pointFromJSON=function(O,T){return c.fromJSON(this,O,T)},c.prototype._getBeta=function(){if(this.curve.endo){var O=this.precomputed;if(O&&O.beta)return O.beta;var T=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(O){var P=this.curve,S=function(D){return P.point(D.x.redMul(P.endo.beta),D.y)};O.beta=T,T.precomputed={beta:null,naf:O.naf&&{wnd:O.naf.wnd,points:O.naf.points.map(S)},doubles:O.doubles&&{step:O.doubles.step,points:O.doubles.points.map(S)}}}return T}},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(O,T,P){"string"==typeof T&&(T=JSON.parse(T));var S=O.point(T[0],T[1],P);if(!T[2])return S;function D(U){return O.point(U[0],U[1],P)}var w=T[2];return S.precomputed={beta:null,doubles:w.doubles&&{step:w.doubles.step,points:[S].concat(w.doubles.points.map(D))},naf:w.naf&&{wnd:w.naf.wnd,points:[S].concat(w.naf.points.map(D))}},S},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(O){if(this.inf)return O;if(O.inf)return this;if(this.eq(O))return this.dbl();if(this.neg().eq(O))return this.curve.point(null,null);if(0===this.x.cmp(O.x))return this.curve.point(null,null);var T=this.y.redSub(O.y);0!==T.cmpn(0)&&(T=T.redMul(this.x.redSub(O.x).redInvm()));var P=T.redSqr().redISub(this.x).redISub(O.x),S=T.redMul(this.x.redSub(P)).redISub(this.y);return this.curve.point(P,S)},c.prototype.dbl=function(){if(this.inf)return this;var O=this.y.redAdd(this.y);if(0===O.cmpn(0))return this.curve.point(null,null);var T=this.curve.a,P=this.x.redSqr(),S=O.redInvm(),D=P.redAdd(P).redIAdd(P).redIAdd(T).redMul(S),w=D.redSqr().redISub(this.x.redAdd(this.x)),U=D.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,U)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(O){return O=new t(O,16),this.isInfinity()?this:this._hasDoubles(O)?this.curve._fixedNafMul(this,O):this.curve.endo?this.curve._endoWnafMulAdd([this],[O]):this.curve._wnafMul(this,O)},c.prototype.mulAdd=function(O,T,P){var S=[this,T],D=[O,P];return this.curve.endo?this.curve._endoWnafMulAdd(S,D):this.curve._wnafMulAdd(1,S,D,2)},c.prototype.jmulAdd=function(O,T,P){var S=[this,T],D=[O,P];return this.curve.endo?this.curve._endoWnafMulAdd(S,D,!0):this.curve._wnafMulAdd(1,S,D,2,!0)},c.prototype.eq=function(O){return this===O||this.inf===O.inf&&(this.inf||0===this.x.cmp(O.x)&&0===this.y.cmp(O.y))},c.prototype.neg=function(O){if(this.inf)return this;var T=this.curve.point(this.x,this.y.redNeg());if(O&&this.precomputed){var P=this.precomputed,S=function(D){return D.neg()};T.precomputed={naf:P.naf&&{wnd:P.naf.wnd,points:P.naf.points.map(S)},doubles:P.doubles&&{step:P.doubles.step,points:P.doubles.points.map(S)}}}return T},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},v(R,M.BasePoint),C.prototype.jpoint=function(O,T,P){return new R(this,O,T,P)},R.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var O=this.z.redInvm(),T=O.redSqr(),P=this.x.redMul(T),S=this.y.redMul(T).redMul(O);return this.curve.point(P,S)},R.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},R.prototype.add=function(O){if(this.isInfinity())return O;if(O.isInfinity())return this;var T=O.z.redSqr(),P=this.z.redSqr(),S=this.x.redMul(T),D=O.x.redMul(P),w=this.y.redMul(T.redMul(O.z)),U=O.y.redMul(P.redMul(this.z)),G=S.redSub(D),W=w.redSub(U);if(0===G.cmpn(0))return 0!==W.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ee=G.redSqr(),ie=ee.redMul(G),_e=S.redMul(ee),fe=W.redSqr().redIAdd(ie).redISub(_e).redISub(_e),de=W.redMul(_e.redISub(fe)).redISub(w.redMul(ie)),ne=this.z.redMul(O.z).redMul(G);return this.curve.jpoint(fe,de,ne)},R.prototype.mixedAdd=function(O){if(this.isInfinity())return O.toJ();if(O.isInfinity())return this;var T=this.z.redSqr(),P=this.x,S=O.x.redMul(T),D=this.y,w=O.y.redMul(T).redMul(this.z),U=P.redSub(S),G=D.redSub(w);if(0===U.cmpn(0))return 0!==G.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var W=U.redSqr(),ee=W.redMul(U),ie=P.redMul(W),_e=G.redSqr().redIAdd(ee).redISub(ie).redISub(ie),fe=G.redMul(ie.redISub(_e)).redISub(D.redMul(ee)),de=this.z.redMul(U);return this.curve.jpoint(_e,fe,de)},R.prototype.dblp=function(O){if(0===O)return this;if(this.isInfinity())return this;if(!O)return this.dbl();var T;if(this.curve.zeroA||this.curve.threeA){var P=this;for(T=0;T<O;T++)P=P.dbl();return P}var S=this.curve.a,D=this.curve.tinv,w=this.x,U=this.y,G=this.z,W=G.redSqr().redSqr(),ee=U.redAdd(U);for(T=0;T<O;T++){var ie=w.redSqr(),_e=ee.redSqr(),fe=_e.redSqr(),de=ie.redAdd(ie).redIAdd(ie).redIAdd(S.redMul(W)),ne=w.redMul(_e),se=de.redSqr().redISub(ne.redAdd(ne)),oe=ne.redISub(se),y=de.redMul(oe);y=y.redIAdd(y).redISub(fe);var i=ee.redMul(G);T+1<O&&(W=W.redMul(fe)),w=se,G=i,ee=y}return this.curve.jpoint(w,ee.redMul(D),G)},R.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},R.prototype._zeroDbl=function(){var O,T,P;if(this.zOne){var S=this.x.redSqr(),D=this.y.redSqr(),w=D.redSqr(),U=this.x.redAdd(D).redSqr().redISub(S).redISub(w);U=U.redIAdd(U);var G=S.redAdd(S).redIAdd(S),W=G.redSqr().redISub(U).redISub(U),ee=w.redIAdd(w);ee=(ee=ee.redIAdd(ee)).redIAdd(ee),O=W,T=G.redMul(U.redISub(W)).redISub(ee),P=this.y.redAdd(this.y)}else{var ie=this.x.redSqr(),_e=this.y.redSqr(),fe=_e.redSqr(),de=this.x.redAdd(_e).redSqr().redISub(ie).redISub(fe);de=de.redIAdd(de);var ne=ie.redAdd(ie).redIAdd(ie),se=ne.redSqr(),oe=fe.redIAdd(fe);oe=(oe=oe.redIAdd(oe)).redIAdd(oe),O=se.redISub(de).redISub(de),T=ne.redMul(de.redISub(O)).redISub(oe),P=(P=this.y.redMul(this.z)).redIAdd(P)}return this.curve.jpoint(O,T,P)},R.prototype._threeDbl=function(){var O,T,P;if(this.zOne){var S=this.x.redSqr(),D=this.y.redSqr(),w=D.redSqr(),U=this.x.redAdd(D).redSqr().redISub(S).redISub(w);U=U.redIAdd(U);var G=S.redAdd(S).redIAdd(S).redIAdd(this.curve.a),W=G.redSqr().redISub(U).redISub(U);O=W;var ee=w.redIAdd(w);ee=(ee=ee.redIAdd(ee)).redIAdd(ee),T=G.redMul(U.redISub(W)).redISub(ee),P=this.y.redAdd(this.y)}else{var ie=this.z.redSqr(),_e=this.y.redSqr(),fe=this.x.redMul(_e),de=this.x.redSub(ie).redMul(this.x.redAdd(ie));de=de.redAdd(de).redIAdd(de);var ne=fe.redIAdd(fe),se=(ne=ne.redIAdd(ne)).redAdd(ne);O=de.redSqr().redISub(se),P=this.y.redAdd(this.z).redSqr().redISub(_e).redISub(ie);var oe=_e.redSqr();oe=(oe=(oe=oe.redIAdd(oe)).redIAdd(oe)).redIAdd(oe),T=de.redMul(ne.redISub(O)).redISub(oe)}return this.curve.jpoint(O,T,P)},R.prototype._dbl=function(){var O=this.curve.a,T=this.x,P=this.y,S=this.z,D=S.redSqr().redSqr(),w=T.redSqr(),U=P.redSqr(),G=w.redAdd(w).redIAdd(w).redIAdd(O.redMul(D)),W=T.redAdd(T),ee=(W=W.redIAdd(W)).redMul(U),ie=G.redSqr().redISub(ee.redAdd(ee)),_e=ee.redISub(ie),fe=U.redSqr();fe=(fe=(fe=fe.redIAdd(fe)).redIAdd(fe)).redIAdd(fe);var de=G.redMul(_e).redISub(fe),ne=P.redAdd(P).redMul(S);return this.curve.jpoint(ie,de,ne)},R.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var O=this.x.redSqr(),T=this.y.redSqr(),P=this.z.redSqr(),S=T.redSqr(),D=O.redAdd(O).redIAdd(O),w=D.redSqr(),U=this.x.redAdd(T).redSqr().redISub(O).redISub(S),G=(U=(U=(U=U.redIAdd(U)).redAdd(U).redIAdd(U)).redISub(w)).redSqr(),W=S.redIAdd(S);W=(W=(W=W.redIAdd(W)).redIAdd(W)).redIAdd(W);var ee=D.redIAdd(U).redSqr().redISub(w).redISub(G).redISub(W),ie=T.redMul(ee);ie=(ie=ie.redIAdd(ie)).redIAdd(ie);var _e=this.x.redMul(G).redISub(ie);_e=(_e=_e.redIAdd(_e)).redIAdd(_e);var fe=this.y.redMul(ee.redMul(W.redISub(ee)).redISub(U.redMul(G)));fe=(fe=(fe=fe.redIAdd(fe)).redIAdd(fe)).redIAdd(fe);var de=this.z.redAdd(U).redSqr().redISub(P).redISub(G);return this.curve.jpoint(_e,fe,de)},R.prototype.mul=function(O,T){return O=new t(O,T),this.curve._wnafMul(this,O)},R.prototype.eq=function(O){if("affine"===O.type)return this.eq(O.toJ());if(this===O)return!0;var T=this.z.redSqr(),P=O.z.redSqr();if(0!==this.x.redMul(P).redISub(O.x.redMul(T)).cmpn(0))return!1;var S=T.redMul(this.z),D=P.redMul(O.z);return 0===this.y.redMul(D).redISub(O.y.redMul(S)).cmpn(0)},R.prototype.eqXToP=function(O){var T=this.z.redSqr(),P=O.toRed(this.curve.red).redMul(T);if(0===this.x.cmp(P))return!0;for(var S=O.clone(),D=this.curve.redN.redMul(T);;){if(S.iadd(this.curve.n),S.cmp(this.curve.p)>=0)return!1;if(P.redIAdd(D),0===this.x.cmp(P))return!0}},R.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)+">"},R.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(Ue,K,m)=>{"use strict";var R,e=K,t=m(7084),v=m(6270),s=m(1970).assert;function C(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,O){Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:function(){var T=new C(O);return Object.defineProperty(e,o,{configurable:!0,enumerable:!0,value:T}),T}})}e.PresetCurve=C,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{R=m(5150)}catch(o){R=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",R]})},7626:(Ue,K,m)=>{"use strict";var e=m(7433),t=m(2438),v=m(1970),M=m(2916),s=m(7950),C=v.assert,c=m(1259),R=m(5957);function o(O){if(!(this instanceof o))return new o(O);"string"==typeof O&&(C(Object.prototype.hasOwnProperty.call(M,O),"Unknown curve "+O),O=M[O]),O instanceof M.PresetCurve&&(O={curve:O}),this.curve=O.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=O.curve.g,this.g.precompute(O.curve.n.bitLength()+1),this.hash=O.hash||O.curve.hash}Ue.exports=o,o.prototype.keyPair=function(T){return new c(this,T)},o.prototype.keyFromPrivate=function(T,P){return c.fromPrivate(this,T,P)},o.prototype.keyFromPublic=function(T,P){return c.fromPublic(this,T,P)},o.prototype.genKeyPair=function(T){T||(T={});for(var P=new t({hash:this.hash,pers:T.pers,persEnc:T.persEnc||"utf8",entropy:T.entropy||s(this.hash.hmacStrength),entropyEnc:T.entropy&&T.entropyEnc||"utf8",nonce:this.n.toArray()}),S=this.n.byteLength(),D=this.n.sub(new e(2));;){var w=new e(P.generate(S));if(!(w.cmp(D)>0))return w.iaddn(1),this.keyFromPrivate(w)}},o.prototype._truncateToN=function(T,P){var S=8*T.byteLength()-this.n.bitLength();return S>0&&(T=T.ushrn(S)),!P&&T.cmp(this.n)>=0?T.sub(this.n):T},o.prototype.sign=function(T,P,S,D){"object"==typeof S&&(D=S,S=null),D||(D={}),P=this.keyFromPrivate(P,S),T=this._truncateToN(new e(T,16));for(var w=this.n.byteLength(),U=P.getPrivate().toArray("be",w),G=T.toArray("be",w),W=new t({hash:this.hash,entropy:U,nonce:G,pers:D.pers,persEnc:D.persEnc||"utf8"}),ee=this.n.sub(new e(1)),ie=0;;ie++){var _e=D.k?D.k(ie):new e(W.generate(this.n.byteLength()));if(!((_e=this._truncateToN(_e,!0)).cmpn(1)<=0||_e.cmp(ee)>=0)){var fe=this.g.mul(_e);if(!fe.isInfinity()){var de=fe.getX(),ne=de.umod(this.n);if(0!==ne.cmpn(0)){var se=_e.invm(this.n).mul(ne.mul(P.getPrivate()).iadd(T));if(0!==(se=se.umod(this.n)).cmpn(0)){var oe=(fe.getY().isOdd()?1:0)|(0!==de.cmp(ne)?2:0);return D.canonical&&se.cmp(this.nh)>0&&(se=this.n.sub(se),oe^=1),new R({r:ne,s:se,recoveryParam:oe})}}}}}},o.prototype.verify=function(T,P,S,D){T=this._truncateToN(new e(T,16)),S=this.keyFromPublic(S,D);var w=(P=new R(P,"hex")).r,U=P.s;if(w.cmpn(1)<0||w.cmp(this.n)>=0||U.cmpn(1)<0||U.cmp(this.n)>=0)return!1;var ie,G=U.invm(this.n),W=G.mul(T).umod(this.n),ee=G.mul(w).umod(this.n);return this.curve._maxwellTrick?!(ie=this.g.jmulAdd(W,S.getPublic(),ee)).isInfinity()&&ie.eqXToP(w):!(ie=this.g.mulAdd(W,S.getPublic(),ee)).isInfinity()&&0===ie.getX().umod(this.n).cmp(w)},o.prototype.recoverPubKey=function(O,T,P,S){C((3&P)===P,"The recovery param is more than two bits"),T=new R(T,S);var D=this.n,w=new e(O),U=T.r,G=T.s,W=1&P,ee=P>>1;if(U.cmp(this.curve.p.umod(this.curve.n))>=0&&ee)throw new Error("Unable to find sencond key candinate");U=this.curve.pointFromX(ee?U.add(this.curve.n):U,W);var ie=T.r.invm(D),_e=D.sub(w).mul(ie).umod(D),fe=G.mul(ie).umod(D);return this.g.mulAdd(_e,U,fe)},o.prototype.getKeyRecoveryParam=function(O,T,P,S){if(null!==(T=new R(T,S)).recoveryParam)return T.recoveryParam;for(var D=0;D<4;D++){var w;try{w=this.recoverPubKey(O,T,D)}catch(U){continue}if(w.eq(P))return D}throw new Error("Unable to find valid recovery factor")}},1259:(Ue,K,m)=>{"use strict";var e=m(7433),v=m(1970).assert;function M(s,C){this.ec=s,this.priv=null,this.pub=null,C.priv&&this._importPrivate(C.priv,C.privEnc),C.pub&&this._importPublic(C.pub,C.pubEnc)}Ue.exports=M,M.fromPublic=function(C,c,R){return c instanceof M?c:new M(C,{pub:c,pubEnc:R})},M.fromPrivate=function(C,c,R){return c instanceof M?c:new M(C,{priv:c,privEnc:R})},M.prototype.validate=function(){var C=this.getPublic();return C.isInfinity()?{result:!1,reason:"Invalid public key"}:C.validate()?C.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"}},M.prototype.getPublic=function(C,c){return"string"==typeof C&&(c=C,C=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),c?this.pub.encode(c,C):this.pub},M.prototype.getPrivate=function(C){return"hex"===C?this.priv.toString(16,2):this.priv},M.prototype._importPrivate=function(C,c){this.priv=new e(C,c||16),this.priv=this.priv.umod(this.ec.curve.n)},M.prototype._importPublic=function(C,c){if(C.x||C.y)return"mont"===this.ec.curve.type?v(C.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&v(C.x&&C.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(C.x,C.y));this.pub=this.ec.curve.decodePoint(C,c)},M.prototype.derive=function(C){return C.validate()||v(C.validate(),"public point not validated"),C.mul(this.priv).getX()},M.prototype.sign=function(C,c,R){return this.ec.sign(C,this,c,R)},M.prototype.verify=function(C,c){return this.ec.verify(C,c,this)},M.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},5957:(Ue,K,m)=>{"use strict";var e=m(7433),t=m(1970),v=t.assert;function M(o,O){if(o instanceof M)return o;this._importDER(o,O)||(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 C(o,O){var T=o[O.place++];if(!(128&T))return T;var P=15&T;if(0===P||P>4)return!1;for(var S=0,D=0,w=O.place;D<P;D++,w++)S<<=8,S|=o[w],S>>>=0;return!(S<=127)&&(O.place=w,S)}function c(o){for(var O=0,T=o.length-1;!o[O]&&!(128&o[O+1])&&O<T;)O++;return 0===O?o:o.slice(O)}function R(o,O){if(O<128)o.push(O);else{var T=1+(Math.log(O)/Math.LN2>>>3);for(o.push(128|T);--T;)o.push(O>>>(T<<3)&255);o.push(O)}}Ue.exports=M,M.prototype._importDER=function(O,T){O=t.toArray(O,T);var P=new s;if(48!==O[P.place++])return!1;var S=C(O,P);if(!1===S||S+P.place!==O.length||2!==O[P.place++])return!1;var D=C(O,P);if(!1===D)return!1;var w=O.slice(P.place,D+P.place);if(P.place+=D,2!==O[P.place++])return!1;var U=C(O,P);if(!1===U||O.length!==U+P.place)return!1;var G=O.slice(P.place,U+P.place);if(0===w[0]){if(!(128&w[1]))return!1;w=w.slice(1)}if(0===G[0]){if(!(128&G[1]))return!1;G=G.slice(1)}return this.r=new e(w),this.s=new e(G),this.recoveryParam=null,!0},M.prototype.toDER=function(O){var T=this.r.toArray(),P=this.s.toArray();for(128&T[0]&&(T=[0].concat(T)),128&P[0]&&(P=[0].concat(P)),T=c(T),P=c(P);!(P[0]||128&P[1]);)P=P.slice(1);var S=[2];R(S,T.length),(S=S.concat(T)).push(2),R(S,P.length);var D=S.concat(P),w=[48];return R(w,D.length),w=w.concat(D),t.encode(w,O)}},1885:(Ue,K,m)=>{"use strict";var e=m(7084),t=m(2916),v=m(1970),M=v.assert,s=v.parseBytes,C=m(7535),c=m(8241);function R(o){if(M("ed25519"===o,"only tested with ed25519 so far"),!(this instanceof R))return new R(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}Ue.exports=R,R.prototype.sign=function(O,T){O=s(O);var P=this.keyFromSecret(T),S=this.hashInt(P.messagePrefix(),O),D=this.g.mul(S),w=this.encodePoint(D),U=this.hashInt(w,P.pubBytes(),O).mul(P.priv()),G=S.add(U).umod(this.curve.n);return this.makeSignature({R:D,S:G,Rencoded:w})},R.prototype.verify=function(O,T,P){O=s(O),T=this.makeSignature(T);var S=this.keyFromPublic(P),D=this.hashInt(T.Rencoded(),S.pubBytes(),O),w=this.g.mul(T.S());return T.R().add(S.pub().mul(D)).eq(w)},R.prototype.hashInt=function(){for(var O=this.hash(),T=0;T<arguments.length;T++)O.update(arguments[T]);return v.intFromLE(O.digest()).umod(this.curve.n)},R.prototype.keyFromPublic=function(O){return C.fromPublic(this,O)},R.prototype.keyFromSecret=function(O){return C.fromSecret(this,O)},R.prototype.makeSignature=function(O){return O instanceof c?O:new c(this,O)},R.prototype.encodePoint=function(O){var T=O.getY().toArray("le",this.encodingLength);return T[this.encodingLength-1]|=O.getX().isOdd()?128:0,T},R.prototype.decodePoint=function(O){var T=(O=v.parseBytes(O)).length-1,P=O.slice(0,T).concat(-129&O[T]),S=0!=(128&O[T]),D=v.intFromLE(P);return this.curve.pointFromY(D,S)},R.prototype.encodeInt=function(O){return O.toArray("le",this.encodingLength)},R.prototype.decodeInt=function(O){return v.intFromLE(O)},R.prototype.isPoint=function(O){return O instanceof this.pointClass}},7535:(Ue,K,m)=>{"use strict";var e=m(1970),t=e.assert,v=e.parseBytes,M=e.cachedProperty;function s(C,c){this.eddsa=C,this._secret=v(c.secret),C.isPoint(c.pub)?this._pub=c.pub:this._pubBytes=v(c.pub)}s.fromPublic=function(c,R){return R instanceof s?R:new s(c,{pub:R})},s.fromSecret=function(c,R){return R instanceof s?R:new s(c,{secret:R})},s.prototype.secret=function(){return this._secret},M(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),M(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),M(s,"privBytes",function(){var c=this.eddsa,R=this.hash(),o=c.encodingLength-1,O=R.slice(0,c.encodingLength);return O[0]&=248,O[o]&=127,O[o]|=64,O}),M(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),M(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),M(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,R){return this.eddsa.verify(c,R,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)},Ue.exports=s},8241:(Ue,K,m)=>{"use strict";var e=m(7433),t=m(1970),v=t.assert,M=t.cachedProperty,s=t.parseBytes;function C(c,R){this.eddsa=c,"object"!=typeof R&&(R=s(R)),Array.isArray(R)&&(R={R:R.slice(0,c.encodingLength),S:R.slice(c.encodingLength)}),v(R.R&&R.S,"Signature without R or S"),c.isPoint(R.R)&&(this._R=R.R),R.S instanceof e&&(this._S=R.S),this._Rencoded=Array.isArray(R.R)?R.R:R.Rencoded,this._Sencoded=Array.isArray(R.S)?R.S:R.Sencoded}M(C,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),M(C,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),M(C,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),M(C,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),C.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},C.prototype.toHex=function(){return t.encode(this.toBytes(),"hex").toUpperCase()},Ue.exports=C},5150:Ue=>{Ue.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:(Ue,K,m)=>{"use strict";var e=K,t=m(7433),v=m(2391),M=m(8195);e.assert=v,e.toArray=M.toArray,e.zero2=M.zero2,e.toHex=M.toHex,e.encode=M.encode,e.getNAF=function(O,T,P){var S=new Array(Math.max(O.bitLength(),P)+1);S.fill(0);for(var D=1<<T+1,w=O.clone(),U=0;U<S.length;U++){var G,W=w.andln(D-1);w.isOdd()?w.isubn(G=W>(D>>1)-1?(D>>1)-W:W):G=0,S[U]=G,w.iushrn(1)}return S},e.getJSF=function(O,T){var P=[[],[]];O=O.clone(),T=T.clone();for(var w,S=0,D=0;O.cmpn(-S)>0||T.cmpn(-D)>0;){var W,ee,U=O.andln(3)+S&3,G=T.andln(3)+D&3;3===U&&(U=-1),3===G&&(G=-1),W=0==(1&U)?0:3!=(w=O.andln(7)+S&7)&&5!==w||2!==G?U:-U,P[0].push(W),ee=0==(1&G)?0:3!=(w=T.andln(7)+D&7)&&5!==w||2!==U?G:-G,P[1].push(ee),2*S===W+1&&(S=1-S),2*D===ee+1&&(D=1-D),O.iushrn(1),T.iushrn(1)}return P},e.cachedProperty=function(O,T,P){var S="_"+T;O.prototype[T]=function(){return void 0!==this[S]?this[S]:this[S]=P.call(this)}},e.parseBytes=function(O){return"string"==typeof O?e.toArray(O,"hex"):O},e.intFromLE=function(O){return new t(O,"hex","le")}},7433:function(Ue,K,m){!function(e,t){"use strict";function v(y,i){if(!y)throw new Error(i||"Assertion failed")}function M(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 C;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{C="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 R(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),L=i;L<_;L++){var I=y.charCodeAt(L)-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 _,L,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(L=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=L>>>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,L=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=R(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=R(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=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 L=i.length-p,I=L%u,x=Math.min(L,L-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 J=1;for(r=o(i,b,i.length,a),b=0;b<I;b++)J*=a;this.imuln(J),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 O=["","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"],T=[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],P=[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 D(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],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r<p;r++){for(var b=x>>>26,J=67108863&x,F=Math.min(r,i.length-1),B=Math.max(0,r-y.length+1);B<=F;B++)b+=(L=(u=0|y.words[r-B|0])*(_=0|i.words[B])+J)/67108864|0,J=67108863&L;a.words[r]=0|J,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,L=0;L<this.length;L++){var I=this.words[L],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||L!==this.length-1?O[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}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=T[i],b=P[i];p="";var J=this.clone();for(J.negative=0;!J.isZero();){var F=J.modn(b).toString(i);p=(J=J.idivn(b)).isZero()?F+p:O[r-F.length]+F+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!==C),this.toArrayLike(C,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,L="le"===a,I=new i(_),b=this.clone();if(L){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,L=0;L<u.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+(0|u.words[L])+_),_=a>>>26;for(;0!==_&&L<p.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;L<p.length;L++)this.words[L]=p.words[L];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 L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I<u.length;I++)L=(a=(0|u.words[I])+L)>>26,this.words[I]=67108863&a;if(0===L&&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,L=p.words,I=0,J=0|u[0],F=8191&J,B=J>>>13,te=0|u[1],xe=8191&te,Pe=te>>>13,Fe=0|u[2],q=8191&Fe,j=Fe>>>13,we=0|u[3],Ae=8191&we,le=we>>>13,We=0|u[4],yt=8191&We,Ne=We>>>13,Ve=0|u[5],ue=8191&Ve,Te=Ve>>>13,ke=0|u[6],Y=8191&ke,X=ke>>>13,he=0|u[7],Me=8191&he,ze=he>>>13,ht=0|u[8],it=8191&ht,ft=ht>>>13,nt=0|u[9],st=8191&nt,wt=nt>>>13,Bt=0|_[0],Nt=8191&Bt,Vt=Bt>>>13,Oi=0|_[1],jt=8191&Oi,ti=Oi>>>13,Ri=0|_[2],si=8191&Ri,di=Ri>>>13,He=0|_[3],Se=8191&He,V=He>>>13,ve=0|_[4],Ee=8191&ve,et=ve>>>13,$t=0|_[5],Rt=8191&$t,Xt=$t>>>13,lt=0|_[6],Re=8191&lt,Be=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(F,Nt))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(B,Nt)|0))<<13)|0;I=((b=Math.imul(B,Vt))+(r>>>13)|0)+(rn>>>26)|0,rn&=67108863,x=Math.imul(xe,Nt),r=(r=Math.imul(xe,Vt))+Math.imul(Pe,Nt)|0,b=Math.imul(Pe,Vt);var Vi=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ti)|0)+Math.imul(B,jt)|0))<<13)|0;I=((b=b+Math.imul(B,ti)|0)+(r>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,x=Math.imul(q,Nt),r=(r=Math.imul(q,Vt))+Math.imul(j,Nt)|0,b=Math.imul(j,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ti)|0)+Math.imul(Pe,jt)|0,b=b+Math.imul(Pe,ti)|0;var Di=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,di)|0)+Math.imul(B,si)|0))<<13)|0;I=((b=b+Math.imul(B,di)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(Ae,Nt),r=(r=Math.imul(Ae,Vt))+Math.imul(le,Nt)|0,b=Math.imul(le,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(xe,si)|0,r=(r=r+Math.imul(xe,di)|0)+Math.imul(Pe,si)|0,b=b+Math.imul(Pe,di)|0;var Xi=(I+(x=x+Math.imul(F,Se)|0)|0)+((8191&(r=(r=r+Math.imul(F,V)|0)+Math.imul(B,Se)|0))<<13)|0;I=((b=b+Math.imul(B,V)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(yt,Nt),r=(r=Math.imul(yt,Vt))+Math.imul(Ne,Nt)|0,b=Math.imul(Ne,Vt),x=x+Math.imul(Ae,jt)|0,r=(r=r+Math.imul(Ae,ti)|0)+Math.imul(le,jt)|0,b=b+Math.imul(le,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(xe,Se)|0,r=(r=r+Math.imul(xe,V)|0)+Math.imul(Pe,Se)|0,b=b+Math.imul(Pe,V)|0;var Ke=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(B,Ee)|0))<<13)|0;I=((b=b+Math.imul(B,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ue,Nt),r=(r=Math.imul(ue,Vt))+Math.imul(Te,Nt)|0,b=Math.imul(Te,Vt),x=x+Math.imul(yt,jt)|0,r=(r=r+Math.imul(yt,ti)|0)+Math.imul(Ne,jt)|0,b=b+Math.imul(Ne,ti)|0,x=x+Math.imul(Ae,si)|0,r=(r=r+Math.imul(Ae,di)|0)+Math.imul(le,si)|0,b=b+Math.imul(le,di)|0,x=x+Math.imul(q,Se)|0,r=(r=r+Math.imul(q,V)|0)+Math.imul(j,Se)|0,b=b+Math.imul(j,V)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Pe,Ee)|0,b=b+Math.imul(Pe,et)|0;var mt=(I+(x=x+Math.imul(F,Rt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Xt)|0)+Math.imul(B,Rt)|0))<<13)|0;I=((b=b+Math.imul(B,Xt)|0)+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(Y,Nt),r=(r=Math.imul(Y,Vt))+Math.imul(X,Nt)|0,b=Math.imul(X,Vt),x=x+Math.imul(ue,jt)|0,r=(r=r+Math.imul(ue,ti)|0)+Math.imul(Te,jt)|0,b=b+Math.imul(Te,ti)|0,x=x+Math.imul(yt,si)|0,r=(r=r+Math.imul(yt,di)|0)+Math.imul(Ne,si)|0,b=b+Math.imul(Ne,di)|0,x=x+Math.imul(Ae,Se)|0,r=(r=r+Math.imul(Ae,V)|0)+Math.imul(le,Se)|0,b=b+Math.imul(le,V)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul(j,Ee)|0,b=b+Math.imul(j,et)|0,x=x+Math.imul(xe,Rt)|0,r=(r=r+Math.imul(xe,Xt)|0)+Math.imul(Pe,Rt)|0,b=b+Math.imul(Pe,Xt)|0;var be=(I+(x=x+Math.imul(F,Re)|0)|0)+((8191&(r=(r=r+Math.imul(F,Be)|0)+Math.imul(B,Re)|0))<<13)|0;I=((b=b+Math.imul(B,Be)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,x=Math.imul(Me,Nt),r=(r=Math.imul(Me,Vt))+Math.imul(ze,Nt)|0,b=Math.imul(ze,Vt),x=x+Math.imul(Y,jt)|0,r=(r=r+Math.imul(Y,ti)|0)+Math.imul(X,jt)|0,b=b+Math.imul(X,ti)|0,x=x+Math.imul(ue,si)|0,r=(r=r+Math.imul(ue,di)|0)+Math.imul(Te,si)|0,b=b+Math.imul(Te,di)|0,x=x+Math.imul(yt,Se)|0,r=(r=r+Math.imul(yt,V)|0)+Math.imul(Ne,Se)|0,b=b+Math.imul(Ne,V)|0,x=x+Math.imul(Ae,Ee)|0,r=(r=r+Math.imul(Ae,et)|0)+Math.imul(le,Ee)|0,b=b+Math.imul(le,et)|0,x=x+Math.imul(q,Rt)|0,r=(r=r+Math.imul(q,Xt)|0)+Math.imul(j,Rt)|0,b=b+Math.imul(j,Xt)|0,x=x+Math.imul(xe,Re)|0,r=(r=r+Math.imul(xe,Be)|0)+Math.imul(Pe,Re)|0,b=b+Math.imul(Pe,Be)|0;var qe=(I+(x=x+Math.imul(F,ot)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(B,ot)|0))<<13)|0;I=((b=b+Math.imul(B,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(it,Nt),r=(r=Math.imul(it,Vt))+Math.imul(ft,Nt)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Me,jt)|0,r=(r=r+Math.imul(Me,ti)|0)+Math.imul(ze,jt)|0,b=b+Math.imul(ze,ti)|0,x=x+Math.imul(Y,si)|0,r=(r=r+Math.imul(Y,di)|0)+Math.imul(X,si)|0,b=b+Math.imul(X,di)|0,x=x+Math.imul(ue,Se)|0,r=(r=r+Math.imul(ue,V)|0)+Math.imul(Te,Se)|0,b=b+Math.imul(Te,V)|0,x=x+Math.imul(yt,Ee)|0,r=(r=r+Math.imul(yt,et)|0)+Math.imul(Ne,Ee)|0,b=b+Math.imul(Ne,et)|0,x=x+Math.imul(Ae,Rt)|0,r=(r=r+Math.imul(Ae,Xt)|0)+Math.imul(le,Rt)|0,b=b+Math.imul(le,Xt)|0,x=x+Math.imul(q,Re)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul(j,Re)|0,b=b+Math.imul(j,Be)|0,x=x+Math.imul(xe,ot)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Pe,ot)|0,b=b+Math.imul(Pe,At)|0;var vt=(I+(x=x+Math.imul(F,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(F,Ft)|0)+Math.imul(B,Ut)|0))<<13)|0;I=((b=b+Math.imul(B,Ft)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,x=Math.imul(st,Nt),r=(r=Math.imul(st,Vt))+Math.imul(wt,Nt)|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(Me,si)|0,r=(r=r+Math.imul(Me,di)|0)+Math.imul(ze,si)|0,b=b+Math.imul(ze,di)|0,x=x+Math.imul(Y,Se)|0,r=(r=r+Math.imul(Y,V)|0)+Math.imul(X,Se)|0,b=b+Math.imul(X,V)|0,x=x+Math.imul(ue,Ee)|0,r=(r=r+Math.imul(ue,et)|0)+Math.imul(Te,Ee)|0,b=b+Math.imul(Te,et)|0,x=x+Math.imul(yt,Rt)|0,r=(r=r+Math.imul(yt,Xt)|0)+Math.imul(Ne,Rt)|0,b=b+Math.imul(Ne,Xt)|0,x=x+Math.imul(Ae,Re)|0,r=(r=r+Math.imul(Ae,Be)|0)+Math.imul(le,Re)|0,b=b+Math.imul(le,Be)|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(xe,Ut)|0,r=(r=r+Math.imul(xe,Ft)|0)+Math.imul(Pe,Ut)|0,b=b+Math.imul(Pe,Ft)|0;var me=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(B,ai)|0))<<13)|0;I=((b=b+Math.imul(B,ci)|0)+(r>>>13)|0)+(me>>>26)|0,me&=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(Me,Se)|0,r=(r=r+Math.imul(Me,V)|0)+Math.imul(ze,Se)|0,b=b+Math.imul(ze,V)|0,x=x+Math.imul(Y,Ee)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(X,Ee)|0,b=b+Math.imul(X,et)|0,x=x+Math.imul(ue,Rt)|0,r=(r=r+Math.imul(ue,Xt)|0)+Math.imul(Te,Rt)|0,b=b+Math.imul(Te,Xt)|0,x=x+Math.imul(yt,Re)|0,r=(r=r+Math.imul(yt,Be)|0)+Math.imul(Ne,Re)|0,b=b+Math.imul(Ne,Be)|0,x=x+Math.imul(Ae,ot)|0,r=(r=r+Math.imul(Ae,At)|0)+Math.imul(le,ot)|0,b=b+Math.imul(le,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 $e=(I+(x=x+Math.imul(xe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Pe,ai)|0))<<13)|0;I=((b=b+Math.imul(Pe,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,Se)|0,r=(r=r+Math.imul(it,V)|0)+Math.imul(ft,Se)|0,b=b+Math.imul(ft,V)|0,x=x+Math.imul(Me,Ee)|0,r=(r=r+Math.imul(Me,et)|0)+Math.imul(ze,Ee)|0,b=b+Math.imul(ze,et)|0,x=x+Math.imul(Y,Rt)|0,r=(r=r+Math.imul(Y,Xt)|0)+Math.imul(X,Rt)|0,b=b+Math.imul(X,Xt)|0,x=x+Math.imul(ue,Re)|0,r=(r=r+Math.imul(ue,Be)|0)+Math.imul(Te,Re)|0,b=b+Math.imul(Te,Be)|0,x=x+Math.imul(yt,ot)|0,r=(r=r+Math.imul(yt,At)|0)+Math.imul(Ne,ot)|0,b=b+Math.imul(Ne,At)|0,x=x+Math.imul(Ae,Ut)|0,r=(r=r+Math.imul(Ae,Ft)|0)+Math.imul(le,Ut)|0,b=b+Math.imul(le,Ft)|0;var St=(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)+(St>>>26)|0,St&=67108863,x=Math.imul(st,Se),r=(r=Math.imul(st,V))+Math.imul(wt,Se)|0,b=Math.imul(wt,V),x=x+Math.imul(it,Ee)|0,r=(r=r+Math.imul(it,et)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Me,Rt)|0,r=(r=r+Math.imul(Me,Xt)|0)+Math.imul(ze,Rt)|0,b=b+Math.imul(ze,Xt)|0,x=x+Math.imul(Y,Re)|0,r=(r=r+Math.imul(Y,Be)|0)+Math.imul(X,Re)|0,b=b+Math.imul(X,Be)|0,x=x+Math.imul(ue,ot)|0,r=(r=r+Math.imul(ue,At)|0)+Math.imul(Te,ot)|0,b=b+Math.imul(Te,At)|0,x=x+Math.imul(yt,Ut)|0,r=(r=r+Math.imul(yt,Ft)|0)+Math.imul(Ne,Ut)|0,b=b+Math.imul(Ne,Ft)|0;var Pt=(I+(x=x+Math.imul(Ae,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Ae,ci)|0)+Math.imul(le,ai)|0))<<13)|0;I=((b=b+Math.imul(le,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(st,Ee),r=(r=Math.imul(st,et))+Math.imul(wt,Ee)|0,b=Math.imul(wt,et),x=x+Math.imul(it,Rt)|0,r=(r=r+Math.imul(it,Xt)|0)+Math.imul(ft,Rt)|0,b=b+Math.imul(ft,Xt)|0,x=x+Math.imul(Me,Re)|0,r=(r=r+Math.imul(Me,Be)|0)+Math.imul(ze,Re)|0,b=b+Math.imul(ze,Be)|0,x=x+Math.imul(Y,ot)|0,r=(r=r+Math.imul(Y,At)|0)+Math.imul(X,ot)|0,b=b+Math.imul(X,At)|0,x=x+Math.imul(ue,Ut)|0,r=(r=r+Math.imul(ue,Ft)|0)+Math.imul(Te,Ut)|0,b=b+Math.imul(Te,Ft)|0;var yi=(I+(x=x+Math.imul(yt,ai)|0)|0)+((8191&(r=(r=r+Math.imul(yt,ci)|0)+Math.imul(Ne,ai)|0))<<13)|0;I=((b=b+Math.imul(Ne,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(st,Rt),r=(r=Math.imul(st,Xt))+Math.imul(wt,Rt)|0,b=Math.imul(wt,Xt),x=x+Math.imul(it,Re)|0,r=(r=r+Math.imul(it,Be)|0)+Math.imul(ft,Re)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Me,ot)|0,r=(r=r+Math.imul(Me,At)|0)+Math.imul(ze,ot)|0,b=b+Math.imul(ze,At)|0,x=x+Math.imul(Y,Ut)|0,r=(r=r+Math.imul(Y,Ft)|0)+Math.imul(X,Ut)|0,b=b+Math.imul(X,Ft)|0;var Pi=(I+(x=x+Math.imul(ue,ai)|0)|0)+((8191&(r=(r=r+Math.imul(ue,ci)|0)+Math.imul(Te,ai)|0))<<13)|0;I=((b=b+Math.imul(Te,ci)|0)+(r>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,x=Math.imul(st,Re),r=(r=Math.imul(st,Be))+Math.imul(wt,Re)|0,b=Math.imul(wt,Be),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(Me,Ut)|0,r=(r=r+Math.imul(Me,Ft)|0)+Math.imul(ze,Ut)|0,b=b+Math.imul(ze,Ft)|0;var Ii=(I+(x=x+Math.imul(Y,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ci)|0)+Math.imul(X,ai)|0))<<13)|0;I=((b=b+Math.imul(X,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(Me,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Me,ci)|0)+Math.imul(ze,ai)|0))<<13)|0;I=((b=b+Math.imul(ze,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,L[0]=rn,L[1]=Vi,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=mt,L[6]=be,L[7]=qe,L[8]=vt,L[9]=me,L[10]=$e,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Pi,L[15]=Ii,L[16]=Ki,L[17]=at,L[18]=Qt,0!==I&&(L[19]=I,p.length++),p};function G(y,i,a){return(new W).mulp(y,i,a)}function W(y,i){this.x=y,this.y=i}Math.imul||(w=D),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?D(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 L=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 B=(0|y.words[_-r])*(0|i.words[r]),te=67108863&B;I=67108863&(te=te+I|0),u+=(L=(L=L+(B/67108864|0)|0)+(te>>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):G(this,i,a),p},W.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},W.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},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I<L;I++)u[I]=a[i[I]],_[I]=p[i[I]]},W.prototype.transform=function(i,a,p,u,_,L){this.permute(L,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),J=0;J<_;J+=x)for(var F=r,B=b,te=0;te<I;te++){var xe=p[J+te],Pe=u[J+te],Fe=p[J+te+I],q=u[J+te+I],j=F*Fe-B*q;q=F*q+B*Fe,p[J+te]=xe+(Fe=j),u[J+te]=Pe+q,p[J+te+I]=xe-Fe,u[J+te+I]=Pe-q,te!==x&&(j=r*F-b*B,B=r*B+b*F,F=j)}},W.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},W.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]=-_}},W.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},W.prototype.convert13b=function(i,a,p,u){for(var _=0,L=0;L<a;L++)p[2*L]=8191&(_+=0|i[L]),p[2*L+1]=8191&(_>>>=13),_>>>=13;for(L=2*a;L<u;++L)p[L]=0;v(0===_),v(0==(-8192&_))},W.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},W.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),L=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),b=new Array(u),J=new Array(u),F=new Array(u),B=p.words;B.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,b,u),this.transform(I,L,x,r,u,_),this.transform(b,L,J,F,u,_);for(var te=0;te<u;te++){var xe=x[te]*J[te]-r[te]*F[te];r[te]=x[te]*F[te]+r[te]*J[te],x[te]=xe}return this.conjugate(x,r,u),this.transform(x,r,B,L,u,_),this.conjugate(B,L,u),this.normalize13b(B,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),G(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 L=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|L,L=I>>>26-a}L&&(this.words[_]=L,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,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;r<L;r++)x.words[r]=this.words[r];x.length=L}if(0!==L)if(this.length>L)for(this.length-=L,r=0;r<this.length;r++)this.words[r]=this.words[r+L];else this.words[0]=0,this.length=1;var b=0;for(r=this.length-1;r>=0&&(0!==b||r>=u);r--){var J=0|this.words[r];this.words[r]=b<<26-_|J>>>_,b=J&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 L,I=0;for(_=0;_<i.length;_++){L=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((L-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_<this.length-p;_++)I=(L=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_<this.length;_++)I=(L=-(0|this.words[_])+I)>>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=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 J=u.clone()._ishlnsubmul(_,1,x);0===J.negative&&(u=J,r&&(r.words[x]=1));for(var F=x-1;F>=0;F--){var B=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(B=Math.min(B/L|0,67108863),u._ishlnsubmul(_,B,F);0!==u.negative;)B--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=B)}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?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.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,_,L},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),L=p.cmp(u);return L<0||1===_&&0===L?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),L=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 J=0,F=1;0==(a.words[0]&F)&&J<26;++J,F<<=1);if(J>0)for(a.iushrn(J);J-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var B=0,te=1;0==(p.words[0]&te)&&B<26;++B,te<<=1);if(B>0)for(p.iushrn(B);B-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(b)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},s.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var J,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),L=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(L),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(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(J=0===a.cmpn(1)?u:_).cmpn(0)<0&&J.iadd(i),J},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 L=a;a=p,p=L}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,L=p;0!==_&&L<this.length;L++){var I=0|this.words[L];_=(I+=_)>>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,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 se(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 ee={k256:null,p224:null,p192:null,p25519:null};function ie(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 _e(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function fe(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function de(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ne(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(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 oe(y){se.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)}ie.prototype._tmp=function(){var i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.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},ie.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ie.prototype.imulK=function(i){return i.imul(this.k)},M(_e,ie),_e.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 L=i.words[9];for(a.words[a.length++]=L&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|L>>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.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},M(fe,ie),M(de,ie),M(ne,ie),ne.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(ee[i])return ee[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new fe;else if("p192"===i)a=new de;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new ne}return ee[i]=a,a},se.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},se.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")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.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)},se.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},se.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)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.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 L=new s(1).toRed(this),I=L.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),J=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),B=_;0!==F.cmp(L);){for(var te=F,xe=0;0!==te.cmp(L);xe++)te=te.redSqr();v(xe<B);var Pe=this.pow(b,new s(1).iushln(B-xe-1));J=J.redMul(Pe),b=Pe.redSqr(),F=F.redMul(b),B=xe}return J},se.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},se.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 L=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var b=a.words[_],J=r-1;J>=0;J--){var F=b>>J&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===J)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new oe(i)},M(oe,se),oe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},oe.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},oe.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),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},oe.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),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},oe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ue=m.nmd(Ue),this)},8419:Ue=>{"use strict";Ue.exports=function(m){for(var e=[],t=m.length,v=0;v<t;v++){var M=m.charCodeAt(v);if(M>=55296&&M<=56319&&t>v+1){var s=m.charCodeAt(v+1);s>=56320&&s<=57343&&(M=1024*(M-55296)+s-56320+65536,v+=1)}M<128?e.push(M):M<2048?(e.push(M>>6|192),e.push(63&M|128)):M<55296||M>=57344&&M<65536?(e.push(M>>12|224),e.push(M>>6&63|128),e.push(63&M|128)):M>=65536&&M<=1114111?(e.push(M>>18|240),e.push(M>>12&63|128),e.push(M>>6&63|128),e.push(63&M|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},9069:Ue=>{"use strict";var e,K="object"==typeof Reflect?Reflect:null,m=K&&"function"==typeof K.apply?K.apply:function(ie,_e,fe){return Function.prototype.apply.call(ie,_e,fe)};e=K&&"function"==typeof K.ownKeys?K.ownKeys:Object.getOwnPropertySymbols?function(ie){return Object.getOwnPropertyNames(ie).concat(Object.getOwnPropertySymbols(ie))}:function(ie){return Object.getOwnPropertyNames(ie)};var v=Number.isNaN||function(ie){return ie!=ie};function M(){M.init.call(this)}Ue.exports=M,Ue.exports.once=function(ee,ie){return new Promise(function(_e,fe){function de(se){ee.removeListener(ie,ne),fe(se)}function ne(){"function"==typeof ee.removeListener&&ee.removeListener("error",de),_e([].slice.call(arguments))}W(ee,ie,ne,{once:!0}),"error"!==ie&&function(ee,ie,_e){"function"==typeof ee.on&&W(ee,"error",ie,{once:!0})}(ee,de)})},M.EventEmitter=M,M.prototype._events=void 0,M.prototype._eventsCount=0,M.prototype._maxListeners=void 0;var s=10;function C(ee){if("function"!=typeof ee)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ee)}function c(ee){return void 0===ee._maxListeners?M.defaultMaxListeners:ee._maxListeners}function R(ee,ie,_e,fe){var de,ne,se;if(C(_e),void 0===(ne=ee._events)?(ne=ee._events=Object.create(null),ee._eventsCount=0):(void 0!==ne.newListener&&(ee.emit("newListener",ie,_e.listener?_e.listener:_e),ne=ee._events),se=ne[ie]),void 0===se)se=ne[ie]=_e,++ee._eventsCount;else if("function"==typeof se?se=ne[ie]=fe?[_e,se]:[se,_e]:fe?se.unshift(_e):se.push(_e),(de=c(ee))>0&&se.length>de&&!se.warned){se.warned=!0;var oe=new Error("Possible EventEmitter memory leak detected. "+se.length+" "+String(ie)+" listeners added. Use emitter.setMaxListeners() to increase limit");oe.name="MaxListenersExceededWarning",oe.emitter=ee,oe.type=ie,oe.count=se.length,function(ee){console&&console.warn&&console.warn(ee)}(oe)}return ee}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 O(ee,ie,_e){var fe={fired:!1,wrapFn:void 0,target:ee,type:ie,listener:_e},de=o.bind(fe);return de.listener=_e,fe.wrapFn=de,de}function T(ee,ie,_e){var fe=ee._events;if(void 0===fe)return[];var de=fe[ie];return void 0===de?[]:"function"==typeof de?_e?[de.listener||de]:[de]:_e?function(ee){for(var ie=new Array(ee.length),_e=0;_e<ie.length;++_e)ie[_e]=ee[_e].listener||ee[_e];return ie}(de):S(de,de.length)}function P(ee){var ie=this._events;if(void 0!==ie){var _e=ie[ee];if("function"==typeof _e)return 1;if(void 0!==_e)return _e.length}return 0}function S(ee,ie){for(var _e=new Array(ie),fe=0;fe<ie;++fe)_e[fe]=ee[fe];return _e}function W(ee,ie,_e,fe){if("function"==typeof ee.on)fe.once?ee.once(ie,_e):ee.on(ie,_e);else{if("function"!=typeof ee.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ee);ee.addEventListener(ie,function de(ne){fe.once&&ee.removeEventListener(ie,de),_e(ne)})}}Object.defineProperty(M,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(ee){if("number"!=typeof ee||ee<0||v(ee))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ee+".");s=ee}}),M.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},M.prototype.setMaxListeners=function(ie){if("number"!=typeof ie||ie<0||v(ie))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ie+".");return this._maxListeners=ie,this},M.prototype.getMaxListeners=function(){return c(this)},M.prototype.emit=function(ie){for(var _e=[],fe=1;fe<arguments.length;fe++)_e.push(arguments[fe]);var de="error"===ie,ne=this._events;if(void 0!==ne)de=de&&void 0===ne.error;else if(!de)return!1;if(de){var se;if(_e.length>0&&(se=_e[0]),se instanceof Error)throw se;var oe=new Error("Unhandled error."+(se?" ("+se.message+")":""));throw oe.context=se,oe}var y=ne[ie];if(void 0===y)return!1;if("function"==typeof y)m(y,this,_e);else{var i=y.length,a=S(y,i);for(fe=0;fe<i;++fe)m(a[fe],this,_e)}return!0},M.prototype.on=M.prototype.addListener=function(ie,_e){return R(this,ie,_e,!1)},M.prototype.prependListener=function(ie,_e){return R(this,ie,_e,!0)},M.prototype.once=function(ie,_e){return C(_e),this.on(ie,O(this,ie,_e)),this},M.prototype.prependOnceListener=function(ie,_e){return C(_e),this.prependListener(ie,O(this,ie,_e)),this},M.prototype.off=M.prototype.removeListener=function(ie,_e){var fe,de,ne,se,oe;if(C(_e),void 0===(de=this._events))return this;if(void 0===(fe=de[ie]))return this;if(fe===_e||fe.listener===_e)0==--this._eventsCount?this._events=Object.create(null):(delete de[ie],de.removeListener&&this.emit("removeListener",ie,fe.listener||_e));else if("function"!=typeof fe){for(ne=-1,se=fe.length-1;se>=0;se--)if(fe[se]===_e||fe[se].listener===_e){oe=fe[se].listener,ne=se;break}if(ne<0)return this;0===ne?fe.shift():function(ee,ie){for(;ie+1<ee.length;ie++)ee[ie]=ee[ie+1];ee.pop()}(fe,ne),1===fe.length&&(de[ie]=fe[0]),void 0!==de.removeListener&&this.emit("removeListener",ie,oe||_e)}return this},M.prototype.removeAllListeners=function(ie){var _e,fe,de;if(void 0===(fe=this._events))return this;if(void 0===fe.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==fe[ie]&&(0==--this._eventsCount?this._events=Object.create(null):delete fe[ie]),this;if(0===arguments.length){var se,ne=Object.keys(fe);for(de=0;de<ne.length;++de)"removeListener"!==(se=ne[de])&&this.removeAllListeners(se);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(_e=fe[ie]))this.removeListener(ie,_e);else if(void 0!==_e)for(de=_e.length-1;de>=0;de--)this.removeListener(ie,_e[de]);return this},M.prototype.listeners=function(ie){return T(this,ie,!0)},M.prototype.rawListeners=function(ie){return T(this,ie,!1)},M.listenerCount=function(ee,ie){return"function"==typeof ee.listenerCount?ee.listenerCount(ie):P.call(ee,ie)},M.prototype.listenerCount=P,M.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},347:(Ue,K,m)=>{var e=m(3502).Buffer,t=m(8095);Ue.exports=function(M,s,C,c){if(e.isBuffer(M)||(M=e.from(M,"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 R=C/8,o=e.alloc(R),O=e.alloc(c||0),T=e.alloc(0);R>0||c>0;){var P=new t;P.update(T),P.update(M),s&&P.update(s),T=P.digest();var S=0;if(R>0){var D=o.length-R;S=Math.min(R,T.length),T.copy(o,D,0,S),R-=S}if(S<T.length&&c>0){var w=O.length-c,U=Math.min(c,T.length-S);T.copy(O,w,S,S+U),c-=U}}return T.fill(0),{key:o,iv:O}}},9650:(Ue,K,m)=>{"use strict";var e=m(8444).Buffer,t=m(5685).Transform;function s(C){t.call(this),this._block=e.allocUnsafe(C),this._blockSize=C,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}m(3894)(s,t),s.prototype._transform=function(C,c,R){var o=null;try{this.update(C,c)}catch(O){o=O}R(o)},s.prototype._flush=function(C){var c=null;try{this.push(this.digest())}catch(R){c=R}C(c)},s.prototype.update=function(C,c){if(function(C,c){if(!e.isBuffer(C)&&"string"!=typeof C)throw new TypeError("Data must be a string or a buffer")}(C),this._finalized)throw new Error("Digest already called");e.isBuffer(C)||(C=e.from(C,c));for(var R=this._block,o=0;this._blockOffset+C.length-o>=this._blockSize;){for(var O=this._blockOffset;O<this._blockSize;)R[O++]=C[o++];this._update(),this._blockOffset=0}for(;o<C.length;)R[this._blockOffset++]=C[o++];for(var T=0,P=8*C.length;P>0;++T)this._length[T]+=P,(P=this._length[T]/4294967296|0)>0&&(this._length[T]-=4294967296*P);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(C){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var c=this._digest();void 0!==C&&(c=c.toString(C)),this._block.fill(0),this._blockOffset=0;for(var R=0;R<4;++R)this._length[R]=0;return c},s.prototype._digest=function(){throw new Error("_digest is not implemented")},Ue.exports=s},8444:(Ue,K,m)=>{var e=m(3172),t=e.Buffer;function v(s,C){for(var c in s)C[c]=s[c]}function M(s,C,c){return t(s,C,c)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ue.exports=e:(v(e,K),K.Buffer=M),M.prototype=Object.create(t.prototype),v(t,M),M.from=function(s,C,c){if("number"==typeof s)throw new TypeError("Argument must not be a number");return t(s,C,c)},M.alloc=function(s,C,c){if("number"!=typeof s)throw new TypeError("Argument must be a number");var R=t(s);return void 0!==C?"string"==typeof c?R.fill(C,c):R.fill(C):R.fill(0),R},M.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t(s)},M.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e.SlowBuffer(s)}},7084:(Ue,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:(Ue,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,C){if(s=e.toArray(s,C),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 R=0;R<s.length;R+=this._delta32)this._update(s,R,R+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,C=this._delta8,c=C-(s+this.padLength)%C,R=new Array(c+this.padLength);R[0]=128;for(var o=1;o<c;o++)R[o]=0;if(s<<=3,"big"===this.endian){for(var O=8;O<this.padLength;O++)R[o++]=0;R[o++]=0,R[o++]=0,R[o++]=0,R[o++]=0,R[o++]=s>>>24&255,R[o++]=s>>>16&255,R[o++]=s>>>8&255,R[o++]=255&s}else for(R[o++]=255&s,R[o++]=s>>>8&255,R[o++]=s>>>16&255,R[o++]=s>>>24&255,R[o++]=0,R[o++]=0,R[o++]=0,R[o++]=0,O=8;O<this.padLength;O++)R[o++]=0;return R}},2194:(Ue,K,m)=>{"use strict";var e=m(9299),t=m(2391);function v(M,s,C){if(!(this instanceof v))return new v(M,s,C);this.Hash=M,this.blockSize=M.blockSize/8,this.outSize=M.outSize/8,this.inner=null,this.outer=null,this._init(e.toArray(s,C))}Ue.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 C=s.length;C<this.blockSize;C++)s.push(0);for(C=0;C<s.length;C++)s[C]^=54;for(this.inner=(new this.Hash).update(s),C=0;C<s.length;C++)s[C]^=106;this.outer=(new this.Hash).update(s)},v.prototype.update=function(s,C){return this.inner.update(s,C),this},v.prototype.digest=function(s){return this.outer.update(this.inner.digest()),this.outer.digest(s)}},9458:(Ue,K,m)=>{"use strict";var e=m(9299),t=m(3800),v=e.rotl32,M=e.sum32,s=e.sum32_3,C=e.sum32_4,c=t.BlockHash;function R(){if(!(this instanceof R))return new R;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function o(U,G,W,ee){return U<=15?G^W^ee:U<=31?G&W|~G&ee:U<=47?(G|~W)^ee:U<=63?G&ee|W&~ee:G^(W|~ee)}function T(U){return U<=15?1352829926:U<=31?1548603684:U<=47?1836072691:U<=63?2053994217:0}e.inherits(R,c),K.ripemd160=R,R.blockSize=512,R.outSize=160,R.hmacStrength=192,R.padLength=64,R.prototype._update=function(G,W){for(var ee=this.h[0],ie=this.h[1],_e=this.h[2],fe=this.h[3],de=this.h[4],ne=ee,se=ie,oe=_e,y=fe,i=de,a=0;a<80;a++){var p=M(v(C(ee,o(a,ie,_e,fe),G[P[a]+W],(U=a)<=15?0:U<=31?1518500249:U<=47?1859775393:U<=63?2400959708:2840853838),D[a]),de);ee=de,de=fe,fe=v(_e,10),_e=ie,ie=p,p=M(v(C(ne,o(79-a,se,oe,y),G[S[a]+W],T(a)),w[a]),i),ne=i,i=y,y=v(oe,10),oe=se,se=p}var U;p=s(this.h[1],_e,y),this.h[1]=s(this.h[2],fe,i),this.h[2]=s(this.h[3],de,ne),this.h[3]=s(this.h[4],ee,se),this.h[4]=s(this.h[0],ie,oe),this.h[0]=p},R.prototype._digest=function(G){return"hex"===G?e.toHex32(this.h,"little"):e.split32(this.h,"little")};var P=[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],S=[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],D=[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:(Ue,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:(Ue,K,m)=>{"use strict";var e=m(9299),t=m(3800),v=m(3113),M=e.rotl32,s=e.sum32,C=e.sum32_5,c=v.ft_1,R=t.BlockHash,o=[1518500249,1859775393,2400959708,3395469782];function O(){if(!(this instanceof O))return new O;R.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}e.inherits(O,R),Ue.exports=O,O.blockSize=512,O.outSize=160,O.hmacStrength=80,O.padLength=64,O.prototype._update=function(P,S){for(var D=this.W,w=0;w<16;w++)D[w]=P[S+w];for(;w<D.length;w++)D[w]=M(D[w-3]^D[w-8]^D[w-14]^D[w-16],1);var U=this.h[0],G=this.h[1],W=this.h[2],ee=this.h[3],ie=this.h[4];for(w=0;w<D.length;w++){var _e=~~(w/20),fe=C(M(U,5),c(_e,G,W,ee),ie,D[w],o[_e]);ie=ee,ee=W,W=M(G,30),G=U,U=fe}this.h[0]=s(this.h[0],U),this.h[1]=s(this.h[1],G),this.h[2]=s(this.h[2],W),this.h[3]=s(this.h[3],ee),this.h[4]=s(this.h[4],ie)},O.prototype._digest=function(P){return"hex"===P?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},55:(Ue,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),Ue.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:(Ue,K,m)=>{"use strict";var e=m(9299),t=m(3800),v=m(3113),M=m(2391),s=e.sum32,C=e.sum32_4,c=e.sum32_5,R=v.ch32,o=v.maj32,O=v.s0_256,T=v.s1_256,P=v.g0_256,S=v.g1_256,D=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 U(){if(!(this instanceof U))return new U;D.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}e.inherits(U,D),Ue.exports=U,U.blockSize=512,U.outSize=256,U.hmacStrength=192,U.padLength=64,U.prototype._update=function(W,ee){for(var ie=this.W,_e=0;_e<16;_e++)ie[_e]=W[ee+_e];for(;_e<ie.length;_e++)ie[_e]=C(S(ie[_e-2]),ie[_e-7],P(ie[_e-15]),ie[_e-16]);var fe=this.h[0],de=this.h[1],ne=this.h[2],se=this.h[3],oe=this.h[4],y=this.h[5],i=this.h[6],a=this.h[7];for(M(this.k.length===ie.length),_e=0;_e<ie.length;_e++){var p=c(a,T(oe),R(oe,y,i),this.k[_e],ie[_e]),u=s(O(fe),o(fe,de,ne));a=i,i=y,y=oe,oe=s(se,p),se=ne,ne=de,de=fe,fe=s(p,u)}this.h[0]=s(this.h[0],fe),this.h[1]=s(this.h[1],de),this.h[2]=s(this.h[2],ne),this.h[3]=s(this.h[3],se),this.h[4]=s(this.h[4],oe),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],i),this.h[7]=s(this.h[7],a)},U.prototype._digest=function(W){return"hex"===W?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},8634:(Ue,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),Ue.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:(Ue,K,m)=>{"use strict";var e=m(9299),t=m(3800),v=m(2391),M=e.rotr64_hi,s=e.rotr64_lo,C=e.shr64_hi,c=e.shr64_lo,R=e.sum64,o=e.sum64_hi,O=e.sum64_lo,T=e.sum64_4_hi,P=e.sum64_4_lo,S=e.sum64_5_hi,D=e.sum64_5_lo,w=t.BlockHash,U=[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 G(){if(!(this instanceof G))return new G;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=U,this.W=new Array(160)}function W(p,u,_,L,I){var x=p&_^~p&I;return x<0&&(x+=4294967296),x}function ee(p,u,_,L,I,x){var r=u&L^~u&x;return r<0&&(r+=4294967296),r}function ie(p,u,_,L,I){var x=p&_^p&I^_&I;return x<0&&(x+=4294967296),x}function _e(p,u,_,L,I,x){var r=u&L^u&x^L&x;return r<0&&(r+=4294967296),r}function fe(p,u){var x=M(p,u,28)^M(u,p,2)^M(u,p,7);return x<0&&(x+=4294967296),x}function de(p,u){var x=s(p,u,28)^s(u,p,2)^s(u,p,7);return x<0&&(x+=4294967296),x}function ne(p,u){var x=M(p,u,14)^M(p,u,18)^M(u,p,9);return x<0&&(x+=4294967296),x}function se(p,u){var x=s(p,u,14)^s(p,u,18)^s(u,p,9);return x<0&&(x+=4294967296),x}function oe(p,u){var x=M(p,u,1)^M(p,u,8)^C(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=M(p,u,19)^M(u,p,29)^C(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(G,w),Ue.exports=G,G.blockSize=1024,G.outSize=512,G.hmacStrength=192,G.padLength=128,G.prototype._prepareBlock=function(u,_){for(var L=this.W,I=0;I<32;I++)L[I]=u[_+I];for(;I<L.length;I+=2){var x=i(L[I-4],L[I-3]),r=a(L[I-4],L[I-3]),b=L[I-14],J=L[I-13],F=oe(L[I-30],L[I-29]),B=y(L[I-30],L[I-29]),te=L[I-32],xe=L[I-31];L[I]=T(x,r,b,J,F,B,te,xe),L[I+1]=P(x,r,b,J,F,B,te,xe)}},G.prototype._update=function(u,_){this._prepareBlock(u,_);var L=this.W,I=this.h[0],x=this.h[1],r=this.h[2],b=this.h[3],J=this.h[4],F=this.h[5],B=this.h[6],te=this.h[7],xe=this.h[8],Pe=this.h[9],Fe=this.h[10],q=this.h[11],j=this.h[12],we=this.h[13],Ae=this.h[14],le=this.h[15];v(this.k.length===L.length);for(var We=0;We<L.length;We+=2){var yt=Ae,Ne=le,Ve=ne(xe,Pe),ue=se(xe,Pe),Te=W(xe,0,Fe,0,j),ke=ee(0,Pe,0,q,0,we),Y=this.k[We],X=this.k[We+1],he=L[We],Me=L[We+1],ze=S(yt,Ne,Ve,ue,Te,ke,Y,X,he,Me),ht=D(yt,Ne,Ve,ue,Te,ke,Y,X,he,Me);yt=fe(I,x),Ne=de(I,x),Ve=ie(I,0,r,0,J),ue=_e(0,x,0,b,0,F);var it=o(yt,Ne,Ve,ue),ft=O(yt,Ne,Ve,ue);Ae=j,le=we,j=Fe,we=q,Fe=xe,q=Pe,xe=o(B,te,ze,ht),Pe=O(te,te,ze,ht),B=J,te=F,J=r,F=b,r=I,b=x,I=o(ze,ht,it,ft),x=O(ze,ht,it,ft)}R(this.h,0,I,x),R(this.h,2,r,b),R(this.h,4,J,F),R(this.h,6,B,te),R(this.h,8,xe,Pe),R(this.h,10,Fe,q),R(this.h,12,j,we),R(this.h,14,Ae,le)},G.prototype._digest=function(u){return"hex"===u?e.toHex32(this.h,"big"):e.split32(this.h,"big")}},3113:(Ue,K,m)=>{"use strict";var t=m(9299).rotr32;function M(T,P,S){return T&P^~T&S}function s(T,P,S){return T&P^T&S^P&S}function C(T,P,S){return T^P^S}K.ft_1=function(T,P,S,D){return 0===T?M(P,S,D):1===T||3===T?C(P,S,D):2===T?s(P,S,D):void 0},K.ch32=M,K.maj32=s,K.p32=C,K.s0_256=function(T){return t(T,2)^t(T,13)^t(T,22)},K.s1_256=function(T){return t(T,6)^t(T,11)^t(T,25)},K.g0_256=function(T){return t(T,7)^t(T,18)^T>>>3},K.g1_256=function(T){return t(T,17)^t(T,19)^T>>>10}},9299:(Ue,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 C(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(255&a)<<24)>>>0}function R(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),L=0;L<a.length;L+=2)u.push(parseInt(a[L]+a[L+1],16))}else for(var _=0,L=0;L<a.length;L++){var I=a.charCodeAt(L);I<128?u[_++]=I:I<2048?(u[_++]=I>>6|192,u[_++]=63&I|128):v(a,L)?(I=65536+((1023&I)<<10)+(1023&a.charCodeAt(++L)),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(L=0;L<a.length;L++)u[L]=0|a[L];return u},K.toHex=function(a){for(var p="",u=0;u<a.length;u++)p+=R(a[u].toString(16));return p},K.htonl=C,K.toHex32=function(a,p){for(var u="",_=0;_<a.length;_++){var L=a[_];"little"===p&&(L=C(L)),u+=o(L.toString(16))}return u},K.zero2=R,K.zero8=o,K.join32=function(a,p,u,_){var L=u-p;e(L%4==0);for(var I=new Array(L/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,L=0;_<a.length;_++,L+=4){var I=a[_];"big"===p?(u[L]=I>>>24,u[L+1]=I>>>16&255,u[L+2]=I>>>8&255,u[L+3]=255&I):(u[L+3]=I>>>24,u[L+2]=I>>>16&255,u[L+1]=I>>>8&255,u[L]=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,_,L){return a+p+u+_+L>>>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,_,L,I,x,r){var b=0,J=p;return b+=(J=J+_>>>0)<p?1:0,b+=(J=J+I>>>0)<I?1:0,a+u+L+x+(b+=(J=J+r>>>0)<r?1:0)>>>0},K.sum64_4_lo=function(a,p,u,_,L,I,x,r){return p+_+I+r>>>0},K.sum64_5_hi=function(a,p,u,_,L,I,x,r,b,J){var F=0,B=p;return F+=(B=B+_>>>0)<p?1:0,F+=(B=B+I>>>0)<I?1:0,F+=(B=B+r>>>0)<r?1:0,a+u+L+x+b+(F+=(B=B+J>>>0)<J?1:0)>>>0},K.sum64_5_lo=function(a,p,u,_,L,I,x,r,b,J){return p+_+I+r+J>>>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:(Ue,K,m)=>{"use strict";var e=m(7084),t=m(8195),v=m(2391);function M(s){if(!(this instanceof M))return new M(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 C=t.toArray(s.entropy,s.entropyEnc||"hex"),c=t.toArray(s.nonce,s.nonceEnc||"hex"),R=t.toArray(s.pers,s.persEnc||"hex");v(C.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(C,c,R)}Ue.exports=M,M.prototype._init=function(C,c,R){var o=C.concat(c).concat(R);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var O=0;O<this.V.length;O++)this.K[O]=0,this.V[O]=1;this._update(o),this._reseed=1,this.reseedInterval=281474976710656},M.prototype._hmac=function(){return new e.hmac(this.hash,this.K)},M.prototype._update=function(C){var c=this._hmac().update(this.V).update([0]);C&&(c=c.update(C)),this.K=c.digest(),this.V=this._hmac().update(this.V).digest(),C&&(this.K=this._hmac().update(this.V).update([1]).update(C).digest(),this.V=this._hmac().update(this.V).digest())},M.prototype.reseed=function(C,c,R,o){"string"!=typeof c&&(o=R,R=c,c=null),C=t.toArray(C,c),R=t.toArray(R,o),v(C.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(C.concat(R||[])),this._reseed=1},M.prototype.generate=function(C,c,R,o){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof c&&(o=R,R=c,c=null),R&&(R=t.toArray(R,o||"hex"),this._update(R));for(var O=[];O.length<C;)this.V=this._hmac().update(this.V).digest(),O=O.concat(this.V);var T=O.slice(0,C);return this._update(R),this._reseed++,t.encode(T,c)}},8461:(Ue,K)=>{K.read=function(m,e,t,v,M){var s,C,c=8*M-v-1,R=(1<<c)-1,o=R>>1,O=-7,T=t?M-1:0,P=t?-1:1,S=m[e+T];for(T+=P,s=S&(1<<-O)-1,S>>=-O,O+=c;O>0;s=256*s+m[e+T],T+=P,O-=8);for(C=s&(1<<-O)-1,s>>=-O,O+=v;O>0;C=256*C+m[e+T],T+=P,O-=8);if(0===s)s=1-o;else{if(s===R)return C?NaN:1/0*(S?-1:1);C+=Math.pow(2,v),s-=o}return(S?-1:1)*C*Math.pow(2,s-v)},K.write=function(m,e,t,v,M,s){var C,c,R,o=8*s-M-1,O=(1<<o)-1,T=O>>1,P=23===M?Math.pow(2,-24)-Math.pow(2,-77):0,S=v?0:s-1,D=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,C=O):(C=Math.floor(Math.log(e)/Math.LN2),e*(R=Math.pow(2,-C))<1&&(C--,R*=2),(e+=C+T>=1?P/R:P*Math.pow(2,1-T))*R>=2&&(C++,R/=2),C+T>=O?(c=0,C=O):C+T>=1?(c=(e*R-1)*Math.pow(2,M),C+=T):(c=e*Math.pow(2,T-1)*Math.pow(2,M),C=0));M>=8;m[t+S]=255&c,S+=D,c/=256,M-=8);for(C=C<<M|c,o+=M;o>0;m[t+S]=255&C,S+=D,C/=256,o-=8);m[t+S-D]|=128*w}},3894:Ue=>{Ue.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:(Ue,K,m)=>{"use strict";var e=m(623);function t(v){return!0===e(v)&&"[object Object]"===Object.prototype.toString.call(v)}Ue.exports=function(M){var s,C;return!(!1===t(M)||(s=M.constructor,"function"!=typeof s)||(C=s.prototype,!1===t(C))||!1===C.hasOwnProperty("isPrototypeOf"))}},623:Ue=>{"use strict";Ue.exports=function(m){return null!=m&&"object"==typeof m&&!1===Array.isArray(m)}},2872:Ue=>{var K=Object.prototype.toString;function m(o){return"function"==typeof o.constructor?o.constructor.name:null}Ue.exports=function(O){if(void 0===O)return"undefined";if(null===O)return"null";var T=typeof O;if("boolean"===T)return"boolean";if("string"===T)return"string";if("number"===T)return"number";if("symbol"===T)return"symbol";if("function"===T)return"GeneratorFunction"===m(O)?"generatorfunction":"function";if(function(o){return Array.isArray?Array.isArray(o):o instanceof Array}(O))return"array";if(function(o){return!(!o.constructor||"function"!=typeof o.constructor.isBuffer)&&o.constructor.isBuffer(o)}(O))return"buffer";if(function(o){try{if("number"==typeof o.length&&"function"==typeof o.callee)return!0}catch(O){if(-1!==O.message.indexOf("callee"))return!0}return!1}(O))return"arguments";if(function(o){return o instanceof Date||"function"==typeof o.toDateString&&"function"==typeof o.getDate&&"function"==typeof o.setDate}(O))return"date";if(function(o){return o instanceof Error||"string"==typeof o.message&&o.constructor&&"number"==typeof o.constructor.stackTraceLimit}(O))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}(O))return"regexp";switch(m(O)){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}(O))return"generator";switch(T=K.call(O)){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 T.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(Ue,K,m)=>{"use strict";var e=m(3894),t=m(9650),v=m(3502).Buffer,M=new Array(16);function s(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function C(T,P){return T<<P|T>>>32-P}function c(T,P,S,D,w,U,G){return C(T+(P&S|~P&D)+w+U|0,G)+P|0}function R(T,P,S,D,w,U,G){return C(T+(P&D|S&~D)+w+U|0,G)+P|0}function o(T,P,S,D,w,U,G){return C(T+(P^S^D)+w+U|0,G)+P|0}function O(T,P,S,D,w,U,G){return C(T+(S^(P|~D))+w+U|0,G)+P|0}e(s,t),s.prototype._update=function(){for(var T=M,P=0;P<16;++P)T[P]=this._block.readInt32LE(4*P);var S=this._a,D=this._b,w=this._c,U=this._d;S=c(S,D,w,U,T[0],3614090360,7),U=c(U,S,D,w,T[1],3905402710,12),w=c(w,U,S,D,T[2],606105819,17),D=c(D,w,U,S,T[3],3250441966,22),S=c(S,D,w,U,T[4],4118548399,7),U=c(U,S,D,w,T[5],1200080426,12),w=c(w,U,S,D,T[6],2821735955,17),D=c(D,w,U,S,T[7],4249261313,22),S=c(S,D,w,U,T[8],1770035416,7),U=c(U,S,D,w,T[9],2336552879,12),w=c(w,U,S,D,T[10],4294925233,17),D=c(D,w,U,S,T[11],2304563134,22),S=c(S,D,w,U,T[12],1804603682,7),U=c(U,S,D,w,T[13],4254626195,12),w=c(w,U,S,D,T[14],2792965006,17),S=R(S,D=c(D,w,U,S,T[15],1236535329,22),w,U,T[1],4129170786,5),U=R(U,S,D,w,T[6],3225465664,9),w=R(w,U,S,D,T[11],643717713,14),D=R(D,w,U,S,T[0],3921069994,20),S=R(S,D,w,U,T[5],3593408605,5),U=R(U,S,D,w,T[10],38016083,9),w=R(w,U,S,D,T[15],3634488961,14),D=R(D,w,U,S,T[4],3889429448,20),S=R(S,D,w,U,T[9],568446438,5),U=R(U,S,D,w,T[14],3275163606,9),w=R(w,U,S,D,T[3],4107603335,14),D=R(D,w,U,S,T[8],1163531501,20),S=R(S,D,w,U,T[13],2850285829,5),U=R(U,S,D,w,T[2],4243563512,9),w=R(w,U,S,D,T[7],1735328473,14),S=o(S,D=R(D,w,U,S,T[12],2368359562,20),w,U,T[5],4294588738,4),U=o(U,S,D,w,T[8],2272392833,11),w=o(w,U,S,D,T[11],1839030562,16),D=o(D,w,U,S,T[14],4259657740,23),S=o(S,D,w,U,T[1],2763975236,4),U=o(U,S,D,w,T[4],1272893353,11),w=o(w,U,S,D,T[7],4139469664,16),D=o(D,w,U,S,T[10],3200236656,23),S=o(S,D,w,U,T[13],681279174,4),U=o(U,S,D,w,T[0],3936430074,11),w=o(w,U,S,D,T[3],3572445317,16),D=o(D,w,U,S,T[6],76029189,23),S=o(S,D,w,U,T[9],3654602809,4),U=o(U,S,D,w,T[12],3873151461,11),w=o(w,U,S,D,T[15],530742520,16),S=O(S,D=o(D,w,U,S,T[2],3299628645,23),w,U,T[0],4096336452,6),U=O(U,S,D,w,T[7],1126891415,10),w=O(w,U,S,D,T[14],2878612391,15),D=O(D,w,U,S,T[5],4237533241,21),S=O(S,D,w,U,T[12],1700485571,6),U=O(U,S,D,w,T[3],2399980690,10),w=O(w,U,S,D,T[10],4293915773,15),D=O(D,w,U,S,T[1],2240044497,21),S=O(S,D,w,U,T[8],1873313359,6),U=O(U,S,D,w,T[15],4264355552,10),w=O(w,U,S,D,T[6],2734768916,15),D=O(D,w,U,S,T[13],1309151649,21),S=O(S,D,w,U,T[4],4149444226,6),U=O(U,S,D,w,T[11],3174756917,10),w=O(w,U,S,D,T[2],718787259,15),D=O(D,w,U,S,T[9],3951481745,21),this._a=this._a+S|0,this._b=this._b+D|0,this._c=this._c+w|0,this._d=this._d+U|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 T=v.allocUnsafe(16);return T.writeInt32LE(this._a,0),T.writeInt32LE(this._b,4),T.writeInt32LE(this._c,8),T.writeInt32LE(this._d,12),T},Ue.exports=s},7079:(Ue,K,m)=>{var e=m(1378),t=m(7950);function v(M){this.rand=M||new t.Rand}Ue.exports=v,v.create=function(s){return new v(s)},v.prototype._randbelow=function(s){var C=s.bitLength(),c=Math.ceil(C/8);do{var R=new e(this.rand.generate(c))}while(R.cmp(s)>=0);return R},v.prototype._randrange=function(s,C){var c=C.sub(s);return s.add(this._randbelow(c))},v.prototype.test=function(s,C,c){var R=s.bitLength(),o=e.mont(s),O=new e(1).toRed(o);C||(C=Math.max(1,R/48|0));for(var T=s.subn(1),P=0;!T.testn(P);P++);for(var S=s.shrn(P),D=T.toRed(o);C>0;C--){var U=this._randrange(new e(2),T);c&&c(U);var G=U.toRed(o).redPow(S);if(0!==G.cmp(O)&&0!==G.cmp(D)){for(var W=1;W<P;W++){if(0===(G=G.redSqr()).cmp(O))return!1;if(0===G.cmp(D))break}if(W===P)return!1}}return!0},v.prototype.getDivisor=function(s,C){var c=s.bitLength(),R=e.mont(s),o=new e(1).toRed(R);C||(C=Math.max(1,c/48|0));for(var O=s.subn(1),T=0;!O.testn(T);T++);for(var P=s.shrn(T),S=O.toRed(R);C>0;C--){var D=this._randrange(new e(2),O),w=s.gcd(D);if(0!==w.cmpn(1))return w;var U=D.toRed(R).redPow(P);if(0!==U.cmp(o)&&0!==U.cmp(S)){for(var G=1;G<T;G++){if(0===(U=U.redSqr()).cmp(o))return U.fromRed().subn(1).gcd(s);if(0===U.cmp(S))break}if(G===T)return(U=U.redSqr()).fromRed().subn(1).gcd(s)}}return!1}},1378:function(Ue,K,m){!function(e,t){"use strict";function v(y,i){if(!y)throw new Error(i||"Assertion failed")}function M(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 C;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{C="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 R(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),L=i;L<_;L++){var I=y.charCodeAt(L)-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 _,L,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(L=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=L>>>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,L=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=R(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=R(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=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 L=i.length-p,I=L%u,x=Math.min(L,L-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 J=1;for(r=o(i,b,i.length,a),b=0;b<I;b++)J*=a;this.imuln(J),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 O=["","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"],T=[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],P=[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 D(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],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r<p;r++){for(var b=x>>>26,J=67108863&x,F=Math.min(r,i.length-1),B=Math.max(0,r-y.length+1);B<=F;B++)b+=(L=(u=0|y.words[r-B|0])*(_=0|i.words[B])+J)/67108864|0,J=67108863&L;a.words[r]=0|J,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,L=0;L<this.length;L++){var I=this.words[L],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||L!==this.length-1?O[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}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=T[i],b=P[i];p="";var J=this.clone();for(J.negative=0;!J.isZero();){var F=J.modn(b).toString(i);p=(J=J.idivn(b)).isZero()?F+p:O[r-F.length]+F+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!==C),this.toArrayLike(C,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,L="le"===a,I=new i(_),b=this.clone();if(L){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,L=0;L<u.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+(0|u.words[L])+_),_=a>>>26;for(;0!==_&&L<p.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;L<p.length;L++)this.words[L]=p.words[L];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 L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I<u.length;I++)L=(a=(0|u.words[I])+L)>>26,this.words[I]=67108863&a;if(0===L&&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,L=p.words,I=0,J=0|u[0],F=8191&J,B=J>>>13,te=0|u[1],xe=8191&te,Pe=te>>>13,Fe=0|u[2],q=8191&Fe,j=Fe>>>13,we=0|u[3],Ae=8191&we,le=we>>>13,We=0|u[4],yt=8191&We,Ne=We>>>13,Ve=0|u[5],ue=8191&Ve,Te=Ve>>>13,ke=0|u[6],Y=8191&ke,X=ke>>>13,he=0|u[7],Me=8191&he,ze=he>>>13,ht=0|u[8],it=8191&ht,ft=ht>>>13,nt=0|u[9],st=8191&nt,wt=nt>>>13,Bt=0|_[0],Nt=8191&Bt,Vt=Bt>>>13,Oi=0|_[1],jt=8191&Oi,ti=Oi>>>13,Ri=0|_[2],si=8191&Ri,di=Ri>>>13,He=0|_[3],Se=8191&He,V=He>>>13,ve=0|_[4],Ee=8191&ve,et=ve>>>13,$t=0|_[5],Rt=8191&$t,Xt=$t>>>13,lt=0|_[6],Re=8191&lt,Be=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(F,Nt))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(B,Nt)|0))<<13)|0;I=((b=Math.imul(B,Vt))+(r>>>13)|0)+(rn>>>26)|0,rn&=67108863,x=Math.imul(xe,Nt),r=(r=Math.imul(xe,Vt))+Math.imul(Pe,Nt)|0,b=Math.imul(Pe,Vt);var Vi=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ti)|0)+Math.imul(B,jt)|0))<<13)|0;I=((b=b+Math.imul(B,ti)|0)+(r>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,x=Math.imul(q,Nt),r=(r=Math.imul(q,Vt))+Math.imul(j,Nt)|0,b=Math.imul(j,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ti)|0)+Math.imul(Pe,jt)|0,b=b+Math.imul(Pe,ti)|0;var Di=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,di)|0)+Math.imul(B,si)|0))<<13)|0;I=((b=b+Math.imul(B,di)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(Ae,Nt),r=(r=Math.imul(Ae,Vt))+Math.imul(le,Nt)|0,b=Math.imul(le,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(xe,si)|0,r=(r=r+Math.imul(xe,di)|0)+Math.imul(Pe,si)|0,b=b+Math.imul(Pe,di)|0;var Xi=(I+(x=x+Math.imul(F,Se)|0)|0)+((8191&(r=(r=r+Math.imul(F,V)|0)+Math.imul(B,Se)|0))<<13)|0;I=((b=b+Math.imul(B,V)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(yt,Nt),r=(r=Math.imul(yt,Vt))+Math.imul(Ne,Nt)|0,b=Math.imul(Ne,Vt),x=x+Math.imul(Ae,jt)|0,r=(r=r+Math.imul(Ae,ti)|0)+Math.imul(le,jt)|0,b=b+Math.imul(le,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(xe,Se)|0,r=(r=r+Math.imul(xe,V)|0)+Math.imul(Pe,Se)|0,b=b+Math.imul(Pe,V)|0;var Ke=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(B,Ee)|0))<<13)|0;I=((b=b+Math.imul(B,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ue,Nt),r=(r=Math.imul(ue,Vt))+Math.imul(Te,Nt)|0,b=Math.imul(Te,Vt),x=x+Math.imul(yt,jt)|0,r=(r=r+Math.imul(yt,ti)|0)+Math.imul(Ne,jt)|0,b=b+Math.imul(Ne,ti)|0,x=x+Math.imul(Ae,si)|0,r=(r=r+Math.imul(Ae,di)|0)+Math.imul(le,si)|0,b=b+Math.imul(le,di)|0,x=x+Math.imul(q,Se)|0,r=(r=r+Math.imul(q,V)|0)+Math.imul(j,Se)|0,b=b+Math.imul(j,V)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Pe,Ee)|0,b=b+Math.imul(Pe,et)|0;var mt=(I+(x=x+Math.imul(F,Rt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Xt)|0)+Math.imul(B,Rt)|0))<<13)|0;I=((b=b+Math.imul(B,Xt)|0)+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(Y,Nt),r=(r=Math.imul(Y,Vt))+Math.imul(X,Nt)|0,b=Math.imul(X,Vt),x=x+Math.imul(ue,jt)|0,r=(r=r+Math.imul(ue,ti)|0)+Math.imul(Te,jt)|0,b=b+Math.imul(Te,ti)|0,x=x+Math.imul(yt,si)|0,r=(r=r+Math.imul(yt,di)|0)+Math.imul(Ne,si)|0,b=b+Math.imul(Ne,di)|0,x=x+Math.imul(Ae,Se)|0,r=(r=r+Math.imul(Ae,V)|0)+Math.imul(le,Se)|0,b=b+Math.imul(le,V)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul(j,Ee)|0,b=b+Math.imul(j,et)|0,x=x+Math.imul(xe,Rt)|0,r=(r=r+Math.imul(xe,Xt)|0)+Math.imul(Pe,Rt)|0,b=b+Math.imul(Pe,Xt)|0;var be=(I+(x=x+Math.imul(F,Re)|0)|0)+((8191&(r=(r=r+Math.imul(F,Be)|0)+Math.imul(B,Re)|0))<<13)|0;I=((b=b+Math.imul(B,Be)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,x=Math.imul(Me,Nt),r=(r=Math.imul(Me,Vt))+Math.imul(ze,Nt)|0,b=Math.imul(ze,Vt),x=x+Math.imul(Y,jt)|0,r=(r=r+Math.imul(Y,ti)|0)+Math.imul(X,jt)|0,b=b+Math.imul(X,ti)|0,x=x+Math.imul(ue,si)|0,r=(r=r+Math.imul(ue,di)|0)+Math.imul(Te,si)|0,b=b+Math.imul(Te,di)|0,x=x+Math.imul(yt,Se)|0,r=(r=r+Math.imul(yt,V)|0)+Math.imul(Ne,Se)|0,b=b+Math.imul(Ne,V)|0,x=x+Math.imul(Ae,Ee)|0,r=(r=r+Math.imul(Ae,et)|0)+Math.imul(le,Ee)|0,b=b+Math.imul(le,et)|0,x=x+Math.imul(q,Rt)|0,r=(r=r+Math.imul(q,Xt)|0)+Math.imul(j,Rt)|0,b=b+Math.imul(j,Xt)|0,x=x+Math.imul(xe,Re)|0,r=(r=r+Math.imul(xe,Be)|0)+Math.imul(Pe,Re)|0,b=b+Math.imul(Pe,Be)|0;var qe=(I+(x=x+Math.imul(F,ot)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(B,ot)|0))<<13)|0;I=((b=b+Math.imul(B,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(it,Nt),r=(r=Math.imul(it,Vt))+Math.imul(ft,Nt)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Me,jt)|0,r=(r=r+Math.imul(Me,ti)|0)+Math.imul(ze,jt)|0,b=b+Math.imul(ze,ti)|0,x=x+Math.imul(Y,si)|0,r=(r=r+Math.imul(Y,di)|0)+Math.imul(X,si)|0,b=b+Math.imul(X,di)|0,x=x+Math.imul(ue,Se)|0,r=(r=r+Math.imul(ue,V)|0)+Math.imul(Te,Se)|0,b=b+Math.imul(Te,V)|0,x=x+Math.imul(yt,Ee)|0,r=(r=r+Math.imul(yt,et)|0)+Math.imul(Ne,Ee)|0,b=b+Math.imul(Ne,et)|0,x=x+Math.imul(Ae,Rt)|0,r=(r=r+Math.imul(Ae,Xt)|0)+Math.imul(le,Rt)|0,b=b+Math.imul(le,Xt)|0,x=x+Math.imul(q,Re)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul(j,Re)|0,b=b+Math.imul(j,Be)|0,x=x+Math.imul(xe,ot)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Pe,ot)|0,b=b+Math.imul(Pe,At)|0;var vt=(I+(x=x+Math.imul(F,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(F,Ft)|0)+Math.imul(B,Ut)|0))<<13)|0;I=((b=b+Math.imul(B,Ft)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,x=Math.imul(st,Nt),r=(r=Math.imul(st,Vt))+Math.imul(wt,Nt)|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(Me,si)|0,r=(r=r+Math.imul(Me,di)|0)+Math.imul(ze,si)|0,b=b+Math.imul(ze,di)|0,x=x+Math.imul(Y,Se)|0,r=(r=r+Math.imul(Y,V)|0)+Math.imul(X,Se)|0,b=b+Math.imul(X,V)|0,x=x+Math.imul(ue,Ee)|0,r=(r=r+Math.imul(ue,et)|0)+Math.imul(Te,Ee)|0,b=b+Math.imul(Te,et)|0,x=x+Math.imul(yt,Rt)|0,r=(r=r+Math.imul(yt,Xt)|0)+Math.imul(Ne,Rt)|0,b=b+Math.imul(Ne,Xt)|0,x=x+Math.imul(Ae,Re)|0,r=(r=r+Math.imul(Ae,Be)|0)+Math.imul(le,Re)|0,b=b+Math.imul(le,Be)|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(xe,Ut)|0,r=(r=r+Math.imul(xe,Ft)|0)+Math.imul(Pe,Ut)|0,b=b+Math.imul(Pe,Ft)|0;var me=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(B,ai)|0))<<13)|0;I=((b=b+Math.imul(B,ci)|0)+(r>>>13)|0)+(me>>>26)|0,me&=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(Me,Se)|0,r=(r=r+Math.imul(Me,V)|0)+Math.imul(ze,Se)|0,b=b+Math.imul(ze,V)|0,x=x+Math.imul(Y,Ee)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(X,Ee)|0,b=b+Math.imul(X,et)|0,x=x+Math.imul(ue,Rt)|0,r=(r=r+Math.imul(ue,Xt)|0)+Math.imul(Te,Rt)|0,b=b+Math.imul(Te,Xt)|0,x=x+Math.imul(yt,Re)|0,r=(r=r+Math.imul(yt,Be)|0)+Math.imul(Ne,Re)|0,b=b+Math.imul(Ne,Be)|0,x=x+Math.imul(Ae,ot)|0,r=(r=r+Math.imul(Ae,At)|0)+Math.imul(le,ot)|0,b=b+Math.imul(le,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 $e=(I+(x=x+Math.imul(xe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Pe,ai)|0))<<13)|0;I=((b=b+Math.imul(Pe,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,Se)|0,r=(r=r+Math.imul(it,V)|0)+Math.imul(ft,Se)|0,b=b+Math.imul(ft,V)|0,x=x+Math.imul(Me,Ee)|0,r=(r=r+Math.imul(Me,et)|0)+Math.imul(ze,Ee)|0,b=b+Math.imul(ze,et)|0,x=x+Math.imul(Y,Rt)|0,r=(r=r+Math.imul(Y,Xt)|0)+Math.imul(X,Rt)|0,b=b+Math.imul(X,Xt)|0,x=x+Math.imul(ue,Re)|0,r=(r=r+Math.imul(ue,Be)|0)+Math.imul(Te,Re)|0,b=b+Math.imul(Te,Be)|0,x=x+Math.imul(yt,ot)|0,r=(r=r+Math.imul(yt,At)|0)+Math.imul(Ne,ot)|0,b=b+Math.imul(Ne,At)|0,x=x+Math.imul(Ae,Ut)|0,r=(r=r+Math.imul(Ae,Ft)|0)+Math.imul(le,Ut)|0,b=b+Math.imul(le,Ft)|0;var St=(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)+(St>>>26)|0,St&=67108863,x=Math.imul(st,Se),r=(r=Math.imul(st,V))+Math.imul(wt,Se)|0,b=Math.imul(wt,V),x=x+Math.imul(it,Ee)|0,r=(r=r+Math.imul(it,et)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Me,Rt)|0,r=(r=r+Math.imul(Me,Xt)|0)+Math.imul(ze,Rt)|0,b=b+Math.imul(ze,Xt)|0,x=x+Math.imul(Y,Re)|0,r=(r=r+Math.imul(Y,Be)|0)+Math.imul(X,Re)|0,b=b+Math.imul(X,Be)|0,x=x+Math.imul(ue,ot)|0,r=(r=r+Math.imul(ue,At)|0)+Math.imul(Te,ot)|0,b=b+Math.imul(Te,At)|0,x=x+Math.imul(yt,Ut)|0,r=(r=r+Math.imul(yt,Ft)|0)+Math.imul(Ne,Ut)|0,b=b+Math.imul(Ne,Ft)|0;var Pt=(I+(x=x+Math.imul(Ae,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Ae,ci)|0)+Math.imul(le,ai)|0))<<13)|0;I=((b=b+Math.imul(le,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(st,Ee),r=(r=Math.imul(st,et))+Math.imul(wt,Ee)|0,b=Math.imul(wt,et),x=x+Math.imul(it,Rt)|0,r=(r=r+Math.imul(it,Xt)|0)+Math.imul(ft,Rt)|0,b=b+Math.imul(ft,Xt)|0,x=x+Math.imul(Me,Re)|0,r=(r=r+Math.imul(Me,Be)|0)+Math.imul(ze,Re)|0,b=b+Math.imul(ze,Be)|0,x=x+Math.imul(Y,ot)|0,r=(r=r+Math.imul(Y,At)|0)+Math.imul(X,ot)|0,b=b+Math.imul(X,At)|0,x=x+Math.imul(ue,Ut)|0,r=(r=r+Math.imul(ue,Ft)|0)+Math.imul(Te,Ut)|0,b=b+Math.imul(Te,Ft)|0;var yi=(I+(x=x+Math.imul(yt,ai)|0)|0)+((8191&(r=(r=r+Math.imul(yt,ci)|0)+Math.imul(Ne,ai)|0))<<13)|0;I=((b=b+Math.imul(Ne,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(st,Rt),r=(r=Math.imul(st,Xt))+Math.imul(wt,Rt)|0,b=Math.imul(wt,Xt),x=x+Math.imul(it,Re)|0,r=(r=r+Math.imul(it,Be)|0)+Math.imul(ft,Re)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Me,ot)|0,r=(r=r+Math.imul(Me,At)|0)+Math.imul(ze,ot)|0,b=b+Math.imul(ze,At)|0,x=x+Math.imul(Y,Ut)|0,r=(r=r+Math.imul(Y,Ft)|0)+Math.imul(X,Ut)|0,b=b+Math.imul(X,Ft)|0;var Pi=(I+(x=x+Math.imul(ue,ai)|0)|0)+((8191&(r=(r=r+Math.imul(ue,ci)|0)+Math.imul(Te,ai)|0))<<13)|0;I=((b=b+Math.imul(Te,ci)|0)+(r>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,x=Math.imul(st,Re),r=(r=Math.imul(st,Be))+Math.imul(wt,Re)|0,b=Math.imul(wt,Be),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(Me,Ut)|0,r=(r=r+Math.imul(Me,Ft)|0)+Math.imul(ze,Ut)|0,b=b+Math.imul(ze,Ft)|0;var Ii=(I+(x=x+Math.imul(Y,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ci)|0)+Math.imul(X,ai)|0))<<13)|0;I=((b=b+Math.imul(X,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(Me,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Me,ci)|0)+Math.imul(ze,ai)|0))<<13)|0;I=((b=b+Math.imul(ze,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,L[0]=rn,L[1]=Vi,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=mt,L[6]=be,L[7]=qe,L[8]=vt,L[9]=me,L[10]=$e,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Pi,L[15]=Ii,L[16]=Ki,L[17]=at,L[18]=Qt,0!==I&&(L[19]=I,p.length++),p};function G(y,i,a){return(new W).mulp(y,i,a)}function W(y,i){this.x=y,this.y=i}Math.imul||(w=D),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?D(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 L=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 B=(0|y.words[_-r])*(0|i.words[r]),te=67108863&B;I=67108863&(te=te+I|0),u+=(L=(L=L+(B/67108864|0)|0)+(te>>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):G(this,i,a),p},W.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},W.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},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I<L;I++)u[I]=a[i[I]],_[I]=p[i[I]]},W.prototype.transform=function(i,a,p,u,_,L){this.permute(L,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),J=0;J<_;J+=x)for(var F=r,B=b,te=0;te<I;te++){var xe=p[J+te],Pe=u[J+te],Fe=p[J+te+I],q=u[J+te+I],j=F*Fe-B*q;q=F*q+B*Fe,p[J+te]=xe+(Fe=j),u[J+te]=Pe+q,p[J+te+I]=xe-Fe,u[J+te+I]=Pe-q,te!==x&&(j=r*F-b*B,B=r*B+b*F,F=j)}},W.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},W.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]=-_}},W.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},W.prototype.convert13b=function(i,a,p,u){for(var _=0,L=0;L<a;L++)p[2*L]=8191&(_+=0|i[L]),p[2*L+1]=8191&(_>>>=13),_>>>=13;for(L=2*a;L<u;++L)p[L]=0;v(0===_),v(0==(-8192&_))},W.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},W.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),L=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),b=new Array(u),J=new Array(u),F=new Array(u),B=p.words;B.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,b,u),this.transform(I,L,x,r,u,_),this.transform(b,L,J,F,u,_);for(var te=0;te<u;te++){var xe=x[te]*J[te]-r[te]*F[te];r[te]=x[te]*F[te]+r[te]*J[te],x[te]=xe}return this.conjugate(x,r,u),this.transform(x,r,B,L,u,_),this.conjugate(B,L,u),this.normalize13b(B,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),G(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 L=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|L,L=I>>>26-a}L&&(this.words[_]=L,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,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;r<L;r++)x.words[r]=this.words[r];x.length=L}if(0!==L)if(this.length>L)for(this.length-=L,r=0;r<this.length;r++)this.words[r]=this.words[r+L];else this.words[0]=0,this.length=1;var b=0;for(r=this.length-1;r>=0&&(0!==b||r>=u);r--){var J=0|this.words[r];this.words[r]=b<<26-_|J>>>_,b=J&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 L,I=0;for(_=0;_<i.length;_++){L=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((L-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_<this.length-p;_++)I=(L=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_<this.length;_++)I=(L=-(0|this.words[_])+I)>>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=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 J=u.clone()._ishlnsubmul(_,1,x);0===J.negative&&(u=J,r&&(r.words[x]=1));for(var F=x-1;F>=0;F--){var B=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(B=Math.min(B/L|0,67108863),u._ishlnsubmul(_,B,F);0!==u.negative;)B--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=B)}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?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.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,_,L},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),L=p.cmp(u);return L<0||1===_&&0===L?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),L=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 J=0,F=1;0==(a.words[0]&F)&&J<26;++J,F<<=1);if(J>0)for(a.iushrn(J);J-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var B=0,te=1;0==(p.words[0]&te)&&B<26;++B,te<<=1);if(B>0)for(p.iushrn(B);B-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(b)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},s.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var J,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),L=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(L),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(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(J=0===a.cmpn(1)?u:_).cmpn(0)<0&&J.iadd(i),J},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 L=a;a=p,p=L}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,L=p;0!==_&&L<this.length;L++){var I=0|this.words[L];_=(I+=_)>>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,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 se(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 ee={k256:null,p224:null,p192:null,p25519:null};function ie(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 _e(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function fe(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function de(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ne(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(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 oe(y){se.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)}ie.prototype._tmp=function(){var i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.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},ie.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ie.prototype.imulK=function(i){return i.imul(this.k)},M(_e,ie),_e.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 L=i.words[9];for(a.words[a.length++]=L&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|L>>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.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},M(fe,ie),M(de,ie),M(ne,ie),ne.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(ee[i])return ee[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new fe;else if("p192"===i)a=new de;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new ne}return ee[i]=a,a},se.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},se.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")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.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)},se.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},se.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)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.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 L=new s(1).toRed(this),I=L.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),J=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),B=_;0!==F.cmp(L);){for(var te=F,xe=0;0!==te.cmp(L);xe++)te=te.redSqr();v(xe<B);var Pe=this.pow(b,new s(1).iushln(B-xe-1));J=J.redMul(Pe),b=Pe.redSqr(),F=F.redMul(b),B=xe}return J},se.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},se.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 L=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var b=a.words[_],J=r-1;J>=0;J--){var F=b>>J&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===J)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new oe(i)},M(oe,se),oe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},oe.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},oe.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),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},oe.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),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},oe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ue=m.nmd(Ue),this)},2391:Ue=>{function K(m,e){if(!m)throw new Error(e||"Assertion failed")}Ue.exports=K,K.equal=function(e,t,v){if(e!=t)throw new Error(v||"Assertion failed: "+e+" != "+t)}},8195:(Ue,K)=>{"use strict";var m=K;function t(M){return 1===M.length?"0"+M:M}function v(M){for(var s="",C=0;C<M.length;C++)s+=t(M[C].toString(16));return s}m.toArray=function(M,s){if(Array.isArray(M))return M.slice();if(!M)return[];var C=[];if("string"!=typeof M){for(var c=0;c<M.length;c++)C[c]=0|M[c];return C}if("hex"===s)for((M=M.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(M="0"+M),c=0;c<M.length;c+=2)C.push(parseInt(M[c]+M[c+1],16));else for(c=0;c<M.length;c++){var R=M.charCodeAt(c),o=R>>8,O=255&R;o?C.push(o,O):C.push(O)}return C},m.zero2=t,m.toHex=v,m.encode=function(s,C){return"hex"===C?v(s):s}},644:(Ue,K,m)=>{"use strict";m.d(K,{op:()=>He,$V:()=>et,Xd:()=>Xt});var e=m(7579),t=m(4968),M=(m(6451),m(3601)),s=m(2722),R=(m(1884),m(9718),m(5e3)),o=m(9808);function O(lt){return getComputedStyle(lt)}function T(lt,Re){for(var Be in Re){var rt=Re[Be];"number"==typeof rt&&(rt+="px"),lt.style[Be]=rt}return lt}function P(lt){var Re=document.createElement("div");return Re.className=lt,Re}var S="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function D(lt,Re){if(!S)throw new Error("No element matching method supported");return S.call(lt,Re)}function w(lt){lt.remove?lt.remove():lt.parentNode&&lt.parentNode.removeChild(lt)}function U(lt,Re){return Array.prototype.filter.call(lt.children,function(Be){return D(Be,Re)})}var G_element_thumb=function(lt){return"ps__thumb-"+lt},G_element_rail=function(lt){return"ps__rail-"+lt},G_element_consuming="ps__child--consume",G_state_focus="ps--focus",G_state_clicking="ps--clicking",G_state_active=function(lt){return"ps--active-"+lt},G_state_scrolling=function(lt){return"ps--scrolling-"+lt},W={x:null,y:null};function ee(lt,Re){var Be=lt.element.classList,rt=G_state_scrolling(Re);Be.contains(rt)?clearTimeout(W[Re]):Be.add(rt)}function ie(lt,Re){W[Re]=setTimeout(function(){return lt.isAlive&&lt.element.classList.remove(G_state_scrolling(Re))},lt.settings.scrollingThreshold)}var fe=function(Re){this.element=Re,this.handlers={}},de={isEmpty:{configurable:!0}};fe.prototype.bind=function(Re,Be){void 0===this.handlers[Re]&&(this.handlers[Re]=[]),this.handlers[Re].push(Be),this.element.addEventListener(Re,Be,!1)},fe.prototype.unbind=function(Re,Be){var rt=this;this.handlers[Re]=this.handlers[Re].filter(function(ot){return!(!Be||ot===Be)||(rt.element.removeEventListener(Re,ot,!1),!1)})},fe.prototype.unbindAll=function(){for(var Re in this.handlers)this.unbind(Re)},de.isEmpty.get=function(){var lt=this;return Object.keys(this.handlers).every(function(Re){return 0===lt.handlers[Re].length})},Object.defineProperties(fe.prototype,de);var ne=function(){this.eventElements=[]};function se(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 oe(lt,Re,Be,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,Be,rt,ot){var At=Be[0],li=Be[1],Ut=Be[2],Ft=Be[3],Si=Be[4],ai=Be[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(se("ps-scroll-"+Ft)),Re<0?ci.dispatchEvent(se("ps-scroll-"+Si)):Re>0&&ci.dispatchEvent(se("ps-scroll-"+ai)),rt&&function(lt,Re){ee(lt,Re),ie(lt,Re)}(lt,Ft)),lt.reach[Ft]&&(Re||ot)&&ci.dispatchEvent(se("ps-"+Ft+"-reach-"+lt.reach[Ft]))}(lt,Be,At,rt,ot)}function i(lt){return parseInt(lt,10)||0}ne.prototype.eventElement=function(Re){var Be=this.eventElements.filter(function(rt){return rt.element===Re})[0];return Be||(Be=new fe(Re),this.eventElements.push(Be)),Be},ne.prototype.bind=function(Re,Be,rt){this.eventElement(Re).bind(Be,rt)},ne.prototype.unbind=function(Re,Be,rt){var ot=this.eventElement(Re);ot.unbind(Be,rt),ot.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(ot),1)},ne.prototype.unbindAll=function(){this.eventElements.forEach(function(Re){return Re.unbindAll()}),this.eventElements=[]},ne.prototype.once=function(Re,Be,rt){var ot=this.eventElement(Re),At=function(li){ot.unbind(Be,At),rt(li)};ot.bind(Be,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,Be=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)||(U(Re,G_element_rail("x")).forEach(function(ot){return w(ot)}),Re.appendChild(lt.scrollbarXRail)),Re.contains(lt.scrollbarYRail)||(U(Re,G_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=L(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=L(lt,i(lt.railYHeight*lt.containerHeight/lt.contentHeight)),lt.scrollbarYTop=i(Be*(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 Be={width:Re.railXWidth},rt=Math.floor(lt.scrollTop);Be.left=Re.isRtl?Re.negativeScrollAdjustment+lt.scrollLeft+Re.containerWidth-Re.contentWidth:lt.scrollLeft,Re.isScrollbarXUsingBottom?Be.bottom=Re.scrollbarXBottom-rt:Be.top=Re.scrollbarXTop+rt,T(Re.scrollbarXRail,Be);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,T(Re.scrollbarYRail,ot),T(Re.scrollbarX,{left:Re.scrollbarXLeft,width:Re.scrollbarXWidth-Re.railBorderXWidth}),T(Re.scrollbarY,{top:Re.scrollbarYTop,height:Re.scrollbarYHeight-Re.railBorderYWidth})}(Re,lt),lt.scrollbarXActive?Re.classList.add(G_state_active("x")):(Re.classList.remove(G_state_active("x")),lt.scrollbarXWidth=0,lt.scrollbarXLeft=0,Re.scrollLeft=!0===lt.isRtl?lt.contentWidth:0),lt.scrollbarYActive?Re.classList.add(G_state_active("y")):(Re.classList.remove(G_state_active("y")),lt.scrollbarYHeight=0,lt.scrollbarYTop=0,Re.scrollTop=0)}function L(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 Be=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(be){be.touches&&be.touches[0]&&(be[ot]=be.touches[0].pageY),ci[Ft]=rn+Di*(be[ot]-Vi),ee(lt,Si),_(lt),be.stopPropagation(),be.preventDefault()}function Ke(){ie(lt,Si),lt[ai].classList.remove(G_state_clicking),lt.event.unbind(lt.ownerDocument,"mousemove",Xi)}function mt(be,qe){rn=ci[Ft],qe&&be.touches&&(be[ot]=be.touches[0].pageY),Vi=be[ot],Di=(lt[rt]-lt[Be])/(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),be.preventDefault()),lt[ai].classList.add(G_state_clicking),be.stopPropagation()}lt.event.bind(lt[li],"mousedown",function(be){mt(be)}),lt.event.bind(lt[li],"touchstart",function(be){mt(be,!0)})}var xe={"click-rail":function(lt){lt.event.bind(lt.scrollbarY,"mousedown",function(Be){return Be.stopPropagation()}),lt.event.bind(lt.scrollbarYRail,"mousedown",function(Be){var rt=Be.pageY-window.pageYOffset-lt.scrollbarYRail.getBoundingClientRect().top;lt.element.scrollTop+=(rt>lt.scrollbarYTop?1:-1)*lt.containerHeight,_(lt),Be.stopPropagation()}),lt.event.bind(lt.scrollbarX,"mousedown",function(Be){return Be.stopPropagation()}),lt.event.bind(lt.scrollbarXRail,"mousedown",function(Be){var rt=Be.pageX-window.pageXOffset-lt.scrollbarXRail.getBoundingClientRect().left;lt.element.scrollLeft+=(rt>lt.scrollbarXLeft?1:-1)*lt.containerWidth,_(lt),Be.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)&&(D(Re,":hover")||D(lt.scrollbarX,":focus")||D(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 D(lt,"input,[contenteditable]")||D(lt,"select,[contenteditable]")||D(lt,"textarea,[contenteditable]")||D(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(G_element_consuming))return!0;var ai=O(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,be=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(G_element_consuming))return!0;var be=O(mt);if(Ke&&be.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&&be.overflowX.match(/(scroll|auto)/)){var vt=mt.scrollWidth-mt.clientWidth;if(vt>0&&(mt.scrollLeft>0&&Xi<0||mt.scrollLeft<vt&&Xi>0))return!0}mt=mt.parentNode}return!1}(Di.target,mt,be))return;rt(mt,be),ot=Ke;var qe=(new Date).getTime(),vt=qe-At;vt>0&&(li.x=mt/vt,li.y=be/vt,At=qe),function(Di,Xi){var Ke=Math.floor(Re.scrollTop),mt=Re.scrollLeft,be=Math.abs(Di),qe=Math.abs(Xi);if(qe>be){if(Xi<0&&Ke===lt.contentHeight-lt.containerHeight||Xi>0&&0===Ke)return 0===window.scrollY&&Xi>0&&u.isChrome}else if(be>qe&&(Di<0&&mt===lt.contentWidth-lt.containerWidth||Di>0&&0===mt))return!0;return!0}(mt,be)&&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))}}},Pe=function(Re,Be){var rt=this;if(void 0===Be&&(Be={}),"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},Be)this.settings[ot]=Be[ot];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var ai,Si,At=function(){return Re.classList.add(G_state_focus)},li=function(){return Re.classList.remove(G_state_focus)};this.isRtl="rtl"===O(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 ne,this.ownerDocument=Re.ownerDocument||document,this.scrollbarXRail=P(G_element_rail("x")),Re.appendChild(this.scrollbarXRail),this.scrollbarX=P(G_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=O(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),T(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=i(Ut.marginLeft)+i(Ut.marginRight),T(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=P(G_element_rail("y")),Re.appendChild(this.scrollbarYRail),this.scrollbarY=P(G_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=O(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=O(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),T(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=i(Ft.marginTop)+i(Ft.marginBottom),T(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)};Pe.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,T(this.scrollbarXRail,{display:"block"}),T(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=i(O(this.scrollbarXRail).marginLeft)+i(O(this.scrollbarXRail).marginRight),this.railYMarginHeight=i(O(this.scrollbarYRail).marginTop)+i(O(this.scrollbarYRail).marginBottom),T(this.scrollbarXRail,{display:"none"}),T(this.scrollbarYRail,{display:"none"}),_(this),oe(this,"top",0,!1,!0),oe(this,"left",0,!1,!0),T(this.scrollbarXRail,{display:""}),T(this.scrollbarYRail,{display:""}))},Pe.prototype.onScroll=function(Re){!this.isAlive||(_(this),oe(this,"top",this.element.scrollTop-this.lastScrollTop),oe(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Pe.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)},Pe.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(Re){return!Re.match(/^ps([-_].+|)$/)}).join(" ")};const Fe=Pe;var q=function(){if("undefined"!=typeof Map)return Map;function lt(Re,Be){var rt=-1;return Re.some(function(ot,At){return ot[0]===Be&&(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(Be){var rt=lt(this.__entries__,Be),ot=this.__entries__[rt];return ot&&ot[1]},Re.prototype.set=function(Be,rt){var ot=lt(this.__entries__,Be);~ot?this.__entries__[ot][1]=rt:this.__entries__.push([Be,rt])},Re.prototype.delete=function(Be){var rt=this.__entries__,ot=lt(rt,Be);~ot&&rt.splice(ot,1)},Re.prototype.has=function(Be){return!!~lt(this.__entries__,Be)},Re.prototype.clear=function(){this.__entries__.splice(0)},Re.prototype.forEach=function(Be,rt){void 0===rt&&(rt=null);for(var ot=0,At=this.__entries__;ot<At.length;ot++){var li=At[ot];Be.call(rt,li[1],li[0])}},Re}()}(),j="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,we="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Ae="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(we):function(lt){return setTimeout(function(){return lt(Date.now())},1e3/60)},Ne=["top","right","bottom","left","width","height","size","weight"],Ve="undefined"!=typeof MutationObserver,ue=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 Be=!1,rt=!1,ot=0;function At(){Be&&(Be=!1,lt()),rt&&Ut()}function li(){Ae(At)}function Ut(){var Ft=Date.now();if(Be){if(Ft-ot<2)return;rt=!0}else Be=!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 Be=this.observers_,rt=Be.indexOf(Re);~rt&&Be.splice(rt,1),!Be.length&&this.connected_&&this.disconnect_()},lt.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},lt.prototype.updateObservers_=function(){var Re=this.observers_.filter(function(Be){return Be.gatherActive(),Be.hasActive()});return Re.forEach(function(Be){return Be.broadcastActive()}),Re.length>0},lt.prototype.connect_=function(){!j||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(){!j||!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 Be=Re.propertyName,rt=void 0===Be?"":Be;Ne.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}(),Te=function(lt,Re){for(var Be=0,rt=Object.keys(Re);Be<rt.length;Be++){var ot=rt[Be];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||we},Y=wt(0,0,0,0);function X(lt){return parseFloat(lt)||0}function he(lt){for(var Re=[],Be=1;Be<arguments.length;Be++)Re[Be-1]=arguments[Be];return Re.reduce(function(rt,ot){return rt+X(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 j?it(lt)?function(lt){var Re=lt.getBBox();return wt(0,0,Re.width,Re.height)}(lt):function(lt){var Re=lt.clientWidth,Be=lt.clientHeight;if(!Re&&!Be)return Y;var rt=ke(lt).getComputedStyle(lt),ot=function(lt){for(var Be={},rt=0,ot=["top","right","bottom","left"];rt<ot.length;rt++){var At=ot[rt];Be[At]=X(lt["padding-"+At])}return Be}(rt),At=ot.left+ot.right,li=ot.top+ot.bottom,Ut=X(rt.width),Ft=X(rt.height);if("border-box"===rt.boxSizing&&(Math.round(Ut+At)!==Re&&(Ut-=he(rt,"left","right")+At),Math.round(Ft+li)!==Be&&(Ft-=he(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)-Be;1!==Math.abs(Si)&&(Ut-=Si),1!==Math.abs(ai)&&(Ft-=ai)}return wt(ot.left,ot.top,Ut,Ft)}(lt):Y}function wt(lt,Re,Be,rt){return{x:lt,y:Re,width:Be,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}(),Nt=function(Re,Be){var rt=function(lt){var Re=lt.x,Be=lt.y,rt=lt.width,ot=lt.height,At="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,li=Object.create(At.prototype);return Te(li,{x:Re,y:Be,width:rt,height:ot,top:Be,right:Re+rt,bottom:ot+Be,left:Re}),li}(Be);Te(this,{target:Re,contentRect:rt})},Vt=function(){function lt(Re,Be,rt){if(this.activeObservations_=[],this.observations_=new q,"function"!=typeof Re)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=Re,this.controller_=Be,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 Be=this.observations_;Be.has(Re)||(Be.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 Be=this.observations_;!Be.has(Re)||(Be.delete(Re),Be.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(Be){Be.isActive()&&Re.activeObservations_.push(Be)})},lt.prototype.broadcastActive=function(){if(this.hasActive()){var Re=this.callbackCtx_,Be=this.activeObservations_.map(function(rt){return new Nt(rt.target,rt.broadcastRect())});this.callback_.call(Re,Be,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 q,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 Be=ue.getInstance(),rt=new Vt(Re,Be,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 Ri=void 0!==we.ResizeObserver?we.ResizeObserver:jt,He=new R.OlP("PERFECT_SCROLLBAR_CONFIG");class Se{constructor(Re,Be,rt,ot){this.x=Re,this.y=Be,this.w=rt,this.h=ot}}class V{constructor(Re,Be){this.x=Re,this.y=Be}}const ve=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class Ee{constructor(Re={}){this.assign(Re)}assign(Re={}){for(const Be in Re)this[Be]=Re[Be]}}let et=(()=>{class lt{constructor(Be,rt,ot,At,li){this.zone=Be,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 R.vpe,this.psScrollX=new R.vpe,this.psScrollUp=new R.vpe,this.psScrollDown=new R.vpe,this.psScrollLeft=new R.vpe,this.psScrollRight=new R.vpe,this.psYReachEnd=new R.vpe,this.psYReachStart=new R.vpe,this.psXReachEnd=new R.vpe,this.psXReachStart=new R.vpe}ngOnInit(){if(!this.disabled&&(0,o.NF)(this.platformId)){const Be=new Ee(this.defaults);Be.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Fe(this.elementRef.nativeElement,Be)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new Ri(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{ve.forEach(rt=>{const ot=rt.replace(/([A-Z])/g,At=>`-${At.toLowerCase()}`);(0,t.R)(this.elementRef.nativeElement,ot).pipe((0,M.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(Be){Be.disabled&&!Be.disabled.isFirstChange()&&(0,o.NF)(this.platformId)&&Be.disabled.currentValue!==Be.disabled.previousValue&&(!0===Be.disabled.currentValue?this.ngOnDestroy():!1===Be.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(Be){}},0))}geometry(Be="scroll"){return new Se(this.elementRef.nativeElement[Be+"Left"],this.elementRef.nativeElement[Be+"Top"],this.elementRef.nativeElement[Be+"Width"],this.elementRef.nativeElement[Be+"Height"])}position(Be=!1){return!Be&&this.instance?new V(this.instance.reach.x||0,this.instance.reach.y||0):new V(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(Be="any"){const rt=this.elementRef.nativeElement;return"any"===Be?rt.classList.contains("ps--active-x")||rt.classList.contains("ps--active-y"):"both"===Be?rt.classList.contains("ps--active-x")&&rt.classList.contains("ps--active-y"):rt.classList.contains("ps--active-"+Be)}scrollTo(Be,rt,ot){this.disabled||(null==rt&&null==ot?this.animateScrolling("scrollTop",Be,ot):(null!=Be&&this.animateScrolling("scrollLeft",Be,ot),null!=rt&&this.animateScrolling("scrollTop",rt,ot)))}scrollToX(Be,rt){this.animateScrolling("scrollLeft",Be,rt)}scrollToY(Be,rt){this.animateScrolling("scrollTop",Be,rt)}scrollToTop(Be,rt){this.animateScrolling("scrollTop",Be||0,rt)}scrollToLeft(Be,rt){this.animateScrolling("scrollLeft",Be||0,rt)}scrollToRight(Be,rt){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(Be||0),rt)}scrollToBottom(Be,rt){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(Be||0),rt)}scrollToElement(Be,rt,ot){if("string"==typeof Be&&(Be=this.elementRef.nativeElement.querySelector(Be)),Be){const At=Be.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(Be,rt,ot){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),ot&&"undefined"!=typeof window){if(rt!==this.elementRef.nativeElement[Be]){let At=0,li=0,Ut=performance.now(),Ft=this.elementRef.nativeElement[Be];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[Be]===Ft&&(li>=Math.PI?this.animateScrolling(Be,rt,0):(this.elementRef.nativeElement[Be]=At,Ft=this.elementRef.nativeElement[Be],Ut=ci,this.animation=window.requestAnimationFrame(ai)))};window.requestAnimationFrame(ai)}}else this.elementRef.nativeElement[Be]=rt}}return lt.\u0275fac=function(Be){return new(Be||lt)(R.Y36(R.R0b),R.Y36(R.aQg),R.Y36(R.SBq),R.Y36(R.Lbi),R.Y36(He,8))},lt.\u0275dir=R.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:[R.TTD]}),lt})(),Xt=(()=>{class lt{}return lt.\u0275fac=function(Be){return new(Be||lt)},lt.\u0275mod=R.oAB({type:lt}),lt.\u0275inj=R.cJS({imports:[[o.ez],o.ez]}),lt})()},5768:(Ue,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:(Ue,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 M=e.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});K.PublicKey=M;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())}),C=e.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});K.PrivateKey=C;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 R=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=R,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(O),this.key("publicKey").optional().explicit(1).bitstr())});K.ECPrivateKey=o;var O=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:(Ue,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())}),M=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(M),this.key("subjectPublicKey").bitstr())}),C=e.define("RelativeDistinguishedName",function(){this.setof(v)}),c=e.define("RDNSequence",function(){this.seqof(C)}),R=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))}),O=e.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),T=e.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(M),this.key("issuer").use(R),this.key("validity").use(o),this.key("subject").use(R),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(O).optional())}),P=e.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(T),this.key("signatureAlgorithm").use(M),this.key("signatureValue").bitstr())});Ue.exports=P},5269:(Ue,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,M=m(347),s=m(4330),C=m(3502).Buffer;Ue.exports=function(c,R){var T,o=c.toString(),O=o.match(e);if(O){var S="aes"+O[1],D=C.from(O[2],"hex"),w=C.from(O[3].replace(/[\r\n]/g,""),"base64"),U=M(R,D.slice(0,8),parseInt(O[1],10)).key,G=[],W=s.createDecipheriv(S,U,D);G.push(W.update(w)),G.push(W.final()),T=C.concat(G)}else{var P=o.match(v);T=C.from(P[2].replace(/[\r\n]/g,""),"base64")}return{tag:o.match(t)[1],data:T}}},2772:(Ue,K,m)=>{var e=m(2999),t=m(2562),v=m(5269),M=m(4330),s=m(9357),C=m(3502).Buffer;function c(o){var O;"object"==typeof o&&!C.isBuffer(o)&&(O=o.passphrase,o=o.key),"string"==typeof o&&(o=C.from(o));var D,w,T=v(o,O),P=T.tag,S=T.data;switch(P){case"CERTIFICATE":w=e.certificate.decode(S,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=e.PublicKey.decode(S,"der")),D=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 "+D)}case"ENCRYPTED PRIVATE KEY":S=function(o,O){var T=o.algorithm.decrypt.kde.kdeparams.salt,P=parseInt(o.algorithm.decrypt.kde.kdeparams.iters.toString(),10),S=t[o.algorithm.decrypt.cipher.algo.join(".")],D=o.algorithm.decrypt.cipher.iv,w=o.subjectPrivateKey,U=parseInt(S.split("-")[1],10)/8,G=s.pbkdf2Sync(O,T,P,U,"sha1"),W=M.createDecipheriv(S,G,D),ee=[];return ee.push(W.update(w)),ee.push(W.final()),C.concat(ee)}(S=e.EncryptedPrivateKey.decode(S,"der"),O);case"PRIVATE KEY":switch(D=(w=e.PrivateKey.decode(S,"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 "+D)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(S,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(S,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(S,"der")};case"EC PRIVATE KEY":return{curve:(S=e.ECPrivateKey.decode(S,"der")).parameters.value,privateKey:S.privateKey};default:throw new Error("unknown key type "+P)}}Ue.exports=c,c.signature=e.signature},9357:(Ue,K,m)=>{K.pbkdf2=m(415),K.pbkdf2Sync=m(7472)},415:(Ue,K,m)=>{var C,T,e=m(3502).Buffer,t=m(2697),v=m(8867),M=m(7472),s=m(4566),c=global.crypto&&global.crypto.subtle,R={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 P(){return T||(T=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function S(w,U,G,W,ee){return c.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ie){return c.deriveBits({name:"PBKDF2",salt:U,iterations:G,hash:{name:ee}},ie,W<<3)}).then(function(ie){return e.from(ie)})}Ue.exports=function(w,U,G,W,ee,ie){"function"==typeof ee&&(ie=ee,ee=void 0);var _e=R[(ee=ee||"sha1").toLowerCase()];if(_e&&"function"==typeof global.Promise){if(t(G,W),w=s(w,v,"Password"),U=s(U,v,"Salt"),"function"!=typeof ie)throw new Error("No callback provided to pbkdf2");!function(w,U){w.then(function(G){P()(function(){U(null,G)})},function(G){P()(function(){U(G)})})}(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 U=S(C=C||e.alloc(8),C,10,128,w).then(function(){return!0}).catch(function(){return!1});return o[w]=U,U}(_e).then(function(fe){return fe?S(w,U,G,W,_e):M(w,U,G,W,ee)}),ie)}else P()(function(){var fe;try{fe=M(w,U,G,W,ee)}catch(de){return ie(de)}ie(null,fe)})}},8867:Ue=>{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",Ue.exports=K},2697:Ue=>{var K=Math.pow(2,30)-1;Ue.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:(Ue,K,m)=>{var e=m(5640),t=m(5634),v=m(5244),M=m(3502).Buffer,s=m(2697),C=m(8867),c=m(4566),R=M.alloc(128),o={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function O(S,D,w){var U=function(S){return"rmd160"===S||"ripemd160"===S?function(U){return(new t).update(U).digest()}:"md5"===S?e:function(U){return v(S).update(U).digest()}}(S),G="sha512"===S||"sha384"===S?128:64;D.length>G?D=U(D):D.length<G&&(D=M.concat([D,R],G));for(var W=M.allocUnsafe(G+o[S]),ee=M.allocUnsafe(G+o[S]),ie=0;ie<G;ie++)W[ie]=54^D[ie],ee[ie]=92^D[ie];var _e=M.allocUnsafe(G+w+4);W.copy(_e,0,0,G),this.ipad1=_e,this.ipad2=W,this.opad=ee,this.alg=S,this.blocksize=G,this.hash=U,this.size=o[S]}O.prototype.run=function(S,D){return S.copy(D,this.blocksize),this.hash(D).copy(this.opad,this.blocksize),this.hash(this.opad)},Ue.exports=function(S,D,w,U,G){s(w,U);var W=new O(G=G||"sha1",S=c(S,C,"Password"),(D=c(D,C,"Salt")).length),ee=M.allocUnsafe(U),ie=M.allocUnsafe(D.length+4);D.copy(ie,0,0,D.length);for(var _e=0,fe=o[G],de=Math.ceil(U/fe),ne=1;ne<=de;ne++){ie.writeUInt32BE(ne,D.length);for(var se=W.run(ie,W.ipad1),oe=se,y=1;y<w;y++){oe=W.run(oe,W.ipad2);for(var i=0;i<fe;i++)se[i]^=oe[i]}se.copy(ee,_e),_e+=fe}return ee}},4566:(Ue,K,m)=>{var e=m(3502).Buffer;Ue.exports=function(t,v,M){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(M+" must be a string, a Buffer, a typed array or a DataView")}},3701:(Ue,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:(Ue,K,m)=>{var e=m(6386),t=m(3502).Buffer;function v(M){var s=t.allocUnsafe(4);return s.writeUInt32BE(M,0),s}Ue.exports=function(M,s){for(var R,C=t.alloc(0),c=0;C.length<s;)R=v(c++),C=t.concat([C,e("sha1").update(M).update(R).digest()]);return C.slice(0,s)}},2057:function(Ue,K,m){!function(e,t){"use strict";function v(y,i){if(!y)throw new Error(i||"Assertion failed")}function M(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 C;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{C="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 R(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),L=i;L<_;L++){var I=y.charCodeAt(L)-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 _,L,I=0;if("be"===p)for(u=i.length-1,_=0;u>=0;u-=3)this.words[_]|=(L=i[u]|i[u-1]<<8|i[u-2]<<16)<<I&67108863,this.words[_+1]=L>>>26-I&67108863,(I+=24)>=26&&(I-=26,_++);else if("le"===p)for(u=0,_=0;u<i.length;u+=3)this.words[_]|=(L=i[u]|i[u+1]<<8|i[u+2]<<16)<<I&67108863,this.words[_+1]=L>>>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,L=0;if("be"===p)for(u=i.length-1;u>=a;u-=2)I=R(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=1]|=I>>>26):_+=8;else for(u=(i.length-a)%2==0?a+1:a;u<i.length;u+=2)I=R(i,a,u)<<_,this.words[L]|=67108863&I,_>=18?(_-=18,this.words[L+=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 L=i.length-p,I=L%u,x=Math.min(L,L-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 J=1;for(r=o(i,b,i.length,a),b=0;b<I;b++)J*=a;this.imuln(J),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 O=["","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"],T=[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],P=[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 D(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],L=u*_,x=L/67108864|0;a.words[0]=67108863&L;for(var r=1;r<p;r++){for(var b=x>>>26,J=67108863&x,F=Math.min(r,i.length-1),B=Math.max(0,r-y.length+1);B<=F;B++)b+=(L=(u=0|y.words[r-B|0])*(_=0|i.words[B])+J)/67108864|0,J=67108863&L;a.words[r]=0|J,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,L=0;L<this.length;L++){var I=this.words[L],x=(16777215&(I<<u|_)).toString(16);p=0!=(_=I>>>24-u&16777215)||L!==this.length-1?O[6-x.length]+x+p:x+p,(u+=2)>=26&&(u-=26,L--)}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=T[i],b=P[i];p="";var J=this.clone();for(J.negative=0;!J.isZero();){var F=J.modn(b).toString(i);p=(J=J.idivn(b)).isZero()?F+p:O[r-F.length]+F+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!==C),this.toArrayLike(C,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,L="le"===a,I=new i(_),b=this.clone();if(L){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,L=0;L<u.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+(0|u.words[L])+_),_=a>>>26;for(;0!==_&&L<p.length;L++)this.words[L]=67108863&(a=(0|p.words[L])+_),_=a>>>26;if(this.length=p.length,0!==_)this.words[this.length]=_,this.length++;else if(p!==this)for(;L<p.length;L++)this.words[L]=p.words[L];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 L=0,I=0;I<_.length;I++)L=(a=(0|u.words[I])-(0|_.words[I])+L)>>26,this.words[I]=67108863&a;for(;0!==L&&I<u.length;I++)L=(a=(0|u.words[I])+L)>>26,this.words[I]=67108863&a;if(0===L&&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,L=p.words,I=0,J=0|u[0],F=8191&J,B=J>>>13,te=0|u[1],xe=8191&te,Pe=te>>>13,Fe=0|u[2],q=8191&Fe,j=Fe>>>13,we=0|u[3],Ae=8191&we,le=we>>>13,We=0|u[4],yt=8191&We,Ne=We>>>13,Ve=0|u[5],ue=8191&Ve,Te=Ve>>>13,ke=0|u[6],Y=8191&ke,X=ke>>>13,he=0|u[7],Me=8191&he,ze=he>>>13,ht=0|u[8],it=8191&ht,ft=ht>>>13,nt=0|u[9],st=8191&nt,wt=nt>>>13,Bt=0|_[0],Nt=8191&Bt,Vt=Bt>>>13,Oi=0|_[1],jt=8191&Oi,ti=Oi>>>13,Ri=0|_[2],si=8191&Ri,di=Ri>>>13,He=0|_[3],Se=8191&He,V=He>>>13,ve=0|_[4],Ee=8191&ve,et=ve>>>13,$t=0|_[5],Rt=8191&$t,Xt=$t>>>13,lt=0|_[6],Re=8191&lt,Be=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(F,Nt))|0)+((8191&(r=(r=Math.imul(F,Vt))+Math.imul(B,Nt)|0))<<13)|0;I=((b=Math.imul(B,Vt))+(r>>>13)|0)+(rn>>>26)|0,rn&=67108863,x=Math.imul(xe,Nt),r=(r=Math.imul(xe,Vt))+Math.imul(Pe,Nt)|0,b=Math.imul(Pe,Vt);var Vi=(I+(x=x+Math.imul(F,jt)|0)|0)+((8191&(r=(r=r+Math.imul(F,ti)|0)+Math.imul(B,jt)|0))<<13)|0;I=((b=b+Math.imul(B,ti)|0)+(r>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,x=Math.imul(q,Nt),r=(r=Math.imul(q,Vt))+Math.imul(j,Nt)|0,b=Math.imul(j,Vt),x=x+Math.imul(xe,jt)|0,r=(r=r+Math.imul(xe,ti)|0)+Math.imul(Pe,jt)|0,b=b+Math.imul(Pe,ti)|0;var Di=(I+(x=x+Math.imul(F,si)|0)|0)+((8191&(r=(r=r+Math.imul(F,di)|0)+Math.imul(B,si)|0))<<13)|0;I=((b=b+Math.imul(B,di)|0)+(r>>>13)|0)+(Di>>>26)|0,Di&=67108863,x=Math.imul(Ae,Nt),r=(r=Math.imul(Ae,Vt))+Math.imul(le,Nt)|0,b=Math.imul(le,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(xe,si)|0,r=(r=r+Math.imul(xe,di)|0)+Math.imul(Pe,si)|0,b=b+Math.imul(Pe,di)|0;var Xi=(I+(x=x+Math.imul(F,Se)|0)|0)+((8191&(r=(r=r+Math.imul(F,V)|0)+Math.imul(B,Se)|0))<<13)|0;I=((b=b+Math.imul(B,V)|0)+(r>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,x=Math.imul(yt,Nt),r=(r=Math.imul(yt,Vt))+Math.imul(Ne,Nt)|0,b=Math.imul(Ne,Vt),x=x+Math.imul(Ae,jt)|0,r=(r=r+Math.imul(Ae,ti)|0)+Math.imul(le,jt)|0,b=b+Math.imul(le,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(xe,Se)|0,r=(r=r+Math.imul(xe,V)|0)+Math.imul(Pe,Se)|0,b=b+Math.imul(Pe,V)|0;var Ke=(I+(x=x+Math.imul(F,Ee)|0)|0)+((8191&(r=(r=r+Math.imul(F,et)|0)+Math.imul(B,Ee)|0))<<13)|0;I=((b=b+Math.imul(B,et)|0)+(r>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,x=Math.imul(ue,Nt),r=(r=Math.imul(ue,Vt))+Math.imul(Te,Nt)|0,b=Math.imul(Te,Vt),x=x+Math.imul(yt,jt)|0,r=(r=r+Math.imul(yt,ti)|0)+Math.imul(Ne,jt)|0,b=b+Math.imul(Ne,ti)|0,x=x+Math.imul(Ae,si)|0,r=(r=r+Math.imul(Ae,di)|0)+Math.imul(le,si)|0,b=b+Math.imul(le,di)|0,x=x+Math.imul(q,Se)|0,r=(r=r+Math.imul(q,V)|0)+Math.imul(j,Se)|0,b=b+Math.imul(j,V)|0,x=x+Math.imul(xe,Ee)|0,r=(r=r+Math.imul(xe,et)|0)+Math.imul(Pe,Ee)|0,b=b+Math.imul(Pe,et)|0;var mt=(I+(x=x+Math.imul(F,Rt)|0)|0)+((8191&(r=(r=r+Math.imul(F,Xt)|0)+Math.imul(B,Rt)|0))<<13)|0;I=((b=b+Math.imul(B,Xt)|0)+(r>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(Y,Nt),r=(r=Math.imul(Y,Vt))+Math.imul(X,Nt)|0,b=Math.imul(X,Vt),x=x+Math.imul(ue,jt)|0,r=(r=r+Math.imul(ue,ti)|0)+Math.imul(Te,jt)|0,b=b+Math.imul(Te,ti)|0,x=x+Math.imul(yt,si)|0,r=(r=r+Math.imul(yt,di)|0)+Math.imul(Ne,si)|0,b=b+Math.imul(Ne,di)|0,x=x+Math.imul(Ae,Se)|0,r=(r=r+Math.imul(Ae,V)|0)+Math.imul(le,Se)|0,b=b+Math.imul(le,V)|0,x=x+Math.imul(q,Ee)|0,r=(r=r+Math.imul(q,et)|0)+Math.imul(j,Ee)|0,b=b+Math.imul(j,et)|0,x=x+Math.imul(xe,Rt)|0,r=(r=r+Math.imul(xe,Xt)|0)+Math.imul(Pe,Rt)|0,b=b+Math.imul(Pe,Xt)|0;var be=(I+(x=x+Math.imul(F,Re)|0)|0)+((8191&(r=(r=r+Math.imul(F,Be)|0)+Math.imul(B,Re)|0))<<13)|0;I=((b=b+Math.imul(B,Be)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,x=Math.imul(Me,Nt),r=(r=Math.imul(Me,Vt))+Math.imul(ze,Nt)|0,b=Math.imul(ze,Vt),x=x+Math.imul(Y,jt)|0,r=(r=r+Math.imul(Y,ti)|0)+Math.imul(X,jt)|0,b=b+Math.imul(X,ti)|0,x=x+Math.imul(ue,si)|0,r=(r=r+Math.imul(ue,di)|0)+Math.imul(Te,si)|0,b=b+Math.imul(Te,di)|0,x=x+Math.imul(yt,Se)|0,r=(r=r+Math.imul(yt,V)|0)+Math.imul(Ne,Se)|0,b=b+Math.imul(Ne,V)|0,x=x+Math.imul(Ae,Ee)|0,r=(r=r+Math.imul(Ae,et)|0)+Math.imul(le,Ee)|0,b=b+Math.imul(le,et)|0,x=x+Math.imul(q,Rt)|0,r=(r=r+Math.imul(q,Xt)|0)+Math.imul(j,Rt)|0,b=b+Math.imul(j,Xt)|0,x=x+Math.imul(xe,Re)|0,r=(r=r+Math.imul(xe,Be)|0)+Math.imul(Pe,Re)|0,b=b+Math.imul(Pe,Be)|0;var qe=(I+(x=x+Math.imul(F,ot)|0)|0)+((8191&(r=(r=r+Math.imul(F,At)|0)+Math.imul(B,ot)|0))<<13)|0;I=((b=b+Math.imul(B,At)|0)+(r>>>13)|0)+(qe>>>26)|0,qe&=67108863,x=Math.imul(it,Nt),r=(r=Math.imul(it,Vt))+Math.imul(ft,Nt)|0,b=Math.imul(ft,Vt),x=x+Math.imul(Me,jt)|0,r=(r=r+Math.imul(Me,ti)|0)+Math.imul(ze,jt)|0,b=b+Math.imul(ze,ti)|0,x=x+Math.imul(Y,si)|0,r=(r=r+Math.imul(Y,di)|0)+Math.imul(X,si)|0,b=b+Math.imul(X,di)|0,x=x+Math.imul(ue,Se)|0,r=(r=r+Math.imul(ue,V)|0)+Math.imul(Te,Se)|0,b=b+Math.imul(Te,V)|0,x=x+Math.imul(yt,Ee)|0,r=(r=r+Math.imul(yt,et)|0)+Math.imul(Ne,Ee)|0,b=b+Math.imul(Ne,et)|0,x=x+Math.imul(Ae,Rt)|0,r=(r=r+Math.imul(Ae,Xt)|0)+Math.imul(le,Rt)|0,b=b+Math.imul(le,Xt)|0,x=x+Math.imul(q,Re)|0,r=(r=r+Math.imul(q,Be)|0)+Math.imul(j,Re)|0,b=b+Math.imul(j,Be)|0,x=x+Math.imul(xe,ot)|0,r=(r=r+Math.imul(xe,At)|0)+Math.imul(Pe,ot)|0,b=b+Math.imul(Pe,At)|0;var vt=(I+(x=x+Math.imul(F,Ut)|0)|0)+((8191&(r=(r=r+Math.imul(F,Ft)|0)+Math.imul(B,Ut)|0))<<13)|0;I=((b=b+Math.imul(B,Ft)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,x=Math.imul(st,Nt),r=(r=Math.imul(st,Vt))+Math.imul(wt,Nt)|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(Me,si)|0,r=(r=r+Math.imul(Me,di)|0)+Math.imul(ze,si)|0,b=b+Math.imul(ze,di)|0,x=x+Math.imul(Y,Se)|0,r=(r=r+Math.imul(Y,V)|0)+Math.imul(X,Se)|0,b=b+Math.imul(X,V)|0,x=x+Math.imul(ue,Ee)|0,r=(r=r+Math.imul(ue,et)|0)+Math.imul(Te,Ee)|0,b=b+Math.imul(Te,et)|0,x=x+Math.imul(yt,Rt)|0,r=(r=r+Math.imul(yt,Xt)|0)+Math.imul(Ne,Rt)|0,b=b+Math.imul(Ne,Xt)|0,x=x+Math.imul(Ae,Re)|0,r=(r=r+Math.imul(Ae,Be)|0)+Math.imul(le,Re)|0,b=b+Math.imul(le,Be)|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(xe,Ut)|0,r=(r=r+Math.imul(xe,Ft)|0)+Math.imul(Pe,Ut)|0,b=b+Math.imul(Pe,Ft)|0;var me=(I+(x=x+Math.imul(F,ai)|0)|0)+((8191&(r=(r=r+Math.imul(F,ci)|0)+Math.imul(B,ai)|0))<<13)|0;I=((b=b+Math.imul(B,ci)|0)+(r>>>13)|0)+(me>>>26)|0,me&=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(Me,Se)|0,r=(r=r+Math.imul(Me,V)|0)+Math.imul(ze,Se)|0,b=b+Math.imul(ze,V)|0,x=x+Math.imul(Y,Ee)|0,r=(r=r+Math.imul(Y,et)|0)+Math.imul(X,Ee)|0,b=b+Math.imul(X,et)|0,x=x+Math.imul(ue,Rt)|0,r=(r=r+Math.imul(ue,Xt)|0)+Math.imul(Te,Rt)|0,b=b+Math.imul(Te,Xt)|0,x=x+Math.imul(yt,Re)|0,r=(r=r+Math.imul(yt,Be)|0)+Math.imul(Ne,Re)|0,b=b+Math.imul(Ne,Be)|0,x=x+Math.imul(Ae,ot)|0,r=(r=r+Math.imul(Ae,At)|0)+Math.imul(le,ot)|0,b=b+Math.imul(le,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 $e=(I+(x=x+Math.imul(xe,ai)|0)|0)+((8191&(r=(r=r+Math.imul(xe,ci)|0)+Math.imul(Pe,ai)|0))<<13)|0;I=((b=b+Math.imul(Pe,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,Se)|0,r=(r=r+Math.imul(it,V)|0)+Math.imul(ft,Se)|0,b=b+Math.imul(ft,V)|0,x=x+Math.imul(Me,Ee)|0,r=(r=r+Math.imul(Me,et)|0)+Math.imul(ze,Ee)|0,b=b+Math.imul(ze,et)|0,x=x+Math.imul(Y,Rt)|0,r=(r=r+Math.imul(Y,Xt)|0)+Math.imul(X,Rt)|0,b=b+Math.imul(X,Xt)|0,x=x+Math.imul(ue,Re)|0,r=(r=r+Math.imul(ue,Be)|0)+Math.imul(Te,Re)|0,b=b+Math.imul(Te,Be)|0,x=x+Math.imul(yt,ot)|0,r=(r=r+Math.imul(yt,At)|0)+Math.imul(Ne,ot)|0,b=b+Math.imul(Ne,At)|0,x=x+Math.imul(Ae,Ut)|0,r=(r=r+Math.imul(Ae,Ft)|0)+Math.imul(le,Ut)|0,b=b+Math.imul(le,Ft)|0;var St=(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)+(St>>>26)|0,St&=67108863,x=Math.imul(st,Se),r=(r=Math.imul(st,V))+Math.imul(wt,Se)|0,b=Math.imul(wt,V),x=x+Math.imul(it,Ee)|0,r=(r=r+Math.imul(it,et)|0)+Math.imul(ft,Ee)|0,b=b+Math.imul(ft,et)|0,x=x+Math.imul(Me,Rt)|0,r=(r=r+Math.imul(Me,Xt)|0)+Math.imul(ze,Rt)|0,b=b+Math.imul(ze,Xt)|0,x=x+Math.imul(Y,Re)|0,r=(r=r+Math.imul(Y,Be)|0)+Math.imul(X,Re)|0,b=b+Math.imul(X,Be)|0,x=x+Math.imul(ue,ot)|0,r=(r=r+Math.imul(ue,At)|0)+Math.imul(Te,ot)|0,b=b+Math.imul(Te,At)|0,x=x+Math.imul(yt,Ut)|0,r=(r=r+Math.imul(yt,Ft)|0)+Math.imul(Ne,Ut)|0,b=b+Math.imul(Ne,Ft)|0;var Pt=(I+(x=x+Math.imul(Ae,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Ae,ci)|0)+Math.imul(le,ai)|0))<<13)|0;I=((b=b+Math.imul(le,ci)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(st,Ee),r=(r=Math.imul(st,et))+Math.imul(wt,Ee)|0,b=Math.imul(wt,et),x=x+Math.imul(it,Rt)|0,r=(r=r+Math.imul(it,Xt)|0)+Math.imul(ft,Rt)|0,b=b+Math.imul(ft,Xt)|0,x=x+Math.imul(Me,Re)|0,r=(r=r+Math.imul(Me,Be)|0)+Math.imul(ze,Re)|0,b=b+Math.imul(ze,Be)|0,x=x+Math.imul(Y,ot)|0,r=(r=r+Math.imul(Y,At)|0)+Math.imul(X,ot)|0,b=b+Math.imul(X,At)|0,x=x+Math.imul(ue,Ut)|0,r=(r=r+Math.imul(ue,Ft)|0)+Math.imul(Te,Ut)|0,b=b+Math.imul(Te,Ft)|0;var yi=(I+(x=x+Math.imul(yt,ai)|0)|0)+((8191&(r=(r=r+Math.imul(yt,ci)|0)+Math.imul(Ne,ai)|0))<<13)|0;I=((b=b+Math.imul(Ne,ci)|0)+(r>>>13)|0)+(yi>>>26)|0,yi&=67108863,x=Math.imul(st,Rt),r=(r=Math.imul(st,Xt))+Math.imul(wt,Rt)|0,b=Math.imul(wt,Xt),x=x+Math.imul(it,Re)|0,r=(r=r+Math.imul(it,Be)|0)+Math.imul(ft,Re)|0,b=b+Math.imul(ft,Be)|0,x=x+Math.imul(Me,ot)|0,r=(r=r+Math.imul(Me,At)|0)+Math.imul(ze,ot)|0,b=b+Math.imul(ze,At)|0,x=x+Math.imul(Y,Ut)|0,r=(r=r+Math.imul(Y,Ft)|0)+Math.imul(X,Ut)|0,b=b+Math.imul(X,Ft)|0;var Pi=(I+(x=x+Math.imul(ue,ai)|0)|0)+((8191&(r=(r=r+Math.imul(ue,ci)|0)+Math.imul(Te,ai)|0))<<13)|0;I=((b=b+Math.imul(Te,ci)|0)+(r>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,x=Math.imul(st,Re),r=(r=Math.imul(st,Be))+Math.imul(wt,Re)|0,b=Math.imul(wt,Be),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(Me,Ut)|0,r=(r=r+Math.imul(Me,Ft)|0)+Math.imul(ze,Ut)|0,b=b+Math.imul(ze,Ft)|0;var Ii=(I+(x=x+Math.imul(Y,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Y,ci)|0)+Math.imul(X,ai)|0))<<13)|0;I=((b=b+Math.imul(X,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(Me,ai)|0)|0)+((8191&(r=(r=r+Math.imul(Me,ci)|0)+Math.imul(ze,ai)|0))<<13)|0;I=((b=b+Math.imul(ze,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,L[0]=rn,L[1]=Vi,L[2]=Di,L[3]=Xi,L[4]=Ke,L[5]=mt,L[6]=be,L[7]=qe,L[8]=vt,L[9]=me,L[10]=$e,L[11]=St,L[12]=Pt,L[13]=yi,L[14]=Pi,L[15]=Ii,L[16]=Ki,L[17]=at,L[18]=Qt,0!==I&&(L[19]=I,p.length++),p};function G(y,i,a){return(new W).mulp(y,i,a)}function W(y,i){this.x=y,this.y=i}Math.imul||(w=D),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?D(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 L=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 B=(0|y.words[_-r])*(0|i.words[r]),te=67108863&B;I=67108863&(te=te+I|0),u+=(L=(L=L+(B/67108864|0)|0)+(te>>>26)|0)>>>26,L&=67108863}a.words[_]=I,p=L,L=u}return 0!==p?a.words[_]=p:a.length--,a.strip()}(this,i,a):G(this,i,a),p},W.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},W.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},W.prototype.permute=function(i,a,p,u,_,L){for(var I=0;I<L;I++)u[I]=a[i[I]],_[I]=p[i[I]]},W.prototype.transform=function(i,a,p,u,_,L){this.permute(L,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),J=0;J<_;J+=x)for(var F=r,B=b,te=0;te<I;te++){var xe=p[J+te],Pe=u[J+te],Fe=p[J+te+I],q=u[J+te+I],j=F*Fe-B*q;q=F*q+B*Fe,p[J+te]=xe+(Fe=j),u[J+te]=Pe+q,p[J+te+I]=xe-Fe,u[J+te+I]=Pe-q,te!==x&&(j=r*F-b*B,B=r*B+b*F,F=j)}},W.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},W.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]=-_}},W.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},W.prototype.convert13b=function(i,a,p,u){for(var _=0,L=0;L<a;L++)p[2*L]=8191&(_+=0|i[L]),p[2*L+1]=8191&(_>>>=13),_>>>=13;for(L=2*a;L<u;++L)p[L]=0;v(0===_),v(0==(-8192&_))},W.prototype.stub=function(i){for(var a=new Array(i),p=0;p<i;p++)a[p]=0;return a},W.prototype.mulp=function(i,a,p){var u=2*this.guessLen13b(i.length,a.length),_=this.makeRBT(u),L=this.stub(u),I=new Array(u),x=new Array(u),r=new Array(u),b=new Array(u),J=new Array(u),F=new Array(u),B=p.words;B.length=u,this.convert13b(i.words,i.length,I,u),this.convert13b(a.words,a.length,b,u),this.transform(I,L,x,r,u,_),this.transform(b,L,J,F,u,_);for(var te=0;te<u;te++){var xe=x[te]*J[te]-r[te]*F[te];r[te]=x[te]*F[te]+r[te]*J[te],x[te]=xe}return this.conjugate(x,r,u),this.transform(x,r,B,L,u,_),this.conjugate(B,L,u),this.normalize13b(B,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),G(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 L=0;for(_=0;_<this.length;_++){var I=this.words[_]&u;this.words[_]=(0|this.words[_])-I<<a|L,L=I>>>26-a}L&&(this.words[_]=L,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,L=Math.min((i-_)/26,this.length),I=67108863^67108863>>>_<<_,x=p;if(u-=L,u=Math.max(0,u),x){for(var r=0;r<L;r++)x.words[r]=this.words[r];x.length=L}if(0!==L)if(this.length>L)for(this.length-=L,r=0;r<this.length;r++)this.words[r]=this.words[r+L];else this.words[0]=0,this.length=1;var b=0;for(r=this.length-1;r>=0&&(0!==b||r>=u);r--){var J=0|this.words[r];this.words[r]=b<<26-_|J>>>_,b=J&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 L,I=0;for(_=0;_<i.length;_++){L=(0|this.words[_+p])+I;var x=(0|i.words[_])*a;I=((L-=67108863&x)>>26)-(x/67108864|0),this.words[_+p]=67108863&L}for(;_<this.length-p;_++)I=(L=(0|this.words[_+p])+I)>>26,this.words[_+p]=67108863&L;if(0===I)return this.strip();for(v(-1===I),I=0,_=0;_<this.length;_++)I=(L=-(0|this.words[_])+I)>>26,this.words[_]=67108863&L;return this.negative=1,this.strip()},s.prototype._wordDiv=function(i,a){var p,u=this.clone(),_=i,L=0|_.words[_.length-1];0!=(p=26-this._countBits(L))&&(_=_.ushln(p),u.iushln(p),L=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 J=u.clone()._ishlnsubmul(_,1,x);0===J.negative&&(u=J,r&&(r.words[x]=1));for(var F=x-1;F>=0;F--){var B=67108864*(0|u.words[_.length+F])+(0|u.words[_.length+F-1]);for(B=Math.min(B/L|0,67108863),u._ishlnsubmul(_,B,F);0!==u.negative;)B--,u.negative=0,u._ishlnsubmul(_,1,F),u.isZero()||(u.negative^=1);r&&(r.words[F]=B)}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?(L=this.neg().divmod(i,a),"mod"!==a&&(u=L.div.neg()),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.iadd(i)),{div:u,mod:_}):0===this.negative&&0!==i.negative?(L=this.divmod(i.neg(),a),"mod"!==a&&(u=L.div.neg()),{div:u,mod:L.mod}):0!=(this.negative&i.negative)?(L=this.neg().divmod(i.neg(),a),"div"!==a&&(_=L.mod.neg(),p&&0!==_.negative&&_.isub(i)),{div:L.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,_,L},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),L=p.cmp(u);return L<0||1===_&&0===L?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),L=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 J=0,F=1;0==(a.words[0]&F)&&J<26;++J,F<<=1);if(J>0)for(a.iushrn(J);J-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(r),_.isub(b)),u.iushrn(1),_.iushrn(1);for(var B=0,te=1;0==(p.words[0]&te)&&B<26;++B,te<<=1);if(B>0)for(p.iushrn(B);B-- >0;)(L.isOdd()||I.isOdd())&&(L.iadd(r),I.isub(b)),L.iushrn(1),I.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(L),_.isub(I)):(p.isub(a),L.isub(u),I.isub(_))}return{a:L,b:I,gcd:p.iushln(x)}},s.prototype._invmp=function(i){v(0===i.negative),v(!i.isZero());var J,a=this,p=i.clone();a=0!==a.negative?a.umod(i):a.clone();for(var u=new s(1),_=new s(0),L=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(L),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(L),_.iushrn(1);a.cmp(p)>=0?(a.isub(p),u.isub(_)):(p.isub(a),_.isub(u))}return(J=0===a.cmpn(1)?u:_).cmpn(0)<0&&J.iadd(i),J},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 L=a;a=p,p=L}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,L=p;0!==_&&L<this.length;L++){var I=0|this.words[L];_=(I+=_)>>>26,this.words[L]=I&=67108863}return 0!==_&&(this.words[L]=_,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 se(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 ee={k256:null,p224:null,p192:null,p25519:null};function ie(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 _e(){ie.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function fe(){ie.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function de(){ie.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ne(){ie.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(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 oe(y){se.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)}ie.prototype._tmp=function(){var i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},ie.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},ie.prototype.split=function(i,a){i.iushrn(this.n,0,a)},ie.prototype.imulK=function(i){return i.imul(this.k)},M(_e,ie),_e.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 L=i.words[9];for(a.words[a.length++]=L&p,_=10;_<i.length;_++){var I=0|i.words[_];i.words[_-10]=(I&p)<<4|L>>>22,L=I}i.words[_-10]=L>>>=22,i.length-=0===L&&i.length>10?10:9},_e.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},M(fe,ie),M(de,ie),M(ne,ie),ne.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(ee[i])return ee[i];var a;if("k256"===i)a=new _e;else if("p224"===i)a=new fe;else if("p192"===i)a=new de;else{if("p25519"!==i)throw new Error("Unknown prime "+i);a=new ne}return ee[i]=a,a},se.prototype._verify1=function(i){v(0===i.negative,"red works only with positives"),v(i.red,"red works only with red numbers")},se.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")},se.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},se.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},se.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)},se.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},se.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)},se.prototype.isub=function(i,a){this._verify2(i,a);var p=i.isub(a);return p.cmpn(0)<0&&p.iadd(this.m),p},se.prototype.shl=function(i,a){return this._verify1(i),this.imod(i.ushln(a))},se.prototype.imul=function(i,a){return this._verify2(i,a),this.imod(i.imul(a))},se.prototype.mul=function(i,a){return this._verify2(i,a),this.imod(i.mul(a))},se.prototype.isqr=function(i){return this.imul(i,i.clone())},se.prototype.sqr=function(i){return this.mul(i,i)},se.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 L=new s(1).toRed(this),I=L.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),J=this.pow(i,u.addn(1).iushrn(1)),F=this.pow(i,u),B=_;0!==F.cmp(L);){for(var te=F,xe=0;0!==te.cmp(L);xe++)te=te.redSqr();v(xe<B);var Pe=this.pow(b,new s(1).iushln(B-xe-1));J=J.redMul(Pe),b=Pe.redSqr(),F=F.redMul(b),B=xe}return J},se.prototype.invm=function(i){var a=i._invmp(this.m);return 0!==a.negative?(a.negative=0,this.imod(a).redNeg()):this.imod(a)},se.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 L=u[0],I=0,x=0,r=a.bitLength()%26;for(0===r&&(r=26),_=a.length-1;_>=0;_--){for(var b=a.words[_],J=r-1;J>=0;J--){var F=b>>J&1;L!==u[0]&&(L=this.sqr(L)),0!==F||0!==I?(I<<=1,I|=F,(4==++x||0===_&&0===J)&&(L=this.mul(L,u[I]),x=0,I=0)):x=0}r=26}return L},se.prototype.convertTo=function(i){var a=i.umod(this.m);return a===i?a.clone():a},se.prototype.convertFrom=function(i){var a=i.clone();return a.red=null,a},s.mont=function(i){return new oe(i)},M(oe,se),oe.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},oe.prototype.convertFrom=function(i){var a=this.imod(i.mul(this.rinv));return a.red=null,a},oe.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),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},oe.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),L=_;return _.cmp(this.m)>=0?L=_.isub(this.m):_.cmpn(0)<0&&(L=_.iadd(this.m)),L._forceRed(this)},oe.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ue=m.nmd(Ue),this)},6705:(Ue,K,m)=>{var e=m(2772),t=m(6945),v=m(9401),M=m(2057),s=m(8466),C=m(6386),c=m(8651),R=m(3502).Buffer;Ue.exports=function(S,D,w){var U;U=S.padding?S.padding:w?1:4;var ee,G=e(S),W=G.modulus.byteLength();if(D.length>W||new M(D).cmp(G.modulus)>=0)throw new Error("decryption error");ee=w?c(new M(D),G):s(D,G);var ie=R.alloc(W-ee.length);if(ee=R.concat([ie,ee],W),4===U)return function(P,S){var D=P.modulus.byteLength(),w=C("sha1").update(R.alloc(0)).digest(),U=w.length;if(0!==S[0])throw new Error("decryption error");var G=S.slice(1,U+1),W=S.slice(U+1),ee=v(G,t(W,U)),ie=v(W,t(ee,D-U-1));if(function(P,S){P=R.from(P),S=R.from(S);var D=0,w=P.length;P.length!==S.length&&(D++,w=Math.min(P.length,S.length));for(var U=-1;++U<w;)D+=P[U]^S[U];return D}(w,ie.slice(0,U)))throw new Error("decryption error");for(var _e=U;0===ie[_e];)_e++;if(1!==ie[_e++])throw new Error("decryption error");return ie.slice(_e)}(G,ee);if(1===U)return function(P,S,D){for(var w=S.slice(0,2),U=2,G=0;0!==S[U++];)if(U>=S.length){G++;break}var W=S.slice(2,U-1);if(("0002"!==w.toString("hex")&&!D||"0001"!==w.toString("hex")&&D)&&G++,W.length<8&&G++,G)throw new Error("decryption error");return S.slice(U)}(0,ee,w);if(3===U)return ee;throw new Error("unknown padding")}},6562:(Ue,K,m)=>{var e=m(2772),t=m(3753),v=m(6386),M=m(6945),s=m(9401),C=m(2057),c=m(8651),R=m(8466),o=m(3502).Buffer;Ue.exports=function(D,w,U){var G;G=D.padding?D.padding:U?1:4;var ee,W=e(D);if(4===G)ee=function(S,D){var w=S.modulus.byteLength(),U=D.length,G=v("sha1").update(o.alloc(0)).digest(),W=G.length,ee=2*W;if(U>w-ee-2)throw new Error("message too long");var ie=o.alloc(w-U-ee-2),_e=w-W-1,fe=t(W),de=s(o.concat([G,ie,o.alloc(1,1),D],_e),M(fe,_e)),ne=s(fe,M(de,W));return new C(o.concat([o.alloc(1),ne,de],w))}(W,w);else if(1===G)ee=function(S,D,w){var W,U=D.length,G=S.modulus.byteLength();if(U>G-11)throw new Error("message too long");return W=w?o.alloc(G-U-3,255):function(S){for(var W,D=o.allocUnsafe(S),w=0,U=t(2*S),G=0;w<S;)G===U.length&&(U=t(2*S),G=0),(W=U[G++])&&(D[w++]=W);return D}(G-U-3),new C(o.concat([o.from([0,w?1:2]),W,o.alloc(1),D],G))}(W,w,U);else{if(3!==G)throw new Error("unknown padding");if((ee=new C(w)).cmp(W.modulus)>=0)throw new Error("data too long for modulus")}return U?R(ee,W):c(ee,W)}},8651:(Ue,K,m)=>{var e=m(2057),t=m(3502).Buffer;Ue.exports=function(M,s){return t.from(M.toRed(e.mont(s.modulus)).redPow(new e(s.publicExponent)).fromRed().toArray())}},9401:Ue=>{Ue.exports=function(m,e){for(var t=m.length,v=-1;++v<t;)m[v]^=e[v];return m}},3259:(Ue,K,m)=>{const e=m(8695),t=m(1465),v=m(3210),M=m(2334);function s(C,c,R,o,O){const T=[].slice.call(arguments,1),P=T.length,S="function"==typeof T[P-1];if(!S&&!e())throw new Error("Callback required as last argument");if(!S){if(P<1)throw new Error("Too few arguments provided");return 1===P?(R=c,c=o=void 0):2===P&&!c.getContext&&(o=R,R=c,c=void 0),new Promise(function(D,w){try{const U=t.create(R,o);D(C(U,c,o))}catch(U){w(U)}})}if(P<2)throw new Error("Too few arguments provided");2===P?(O=R,R=c,c=o=void 0):3===P&&(c.getContext&&void 0===O?(O=o,o=void 0):(O=o,o=R,R=c,c=void 0));try{const D=t.create(R,o);O(null,C(D,c,o))}catch(D){O(D)}}K.create=t.create,K.toCanvas=s.bind(null,v.render),K.toDataURL=s.bind(null,v.renderToDataURL),K.toString=s.bind(null,function(C,c,R){return M.render(C,R)})},8695:Ue=>{Ue.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Ue,K,m)=>{const e=m(4792).getSymbolSize;K.getRowColCoords=function(v){if(1===v)return[];const M=Math.floor(v/7)+2,s=e(v),C=145===s?26:2*Math.ceil((s-13)/(2*M-2)),c=[s-7];for(let R=1;R<M-1;R++)c[R]=c[R-1]-C;return c.push(6),c.reverse()},K.getPositions=function(v){const M=[],s=K.getRowColCoords(v),C=s.length;for(let c=0;c<C;c++)for(let R=0;R<C;R++)0===c&&0===R||0===c&&R===C-1||c===C-1&&0===R||M.push([s[c],s[R]]);return M}},2424:(Ue,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(M){this.mode=e.ALPHANUMERIC,this.data=M}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 C;for(C=0;C+2<=this.data.length;C+=2){let c=45*t.indexOf(this.data[C]);c+=t.indexOf(this.data[C+1]),s.put(c,11)}this.data.length%2&&s.put(t.indexOf(this.data[C]),6)},Ue.exports=v},2118:Ue=>{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++}},Ue.exports=K},4425:Ue=>{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 M=m*this.size+e;this.data[M]=t,v&&(this.reservedBit[M]=!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]},Ue.exports=K},5663:(Ue,K,m)=>{const e=m(8419),t=m(4016);function v(M){this.mode=t.BYTE,this.data=new Uint8Array(e(M))}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(M){for(let s=0,C=this.data.length;s<C;s++)M.put(this.data[s],8)},Ue.exports=v},4655:(Ue,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,C){switch(C){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,C){switch(C){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:(Ue,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(M){return v}}},3114:(Ue,K,m)=>{const e=m(4792).getSymbolSize;K.getPositions=function(M){const s=e(M);return[[0,0],[s-7,0],[0,s-7]]}},7078:(Ue,K,m)=>{const e=m(4792),M=e.getBCHDigit(1335);K.getEncodedBits=function(C,c){const R=C.bit<<3|c;let o=R<<10;for(;e.getBCHDigit(o)-M>=0;)o^=1335<<e.getBCHDigit(o)-M;return 21522^(R<<10|o)}},5339:(Ue,K)=>{const m=new Uint8Array(512),e=new Uint8Array(256);(function(){let v=1;for(let M=0;M<255;M++)m[M]=v,e[v]=M,v<<=1,256&v&&(v^=285);for(let M=255;M<512;M++)m[M]=m[M-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,M){return 0===v||0===M?0:m[e[v]+e[M]]}},4388:(Ue,K,m)=>{const e=m(4016),t=m(4792);function v(M){this.mode=e.KANJI,this.data=M}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(M){let s;for(s=0;s<this.data.length;s++){let C=t.toSJIS(this.data[s]);if(C>=33088&&C<=40956)C-=33088;else{if(!(C>=57408&&C<=60351))throw new Error("Invalid SJIS character: "+this.data[s]+"\nMake sure your charset is UTF-8");C-=49472}C=192*(C>>>8&255)+(255&C),M.put(C,13)}},Ue.exports=v},3667:(Ue,K)=>{K.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function e(t,v,M){switch(t){case K.Patterns.PATTERN000:return(v+M)%2==0;case K.Patterns.PATTERN001:return v%2==0;case K.Patterns.PATTERN010:return M%3==0;case K.Patterns.PATTERN011:return(v+M)%3==0;case K.Patterns.PATTERN100:return(Math.floor(v/2)+Math.floor(M/3))%2==0;case K.Patterns.PATTERN101:return v*M%2+v*M%3==0;case K.Patterns.PATTERN110:return(v*M%2+v*M%3)%2==0;case K.Patterns.PATTERN111:return(v*M%3+(v+M)%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 M=v.size;let s=0,C=0,c=0,R=null,o=null;for(let O=0;O<M;O++){C=c=0,R=o=null;for(let T=0;T<M;T++){let P=v.get(O,T);P===R?C++:(C>=5&&(s+=C-5+3),R=P,C=1),P=v.get(T,O),P===o?c++:(c>=5&&(s+=c-5+3),o=P,c=1)}C>=5&&(s+=C-5+3),c>=5&&(s+=c-5+3)}return s},K.getPenaltyN2=function(v){const M=v.size;let s=0;for(let C=0;C<M-1;C++)for(let c=0;c<M-1;c++){const R=v.get(C,c)+v.get(C,c+1)+v.get(C+1,c)+v.get(C+1,c+1);(4===R||0===R)&&s++}return 3*s},K.getPenaltyN3=function(v){const M=v.size;let s=0,C=0,c=0;for(let R=0;R<M;R++){C=c=0;for(let o=0;o<M;o++)C=C<<1&2047|v.get(R,o),o>=10&&(1488===C||93===C)&&s++,c=c<<1&2047|v.get(o,R),o>=10&&(1488===c||93===c)&&s++}return 40*s},K.getPenaltyN4=function(v){let M=0;const s=v.data.length;for(let c=0;c<s;c++)M+=v.data[c];return 10*Math.abs(Math.ceil(100*M/s/5)-10)},K.applyMask=function(v,M){const s=M.size;for(let C=0;C<s;C++)for(let c=0;c<s;c++)M.isReserved(c,C)||M.xor(c,C,e(v,c,C))},K.getBestMask=function(v,M){const s=Object.keys(K.Patterns).length;let C=0,c=1/0;for(let R=0;R<s;R++){M(R),K.applyMask(R,v);const o=K.getPenaltyN1(v)+K.getPenaltyN2(v)+K.getPenaltyN3(v)+K.getPenaltyN4(v);K.applyMask(R,v),o<c&&(c=o,C=R)}return C}},4016:(Ue,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,C){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!e.isValid(C))throw new Error("Invalid version: "+C);return C>=1&&C<10?s.ccBits[0]:C<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,C){if(K.isValid(s))return s;try{return function(M){if("string"!=typeof M)throw new Error("Param is not a string");switch(M.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: "+M)}}(s)}catch(c){return C}}},7783:(Ue,K,m)=>{const e=m(4016);function t(v){this.mode=e.NUMERIC,this.data=v.toString()}t.getBitsLength=function(M){return 10*Math.floor(M/3)+(M%3?M%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(M){let s,C,c;for(s=0;s+3<=this.data.length;s+=3)C=this.data.substr(s,3),c=parseInt(C,10),M.put(c,10);const R=this.data.length-s;R>0&&(C=this.data.substr(s),c=parseInt(C,10),M.put(c,3*R+1))},Ue.exports=t},1106:(Ue,K,m)=>{const e=m(5339);K.mul=function(v,M){const s=new Uint8Array(v.length+M.length-1);for(let C=0;C<v.length;C++)for(let c=0;c<M.length;c++)s[C+c]^=e.mul(v[C],M[c]);return s},K.mod=function(v,M){let s=new Uint8Array(v);for(;s.length-M.length>=0;){const C=s[0];for(let R=0;R<M.length;R++)s[R]^=e.mul(M[R],C);let c=0;for(;c<s.length&&0===s[c];)c++;s=s.slice(c)}return s},K.generateECPolynomial=function(v){let M=new Uint8Array([1]);for(let s=0;s<v;s++)M=K.mul(M,new Uint8Array([1,e.exp(s)]));return M}},1465:(Ue,K,m)=>{const e=m(4792),t=m(2259),v=m(2118),M=m(4425),s=m(6221),C=m(3114),c=m(3667),R=m(4655),o=m(2636),O=m(2088),T=m(7078),P=m(4016),S=m(2033);function W(de,ne,se){const oe=de.size,y=T.getEncodedBits(ne,se);let i,a;for(i=0;i<15;i++)a=1==(y>>i&1),de.set(i<6?i:i<8?i+1:oe-15+i,8,a,!0),de.set(8,i<8?oe-i-1:i<9?15-i-1+1:15-i-1,a,!0);de.set(oe-8,8,1,!0)}function fe(de,ne,se,oe){let y;if(Array.isArray(de))y=S.fromArray(de);else{if("string"!=typeof de)throw new Error("Invalid data");{let _=ne;if(!_){const L=S.rawSplit(de);_=O.getBestVersionForData(L,se)}y=S.fromString(de,_||40)}}const i=O.getBestVersionForData(y,se);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(ne){if(ne<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 ne=i;const a=function(de,ne,se){const oe=new v;se.forEach(function(u){oe.put(u.mode.bit,4),oe.put(u.getLength(),P.getCharCountIndicator(u.mode,de)),u.write(oe)});const a=8*(e.getSymbolTotalCodewords(de)-R.getTotalCodewordsCount(de,ne));for(oe.getLengthInBits()+4<=a&&oe.put(0,4);oe.getLengthInBits()%8!=0;)oe.putBit(0);const p=(a-oe.getLengthInBits())/8;for(let u=0;u<p;u++)oe.put(u%2?17:236,8);return function(de,ne,se){const oe=e.getSymbolTotalCodewords(ne),i=oe-R.getTotalCodewordsCount(ne,se),a=R.getBlocksCount(ne,se),u=a-oe%a,_=Math.floor(oe/a),L=Math.floor(i/a),I=L+1,x=_-L,r=new o(x);let b=0;const J=new Array(a),F=new Array(a);let B=0;const te=new Uint8Array(de.buffer);for(let j=0;j<a;j++){const we=j<u?L:I;J[j]=te.slice(b,b+we),F[j]=r.encode(J[j]),b+=we,B=Math.max(B,we)}const xe=new Uint8Array(oe);let Fe,q,Pe=0;for(Fe=0;Fe<B;Fe++)for(q=0;q<a;q++)Fe<J[q].length&&(xe[Pe++]=J[q][Fe]);for(Fe=0;Fe<x;Fe++)for(q=0;q<a;q++)xe[Pe++]=F[q][Fe];return xe}(oe,de,ne)}(ne,se,y),p=e.getSymbolSize(ne),u=new M(p);return function(de,ne){const se=de.size,oe=C.getPositions(ne);for(let y=0;y<oe.length;y++){const i=oe[y][0],a=oe[y][1];for(let p=-1;p<=7;p++)if(!(i+p<=-1||se<=i+p))for(let u=-1;u<=7;u++)a+u<=-1||se<=a+u||de.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,ne),function(de){const ne=de.size;for(let se=8;se<ne-8;se++){const oe=se%2==0;de.set(se,6,oe,!0),de.set(6,se,oe,!0)}}(u),function(de,ne){const se=s.getPositions(ne);for(let oe=0;oe<se.length;oe++){const y=se[oe][0],i=se[oe][1];for(let a=-2;a<=2;a++)for(let p=-2;p<=2;p++)de.set(y+a,i+p,-2===a||2===a||-2===p||2===p||0===a&&0===p,!0)}}(u,ne),W(u,se,0),ne>=7&&function(de,ne){const se=de.size,oe=O.getEncodedBits(ne);let y,i,a;for(let p=0;p<18;p++)y=Math.floor(p/3),i=p%3+se-8-3,a=1==(oe>>p&1),de.set(y,i,a,!0),de.set(i,y,a,!0)}(u,ne),function(de,ne){const se=de.size;let oe=-1,y=se-1,i=7,a=0;for(let p=se-1;p>0;p-=2)for(6===p&&p--;;){for(let u=0;u<2;u++)if(!de.isReserved(y,p-u)){let _=!1;a<ne.length&&(_=1==(ne[a]>>>i&1)),de.set(y,p-u,_),i--,-1===i&&(a++,i=7)}if(y+=oe,y<0||se<=y){y-=oe,oe=-oe;break}}}(u,a),isNaN(oe)&&(oe=c.getBestMask(u,W.bind(null,u,se))),c.applyMask(oe,u),W(u,se,oe),{modules:u,version:ne,errorCorrectionLevel:se,maskPattern:oe,segments:y}}K.create=function(ne,se){if(void 0===ne||""===ne)throw new Error("No input text");let y,i,oe=t.M;return void 0!==se&&(oe=t.from(se.errorCorrectionLevel,t.M),y=O.from(se.version),i=c.from(se.maskPattern),se.toSJISFunc&&e.setToSJISFunction(se.toSJISFunc)),fe(ne,y,oe,i)}},2636:(Ue,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(M){this.degree=M,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(M){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(M.length+this.degree);s.set(M);const C=e.mod(s,this.genPoly),c=this.degree-C.length;if(c>0){const R=new Uint8Array(this.degree);return R.set(C,c),R}return C},Ue.exports=t},2699:(Ue,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 M=new RegExp("^"+t+"$"),s=new RegExp("^"+m+"$"),C=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");K.testKanji=function(R){return M.test(R)},K.testNumeric=function(R){return s.test(R)},K.testAlphanumeric=function(R){return C.test(R)}},2033:(Ue,K,m)=>{const e=m(4016),t=m(7783),v=m(2424),M=m(5663),s=m(4388),C=m(2699),c=m(4792),R=m(4901);function o(G){return unescape(encodeURIComponent(G)).length}function O(G,W,ee){const ie=[];let _e;for(;null!==(_e=G.exec(ee));)ie.push({data:_e[0],index:_e.index,mode:W,length:_e[0].length});return ie}function T(G){const W=O(C.NUMERIC,e.NUMERIC,G),ee=O(C.ALPHANUMERIC,e.ALPHANUMERIC,G);let ie,_e;return c.isKanjiModeEnabled()?(ie=O(C.BYTE,e.BYTE,G),_e=O(C.KANJI,e.KANJI,G)):(ie=O(C.BYTE_KANJI,e.BYTE,G),_e=[]),W.concat(ee,ie,_e).sort(function(de,ne){return de.index-ne.index}).map(function(de){return{data:de.data,mode:de.mode,length:de.length}})}function P(G,W){switch(W){case e.NUMERIC:return t.getBitsLength(G);case e.ALPHANUMERIC:return v.getBitsLength(G);case e.KANJI:return s.getBitsLength(G);case e.BYTE:return M.getBitsLength(G)}}function U(G,W){let ee;const ie=e.getBestModeForData(G);if(ee=e.from(W,ie),ee!==e.BYTE&&ee.bit<ie.bit)throw new Error('"'+G+'" cannot be encoded with mode '+e.toString(ee)+".\n Suggested mode is: "+e.toString(ie));switch(ee===e.KANJI&&!c.isKanjiModeEnabled()&&(ee=e.BYTE),ee){case e.NUMERIC:return new t(G);case e.ALPHANUMERIC:return new v(G);case e.KANJI:return new s(G);case e.BYTE:return new M(G)}}K.fromArray=function(W){return W.reduce(function(ee,ie){return"string"==typeof ie?ee.push(U(ie,null)):ie.data&&ee.push(U(ie.data,ie.mode)),ee},[])},K.fromString=function(W,ee){const _e=function(G){const W=[];for(let ee=0;ee<G.length;ee++){const ie=G[ee];switch(ie.mode){case e.NUMERIC:W.push([ie,{data:ie.data,mode:e.ALPHANUMERIC,length:ie.length},{data:ie.data,mode:e.BYTE,length:ie.length}]);break;case e.ALPHANUMERIC:W.push([ie,{data:ie.data,mode:e.BYTE,length:ie.length}]);break;case e.KANJI:W.push([ie,{data:ie.data,mode:e.BYTE,length:o(ie.data)}]);break;case e.BYTE:W.push([{data:ie.data,mode:e.BYTE,length:o(ie.data)}])}}return W}(T(W,c.isKanjiModeEnabled())),fe=function(G,W){const ee={},ie={start:{}};let _e=["start"];for(let fe=0;fe<G.length;fe++){const de=G[fe],ne=[];for(let se=0;se<de.length;se++){const oe=de[se],y=""+fe+se;ne.push(y),ee[y]={node:oe,lastCount:0},ie[y]={};for(let i=0;i<_e.length;i++){const a=_e[i];ee[a]&&ee[a].node.mode===oe.mode?(ie[a][y]=P(ee[a].lastCount+oe.length,oe.mode)-P(ee[a].lastCount,oe.mode),ee[a].lastCount+=oe.length):(ee[a]&&(ee[a].lastCount=oe.length),ie[a][y]=P(oe.length,oe.mode)+4+e.getCharCountIndicator(oe.mode,W))}}_e=ne}for(let fe=0;fe<_e.length;fe++)ie[_e[fe]].end=0;return{map:ie,table:ee}}(_e,ee),de=R.find_path(fe.map,"start","end"),ne=[];for(let se=1;se<de.length-1;se++)ne.push(fe.table[de[se]].node);return K.fromArray(ne.reduce(function(W,ee){const ie=W.length-1>=0?W[W.length-1]:null;return ie&&ie.mode===ee.mode?(W[W.length-1].data+=ee.data,W):(W.push(ee),W)},[]))},K.rawSplit=function(W){return K.fromArray(T(W,c.isKanjiModeEnabled()))}},4792:(Ue,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:(Ue,K)=>{K.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},2088:(Ue,K,m)=>{const e=m(4792),t=m(4655),v=m(2259),M=m(4016),s=m(4406),c=e.getBCHDigit(7973);function o(P,S){return M.getCharCountIndicator(P,S)+4}function O(P,S){let D=0;return P.forEach(function(w){D+=o(w.mode,S)+w.getBitsLength()}),D}K.from=function(S,D){return s.isValid(S)?parseInt(S,10):D},K.getCapacity=function(S,D,w){if(!s.isValid(S))throw new Error("Invalid QR Code version");void 0===w&&(w=M.BYTE);const W=8*(e.getSymbolTotalCodewords(S)-t.getTotalCodewordsCount(S,D));if(w===M.MIXED)return W;const ee=W-o(w,S);switch(w){case M.NUMERIC:return Math.floor(ee/10*3);case M.ALPHANUMERIC:return Math.floor(ee/11*2);case M.KANJI:return Math.floor(ee/13);default:return Math.floor(ee/8)}},K.getBestVersionForData=function(S,D){let w;const U=v.from(D,v.M);if(Array.isArray(S)){if(S.length>1)return function(P,S){for(let D=1;D<=40;D++)if(O(P,D)<=K.getCapacity(D,S,M.MIXED))return D}(S,U);if(0===S.length)return 1;w=S[0]}else w=S;return function(P,S,D){for(let w=1;w<=40;w++)if(S<=K.getCapacity(w,D,P))return w}(w.mode,w.getLength(),U)},K.getEncodedBits=function(S){if(!s.isValid(S)||S<7)throw new Error("Invalid QR Code version");let D=S<<12;for(;e.getBCHDigit(D)-c>=0;)D^=7973<<e.getBCHDigit(D)-c;return S<<12|D}},3210:(Ue,K,m)=>{const e=m(6355);K.render=function(s,C,c){let R=c,o=C;void 0===R&&(!C||!C.getContext)&&(R=C,C=void 0),C||(o=function(){try{return document.createElement("canvas")}catch(M){throw new Error("You need to specify a canvas element")}}()),R=e.getOptions(R);const O=e.getImageWidth(s.modules.size,R),T=o.getContext("2d"),P=T.createImageData(O,O);return e.qrToImageData(P.data,s,R),function(M,s,C){M.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=C,s.width=C,s.style.height=C+"px",s.style.width=C+"px"}(T,o,O),T.putImageData(P,0,0),o},K.renderToDataURL=function(s,C,c){let R=c;return void 0===R&&(!C||!C.getContext)&&(R=C,C=void 0),R||(R={}),K.render(s,C,R).toDataURL(R.type||"image/png",(R.rendererOpts||{}).quality)}},2334:(Ue,K,m)=>{const e=m(6355);function t(s,C){const c=s.a/255,R=C+'="'+s.hex+'"';return c<1?R+" "+C+'-opacity="'+c.toFixed(2).slice(1)+'"':R}function v(s,C,c){let R=s+C;return void 0!==c&&(R+=" "+c),R}K.render=function(C,c,R){const o=e.getOptions(c),O=C.modules.size,T=C.modules.data,P=O+2*o.margin,S=o.color.light.a?"<path "+t(o.color.light,"fill")+' d="M0 0h'+P+"v"+P+'H0z"/>':"",D="<path "+t(o.color.dark,"stroke")+' d="'+function(s,C,c){let R="",o=0,O=!1,T=0;for(let P=0;P<s.length;P++){const S=Math.floor(P%C),D=Math.floor(P/C);!S&&!O&&(O=!0),s[P]?(T++,P>0&&S>0&&s[P-1]||(R+=O?v("M",S+c,.5+D+c):v("m",o,0),o=0,O=!1),S+1<C&&s[P+1]||(R+=v("h",T),T=0)):o++}return R}(T,O,o.margin)+'"/>',G='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+'viewBox="0 0 '+P+" "+P+'" shape-rendering="crispEdges">'+S+D+"</svg>\n";return"function"==typeof R&&R(null,G),G}},6355:(Ue,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(M){return[M,M]}))),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 M=t.width&&t.width>=21?t.width:void 0;return{width:M,scale:M?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 M=K.getScale(t,v);return Math.floor((t+2*v.margin)*M)},K.qrToImageData=function(t,v,M){const s=v.modules.size,C=v.modules.data,c=K.getScale(s,M),R=Math.floor((s+2*M.margin)*c),o=M.margin*c,O=[M.color.light,M.color.dark];for(let T=0;T<R;T++)for(let P=0;P<R;P++){let S=4*(T*R+P),D=M.color.light;T>=o&&P>=o&&T<R-o&&P<R-o&&(D=O[C[Math.floor((T-o)/c)*s+Math.floor((P-o)/c)]?1:0]),t[S++]=D.r,t[S++]=D.g,t[S++]=D.b,t[S]=D.a}}},3753:(Ue,K,m)=>{"use strict";var e=65536,M=m(3502).Buffer,s=global.crypto||global.msCrypto;Ue.exports=s&&s.getRandomValues?function(c,R){if(c>4294967295)throw new RangeError("requested too many random bytes");var o=M.allocUnsafe(c);if(c>0)if(c>e)for(var O=0;O<c;O+=e)s.getRandomValues(o.slice(O,O+e));else s.getRandomValues(o);return"function"==typeof R?process.nextTick(function(){R(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:(Ue,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),M=t.Buffer,s=t.kMaxLength,C=global.crypto||global.msCrypto,c=Math.pow(2,32)-1;function R(S,D){if("number"!=typeof S||S!=S)throw new TypeError("offset must be a number");if(S>c||S<0)throw new TypeError("offset must be a uint32");if(S>s||S>D)throw new RangeError("offset out of range")}function o(S,D,w){if("number"!=typeof S||S!=S)throw new TypeError("size must be a number");if(S>c||S<0)throw new TypeError("size must be a uint32");if(S+D>w||S>s)throw new RangeError("buffer too small")}function T(S,D,w,U){if(process.browser){var W=new Uint8Array(S.buffer,D,w);return C.getRandomValues(W),U?void process.nextTick(function(){U(null,S)}):S}if(!U)return v(w).copy(S,D),S;v(w,function(ie,_e){if(ie)return U(ie);_e.copy(S,D),U(null,S)})}C&&C.getRandomValues||!process.browser?(K.randomFill=function(S,D,w,U){if(!(M.isBuffer(S)||S instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof D)U=D,D=0,w=S.length;else if("function"==typeof w)U=w,w=S.length-D;else if("function"!=typeof U)throw new TypeError('"cb" argument must be a function');return R(D,S.length),o(w,D,S.length),T(S,D,w,U)},K.randomFillSync=function(S,D,w){if(void 0===D&&(D=0),!(M.isBuffer(S)||S instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return R(D,S.length),void 0===w&&(w=S.length-D),o(w,D,S.length),T(S,D,w)}):(K.randomFill=e,K.randomFillSync=e)},891:Ue=>{"use strict";var m={};function e(C,c,R){R||(R=Error);var O=function(T){function P(S,D,w){return T.call(this,function(T,P,S){return"string"==typeof c?c:c(T,P,S)}(S,D,w))||this}return function(C,c){C.prototype=Object.create(c.prototype),C.prototype.constructor=C,C.__proto__=c}(P,T),P}(R);O.prototype.name=R.name,O.prototype.code=C,m[C]=O}function t(C,c){if(Array.isArray(C)){var R=C.length;return C=C.map(function(o){return String(o)}),R>2?"one of ".concat(c," ").concat(C.slice(0,R-1).join(", "),", or ")+C[R-1]:2===R?"one of ".concat(c," ").concat(C[0]," or ").concat(C[1]):"of ".concat(c," ").concat(C[0])}return"of ".concat(c," ").concat(String(C))}e("ERR_INVALID_OPT_VALUE",function(C,c){return'The value "'+c+'" is invalid for option "'+C+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(C,c,R){var o,O;if("string"==typeof c&&function(C,c,R){return C.substr(0,c.length)===c}(c,"not ")?(o="must not be",c=c.replace(/^not /,"")):o="must be",function(C,c,R){return(void 0===R||R>C.length)&&(R=C.length),C.substring(R-c.length,R)===c}(C," argument"))O="The ".concat(C," ").concat(o," ").concat(t(c,"type"));else{var T=function(C,c,R){return"number"!=typeof R&&(R=0),!(R+".".length>C.length)&&-1!==C.indexOf(".",R)}(C)?"property":"argument";O='The "'.concat(C,'" ').concat(T," ").concat(o," ").concat(t(c,"type"))}return O+". Received type ".concat(typeof R)},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(C){return"The "+C+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(C){return"Cannot call "+C+" 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(C){return"Unknown encoding: "+C},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ue.exports.q=m},1339:(Ue,K,m)=>{"use strict";var e=Object.keys||function(O){var T=[];for(var P in O)T.push(P);return T};Ue.exports=c;var t=m(3154),v=m(520);m(3894)(c,t);for(var M=e(v.prototype),s=0;s<M.length;s++){var C=M[s];c.prototype[C]||(c.prototype[C]=v.prototype[C])}function c(O){if(!(this instanceof c))return new c(O);t.call(this,O),v.call(this,O),this.allowHalfOpen=!0,O&&(!1===O.readable&&(this.readable=!1),!1===O.writable&&(this.writable=!1),!1===O.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",R)))}function R(){this._writableState.ended||process.nextTick(o,this)}function o(O){O.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(T){void 0===this._readableState||void 0===this._writableState||(this._readableState.destroyed=T,this._writableState.destroyed=T)}})},6071:(Ue,K,m)=>{"use strict";Ue.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,M,s){s(null,v)}},3154:(Ue,K,m)=>{"use strict";var e;Ue.exports=y,y.ReadableState=oe,m(9069);var O,v=function(We,yt){return We.listeners(yt).length},M=m(4970),s=m(3172).Buffer,C=global.Uint8Array||function(){},o=m(4616);O=o&&o.debuglog?o.debuglog("stream"):function(){};var ie,_e,fe,T=m(5019),P=m(1920),D=m(7102).getHighWaterMark,w=m(891).q,U=w.ERR_INVALID_ARG_TYPE,G=w.ERR_STREAM_PUSH_AFTER_EOF,W=w.ERR_METHOD_NOT_IMPLEMENTED,ee=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;m(3894)(y,M);var de=P.errorOrDestroy,ne=["error","close","destroy","pause","resume"];function oe(le,We,yt){e=e||m(1339),"boolean"!=typeof yt&&(yt=We instanceof e),this.objectMode=!!(le=le||{}).objectMode,yt&&(this.objectMode=this.objectMode||!!le.readableObjectMode),this.highWaterMark=D(this,le,"readableHighWaterMark",yt),this.buffer=new T,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!==le.emitClose,this.autoDestroy=!!le.autoDestroy,this.destroyed=!1,this.defaultEncoding=le.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,le.encoding&&(ie||(ie=m(3054).s),this.decoder=new ie(le.encoding),this.encoding=le.encoding)}function y(le){if(e=e||m(1339),!(this instanceof y))return new y(le);this._readableState=new oe(le,this,this instanceof e),this.readable=!0,le&&("function"==typeof le.read&&(this._read=le.read),"function"==typeof le.destroy&&(this._destroy=le.destroy)),M.call(this)}function i(le,We,yt,Ne,Ve){O("readableAddChunk",We);var Te,ue=le._readableState;if(null===We)ue.reading=!1,function(le,We){if(O("onEofChunk"),!We.ended){if(We.decoder){var yt=We.decoder.end();yt&&yt.length&&(We.buffer.push(yt),We.length+=We.objectMode?1:yt.length)}We.ended=!0,We.sync?x(le):(We.needReadable=!1,We.emittedReadable||(We.emittedReadable=!0,r(le)))}}(le,ue);else if(Ve||(Te=function(le,We){var yt;return!function(le){return s.isBuffer(le)||le instanceof C}(We)&&"string"!=typeof We&&void 0!==We&&!le.objectMode&&(yt=new U("chunk",["string","Buffer","Uint8Array"],We)),yt}(ue,We)),Te)de(le,Te);else if(ue.objectMode||We&&We.length>0)if("string"!=typeof We&&!ue.objectMode&&Object.getPrototypeOf(We)!==s.prototype&&(We=function(le){return s.from(le)}(We)),Ne)ue.endEmitted?de(le,new ee):a(le,ue,We,!0);else if(ue.ended)de(le,new G);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!yt?(We=ue.decoder.write(We),ue.objectMode||0!==We.length?a(le,ue,We,!1):b(le,ue)):a(le,ue,We,!1)}else Ne||(ue.reading=!1,b(le,ue));return!ue.ended&&(ue.length<ue.highWaterMark||0===ue.length)}function a(le,We,yt,Ne){We.flowing&&0===We.length&&!We.sync?(We.awaitDrain=0,le.emit("data",yt)):(We.length+=We.objectMode?1:yt.length,Ne?We.buffer.unshift(yt):We.buffer.push(yt),We.needReadable&&x(le)),b(le,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=P.destroy,y.prototype._undestroy=P.undestroy,y.prototype._destroy=function(le,We){We(le)},y.prototype.push=function(le,We){var Ne,yt=this._readableState;return yt.objectMode?Ne=!0:"string"==typeof le&&((We=We||yt.defaultEncoding)!==yt.encoding&&(le=s.from(le,We),We=""),Ne=!0),i(this,le,We,!1,Ne)},y.prototype.unshift=function(le){return i(this,le,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(le){ie||(ie=m(3054).s);var We=new ie(le);this._readableState.decoder=We,this._readableState.encoding=this._readableState.decoder.encoding;for(var yt=this._readableState.buffer.head,Ne="";null!==yt;)Ne+=We.write(yt.data),yt=yt.next;return this._readableState.buffer.clear(),""!==Ne&&this._readableState.buffer.push(Ne),this._readableState.length=Ne.length,this};var u=1073741824;function L(le,We){return le<=0||0===We.length&&We.ended?0:We.objectMode?1:le!=le?We.flowing&&We.length?We.buffer.head.data.length:We.length:(le>We.highWaterMark&&(We.highWaterMark=function(le){return le>=u?le=u:(le--,le|=le>>>1,le|=le>>>2,le|=le>>>4,le|=le>>>8,le|=le>>>16,le++),le}(le)),le<=We.length?le:We.ended?We.length:(We.needReadable=!0,0))}function x(le){var We=le._readableState;O("emitReadable",We.needReadable,We.emittedReadable),We.needReadable=!1,We.emittedReadable||(O("emitReadable",We.flowing),We.emittedReadable=!0,process.nextTick(r,le))}function r(le){var We=le._readableState;O("emitReadable_",We.destroyed,We.length,We.ended),!We.destroyed&&(We.length||We.ended)&&(le.emit("readable"),We.emittedReadable=!1),We.needReadable=!We.flowing&&!We.ended&&We.length<=We.highWaterMark,Fe(le)}function b(le,We){We.readingMore||(We.readingMore=!0,process.nextTick(J,le,We))}function J(le,We){for(;!We.reading&&!We.ended&&(We.length<We.highWaterMark||We.flowing&&0===We.length);){var yt=We.length;if(O("maybeReadMore read 0"),le.read(0),yt===We.length)break}We.readingMore=!1}function B(le){var We=le._readableState;We.readableListening=le.listenerCount("readable")>0,We.resumeScheduled&&!We.paused?We.flowing=!0:le.listenerCount("data")>0&&le.resume()}function te(le){O("readable nexttick read 0"),le.read(0)}function Pe(le,We){O("resume",We.reading),We.reading||le.read(0),We.resumeScheduled=!1,le.emit("resume"),Fe(le),We.flowing&&!We.reading&&le.read(0)}function Fe(le){var We=le._readableState;for(O("flow",We.flowing);We.flowing&&null!==le.read(););}function q(le,We){return 0===We.length?null:(We.objectMode?yt=We.buffer.shift():!le||le>=We.length?(yt=We.decoder?We.buffer.join(""):1===We.buffer.length?We.buffer.first():We.buffer.concat(We.length),We.buffer.clear()):yt=We.buffer.consume(le,We.decoder),yt);var yt}function j(le){var We=le._readableState;O("endReadable",We.endEmitted),We.endEmitted||(We.ended=!0,process.nextTick(we,We,le))}function we(le,We){if(O("endReadableNT",le.endEmitted,le.length),!le.endEmitted&&0===le.length&&(le.endEmitted=!0,We.readable=!1,We.emit("end"),le.autoDestroy)){var yt=We._writableState;(!yt||yt.autoDestroy&&yt.finished)&&We.destroy()}}function Ae(le,We){for(var yt=0,Ne=le.length;yt<Ne;yt++)if(le[yt]===We)return yt;return-1}y.prototype.read=function(le){O("read",le),le=parseInt(le,10);var We=this._readableState,yt=le;if(0!==le&&(We.emittedReadable=!1),0===le&&We.needReadable&&((0!==We.highWaterMark?We.length>=We.highWaterMark:We.length>0)||We.ended))return O("read: emitReadable",We.length,We.ended),0===We.length&&We.ended?j(this):x(this),null;if(0===(le=L(le,We))&&We.ended)return 0===We.length&&j(this),null;var Ve,Ne=We.needReadable;return O("need readable",Ne),(0===We.length||We.length-le<We.highWaterMark)&&O("length less than watermark",Ne=!0),We.ended||We.reading?O("reading or ended",Ne=!1):Ne&&(O("do read"),We.reading=!0,We.sync=!0,0===We.length&&(We.needReadable=!0),this._read(We.highWaterMark),We.sync=!1,We.reading||(le=L(yt,We))),null===(Ve=le>0?q(le,We):null)?(We.needReadable=We.length<=We.highWaterMark,le=0):(We.length-=le,We.awaitDrain=0),0===We.length&&(We.ended||(We.needReadable=!0),yt!==le&&We.ended&&j(this)),null!==Ve&&this.emit("data",Ve),Ve},y.prototype._read=function(le){de(this,new W("_read()"))},y.prototype.pipe=function(le,We){var yt=this,Ne=this._readableState;switch(Ne.pipesCount){case 0:Ne.pipes=le;break;case 1:Ne.pipes=[Ne.pipes,le];break;default:Ne.pipes.push(le)}Ne.pipesCount+=1,O("pipe count=%d opts=%j",Ne.pipesCount,We);var ue=We&&!1===We.end||le===process.stdout||le===process.stderr?ft:ke;function ke(){O("onend"),le.end()}Ne.endEmitted?process.nextTick(ue):yt.once("end",ue),le.on("unpipe",function Te(nt,st){O("onunpipe"),nt===yt&&st&&!1===st.hasUnpiped&&(st.hasUnpiped=!0,O("cleanup"),le.removeListener("close",ht),le.removeListener("finish",it),le.removeListener("drain",Y),le.removeListener("error",ze),le.removeListener("unpipe",Te),yt.removeListener("end",ke),yt.removeListener("end",ft),yt.removeListener("data",Me),X=!0,Ne.awaitDrain&&(!le._writableState||le._writableState.needDrain)&&Y())});var Y=function(le){return function(){var yt=le._readableState;O("pipeOnDrain",yt.awaitDrain),yt.awaitDrain&&yt.awaitDrain--,0===yt.awaitDrain&&v(le,"data")&&(yt.flowing=!0,Fe(le))}}(yt);le.on("drain",Y);var X=!1;function Me(nt){O("ondata");var st=le.write(nt);O("dest.write",st),!1===st&&((1===Ne.pipesCount&&Ne.pipes===le||Ne.pipesCount>1&&-1!==Ae(Ne.pipes,le))&&!X&&(O("false write response, pause",Ne.awaitDrain),Ne.awaitDrain++),yt.pause())}function ze(nt){O("onerror",nt),ft(),le.removeListener("error",ze),0===v(le,"error")&&de(le,nt)}function ht(){le.removeListener("finish",it),ft()}function it(){O("onfinish"),le.removeListener("close",ht),ft()}function ft(){O("unpipe"),yt.unpipe(le)}return yt.on("data",Me),function(le,We,yt){if("function"==typeof le.prependListener)return le.prependListener(We,yt);le._events&&le._events[We]?Array.isArray(le._events[We])?le._events[We].unshift(yt):le._events[We]=[yt,le._events[We]]:le.on(We,yt)}(le,"error",ze),le.once("close",ht),le.once("finish",it),le.emit("pipe",yt),Ne.flowing||(O("pipe resume"),yt.resume()),le},y.prototype.unpipe=function(le){var We=this._readableState,yt={hasUnpiped:!1};if(0===We.pipesCount)return this;if(1===We.pipesCount)return le&&le!==We.pipes||(le||(le=We.pipes),We.pipes=null,We.pipesCount=0,We.flowing=!1,le&&le.emit("unpipe",this,yt)),this;if(!le){var Ne=We.pipes,Ve=We.pipesCount;We.pipes=null,We.pipesCount=0,We.flowing=!1;for(var ue=0;ue<Ve;ue++)Ne[ue].emit("unpipe",this,{hasUnpiped:!1});return this}var Te=Ae(We.pipes,le);return-1===Te||(We.pipes.splice(Te,1),We.pipesCount-=1,1===We.pipesCount&&(We.pipes=We.pipes[0]),le.emit("unpipe",this,yt)),this},y.prototype.addListener=y.prototype.on=function(le,We){var yt=M.prototype.on.call(this,le,We),Ne=this._readableState;return"data"===le?(Ne.readableListening=this.listenerCount("readable")>0,!1!==Ne.flowing&&this.resume()):"readable"===le&&!Ne.endEmitted&&!Ne.readableListening&&(Ne.readableListening=Ne.needReadable=!0,Ne.flowing=!1,Ne.emittedReadable=!1,O("on readable",Ne.length,Ne.reading),Ne.length?x(this):Ne.reading||process.nextTick(te,this)),yt},y.prototype.removeListener=function(le,We){var yt=M.prototype.removeListener.call(this,le,We);return"readable"===le&&process.nextTick(B,this),yt},y.prototype.removeAllListeners=function(le){var We=M.prototype.removeAllListeners.apply(this,arguments);return("readable"===le||void 0===le)&&process.nextTick(B,this),We},y.prototype.resume=function(){var le=this._readableState;return le.flowing||(O("resume"),le.flowing=!le.readableListening,function(le,We){We.resumeScheduled||(We.resumeScheduled=!0,process.nextTick(Pe,le,We))}(this,le)),le.paused=!1,this},y.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(O("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},y.prototype.wrap=function(le){var We=this,yt=this._readableState,Ne=!1;for(var Ve in le.on("end",function(){if(O("wrapped end"),yt.decoder&&!yt.ended){var Te=yt.decoder.end();Te&&Te.length&&We.push(Te)}We.push(null)}),le.on("data",function(Te){O("wrapped data"),yt.decoder&&(Te=yt.decoder.write(Te)),yt.objectMode&&null==Te||!(yt.objectMode||Te&&Te.length)||We.push(Te)||(Ne=!0,le.pause())}),le)void 0===this[Ve]&&"function"==typeof le[Ve]&&(this[Ve]=function(ke){return function(){return le[ke].apply(le,arguments)}}(Ve));for(var ue=0;ue<ne.length;ue++)le.on(ne[ue],this.emit.bind(this,ne[ue]));return this._read=function(Te){O("wrapped _read",Te),Ne&&(Ne=!1,le.resume())},this},"function"==typeof Symbol&&(y.prototype[Symbol.asyncIterator]=function(){return void 0===_e&&(_e=m(3872)),_e(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=q,Object.defineProperty(y.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(y.from=function(le,We){return void 0===fe&&(fe=m(7412)),fe(y,le,We)})},6025:(Ue,K,m)=>{"use strict";Ue.exports=R;var e=m(891).q,t=e.ERR_METHOD_NOT_IMPLEMENTED,v=e.ERR_MULTIPLE_CALLBACK,M=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=e.ERR_TRANSFORM_WITH_LENGTH_0,C=m(1339);function c(T,P){var S=this._transformState;S.transforming=!1;var D=S.writecb;if(null===D)return this.emit("error",new v);S.writechunk=null,S.writecb=null,null!=P&&this.push(P),D(T);var w=this._readableState;w.reading=!1,(w.needReadable||w.length<w.highWaterMark)&&this._read(w.highWaterMark)}function R(T){if(!(this instanceof R))return new R(T);C.call(this,T),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,T&&("function"==typeof T.transform&&(this._transform=T.transform),"function"==typeof T.flush&&(this._flush=T.flush)),this.on("prefinish",o)}function o(){var T=this;"function"!=typeof this._flush||this._readableState.destroyed?O(this,null,null):this._flush(function(P,S){O(T,P,S)})}function O(T,P,S){if(P)return T.emit("error",P);if(null!=S&&T.push(S),T._writableState.length)throw new s;if(T._transformState.transforming)throw new M;return T.push(null)}m(3894)(R,C),R.prototype.push=function(T,P){return this._transformState.needTransform=!1,C.prototype.push.call(this,T,P)},R.prototype._transform=function(T,P,S){S(new t("_transform()"))},R.prototype._write=function(T,P,S){var D=this._transformState;if(D.writecb=S,D.writechunk=T,D.writeencoding=P,!D.transforming){var w=this._readableState;(D.needTransform||w.needReadable||w.length<w.highWaterMark)&&this._read(w.highWaterMark)}},R.prototype._read=function(T){var P=this._transformState;null===P.writechunk||P.transforming?P.needTransform=!0:(P.transforming=!0,this._transform(P.writechunk,P.writeencoding,P.afterTransform))},R.prototype._destroy=function(T,P){C.prototype._destroy.call(this,T,function(S){P(S)})}},520:(Ue,K,m)=>{"use strict";function t(Fe){var q=this;this.next=null,this.entry=null,this.finish=function(){!function(Fe,q,j){var we=Fe.entry;for(Fe.entry=null;we;){var Ae=we.callback;q.pendingcb--,Ae(undefined),we=we.next}q.corkedRequestsFree.next=Fe}(q,Fe)}}var v;Ue.exports=oe,oe.WritableState=ne;var se,M={deprecate:m(4364)},s=m(4970),C=m(3172).Buffer,c=global.Uint8Array||function(){},O=m(1920),P=m(7102).getHighWaterMark,S=m(891).q,D=S.ERR_INVALID_ARG_TYPE,w=S.ERR_METHOD_NOT_IMPLEMENTED,U=S.ERR_MULTIPLE_CALLBACK,G=S.ERR_STREAM_CANNOT_PIPE,W=S.ERR_STREAM_DESTROYED,ee=S.ERR_STREAM_NULL_VALUES,ie=S.ERR_STREAM_WRITE_AFTER_END,_e=S.ERR_UNKNOWN_ENCODING,fe=O.errorOrDestroy;function de(){}function ne(Fe,q,j){v=v||m(1339),"boolean"!=typeof j&&(j=q instanceof v),this.objectMode=!!(Fe=Fe||{}).objectMode,j&&(this.objectMode=this.objectMode||!!Fe.writableObjectMode),this.highWaterMark=P(this,Fe,"writableHighWaterMark",j),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===Fe.decodeStrings),this.defaultEncoding=Fe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ae){!function(Fe,q){var j=Fe._writableState,we=j.sync,Ae=j.writecb;if("function"!=typeof Ae)throw new U;if(function(Fe){Fe.writing=!1,Fe.writecb=null,Fe.length-=Fe.writelen,Fe.writelen=0}(j),q)!function(Fe,q,j,we,Ae){--q.pendingcb,j?(process.nextTick(Ae,we),process.nextTick(te,Fe,q),Fe._writableState.errorEmitted=!0,fe(Fe,we)):(Ae(we),Fe._writableState.errorEmitted=!0,fe(Fe,we),te(Fe,q))}(Fe,j,we,q,Ae);else{var le=J(j)||Fe.destroyed;!le&&!j.corked&&!j.bufferProcessing&&j.bufferedRequest&&b(Fe,j),we?process.nextTick(x,Fe,j,le,Ae):x(Fe,j,le,Ae)}}(q,Ae)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==Fe.emitClose,this.autoDestroy=!!Fe.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function oe(Fe){var q=this instanceof(v=v||m(1339));if(!q&&!se.call(oe,this))return new oe(Fe);this._writableState=new ne(Fe,this,q),this.writable=!0,Fe&&("function"==typeof Fe.write&&(this._write=Fe.write),"function"==typeof Fe.writev&&(this._writev=Fe.writev),"function"==typeof Fe.destroy&&(this._destroy=Fe.destroy),"function"==typeof Fe.final&&(this._final=Fe.final)),s.call(this)}function u(Fe,q,j,we,Ae,le,We){q.writelen=we,q.writecb=We,q.writing=!0,q.sync=!0,q.destroyed?q.onwrite(new W("write")):j?Fe._writev(Ae,q.onwrite):Fe._write(Ae,le,q.onwrite),q.sync=!1}function x(Fe,q,j,we){j||function(Fe,q){0===q.length&&q.needDrain&&(q.needDrain=!1,Fe.emit("drain"))}(Fe,q),q.pendingcb--,we(),te(Fe,q)}function b(Fe,q){q.bufferProcessing=!0;var j=q.bufferedRequest;if(Fe._writev&&j&&j.next){var Ae=new Array(q.bufferedRequestCount),le=q.corkedRequestsFree;le.entry=j;for(var We=0,yt=!0;j;)Ae[We]=j,j.isBuf||(yt=!1),j=j.next,We+=1;Ae.allBuffers=yt,u(Fe,q,!0,q.length,Ae,"",le.finish),q.pendingcb++,q.lastBufferedRequest=null,le.next?(q.corkedRequestsFree=le.next,le.next=null):q.corkedRequestsFree=new t(q),q.bufferedRequestCount=0}else{for(;j;){var Ne=j.chunk;if(u(Fe,q,!1,q.objectMode?1:Ne.length,Ne,j.encoding,j.callback),j=j.next,q.bufferedRequestCount--,q.writing)break}null===j&&(q.lastBufferedRequest=null)}q.bufferedRequest=j,q.bufferProcessing=!1}function J(Fe){return Fe.ending&&0===Fe.length&&null===Fe.bufferedRequest&&!Fe.finished&&!Fe.writing}function F(Fe,q){Fe._final(function(j){q.pendingcb--,j&&fe(Fe,j),q.prefinished=!0,Fe.emit("prefinish"),te(Fe,q)})}function te(Fe,q){var j=J(q);if(j&&(function(Fe,q){!q.prefinished&&!q.finalCalled&&("function"!=typeof Fe._final||q.destroyed?(q.prefinished=!0,Fe.emit("prefinish")):(q.pendingcb++,q.finalCalled=!0,process.nextTick(F,Fe,q)))}(Fe,q),0===q.pendingcb&&(q.finished=!0,Fe.emit("finish"),q.autoDestroy))){var we=Fe._readableState;(!we||we.autoDestroy&&we.endEmitted)&&Fe.destroy()}return j}m(3894)(oe,s),ne.prototype.getBuffer=function(){for(var q=this.bufferedRequest,j=[];q;)j.push(q),q=q.next;return j},function(){try{Object.defineProperty(ne.prototype,"buffer",{get:M.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Fe){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(se=Function.prototype[Symbol.hasInstance],Object.defineProperty(oe,Symbol.hasInstance,{value:function(q){return!!se.call(this,q)||this===oe&&q&&q._writableState instanceof ne}})):se=function(q){return q instanceof this},oe.prototype.pipe=function(){fe(this,new G)},oe.prototype.write=function(Fe,q,j){var we=this._writableState,Ae=!1,le=!we.objectMode&&function(Fe){return C.isBuffer(Fe)||Fe instanceof c}(Fe);return le&&!C.isBuffer(Fe)&&(Fe=function(Fe){return C.from(Fe)}(Fe)),"function"==typeof q&&(j=q,q=null),le?q="buffer":q||(q=we.defaultEncoding),"function"!=typeof j&&(j=de),we.ending?function(Fe,q){var j=new ie;fe(Fe,j),process.nextTick(q,j)}(this,j):(le||function(Fe,q,j,we){var Ae;return null===j?Ae=new ee:"string"!=typeof j&&!q.objectMode&&(Ae=new D("chunk",["string","Buffer"],j)),!Ae||(fe(Fe,Ae),process.nextTick(we,Ae),!1)}(this,we,Fe,j))&&(we.pendingcb++,Ae=function(Fe,q,j,we,Ae,le){if(!j){var We=function(Fe,q,j){return!Fe.objectMode&&!1!==Fe.decodeStrings&&"string"==typeof q&&(q=C.from(q,j)),q}(q,we,Ae);we!==We&&(j=!0,Ae="buffer",we=We)}var yt=q.objectMode?1:we.length;q.length+=yt;var Ne=q.length<q.highWaterMark;if(Ne||(q.needDrain=!0),q.writing||q.corked){var Ve=q.lastBufferedRequest;q.lastBufferedRequest={chunk:we,encoding:Ae,isBuf:j,callback:le,next:null},Ve?Ve.next=q.lastBufferedRequest:q.bufferedRequest=q.lastBufferedRequest,q.bufferedRequestCount+=1}else u(Fe,q,!1,yt,we,Ae,le);return Ne}(this,we,le,Fe,q,j)),Ae},oe.prototype.cork=function(){this._writableState.corked++},oe.prototype.uncork=function(){var Fe=this._writableState;Fe.corked&&(Fe.corked--,!Fe.writing&&!Fe.corked&&!Fe.bufferProcessing&&Fe.bufferedRequest&&b(this,Fe))},oe.prototype.setDefaultEncoding=function(q){if("string"==typeof q&&(q=q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((q+"").toLowerCase())>-1))throw new _e(q);return this._writableState.defaultEncoding=q,this},Object.defineProperty(oe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(oe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),oe.prototype._write=function(Fe,q,j){j(new w("_write()"))},oe.prototype._writev=null,oe.prototype.end=function(Fe,q,j){var we=this._writableState;return"function"==typeof Fe?(j=Fe,Fe=null,q=null):"function"==typeof q&&(j=q,q=null),null!=Fe&&this.write(Fe,q),we.corked&&(we.corked=1,this.uncork()),we.ending||function(Fe,q,j){q.ending=!0,te(Fe,q),j&&(q.finished?process.nextTick(j):Fe.once("finish",j)),q.ended=!0,Fe.writable=!1}(this,we,j),this},Object.defineProperty(oe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(oe.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(q){!this._writableState||(this._writableState.destroyed=q)}}),oe.prototype.destroy=O.destroy,oe.prototype._undestroy=O.undestroy,oe.prototype._destroy=function(Fe,q){q(Fe)}},3872:(Ue,K,m)=>{"use strict";var e;function t(W,ee,ie){return ee in W?Object.defineProperty(W,ee,{value:ie,enumerable:!0,configurable:!0,writable:!0}):W[ee]=ie,W}var v=m(7542),M=Symbol("lastResolve"),s=Symbol("lastReject"),C=Symbol("error"),c=Symbol("ended"),R=Symbol("lastPromise"),o=Symbol("handlePromise"),O=Symbol("stream");function T(W,ee){return{value:W,done:ee}}function P(W){var ee=W[M];if(null!==ee){var ie=W[O].read();null!==ie&&(W[R]=null,W[M]=null,W[s]=null,ee(T(ie,!1)))}}function S(W){process.nextTick(P,W)}var w=Object.getPrototypeOf(function(){}),U=Object.setPrototypeOf((t(e={get stream(){return this[O]},next:function(){var ee=this,ie=this[C];if(null!==ie)return Promise.reject(ie);if(this[c])return Promise.resolve(T(void 0,!0));if(this[O].destroyed)return new Promise(function(ne,se){process.nextTick(function(){ee[C]?se(ee[C]):ne(T(void 0,!0))})});var fe,_e=this[R];if(_e)fe=new Promise(function(W,ee){return function(ie,_e){W.then(function(){ee[c]?ie(T(void 0,!0)):ee[o](ie,_e)},_e)}}(_e,this));else{var de=this[O].read();if(null!==de)return Promise.resolve(T(de,!1));fe=new Promise(this[o])}return this[R]=fe,fe}},Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var ee=this;return new Promise(function(ie,_e){ee[O].destroy(null,function(fe){fe?_e(fe):ie(T(void 0,!0))})})}),e),w);Ue.exports=function(ee){var ie,_e=Object.create(U,(t(ie={},O,{value:ee,writable:!0}),t(ie,M,{value:null,writable:!0}),t(ie,s,{value:null,writable:!0}),t(ie,C,{value:null,writable:!0}),t(ie,c,{value:ee._readableState.endEmitted,writable:!0}),t(ie,o,{value:function(de,ne){var se=_e[O].read();se?(_e[R]=null,_e[M]=null,_e[s]=null,de(T(se,!1))):(_e[M]=de,_e[s]=ne)},writable:!0}),ie));return _e[R]=null,v(ee,function(fe){if(fe&&"ERR_STREAM_PREMATURE_CLOSE"!==fe.code){var de=_e[s];return null!==de&&(_e[R]=null,_e[M]=null,_e[s]=null,de(fe)),void(_e[C]=fe)}var ne=_e[M];null!==ne&&(_e[R]=null,_e[M]=null,_e[s]=null,ne(T(void 0,!0))),_e[c]=!0}),ee.on("readable",S.bind(null,_e)),_e}},5019:(Ue,K,m)=>{"use strict";function e(S,D){var w=Object.keys(S);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(S);D&&(U=U.filter(function(G){return Object.getOwnPropertyDescriptor(S,G).enumerable})),w.push.apply(w,U)}return w}function v(S,D,w){return D in S?Object.defineProperty(S,D,{value:w,enumerable:!0,configurable:!0,writable:!0}):S[D]=w,S}function s(S,D){for(var w=0;w<D.length;w++){var U=D[w];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(S,U.key,U)}}var R=m(3172).Buffer,O=m(2361).inspect,T=O&&O.custom||"inspect";function P(S,D,w){R.prototype.copy.call(S,D,w)}Ue.exports=function(){function S(){(function(S,D){if(!(S instanceof D))throw new TypeError("Cannot call a class as a function")})(this,S),this.head=null,this.tail=null,this.length=0}return function(S,D,w){D&&s(S.prototype,D)}(S,[{key:"push",value:function(w){var U={data:w,next:null};this.length>0?this.tail.next=U:this.head=U,this.tail=U,++this.length}},{key:"unshift",value:function(w){var U={data:w,next:this.head};0===this.length&&(this.tail=U),this.head=U,++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 U=this.head,G=""+U.data;U=U.next;)G+=w+U.data;return G}},{key:"concat",value:function(w){if(0===this.length)return R.alloc(0);for(var U=R.allocUnsafe(w>>>0),G=this.head,W=0;G;)P(G.data,U,W),W+=G.data.length,G=G.next;return U}},{key:"consume",value:function(w,U){var G;return w<this.head.data.length?(G=this.head.data.slice(0,w),this.head.data=this.head.data.slice(w)):G=w===this.head.data.length?this.shift():U?this._getString(w):this._getBuffer(w),G}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(w){var U=this.head,G=1,W=U.data;for(w-=W.length;U=U.next;){var ee=U.data,ie=w>ee.length?ee.length:w;if(W+=ie===ee.length?ee:ee.slice(0,w),0==(w-=ie)){ie===ee.length?(++G,this.head=U.next?U.next:this.tail=null):(this.head=U,U.data=ee.slice(ie));break}++G}return this.length-=G,W}},{key:"_getBuffer",value:function(w){var U=R.allocUnsafe(w),G=this.head,W=1;for(G.data.copy(U),w-=G.data.length;G=G.next;){var ee=G.data,ie=w>ee.length?ee.length:w;if(ee.copy(U,U.length-w,0,ie),0==(w-=ie)){ie===ee.length?(++W,this.head=G.next?G.next:this.tail=null):(this.head=G,G.data=ee.slice(ie));break}++W}return this.length-=W,U}},{key:T,value:function(w,U){return O(this,function(S){for(var D=1;D<arguments.length;D++){var w=null!=arguments[D]?arguments[D]:{};D%2?e(Object(w),!0).forEach(function(U){v(S,U,w[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(w)):e(Object(w)).forEach(function(U){Object.defineProperty(S,U,Object.getOwnPropertyDescriptor(w,U))})}return S}({},U,{depth:0,customInspect:!1}))}}]),S}()},1920:Ue=>{"use strict";function m(s,C){v(s,C),e(s)}function e(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function v(s,C){s.emit("error",C)}Ue.exports={destroy:function(s,C){var c=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(C?C(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(O){!C&&O?c._writableState?c._writableState.errorEmitted?process.nextTick(e,c):(c._writableState.errorEmitted=!0,process.nextTick(m,c,O)):process.nextTick(m,c,O):C?(process.nextTick(e,c),C(O)):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,C){var c=s._readableState,R=s._writableState;c&&c.autoDestroy||R&&R.autoDestroy?s.destroy(C):s.emit("error",C)}}},7542:(Ue,K,m)=>{"use strict";var e=m(891).q.ERR_STREAM_PREMATURE_CLOSE;function v(){}Ue.exports=function s(C,c,R){if("function"==typeof c)return s(C,null,c);c||(c={}),R=function(C){var c=!1;return function(){if(!c){c=!0;for(var R=arguments.length,o=new Array(R),O=0;O<R;O++)o[O]=arguments[O];C.apply(this,o)}}}(R||v);var o=c.readable||!1!==c.readable&&C.readable,O=c.writable||!1!==c.writable&&C.writable,T=function(){C.writable||S()},P=C._writableState&&C._writableState.finished,S=function(){O=!1,P=!0,o||R.call(C)},D=C._readableState&&C._readableState.endEmitted,w=function(){o=!1,D=!0,O||R.call(C)},U=function(ie){R.call(C,ie)},G=function(){var ie;return o&&!D?((!C._readableState||!C._readableState.ended)&&(ie=new e),R.call(C,ie)):O&&!P?((!C._writableState||!C._writableState.ended)&&(ie=new e),R.call(C,ie)):void 0},W=function(){C.req.on("finish",S)};return function(C){return C.setHeader&&"function"==typeof C.abort}(C)?(C.on("complete",S),C.on("abort",G),C.req?W():C.on("request",W)):O&&!C._writableState&&(C.on("end",T),C.on("close",T)),C.on("end",w),C.on("finish",S),!1!==c.error&&C.on("error",U),C.on("close",G),function(){C.removeListener("complete",S),C.removeListener("abort",G),C.removeListener("request",W),C.req&&C.req.removeListener("finish",S),C.removeListener("end",T),C.removeListener("close",T),C.removeListener("finish",S),C.removeListener("end",w),C.removeListener("error",U),C.removeListener("close",G)}}},7412:Ue=>{Ue.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(Ue,K,m)=>{"use strict";var e,v=m(891).q,M=v.ERR_MISSING_ARGS,s=v.ERR_STREAM_DESTROYED;function C(S){if(S)throw S}function R(S,D,w,U){U=function(S){var D=!1;return function(){D||(D=!0,S.apply(void 0,arguments))}}(U);var G=!1;S.on("close",function(){G=!0}),void 0===e&&(e=m(7542)),e(S,{readable:D,writable:w},function(ee){if(ee)return U(ee);G=!0,U()});var W=!1;return function(ee){if(!G&&!W){if(W=!0,function(S){return S.setHeader&&"function"==typeof S.abort}(S))return S.abort();if("function"==typeof S.destroy)return S.destroy();U(ee||new s("pipe"))}}}function o(S){S()}function O(S,D){return S.pipe(D)}function T(S){return S.length&&"function"==typeof S[S.length-1]?S.pop():C}Ue.exports=function(){for(var S=arguments.length,D=new Array(S),w=0;w<S;w++)D[w]=arguments[w];var U=T(D);if(Array.isArray(D[0])&&(D=D[0]),D.length<2)throw new M("streams");var G,W=D.map(function(ee,ie){var _e=ie<D.length-1;return R(ee,_e,ie>0,function(de){G||(G=de),de&&W.forEach(o),!_e&&(W.forEach(o),U(G))})});return D.reduce(O)}},7102:(Ue,K,m)=>{"use strict";var e=m(891).q.ERR_INVALID_OPT_VALUE;Ue.exports={getHighWaterMark:function(M,s,C,c){var R=function(M,s,C){return null!=M.highWaterMark?M.highWaterMark:s?M[C]:null}(s,c,C);if(null!=R){if(!isFinite(R)||Math.floor(R)!==R||R<0)throw new e(c?C:"highWaterMark",R);return Math.floor(R)}return M.objectMode?16:16384}}},4970:(Ue,K,m)=>{Ue.exports=m(9069).EventEmitter},5685:(Ue,K,m)=>{(K=Ue.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:(Ue,K,m)=>{"use strict";var e=m(3172).Buffer,t=m(3894),v=m(9650),M=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],C=[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],R=[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],O=[1352829926,1548603684,1836072691,2053994217,0];function T(){v.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function P(W,ee){return W<<ee|W>>>32-ee}function S(W,ee,ie,_e,fe,de,ne,se){return P(W+(ee^ie^_e)+de+ne|0,se)+fe|0}function D(W,ee,ie,_e,fe,de,ne,se){return P(W+(ee&ie|~ee&_e)+de+ne|0,se)+fe|0}function w(W,ee,ie,_e,fe,de,ne,se){return P(W+((ee|~ie)^_e)+de+ne|0,se)+fe|0}function U(W,ee,ie,_e,fe,de,ne,se){return P(W+(ee&_e|ie&~_e)+de+ne|0,se)+fe|0}function G(W,ee,ie,_e,fe,de,ne,se){return P(W+(ee^(ie|~_e))+de+ne|0,se)+fe|0}t(T,v),T.prototype._update=function(){for(var W=M,ee=0;ee<16;++ee)W[ee]=this._block.readInt32LE(4*ee);for(var ie=0|this._a,_e=0|this._b,fe=0|this._c,de=0|this._d,ne=0|this._e,se=0|this._a,oe=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=S(ie,_e,fe,de,ne,W[s[p]],o[0],c[p]),_=G(se,oe,y,i,a,W[C[p]],O[0],R[p])):p<32?(u=D(ie,_e,fe,de,ne,W[s[p]],o[1],c[p]),_=U(se,oe,y,i,a,W[C[p]],O[1],R[p])):p<48?(u=w(ie,_e,fe,de,ne,W[s[p]],o[2],c[p]),_=w(se,oe,y,i,a,W[C[p]],O[2],R[p])):p<64?(u=U(ie,_e,fe,de,ne,W[s[p]],o[3],c[p]),_=D(se,oe,y,i,a,W[C[p]],O[3],R[p])):(u=G(ie,_e,fe,de,ne,W[s[p]],o[4],c[p]),_=S(se,oe,y,i,a,W[C[p]],O[4],R[p])),ie=ne,ne=de,de=P(fe,10),fe=_e,_e=u,se=a,a=i,i=P(y,10),y=oe,oe=_}var L=this._b+fe+i|0;this._b=this._c+de+a|0,this._c=this._d+ne+se|0,this._d=this._e+ie+oe|0,this._e=this._a+_e+y|0,this._a=L},T.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 W=e.alloc?e.alloc(20):new e(20);return W.writeInt32LE(this._a,0),W.writeInt32LE(this._b,4),W.writeInt32LE(this._c,8),W.writeInt32LE(this._d,12),W.writeInt32LE(this._e,16),W},Ue.exports=T},1135:(Ue,K,m)=>{"use strict";m.d(K,{X:()=>t});var e=m(7579);class t extends e.x{constructor(M){super(),this._value=M}get value(){return this.getValue()}_subscribe(M){const s=super._subscribe(M);return!s.closed&&M.next(this._value),s}getValue(){const{hasError:M,thrownError:s,_value:C}=this;if(M)throw s;return this._throwIfClosed(),C}next(M){super.next(this._value=M)}}},8306:(Ue,K,m)=>{"use strict";m.d(K,{y:()=>O});var e=m(930),t=m(727),v=m(8822),M=m(4671);var c=m(2416),R=m(576),o=m(2806);let O=(()=>{class D{constructor(U){U&&(this._subscribe=U)}lift(U){const G=new D;return G.source=this,G.operator=U,G}subscribe(U,G,W){const ee=function(D){return D&&D instanceof e.Lv||function(D){return D&&(0,R.m)(D.next)&&(0,R.m)(D.error)&&(0,R.m)(D.complete)}(D)&&(0,t.Nn)(D)}(U)?U:new e.Hp(U,G,W);return(0,o.x)(()=>{const{operator:ie,source:_e}=this;ee.add(ie?ie.call(ee,_e):_e?this._subscribe(ee):this._trySubscribe(ee))}),ee}_trySubscribe(U){try{return this._subscribe(U)}catch(G){U.error(G)}}forEach(U,G){return new(G=T(G))((W,ee)=>{let ie;ie=this.subscribe(_e=>{try{U(_e)}catch(fe){ee(fe),null==ie||ie.unsubscribe()}},ee,W)})}_subscribe(U){var G;return null===(G=this.source)||void 0===G?void 0:G.subscribe(U)}[v.L](){return this}pipe(...U){return function(D){return 0===D.length?M.y:1===D.length?D[0]:function(U){return D.reduce((G,W)=>W(G),U)}}(U)(this)}toPromise(U){return new(U=T(U))((G,W)=>{let ee;this.subscribe(ie=>ee=ie,ie=>W(ie),()=>G(ee))})}}return D.create=w=>new D(w),D})();function T(D){var w;return null!==(w=null!=D?D:c.v.Promise)&&void 0!==w?w:Promise}},4707:(Ue,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,C=1/0,c=t.l){super(),this._bufferSize=s,this._windowTime=C,this._timestampProvider=c,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=C===1/0,this._bufferSize=Math.max(1,s),this._windowTime=Math.max(1,C)}next(s){const{isStopped:C,_buffer:c,_infiniteTimeWindow:R,_timestampProvider:o,_windowTime:O}=this;C||(c.push(s),!R&&c.push(o.now()+O)),this._trimBuffer(),super.next(s)}_subscribe(s){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(s),{_infiniteTimeWindow:c,_buffer:R}=this,o=R.slice();for(let O=0;O<o.length&&!s.closed;O+=c?1:2)s.next(o[O]);return this._checkFinalizedStatuses(s),C}_trimBuffer(){const{_bufferSize:s,_timestampProvider:C,_buffer:c,_infiniteTimeWindow:R}=this,o=(R?1:2)*s;if(s<1/0&&o<c.length&&c.splice(0,c.length-o),!R){const O=C.now();let T=0;for(let P=1;P<c.length&&c[P]<=O;P+=2)T=P;T&&c.splice(0,T+1)}}}},7579:(Ue,K,m)=>{"use strict";m.d(K,{u:()=>R,x:()=>c});var e=m(8306),t=m(727);const M=(0,m(3888).d)(o=>function(){o(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var s=m(8737),C=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(T){const P=new R(this,this);return P.operator=T,P}_throwIfClosed(){if(this.closed)throw new M}next(T){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const P=this.observers.slice();for(const S of P)S.next(T)}})}error(T){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=T;const{observers:P}=this;for(;P.length;)P.shift().error(T)}})}complete(){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:T}=this;for(;T.length;)T.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var T;return(null===(T=this.observers)||void 0===T?void 0:T.length)>0}_trySubscribe(T){return this._throwIfClosed(),super._trySubscribe(T)}_subscribe(T){return this._throwIfClosed(),this._checkFinalizedStatuses(T),this._innerSubscribe(T)}_innerSubscribe(T){const{hasError:P,isStopped:S,observers:D}=this;return P||S?t.Lc:(D.push(T),new t.w0(()=>(0,s.P)(D,T)))}_checkFinalizedStatuses(T){const{hasError:P,thrownError:S,isStopped:D}=this;P?T.error(S):D&&T.complete()}asObservable(){const T=new e.y;return T.source=this,T}}return o.create=(O,T)=>new R(O,T),o})();class R extends c{constructor(O,T){super(),this.destination=O,this.source=T}next(O){var T,P;null===(P=null===(T=this.destination)||void 0===T?void 0:T.next)||void 0===P||P.call(T,O)}error(O){var T,P;null===(P=null===(T=this.destination)||void 0===T?void 0:T.error)||void 0===P||P.call(T,O)}complete(){var O,T;null===(T=null===(O=this.destination)||void 0===O?void 0:O.complete)||void 0===T||T.call(O)}_subscribe(O){var T,P;return null!==(P=null===(T=this.source)||void 0===T?void 0:T.subscribe(O))&&void 0!==P?P:t.Lc}}},930:(Ue,K,m)=>{"use strict";m.d(K,{Hp:()=>S,Lv:()=>P});var e=m(576),t=m(727),v=m(2416),M=m(7849),s=m(5032);const C=o("C",void 0,void 0);function o(W,ee,ie){return{kind:W,value:ee,error:ie}}var O=m(3410),T=m(2806);class P extends t.w0{constructor(ee){super(),this.isStopped=!1,ee?(this.destination=ee,(0,t.Nn)(ee)&&ee.add(this)):this.destination=G}static create(ee,ie,_e){return new S(ee,ie,_e)}next(ee){this.isStopped?U(o("N",ee,void 0),this):this._next(ee)}error(ee){this.isStopped?U(o("E",void 0,ee),this):(this.isStopped=!0,this._error(ee))}complete(){this.isStopped?U(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ee){this.destination.next(ee)}_error(ee){try{this.destination.error(ee)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class S extends P{constructor(ee,ie,_e){let fe;if(super(),(0,e.m)(ee))fe=ee;else if(ee){let de;({next:fe,error:ie,complete:_e}=ee),this&&v.v.useDeprecatedNextContext?(de=Object.create(ee),de.unsubscribe=()=>this.unsubscribe()):de=ee,fe=null==fe?void 0:fe.bind(de),ie=null==ie?void 0:ie.bind(de),_e=null==_e?void 0:_e.bind(de)}this.destination={next:fe?D(fe):s.Z,error:D(null!=ie?ie:w),complete:_e?D(_e):s.Z}}}function D(W,ee){return(...ie)=>{try{W(...ie)}catch(_e){v.v.useDeprecatedSynchronousErrorHandling?(0,T.O)(_e):(0,M.h)(_e)}}}function w(W){throw W}function U(W,ee){const{onStoppedNotification:ie}=v.v;ie&&O.z.setTimeout(()=>ie(W,ee))}const G={closed:!0,next:s.Z,error:w,complete:s.Z}},727:(Ue,K,m)=>{"use strict";m.d(K,{Lc:()=>C,w0:()=>s,Nn:()=>c});var e=m(576);const v=(0,m(3888).d)(o=>function(T){o(this),this.message=T?`${T.length} errors occurred during unsubscription:\n${T.map((P,S)=>`${S+1}) ${P.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=T});var M=m(8737);class s{constructor(O){this.initialTeardown=O,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let O;if(!this.closed){this.closed=!0;const{_parentage:T}=this;if(T)if(this._parentage=null,Array.isArray(T))for(const D of T)D.remove(this);else T.remove(this);const{initialTeardown:P}=this;if((0,e.m)(P))try{P()}catch(D){O=D instanceof v?D.errors:[D]}const{_teardowns:S}=this;if(S){this._teardowns=null;for(const D of S)try{R(D)}catch(w){O=null!=O?O:[],w instanceof v?O=[...O,...w.errors]:O.push(w)}}if(O)throw new v(O)}}add(O){var T;if(O&&O!==this)if(this.closed)R(O);else{if(O instanceof s){if(O.closed||O._hasParent(this))return;O._addParent(this)}(this._teardowns=null!==(T=this._teardowns)&&void 0!==T?T:[]).push(O)}}_hasParent(O){const{_parentage:T}=this;return T===O||Array.isArray(T)&&T.includes(O)}_addParent(O){const{_parentage:T}=this;this._parentage=Array.isArray(T)?(T.push(O),T):T?[T,O]:O}_removeParent(O){const{_parentage:T}=this;T===O?this._parentage=null:Array.isArray(T)&&(0,M.P)(T,O)}remove(O){const{_teardowns:T}=this;T&&(0,M.P)(T,O),O instanceof s&&O._removeParent(this)}}s.EMPTY=(()=>{const o=new s;return o.closed=!0,o})();const C=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 R(o){(0,e.m)(o)?o():o.unsubscribe()}},2416:(Ue,K,m)=>{"use strict";m.d(K,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Ue,K,m)=>{"use strict";m.d(K,{a:()=>O});var e=m(8306),t=m(4742),v=m(457),M=m(4671),s=m(3268),C=m(3269),c=m(1810),R=m(5403),o=m(9672);function O(...S){const D=(0,C.yG)(S),w=(0,C.jO)(S),{args:U,keys:G}=(0,t.D)(S);if(0===U.length)return(0,v.D)([],D);const W=new e.y(function(S,D,w=M.y){return U=>{P(D,()=>{const{length:G}=S,W=new Array(G);let ee=G,ie=G;for(let _e=0;_e<G;_e++)P(D,()=>{const fe=(0,v.D)(S[_e],D);let de=!1;fe.subscribe(new R.Q(U,ne=>{W[_e]=ne,de||(de=!0,ie--),ie||U.next(w(W.slice()))},()=>{--ee||U.complete()}))},U)},U)}}(U,D,G?ee=>(0,c.n)(G,ee):M.y));return w?W.pipe((0,s.Z)(w)):W}function P(S,D,w){S?(0,o.f)(w,S,D):D()}},7272:(Ue,K,m)=>{"use strict";m.d(K,{z:()=>s});var e=m(8189),v=m(3269),M=m(457);function s(...C){return(0,e.J)(1)((0,M.D)(C,(0,v.yG)(C)))}},9770:(Ue,K,m)=>{"use strict";m.d(K,{P:()=>v});var e=m(8306),t=m(8421);function v(M){return new e.y(s=>{(0,t.Xf)(M()).subscribe(s)})}},515:(Ue,K,m)=>{"use strict";m.d(K,{E:()=>t});const t=new(m(8306).y)(s=>s.complete())},4128:(Ue,K,m)=>{"use strict";m.d(K,{D:()=>R});var e=m(8306),t=m(4742),v=m(8421),M=m(3269),s=m(5403),C=m(3268),c=m(1810);function R(...o){const O=(0,M.jO)(o),{args:T,keys:P}=(0,t.D)(o),S=new e.y(D=>{const{length:w}=T;if(!w)return void D.complete();const U=new Array(w);let G=w,W=w;for(let ee=0;ee<w;ee++){let ie=!1;(0,v.Xf)(T[ee]).subscribe(new s.Q(D,_e=>{ie||(ie=!0,W--),U[ee]=_e},()=>G--,void 0,()=>{(!G||!ie)&&(W||D.next(P?(0,c.n)(P,U):U),D.complete())}))}});return O?S.pipe((0,C.Z)(O)):S}},457:(Ue,K,m)=>{"use strict";m.d(K,{D:()=>de});var e=m(8421),t=m(5363),v=m(4482);function M(ne,se=0){return(0,v.e)((oe,y)=>{y.add(ne.schedule(()=>oe.subscribe(y),se))})}var c=m(8306),o=m(2202),O=m(576),T=m(9672);function S(ne,se){if(!ne)throw new Error("Iterable cannot be null");return new c.y(oe=>{(0,T.f)(oe,se,()=>{const y=ne[Symbol.asyncIterator]();(0,T.f)(oe,se,()=>{y.next().then(i=>{i.done?oe.complete():oe.next(i.value)})},0,!0)})})}var D=m(3670),w=m(8239),U=m(1144),G=m(6495),W=m(2206),ee=m(4532),ie=m(3260);function de(ne,se){return se?function(ne,se){if(null!=ne){if((0,D.c)(ne))return function(ne,se){return(0,e.Xf)(ne).pipe(M(se),(0,t.Q)(se))}(ne,se);if((0,U.z)(ne))return function(ne,se){return new c.y(oe=>{let y=0;return se.schedule(function(){y===ne.length?oe.complete():(oe.next(ne[y++]),oe.closed||this.schedule())})})}(ne,se);if((0,w.t)(ne))return function(ne,se){return(0,e.Xf)(ne).pipe(M(se),(0,t.Q)(se))}(ne,se);if((0,W.D)(ne))return S(ne,se);if((0,G.T)(ne))return function(ne,se){return new c.y(oe=>{let y;return(0,T.f)(oe,se,()=>{y=ne[o.h](),(0,T.f)(oe,se,()=>{let i,a;try{({value:i,done:a}=y.next())}catch(p){return void oe.error(p)}a?oe.complete():oe.next(i)},0,!0)}),()=>(0,O.m)(null==y?void 0:y.return)&&y.return()})}(ne,se);if((0,ie.L)(ne))return function(ne,se){return S((0,ie.Q)(ne),se)}(ne,se)}throw(0,ee.z)(ne)}(ne,se):(0,e.Xf)(ne)}},4968:(Ue,K,m)=>{"use strict";m.d(K,{R:()=>O});var e=m(8421),t=m(8306),v=m(5577),M=m(1144),s=m(576),C=m(3268);const c=["addListener","removeListener"],R=["addEventListener","removeEventListener"],o=["on","off"];function O(w,U,G,W){if((0,s.m)(G)&&(W=G,G=void 0),W)return O(w,U,G).pipe((0,C.Z)(W));const[ee,ie]=function(w){return(0,s.m)(w.addEventListener)&&(0,s.m)(w.removeEventListener)}(w)?R.map(_e=>fe=>w[_e](U,fe,G)):function(w){return(0,s.m)(w.addListener)&&(0,s.m)(w.removeListener)}(w)?c.map(T(w,U)):function(w){return(0,s.m)(w.on)&&(0,s.m)(w.off)}(w)?o.map(T(w,U)):[];if(!ee&&(0,M.z)(w))return(0,v.z)(_e=>O(_e,U,G))((0,e.Xf)(w));if(!ee)throw new TypeError("Invalid event target");return new t.y(_e=>{const fe=(...de)=>_e.next(1<de.length?de:de[0]);return ee(fe),()=>ie(fe)})}function T(w,U){return G=>W=>w[G](U,W)}},8421:(Ue,K,m)=>{"use strict";m.d(K,{Xf:()=>S});var e=m(5987),t=m(1144),v=m(8239),M=m(8306),s=m(3670),C=m(2206),c=m(4532),R=m(6495),o=m(3260),O=m(576),T=m(7849),P=m(8822);function S(_e){if(_e instanceof M.y)return _e;if(null!=_e){if((0,s.c)(_e))return function(_e){return new M.y(fe=>{const de=_e[P.L]();if((0,O.m)(de.subscribe))return de.subscribe(fe);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(_e);if((0,t.z)(_e))return function(_e){return new M.y(fe=>{for(let de=0;de<_e.length&&!fe.closed;de++)fe.next(_e[de]);fe.complete()})}(_e);if((0,v.t)(_e))return function(_e){return new M.y(fe=>{_e.then(de=>{fe.closed||(fe.next(de),fe.complete())},de=>fe.error(de)).then(null,T.h)})}(_e);if((0,C.D)(_e))return W(_e);if((0,R.T)(_e))return function(_e){return new M.y(fe=>{for(const de of _e)if(fe.next(de),fe.closed)return;fe.complete()})}(_e);if((0,o.L)(_e))return function(_e){return W((0,o.Q)(_e))}(_e)}throw(0,c.z)(_e)}function W(_e){return new M.y(fe=>{(function(_e,fe){var de,ne,se,oe;return(0,e.mG)(this,void 0,void 0,function*(){try{for(de=(0,e.KL)(_e);!(ne=yield de.next()).done;)if(fe.next(ne.value),fe.closed)return}catch(y){se={error:y}}finally{try{ne&&!ne.done&&(oe=de.return)&&(yield oe.call(de))}finally{if(se)throw se.error}}fe.complete()})})(_e,fe).catch(de=>fe.error(de))})}},6451:(Ue,K,m)=>{"use strict";m.d(K,{T:()=>C});var e=m(8189),t=m(8421),v=m(515),M=m(3269),s=m(457);function C(...c){const R=(0,M.yG)(c),o=(0,M._6)(c,1/0),O=c;return O.length?1===O.length?(0,t.Xf)(O[0]):(0,e.J)(o)((0,s.D)(O,R)):v.E}},9646:(Ue,K,m)=>{"use strict";m.d(K,{of:()=>v});var e=m(3269),t=m(457);function v(...M){const s=(0,e.yG)(M);return(0,t.D)(M,s)}},2843:(Ue,K,m)=>{"use strict";m.d(K,{_:()=>v});var e=m(8306),t=m(576);function v(M,s){const C=(0,t.m)(M)?M:()=>M,c=R=>R.error(C());return new e.y(s?R=>s.schedule(c,0,R):c)}},2805:(Ue,K,m)=>{"use strict";m.d(K,{H:()=>s});var e=m(8306),t=m(4986),v=m(3532),M=m(1165);function s(C=0,c,R=t.P){let o=-1;return null!=c&&((0,v.K)(c)?R=c:o=c),new e.y(O=>{let T=(0,M.q)(C)?+C-R.now():C;T<0&&(T=0);let P=0;return R.schedule(function(){O.closed||(O.next(P++),0<=o?this.schedule(void 0,o):O.complete())},T)})}},5403:(Ue,K,m)=>{"use strict";m.d(K,{Q:()=>t});var e=m(930);class t extends e.Lv{constructor(M,s,C,c,R){super(M),this.onFinalize=R,this._next=s?function(o){try{s(o)}catch(O){M.error(O)}}:super._next,this._error=c?function(o){try{c(o)}catch(O){M.error(O)}finally{this.unsubscribe()}}:super._error,this._complete=C?function(){try{C()}catch(o){M.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var M;const{closed:s}=this;super.unsubscribe(),!s&&(null===(M=this.onFinalize)||void 0===M||M.call(this))}}},3601:(Ue,K,m)=>{"use strict";m.d(K,{e:()=>c});var e=m(4986),t=m(4482),v=m(8421),M=m(5403),C=m(2805);function c(R,o=e.P){return function(R){return(0,t.e)((o,O)=>{let T=!1,P=null,S=null,D=!1;const w=()=>{if(null==S||S.unsubscribe(),S=null,T){T=!1;const G=P;P=null,O.next(G)}D&&O.complete()},U=()=>{S=null,D&&O.complete()};o.subscribe(new M.Q(O,G=>{T=!0,P=G,S||(0,v.Xf)(R()).subscribe(S=new M.Q(O,w,U))},()=>{D=!0,(!T||!S||S.closed)&&O.complete()}))})}(()=>(0,C.H)(R,o))}},262:(Ue,K,m)=>{"use strict";m.d(K,{K:()=>M});var e=m(8421),t=m(5403),v=m(4482);function M(s){return(0,v.e)((C,c)=>{let O,R=null,o=!1;R=C.subscribe(new t.Q(c,void 0,void 0,T=>{O=(0,e.Xf)(s(T,M(s)(C))),R?(R.unsubscribe(),R=null,O.subscribe(c)):o=!0})),o&&(R.unsubscribe(),R=null,O.subscribe(c))})}},4351:(Ue,K,m)=>{"use strict";m.d(K,{b:()=>v});var e=m(5577),t=m(576);function v(M,s){return(0,t.m)(s)?(0,e.z)(M,s,1):(0,e.z)(M,1)}},8372:(Ue,K,m)=>{"use strict";m.d(K,{b:()=>M});var e=m(4986),t=m(4482),v=m(5403);function M(s,C=e.z){return(0,t.e)((c,R)=>{let o=null,O=null,T=null;const P=()=>{if(o){o.unsubscribe(),o=null;const D=O;O=null,R.next(D)}};function S(){const D=T+s,w=C.now();if(w<D)return o=this.schedule(void 0,D-w),void R.add(o);P()}c.subscribe(new v.Q(R,D=>{O=D,T=C.now(),o||(o=C.schedule(S,s),R.add(o))},()=>{P(),R.complete()},void 0,()=>{O=o=null}))})}},4086:(Ue,K,m)=>{"use strict";m.d(K,{g:()=>o});var e=m(4986),t=m(7272),v=m(5698),M=m(8502),s=m(9718),C=m(5577);function c(O,T){return T?P=>(0,t.z)(T.pipe((0,v.q)(1),(0,M.l)()),P.pipe(c(O))):(0,C.z)((P,S)=>O(P,S).pipe((0,v.q)(1),(0,s.h)(P)))}var R=m(2805);function o(O,T=e.z){const P=(0,R.H)(O,T);return c(()=>P)}},1884:(Ue,K,m)=>{"use strict";m.d(K,{x:()=>M});var e=m(4671),t=m(4482),v=m(5403);function M(C,c=e.y){return C=null!=C?C:s,(0,t.e)((R,o)=>{let O,T=!0;R.subscribe(new v.Q(o,P=>{const S=c(P);(T||!C(O,S))&&(T=!1,O=S,o.next(P))}))})}function s(C,c){return C===c}},9300:(Ue,K,m)=>{"use strict";m.d(K,{h:()=>v});var e=m(4482),t=m(5403);function v(M,s){return(0,e.e)((C,c)=>{let R=0;C.subscribe(new t.Q(c,o=>M.call(s,o,R++)&&c.next(o)))})}},8746:(Ue,K,m)=>{"use strict";m.d(K,{x:()=>t});var e=m(4482);function t(v){return(0,e.e)((M,s)=>{try{M.subscribe(s)}finally{s.add(v)}})}},8502:(Ue,K,m)=>{"use strict";m.d(K,{l:()=>M});var e=m(4482),t=m(5403),v=m(5032);function M(){return(0,e.e)((s,C)=>{s.subscribe(new t.Q(C,v.Z))})}},4004:(Ue,K,m)=>{"use strict";m.d(K,{U:()=>v});var e=m(4482),t=m(5403);function v(M,s){return(0,e.e)((C,c)=>{let R=0;C.subscribe(new t.Q(c,o=>{c.next(M.call(s,o,R++))}))})}},9718:(Ue,K,m)=>{"use strict";m.d(K,{h:()=>t});var e=m(4004);function t(v){return(0,e.U)(()=>v)}},8189:(Ue,K,m)=>{"use strict";m.d(K,{J:()=>v});var e=m(5577),t=m(4671);function v(M=1/0){return(0,e.z)(t.y,M)}},5577:(Ue,K,m)=>{"use strict";m.d(K,{z:()=>R});var e=m(4004),t=m(8421),v=m(4482),s=(m(9672),m(5403)),c=m(576);function R(o,O,T=1/0){return(0,c.m)(O)?R((P,S)=>(0,e.U)((D,w)=>O(P,D,S,w))((0,t.Xf)(o(P,S))),T):("number"==typeof O&&(T=O),(0,v.e)((P,S)=>function(o,O,T,P,S,D,w,U){const G=[];let W=0,ee=0,ie=!1;const _e=()=>{ie&&!G.length&&!W&&O.complete()},fe=ne=>W<P?de(ne):G.push(ne),de=ne=>{W++;let se=!1;(0,t.Xf)(T(ne,ee++)).subscribe(new s.Q(O,oe=>{O.next(oe)},()=>{se=!0},void 0,()=>{if(se)try{for(W--;G.length&&W<P;){const oe=G.shift();de(oe)}_e()}catch(oe){O.error(oe)}}))};return o.subscribe(new s.Q(O,fe,()=>{ie=!0,_e()})),()=>{}}(P,S,o,T)))}},5363:(Ue,K,m)=>{"use strict";m.d(K,{Q:()=>M});var e=m(9672),t=m(4482),v=m(5403);function M(s,C=0){return(0,t.e)((c,R)=>{c.subscribe(new v.Q(R,o=>(0,e.f)(R,s,()=>R.next(o),C),()=>(0,e.f)(R,s,()=>R.complete(),C),o=>(0,e.f)(R,s,()=>R.error(o),C)))})}},5026:(Ue,K,m)=>{"use strict";m.d(K,{R:()=>M});var e=m(4482),t=m(5403);function v(s,C,c,R,o){return(O,T)=>{let P=c,S=C,D=0;O.subscribe(new t.Q(T,w=>{const U=D++;S=P?s(S,w,U):(P=!0,w),R&&T.next(S)},o&&(()=>{P&&T.next(S),T.complete()})))}}function M(s,C){return(0,e.e)(v(s,C,arguments.length>=2,!0))}},3099:(Ue,K,m)=>{"use strict";m.d(K,{B:()=>C});var e=m(457),t=m(5698),v=m(7579),M=m(930),s=m(4482);function C(R={}){const{connector:o=(()=>new v.x),resetOnError:O=!0,resetOnComplete:T=!0,resetOnRefCountZero:P=!0}=R;return S=>{let D=null,w=null,U=null,G=0,W=!1,ee=!1;const ie=()=>{null==w||w.unsubscribe(),w=null},_e=()=>{ie(),D=U=null,W=ee=!1},fe=()=>{const de=D;_e(),null==de||de.unsubscribe()};return(0,s.e)((de,ne)=>{G++,!ee&&!W&&ie();const se=U=null!=U?U:o();ne.add(()=>{G--,0===G&&!ee&&!W&&(w=c(fe,P))}),se.subscribe(ne),D||(D=new M.Hp({next:oe=>se.next(oe),error:oe=>{ee=!0,ie(),w=c(_e,O,oe),se.error(oe)},complete:()=>{W=!0,ie(),w=c(_e,T),se.complete()}}),(0,e.D)(de).subscribe(D))})(S)}}function c(R,o,...O){return!0===o?(R(),null):!1===o?null:o(...O).pipe((0,t.q)(1)).subscribe(()=>R())}},5684:(Ue,K,m)=>{"use strict";m.d(K,{T:()=>t});var e=m(9300);function t(v){return(0,e.h)((M,s)=>v<=s)}},8675:(Ue,K,m)=>{"use strict";m.d(K,{O:()=>M});var e=m(7272),t=m(3269),v=m(4482);function M(...s){const C=(0,t.yG)(s);return(0,v.e)((c,R)=>{(C?(0,e.z)(s,c,C):(0,e.z)(s,c)).subscribe(R)})}},3900:(Ue,K,m)=>{"use strict";m.d(K,{w:()=>M});var e=m(8421),t=m(4482),v=m(5403);function M(s,C){return(0,t.e)((c,R)=>{let o=null,O=0,T=!1;const P=()=>T&&!o&&R.complete();c.subscribe(new v.Q(R,S=>{null==o||o.unsubscribe();let D=0;const w=O++;(0,e.Xf)(s(S,w)).subscribe(o=new v.Q(R,U=>R.next(C?C(S,U,w,D++):U),()=>{o=null,P()}))},()=>{T=!0,P()}))})}},5698:(Ue,K,m)=>{"use strict";m.d(K,{q:()=>M});var e=m(515),t=m(4482),v=m(5403);function M(s){return s<=0?()=>e.E:(0,t.e)((C,c)=>{let R=0;C.subscribe(new v.Q(c,o=>{++R<=s&&(c.next(o),s<=R&&c.complete())}))})}},2722:(Ue,K,m)=>{"use strict";m.d(K,{R:()=>s});var e=m(4482),t=m(5403),v=m(8421),M=m(5032);function s(C){return(0,e.e)((c,R)=>{(0,v.Xf)(C).subscribe(new t.Q(R,()=>R.complete(),M.Z)),!R.closed&&c.subscribe(R)})}},8505:(Ue,K,m)=>{"use strict";m.d(K,{b:()=>s});var e=m(576),t=m(4482),v=m(5403),M=m(4671);function s(C,c,R){const o=(0,e.m)(C)||c||R?{next:C,error:c,complete:R}:C;return o?(0,t.e)((O,T)=>{var P;null===(P=o.subscribe)||void 0===P||P.call(o);let S=!0;O.subscribe(new v.Q(T,D=>{var w;null===(w=o.next)||void 0===w||w.call(o,D),T.next(D)},()=>{var D;S=!1,null===(D=o.complete)||void 0===D||D.call(o),T.complete()},D=>{var w;S=!1,null===(w=o.error)||void 0===w||w.call(o,D),T.error(D)},()=>{var D,w;S&&(null===(D=o.unsubscribe)||void 0===D||D.call(o)),null===(w=o.finalize)||void 0===w||w.call(o)}))}):M.y}},7414:(Ue,K,m)=>{"use strict";m.d(K,{V:()=>o});var e=m(4986),t=m(1165),v=m(4482),M=m(8421),s=m(3888),C=m(5403),c=m(9672);const R=(0,s.d)(T=>function(S=null){T(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=S});function o(T,P){const{first:S,each:D,with:w=O,scheduler:U=(null!=P?P:e.z),meta:G=null}=(0,t.q)(T)?{first:T}:"number"==typeof T?{each:T}:T;if(null==S&&null==D)throw new TypeError("No timeout provided.");return(0,v.e)((W,ee)=>{let ie,_e,fe=null,de=0;const ne=se=>{_e=(0,c.f)(ee,U,()=>{try{ie.unsubscribe(),(0,M.Xf)(w({meta:G,lastValue:fe,seen:de})).subscribe(ee)}catch(oe){ee.error(oe)}},se)};ie=W.subscribe(new C.Q(ee,se=>{null==_e||_e.unsubscribe(),de++,ee.next(fe=se),D>0&&ne(D)},void 0,void 0,()=>{(null==_e?void 0:_e.closed)||null==_e||_e.unsubscribe(),fe=null})),ne(null!=S?"number"==typeof S?S:+S-U.now():D)})}function O(T){throw new R(T)}},1365:(Ue,K,m)=>{"use strict";m.d(K,{M:()=>c});var e=m(4482),t=m(5403),v=m(8421),M=m(4671),s=m(5032),C=m(3269);function c(...R){const o=(0,C.jO)(R);return(0,e.e)((O,T)=>{const P=R.length,S=new Array(P);let D=R.map(()=>!1),w=!1;for(let U=0;U<P;U++)(0,v.Xf)(R[U]).subscribe(new t.Q(T,G=>{S[U]=G,!w&&!D[U]&&(D[U]=!0,(w=D.every(M.y))&&(D=null))},s.Z));O.subscribe(new t.Q(T,U=>{if(w){const G=[U,...S];T.next(o?o(...G):G)}}))})}},4408:(Ue,K,m)=>{"use strict";m.d(K,{o:()=>s});var e=m(727);class t extends e.w0{constructor(c,R){super()}schedule(c,R=0){return this}}const v={setInterval(...C){const{delegate:c}=v;return((null==c?void 0:c.setInterval)||setInterval)(...C)},clearInterval(C){const{delegate:c}=v;return((null==c?void 0:c.clearInterval)||clearInterval)(C)},delegate:void 0};var M=m(8737);class s extends t{constructor(c,R){super(c,R),this.scheduler=c,this.work=R,this.pending=!1}schedule(c,R=0){if(this.closed)return this;this.state=c;const o=this.id,O=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(O,o,R)),this.pending=!0,this.delay=R,this.id=this.id||this.requestAsyncId(O,this.id,R),this}requestAsyncId(c,R,o=0){return v.setInterval(c.flush.bind(c,this),o)}recycleAsyncId(c,R,o=0){if(null!=o&&this.delay===o&&!1===this.pending)return R;v.clearInterval(R)}execute(c,R){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const o=this._execute(c,R);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(c,R){let O,o=!1;try{this.work(c)}catch(T){o=!0,O=T||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),O}unsubscribe(){if(!this.closed){const{id:c,scheduler:R}=this,{actions:o}=R;this.work=this.state=this.scheduler=null,this.pending=!1,(0,M.P)(o,this),null!=c&&(this.id=this.recycleAsyncId(R,c,null)),this.delay=null,super.unsubscribe()}}}},7565:(Ue,K,m)=>{"use strict";m.d(K,{v:()=>v});var e=m(6063);class t{constructor(s,C=t.now){this.schedulerActionCtor=s,this.now=C}schedule(s,C=0,c){return new this.schedulerActionCtor(this,s).schedule(c,C)}}t.now=e.l.now;class v extends t{constructor(s,C=t.now){super(s,C),this.actions=[],this._active=!1,this._scheduled=void 0}flush(s){const{actions:C}=this;if(this._active)return void C.push(s);let c;this._active=!0;do{if(c=s.execute(s.state,s.delay))break}while(s=C.shift());if(this._active=!1,c){for(;s=C.shift();)s.unsubscribe();throw c}}}},3101:(Ue,K,m)=>{"use strict";m.d(K,{E:()=>D});var e=m(4408);let v,t=1;const M={};function s(U){return U in M&&(delete M[U],!0)}const C={setImmediate(U){const G=t++;return M[G]=!0,v||(v=Promise.resolve()),v.then(()=>s(G)&&U()),G},clearImmediate(U){s(U)}},{setImmediate:R,clearImmediate:o}=C,O={setImmediate(...U){const{delegate:G}=O;return((null==G?void 0:G.setImmediate)||R)(...U)},clearImmediate(U){const{delegate:G}=O;return((null==G?void 0:G.clearImmediate)||o)(U)},delegate:void 0};var P=m(7565);const D=new class extends P.v{flush(G){this._active=!0,this._scheduled=void 0;const{actions:W}=this;let ee,ie=-1;G=G||W.shift();const _e=W.length;do{if(ee=G.execute(G.state,G.delay))break}while(++ie<_e&&(G=W.shift()));if(this._active=!1,ee){for(;++ie<_e&&(G=W.shift());)G.unsubscribe();throw ee}}}(class extends e.o{constructor(G,W){super(G,W),this.scheduler=G,this.work=W}requestAsyncId(G,W,ee=0){return null!==ee&&ee>0?super.requestAsyncId(G,W,ee):(G.actions.push(this),G._scheduled||(G._scheduled=O.setImmediate(G.flush.bind(G,void 0))))}recycleAsyncId(G,W,ee=0){if(null!=ee&&ee>0||null==ee&&this.delay>0)return super.recycleAsyncId(G,W,ee);0===G.actions.length&&(O.clearImmediate(W),G._scheduled=void 0)}})},4986:(Ue,K,m)=>{"use strict";m.d(K,{z:()=>v,P:()=>M});var e=m(4408);const v=new(m(7565).v)(e.o),M=v},6063:(Ue,K,m)=>{"use strict";m.d(K,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},233:(Ue,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(R,o){super(R,o),this.scheduler=R,this.work=o}schedule(R,o=0){return o>0?super.schedule(R,o):(this.delay=o,this.state=R,this.scheduler.flush(this),this)}execute(R,o){return o>0||this.closed?super.execute(R,o):this._execute(R,o)}requestAsyncId(R,o,O=0){return null!=O&&O>0||null==O&&this.delay>0?super.requestAsyncId(R,o,O):R.flush(this)}})},3410:(Ue,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:(Ue,K,m)=>{"use strict";m.d(K,{h:()=>t});const t="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},8822:(Ue,K,m)=>{"use strict";m.d(K,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},3269:(Ue,K,m)=>{"use strict";m.d(K,{jO:()=>M,yG:()=>s,_6:()=>C});var e=m(576),t=m(3532);function v(c){return c[c.length-1]}function M(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 C(c,R){return"number"==typeof v(c)?c.pop():R}},4742:(Ue,K,m)=>{"use strict";m.d(K,{D:()=>s});const{isArray:e}=Array,{getPrototypeOf:t,prototype:v,keys:M}=Object;function s(c){if(1===c.length){const R=c[0];if(e(R))return{args:R,keys:null};if(function(c){return c&&"object"==typeof c&&t(c)===v}(R)){const o=M(R);return{args:o.map(O=>R[O]),keys:o}}}return{args:c,keys:null}}},8737:(Ue,K,m)=>{"use strict";function e(t,v){if(t){const M=t.indexOf(v);0<=M&&t.splice(M,1)}}m.d(K,{P:()=>e})},3888:(Ue,K,m)=>{"use strict";function e(t){const M=t(s=>{Error.call(s),s.stack=(new Error).stack});return M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M}m.d(K,{d:()=>e})},1810:(Ue,K,m)=>{"use strict";function e(t,v){return t.reduce((M,s,C)=>(M[s]=v[C],M),{})}m.d(K,{n:()=>e})},2806:(Ue,K,m)=>{"use strict";m.d(K,{x:()=>v,O:()=>M});var e=m(2416);let t=null;function v(s){if(e.v.useDeprecatedSynchronousErrorHandling){const C=!t;if(C&&(t={errorThrown:!1,error:null}),s(),C){const{errorThrown:c,error:R}=t;if(t=null,c)throw R}}else s()}function M(s){e.v.useDeprecatedSynchronousErrorHandling&&t&&(t.errorThrown=!0,t.error=s)}},9672:(Ue,K,m)=>{"use strict";function e(t,v,M,s=0,C=!1){const c=v.schedule(function(){M(),C?t.add(this.schedule(null,s)):this.unsubscribe()},s);if(t.add(c),!C)return c}m.d(K,{f:()=>e})},4671:(Ue,K,m)=>{"use strict";function e(t){return t}m.d(K,{y:()=>e})},1144:(Ue,K,m)=>{"use strict";m.d(K,{z:()=>e});const e=t=>t&&"number"==typeof t.length&&"function"!=typeof t},2206:(Ue,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:(Ue,K,m)=>{"use strict";function e(t){return t instanceof Date&&!isNaN(t)}m.d(K,{q:()=>e})},576:(Ue,K,m)=>{"use strict";function e(t){return"function"==typeof t}m.d(K,{m:()=>e})},3670:(Ue,K,m)=>{"use strict";m.d(K,{c:()=>v});var e=m(8822),t=m(576);function v(M){return(0,t.m)(M[e.L])}},6495:(Ue,K,m)=>{"use strict";m.d(K,{T:()=>v});var e=m(2202),t=m(576);function v(M){return(0,t.m)(null==M?void 0:M[e.h])}},5191:(Ue,K,m)=>{"use strict";m.d(K,{b:()=>v});var e=m(8306),t=m(576);function v(M){return!!M&&(M instanceof e.y||(0,t.m)(M.lift)&&(0,t.m)(M.subscribe))}},8239:(Ue,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:(Ue,K,m)=>{"use strict";m.d(K,{Q:()=>v,L:()=>M});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:R,done:o}=yield(0,e.qq)(c.read());if(o)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(R)}}finally{c.releaseLock()}})}function M(s){return(0,t.m)(null==s?void 0:s.getReader)}},3532:(Ue,K,m)=>{"use strict";m.d(K,{K:()=>t});var e=m(576);function t(v){return v&&(0,e.m)(v.schedule)}},4482:(Ue,K,m)=>{"use strict";m.d(K,{A:()=>t,e:()=>v});var e=m(576);function t(M){return(0,e.m)(null==M?void 0:M.lift)}function v(M){return s=>{if(t(s))return s.lift(function(C){try{return M(C,this)}catch(c){this.error(c)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Ue,K,m)=>{"use strict";m.d(K,{Z:()=>M});var e=m(4004);const{isArray:t}=Array;function M(s){return(0,e.U)(C=>function(s,C){return t(C)?s(...C):s(C)}(s,C))}},5032:(Ue,K,m)=>{"use strict";function e(){}m.d(K,{Z:()=>e})},7849:(Ue,K,m)=>{"use strict";m.d(K,{h:()=>v});var e=m(2416),t=m(3410);function v(M){t.z.setTimeout(()=>{const{onUnhandledError:s}=e.v;if(!s)throw M;s(M)})}},4532:(Ue,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:(Ue,K,m)=>{var e=m(3172),t=e.Buffer;function v(s,C){for(var c in s)C[c]=s[c]}function M(s,C,c){return t(s,C,c)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ue.exports=e:(v(e,K),K.Buffer=M),v(t,M),M.from=function(s,C,c){if("number"==typeof s)throw new TypeError("Argument must not be a number");return t(s,C,c)},M.alloc=function(s,C,c){if("number"!=typeof s)throw new TypeError("Argument must be a number");var R=t(s);return void 0!==C?"string"==typeof c?R.fill(C,c):R.fill(C):R.fill(0),R},M.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t(s)},M.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e.SlowBuffer(s)}},2038:(Ue,K,m)=>{"use strict";var M,e=m(3172),t=e.Buffer,v={};for(M in e)!e.hasOwnProperty(M)||"SlowBuffer"===M||"Buffer"===M||(v[M]=e[M]);var s=v.Buffer={};for(M in t)!t.hasOwnProperty(M)||"allocUnsafe"===M||"allocUnsafeSlow"===M||(s[M]=t[M]);if(v.Buffer.prototype=t.prototype,(!s.from||s.from===Uint8Array.from)&&(s.from=function(C,c,R){if("number"==typeof C)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof C);if(C&&void 0===C.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);return t(C,c,R)}),s.alloc||(s.alloc=function(C,c,R){if("number"!=typeof C)throw new TypeError('The "size" argument must be of type number. Received type '+typeof C);if(C<0||C>=2*(1<<30))throw new RangeError('The value "'+C+'" is invalid for option "size"');var o=t(C);return c&&0!==c.length?"string"==typeof R?o.fill(c,R):o.fill(c):o.fill(0),o}),!v.kStringMaxLength)try{v.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(C){}v.constants||(v.constants={MAX_LENGTH:v.kMaxLength},v.kStringMaxLength&&(v.constants.MAX_STRING_LENGTH=v.kStringMaxLength)),Ue.exports=v},6692:(Ue,K,m)=>{var e=m(3502).Buffer;function t(v,M){this._block=e.alloc(v),this._finalSize=M,this._blockSize=v,this._len=0}t.prototype.update=function(v,M){"string"==typeof v&&(v=e.from(v,M=M||"utf8"));for(var s=this._block,C=this._blockSize,c=v.length,R=this._len,o=0;o<c;){for(var O=R%C,T=Math.min(c-o,C-O),P=0;P<T;P++)s[O+P]=v[o+P];o+=T,(R+=T)%C==0&&this._update(s)}return this._len+=c,this},t.prototype.digest=function(v){var M=this._len%this._blockSize;this._block[M]=128,this._block.fill(0,M+1),M>=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 C=(4294967295&s)>>>0;this._block.writeUInt32BE((s-C)/4294967296,this._blockSize-8),this._block.writeUInt32BE(C,this._blockSize-4)}this._update(this._block);var R=this._hash();return v?R.toString(v):R},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Ue.exports=t},5244:(Ue,K,m)=>{var e=Ue.exports=function(v){v=v.toLowerCase();var M=e[v];if(!M)throw new Error(v+" is not supported (we accept pull requests)");return new M};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:(Ue,K,m)=>{var e=m(3894),t=m(6692),v=m(3502).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function C(){this.init(),this._w=s,t.call(this,64,56)}function c(O){return O<<5|O>>>27}function R(O){return O<<30|O>>>2}function o(O,T,P,S){return 0===O?T&P|~T&S:2===O?T&P|T&S|P&S:T^P^S}e(C,t),C.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},C.prototype._update=function(O){for(var T=this._w,P=0|this._a,S=0|this._b,D=0|this._c,w=0|this._d,U=0|this._e,G=0;G<16;++G)T[G]=O.readInt32BE(4*G);for(;G<80;++G)T[G]=T[G-3]^T[G-8]^T[G-14]^T[G-16];for(var W=0;W<80;++W){var ee=~~(W/20),ie=c(P)+o(ee,S,D,w)+U+T[W]+M[ee]|0;U=w,w=D,D=R(S),S=P,P=ie}this._a=P+this._a|0,this._b=S+this._b|0,this._c=D+this._c|0,this._d=w+this._d|0,this._e=U+this._e|0},C.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},Ue.exports=C},7736:(Ue,K,m)=>{var e=m(3894),t=m(6692),v=m(3502).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function C(){this.init(),this._w=s,t.call(this,64,56)}function c(T){return T<<1|T>>>31}function R(T){return T<<5|T>>>27}function o(T){return T<<30|T>>>2}function O(T,P,S,D){return 0===T?P&S|~P&D:2===T?P&S|P&D|S&D:P^S^D}e(C,t),C.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},C.prototype._update=function(T){for(var P=this._w,S=0|this._a,D=0|this._b,w=0|this._c,U=0|this._d,G=0|this._e,W=0;W<16;++W)P[W]=T.readInt32BE(4*W);for(;W<80;++W)P[W]=c(P[W-3]^P[W-8]^P[W-14]^P[W-16]);for(var ee=0;ee<80;++ee){var ie=~~(ee/20),_e=R(S)+O(ie,D,w,U)+G+P[ee]+M[ie]|0;G=U,U=w,w=o(D),D=S,S=_e}this._a=S+this._a|0,this._b=D+this._b|0,this._c=w+this._c|0,this._d=U+this._d|0,this._e=G+this._e|0},C.prototype._hash=function(){var T=v.allocUnsafe(20);return T.writeInt32BE(0|this._a,0),T.writeInt32BE(0|this._b,4),T.writeInt32BE(0|this._c,8),T.writeInt32BE(0|this._d,12),T.writeInt32BE(0|this._e,16),T},Ue.exports=C},5044:(Ue,K,m)=>{var e=m(3894),t=m(5014),v=m(6692),M=m(3502).Buffer,s=new Array(64);function C(){this.init(),this._w=s,v.call(this,64,56)}e(C,t),C.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},C.prototype._hash=function(){var c=M.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},Ue.exports=C},5014:(Ue,K,m)=>{var e=m(3894),t=m(6692),v=m(3502).Buffer,M=[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 C(){this.init(),this._w=s,t.call(this,64,56)}function c(S,D,w){return w^S&(D^w)}function R(S,D,w){return S&D|w&(S|D)}function o(S){return(S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10)}function O(S){return(S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7)}function T(S){return(S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3}function P(S){return(S>>>17|S<<15)^(S>>>19|S<<13)^S>>>10}e(C,t),C.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},C.prototype._update=function(S){for(var D=this._w,w=0|this._a,U=0|this._b,G=0|this._c,W=0|this._d,ee=0|this._e,ie=0|this._f,_e=0|this._g,fe=0|this._h,de=0;de<16;++de)D[de]=S.readInt32BE(4*de);for(;de<64;++de)D[de]=P(D[de-2])+D[de-7]+T(D[de-15])+D[de-16]|0;for(var ne=0;ne<64;++ne){var se=fe+O(ee)+c(ee,ie,_e)+M[ne]+D[ne]|0,oe=o(w)+R(w,U,G)|0;fe=_e,_e=ie,ie=ee,ee=W+se|0,W=G,G=U,U=w,w=se+oe|0}this._a=w+this._a|0,this._b=U+this._b|0,this._c=G+this._c|0,this._d=W+this._d|0,this._e=ee+this._e|0,this._f=ie+this._f|0,this._g=_e+this._g|0,this._h=fe+this._h|0},C.prototype._hash=function(){var S=v.allocUnsafe(32);return S.writeInt32BE(this._a,0),S.writeInt32BE(this._b,4),S.writeInt32BE(this._c,8),S.writeInt32BE(this._d,12),S.writeInt32BE(this._e,16),S.writeInt32BE(this._f,20),S.writeInt32BE(this._g,24),S.writeInt32BE(this._h,28),S},Ue.exports=C},6540:(Ue,K,m)=>{var e=m(3894),t=m(117),v=m(6692),M=m(3502).Buffer,s=new Array(160);function C(){this.init(),this._w=s,v.call(this,128,112)}e(C,t),C.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},C.prototype._hash=function(){var c=M.allocUnsafe(48);function R(o,O,T){c.writeInt32BE(o,T),c.writeInt32BE(O,T+4)}return R(this._ah,this._al,0),R(this._bh,this._bl,8),R(this._ch,this._cl,16),R(this._dh,this._dl,24),R(this._eh,this._el,32),R(this._fh,this._fl,40),c},Ue.exports=C},117:(Ue,K,m)=>{var e=m(3894),t=m(6692),v=m(3502).Buffer,M=[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 C(){this.init(),this._w=s,t.call(this,128,112)}function c(U,G,W){return W^U&(G^W)}function R(U,G,W){return U&G|W&(U|G)}function o(U,G){return(U>>>28|G<<4)^(G>>>2|U<<30)^(G>>>7|U<<25)}function O(U,G){return(U>>>14|G<<18)^(U>>>18|G<<14)^(G>>>9|U<<23)}function T(U,G){return(U>>>1|G<<31)^(U>>>8|G<<24)^U>>>7}function P(U,G){return(U>>>1|G<<31)^(U>>>8|G<<24)^(U>>>7|G<<25)}function S(U,G){return(U>>>19|G<<13)^(G>>>29|U<<3)^U>>>6}function D(U,G){return(U>>>19|G<<13)^(G>>>29|U<<3)^(U>>>6|G<<26)}function w(U,G){return U>>>0<G>>>0?1:0}e(C,t),C.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},C.prototype._update=function(U){for(var G=this._w,W=0|this._ah,ee=0|this._bh,ie=0|this._ch,_e=0|this._dh,fe=0|this._eh,de=0|this._fh,ne=0|this._gh,se=0|this._hh,oe=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,L=0|this._hl,I=0;I<32;I+=2)G[I]=U.readInt32BE(4*I),G[I+1]=U.readInt32BE(4*I+4);for(;I<160;I+=2){var x=G[I-30],r=G[I-30+1],b=T(x,r),J=P(r,x),F=S(x=G[I-4],r=G[I-4+1]),B=D(r,x),Pe=G[I-32],Fe=G[I-32+1],q=J+G[I-14+1]|0,j=b+G[I-14]+w(q,J)|0;j=(j=j+F+w(q=q+B|0,B)|0)+Pe+w(q=q+Fe|0,Fe)|0,G[I]=j,G[I+1]=q}for(var we=0;we<160;we+=2){j=G[we],q=G[we+1];var Ae=R(W,ee,ie),le=R(oe,y,i),We=o(W,oe),yt=o(oe,W),Ne=O(fe,p),Ve=O(p,fe),ue=M[we],Te=M[we+1],ke=c(fe,de,ne),Y=c(p,u,_),X=L+Ve|0,he=se+Ne+w(X,L)|0;he=(he=(he=he+ke+w(X=X+Y|0,Y)|0)+ue+w(X=X+Te|0,Te)|0)+j+w(X=X+q|0,q)|0;var Me=yt+le|0,ze=We+Ae+w(Me,yt)|0;se=ne,L=_,ne=de,_=u,de=fe,u=p,fe=_e+he+w(p=a+X|0,a)|0,_e=ie,a=i,ie=ee,i=y,ee=W,y=oe,W=he+ze+w(oe=X+Me|0,X)|0}this._al=this._al+oe|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+L|0,this._ah=this._ah+W+w(this._al,oe)|0,this._bh=this._bh+ee+w(this._bl,y)|0,this._ch=this._ch+ie+w(this._cl,i)|0,this._dh=this._dh+_e+w(this._dl,a)|0,this._eh=this._eh+fe+w(this._el,p)|0,this._fh=this._fh+de+w(this._fl,u)|0,this._gh=this._gh+ne+w(this._gl,_)|0,this._hh=this._hh+se+w(this._hl,L)|0},C.prototype._hash=function(){var U=v.allocUnsafe(64);function G(W,ee,ie){U.writeInt32BE(W,ie),U.writeInt32BE(ee,ie+4)}return G(this._ah,this._al,0),G(this._bh,this._bl,8),G(this._ch,this._cl,16),G(this._dh,this._dl,24),G(this._eh,this._el,32),G(this._fh,this._fl,40),G(this._gh,this._gl,48),G(this._hh,this._hl,56),U},Ue.exports=C},8012:function(Ue,K,m){!function(e){"use strict";var t={};Ue.exports?(t.bytesToHex=m(6128).bytesToHex,t.convertString=m(5612),Ue.exports=R):(t.bytesToHex=e.convertHex.bytesToHex,t.convertString=e.convertString,e.sha256=R);var v=[];!function(){function o(S){for(var D=Math.sqrt(S),w=2;w<=D;w++)if(!(S%w))return!1;return!0}for(var T=2,P=0;P<64;)o(T)&&(v[P]=4294967296*((S=Math.pow(T,1/3))-(0|S))|0,P++),T++;var S}();var C=[],c=function(o,O,T){for(var P=o[0],S=o[1],D=o[2],w=o[3],U=o[4],G=o[5],W=o[6],ee=o[7],ie=0;ie<64;ie++){if(ie<16)C[ie]=0|O[T+ie];else{var _e=C[ie-15],de=C[ie-2];C[ie]=((_e<<25|_e>>>7)^(_e<<14|_e>>>18)^_e>>>3)+C[ie-7]+((de<<15|de>>>17)^(de<<13|de>>>19)^de>>>10)+C[ie-16]}var oe=P&S^P&D^S&D,a=ee+((U<<26|U>>>6)^(U<<21|U>>>11)^(U<<7|U>>>25))+(U&G^~U&W)+v[ie]+C[ie];ee=W,W=G,G=U,U=w+a|0,w=D,D=S,S=P,P=a+(((P<<30|P>>>2)^(P<<19|P>>>13)^(P<<10|P>>>22))+oe)|0}o[0]=o[0]+P|0,o[1]=o[1]+S|0,o[2]=o[2]+D|0,o[3]=o[3]+w|0,o[4]=o[4]+U|0,o[5]=o[5]+G|0,o[6]=o[6]+W|0,o[7]=o[7]+ee|0};function R(o,O){o.constructor===String&&(o=t.convertString.UTF8.stringToBytes(o));var T=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],P=function(o){for(var O=[],T=0,P=0;T<o.length;T++,P+=8)O[P>>>5]|=o[T]<<24-P%32;return O}(o),S=8*o.length;P[S>>5]|=128<<24-S%32,P[15+(S+64>>9<<4)]=S;for(var D=0;D<P.length;D+=16)c(T,P,D);var w=function(o){for(var O=[],T=0;T<32*o.length;T+=8)O.push(o[T>>>5]>>>24-T%32&255);return O}(T);return O&&O.asBytes?w:O&&O.asString?t.convertString.bytesToString(w):t.bytesToHex(w)}R.x2=function(o,O){return R(R(o,{asBytes:!0}),O)}}(this)},4315:(Ue,K,m)=>{"use strict";const e=Symbol.prototype.valueOf,t=m(2872);Ue.exports=function(o,O){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 O=o.length,T=Buffer.allocUnsafe?Buffer.allocUnsafe(O):Buffer.from(O);return o.copy(T),T}(o);case"symbol":return function(o){return e?Object(e.call(o)):{}}(o);case"arraybuffer":return function(o){const O=new o.constructor(o.byteLength);return new Uint8Array(O).set(new Uint8Array(o)),O}(o);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function(o,O){return new o.constructor(o.buffer,o.byteOffset,o.length)}(o);case"regexp":return function(o){const O=void 0!==o.flags?o.flags:/\w+$/.exec(o)||void 0,T=new o.constructor(o.source,O);return T.lastIndex=o.lastIndex,T}(o);case"error":return Object.create(o);default:return o}}},295:(Ue,K,m)=>{Ue.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(M,s){var C=this;function c(D){M.writable&&!1===M.write(D)&&C.pause&&C.pause()}function R(){C.readable&&C.resume&&C.resume()}C.on("data",c),M.on("drain",R),!M._isStdio&&(!s||!1!==s.end)&&(C.on("end",O),C.on("close",T));var o=!1;function O(){o||(o=!0,M.end())}function T(){o||(o=!0,"function"==typeof M.destroy&&M.destroy())}function P(D){if(S(),0===e.listenerCount(this,"error"))throw D}function S(){C.removeListener("data",c),M.removeListener("drain",R),C.removeListener("end",O),C.removeListener("close",T),C.removeListener("error",P),M.removeListener("error",P),C.removeListener("end",S),C.removeListener("close",S),M.removeListener("close",S)}return C.on("error",P),M.on("error",P),C.on("end",S),C.on("close",S),M.on("close",S),M.emit("pipe",C),M}},3054:(Ue,K,m)=>{"use strict";var e=m(858).Buffer,t=e.isEncoding||function(W){switch((W=""+W)&&W.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(W){var ee;switch(this.encoding=function(W){var ee=function(W){if(!W)return"utf8";for(var ee;;)switch(W){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 W;default:if(ee)return;W=(""+W).toLowerCase(),ee=!0}}(W);if("string"!=typeof ee&&(e.isEncoding===t||!t(W)))throw new Error("Unknown encoding: "+W);return ee||W}(W),this.encoding){case"utf16le":this.text=P,this.end=S,ee=4;break;case"utf8":this.fillLast=o,ee=4;break;case"base64":this.text=D,this.end=w,ee=3;break;default:return this.write=U,void(this.end=G)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(ee)}function C(W){return W<=127?0:W>>5==6?2:W>>4==14?3:W>>3==30?4:W>>6==2?-1:-2}function o(W){var ee=this.lastTotal-this.lastNeed,ie=function(W,ee,ie){if(128!=(192&ee[0]))return W.lastNeed=0,"\ufffd";if(W.lastNeed>1&&ee.length>1){if(128!=(192&ee[1]))return W.lastNeed=1,"\ufffd";if(W.lastNeed>2&&ee.length>2&&128!=(192&ee[2]))return W.lastNeed=2,"\ufffd"}}(this,W);return void 0!==ie?ie:this.lastNeed<=W.length?(W.copy(this.lastChar,ee,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(W.copy(this.lastChar,ee,0,W.length),void(this.lastNeed-=W.length))}function P(W,ee){if((W.length-ee)%2==0){var ie=W.toString("utf16le",ee);if(ie){var _e=ie.charCodeAt(ie.length-1);if(_e>=55296&&_e<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],ie.slice(0,-1)}return ie}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",ee,W.length-1)}function S(W){var ee=W&&W.length?this.write(W):"";return this.lastNeed?ee+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ee}function D(W,ee){var ie=(W.length-ee)%3;return 0===ie?W.toString("base64",ee):(this.lastNeed=3-ie,this.lastTotal=3,1===ie?this.lastChar[0]=W[W.length-1]:(this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1]),W.toString("base64",ee,W.length-ie))}function w(W){var ee=W&&W.length?this.write(W):"";return this.lastNeed?ee+this.lastChar.toString("base64",0,3-this.lastNeed):ee}function U(W){return W.toString(this.encoding)}function G(W){return W&&W.length?this.write(W):""}K.s=s,s.prototype.write=function(W){if(0===W.length)return"";var ee,ie;if(this.lastNeed){if(void 0===(ee=this.fillLast(W)))return"";ie=this.lastNeed,this.lastNeed=0}else ie=0;return ie<W.length?ee?ee+this.text(W,ie):this.text(W,ie):ee||""},s.prototype.end=function(W){var ee=W&&W.length?this.write(W):"";return this.lastNeed?ee+"\ufffd":ee},s.prototype.text=function(W,ee){var ie=function(W,ee,ie){var _e=ee.length-1;if(_e<ie)return 0;var fe=C(ee[_e]);return fe>=0?(fe>0&&(W.lastNeed=fe-1),fe):--_e<ie||-2===fe?0:(fe=C(ee[_e]))>=0?(fe>0&&(W.lastNeed=fe-2),fe):--_e<ie||-2===fe?0:(fe=C(ee[_e]))>=0?(fe>0&&(2===fe?fe=0:W.lastNeed=fe-3),fe):0}(this,W,ee);if(!this.lastNeed)return W.toString("utf8",ee);this.lastTotal=ie;var _e=W.length-(ie-this.lastNeed);return W.copy(this.lastChar,0,_e),W.toString("utf8",ee,_e)},s.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length}},858:(Ue,K,m)=>{var e=m(3172),t=e.Buffer;function v(s,C){for(var c in s)C[c]=s[c]}function M(s,C,c){return t(s,C,c)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?Ue.exports=e:(v(e,K),K.Buffer=M),M.prototype=Object.create(t.prototype),v(t,M),M.from=function(s,C,c){if("number"==typeof s)throw new TypeError("Argument must not be a number");return t(s,C,c)},M.alloc=function(s,C,c){if("number"!=typeof s)throw new TypeError("Argument must be a number");var R=t(s);return void 0!==C?"string"==typeof c?R.fill(C,c):R.fill(C):R.fill(0),R},M.allocUnsafe=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return t(s)},M.allocUnsafeSlow=function(s){if("number"!=typeof s)throw new TypeError("Argument must be a number");return e.SlowBuffer(s)}},2167:(Ue,K,m)=>{var e=m(4606);K.encode=e.encode,K.decode=e.decode},4606:(Ue,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 M=0,s=0,C=0,c=0,R=new Buffer(8*function(v){var M=Math.floor(v.length/5);return v.length%5==0?M:M+1}(v));M<v.length;){var o=v[M];C>3?(c=(c=o&255>>C)<<(C=(C+5)%8)|(M+1<v.length?v[M+1]:0)>>8-C,M++):(c=o>>8-(C+5)&31,0==(C=(C+5)%8)&&M++),R[s]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(c),s++}for(M=s;M<R.length;M++)R[M]=61;return R},K.decode=function(v){var C,M=0,s=0,c=0;Buffer.isBuffer(v)||(v=new Buffer(v));for(var R=new Buffer(Math.ceil(5*v.length/8)),o=0;o<v.length&&61!==v[o];o++){var O=v[o]-48;if(!(O<e.length))throw new Error("Invalid input - it is not base32 encoded string");s=e[O],M<=3?0==(M=(M+5)%8)?(R[c]=C|=s,c++,C=0):C|=255&s<<8-M:(R[c]=C|=255&s>>>(M=(M+5)%8),c++,C=255&s<<8-M)}return R.slice(0,c)}},4364:Ue=>{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()}Ue.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:(Ue,K,m)=>{"use strict";function R(y,i,a,p){return new(a||(a=Promise))(function(_,L){function I(b){try{r(p.next(b))}catch(J){L(J)}}function x(b){try{r(p.throw(b))}catch(J){L(J)}}function r(b){b.done?_(b.value):function(_){return _ instanceof a?_:new a(function(L){L(_)})}(b.value).then(I,x)}r((p=p.apply(y,i||[])).next())})}function G(y){return this instanceof G?(this.v=y,this):new G(y)}function W(y,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,p=a.apply(y,i||[]),_=[];return u={},L("next"),L("throw"),L("return"),u[Symbol.asyncIterator]=function(){return this},u;function L(F){p[F]&&(u[F]=function(B){return new Promise(function(te,xe){_.push([F,B,te,xe])>1||I(F,B)})})}function I(F,B){try{!function(F){F.value instanceof G?Promise.resolve(F.value.v).then(r,b):J(_[0][2],F)}(p[F](B))}catch(te){J(_[0][3],te)}}function r(F){I("next",F)}function b(F){I("throw",F)}function J(F,B){F(B),_.shift(),_.length&&I(_[0][0],_[0][1])}}function ie(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(L){return new Promise(function(I,x){!function(_,L,I,x){Promise.resolve(x).then(function(r){_({value:r,done:I})},L)}(I,x,(L=y[_](L)).done,L.value)})}}}m.d(K,{mG:()=>R,qq:()=>G,FC:()=>W,KL:()=>ie})},655:(Ue,K,m)=>{"use strict";function s(y,i,a,p){var L,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--)(L=y[I])&&(_=(u<3?L(_):u>3?L(i,a,_):L(i,a))||_);return u>3&&_&&Object.defineProperty(i,a,_),_}function R(y,i,a,p){return new(a||(a=Promise))(function(_,L){function I(b){try{r(p.next(b))}catch(J){L(J)}}function x(b){try{r(p.throw(b))}catch(J){L(J)}}function r(b){b.done?_(b.value):function(_){return _ instanceof a?_:new a(function(L){L(_)})}(b.value).then(I,x)}r((p=p.apply(y,i||[])).next())})}m.d(K,{gn:()=>s,mG:()=>R})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(Ue,K,m)=>{"use strict";m.d(K,{l3:()=>v,_j:()=>e,LC:()=>t,ZN:()=>W,jt:()=>s,pV:()=>S,ru:()=>C,F4:()=>O,IO:()=>w,vP:()=>c,SB:()=>o,oB:()=>R,eR:()=>T,X$:()=>M,ZE:()=>ee,k1:()=>ie});class e{}class t{}const v="*";function M(_e,fe){return{type:7,name:_e,definitions:fe,options:{}}}function s(_e,fe=null){return{type:4,styles:fe,timings:_e}}function C(_e,fe=null){return{type:3,steps:_e,options:fe}}function c(_e,fe=null){return{type:2,steps:_e,options:fe}}function R(_e){return{type:6,styles:_e,offset:null}}function o(_e,fe,de){return{type:0,name:_e,styles:fe,options:de}}function O(_e){return{type:5,steps:_e}}function T(_e,fe,de=null){return{type:1,expr:_e,animation:fe,options:de}}function S(_e=null){return{type:9,options:_e}}function w(_e,fe,de=null){return{type:11,selector:_e,animation:fe,options:de}}function G(_e){Promise.resolve(null).then(_e)}class W{constructor(fe=0,de=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=fe+de}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(fe=>fe()),this._onDoneFns=[])}onStart(fe){this._onStartFns.push(fe)}onDone(fe){this._onDoneFns.push(fe)}onDestroy(fe){this._onDestroyFns.push(fe)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){G(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(fe=>fe()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(fe=>fe()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(fe){this._position=this.totalTime?fe*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(fe){const de="start"==fe?this._onStartFns:this._onDoneFns;de.forEach(ne=>ne()),de.length=0}}class ee{constructor(fe){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=fe;let de=0,ne=0,se=0;const oe=this.players.length;0==oe?G(()=>this._onFinish()):this.players.forEach(y=>{y.onDone(()=>{++de==oe&&this._onFinish()}),y.onDestroy(()=>{++ne==oe&&this._onDestroy()}),y.onStart(()=>{++se==oe&&this._onStart()})}),this.totalTime=this.players.reduce((y,i)=>Math.max(y,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(fe=>fe()),this._onDoneFns=[])}init(){this.players.forEach(fe=>fe.init())}onStart(fe){this._onStartFns.push(fe)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(fe=>fe()),this._onStartFns=[])}onDone(fe){this._onDoneFns.push(fe)}onDestroy(fe){this._onDestroyFns.push(fe)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(fe=>fe.play())}pause(){this.players.forEach(fe=>fe.pause())}restart(){this.players.forEach(fe=>fe.restart())}finish(){this._onFinish(),this.players.forEach(fe=>fe.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(fe=>fe.destroy()),this._onDestroyFns.forEach(fe=>fe()),this._onDestroyFns=[])}reset(){this.players.forEach(fe=>fe.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(fe){const de=fe*this.totalTime;this.players.forEach(ne=>{const se=ne.totalTime?Math.min(1,de/ne.totalTime):1;ne.setPosition(se)})}getPosition(){const fe=this.players.reduce((de,ne)=>null===de||ne.totalTime>de.totalTime?ne:de,null);return null!=fe?fe.getPosition():0}beforeDestroy(){this.players.forEach(fe=>{fe.beforeDestroy&&fe.beforeDestroy()})}triggerCallback(fe){const de="start"==fe?this._onStartFns:this._onDoneFns;de.forEach(ne=>ne()),de.length=0}}const ie="!"},5664:(Ue,K,m)=>{"use strict";m.d(K,{rt:()=>He,s1:()=>L,$s:()=>a,Qr:()=>Bt,kH:()=>jt,mK:()=>yt,Em:()=>I,tE:()=>Oi,qV:()=>We,qm:()=>di,ic:()=>r,Kd:()=>wt,X6:()=>Y,yG:()=>X});var e=m(9808),t=m(5e3),v=m(7579),M=m(727),s=m(1135),C=m(9646),c=m(1159),R=m(8505),o=m(8372),O=m(9300),T=m(4004),P=m(5698),S=m(5684),D=m(1884),w=m(2722),U=m(3191),G=m(925),W=m(7144);function fe(Se,V){return(Se.getAttribute(V)||"").match(/\S+/g)||[]}const de="cdk-describedby-message-container",ne="cdk-describedby-message",se="cdk-describedby-host";let oe=0;const y=new Map;let i=null,a=(()=>{class Se{constructor(ve){this._document=ve}describe(ve,Ee,et){if(!this._canBeDescribed(ve,Ee))return;const $t=p(Ee,et);"string"!=typeof Ee?(u(Ee),y.set($t,{messageElement:Ee,referenceCount:0})):y.has($t)||this._createMessageElement(Ee,et),this._isElementDescribedByMessage(ve,$t)||this._addMessageReference(ve,$t)}removeDescription(ve,Ee,et){if(!Ee||!this._isElementNode(ve))return;const $t=p(Ee,et);if(this._isElementDescribedByMessage(ve,$t)&&this._removeMessageReference(ve,$t),"string"==typeof Ee){const Rt=y.get($t);Rt&&0===Rt.referenceCount&&this._deleteMessageElement($t)}i&&0===i.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const ve=this._document.querySelectorAll(`[${se}]`);for(let Ee=0;Ee<ve.length;Ee++)this._removeCdkDescribedByReferenceIds(ve[Ee]),ve[Ee].removeAttribute(se);i&&this._deleteMessagesContainer(),y.clear()}_createMessageElement(ve,Ee){const et=this._document.createElement("div");u(et),et.textContent=ve,Ee&&et.setAttribute("role",Ee),this._createMessagesContainer(),i.appendChild(et),y.set(p(ve,Ee),{messageElement:et,referenceCount:0})}_deleteMessageElement(ve){var Ee;const et=y.get(ve);null===(Ee=null==et?void 0:et.messageElement)||void 0===Ee||Ee.remove(),y.delete(ve)}_createMessagesContainer(){if(!i){const ve=this._document.getElementById(de);null==ve||ve.remove(),i=this._document.createElement("div"),i.id=de,i.style.visibility="hidden",i.classList.add("cdk-visually-hidden"),this._document.body.appendChild(i)}}_deleteMessagesContainer(){i&&(i.remove(),i=null)}_removeCdkDescribedByReferenceIds(ve){const Ee=fe(ve,"aria-describedby").filter(et=>0!=et.indexOf(ne));ve.setAttribute("aria-describedby",Ee.join(" "))}_addMessageReference(ve,Ee){const et=y.get(Ee);(function(Se,V,ve){const Ee=fe(Se,V);Ee.some(et=>et.trim()==ve.trim())||(Ee.push(ve.trim()),Se.setAttribute(V,Ee.join(" ")))})(ve,"aria-describedby",et.messageElement.id),ve.setAttribute(se,""),et.referenceCount++}_removeMessageReference(ve,Ee){const et=y.get(Ee);et.referenceCount--,function(Se,V,ve){const et=fe(Se,V).filter($t=>$t!=ve.trim());et.length?Se.setAttribute(V,et.join(" ")):Se.removeAttribute(V)}(ve,"aria-describedby",et.messageElement.id),ve.removeAttribute(se)}_isElementDescribedByMessage(ve,Ee){const et=fe(ve,"aria-describedby"),$t=y.get(Ee),Rt=$t&&$t.messageElement.id;return!!Rt&&-1!=et.indexOf(Rt)}_canBeDescribed(ve,Ee){if(!this._isElementNode(ve))return!1;if(Ee&&"object"==typeof Ee)return!0;const et=null==Ee?"":`${Ee}`.trim(),$t=ve.getAttribute("aria-label");return!(!et||$t&&$t.trim()===et)}_isElementNode(ve){return ve.nodeType===this._document.ELEMENT_NODE}}return Se.\u0275fac=function(ve){return new(ve||Se)(t.LFG(e.K0))},Se.\u0275prov=t.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();function p(Se,V){return"string"==typeof Se?`${V||""}/${Se}`:Se}function u(Se){Se.id||(Se.id=`${ne}-${oe++}`)}class _{constructor(V){this._items=V,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new v.x,this._typeaheadSubscription=M.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=ve=>ve.disabled,this._pressedLetters=[],this.tabOut=new v.x,this.change=new v.x,V instanceof t.n_E&&V.changes.subscribe(ve=>{if(this._activeItem){const et=ve.toArray().indexOf(this._activeItem);et>-1&&et!==this._activeItemIndex&&(this._activeItemIndex=et)}})}skipPredicate(V){return this._skipPredicateFn=V,this}withWrap(V=!0){return this._wrap=V,this}withVerticalOrientation(V=!0){return this._vertical=V,this}withHorizontalOrientation(V){return this._horizontal=V,this}withAllowedModifierKeys(V){return this._allowedModifierKeys=V,this}withTypeAhead(V=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,R.b)(ve=>this._pressedLetters.push(ve)),(0,o.b)(V),(0,O.h)(()=>this._pressedLetters.length>0),(0,T.U)(()=>this._pressedLetters.join(""))).subscribe(ve=>{const Ee=this._getItemsArray();for(let et=1;et<Ee.length+1;et++){const $t=(this._activeItemIndex+et)%Ee.length,Rt=Ee[$t];if(!this._skipPredicateFn(Rt)&&0===Rt.getLabel().toUpperCase().trim().indexOf(ve)){this.setActiveItem($t);break}}this._pressedLetters=[]}),this}withHomeAndEnd(V=!0){return this._homeAndEnd=V,this}setActiveItem(V){const ve=this._activeItem;this.updateActiveItem(V),this._activeItem!==ve&&this.change.next(this._activeItemIndex)}onKeydown(V){const ve=V.keyCode,et=["altKey","ctrlKey","metaKey","shiftKey"].every($t=>!V[$t]||this._allowedModifierKeys.indexOf($t)>-1);switch(ve){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)(V,"shiftKey"))&&(V.key&&1===V.key.length?this._letterKeyStream.next(V.key.toLocaleUpperCase()):(ve>=c.A&&ve<=c.Z||ve>=c.xE&&ve<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(ve))))}this._pressedLetters=[],V.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(V){const ve=this._getItemsArray(),Ee="number"==typeof V?V:ve.indexOf(V),et=ve[Ee];this._activeItem=null==et?null:et,this._activeItemIndex=Ee}_setActiveItemByDelta(V){this._wrap?this._setActiveInWrapMode(V):this._setActiveInDefaultMode(V)}_setActiveInWrapMode(V){const ve=this._getItemsArray();for(let Ee=1;Ee<=ve.length;Ee++){const et=(this._activeItemIndex+V*Ee+ve.length)%ve.length;if(!this._skipPredicateFn(ve[et]))return void this.setActiveItem(et)}}_setActiveInDefaultMode(V){this._setActiveItemByIndex(this._activeItemIndex+V,V)}_setActiveItemByIndex(V,ve){const Ee=this._getItemsArray();if(Ee[V]){for(;this._skipPredicateFn(Ee[V]);)if(!Ee[V+=ve])return;this.setActiveItem(V)}}_getItemsArray(){return this._items instanceof t.n_E?this._items.toArray():this._items}}class L extends _{setActiveItem(V){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(V),this.activeItem&&this.activeItem.setActiveStyles()}}class I extends _{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(V){return this._origin=V,this}setActiveItem(V){super.setActiveItem(V),this.activeItem&&this.activeItem.focus(this._origin)}}let r=(()=>{class Se{constructor(ve){this._platform=ve}isDisabled(ve){return ve.hasAttribute("disabled")}isVisible(ve){return function(Se){return!!(Se.offsetWidth||Se.offsetHeight||"function"==typeof Se.getClientRects&&Se.getClientRects().length)}(ve)&&"visible"===getComputedStyle(ve).visibility}isTabbable(ve){if(!this._platform.isBrowser)return!1;const Ee=function(Se){try{return Se.frameElement}catch(V){return null}}(function(Se){return Se.ownerDocument&&Se.ownerDocument.defaultView||window}(ve));if(Ee&&(-1===q(Ee)||!this.isVisible(Ee)))return!1;let et=ve.nodeName.toLowerCase(),$t=q(ve);return ve.hasAttribute("contenteditable")?-1!==$t:!("iframe"===et||"object"===et||this._platform.WEBKIT&&this._platform.IOS&&!function(Se){let V=Se.nodeName.toLowerCase(),ve="input"===V&&Se.type;return"text"===ve||"password"===ve||"select"===V||"textarea"===V}(ve))&&("audio"===et?!!ve.hasAttribute("controls")&&-1!==$t:"video"===et?-1!==$t&&(null!==$t||this._platform.FIREFOX||ve.hasAttribute("controls")):ve.tabIndex>=0)}isFocusable(ve,Ee){return function(Se){return!function(Se){return function(Se){return"input"==Se.nodeName.toLowerCase()}(Se)&&"hidden"==Se.type}(Se)&&(function(Se){let V=Se.nodeName.toLowerCase();return"input"===V||"select"===V||"button"===V||"textarea"===V}(Se)||function(Se){return function(Se){return"a"==Se.nodeName.toLowerCase()}(Se)&&Se.hasAttribute("href")}(Se)||Se.hasAttribute("contenteditable")||Fe(Se))}(ve)&&!this.isDisabled(ve)&&((null==Ee?void 0:Ee.ignoreVisibility)||this.isVisible(ve))}}return Se.\u0275fac=function(ve){return new(ve||Se)(t.LFG(G.t4))},Se.\u0275prov=t.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();function Fe(Se){if(!Se.hasAttribute("tabindex")||void 0===Se.tabIndex)return!1;let V=Se.getAttribute("tabindex");return!(!V||isNaN(parseInt(V,10)))}function q(Se){if(!Fe(Se))return null;const V=parseInt(Se.getAttribute("tabindex")||"",10);return isNaN(V)?-1:V}class le{constructor(V,ve,Ee,et,$t=!1){this._element=V,this._checker=ve,this._ngZone=Ee,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(V){this._enabled=V,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(V,this._startAnchor),this._toggleAnchorTabIndex(V,this._endAnchor))}destroy(){const V=this._startAnchor,ve=this._endAnchor;V&&(V.removeEventListener("focus",this.startAnchorListener),V.remove()),ve&&(ve.removeEventListener("focus",this.endAnchorListener),ve.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(V){return new Promise(ve=>{this._executeOnStable(()=>ve(this.focusInitialElement(V)))})}focusFirstTabbableElementWhenReady(V){return new Promise(ve=>{this._executeOnStable(()=>ve(this.focusFirstTabbableElement(V)))})}focusLastTabbableElementWhenReady(V){return new Promise(ve=>{this._executeOnStable(()=>ve(this.focusLastTabbableElement(V)))})}_getRegionBoundary(V){const ve=this._element.querySelectorAll(`[cdk-focus-region-${V}], [cdkFocusRegion${V}], [cdk-focus-${V}]`);return"start"==V?ve.length?ve[0]:this._getFirstTabbableElement(this._element):ve.length?ve[ve.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(V){const ve=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ve){if(!this._checker.isFocusable(ve)){const Ee=this._getFirstTabbableElement(ve);return null==Ee||Ee.focus(V),!!Ee}return ve.focus(V),!0}return this.focusFirstTabbableElement(V)}focusFirstTabbableElement(V){const ve=this._getRegionBoundary("start");return ve&&ve.focus(V),!!ve}focusLastTabbableElement(V){const ve=this._getRegionBoundary("end");return ve&&ve.focus(V),!!ve}hasAttached(){return this._hasAttached}_getFirstTabbableElement(V){if(this._checker.isFocusable(V)&&this._checker.isTabbable(V))return V;const ve=V.children;for(let Ee=0;Ee<ve.length;Ee++){const et=ve[Ee].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(ve[Ee]):null;if(et)return et}return null}_getLastTabbableElement(V){if(this._checker.isFocusable(V)&&this._checker.isTabbable(V))return V;const ve=V.children;for(let Ee=ve.length-1;Ee>=0;Ee--){const et=ve[Ee].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ve[Ee]):null;if(et)return et}return null}_createAnchor(){const V=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,V),V.classList.add("cdk-visually-hidden"),V.classList.add("cdk-focus-trap-anchor"),V.setAttribute("aria-hidden","true"),V}_toggleAnchorTabIndex(V,ve){V?ve.setAttribute("tabindex","0"):ve.removeAttribute("tabindex")}toggleAnchors(V){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(V,this._startAnchor),this._toggleAnchorTabIndex(V,this._endAnchor))}_executeOnStable(V){this._ngZone.isStable?V():this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(V)}}let We=(()=>{class Se{constructor(ve,Ee,et){this._checker=ve,this._ngZone=Ee,this._document=et}create(ve,Ee=!1){return new le(ve,this._checker,this._ngZone,this._document,Ee)}}return Se.\u0275fac=function(ve){return new(ve||Se)(t.LFG(r),t.LFG(t.R0b),t.LFG(e.K0))},Se.\u0275prov=t.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),yt=(()=>{class Se{constructor(ve,Ee,et){this._elementRef=ve,this._focusTrapFactory=Ee,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(ve){this.focusTrap.enabled=(0,U.Ig)(ve)}get autoCapture(){return this._autoCapture}set autoCapture(ve){this._autoCapture=(0,U.Ig)(ve)}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(ve){const Ee=ve.autoCapture;Ee&&!Ee.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,G.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Se.\u0275fac=function(ve){return new(ve||Se)(t.Y36(t.SBq),t.Y36(We),t.Y36(e.K0))},Se.\u0275dir=t.lG2({type:Se,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[t.TTD]}),Se})();function Y(Se){return 0===Se.offsetX&&0===Se.offsetY}function X(Se){const V=Se.touches&&Se.touches[0]||Se.changedTouches&&Se.changedTouches[0];return!(!V||-1!==V.identifier||null!=V.radiusX&&1!==V.radiusX||null!=V.radiusY&&1!==V.radiusY)}const he=new t.OlP("cdk-input-modality-detector-options"),Me={ignoreKeys:[c.zL,c.jx,c.b2,c.MW,c.JU]},ht=(0,G.i$)({passive:!0,capture:!0});let it=(()=>{class Se{constructor(ve,Ee,et,$t){this._platform=ve,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=Rt=>{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===Rt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,G.sA)(Rt))},this._onMousedown=Rt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Y(Rt)?"keyboard":"mouse"),this._mostRecentTarget=(0,G.sA)(Rt))},this._onTouchstart=Rt=>{X(Rt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,G.sA)(Rt))},this._options=Object.assign(Object.assign({},Me),$t),this.modalityDetected=this._modality.pipe((0,S.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,D.x)()),ve.isBrowser&&Ee.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 Se.\u0275fac=function(ve){return new(ve||Se)(t.LFG(G.t4),t.LFG(t.R0b),t.LFG(e.K0),t.LFG(he,8))},Se.\u0275prov=t.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();const ft=new t.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),st=new t.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let wt=(()=>{class Se{constructor(ve,Ee,et,$t){this._ngZone=Ee,this._defaultOptions=$t,this._document=et,this._liveElement=ve||this._createLiveElement()}announce(ve,...Ee){const et=this._defaultOptions;let $t,Rt;return 1===Ee.length&&"number"==typeof Ee[0]?Rt=Ee[0]:[$t,Rt]=Ee,this.clear(),clearTimeout(this._previousTimeout),$t||($t=et&&et.politeness?et.politeness:"polite"),null==Rt&&et&&(Rt=et.duration),this._liveElement.setAttribute("aria-live",$t),this._ngZone.runOutsideAngular(()=>new Promise(Xt=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=ve,Xt(),"number"==typeof Rt&&(this._previousTimeout=setTimeout(()=>this.clear(),Rt))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var ve;clearTimeout(this._previousTimeout),null===(ve=this._liveElement)||void 0===ve||ve.remove(),this._liveElement=null}_createLiveElement(){const ve="cdk-live-announcer-element",Ee=this._document.getElementsByClassName(ve),et=this._document.createElement("div");for(let $t=0;$t<Ee.length;$t++)Ee[$t].remove();return et.classList.add(ve),et.classList.add("cdk-visually-hidden"),et.setAttribute("aria-atomic","true"),et.setAttribute("aria-live","polite"),this._document.body.appendChild(et),et}}return Se.\u0275fac=function(ve){return new(ve||Se)(t.LFG(ft,8),t.LFG(t.R0b),t.LFG(e.K0),t.LFG(st,8))},Se.\u0275prov=t.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),Bt=(()=>{class Se{constructor(ve,Ee,et,$t){this._elementRef=ve,this._liveAnnouncer=Ee,this._contentObserver=et,this._ngZone=$t,this._politeness="polite"}get politeness(){return this._politeness}set politeness(ve){this._politeness="off"===ve||"assertive"===ve?ve:"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 Ee=this._elementRef.nativeElement.textContent;Ee!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(Ee,this._politeness),this._previousAnnouncedText=Ee)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return Se.\u0275fac=function(ve){return new(ve||Se)(t.Y36(t.SBq),t.Y36(wt),t.Y36(W.yq),t.Y36(t.R0b))},Se.\u0275dir=t.lG2({type:Se,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),Se})();const Nt=new t.OlP("cdk-focus-monitor-default-options"),Vt=(0,G.i$)({passive:!0,capture:!0});let Oi=(()=>{class Se{constructor(ve,Ee,et,$t,Rt){this._ngZone=ve,this._platform=Ee,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,G.sA)(Xt),Re="focus"===Xt.type?this._onFocus:this._onBlur;for(let Be=lt;Be;Be=Be.parentElement)Re.call(this,Xt,Be)},this._document=$t,this._detectionMode=(null==Rt?void 0:Rt.detectionMode)||0}monitor(ve,Ee=!1){const et=(0,U.fI)(ve);if(!this._platform.isBrowser||1!==et.nodeType)return(0,C.of)(null);const $t=(0,G.kV)(et)||this._getDocument(),Rt=this._elementInfo.get(et);if(Rt)return Ee&&(Rt.checkChildren=!0),Rt.subject;const Xt={checkChildren:Ee,subject:new v.x,rootNode:$t};return this._elementInfo.set(et,Xt),this._registerGlobalListeners(Xt),Xt.subject}stopMonitoring(ve){const Ee=(0,U.fI)(ve),et=this._elementInfo.get(Ee);et&&(et.subject.complete(),this._setClasses(Ee),this._elementInfo.delete(Ee),this._removeGlobalListeners(et))}focusVia(ve,Ee,et){const $t=(0,U.fI)(ve);$t===this._getDocument().activeElement?this._getClosestElementsInfo($t).forEach(([Xt,lt])=>this._originChanged(Xt,Ee,lt)):(this._setOrigin(Ee),"function"==typeof $t.focus&&$t.focus(et))}ngOnDestroy(){this._elementInfo.forEach((ve,Ee)=>this.stopMonitoring(Ee))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ve){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ve)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(ve){return 1===this._detectionMode||!!(null==ve?void 0:ve.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(ve,Ee){ve.classList.toggle("cdk-focused",!!Ee),ve.classList.toggle("cdk-touch-focused","touch"===Ee),ve.classList.toggle("cdk-keyboard-focused","keyboard"===Ee),ve.classList.toggle("cdk-mouse-focused","mouse"===Ee),ve.classList.toggle("cdk-program-focused","program"===Ee)}_setOrigin(ve,Ee=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ve,this._originFromTouchInteraction="touch"===ve&&Ee,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ve,Ee){const et=this._elementInfo.get(Ee),$t=(0,G.sA)(ve);!et||!et.checkChildren&&Ee!==$t||this._originChanged(Ee,this._getFocusOrigin($t),et)}_onBlur(ve,Ee){const et=this._elementInfo.get(Ee);!et||et.checkChildren&&ve.relatedTarget instanceof Node&&Ee.contains(ve.relatedTarget)||(this._setClasses(Ee),this._emitOrigin(et.subject,null))}_emitOrigin(ve,Ee){this._ngZone.run(()=>ve.next(Ee))}_registerGlobalListeners(ve){if(!this._platform.isBrowser)return;const Ee=ve.rootNode,et=this._rootNodeFocusListenerCount.get(Ee)||0;et||this._ngZone.runOutsideAngular(()=>{Ee.addEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),Ee.addEventListener("blur",this._rootNodeFocusAndBlurListener,Vt)}),this._rootNodeFocusListenerCount.set(Ee,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(ve){const Ee=ve.rootNode;if(this._rootNodeFocusListenerCount.has(Ee)){const et=this._rootNodeFocusListenerCount.get(Ee);et>1?this._rootNodeFocusListenerCount.set(Ee,et-1):(Ee.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Vt),Ee.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Vt),this._rootNodeFocusListenerCount.delete(Ee))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ve,Ee,et){this._setClasses(ve,Ee),this._emitOrigin(et.subject,Ee),this._lastFocusOrigin=Ee}_getClosestElementsInfo(ve){const Ee=[];return this._elementInfo.forEach((et,$t)=>{($t===ve||et.checkChildren&&$t.contains(ve))&&Ee.push([$t,et])}),Ee}}return Se.\u0275fac=function(ve){return new(ve||Se)(t.LFG(t.R0b),t.LFG(G.t4),t.LFG(it),t.LFG(e.K0,8),t.LFG(Nt,8))},Se.\u0275prov=t.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),jt=(()=>{class Se{constructor(ve,Ee){this._elementRef=ve,this._focusMonitor=Ee,this.cdkFocusChange=new t.vpe}ngAfterViewInit(){const ve=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ve,1===ve.nodeType&&ve.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Ee=>this.cdkFocusChange.emit(Ee))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Se.\u0275fac=function(ve){return new(ve||Se)(t.Y36(t.SBq),t.Y36(Oi))},Se.\u0275dir=t.lG2({type:Se,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Se})();const ti="cdk-high-contrast-black-on-white",Ri="cdk-high-contrast-white-on-black",si="cdk-high-contrast-active";let di=(()=>{class Se{constructor(ve,Ee){this._platform=ve,this._document=Ee}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ve=this._document.createElement("div");ve.style.backgroundColor="rgb(1,2,3)",ve.style.position="absolute",this._document.body.appendChild(ve);const Ee=this._document.defaultView||window,et=Ee&&Ee.getComputedStyle?Ee.getComputedStyle(ve):null,$t=(et&&et.backgroundColor||"").replace(/ /g,"");switch(ve.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 ve=this._document.body.classList;ve.remove(si),ve.remove(ti),ve.remove(Ri),this._hasCheckedHighContrastMode=!0;const Ee=this.getHighContrastMode();1===Ee?(ve.add(si),ve.add(ti)):2===Ee&&(ve.add(si),ve.add(Ri))}}}return Se.\u0275fac=function(ve){return new(ve||Se)(t.LFG(G.t4),t.LFG(e.K0))},Se.\u0275prov=t.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),He=(()=>{class Se{constructor(ve){ve._applyBodyHighContrastModeCssClasses()}}return Se.\u0275fac=function(ve){return new(ve||Se)(t.LFG(di))},Se.\u0275mod=t.oAB({type:Se}),Se.\u0275inj=t.cJS({imports:[[G.ud,W.Q8]]}),Se})()},226:(Ue,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 O{constructor(P){if(this.value="ltr",this.change=new e.vpe,P){const D=P.documentElement?P.documentElement.dir:null;this.value=function(O){const T=(null==O?void 0:O.toLowerCase())||"";return"auto"===T&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?s.test(navigator.language)?"rtl":"ltr":"rtl"===T?"rtl":"ltr"}((P.body?P.body.dir:null)||D||"ltr")}}ngOnDestroy(){this.change.complete()}}return O.\u0275fac=function(P){return new(P||O)(e.LFG(v,8))},O.\u0275prov=e.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),o=(()=>{class O{}return O.\u0275fac=function(P){return new(P||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({}),O})()},3191:(Ue,K,m)=>{"use strict";m.d(K,{t6:()=>M,Eq:()=>s,Ig:()=>t,HM:()=>C,fI:()=>c,su:()=>v,du:()=>R});var e=m(5e3);function t(o){return null!=o&&"false"!=`${o}`}function v(o,O=0){return M(o)?Number(o):O}function M(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}function s(o){return Array.isArray(o)?o:[o]}function C(o){return null==o?"":"string"==typeof o?o:`${o}px`}function c(o){return o instanceof e.SBq?o.nativeElement:o}function R(o,O=/\s+/){const T=[];if(null!=o){const P=Array.isArray(o)?o:`${o}`.split(O);for(const S of P){const D=`${S}`.trim();D&&T.push(D)}}return T}},449:(Ue,K,m)=>{"use strict";m.d(K,{o2:()=>v,Ov:()=>R,A8:()=>O,yy:()=>C,eX:()=>c,k:()=>T,Z9:()=>M});var e=m(7579),t=m(5e3);class v{}function M(P){return P&&"function"==typeof P.connect}class C{applyChanges(S,D,w,U,G){S.forEachOperation((W,ee,ie)=>{let _e,fe;if(null==W.previousIndex){const de=w(W,ee,ie);_e=D.createEmbeddedView(de.templateRef,de.context,de.index),fe=1}else null==ie?(D.remove(ee),fe=3):(_e=D.get(ee),D.move(_e,ie),fe=2);G&&G({context:null==_e?void 0:_e.context,operation:fe,record:W})})}detach(){}}class c{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(S,D,w,U,G){S.forEachOperation((W,ee,ie)=>{let _e,fe;null==W.previousIndex?(_e=this._insertView(()=>w(W,ee,ie),ie,D,U(W)),fe=_e?1:0):null==ie?(this._detachAndCacheView(ee,D),fe=3):(_e=this._moveView(ee,ie,D,U(W)),fe=2),G&&G({context:null==_e?void 0:_e.context,operation:fe,record:W})})}detach(){for(const S of this._viewCache)S.destroy();this._viewCache=[]}_insertView(S,D,w,U){const G=this._insertViewFromCache(D,w);if(G)return void(G.context.$implicit=U);const W=S();return w.createEmbeddedView(W.templateRef,W.context,W.index)}_detachAndCacheView(S,D){const w=D.detach(S);this._maybeCacheView(w,D)}_moveView(S,D,w,U){const G=w.get(S);return w.move(G,D),G.context.$implicit=U,G}_maybeCacheView(S,D){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(S);else{const w=D.indexOf(S);-1===w?S.destroy():D.remove(w)}}_insertViewFromCache(S,D){const w=this._viewCache.pop();return w&&D.insert(w,S),w||null}}class R{constructor(S=!1,D,w=!0){this._multiple=S,this._emitChanges=w,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new e.x,D&&D.length&&(S?D.forEach(U=>this._markSelected(U)):this._markSelected(D[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...S){this._verifyValueAssignment(S),S.forEach(D=>this._markSelected(D)),this._emitChangeEvent()}deselect(...S){this._verifyValueAssignment(S),S.forEach(D=>this._unmarkSelected(D)),this._emitChangeEvent()}toggle(S){this.isSelected(S)?this.deselect(S):this.select(S)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(S){return this._selection.has(S)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(S){this._multiple&&this.selected&&this._selected.sort(S)}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(S){this.isSelected(S)||(this._multiple||this._unmarkAll(),this._selection.add(S),this._emitChanges&&this._selectedToEmit.push(S))}_unmarkSelected(S){this.isSelected(S)&&(this._selection.delete(S),this._emitChanges&&this._deselectedToEmit.push(S))}_unmarkAll(){this.isEmpty()||this._selection.forEach(S=>this._unmarkSelected(S))}_verifyValueAssignment(S){}}let O=(()=>{class P{constructor(){this._listeners=[]}notify(D,w){for(let U of this._listeners)U(D,w)}listen(D){return this._listeners.push(D),()=>{this._listeners=this._listeners.filter(w=>D!==w)}}ngOnDestroy(){this._listeners=[]}}return P.\u0275fac=function(D){return new(D||P)},P.\u0275prov=t.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})();const T=new t.OlP("_ViewRepeater")},1159:(Ue,K,m)=>{"use strict";m.d(K,{A:()=>F,zL:()=>R,jx:()=>c,JH:()=>ie,uR:()=>w,K5:()=>s,hY:()=>T,Sd:()=>U,oh:()=>G,b2:()=>ui,MW:()=>nt,aO:()=>I,VM:()=>D,Ku:()=>S,SV:()=>ee,JU:()=>C,L_:()=>P,Mf:()=>v,LH:()=>W,Z:()=>ft,xE:()=>se,Vb:()=>Ci});const v=9,s=13,C=16,c=17,R=18,T=27,P=32,S=33,D=34,w=35,U=36,G=37,W=38,ee=39,ie=40,se=48,I=57,F=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:(Ue,K,m)=>{"use strict";m.d(K,{Yg:()=>ie,u3:()=>fe,xu:()=>D});var e=m(5e3),t=m(3191),v=m(7579),M=m(9841),s=m(7272),C=m(8306),c=m(5698),R=m(5684),o=m(8372),O=m(4004),T=m(8675),P=m(2722),S=m(925);let D=(()=>{class de{}return de.\u0275fac=function(se){return new(se||de)},de.\u0275mod=e.oAB({type:de}),de.\u0275inj=e.cJS({}),de})();const w=new Set;let U,G=(()=>{class de{constructor(se){this._platform=se,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ee}matchMedia(se){return(this._platform.WEBKIT||this._platform.BLINK)&&function(de){if(!w.has(de))try{U||(U=document.createElement("style"),U.setAttribute("type","text/css"),document.head.appendChild(U)),U.sheet&&(U.sheet.insertRule(`@media ${de} {body{ }}`,0),w.add(de))}catch(ne){console.error(ne)}}(se),this._matchMedia(se)}}return de.\u0275fac=function(se){return new(se||de)(e.LFG(S.t4))},de.\u0275prov=e.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})();function ee(de){return{matches:"all"===de||""===de,media:de,addListener:()=>{},removeListener:()=>{}}}let ie=(()=>{class de{constructor(se,oe){this._mediaMatcher=se,this._zone=oe,this._queries=new Map,this._destroySubject=new v.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(se){return _e((0,t.Eq)(se)).some(y=>this._registerQuery(y).mql.matches)}observe(se){const y=_e((0,t.Eq)(se)).map(a=>this._registerQuery(a).observable);let i=(0,M.a)(y);return i=(0,s.z)(i.pipe((0,c.q)(1)),i.pipe((0,R.T)(1),(0,o.b)(0))),i.pipe((0,O.U)(a=>{const p={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:_})=>{p.matches=p.matches||u,p.breakpoints[_]=u}),p}))}_registerQuery(se){if(this._queries.has(se))return this._queries.get(se);const oe=this._mediaMatcher.matchMedia(se),i={observable:new C.y(a=>{const p=u=>this._zone.run(()=>a.next(u));return oe.addListener(p),()=>{oe.removeListener(p)}}).pipe((0,T.O)(oe),(0,O.U)(({matches:a})=>({query:se,matches:a})),(0,P.R)(this._destroySubject)),mql:oe};return this._queries.set(se,i),i}}return de.\u0275fac=function(se){return new(se||de)(e.LFG(G),e.LFG(e.R0b))},de.\u0275prov=e.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})();function _e(de){return de.map(ne=>ne.split(",")).reduce((ne,se)=>ne.concat(se)).map(ne=>ne.trim())}const fe={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:(Ue,K,m)=>{"use strict";m.d(K,{wD:()=>R,yq:()=>c,Q8:()=>o});var e=m(3191),t=m(5e3),v=m(8306),M=m(7579),s=m(8372);let C=(()=>{class O{create(P){return"undefined"==typeof MutationObserver?null:new MutationObserver(P)}}return O.\u0275fac=function(P){return new(P||O)},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),c=(()=>{class O{constructor(P){this._mutationObserverFactory=P,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((P,S)=>this._cleanupObserver(S))}observe(P){const S=(0,e.fI)(P);return new v.y(D=>{const U=this._observeElement(S).subscribe(D);return()=>{U.unsubscribe(),this._unobserveElement(S)}})}_observeElement(P){if(this._observedElements.has(P))this._observedElements.get(P).count++;else{const S=new M.x,D=this._mutationObserverFactory.create(w=>S.next(w));D&&D.observe(P,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(P,{observer:D,stream:S,count:1})}return this._observedElements.get(P).stream}_unobserveElement(P){this._observedElements.has(P)&&(this._observedElements.get(P).count--,this._observedElements.get(P).count||this._cleanupObserver(P))}_cleanupObserver(P){if(this._observedElements.has(P)){const{observer:S,stream:D}=this._observedElements.get(P);S&&S.disconnect(),D.complete(),this._observedElements.delete(P)}}}return O.\u0275fac=function(P){return new(P||O)(t.LFG(C))},O.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),R=(()=>{class O{constructor(P,S,D){this._contentObserver=P,this._elementRef=S,this._ngZone=D,this.event=new t.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(P){this._disabled=(0,e.Ig)(P),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(P){this._debounce=(0,e.su)(P),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const P=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?P.pipe((0,s.b)(this.debounce)):P).subscribe(this.event)})}_unsubscribe(){var P;null===(P=this._currentSubscription)||void 0===P||P.unsubscribe()}}return O.\u0275fac=function(P){return new(P||O)(t.Y36(c),t.Y36(t.SBq),t.Y36(t.R0b))},O.\u0275dir=t.lG2({type:O,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),O})(),o=(()=>{class O{}return O.\u0275fac=function(P){return new(P||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({providers:[C]}),O})()},9776:(Ue,K,m)=>{"use strict";m.d(K,{pI:()=>yt,xu:()=>We,_G:()=>r,aV:()=>we,X_:()=>oe,Xj:()=>L,U8:()=>ue});var e=m(5303),t=m(9808),v=m(5e3),M=m(3191),s=m(925),C=m(226),c=m(7429),R=m(7579),o=m(727),O=m(6451),T=m(4482),P=m(5403),D=m(5698),w=m(2722),U=m(1159);const G=(0,s.Mq)();class W{constructor(Y,X){this._viewportRuler=Y,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=X}attach(){}enable(){if(this._canBeEnabled()){const Y=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Y.style.left||"",this._previousHTMLStyles.top=Y.style.top||"",Y.style.left=(0,M.HM)(-this._previousScrollPosition.left),Y.style.top=(0,M.HM)(-this._previousScrollPosition.top),Y.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Y=this._document.documentElement,he=Y.style,Me=this._document.body.style,ze=he.scrollBehavior||"",ht=Me.scrollBehavior||"";this._isEnabled=!1,he.left=this._previousHTMLStyles.left,he.top=this._previousHTMLStyles.top,Y.classList.remove("cdk-global-scrollblock"),G&&(he.scrollBehavior=Me.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),G&&(he.scrollBehavior=ze,Me.scrollBehavior=ht)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const X=this._document.body,he=this._viewportRuler.getViewportSize();return X.scrollHeight>he.height||X.scrollWidth>he.width}}class ie{constructor(Y,X,he,Me){this._scrollDispatcher=Y,this._ngZone=X,this._viewportRuler=he,this._config=Me,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(Y){this._overlayRef=Y}enable(){if(this._scrollSubscription)return;const Y=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Y.subscribe(()=>{const X=this._viewportRuler.getViewportScrollPosition().top;Math.abs(X-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Y.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class _e{enable(){}disable(){}attach(){}}function fe(ke,Y){return Y.some(X=>ke.bottom<X.top||ke.top>X.bottom||ke.right<X.left||ke.left>X.right)}function de(ke,Y){return Y.some(X=>ke.top<X.top||ke.bottom>X.bottom||ke.left<X.left||ke.right>X.right)}class ne{constructor(Y,X,he,Me){this._scrollDispatcher=Y,this._viewportRuler=X,this._ngZone=he,this._config=Me,this._scrollSubscription=null}attach(Y){this._overlayRef=Y}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 X=this._overlayRef.overlayElement.getBoundingClientRect(),{width:he,height:Me}=this._viewportRuler.getViewportSize();fe(X,[{width:he,height:Me,bottom:Me,right:he,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 se=(()=>{class ke{constructor(X,he,Me,ze){this._scrollDispatcher=X,this._viewportRuler=he,this._ngZone=Me,this.noop=()=>new _e,this.close=ht=>new ie(this._scrollDispatcher,this._ngZone,this._viewportRuler,ht),this.block=()=>new W(this._viewportRuler,this._document),this.reposition=ht=>new ne(this._scrollDispatcher,this._viewportRuler,this._ngZone,ht),this._document=ze}}return ke.\u0275fac=function(X){return new(X||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 oe{constructor(Y){if(this.scrollStrategy=new _e,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Y){const X=Object.keys(Y);for(const he of X)void 0!==Y[he]&&(this[he]=Y[he])}}}class a{constructor(Y,X){this.connectionPair=Y,this.scrollableViewProperties=X}}class _{constructor(Y,X,he,Me,ze,ht,it,ft,nt){this._portalOutlet=Y,this._host=X,this._pane=he,this._config=Me,this._ngZone=ze,this._keyboardDispatcher=ht,this._document=it,this._location=ft,this._outsideClickDispatcher=nt,this._backdropElement=null,this._backdropClick=new R.x,this._attachments=new R.x,this._detachments=new R.x,this._locationChanges=o.w0.EMPTY,this._backdropClickHandler=st=>this._backdropClick.next(st),this._keydownEvents=new R.x,this._outsidePointerEvents=new R.x,Me.scrollStrategy&&(this._scrollStrategy=Me.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Me.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(Y){let X=this._portalOutlet.attach(Y);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,D.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),X}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Y=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Y}dispose(){var Y;const X=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===(Y=this._host)||void 0===Y||Y.remove(),this._previousHostParent=this._pane=this._host=null,X&&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(Y){Y!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Y,this.hasAttached()&&(Y.attach(this),this.updatePosition()))}updateSize(Y){this._config=Object.assign(Object.assign({},this._config),Y),this._updateElementSize()}setDirection(Y){this._config=Object.assign(Object.assign({},this._config),{direction:Y}),this._updateElementDirection()}addPanelClass(Y){this._pane&&this._toggleClasses(this._pane,Y,!0)}removePanelClass(Y){this._pane&&this._toggleClasses(this._pane,Y,!1)}getDirection(){const Y=this._config.direction;return Y?"string"==typeof Y?Y:Y.value:"ltr"}updateScrollStrategy(Y){Y!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Y,this.hasAttached()&&(Y.attach(this),Y.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Y=this._pane.style;Y.width=(0,M.HM)(this._config.width),Y.height=(0,M.HM)(this._config.height),Y.minWidth=(0,M.HM)(this._config.minWidth),Y.minHeight=(0,M.HM)(this._config.minHeight),Y.maxWidth=(0,M.HM)(this._config.maxWidth),Y.maxHeight=(0,M.HM)(this._config.maxHeight)}_togglePointerEvents(Y){this._pane.style.pointerEvents=Y?"":"none"}_attachBackdrop(){const Y="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(Y)})}):this._backdropElement.classList.add(Y)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const Y=this._backdropElement;if(!Y)return;let X;const he=()=>{Y&&(Y.removeEventListener("click",this._backdropClickHandler),Y.removeEventListener("transitionend",he),this._disposeBackdrop(Y)),this._config.backdropClass&&this._toggleClasses(Y,this._config.backdropClass,!1),clearTimeout(X)};Y.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{Y.addEventListener("transitionend",he)}),Y.style.pointerEvents="none",X=this._ngZone.runOutsideAngular(()=>setTimeout(he,500))}_toggleClasses(Y,X,he){const Me=(0,M.Eq)(X||[]).filter(ze=>!!ze);Me.length&&(he?Y.classList.add(...Me):Y.classList.remove(...Me))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const Y=this._ngZone.onStable.pipe((0,w.R)((0,O.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()),Y.unsubscribe())})})}_disposeScrollStrategy(){const Y=this._scrollStrategy;Y&&(Y.disable(),Y.detach&&Y.detach())}_disposeBackdrop(Y){Y&&(Y.remove(),this._backdropElement===Y&&(this._backdropElement=null))}}let L=(()=>{class ke{constructor(X,he){this._platform=he,this._document=X}ngOnDestroy(){var X;null===(X=this._containerElement)||void 0===X||X.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const X="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const Me=this._document.querySelectorAll(`.${X}[platform="server"], .${X}[platform="test"]`);for(let ze=0;ze<Me.length;ze++)Me[ze].remove()}const he=this._document.createElement("div");he.classList.add(X),(0,s.Oy)()?he.setAttribute("platform","test"):this._platform.isBrowser||he.setAttribute("platform","server"),this._document.body.appendChild(he),this._containerElement=he}}return ke.\u0275fac=function(X){return new(X||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(Y,X,he,Me,ze){this._viewportRuler=X,this._document=he,this._platform=Me,this._overlayContainer=ze,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 R.x,this._resizeSubscription=o.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(Y)}get positions(){return this._preferredPositions}attach(Y){this._validatePositions(),Y.hostElement.classList.add(I),this._overlayRef=Y,this._boundingBox=Y.hostElement,this._pane=Y.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 Y=this._originRect,X=this._overlayRect,he=this._viewportRect,Me=[];let ze;for(let ht of this._preferredPositions){let it=this._getOriginPoint(Y,ht),ft=this._getOverlayPoint(it,X,ht),nt=this._getOverlayFit(ft,X,he,ht);if(nt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ht,it);this._canFitWithFlexibleDimensions(nt,ft,he)?Me.push({position:ht,origin:it,overlayRect:X,boundingBoxRect:this._calculateBoundingBoxRect(it,ht)}):(!ze||ze.overlayFit.visibleArea<nt.visibleArea)&&(ze={overlayFit:nt,overlayPoint:ft,originPoint:it,position:ht,overlayRect:X})}if(Me.length){let ht=null,it=-1;for(const ft of Me){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(ze.position,ze.originPoint);this._applyPosition(ze.position,ze.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 Y=this._lastPosition||this._preferredPositions[0],X=this._getOriginPoint(this._originRect,Y);this._applyPosition(Y,X)}}withScrollableContainers(Y){return this._scrollables=Y,this}withPositions(Y){return this._preferredPositions=Y,-1===Y.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Y){return this._viewportMargin=Y,this}withFlexibleDimensions(Y=!0){return this._hasFlexibleDimensions=Y,this}withGrowAfterOpen(Y=!0){return this._growAfterOpen=Y,this}withPush(Y=!0){return this._canPush=Y,this}withLockedPosition(Y=!0){return this._positionLocked=Y,this}setOrigin(Y){return this._origin=Y,this}withDefaultOffsetX(Y){return this._offsetX=Y,this}withDefaultOffsetY(Y){return this._offsetY=Y,this}withTransformOriginOn(Y){return this._transformOriginSelector=Y,this}_getOriginPoint(Y,X){let he,Me;if("center"==X.originX)he=Y.left+Y.width/2;else{const ze=this._isRtl()?Y.right:Y.left,ht=this._isRtl()?Y.left:Y.right;he="start"==X.originX?ze:ht}return Me="center"==X.originY?Y.top+Y.height/2:"top"==X.originY?Y.top:Y.bottom,{x:he,y:Me}}_getOverlayPoint(Y,X,he){let Me,ze;return Me="center"==he.overlayX?-X.width/2:"start"===he.overlayX?this._isRtl()?-X.width:0:this._isRtl()?0:-X.width,ze="center"==he.overlayY?-X.height/2:"top"==he.overlayY?0:-X.height,{x:Y.x+Me,y:Y.y+ze}}_getOverlayFit(Y,X,he,Me){const ze=F(X);let{x:ht,y:it}=Y,ft=this._getOffset(Me,"x"),nt=this._getOffset(Me,"y");ft&&(ht+=ft),nt&&(it+=nt);let Bt=0-it,Nt=it+ze.height-he.height,Vt=this._subtractOverflows(ze.width,0-ht,ht+ze.width-he.width),Oi=this._subtractOverflows(ze.height,Bt,Nt),jt=Vt*Oi;return{visibleArea:jt,isCompletelyWithinViewport:ze.width*ze.height===jt,fitsInViewportVertically:Oi===ze.height,fitsInViewportHorizontally:Vt==ze.width}}_canFitWithFlexibleDimensions(Y,X,he){if(this._hasFlexibleDimensions){const Me=he.bottom-X.y,ze=he.right-X.x,ht=J(this._overlayRef.getConfig().minHeight),it=J(this._overlayRef.getConfig().minWidth),nt=Y.fitsInViewportHorizontally||null!=it&&it<=ze;return(Y.fitsInViewportVertically||null!=ht&&ht<=Me)&&nt}return!1}_pushOverlayOnScreen(Y,X,he){if(this._previousPushAmount&&this._positionLocked)return{x:Y.x+this._previousPushAmount.x,y:Y.y+this._previousPushAmount.y};const Me=F(X),ze=this._viewportRect,ht=Math.max(Y.x+Me.width-ze.width,0),it=Math.max(Y.y+Me.height-ze.height,0),ft=Math.max(ze.top-he.top-Y.y,0),nt=Math.max(ze.left-he.left-Y.x,0);let st=0,wt=0;return st=Me.width<=ze.width?nt||-ht:Y.x<this._viewportMargin?ze.left-he.left-Y.x:0,wt=Me.height<=ze.height?ft||-it:Y.y<this._viewportMargin?ze.top-he.top-Y.y:0,this._previousPushAmount={x:st,y:wt},{x:Y.x+st,y:Y.y+wt}}_applyPosition(Y,X){if(this._setTransformOrigin(Y),this._setOverlayElementStyles(X,Y),this._setBoundingBoxStyles(X,Y),Y.panelClass&&this._addPanelClasses(Y.panelClass),this._lastPosition=Y,this._positionChanges.observers.length){const he=this._getScrollVisibility(),Me=new a(Y,he);this._positionChanges.next(Me)}this._isInitialRender=!1}_setTransformOrigin(Y){if(!this._transformOriginSelector)return;const X=this._boundingBox.querySelectorAll(this._transformOriginSelector);let he,Me=Y.overlayY;he="center"===Y.overlayX?"center":this._isRtl()?"start"===Y.overlayX?"right":"left":"start"===Y.overlayX?"left":"right";for(let ze=0;ze<X.length;ze++)X[ze].style.transformOrigin=`${he} ${Me}`}_calculateBoundingBoxRect(Y,X){const he=this._viewportRect,Me=this._isRtl();let ze,ht,it,st,wt,Bt;if("top"===X.overlayY)ht=Y.y,ze=he.height-ht+this._viewportMargin;else if("bottom"===X.overlayY)it=he.height-Y.y+2*this._viewportMargin,ze=he.height-it+this._viewportMargin;else{const Nt=Math.min(he.bottom-Y.y+he.top,Y.y),Vt=this._lastBoundingBoxSize.height;ze=2*Nt,ht=Y.y-Nt,ze>Vt&&!this._isInitialRender&&!this._growAfterOpen&&(ht=Y.y-Vt/2)}if("end"===X.overlayX&&!Me||"start"===X.overlayX&&Me)Bt=he.width-Y.x+this._viewportMargin,st=Y.x-this._viewportMargin;else if("start"===X.overlayX&&!Me||"end"===X.overlayX&&Me)wt=Y.x,st=he.right-Y.x;else{const Nt=Math.min(he.right-Y.x+he.left,Y.x),Vt=this._lastBoundingBoxSize.width;st=2*Nt,wt=Y.x-Nt,st>Vt&&!this._isInitialRender&&!this._growAfterOpen&&(wt=Y.x-Vt/2)}return{top:ht,left:wt,bottom:it,right:Bt,width:st,height:ze}}_setBoundingBoxStyles(Y,X){const he=this._calculateBoundingBoxRect(Y,X);!this._isInitialRender&&!this._growAfterOpen&&(he.height=Math.min(he.height,this._lastBoundingBoxSize.height),he.width=Math.min(he.width,this._lastBoundingBoxSize.width));const Me={};if(this._hasExactPosition())Me.top=Me.left="0",Me.bottom=Me.right=Me.maxHeight=Me.maxWidth="",Me.width=Me.height="100%";else{const ze=this._overlayRef.getConfig().maxHeight,ht=this._overlayRef.getConfig().maxWidth;Me.height=(0,M.HM)(he.height),Me.top=(0,M.HM)(he.top),Me.bottom=(0,M.HM)(he.bottom),Me.width=(0,M.HM)(he.width),Me.left=(0,M.HM)(he.left),Me.right=(0,M.HM)(he.right),Me.alignItems="center"===X.overlayX?"center":"end"===X.overlayX?"flex-end":"flex-start",Me.justifyContent="center"===X.overlayY?"center":"bottom"===X.overlayY?"flex-end":"flex-start",ze&&(Me.maxHeight=(0,M.HM)(ze)),ht&&(Me.maxWidth=(0,M.HM)(ht))}this._lastBoundingBoxSize=he,b(this._boundingBox.style,Me)}_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(Y,X){const he={},Me=this._hasExactPosition(),ze=this._hasFlexibleDimensions,ht=this._overlayRef.getConfig();if(Me){const st=this._viewportRuler.getViewportScrollPosition();b(he,this._getExactOverlayY(X,Y,st)),b(he,this._getExactOverlayX(X,Y,st))}else he.position="static";let it="",ft=this._getOffset(X,"x"),nt=this._getOffset(X,"y");ft&&(it+=`translateX(${ft}px) `),nt&&(it+=`translateY(${nt}px)`),he.transform=it.trim(),ht.maxHeight&&(Me?he.maxHeight=(0,M.HM)(ht.maxHeight):ze&&(he.maxHeight="")),ht.maxWidth&&(Me?he.maxWidth=(0,M.HM)(ht.maxWidth):ze&&(he.maxWidth="")),b(this._pane.style,he)}_getExactOverlayY(Y,X,he){let Me={top:"",bottom:""},ze=this._getOverlayPoint(X,this._overlayRect,Y);this._isPushed&&(ze=this._pushOverlayOnScreen(ze,this._overlayRect,he));let ht=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return ze.y-=ht,"bottom"===Y.overlayY?Me.bottom=this._document.documentElement.clientHeight-(ze.y+this._overlayRect.height)+"px":Me.top=(0,M.HM)(ze.y),Me}_getExactOverlayX(Y,X,he){let ht,Me={left:"",right:""},ze=this._getOverlayPoint(X,this._overlayRect,Y);return this._isPushed&&(ze=this._pushOverlayOnScreen(ze,this._overlayRect,he)),ht=this._isRtl()?"end"===Y.overlayX?"left":"right":"end"===Y.overlayX?"right":"left","right"===ht?Me.right=this._document.documentElement.clientWidth-(ze.x+this._overlayRect.width)+"px":Me.left=(0,M.HM)(ze.x),Me}_getScrollVisibility(){const Y=this._getOriginRect(),X=this._pane.getBoundingClientRect(),he=this._scrollables.map(Me=>Me.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:de(Y,he),isOriginOutsideView:fe(Y,he),isOverlayClipped:de(X,he),isOverlayOutsideView:fe(X,he)}}_subtractOverflows(Y,...X){return X.reduce((he,Me)=>he-Math.max(Me,0),Y)}_getNarrowedViewportRect(){const Y=this._document.documentElement.clientWidth,X=this._document.documentElement.clientHeight,he=this._viewportRuler.getViewportScrollPosition();return{top:he.top+this._viewportMargin,left:he.left+this._viewportMargin,right:he.left+Y-this._viewportMargin,bottom:he.top+X-this._viewportMargin,width:Y-2*this._viewportMargin,height:X-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Y,X){return"x"===X?null==Y.offsetX?this._offsetX:Y.offsetX:null==Y.offsetY?this._offsetY:Y.offsetY}_validatePositions(){}_addPanelClasses(Y){this._pane&&(0,M.Eq)(Y).forEach(X=>{""!==X&&-1===this._appliedPanelClasses.indexOf(X)&&(this._appliedPanelClasses.push(X),this._pane.classList.add(X))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Y=>{this._pane.classList.remove(Y)}),this._appliedPanelClasses=[])}_getOriginRect(){const Y=this._origin;if(Y instanceof v.SBq)return Y.nativeElement.getBoundingClientRect();if(Y instanceof Element)return Y.getBoundingClientRect();const X=Y.width||0,he=Y.height||0;return{top:Y.y,bottom:Y.y+he,left:Y.x,right:Y.x+X,height:he,width:X}}}function b(ke,Y){for(let X in Y)Y.hasOwnProperty(X)&&(ke[X]=Y[X]);return ke}function J(ke){if("number"!=typeof ke&&null!=ke){const[Y,X]=ke.split(x);return X&&"px"!==X?null:parseFloat(Y)}return ke||null}function F(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 B="cdk-global-overlay-wrapper";class te{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(Y){const X=Y.getConfig();this._overlayRef=Y,this._width&&!X.width&&Y.updateSize({width:this._width}),this._height&&!X.height&&Y.updateSize({height:this._height}),Y.hostElement.classList.add(B),this._isDisposed=!1}top(Y=""){return this._bottomOffset="",this._topOffset=Y,this._alignItems="flex-start",this}left(Y=""){return this._rightOffset="",this._leftOffset=Y,this._justifyContent="flex-start",this}bottom(Y=""){return this._topOffset="",this._bottomOffset=Y,this._alignItems="flex-end",this}right(Y=""){return this._leftOffset="",this._rightOffset=Y,this._justifyContent="flex-end",this}width(Y=""){return this._overlayRef?this._overlayRef.updateSize({width:Y}):this._width=Y,this}height(Y=""){return this._overlayRef?this._overlayRef.updateSize({height:Y}):this._height=Y,this}centerHorizontally(Y=""){return this.left(Y),this._justifyContent="center",this}centerVertically(Y=""){return this.top(Y),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Y=this._overlayRef.overlayElement.style,X=this._overlayRef.hostElement.style,he=this._overlayRef.getConfig(),{width:Me,height:ze,maxWidth:ht,maxHeight:it}=he,ft=!("100%"!==Me&&"100vw"!==Me||ht&&"100%"!==ht&&"100vw"!==ht),nt=!("100%"!==ze&&"100vh"!==ze||it&&"100%"!==it&&"100vh"!==it);Y.position=this._cssPosition,Y.marginLeft=ft?"0":this._leftOffset,Y.marginTop=nt?"0":this._topOffset,Y.marginBottom=this._bottomOffset,Y.marginRight=this._rightOffset,ft?X.justifyContent="flex-start":"center"===this._justifyContent?X.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?X.justifyContent="flex-end":"flex-end"===this._justifyContent&&(X.justifyContent="flex-start"):X.justifyContent=this._justifyContent,X.alignItems=nt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Y=this._overlayRef.overlayElement.style,X=this._overlayRef.hostElement,he=X.style;X.classList.remove(B),he.justifyContent=he.alignItems=Y.marginTop=Y.marginBottom=Y.marginLeft=Y.marginRight=Y.position="",this._overlayRef=null,this._isDisposed=!0}}let xe=(()=>{class ke{constructor(X,he,Me,ze){this._viewportRuler=X,this._document=he,this._platform=Me,this._overlayContainer=ze}global(){return new te}flexibleConnectedTo(X){return new r(X,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return ke.\u0275fac=function(X){return new(X||ke)(v.LFG(e.rL),v.LFG(t.K0),v.LFG(s.t4),v.LFG(L))},ke.\u0275prov=v.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Pe=(()=>{class ke{constructor(X){this._attachedOverlays=[],this._document=X}ngOnDestroy(){this.detach()}add(X){this.remove(X),this._attachedOverlays.push(X)}remove(X){const he=this._attachedOverlays.indexOf(X);he>-1&&this._attachedOverlays.splice(he,1),0===this._attachedOverlays.length&&this.detach()}}return ke.\u0275fac=function(X){return new(X||ke)(v.LFG(t.K0))},ke.\u0275prov=v.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),Fe=(()=>{class ke extends Pe{constructor(X){super(X),this._keydownListener=he=>{const Me=this._attachedOverlays;for(let ze=Me.length-1;ze>-1;ze--)if(Me[ze]._keydownEvents.observers.length>0){Me[ze]._keydownEvents.next(he);break}}}add(X){super.add(X),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(X){return new(X||ke)(v.LFG(t.K0))},ke.\u0275prov=v.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),q=(()=>{class ke extends Pe{constructor(X,he){super(X),this._platform=he,this._cursorStyleIsSet=!1,this._pointerDownListener=Me=>{this._pointerDownEventTarget=(0,s.sA)(Me)},this._clickListener=Me=>{const ze=(0,s.sA)(Me),ht="click"===Me.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:ze;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(ze)||nt.overlayElement.contains(ht))break;nt._outsidePointerEvents.next(Me)}}}}add(X){if(super.add(X),!this._isAttached){const he=this._document.body;he.addEventListener("pointerdown",this._pointerDownListener,!0),he.addEventListener("click",this._clickListener,!0),he.addEventListener("auxclick",this._clickListener,!0),he.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=he.style.cursor,he.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const X=this._document.body;X.removeEventListener("pointerdown",this._pointerDownListener,!0),X.removeEventListener("click",this._clickListener,!0),X.removeEventListener("auxclick",this._clickListener,!0),X.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(X.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return ke.\u0275fac=function(X){return new(X||ke)(v.LFG(t.K0),v.LFG(s.t4))},ke.\u0275prov=v.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})(),j=0,we=(()=>{class ke{constructor(X,he,Me,ze,ht,it,ft,nt,st,wt,Bt){this.scrollStrategies=X,this._overlayContainer=he,this._componentFactoryResolver=Me,this._positionBuilder=ze,this._keyboardDispatcher=ht,this._injector=it,this._ngZone=ft,this._document=nt,this._directionality=st,this._location=wt,this._outsideClickDispatcher=Bt}create(X){const he=this._createHostElement(),Me=this._createPaneElement(he),ze=this._createPortalOutlet(Me),ht=new oe(X);return ht.direction=ht.direction||this._directionality.value,new _(ze,he,Me,ht,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(X){const he=this._document.createElement("div");return he.id="cdk-overlay-"+j++,he.classList.add("cdk-overlay-pane"),X.appendChild(he),he}_createHostElement(){const X=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(X),X}_createPortalOutlet(X){return this._appRef||(this._appRef=this._injector.get(v.z2F)),new c.u0(X,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return ke.\u0275fac=function(X){return new(X||ke)(v.LFG(se),v.LFG(L),v.LFG(v._Vd),v.LFG(xe),v.LFG(Fe),v.LFG(v.zs3),v.LFG(v.R0b),v.LFG(t.K0),v.LFG(C.Is),v.LFG(t.Ye),v.LFG(q))},ke.\u0275prov=v.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const Ae=[{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"}],le=new v.OlP("cdk-connected-overlay-scroll-strategy");let We=(()=>{class ke{constructor(X){this.elementRef=X}}return ke.\u0275fac=function(X){return new(X||ke)(v.Y36(v.SBq))},ke.\u0275dir=v.lG2({type:ke,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ke})(),yt=(()=>{class ke{constructor(X,he,Me,ze,ht){this._overlay=X,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(he,Me),this._scrollStrategyFactory=ze,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(X){this._offsetX=X,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(X){this._offsetY=X,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(X){this._hasBackdrop=(0,M.Ig)(X)}get lockPosition(){return this._lockPosition}set lockPosition(X){this._lockPosition=(0,M.Ig)(X)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(X){this._flexibleDimensions=(0,M.Ig)(X)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(X){this._growAfterOpen=(0,M.Ig)(X)}get push(){return this._push}set push(X){this._push=(0,M.Ig)(X)}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(X){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),X.origin&&this.open&&this._position.apply()),X.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ae);const X=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=X.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=X.detachments().subscribe(()=>this.detach.emit()),X.keydownEvents().subscribe(he=>{this.overlayKeydown.next(he),he.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(he)&&(he.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(he=>{this.overlayOutsideClick.next(he)})}_buildConfig(){const X=this._position=this.positionStrategy||this._createPositionStrategy(),he=new oe({direction:this._dir,positionStrategy:X,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(he.width=this.width),(this.height||0===this.height)&&(he.height=this.height),(this.minWidth||0===this.minWidth)&&(he.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(he.minHeight=this.minHeight),this.backdropClass&&(he.backdropClass=this.backdropClass),this.panelClass&&(he.panelClass=this.panelClass),he}_updatePositionStrategy(X){const he=this.positions.map(Me=>({originX:Me.originX,originY:Me.originY,overlayX:Me.overlayX,overlayY:Me.overlayY,offsetX:Me.offsetX||this.offsetX,offsetY:Me.offsetY||this.offsetY,panelClass:Me.panelClass||void 0}));return X.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(he).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const X=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(X),X}_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(X=>{this.backdropClick.emit(X)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(ke,Y=!1){return(0,T.e)((X,he)=>{let Me=0;X.subscribe(new P.Q(he,ze=>{const ht=ke(ze,Me++);(ht||Y)&&he.next(ze),!ht&&he.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(X=>{this.positionChange.emit(X),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return ke.\u0275fac=function(X){return new(X||ke)(v.Y36(we),v.Y36(v.Rgc),v.Y36(v.s_b),v.Y36(le),v.Y36(C.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:le,deps:[we],useFactory:function(ke){return()=>ke.scrollStrategies.reposition()}};let ue=(()=>{class ke{}return ke.\u0275fac=function(X){return new(X||ke)},ke.\u0275mod=v.oAB({type:ke}),ke.\u0275inj=v.cJS({providers:[we,Ve],imports:[[C.vT,c.eL,e.Cl],e.Cl]}),ke})()},925:(Ue,K,m)=>{"use strict";m.d(K,{t4:()=>M,ud:()=>s,sA:()=>ie,ht:()=>ee,kV:()=>W,Oy:()=>_e,_i:()=>w,qK:()=>R,i$:()=>T,Mq:()=>D});var e=m(5e3),t=m(9808);let v;try{v="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(fe){v=!1}let C,M=(()=>{class fe{constructor(ne){this._platformId=ne,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 fe.\u0275fac=function(ne){return new(ne||fe)(e.LFG(e.Lbi))},fe.\u0275prov=e.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),s=(()=>{class fe{}return fe.\u0275fac=function(ne){return new(ne||fe)},fe.\u0275mod=e.oAB({type:fe}),fe.\u0275inj=e.cJS({}),fe})();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 R(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(c),C;let fe=document.createElement("input");return C=new Set(c.filter(de=>(fe.setAttribute("type",de),fe.type===de))),C}let o,P,S,U;function T(fe){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}()?fe:!!fe.capture}function D(){if(null==S){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return S=!1,S;if("scrollBehavior"in document.documentElement.style)S=!0;else{const fe=Element.prototype.scrollTo;S=!!fe&&!/\{\s*\[native code\]\s*\}/.test(fe.toString())}}return S}function w(){if("object"!=typeof document||!document)return 0;if(null==P){const fe=document.createElement("div"),de=fe.style;fe.dir="rtl",de.width="1px",de.overflow="auto",de.visibility="hidden",de.pointerEvents="none",de.position="absolute";const ne=document.createElement("div"),se=ne.style;se.width="2px",se.height="1px",fe.appendChild(ne),document.body.appendChild(fe),P=0,0===fe.scrollLeft&&(fe.scrollLeft=1,P=0===fe.scrollLeft?1:2),fe.remove()}return P}function W(fe){if(function(){if(null==U){const fe="undefined"!=typeof document?document.head:null;U=!(!fe||!fe.createShadowRoot&&!fe.attachShadow)}return U}()){const de=fe.getRootNode?fe.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&de instanceof ShadowRoot)return de}return null}function ee(){let fe="undefined"!=typeof document&&document?document.activeElement:null;for(;fe&&fe.shadowRoot;){const de=fe.shadowRoot.activeElement;if(de===fe)break;fe=de}return fe}function ie(fe){return fe.composedPath?fe.composedPath()[0]:fe.target}function _e(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Ue,K,m)=>{"use strict";m.d(K,{en:()=>S,ig:()=>G,Pl:()=>ee,C5:()=>O,u0:()=>w,eL:()=>_e,UE:()=>T});var e=m(5e3),t=m(9808);class o{attach(ne){return this._attachedHost=ne,ne.attach(this)}detach(){let ne=this._attachedHost;null!=ne&&(this._attachedHost=null,ne.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ne){this._attachedHost=ne}}class O extends o{constructor(ne,se,oe,y){super(),this.component=ne,this.viewContainerRef=se,this.injector=oe,this.componentFactoryResolver=y}}class T extends o{constructor(ne,se,oe){super(),this.templateRef=ne,this.viewContainerRef=se,this.context=oe}get origin(){return this.templateRef.elementRef}attach(ne,se=this.context){return this.context=se,super.attach(ne)}detach(){return this.context=void 0,super.detach()}}class P extends o{constructor(ne){super(),this.element=ne instanceof e.SBq?ne.nativeElement:ne}}class S{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ne){return ne instanceof O?(this._attachedPortal=ne,this.attachComponentPortal(ne)):ne instanceof T?(this._attachedPortal=ne,this.attachTemplatePortal(ne)):this.attachDomPortal&&ne instanceof P?(this._attachedPortal=ne,this.attachDomPortal(ne)):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(ne){this._disposeFn=ne}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class w extends S{constructor(ne,se,oe,y,i){super(),this.outletElement=ne,this._componentFactoryResolver=se,this._appRef=oe,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(ne){const oe=(ne.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ne.component);let y;return ne.viewContainerRef?(y=ne.viewContainerRef.createComponent(oe,ne.viewContainerRef.length,ne.injector||ne.viewContainerRef.injector),this.setDisposeFn(()=>y.destroy())):(y=oe.create(ne.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=ne,y}attachTemplatePortal(ne){let se=ne.viewContainerRef,oe=se.createEmbeddedView(ne.templateRef,ne.context);return oe.rootNodes.forEach(y=>this.outletElement.appendChild(y)),oe.detectChanges(),this.setDisposeFn(()=>{let y=se.indexOf(oe);-1!==y&&se.remove(y)}),this._attachedPortal=ne,oe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ne){return ne.hostView.rootNodes[0]}}let G=(()=>{class de extends T{constructor(se,oe){super(se,oe)}}return de.\u0275fac=function(se){return new(se||de)(e.Y36(e.Rgc),e.Y36(e.s_b))},de.\u0275dir=e.lG2({type:de,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),de})(),ee=(()=>{class de extends S{constructor(se,oe,y){super(),this._componentFactoryResolver=se,this._viewContainerRef=oe,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(se){this.hasAttached()&&!se&&!this._isInitialized||(this.hasAttached()&&super.detach(),se&&super.attach(se),this._attachedPortal=se)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(se){se.setAttachedHost(this);const oe=null!=se.viewContainerRef?se.viewContainerRef:this._viewContainerRef,i=(se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(se.component),a=oe.createComponent(i,oe.length,se.injector||oe.injector);return oe!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=se,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(se){se.setAttachedHost(this);const oe=this._viewContainerRef.createEmbeddedView(se.templateRef,se.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=se,this._attachedRef=oe,this.attached.emit(oe),oe}_getRootNode(){const se=this._viewContainerRef.element.nativeElement;return se.nodeType===se.ELEMENT_NODE?se:se.parentNode}}return de.\u0275fac=function(se){return new(se||de)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(t.K0))},de.\u0275dir=e.lG2({type:de,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),de})(),_e=(()=>{class de{}return de.\u0275fac=function(se){return new(se||de)},de.\u0275mod=e.oAB({type:de}),de.\u0275inj=e.cJS({}),de})()},5303:(Ue,K,m)=>{"use strict";m.d(K,{PQ:()=>p,ZD:()=>J,mF:()=>a,Cl:()=>F,rL:()=>_});var e=m(3191),t=m(5e3),v=m(4408),M=m(727);const s={schedule(B){let te=requestAnimationFrame,xe=cancelAnimationFrame;const{delegate:Pe}=s;Pe&&(te=Pe.requestAnimationFrame,xe=Pe.cancelAnimationFrame);const Fe=te(q=>{xe=void 0,B(q)});return new M.w0(()=>null==xe?void 0:xe(Fe))},requestAnimationFrame(...B){const{delegate:te}=s;return((null==te?void 0:te.requestAnimationFrame)||requestAnimationFrame)(...B)},cancelAnimationFrame(...B){const{delegate:te}=s;return((null==te?void 0:te.cancelAnimationFrame)||cancelAnimationFrame)(...B)},delegate:void 0};var c=m(7565);new class extends c.v{flush(te){this._active=!0,this._scheduled=void 0;const{actions:xe}=this;let Pe,Fe=-1;te=te||xe.shift();const q=xe.length;do{if(Pe=te.execute(te.state,te.delay))break}while(++Fe<q&&(te=xe.shift()));if(this._active=!1,Pe){for(;++Fe<q&&(te=xe.shift());)te.unsubscribe();throw Pe}}}(class extends v.o{constructor(te,xe){super(te,xe),this.scheduler=te,this.work=xe}requestAsyncId(te,xe,Pe=0){return null!==Pe&&Pe>0?super.requestAsyncId(te,xe,Pe):(te.actions.push(this),te._scheduled||(te._scheduled=s.requestAnimationFrame(()=>te.flush(void 0))))}recycleAsyncId(te,xe,Pe=0){if(null!=Pe&&Pe>0||null==Pe&&this.delay>0)return super.recycleAsyncId(te,xe,Pe);0===te.actions.length&&(s.cancelAnimationFrame(xe),te._scheduled=void 0)}});var T=m(7579),P=m(9646),S=m(8306),D=m(4968),U=(m(3101),m(3601)),G=m(9300),W=m(2722),ee=m(9808),ie=m(925),_e=m(226);let a=(()=>{class B{constructor(xe,Pe,Fe){this._ngZone=xe,this._platform=Pe,this._scrolled=new T.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Fe}register(xe){this.scrollContainers.has(xe)||this.scrollContainers.set(xe,xe.elementScrolled().subscribe(()=>this._scrolled.next(xe)))}deregister(xe){const Pe=this.scrollContainers.get(xe);Pe&&(Pe.unsubscribe(),this.scrollContainers.delete(xe))}scrolled(xe=20){return this._platform.isBrowser?new S.y(Pe=>{this._globalSubscription||this._addGlobalListener();const Fe=xe>0?this._scrolled.pipe((0,U.e)(xe)).subscribe(Pe):this._scrolled.subscribe(Pe);return this._scrolledCount++,()=>{Fe.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,P.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((xe,Pe)=>this.deregister(Pe)),this._scrolled.complete()}ancestorScrolled(xe,Pe){const Fe=this.getAncestorScrollContainers(xe);return this.scrolled(Pe).pipe((0,G.h)(q=>!q||Fe.indexOf(q)>-1))}getAncestorScrollContainers(xe){const Pe=[];return this.scrollContainers.forEach((Fe,q)=>{this._scrollableContainsElement(q,xe)&&Pe.push(q)}),Pe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(xe,Pe){let Fe=(0,e.fI)(Pe),q=xe.getElementRef().nativeElement;do{if(Fe==q)return!0}while(Fe=Fe.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const xe=this._getWindow();return(0,D.R)(xe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return B.\u0275fac=function(xe){return new(xe||B)(t.LFG(t.R0b),t.LFG(ie.t4),t.LFG(ee.K0,8))},B.\u0275prov=t.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),p=(()=>{class B{constructor(xe,Pe,Fe,q){this.elementRef=xe,this.scrollDispatcher=Pe,this.ngZone=Fe,this.dir=q,this._destroyed=new T.x,this._elementScrolled=new S.y(j=>this.ngZone.runOutsideAngular(()=>(0,D.R)(this.elementRef.nativeElement,"scroll").pipe((0,W.R)(this._destroyed)).subscribe(j)))}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 Pe=this.elementRef.nativeElement,Fe=this.dir&&"rtl"==this.dir.value;null==xe.left&&(xe.left=Fe?xe.end:xe.start),null==xe.right&&(xe.right=Fe?xe.start:xe.end),null!=xe.bottom&&(xe.top=Pe.scrollHeight-Pe.clientHeight-xe.bottom),Fe&&0!=(0,ie._i)()?(null!=xe.left&&(xe.right=Pe.scrollWidth-Pe.clientWidth-xe.left),2==(0,ie._i)()?xe.left=xe.right:1==(0,ie._i)()&&(xe.left=xe.right?-xe.right:xe.right)):null!=xe.right&&(xe.left=Pe.scrollWidth-Pe.clientWidth-xe.right),this._applyScrollToOptions(xe)}_applyScrollToOptions(xe){const Pe=this.elementRef.nativeElement;(0,ie.Mq)()?Pe.scrollTo(xe):(null!=xe.top&&(Pe.scrollTop=xe.top),null!=xe.left&&(Pe.scrollLeft=xe.left))}measureScrollOffset(xe){const Pe="left",q=this.elementRef.nativeElement;if("top"==xe)return q.scrollTop;if("bottom"==xe)return q.scrollHeight-q.clientHeight-q.scrollTop;const j=this.dir&&"rtl"==this.dir.value;return"start"==xe?xe=j?"right":Pe:"end"==xe&&(xe=j?Pe:"right"),j&&2==(0,ie._i)()?xe==Pe?q.scrollWidth-q.clientWidth-q.scrollLeft:q.scrollLeft:j&&1==(0,ie._i)()?xe==Pe?q.scrollLeft+q.scrollWidth-q.clientWidth:-q.scrollLeft:xe==Pe?q.scrollLeft:q.scrollWidth-q.clientWidth-q.scrollLeft}}return B.\u0275fac=function(xe){return new(xe||B)(t.Y36(t.SBq),t.Y36(a),t.Y36(t.R0b),t.Y36(_e.Is,8))},B.\u0275dir=t.lG2({type:B,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),B})(),_=(()=>{class B{constructor(xe,Pe,Fe){this._platform=xe,this._change=new T.x,this._changeListener=q=>{this._change.next(q)},this._document=Fe,Pe.runOutsideAngular(()=>{if(xe.isBrowser){const q=this._getWindow();q.addEventListener("resize",this._changeListener),q.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:Pe,height:Fe}=this.getViewportSize();return{top:xe.top,left:xe.left,bottom:xe.top+Fe,right:xe.left+Pe,height:Fe,width:Pe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const xe=this._document,Pe=this._getWindow(),Fe=xe.documentElement,q=Fe.getBoundingClientRect();return{top:-q.top||xe.body.scrollTop||Pe.scrollY||Fe.scrollTop||0,left:-q.left||xe.body.scrollLeft||Pe.scrollX||Fe.scrollLeft||0}}change(xe=20){return xe>0?this._change.pipe((0,U.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 B.\u0275fac=function(xe){return new(xe||B)(t.LFG(ie.t4),t.LFG(t.R0b),t.LFG(ee.K0,8))},B.\u0275prov=t.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),J=(()=>{class B{}return B.\u0275fac=function(xe){return new(xe||B)},B.\u0275mod=t.oAB({type:B}),B.\u0275inj=t.cJS({}),B})(),F=(()=>{class B{}return B.\u0275fac=function(xe){return new(xe||B)},B.\u0275mod=t.oAB({type:B}),B.\u0275inj=t.cJS({imports:[[_e.vT,ie.ud,J],_e.vT,J]}),B})()},1555:(Ue,K,m)=>{"use strict";m.d(K,{be:()=>ie,KL:()=>D,u6:()=>w,B8:()=>_e,U5:()=>ne,st:()=>fe,po:()=>de,gx:()=>ee});var e=m(5664),t=m(3191),v=m(1159),M=m(9808),s=m(5e3),C=m(925),c=m(7579),R=m(9646),o=m(8675),O=m(2722),T=m(226);function P(se,oe){1&se&&s.Hsn(0)}const S=["*"];let D=(()=>{class se{constructor(y){this._elementRef=y}focus(){this._elementRef.nativeElement.focus()}}return se.\u0275fac=function(y){return new(y||se)(s.Y36(s.SBq))},se.\u0275dir=s.lG2({type:se,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),se})(),w=(()=>{class se{constructor(y){this.template=y}}return se.\u0275fac=function(y){return new(y||se)(s.Y36(s.Rgc))},se.\u0275dir=s.lG2({type:se,selectors:[["","cdkStepLabel",""]]}),se})(),U=0;const ee=new s.OlP("STEPPER_GLOBAL_OPTIONS");let ie=(()=>{class se{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 se.\u0275fac=function(y){return new(y||se)(s.Y36((0,s.Gpc)(()=>_e)),s.Y36(ee,8))},se.\u0275cmp=s.Xpm({type:se,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:S,decls:1,vars:0,template:function(y,i){1&y&&(s.F$t(),s.YNc(0,P,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),se})(),_e=(()=>{class se{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=U++}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,O.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,O.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,R.of)()).pipe((0,o.O)(this._layoutDirection()),(0,O.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,C.ht)();return y===i||y.contains(i)}_isValidIndex(y){return y>-1&&(!this.steps||y<this.steps.length)}}return se.\u0275fac=function(y){return new(y||se)(s.Y36(T.Is,8),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(M.K0))},se.\u0275dir=s.lG2({type:se,selectors:[["","cdkStepper",""]],contentQueries:function(y,i,a){if(1&y&&(s.Suo(a,ie,5),s.Suo(a,D,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"]}),se})(),fe=(()=>{class se{constructor(y){this._stepper=y,this.type="submit"}}return se.\u0275fac=function(y){return new(y||se)(s.Y36(_e))},se.\u0275dir=s.lG2({type:se,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"}}),se})(),de=(()=>{class se{constructor(y){this._stepper=y,this.type="button"}}return se.\u0275fac=function(y){return new(y||se)(s.Y36(_e))},se.\u0275dir=s.lG2({type:se,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"}}),se})(),ne=(()=>{class se{}return se.\u0275fac=function(y){return new(y||se)},se.\u0275mod=s.oAB({type:se}),se.\u0275inj=s.cJS({imports:[[T.vT]]}),se})()},8258:(Ue,K,m)=>{"use strict";m.d(K,{HI:()=>w,Xx:()=>i,_0:()=>ne,nZ:()=>L,Hs:()=>se,rO:()=>W,cu:()=>U,XJ:()=>p,Ud:()=>u,VY:()=>D});var e=m(449),t=m(5191),v=m(7579),M=m(1135),s=m(9646),C=m(5698),c=m(9300),R=m(2722),o=m(5e3),O=m(3191),T=m(226);class D 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(J=>this._getDescendants(x,J)):(0,t.b)(b)&&b.pipe((0,C.q)(1),(0,c.h)(Boolean)).subscribe(J=>{for(const F of J)this._getDescendants(x,F)})}}const w=new o.OlP("CDK_TREE_NODE_OUTLET_NODE");let U=(()=>{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 G{constructor(x){this.$implicit=x}}let W=(()=>{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})(),ne=(()=>{class I{constructor(r,b){this._differs=r,this._changeDetectorRef=b,this._onDestroy=new v.x,this._levels=new Map,this.viewChange=new M.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,R.R)(this._onDestroy)).subscribe(b=>this.renderNodeChanges(b)))}renderNodeChanges(r,b=this._dataDiffer,J=this._nodeOutlet.viewContainer,F){const B=b.diff(r);!B||(B.forEachOperation((te,xe,Pe)=>{if(null==te.previousIndex)this.insertNode(r[Pe],Pe,J,F);else if(null==Pe)J.remove(xe),this._levels.delete(te.item);else{const Fe=J.get(xe);J.move(Fe,Pe)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(r,b){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(F=>F.when&&F.when(b,r))||this._defaultNodeDef}insertNode(r,b,J,F){const B=this._getNodeDef(r,b),te=new G(r);te.level=this.treeControl.getLevel?this.treeControl.getLevel(r):void 0!==F&&this._levels.has(F)?this._levels.get(F)+1:0,this._levels.set(r,te.level),(J||this._nodeOutlet.viewContainer).createEmbeddedView(B.template,te,b),se.mostRecentTreeNode&&(se.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,J){if(1&r&&o.Suo(J,W,5),2&r){let F;o.iGM(F=o.CRH())&&(b._nodeDefs=F)}},viewQuery:function(r,b){if(1&r&&o.Gf(U,7),2&r){let J;o.iGM(J=o.CRH())&&(b._nodeOutlet=J.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:[U],encapsulation:2}),I})(),se=(()=>{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,O.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(ne))},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 se{constructor(r,b,J){super(r,b),this._differs=J}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,R.R)(this._destroyed)).subscribe(b=>this.updateChildrenNodes(b)),this.nodeOutlet.changes.pipe((0,R.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(ne),o.Y36(o.ZZ4))},I.\u0275dir=o.lG2({type:I,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,b,J){if(1&r&&o.Suo(J,U,5),2&r){let F;o.iGM(F=o.CRH())&&(b.nodeOutlet=F)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[o._Bn([{provide:se,useExisting:I},{provide:w,useExisting:I}]),o.qOj]}),I})();const a=/([A-Za-z%]+)$/;let p=(()=>{class I{constructor(r,b,J,F){this._treeNode=r,this._tree=b,this._element=J,this._dir=F,this._destroyed=new v.x,this.indentUnits="px",this._indent=40,this._setPadding(),F&&F.change.pipe((0,R.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 J=this._element.nativeElement,F=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",B="paddingLeft"===F?"paddingRight":"paddingLeft";J.style[F]=b||"",J.style[B]="",this._currentPadding=b}}_setLevelInput(r){this._level=(0,O.su)(r,null),this._setPadding()}_setIndentInput(r){let b=r,J="px";if("string"==typeof r){const F=r.split(a);b=F[0],J=F[1]||J}this.indentUnits=J,this._indent=(0,O.su)(b),this._setPadding()}}return I.\u0275fac=function(r){return new(r||I)(o.Y36(se),o.Y36(ne),o.Y36(o.SBq),o.Y36(T.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,O.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(ne),o.Y36(se))},I.\u0275dir=o.lG2({type:I,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,b){1&r&&o.NdJ("click",function(F){return b._toggle(F)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),I})(),L=(()=>{class I{}return I.\u0275fac=function(r){return new(r||I)},I.\u0275mod=o.oAB({type:I}),I.\u0275inj=o.cJS({}),I})()},9808:(Ue,K,m)=>{"use strict";m.d(K,{mr:()=>ee,Ov:()=>zr,ez:()=>Fa,K0:()=>c,uU:()=>Pa,JJ:()=>Jr,Do:()=>_e,Ts:()=>Cr,Nd:()=>Kn,V_:()=>O,Ye:()=>fe,S$:()=>G,i8:()=>is,mk:()=>Ki,sg:()=>gt,O5:()=>Ci,PC:()=>sn,RF:()=>On,n9:()=>pn,ED:()=>Rn,tP:()=>Sr,b0:()=>ie,lw:()=>R,OU:()=>Vr,rS:()=>ua,gd:()=>la,EM:()=>fa,JF:()=>Ya,NF:()=>na,PM:()=>Mr,w_:()=>C,bD:()=>dr,q:()=>v,Mx:()=>Ii,HT:()=>s});var e=m(5e3);let t=null;function v(){return t}function s(Xe){t||(t=Xe)}class C{}const c=new e.OlP("DocumentToken");let R=(()=>{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)(T)},providedIn:"platform"}),Xe})();const O=new e.OlP("Location Initialized");let T=(()=>{class Xe extends R{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 ae=v().getGlobalEventTarget(this._doc,"window");return ae.addEventListener("popstate",Q,!1),()=>ae.removeEventListener("popstate",Q)}onHashChange(Q){const ae=v().getGlobalEventTarget(this._doc,"window");return ae.addEventListener("hashchange",Q,!1),()=>ae.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,ae,Qe){P()?this._history.pushState(Q,ae,Qe):this.location.hash=Qe}replaceState(Q,ae,Qe){P()?this._history.replaceState(Q,ae,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 T((0,e.LFG)(c))},providedIn:"platform"}),Xe})();function P(){return!!window.history.pushState}function D(Xe,ye){if(0==Xe.length)return ye;if(0==ye.length)return Xe;let Q=0;return Xe.endsWith("/")&&Q++,ye.startsWith("/")&&Q++,2==Q?Xe+ye.substring(1):1==Q?Xe+ye:Xe+"/"+ye}function w(Xe){const ye=Xe.match(/#|\?|$/),Q=ye&&ye.index||Xe.length;return Xe.slice(0,Q-("/"===Xe[Q-1]?1:0))+Xe.slice(Q)}function U(Xe){return Xe&&"?"!==Xe[0]?"?"+Xe:Xe}let G=(()=>{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 ye=(0,e.LFG)(c).location;return new ie((0,e.LFG)(R),ye&&ye.origin||"")}()},providedIn:"root"}),Xe})();const ee=new e.OlP("appBaseHref");let ie=(()=>{class Xe extends G{constructor(Q,ae){if(super(),this._platformLocation=Q,this._removeListenerFns=[],null==ae&&(ae=this._platformLocation.getBaseHrefFromDOM()),null==ae)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=ae}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 D(this._baseHref,Q)}path(Q=!1){const ae=this._platformLocation.pathname+U(this._platformLocation.search),Qe=this._platformLocation.hash;return Qe&&Q?`${ae}${Qe}`:ae}pushState(Q,ae,Qe,Yt){const mi=this.prepareExternalUrl(Qe+U(Yt));this._platformLocation.pushState(Q,ae,mi)}replaceState(Q,ae,Qe,Yt){const mi=this.prepareExternalUrl(Qe+U(Yt));this._platformLocation.replaceState(Q,ae,mi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Q=0){var ae,Qe;null===(Qe=(ae=this._platformLocation).historyGo)||void 0===Qe||Qe.call(ae,Q)}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.LFG(R),e.LFG(ee,8))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),_e=(()=>{class Xe extends G{constructor(Q,ae){super(),this._platformLocation=Q,this._baseHref="",this._removeListenerFns=[],null!=ae&&(this._baseHref=ae)}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 ae=this._platformLocation.hash;return null==ae&&(ae="#"),ae.length>0?ae.substring(1):ae}prepareExternalUrl(Q){const ae=D(this._baseHref,Q);return ae.length>0?"#"+ae:ae}pushState(Q,ae,Qe,Yt){let mi=this.prepareExternalUrl(Qe+U(Yt));0==mi.length&&(mi=this._platformLocation.pathname),this._platformLocation.pushState(Q,ae,mi)}replaceState(Q,ae,Qe,Yt){let mi=this.prepareExternalUrl(Qe+U(Yt));0==mi.length&&(mi=this._platformLocation.pathname),this._platformLocation.replaceState(Q,ae,mi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Q=0){var ae,Qe;null===(Qe=(ae=this._platformLocation).historyGo)||void 0===Qe||Qe.call(ae,Q)}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(e.LFG(R),e.LFG(ee,8))},Xe.\u0275prov=e.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),fe=(()=>{class Xe{constructor(Q,ae){this._subject=new e.vpe,this._urlChangeListeners=[],this._platformStrategy=Q;const Qe=this._platformStrategy.getBaseHref();this._platformLocation=ae,this._baseHref=w(se(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,ae=""){return this.path()==this.normalize(Q+U(ae))}normalize(Q){return Xe.stripTrailingSlash(function(Xe,ye){return Xe&&ye.startsWith(Xe)?ye.substring(Xe.length):ye}(this._baseHref,se(Q)))}prepareExternalUrl(Q){return Q&&"/"!==Q[0]&&(Q="/"+Q),this._platformStrategy.prepareExternalUrl(Q)}go(Q,ae="",Qe=null){this._platformStrategy.pushState(Qe,"",Q,ae),this._notifyUrlChangeListeners(this.prepareExternalUrl(Q+U(ae)),Qe)}replaceState(Q,ae="",Qe=null){this._platformStrategy.replaceState(Qe,"",Q,ae),this._notifyUrlChangeListeners(this.prepareExternalUrl(Q+U(ae)),Qe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(Q=0){var ae,Qe;null===(Qe=(ae=this._platformStrategy).historyGo)||void 0===Qe||Qe.call(ae,Q)}onUrlChange(Q){this._urlChangeListeners.push(Q),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ae=>{this._notifyUrlChangeListeners(ae.url,ae.state)}))}_notifyUrlChangeListeners(Q="",ae){this._urlChangeListeners.forEach(Qe=>Qe(Q,ae))}subscribe(Q,ae,Qe){return this._subject.subscribe({next:Q,error:ae,complete:Qe})}}return Xe.normalizeQueryParams=U,Xe.joinWithSlash=D,Xe.stripTrailingSlash=w,Xe.\u0275fac=function(Q){return new(Q||Xe)(e.LFG(G),e.LFG(R))},Xe.\u0275prov=e.Yz7({token:Xe,factory:function(){return new fe((0,e.LFG)(G),(0,e.LFG)(R))},providedIn:"root"}),Xe})();function se(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 te(Xe,ye){return Te((0,e.cg1)(Xe)[e.wAp.DateFormat],ye)}function xe(Xe,ye){return Te((0,e.cg1)(Xe)[e.wAp.TimeFormat],ye)}function Pe(Xe,ye){return Te((0,e.cg1)(Xe)[e.wAp.DateTimeFormat],ye)}function Fe(Xe,ye){const Q=(0,e.cg1)(Xe),ae=Q[e.wAp.NumberSymbols][ye];if(void 0===ae){if(ye===_.CurrencyDecimal)return Q[e.wAp.NumberSymbols][_.Decimal];if(ye===_.CurrencyGroup)return Q[e.wAp.NumberSymbols][_.Group]}return ae}const We=e.kL8;function yt(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 Te(Xe,ye){for(let Q=ye;Q>-1;Q--)if(void 0!==Xe[Q])return Xe[Q];throw new Error("Locale data API: locale data undefined")}function ke(Xe){const[ye,Q]=Xe.split(":");return{hours:+ye,minutes:+Q}}const Me=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ze={},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,ye,Q,ae){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,mi=1]=Xe.split("-").map(Ct=>+Ct);return wt(Qe,Yt-1,mi)}const Q=parseFloat(Xe);if(!isNaN(Xe-Q))return new Date(Q);let ae;if(ae=Xe.match(Me))return function(Xe){const ye=new Date(0);let Q=0,ae=0;const Qe=Xe[8]?ye.setUTCFullYear:ye.setFullYear,Yt=Xe[8]?ye.setUTCHours:ye.setHours;Xe[9]&&(Q=Number(Xe[9]+Xe[10]),ae=Number(Xe[9]+Xe[11])),Qe.call(ye,Number(Xe[1]),Number(Xe[2])-1,Number(Xe[3]));const mi=Number(Xe[4]||0)-Q,Ct=Number(Xe[5]||0)-ae,ei=Number(Xe[6]||0),bt=Math.floor(1e3*parseFloat("0."+(Xe[7]||0)));return Yt.call(ye,mi,Ct,ei,bt),ye}(ae)}const ye=new Date(Xe);if(!ot(ye))throw new Error(`Unable to convert "${Xe}" into a date`);return ye}(Xe);ye=Bt(Q,ye)||ye;let Ct,mi=[];for(;ye;){if(Ct=ht.exec(ye),!Ct){mi.push(ye);break}{mi=mi.concat(Ct.slice(1));const Wt=mi.pop();if(!Wt)break;ye=Wt}}let ei=Qe.getTimezoneOffset();ae&&(ei=Xt(ae,ei),Qe=function(Xe,ye,Q){const Qe=Xe.getTimezoneOffset();return function(Xe,ye){return(Xe=new Date(Xe.getTime())).setMinutes(Xe.getMinutes()+ye),Xe}(Xe,-1*(Xt(ye,Qe)-Qe))}(Qe,ae));let bt="";return mi.forEach(Wt=>{const xi=function(Xe){if($t[Xe])return $t[Xe];let ye;switch(Xe){case"G":case"GG":case"GGG":ye=Ri(nt.Eras,p.Abbreviated);break;case"GGGG":ye=Ri(nt.Eras,p.Wide);break;case"GGGGG":ye=Ri(nt.Eras,p.Narrow);break;case"y":ye=jt(ft.FullYear,1,0,!1,!0);break;case"yy":ye=jt(ft.FullYear,2,0,!0,!0);break;case"yyy":ye=jt(ft.FullYear,3,0,!1,!0);break;case"yyyy":ye=jt(ft.FullYear,4,0,!1,!0);break;case"Y":ye=et(1);break;case"YY":ye=et(2,!0);break;case"YYY":ye=et(3);break;case"YYYY":ye=et(4);break;case"M":case"L":ye=jt(ft.Month,1,1);break;case"MM":case"LL":ye=jt(ft.Month,2,1);break;case"MMM":ye=Ri(nt.Months,p.Abbreviated);break;case"MMMM":ye=Ri(nt.Months,p.Wide);break;case"MMMMM":ye=Ri(nt.Months,p.Narrow);break;case"LLL":ye=Ri(nt.Months,p.Abbreviated,a.Standalone);break;case"LLLL":ye=Ri(nt.Months,p.Wide,a.Standalone);break;case"LLLLL":ye=Ri(nt.Months,p.Narrow,a.Standalone);break;case"w":ye=Ee(1);break;case"ww":ye=Ee(2);break;case"W":ye=Ee(1,!0);break;case"d":ye=jt(ft.Date,1);break;case"dd":ye=jt(ft.Date,2);break;case"c":case"cc":ye=jt(ft.Day,1);break;case"ccc":ye=Ri(nt.Days,p.Abbreviated,a.Standalone);break;case"cccc":ye=Ri(nt.Days,p.Wide,a.Standalone);break;case"ccccc":ye=Ri(nt.Days,p.Narrow,a.Standalone);break;case"cccccc":ye=Ri(nt.Days,p.Short,a.Standalone);break;case"E":case"EE":case"EEE":ye=Ri(nt.Days,p.Abbreviated);break;case"EEEE":ye=Ri(nt.Days,p.Wide);break;case"EEEEE":ye=Ri(nt.Days,p.Narrow);break;case"EEEEEE":ye=Ri(nt.Days,p.Short);break;case"a":case"aa":case"aaa":ye=Ri(nt.DayPeriods,p.Abbreviated);break;case"aaaa":ye=Ri(nt.DayPeriods,p.Wide);break;case"aaaaa":ye=Ri(nt.DayPeriods,p.Narrow);break;case"b":case"bb":case"bbb":ye=Ri(nt.DayPeriods,p.Abbreviated,a.Standalone,!0);break;case"bbbb":ye=Ri(nt.DayPeriods,p.Wide,a.Standalone,!0);break;case"bbbbb":ye=Ri(nt.DayPeriods,p.Narrow,a.Standalone,!0);break;case"B":case"BB":case"BBB":ye=Ri(nt.DayPeriods,p.Abbreviated,a.Format,!0);break;case"BBBB":ye=Ri(nt.DayPeriods,p.Wide,a.Format,!0);break;case"BBBBB":ye=Ri(nt.DayPeriods,p.Narrow,a.Format,!0);break;case"h":ye=jt(ft.Hours,1,-12);break;case"hh":ye=jt(ft.Hours,2,-12);break;case"H":ye=jt(ft.Hours,1);break;case"HH":ye=jt(ft.Hours,2);break;case"m":ye=jt(ft.Minutes,1);break;case"mm":ye=jt(ft.Minutes,2);break;case"s":ye=jt(ft.Seconds,1);break;case"ss":ye=jt(ft.Seconds,2);break;case"S":ye=jt(ft.FractionalSeconds,1);break;case"SS":ye=jt(ft.FractionalSeconds,2);break;case"SSS":ye=jt(ft.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ye=di(it.Short);break;case"ZZZZZ":ye=di(it.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ye=di(it.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ye=di(it.Long);break;default:return null}return $t[Xe]=ye,ye}(Wt);bt+=xi?xi(Qe,Q,ei):"''"===Wt?"'":Wt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),bt}function wt(Xe,ye,Q){const ae=new Date(0);return ae.setFullYear(Xe,ye,Q),ae.setHours(0,0,0),ae}function Bt(Xe,ye){const Q=function(Xe){return(0,e.cg1)(Xe)[e.wAp.LocaleId]}(Xe);if(ze[Q]=ze[Q]||{},ze[Q][ye])return ze[Q][ye];let ae="";switch(ye){case"shortDate":ae=te(Xe,u.Short);break;case"mediumDate":ae=te(Xe,u.Medium);break;case"longDate":ae=te(Xe,u.Long);break;case"fullDate":ae=te(Xe,u.Full);break;case"shortTime":ae=xe(Xe,u.Short);break;case"mediumTime":ae=xe(Xe,u.Medium);break;case"longTime":ae=xe(Xe,u.Long);break;case"fullTime":ae=xe(Xe,u.Full);break;case"short":const Qe=Bt(Xe,"shortTime"),Yt=Bt(Xe,"shortDate");ae=Nt(Pe(Xe,u.Short),[Qe,Yt]);break;case"medium":const mi=Bt(Xe,"mediumTime"),Ct=Bt(Xe,"mediumDate");ae=Nt(Pe(Xe,u.Medium),[mi,Ct]);break;case"long":const ei=Bt(Xe,"longTime"),bt=Bt(Xe,"longDate");ae=Nt(Pe(Xe,u.Long),[ei,bt]);break;case"full":const Wt=Bt(Xe,"fullTime"),xi=Bt(Xe,"fullDate");ae=Nt(Pe(Xe,u.Full),[Wt,xi])}return ae&&(ze[Q][ye]=ae),ae}function Nt(Xe,ye){return ye&&(Xe=Xe.replace(/\{([^}]+)}/g,function(Q,ae){return null!=ye&&ae in ye?ye[ae]:Q})),Xe}function Vt(Xe,ye,Q="-",ae,Qe){let Yt="";(Xe<0||Qe&&Xe<=0)&&(Qe?Xe=1-Xe:(Xe=-Xe,Yt=Q));let mi=String(Xe);for(;mi.length<ye;)mi="0"+mi;return ae&&(mi=mi.substr(mi.length-ye)),Yt+mi}function jt(Xe,ye,Q=0,ae=!1,Qe=!1){return function(Yt,mi){let Ct=function(Xe,ye){switch(Xe){case ft.FullYear:return ye.getFullYear();case ft.Month:return ye.getMonth();case ft.Date:return ye.getDate();case ft.Hours:return ye.getHours();case ft.Minutes:return ye.getMinutes();case ft.Seconds:return ye.getSeconds();case ft.FractionalSeconds:return ye.getMilliseconds();case ft.Day:return ye.getDay();default:throw new Error(`Unknown DateType value "${Xe}".`)}}(Xe,Yt);if((Q>0||Ct>-Q)&&(Ct+=Q),Xe===ft.Hours)0===Ct&&-12===Q&&(Ct=12);else if(Xe===ft.FractionalSeconds)return function(Xe,ye){return Vt(Xe,3).substr(0,ye)}(Ct,ye);const ei=Fe(mi,_.MinusSign);return Vt(Ct,ye,ei,ae,Qe)}}function Ri(Xe,ye,Q=a.Format,ae=!1){return function(Qe,Yt){return function(Xe,ye,Q,ae,Qe,Yt){switch(Q){case nt.Months:return function(Xe,ye,Q){const ae=(0,e.cg1)(Xe),Yt=Te([ae[e.wAp.MonthsFormat],ae[e.wAp.MonthsStandalone]],ye);return Te(Yt,Q)}(ye,Qe,ae)[Xe.getMonth()];case nt.Days:return function(Xe,ye,Q){const ae=(0,e.cg1)(Xe),Yt=Te([ae[e.wAp.DaysFormat],ae[e.wAp.DaysStandalone]],ye);return Te(Yt,Q)}(ye,Qe,ae)[Xe.getDay()];case nt.DayPeriods:const mi=Xe.getHours(),Ct=Xe.getMinutes();if(Yt){const bt=function(Xe){const ye=(0,e.cg1)(Xe);return yt(ye),(ye[e.wAp.ExtraData][2]||[]).map(ae=>"string"==typeof ae?ke(ae):[ke(ae[0]),ke(ae[1])])}(ye),Wt=function(Xe,ye,Q){const ae=(0,e.cg1)(Xe);yt(ae);const Yt=Te([ae[e.wAp.ExtraData][0],ae[e.wAp.ExtraData][1]],ye)||[];return Te(Yt,Q)||[]}(ye,Qe,ae),xi=bt.findIndex(zi=>{if(Array.isArray(zi)){const[vn,wn]=zi,Qi=mi>=vn.hours&&Ct>=vn.minutes,gr=mi<wn.hours||mi===wn.hours&&Ct<wn.minutes;if(vn.hours<wn.hours){if(Qi&&gr)return!0}else if(Qi||gr)return!0}else if(zi.hours===mi&&zi.minutes===Ct)return!0;return!1});if(-1!==xi)return Wt[xi]}return function(Xe,ye,Q){const ae=(0,e.cg1)(Xe),Yt=Te([ae[e.wAp.DayPeriodsFormat],ae[e.wAp.DayPeriodsStandalone]],ye);return Te(Yt,Q)}(ye,Qe,ae)[mi<12?0:1];case nt.Eras:return function(Xe,ye){return Te((0,e.cg1)(Xe)[e.wAp.Eras],ye)}(ye,ae)[Xe.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${Q}`)}}(Qe,Yt,Xe,ye,Q,ae)}}function di(Xe){return function(ye,Q,ae){const Qe=-1*ae,Yt=Fe(Q,_.MinusSign),mi=Qe>0?Math.floor(Qe/60):Math.ceil(Qe/60);switch(Xe){case it.Short:return(Qe>=0?"+":"")+Vt(mi,2,Yt)+Vt(Math.abs(Qe%60),2,Yt);case it.ShortGMT:return"GMT"+(Qe>=0?"+":"")+Vt(mi,1,Yt);case it.Long:return"GMT"+(Qe>=0?"+":"")+Vt(mi,2,Yt)+":"+Vt(Math.abs(Qe%60),2,Yt);case it.Extended:return 0===ae?"Z":(Qe>=0?"+":"")+Vt(mi,2,Yt)+":"+Vt(Math.abs(Qe%60),2,Yt);default:throw new Error(`Unknown zone width "${Xe}"`)}}}function ve(Xe){return wt(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()+(4-Xe.getDay()))}function Ee(Xe,ye=!1){return function(Q,ae){let Qe;if(ye){const Yt=new Date(Q.getFullYear(),Q.getMonth(),1).getDay()-1,mi=Q.getDate();Qe=1+Math.floor((mi+Yt)/7)}else{const Yt=ve(Q),mi=function(Xe){const ye=wt(Xe,0,1).getDay();return wt(Xe,0,1+(ye<=4?4:11)-ye)}(Yt.getFullYear()),Ct=Yt.getTime()-mi.getTime();Qe=1+Math.round(Ct/6048e5)}return Vt(Qe,Xe,Fe(ae,_.MinusSign))}}function et(Xe,ye=!1){return function(Q,ae){return Vt(ve(Q).getFullYear(),Xe,Fe(ae,_.MinusSign),ye)}}const $t={};function Xt(Xe,ye){Xe=Xe.replace(/:/g,"");const Q=Date.parse("Jan 01, 1970 00:00:00 "+Xe)/6e4;return isNaN(Q)?ye:Q}function ot(Xe){return Xe instanceof Date&&!isNaN(Xe.valueOf())}const At=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function $e(Xe){const ye=parseInt(Xe);if(isNaN(ye))throw new Error("Invalid integer literal when parsing "+Xe);return ye}class St{}let yi=(()=>{class Xe extends St{constructor(Q){super(),this.locale=Q}getPluralCategory(Q,ae){switch(We(ae||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,ye){ye=encodeURIComponent(ye);for(const Q of Xe.split(";")){const ae=Q.indexOf("="),[Qe,Yt]=-1==ae?[Q,""]:[Q.slice(0,ae),Q.slice(ae+1)];if(Qe.trim()===ye)return decodeURIComponent(Yt)}return null}let Ki=(()=>{class Xe{constructor(Q,ae,Qe,Yt){this._iterableDiffers=Q,this._keyValueDiffers=ae,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(ae=>this._toggleClass(ae.key,ae.currentValue)),Q.forEachChangedItem(ae=>this._toggleClass(ae.key,ae.currentValue)),Q.forEachRemovedItem(ae=>{ae.previousValue&&this._toggleClass(ae.key,!1)})}_applyIterableChanges(Q){Q.forEachAddedItem(ae=>{if("string"!=typeof ae.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(ae.item)}`);this._toggleClass(ae.item,!0)}),Q.forEachRemovedItem(ae=>this._toggleClass(ae.item,!1))}_applyClasses(Q){Q&&(Array.isArray(Q)||Q instanceof Set?Q.forEach(ae=>this._toggleClass(ae,!0)):Object.keys(Q).forEach(ae=>this._toggleClass(ae,!!Q[ae])))}_removeClasses(Q){Q&&(Array.isArray(Q)||Q instanceof Set?Q.forEach(ae=>this._toggleClass(ae,!1)):Object.keys(Q).forEach(ae=>this._toggleClass(ae,!1)))}_toggleClass(Q,ae){(Q=Q.trim())&&Q.split(/\s+/g).forEach(Qe=>{ae?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(ye,Q,ae,Qe){this.$implicit=ye,this.ngForOf=Q,this.index=ae,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,ae,Qe){this._viewContainer=Q,this._template=ae,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(ae){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 ae=[];Q.forEachOperation((Qe,Yt,mi)=>{if(null==Qe.previousIndex){const Ct=this._viewContainer.createEmbeddedView(this._template,new Qt(null,this._ngForOf,-1,-1),null===mi?void 0:mi),ei=new Lt(Qe,Ct);ae.push(ei)}else if(null==mi)this._viewContainer.remove(null===Yt?void 0:Yt);else if(null!==Yt){const Ct=this._viewContainer.get(Yt);this._viewContainer.move(Ct,mi);const ei=new Lt(Qe,Ct);ae.push(ei)}});for(let Qe=0;Qe<ae.length;Qe++)this._perViewChange(ae[Qe].view,ae[Qe].record);for(let Qe=0,Yt=this._viewContainer.length;Qe<Yt;Qe++){const mi=this._viewContainer.get(Qe);mi.context.index=Qe,mi.context.count=Yt,mi.context.ngForOf=this._ngForOf}Q.forEachIdentityChange(Qe=>{this._viewContainer.get(Qe.currentIndex).context.$implicit=Qe.item})}_perViewChange(Q,ae){Q.context.$implicit=ae.item}static ngTemplateContextGuard(Q,ae){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(ye,Q){this.record=ye,this.view=Q}}let Ci=(()=>{class Xe{constructor(Q,ae){this._viewContainer=Q,this._context=new Wi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ae}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,ae){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,ye){if(ye&&!ye.createEmbeddedView)throw new Error(`${Xe} must be a TemplateRef, but received '${(0,e.AaK)(ye)}'.`)}class An{constructor(ye,Q){this._viewContainerRef=ye,this._templateRef=Q,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ye){ye&&!this._created?this.create():!ye&&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 ae=Q==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ae,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ae}_updateDefaultCases(Q){if(this._defaultViews&&Q!==this._defaultUsed){this._defaultUsed=Q;for(let ae=0;ae<this._defaultViews.length;ae++)this._defaultViews[ae].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,ae,Qe){this.ngSwitch=Qe,Qe._addCase(),this._view=new An(Q,ae)}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})(),Rn=(()=>{class Xe{constructor(Q,ae,Qe){Qe._addDefault(new An(Q,ae))}}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,ae,Qe){this._ngEl=Q,this._differs=ae,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,ae){const[Qe,Yt]=Q.split(".");null!=(ae=null!=ae&&Yt?`${ae}${Yt}`:ae)?this._renderer.setStyle(this._ngEl.nativeElement,Qe,ae):this._renderer.removeStyle(this._ngEl.nativeElement,Qe)}_applyChanges(Q){Q.forEachRemovedItem(ae=>this._setStyle(ae.key,null)),Q.forEachAddedItem(ae=>this._setStyle(ae.key,ae.currentValue)),Q.forEachChangedItem(ae=>this._setStyle(ae.key,ae.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 ae=this._viewContainerRef;this._viewRef&&ae.remove(ae.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ae.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,ye){return Error(`InvalidPipeArgument: '${ye}' for pipe '${(0,e.AaK)(Xe)}'`)}class kr{createSubscription(ye,Q){return ye.subscribe({next:Q,error:ae=>{throw ae}})}dispose(ye){ye.unsubscribe()}onDestroy(ye){ye.unsubscribe()}}class ba{createSubscription(ye,Q){return ye.then(Q,ae=>{throw ae})}dispose(ye){}onDestroy(ye){}}const xa=new ba,Va=new kr;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,ae=>this._updateLatestValue(Q,ae))}_selectStrategy(Q){if((0,e.QGY)(Q))return xa;if((0,e.F4k)(Q))return Va;throw qn(Xe,Q)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Q,ae){Q===this._obj&&(this._latestValue=ae,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})(),is=(()=>{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,ae=>ae[0].toUpperCase()+ae.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 Pa=(()=>{class Xe{constructor(Q,ae){this.locale=Q,this.defaultTimezone=ae}transform(Q,ae="mediumDate",Qe,Yt){var mi;if(null==Q||""===Q||Q!=Q)return null;try{return st(Q,ae,Yt||this.locale,null!==(mi=null!=Qe?Qe:this.defaultTimezone)&&void 0!==mi?mi:void 0)}catch(Ct){throw qn(Xe,Ct.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})(),Cr=(()=>{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,ae=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=ae!==this.compareFn;return Qe&&(this.keyValues=[],Qe.forEachItem(mi=>{this.keyValues.push(function(Xe,ye){return{key:Xe,value:ye}}(mi.key,mi.currentValue))})),(Qe||Yt)&&(this.keyValues.sort(ae),this.compareFn=ae),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,ye){const Q=Xe.key,ae=ye.key;if(Q===ae)return 0;if(void 0===Q)return 1;if(void 0===ae)return-1;if(null===Q)return 1;if(null===ae)return-1;if("string"==typeof Q&&"string"==typeof ae)return Q<ae?-1:1;if("number"==typeof Q&&"number"==typeof ae)return Q-ae;if("boolean"==typeof Q&&"boolean"==typeof ae)return Q<ae?-1:1;const Qe=String(Q),Yt=String(ae);return Qe==Yt?0:Qe<Yt?-1:1}let Jr=(()=>{class Xe{constructor(Q){this._locale=Q}transform(Q,ae,Qe){if(!function(Xe){return!(null==Xe||""===Xe||Xe!=Xe)}(Q))return null;Qe=Qe||this._locale;try{return function(Xe,ye,Q){return function(Xe,ye,Q,ae,Qe,Yt,mi=!1){let Ct="",ei=!1;if(isFinite(Xe)){let bt=function(Xe){let ae,Qe,Yt,mi,Ct,ye=Math.abs(Xe)+"",Q=0;for((Qe=ye.indexOf("."))>-1&&(ye=ye.replace(".","")),(Yt=ye.search(/e/i))>0?(Qe<0&&(Qe=Yt),Qe+=+ye.slice(Yt+1),ye=ye.substring(0,Yt)):Qe<0&&(Qe=ye.length),Yt=0;"0"===ye.charAt(Yt);Yt++);if(Yt===(Ct=ye.length))ae=[0],Qe=1;else{for(Ct--;"0"===ye.charAt(Ct);)Ct--;for(Qe-=Yt,ae=[],mi=0;Yt<=Ct;Yt++,mi++)ae[mi]=Number(ye.charAt(Yt))}return Qe>22&&(ae=ae.splice(0,21),Q=Qe-1,Qe=1),{digits:ae,exponent:Q,integerLen:Qe}}(Xe);mi&&(bt=function(Xe){if(0===Xe.digits[0])return Xe;const ye=Xe.digits.length-Xe.integerLen;return Xe.exponent?Xe.exponent+=2:(0===ye?Xe.digits.push(0,0):1===ye&&Xe.digits.push(0),Xe.integerLen+=2),Xe}(bt));let Wt=ye.minInt,xi=ye.minFrac,zi=ye.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,ye,Q){if(ye>Q)throw new Error(`The minimum number of digits after fraction (${ye}) is higher than the maximum (${Q}).`);let ae=Xe.digits,Qe=ae.length-Xe.integerLen;const Yt=Math.min(Math.max(ye,Qe),Q);let mi=Yt+Xe.integerLen,Ct=ae[mi];if(mi>0){ae.splice(Math.max(Xe.integerLen,mi));for(let xi=mi;xi<ae.length;xi++)ae[xi]=0}else{Qe=Math.max(0,Qe),Xe.integerLen=1,ae.length=Math.max(1,mi=Yt+1),ae[0]=0;for(let xi=1;xi<mi;xi++)ae[xi]=0}if(Ct>=5)if(mi-1<0){for(let xi=0;xi>mi;xi--)ae.unshift(0),Xe.integerLen++;ae.unshift(1),Xe.integerLen++}else ae[mi-1]++;for(;Qe<Math.max(0,Yt);Qe++)ae.push(0);let ei=0!==Yt;const bt=ye+Xe.integerLen,Wt=ae.reduceRight(function(xi,zi,vn,wn){return wn[vn]=(zi+=xi)<10?zi:zi-10,ei&&(0===wn[vn]&&vn>=bt?wn.pop():ei=!1),zi>=10?1:0},0);Wt&&(ae.unshift(Wt),Xe.integerLen++)}(bt,xi,zi);let vn=bt.digits,wn=bt.integerLen;const Qi=bt.exponent;let gr=[];for(ei=vn.every(Gn=>!Gn);wn<Wt;wn++)vn.unshift(0);for(;wn<0;wn++)vn.unshift(0);wn>0?gr=vn.splice(wn,vn.length):(gr=vn,vn=[0]);const Fn=[];for(vn.length>=ye.lgSize&&Fn.unshift(vn.splice(-ye.lgSize,vn.length).join(""));vn.length>ye.gSize;)Fn.unshift(vn.splice(-ye.gSize,vn.length).join(""));vn.length&&Fn.unshift(vn.join("")),Ct=Fn.join(Fe(Q,ae)),gr.length&&(Ct+=Fe(Q,Qe)+gr.join("")),Qi&&(Ct+=Fe(Q,_.Exponential)+"+"+Qi)}else Ct=Fe(Q,_.Infinity);return Ct=Xe<0&&!ei?ye.negPre+Ct+ye.negSuf:ye.posPre+Ct+ye.posSuf,Ct}(Xe,function(Xe,ye="-"){const Q={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ae=Xe.split(";"),Qe=ae[0],Yt=ae[1],mi=-1!==Qe.indexOf(".")?Qe.split("."):[Qe.substring(0,Qe.lastIndexOf("0")+1),Qe.substring(Qe.lastIndexOf("0")+1)],Ct=mi[0],ei=mi[1]||"";Q.posPre=Ct.substr(0,Ct.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 bt=Ct.split(",");if(Q.gSize=bt[1]?bt[1].length:0,Q.lgSize=bt[2]||bt[1]?(bt[2]||bt[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=ye+Q.posPre,Q.negSuf=Q.posSuf;return Q}(function(Xe,ye){return(0,e.cg1)(Xe)[e.wAp.NumberFormats][ye]}(ye,y.Decimal),Fe(ye,_.MinusSign)),ye,_.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,ae)}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,ae,Qe){if(null==Q)return null;if(!this.supports(Q))throw qn(Xe,Q);return Q.slice(ae,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})(),Fa=(()=>{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 dr="browser";function na(Xe){return Xe===dr}function Mr(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(ye,Q){this.document=ye,this.window=Q,this.offset=()=>[0,0]}setOffset(ye){this.offset=Array.isArray(ye)?()=>ye:ye}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ye){this.supportsScrolling()&&this.window.scrollTo(ye[0],ye[1])}scrollToAnchor(ye){if(!this.supportsScrolling())return;const Q=function(Xe,ye){const Q=Xe.getElementById(ye)||Xe.getElementsByName(ye)[0];if(Q)return Q;if("function"==typeof Xe.createTreeWalker&&Xe.body&&(Xe.body.createShadowRoot||Xe.body.attachShadow)){const ae=Xe.createTreeWalker(Xe.body,NodeFilter.SHOW_ELEMENT);let Qe=ae.currentNode;for(;Qe;){const Yt=Qe.shadowRoot;if(Yt){const mi=Yt.getElementById(ye)||Yt.querySelector(`[name="${ye}"]`);if(mi)return mi}Qe=ae.nextNode()}}return null}(this.document,ye);Q&&(this.scrollToElement(Q),this.attemptFocus(Q))}setHistoryScrollRestoration(ye){if(this.supportScrollRestoration()){const Q=this.window.history;Q&&Q.scrollRestoration&&(Q.scrollRestoration=ye)}}scrollToElement(ye){const Q=ye.getBoundingClientRect(),ae=Q.left+this.window.pageXOffset,Qe=Q.top+this.window.pageYOffset,Yt=this.offset();this.window.scrollTo(ae-Yt[0],Qe-Yt[1])}attemptFocus(ye){return ye.focus(),this.document.activeElement===ye}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ye=pa(this.window.history)||pa(Object.getPrototypeOf(this.window.history));return!(!ye||!ye.writable&&!ye.set)}catch(ye){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(ye){return!1}}}function pa(Xe){return Object.getOwnPropertyDescriptor(Xe,"scrollRestoration")}class Ya{}},8138:(Ue,K,m)=>{"use strict";m.d(K,{TP:()=>I,eN:()=>_,JF:()=>Te,LE:()=>G});var e=m(9808),t=m(5e3),v=m(9646),M=m(8306),s=m(4351),C=m(9300),c=m(4004);class R{}class o{}class O{constructor(he){this.normalizedNames=new Map,this.lazyUpdate=null,he?this.lazyInit="string"==typeof he?()=>{this.headers=new Map,he.split("\n").forEach(Me=>{const ze=Me.indexOf(":");if(ze>0){const ht=Me.slice(0,ze),it=ht.toLowerCase(),ft=Me.slice(ze+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(he).forEach(Me=>{let ze=he[Me];const ht=Me.toLowerCase();"string"==typeof ze&&(ze=[ze]),ze.length>0&&(this.headers.set(ht,ze),this.maybeSetNormalizedName(Me,ht))})}:this.headers=new Map}has(he){return this.init(),this.headers.has(he.toLowerCase())}get(he){this.init();const Me=this.headers.get(he.toLowerCase());return Me&&Me.length>0?Me[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(he){return this.init(),this.headers.get(he.toLowerCase())||null}append(he,Me){return this.clone({name:he,value:Me,op:"a"})}set(he,Me){return this.clone({name:he,value:Me,op:"s"})}delete(he,Me){return this.clone({name:he,value:Me,op:"d"})}maybeSetNormalizedName(he,Me){this.normalizedNames.has(Me)||this.normalizedNames.set(Me,he)}init(){this.lazyInit&&(this.lazyInit instanceof O?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(he=>this.applyUpdate(he)),this.lazyUpdate=null))}copyFrom(he){he.init(),Array.from(he.headers.keys()).forEach(Me=>{this.headers.set(Me,he.headers.get(Me)),this.normalizedNames.set(Me,he.normalizedNames.get(Me))})}clone(he){const Me=new O;return Me.lazyInit=this.lazyInit&&this.lazyInit instanceof O?this.lazyInit:this,Me.lazyUpdate=(this.lazyUpdate||[]).concat([he]),Me}applyUpdate(he){const Me=he.name.toLowerCase();switch(he.op){case"a":case"s":let ze=he.value;if("string"==typeof ze&&(ze=[ze]),0===ze.length)return;this.maybeSetNormalizedName(he.name,Me);const ht=("a"===he.op?this.headers.get(Me):void 0)||[];ht.push(...ze),this.headers.set(Me,ht);break;case"d":const it=he.value;if(it){let ft=this.headers.get(Me);if(!ft)return;ft=ft.filter(nt=>-1===it.indexOf(nt)),0===ft.length?(this.headers.delete(Me),this.normalizedNames.delete(Me)):this.headers.set(Me,ft)}else this.headers.delete(Me),this.normalizedNames.delete(Me)}}forEach(he){this.init(),Array.from(this.normalizedNames.keys()).forEach(Me=>he(this.normalizedNames.get(Me),this.headers.get(Me)))}}class T{encodeKey(he){return w(he)}encodeValue(he){return w(he)}decodeKey(he){return decodeURIComponent(he)}decodeValue(he){return decodeURIComponent(he)}}const S=/%(\d[a-f0-9])/gi,D={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function w(X){return encodeURIComponent(X).replace(S,(he,Me)=>{var ze;return null!==(ze=D[Me])&&void 0!==ze?ze:he})}function U(X){return`${X}`}class G{constructor(he={}){if(this.updates=null,this.cloneFrom=null,this.encoder=he.encoder||new T,he.fromString){if(he.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(X,he){const Me=new Map;return X.length>0&&X.replace(/^\?/,"").split("&").forEach(ht=>{const it=ht.indexOf("="),[ft,nt]=-1==it?[he.decodeKey(ht),""]:[he.decodeKey(ht.slice(0,it)),he.decodeValue(ht.slice(it+1))],st=Me.get(ft)||[];st.push(nt),Me.set(ft,st)}),Me}(he.fromString,this.encoder)}else he.fromObject?(this.map=new Map,Object.keys(he.fromObject).forEach(Me=>{const ze=he.fromObject[Me];this.map.set(Me,Array.isArray(ze)?ze:[ze])})):this.map=null}has(he){return this.init(),this.map.has(he)}get(he){this.init();const Me=this.map.get(he);return Me?Me[0]:null}getAll(he){return this.init(),this.map.get(he)||null}keys(){return this.init(),Array.from(this.map.keys())}append(he,Me){return this.clone({param:he,value:Me,op:"a"})}appendAll(he){const Me=[];return Object.keys(he).forEach(ze=>{const ht=he[ze];Array.isArray(ht)?ht.forEach(it=>{Me.push({param:ze,value:it,op:"a"})}):Me.push({param:ze,value:ht,op:"a"})}),this.clone(Me)}set(he,Me){return this.clone({param:he,value:Me,op:"s"})}delete(he,Me){return this.clone({param:he,value:Me,op:"d"})}toString(){return this.init(),this.keys().map(he=>{const Me=this.encoder.encodeKey(he);return this.map.get(he).map(ze=>Me+"="+this.encoder.encodeValue(ze)).join("&")}).filter(he=>""!==he).join("&")}clone(he){const Me=new G({encoder:this.encoder});return Me.cloneFrom=this.cloneFrom||this,Me.updates=(this.updates||[]).concat(he),Me}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(he=>this.map.set(he,this.cloneFrom.map.get(he))),this.updates.forEach(he=>{switch(he.op){case"a":case"s":const Me=("a"===he.op?this.map.get(he.param):void 0)||[];Me.push(U(he.value)),this.map.set(he.param,Me);break;case"d":if(void 0===he.value){this.map.delete(he.param);break}{let ze=this.map.get(he.param)||[];const ht=ze.indexOf(U(he.value));-1!==ht&&ze.splice(ht,1),ze.length>0?this.map.set(he.param,ze):this.map.delete(he.param)}}}),this.cloneFrom=this.updates=null)}}class ee{constructor(){this.map=new Map}set(he,Me){return this.map.set(he,Me),this}get(he){return this.map.has(he)||this.map.set(he,he.defaultValue()),this.map.get(he)}delete(he){return this.map.delete(he),this}keys(){return this.map.keys()}}function _e(X){return"undefined"!=typeof ArrayBuffer&&X instanceof ArrayBuffer}function fe(X){return"undefined"!=typeof Blob&&X instanceof Blob}function de(X){return"undefined"!=typeof FormData&&X instanceof FormData}class se{constructor(he,Me,ze,ht){let it;if(this.url=Me,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=he.toUpperCase(),function(X){switch(X){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ht?(this.body=void 0!==ze?ze:null,it=ht):it=ze,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 O),this.context||(this.context=new ee),this.params){const ft=this.params.toString();if(0===ft.length)this.urlWithParams=Me;else{const nt=Me.indexOf("?");this.urlWithParams=Me+(-1===nt?"?":nt<Me.length-1?"&":"")+ft}}else this.params=new G,this.urlWithParams=Me}serializeBody(){return null===this.body?null:_e(this.body)||fe(this.body)||de(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof G?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||de(this.body)?null:fe(this.body)?this.body.type||null:_e(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof G?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(he={}){var Me;const ze=he.method||this.method,ht=he.url||this.url,it=he.responseType||this.responseType,ft=void 0!==he.body?he.body:this.body,nt=void 0!==he.withCredentials?he.withCredentials:this.withCredentials,st=void 0!==he.reportProgress?he.reportProgress:this.reportProgress;let wt=he.headers||this.headers,Bt=he.params||this.params;const Nt=null!==(Me=he.context)&&void 0!==Me?Me:this.context;return void 0!==he.setHeaders&&(wt=Object.keys(he.setHeaders).reduce((Vt,Oi)=>Vt.set(Oi,he.setHeaders[Oi]),wt)),he.setParams&&(Bt=Object.keys(he.setParams).reduce((Vt,Oi)=>Vt.set(Oi,he.setParams[Oi]),Bt)),new se(ze,ht,ft,{params:Bt,headers:wt,context:Nt,reportProgress:st,responseType:it,withCredentials:nt})}}var oe=(()=>((oe=oe||{})[oe.Sent=0]="Sent",oe[oe.UploadProgress=1]="UploadProgress",oe[oe.ResponseHeader=2]="ResponseHeader",oe[oe.DownloadProgress=3]="DownloadProgress",oe[oe.Response=4]="Response",oe[oe.User=5]="User",oe))();class y{constructor(he,Me=200,ze="OK"){this.headers=he.headers||new O,this.status=void 0!==he.status?he.status:Me,this.statusText=he.statusText||ze,this.url=he.url||null,this.ok=this.status>=200&&this.status<300}}class i extends y{constructor(he={}){super(he),this.type=oe.ResponseHeader}clone(he={}){return new i({headers:he.headers||this.headers,status:void 0!==he.status?he.status:this.status,statusText:he.statusText||this.statusText,url:he.url||this.url||void 0})}}class a extends y{constructor(he={}){super(he),this.type=oe.Response,this.body=void 0!==he.body?he.body:null}clone(he={}){return new a({body:void 0!==he.body?he.body:this.body,headers:he.headers||this.headers,status:void 0!==he.status?he.status:this.status,statusText:he.statusText||this.statusText,url:he.url||this.url||void 0})}}class p extends y{constructor(he){super(he,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${he.url||"(unknown url)"}`:`Http failure response for ${he.url||"(unknown url)"}: ${he.status} ${he.statusText}`,this.error=he.error||null}}function u(X,he){return{body:he,headers:X.headers,context:X.context,observe:X.observe,params:X.params,reportProgress:X.reportProgress,responseType:X.responseType,withCredentials:X.withCredentials}}let _=(()=>{class X{constructor(Me){this.handler=Me}request(Me,ze,ht={}){let it;if(Me instanceof se)it=Me;else{let st,wt;st=ht.headers instanceof O?ht.headers:new O(ht.headers),ht.params&&(wt=ht.params instanceof G?ht.params:new G({fromObject:ht.params})),it=new se(Me,ze,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(Me instanceof se||"events"===ht.observe)return ft;const nt=ft.pipe((0,C.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(Me,ze={}){return this.request("DELETE",Me,ze)}get(Me,ze={}){return this.request("GET",Me,ze)}head(Me,ze={}){return this.request("HEAD",Me,ze)}jsonp(Me,ze){return this.request("JSONP",Me,{params:(new G).append(ze,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Me,ze={}){return this.request("OPTIONS",Me,ze)}patch(Me,ze,ht={}){return this.request("PATCH",Me,u(ht,ze))}post(Me,ze,ht={}){return this.request("POST",Me,u(ht,ze))}put(Me,ze,ht={}){return this.request("PUT",Me,u(ht,ze))}}return X.\u0275fac=function(Me){return new(Me||X)(t.LFG(R))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();class L{constructor(he,Me){this.next=he,this.interceptor=Me}handle(he){return this.interceptor.intercept(he,this.next)}}const I=new t.OlP("HTTP_INTERCEPTORS");let x=(()=>{class X{intercept(Me,ze){return ze.handle(Me)}}return X.\u0275fac=function(Me){return new(Me||X)},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();const Pe=/^\)\]\}',?\n/;let q=(()=>{class X{constructor(Me){this.xhrFactory=Me}handle(Me){if("JSONP"===Me.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new M.y(ze=>{const ht=this.xhrFactory.build();if(ht.open(Me.method,Me.urlWithParams),Me.withCredentials&&(ht.withCredentials=!0),Me.headers.forEach((Oi,jt)=>ht.setRequestHeader(Oi,jt.join(","))),Me.headers.has("Accept")||ht.setRequestHeader("Accept","application/json, text/plain, */*"),!Me.headers.has("Content-Type")){const Oi=Me.detectContentTypeHeader();null!==Oi&&ht.setRequestHeader("Content-Type",Oi)}if(Me.responseType){const Oi=Me.responseType.toLowerCase();ht.responseType="json"!==Oi?Oi:"text"}const it=Me.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 O(ht.getAllResponseHeaders()),Ri=function(X){return"responseURL"in X&&X.responseURL?X.responseURL:/^X-Request-URL:/m.test(X.getAllResponseHeaders())?X.getResponseHeader("X-Request-URL"):null}(ht)||Me.url;return ft=new i({headers:ti,status:Oi,statusText:jt,url:Ri}),ft},st=()=>{let{headers:Oi,status:jt,statusText:ti,url:Ri}=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"===Me.responseType&&"string"==typeof si){const He=si;si=si.replace(Pe,"");try{si=""!==si?JSON.parse(si):null}catch(Se){si=He,di&&(di=!1,si={error:Se,text:si})}}di?(ze.next(new a({body:si,headers:Oi,status:jt,statusText:ti,url:Ri||void 0})),ze.complete()):ze.error(new p({error:si,headers:Oi,status:jt,statusText:ti,url:Ri||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});ze.error(ti)};let Bt=!1;const Nt=Oi=>{Bt||(ze.next(nt()),Bt=!0);let jt={type:oe.DownloadProgress,loaded:Oi.loaded};Oi.lengthComputable&&(jt.total=Oi.total),"text"===Me.responseType&&!!ht.responseText&&(jt.partialText=ht.responseText),ze.next(jt)},Vt=Oi=>{let jt={type:oe.UploadProgress,loaded:Oi.loaded};Oi.lengthComputable&&(jt.total=Oi.total),ze.next(jt)};return ht.addEventListener("load",st),ht.addEventListener("error",wt),ht.addEventListener("timeout",wt),ht.addEventListener("abort",wt),Me.reportProgress&&(ht.addEventListener("progress",Nt),null!==it&&ht.upload&&ht.upload.addEventListener("progress",Vt)),ht.send(it),ze.next({type:oe.Sent}),()=>{ht.removeEventListener("error",wt),ht.removeEventListener("abort",wt),ht.removeEventListener("load",st),ht.removeEventListener("timeout",wt),Me.reportProgress&&(ht.removeEventListener("progress",Nt),null!==it&&ht.upload&&ht.upload.removeEventListener("progress",Vt)),ht.readyState!==ht.DONE&&ht.abort()}})}}return X.\u0275fac=function(Me){return new(Me||X)(t.LFG(e.JF))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})();const j=new t.OlP("XSRF_COOKIE_NAME"),we=new t.OlP("XSRF_HEADER_NAME");class Ae{}let le=(()=>{class X{constructor(Me,ze,ht){this.doc=Me,this.platform=ze,this.cookieName=ht,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Me=this.doc.cookie||"";return Me!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(Me,this.cookieName),this.lastCookieString=Me),this.lastToken}}return X.\u0275fac=function(Me){return new(Me||X)(t.LFG(e.K0),t.LFG(t.Lbi),t.LFG(j))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})(),We=(()=>{class X{constructor(Me,ze){this.tokenService=Me,this.headerName=ze}intercept(Me,ze){const ht=Me.url.toLowerCase();if("GET"===Me.method||"HEAD"===Me.method||ht.startsWith("http://")||ht.startsWith("https://"))return ze.handle(Me);const it=this.tokenService.getToken();return null!==it&&!Me.headers.has(this.headerName)&&(Me=Me.clone({headers:Me.headers.set(this.headerName,it)})),ze.handle(Me)}}return X.\u0275fac=function(Me){return new(Me||X)(t.LFG(Ae),t.LFG(we))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})(),yt=(()=>{class X{constructor(Me,ze){this.backend=Me,this.injector=ze,this.chain=null}handle(Me){if(null===this.chain){const ze=this.injector.get(I,[]);this.chain=ze.reduceRight((ht,it)=>new L(ht,it),this.backend)}return this.chain.handle(Me)}}return X.\u0275fac=function(Me){return new(Me||X)(t.LFG(o),t.LFG(t.zs3))},X.\u0275prov=t.Yz7({token:X,factory:X.\u0275fac}),X})(),ue=(()=>{class X{static disable(){return{ngModule:X,providers:[{provide:We,useClass:x}]}}static withOptions(Me={}){return{ngModule:X,providers:[Me.cookieName?{provide:j,useValue:Me.cookieName}:[],Me.headerName?{provide:we,useValue:Me.headerName}:[]]}}}return X.\u0275fac=function(Me){return new(Me||X)},X.\u0275mod=t.oAB({type:X}),X.\u0275inj=t.cJS({providers:[We,{provide:I,useExisting:We,multi:!0},{provide:Ae,useClass:le},{provide:j,useValue:"XSRF-TOKEN"},{provide:we,useValue:"X-XSRF-TOKEN"}]}),X})(),Te=(()=>{class X{}return X.\u0275fac=function(Me){return new(Me||X)},X.\u0275mod=t.oAB({type:X}),X.\u0275inj=t.cJS({providers:[_,{provide:R,useClass:yt},q,{provide:o,useExisting:q}],imports:[[ue.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),X})()},5e3:(Ue,K,m)=>{"use strict";m.d(K,{deG:()=>pc,tb:()=>Vm,AFp:()=>zm,ip1:()=>_p,CZH:()=>Yu,hGG:()=>C5,z2F:()=>L4,sBO:()=>Jg,Sil:()=>yp,_Vd:()=>M4,EJc:()=>Wm,SBq:()=>w4,qLn:()=>Sc,vpe:()=>hc,tBr:()=>bo,XFs:()=>ue,OlP:()=>Gr,zs3:()=>Zs,ZZ4:()=>Y3,aQg:()=>j3,soG:()=>G3,YKP:()=>qp,h0i:()=>Vu,PXZ:()=>Vg,R0b:()=>Lo,FiY:()=>xo,Lbi:()=>Zm,g9A:()=>Um,n_E:()=>B3,Qsj:()=>D8,FYo:()=>Gp,JOm:()=>cs,q3G:()=>ha,PiD:()=>zl,tp0:()=>Us,Rgc:()=>S4,dDg:()=>qm,GfV:()=>Wp,s_b:()=>z3,ifc:()=>ft,eFA:()=>Jm,Ez6:()=>Pe,G48:()=>Qg,Gpc:()=>T,f3M:()=>cl,X6Q:()=>Kg,_c5:()=>m5,VLi:()=>Hg,c2e:()=>Gm,zSh:()=>v2,wAp:()=>Mn,vHH:()=>w,EiD:()=>bh,mCW:()=>ul,qzn:()=>Ul,JVY:()=>ju,pB0:()=>P4,eBb:()=>I4,L6k:()=>qu,LAX:()=>k4,cg1:()=>h0,kL8:()=>Fu,yhl:()=>dl,dqk:()=>Nt,sIi:()=>Zc,CqO:()=>mu,QGY:()=>B2,F4k:()=>pu,RDi:()=>fa,AaK:()=>R,z3N:()=>Mo,qOj:()=>w2,TTD:()=>Ca,_Bn:()=>Up,xp6:()=>B1,uIk:()=>T2,Tol:()=>n0,Gre:()=>o0,ekj:()=>sc,Suo:()=>vm,Xpm:()=>Ee,lG2:()=>rt,Yz7:()=>xe,cJS:()=>Fe,oAB:()=>lt,Yjl:()=>ot,Y36:()=>Gc,_UZ:()=>R2,GkF:()=>uu,BQk:()=>F2,ynx:()=>N2,qZA:()=>$1,TgZ:()=>P2,EpF:()=>fu,n5z:()=>Fs,Ikx:()=>th,LFG:()=>Ia,$8M:()=>r1,$Z:()=>du,NdJ:()=>e0,CRH:()=>ym,kcU:()=>kn,O4$:()=>an,oxw:()=>z2,ALo:()=>om,lcZ:()=>lm,xi3:()=>cm,Dn7:()=>hm,Hsn:()=>_u,F$t:()=>gu,Q6J:()=>I2,s9C:()=>Wc,MGl:()=>yr,DdM:()=>Xp,VKq:()=>$p,WLB:()=>em,kEZ:()=>tm,iGM:()=>gm,MAs:()=>$d,Jf7:()=>kh,CHM:()=>fs,oJD:()=>E0,LSH:()=>T0,kYT:()=>Re,Udp:()=>El,WFA:()=>H2,d8E:()=>Ru,YNc:()=>Xd,W1O:()=>Mm,_uU:()=>J2,Oqu:()=>qr,hij:()=>Tl,AsE:()=>io,HOy:()=>X2,Gf:()=>_m});var e=m(7579),t=m(727),v=m(8306),M=m(6451),s=m(3099);function C(l){for(let h in l)if(l[h]===C)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 R(l){if("string"==typeof l)return l;if(Array.isArray(l))return"["+l.map(R).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 O=C({__forward_ref__:C});function T(l){return l.__forward_ref__=T,l.toString=function(){return R(this())},l}function P(l){return S(l)?l():l}function S(l){return"function"==typeof l&&l.hasOwnProperty(O)&&l.__forward_ref__===T}class w extends Error{constructor(h,g){super(function(l,h){return`${l?`NG0${l}: `:""}${h}`}(h,g)),this.code=h}}function W(l){return"string"==typeof l?l:null==l?"":String(l)}function ee(l){return"function"==typeof l?l.name||l.toString():"object"==typeof l&&null!=l&&"function"==typeof l.type?l.type.name||l.type.toString():W(l)}function de(l,h){const g=h?` in ${h}`:"";throw new w("201",`No provider for ${ee(l)} found${g}`)}function b(l,h){null==l&&function(l,h,g,E){throw new Error(`ASSERTION ERROR: ${l}`+(null==E?"":` [Expected=> ${g} ${E} ${h} <=Actual]`))}(h,l,null,"!=")}function xe(l){return{token:l.token,providedIn:l.providedIn||null,factory:l.factory,value:void 0}}const Pe=xe;function Fe(l){return{providers:l.providers||[],imports:l.imports||[]}}function q(l){return j(l,We)||j(l,Ne)}function j(l,h){return l.hasOwnProperty(h)?l[h]:null}function le(l){return l&&(l.hasOwnProperty(yt)||l.hasOwnProperty(Ve))?l[yt]:null}const We=C({\u0275prov:C}),yt=C({\u0275inj:C}),Ne=C({ngInjectableDef:C}),Ve=C({ngInjectorDef:C});var ue=(()=>((ue=ue||{})[ue.Default=0]="Default",ue[ue.Host=1]="Host",ue[ue.Self=2]="Self",ue[ue.SkipSelf=4]="SkipSelf",ue[ue.Optional=8]="Optional",ue))();let Te;function Y(l){const h=Te;return Te=l,h}function X(l,h,g){const E=q(l);return E&&"root"==E.providedIn?void 0===E.value?E.value=E.factory():E.value:g&ue.Optional?null:void 0!==h?h:void de(R(l),"Injector")}function Me(l){return{toString:l}.toString()}var ze=(()=>((ze=ze||{})[ze.OnPush=0]="OnPush",ze[ze.Default=1]="Default",ze))(),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,Nt=nt||"undefined"!=typeof global&&global||st||wt,jt={},ti=[],Ri=C({\u0275cmp:C}),si=C({\u0275dir:C}),di=C({\u0275pipe:C}),He=C({\u0275mod:C}),Se=C({\u0275fac:C}),V=C({__NG_ELEMENT_ID__:C});let ve=0;function Ee(l){return Me(()=>{const g={},E={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===ze.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},N=l.directives,Z=l.features,ge=l.pipes;return E.id+=ve++,E.inputs=Be(l.inputs,g),E.outputs=Be(l.outputs),Z&&Z.forEach(Ie=>Ie(E)),E.directiveDefs=N?()=>("function"==typeof N?N():N).map($t):null,E.pipeDefs=ge?()=>("function"==typeof ge?ge():ge).map(Rt):null,E})}function $t(l){return At(l)||function(l){return l[si]||null}(l)}function Rt(l){return function(l){return l[di]||null}(l)}const Xt={};function lt(l){return Me(()=>{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 Me(()=>{const g=Ft(l,!0);g.declarations=h.declarations||ti,g.imports=h.imports||ti,g.exports=h.exports||ti})}function Be(l,h){if(null==l)return jt;const g={};for(const E in l)if(l.hasOwnProperty(E)){let N=l[E],Z=N;Array.isArray(N)&&(Z=N[1],N=N[0]),g[N]=E,h&&(h[N]=Z)}return g}const rt=Ee;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[Ri]||null}function Ft(l,h){const g=l[He]||null;if(!g&&!0===h)throw new Error(`Type ${R(l)} does not have '\u0275mod' property.`);return g}function pn(l){return Array.isArray(l)&&"object"==typeof l[1]}function Rn(l){return Array.isArray(l)&&!0===l[1]}function xr(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(Se)?l[Se]:null}class Na{constructor(h,g,E){this.previousValue=h,this.currentValue=g,this.firstChange=E}isFirstChange(){return this.firstChange}}function Ca(){return Vr}function Vr(l){return l.type.prototype.ngOnChanges&&(l.setInput=Fa),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 E in h)g[E]=h[E];l.current=null,this.ngOnChanges(h)}}function Fa(l,h,g,E){const N=ia(l)||function(l,h){return l[dr]=h}(l,{previous:jt,current:null}),Z=N.current||(N.current={}),ge=N.previous,Ie=this.declaredInputs[g],Ye=ge[Ie];Z[Ie]=new Na(Ye&&Ye.currentValue,h,ge===jt),l[E]=h}Ca.ngInherit=!0;const dr="__ngSimpleChanges__";function ia(l){return l[dr]||null}const ns="http://www.w3.org/2000/svg";let mr;function fa(l){mr=l}function ra(){return void 0!==mr?mr:"undefined"!=typeof document?document:void 0}function Zn(l){return!!l.listen}const rs={createRenderer:(l,h)=>ra()};function Xe(l){for(;Array.isArray(l);)l=l[0];return l}function ae(l,h){return Xe(h[l])}function Qe(l,h){return Xe(h[l.index])}function mi(l,h){return l.data[h]}function Ct(l,h){return l[h]}function ei(l,h){const g=h[l];return pn(g)?g:g[0]}function bt(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,E=l[3];for(;null!==E&&(1===h&&1===g[5]||-1===h&&0===g[5]);)E[5]+=h,g=E,E=E[3]}const Qi={lFrame:yn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Lr(){return Qi.bindingsEnabled}function ki(){return Qi.lFrame.lView}function Nn(){return Qi.lFrame.tView}function fs(l){return Qi.lFrame.contextLView=l,l[8]}function cr(){let l=Ys();for(;null!==l&&64===l.type;)l=l.parent;return l}function Ys(){return Qi.lFrame.currentTNode}function xt(l,h){const g=Qi.lFrame;g.currentTNode=l,g.isParent=h}function re(){return Qi.lFrame.isParent}function pe(){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&ue.SkipSelf){let N=h,Z=l;for(;!(N=N.parent,null!==N||g&ue.Host||(N=Mi(Z),null===N||(Z=Z[15],10&N.type))););if(null===N)return!1;h=N,l=Z}const E=Qi.lFrame=hn();return E.currentTNode=h,E.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 Tn(){const l=Qi.lFrame;return Qi.lFrame=l.parent,l.currentTNode=null,l.lView=null,l}const Vn=Tn;function wr(){const l=Tn();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 _r(l){Qi.lFrame.selectedIndex=l}function Bi(){const l=Qi.lFrame;return mi(l.tView,l.selectedIndex)}function an(){Qi.lFrame.currentNamespace=ns}function kn(){Qi.lFrame.currentNamespace=null}function ca(l,h){for(let g=h.directiveStart,E=h.directiveEnd;g<E;g++){const Z=l.data[g].type.prototype,{ngAfterContentInit:ge,ngAfterContentChecked:Ie,ngAfterViewInit:Ye,ngAfterViewChecked:ut,ngOnDestroy:Tt}=Z;ge&&(l.contentHooks||(l.contentHooks=[])).push(-g,ge),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,E){(3&l[2])===g&&Rs(l,h,g,E)}function La(l,h){let g=l[2];(3&g)===h&&(g&=2047,g+=1,l[2]=g)}function Rs(l,h,g,E){const Z=null!=E?E:-1,ge=h.length-1;let Ie=0;for(let Ye=void 0!==E?65535&l[18]:0;Ye<ge;Ye++)if("number"==typeof h[Ye+1]){if(Ie=h[Ye],null!=E&&Ie>=E)break}else h[Ye]<0&&(l[18]+=65536),(Ie<Z||-1==Z)&&(js(l,g,h,Ye),l[18]=(4294901760&l[18])+Ye+2),Ye++}function js(l,h,g,E){const N=g[E]<0,Z=g[E+1],Ie=l[N?-g[E]:g[E]];if(N){if(l[2]>>11<l[18]>>16&&(3&l[2])===h){l[2]+=2048;try{Z.call(Ie)}finally{}}}else try{Z.call(Ie)}finally{}}class vs{constructor(h,g,E){this.factory=h,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=E}}function ko(l,h,g){const E=Zn(l);let N=0;for(;N<g.length;){const Z=g[N];if("number"==typeof Z){if(0!==Z)break;N++;const ge=g[N++],Ie=g[N++],Ye=g[N++];E?l.setAttribute(h,Ie,Ye,ge):h.setAttributeNS(ge,Ie,Ye)}else{const ge=Z,Ie=g[++N];el(ge)?E&&l.setProperty(h,ge,Ie):E?l.setAttribute(h,ge,Ie):h.setAttribute(ge,Ie),N++}}return N}function Pl(l){return 3===l||4===l||6===l}function el(l){return 64===l.charCodeAt(0)}function _o(l,h){if(null!==h&&0!==h.length)if(null===l||0===l.length)l=h.slice();else{let g=-1;for(let E=0;E<h.length;E++){const N=h[E];"number"==typeof N?g=N:0===g||Rl(l,g,N,null,-1===g||2===g?h[++E]:null)}}return l}function Rl(l,h,g,E,N){let Z=0,ge=l.length;if(-1===h)ge=-1;else for(;Z<l.length;){const Ie=l[Z++];if("number"==typeof Ie){if(Ie===h){ge=-1;break}if(Ie>h){ge=Z-1;break}}}for(;Z<l.length;){const Ie=l[Z];if("number"==typeof Ie)break;if(Ie===g){if(null===E)return void(null!==N&&(l[Z+1]=N));if(E===l[Z+1])return void(l[Z+2]=N)}Z++,null!==E&&Z++,null!==N&&Z++}-1!==ge&&(l.splice(ge,0,h),Z=ge+1),l.splice(Z++,0,g),null!==E&&l.splice(Z++,0,E),null!==N&&l.splice(Z++,0,N)}function Nl(l){return-1!==l}function ao(l){return 32767&l}function so(l,h){let g=function(l){return l>>16}(l),E=h;for(;g>0;)E=E[15],g--;return E}let il=!0;function vo(l){const h=il;return il=l,h}let De=0;function Je(l,h){const g=Ot(l,h);if(-1!==g)return g;const E=h[1];E.firstCreatePass&&(l.injectorIndex=h.length,ct(E.data,l),ct(h,null),ct(E.blueprint,null));const N=qt(l,h),Z=l.injectorIndex;if(Nl(N)){const ge=ao(N),Ie=so(N,h),Ye=Ie[1].data;for(let ut=0;ut<8;ut++)h[Z+ut]=Ie[ge+ut]|Ye[ge+ut]}return h[Z+8]=N,Z}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,E=null,N=h;for(;null!==N;){const Z=N[1],ge=Z.type;if(E=2===ge?Z.declTNode:1===ge?N[6]:null,null===E)return-1;if(g++,N=N[15],-1!==E.injectorIndex)return E.injectorIndex|g<<16}return-1}function ii(l,h,g){!function(l,h,g){let E;"string"==typeof g?E=g.charCodeAt(0)||0:g.hasOwnProperty(V)&&(E=g[V]),null==E&&(E=g[V]=De++);const N=255&E;h.data[l+(N>>5)]|=1<<N}(l,h,g)}function on(l,h,g){if(g&ue.Optional)return l;de(h,"NodeInjector")}function jn(l,h,g,E){if(g&ue.Optional&&void 0===E&&(E=null),0==(g&(ue.Self|ue.Host))){const N=l[9],Z=Y(void 0);try{return N?N.get(h,E,g&ue.Optional):X(h,E,g&ue.Optional)}finally{Y(Z)}}return on(E,h,g)}function xn(l,h,g,E=ue.Default,N){if(null!==l){const Z=function(l){if("string"==typeof l)return l.charCodeAt(0)||0;const h=l.hasOwnProperty(V)?l[V]:void 0;return"number"==typeof h?h>=0?255&h:Bn:h}(g);if("function"==typeof Z){if(!Ei(h,l,E))return E&ue.Host?on(N,g,E):jn(h,g,E,N);try{const ge=Z(E);if(null!=ge||E&ue.Optional)return ge;de(g)}finally{Vn()}}else if("number"==typeof Z){let ge=null,Ie=Ot(l,h),Ye=-1,ut=E&ue.Host?h[16][6]:null;for((-1===Ie||E&ue.SkipSelf)&&(Ye=-1===Ie?qt(l,h):h[Ie+8],-1!==Ye&&ys(E,!1)?(ge=h[1],Ie=ao(Ye),h=so(Ye,h)):Ie=-1);-1!==Ie;){const Tt=h[1];if(Ba(Z,Ie,Tt.data)){const Gt=yo(Ie,h,g,ge,E,ut);if(Gt!==Xn)return Gt}Ye=h[Ie+8],-1!==Ye&&ys(E,h[1].data[Ie+8]===ut)&&Ba(Z,Ie,h)?(ge=Tt,Ie=ao(Ye),h=so(Ye,h)):Ie=-1}}}return jn(h,g,E,N)}const Xn={};function Bn(){return new os(cr(),ki())}function yo(l,h,g,E,N,Z){const ge=h[1],Ie=ge.data[l+8],Tt=ss(Ie,ge,g,null==E?wi(Ie)&&il:E!=ge&&0!=(3&Ie.type),N&ue.Host&&Z===Ie);return null!==Tt?qa(h,ge,Tt,Ie):Xn}function ss(l,h,g,E,N){const Z=l.providerIndexes,ge=h.data,Ie=1048575&Z,Ye=l.directiveStart,Tt=Z>>20,oi=N?Ie+Tt:l.directiveEnd;for(let gi=E?Ie:Ie+Tt;gi<oi;gi++){const Li=ge[gi];if(gi<Ye&&g===Li||gi>=Ye&&Li.type===g)return gi}if(N){const gi=ge[Ye];if(gi&&sn(gi)&&gi.type===g)return Ye}return null}function qa(l,h,g,E){let N=l[g];const Z=h.data;if(function(l){return l instanceof vs}(N)){const ge=N;ge.resolving&&function(l,h){throw new w("200",`Circular dependency in DI detected for ${l}`)}(ee(Z[g]));const Ie=vo(ge.canSeeViewProviders);ge.resolving=!0;const Ye=ge.injectImpl?Y(ge.injectImpl):null;Ei(l,E,ue.Default);try{N=l[g]=ge.factory(void 0,Z,l,E),h.firstCreatePass&&g>=E.directiveStart&&function(l,h,g){const{ngOnChanges:E,ngOnInit:N,ngDoCheck:Z}=h.type.prototype;if(E){const ge=Vr(h);(g.preOrderHooks||(g.preOrderHooks=[])).push(l,ge),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(l,ge)}N&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-l,N),Z&&((g.preOrderHooks||(g.preOrderHooks=[])).push(l,Z),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(l,Z))}(g,Z[g],h)}finally{null!==Ye&&Y(Ye),vo(Ie),ge.resolving=!1,Vn()}}return N}function Ba(l,h,g){return!!(g[h+(l>>5)]&1<<l)}function ys(l,h){return!(l&ue.Self||l&ue.Host&&h)}class os{constructor(h,g){this._tNode=h,this._lView=g}get(h,g,E){return xn(this._tNode,this._lView,h,E,g)}}function Fs(l){return Me(()=>{const h=l.prototype.constructor,g=h[Se]||n1(h),E=Object.prototype;let N=Object.getPrototypeOf(l.prototype).constructor;for(;N&&N!==E;){const Z=N[Se]||n1(N);if(Z&&Z!==g)return Z;N=Object.getPrototypeOf(N)}return Z=>new Z})}function n1(l){return S(l)?()=>{const h=n1(P(l));return h&&h()}:Pr(l)}function r1(l){return function(l,h){if("class"===h)return l.classes;if("style"===h)return l.styles;const g=l.attrs;if(g){const E=g.length;let N=0;for(;N<E;){const Z=g[N];if(Pl(Z))break;if(0===Z)N+=2;else if("number"==typeof Z)for(N++;N<E&&"string"==typeof g[N];)N++;else{if(Z===h)return g[N+1];N+=2}}}return null}(cr(),l)}const Ro="__parameters__";function Fo(l,h,g){return Me(()=>{const E=function(l){return function(...g){if(l){const E=l(...g);for(const N in E)this[N]=E[N]}}}(h);function N(...Z){if(this instanceof N)return E.apply(this,Z),this;const ge=new N(...Z);return Ie.annotation=ge,Ie;function Ie(Ye,ut,Tt){const Gt=Ye.hasOwnProperty(Ro)?Ye[Ro]:Object.defineProperty(Ye,Ro,{value:[]})[Ro];for(;Gt.length<=Tt;)Gt.push(null);return(Gt[Tt]=Gt[Tt]||[]).push(ge),Ye}}return g&&(N.prototype=Object.create(g.prototype)),N.prototype.ngMetadataName=l,N.annotationCls=N,N})}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 E=l[g];Array.isArray(E)?(h===l&&(h=l.slice(0,g)),bs(E,h)):h!==l&&h.push(E)}return h}function Hs(l,h){l.forEach(g=>Array.isArray(g)?Hs(g,h):h(g))}function oo(l,h,g){h>=l.length?l.push(g):l.splice(h,0,g)}function al(l,h){return h>=l.length-1?l.pop():l.splice(h,1)[0]}function qs(l,h){const g=[];for(let E=0;E<l;E++)g.push(h);return g}function ms(l,h,g){let E=sl(l,h);return E>=0?l[1|E]=g:(E=~E,function(l,h,g,E){let N=l.length;if(N==h)l.push(g,E);else if(1===N)l.push(E,l[0]),l[0]=g;else{for(N--,l.push(l[N-1],l[N]);N>h;)l[N]=l[N-2],N--;l[h]=g,l[h+1]=E}}(l,E,h,g)),E}function h1(l,h){const g=sl(l,h);if(g>=0)return l[1|g]}function sl(l,h){return function(l,h,g){let E=0,N=l.length>>g;for(;N!==E;){const Z=E+(N-E>>1),ge=l[Z<<g];if(h===ge)return Z<<g;ge>h?N=Z:E=Z+1}return~(N<<g)}(l,h,1)}const Ha={},Ms="__NG_DI_FLAG__",zs="ngTempTokenPath",f1=/\n/gm,Hl="__source",xc=C({provide:String,useValue:C});let $r;function ll(l){const h=$r;return $r=l,h}function b0(l,h=ue.Default){if(void 0===$r)throw new Error("inject() must be called from an injection context");return null===$r?X(l,void 0,h):$r.get(l,h&ue.Optional?null:void 0,h)}function Ia(l,h=ue.Default){return(Te||b0)(P(l),h)}const cl=Ia;function p1(l){const h=[];for(let g=0;g<l.length;g++){const E=P(l[g]);if(Array.isArray(E)){if(0===E.length)throw new Error("Arguments array must have arguments.");let N,Z=ue.Default;for(let ge=0;ge<E.length;ge++){const Ie=E[ge],Ye=m1(Ie);"number"==typeof Ye?-1===Ye?N=Ie.token:Z|=Ye:N=Ie}h.push(Ia(N,Z))}else h.push(Ia(E))}return h}function zo(l,h){return l[Ms]=h,l.prototype[Ms]=h,l}function m1(l){return l[Ms]}const bo=zo(Fo("Inject",l=>({token:l})),-1),xo=zo(Fo("Optional"),8),zl=zo(Fo("Self"),2),Us=zo(Fo("SkipSelf"),4);let hr,Qs;function ur(l){var h;return(null===(h=function(){if(void 0===hr&&(hr=null,Nt.trustedTypes))try{hr=Nt.trustedTypes.createPolicy("angular",{createHTML:l=>l,createScript:l=>l,createScriptURL:l=>l})}catch(l){}return hr}())||void 0===h?void 0:h.createHTML(l))||l}function Go(l){var h;return(null===(h=function(){if(void 0===Qs&&(Qs=null,Nt.trustedTypes))try{Qs=Nt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:l=>l,createScript:l=>l,createScriptURL:l=>l})}catch(l){}return Qs}())||void 0===h?void 0:h.createHTML(l))||l}class Wo{constructor(h){this.changingThisBreaksApplicationSecurity=h}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class C0 extends Wo{getTypeName(){return"HTML"}}class O4 extends Wo{getTypeName(){return"Style"}}class hl extends Wo{getTypeName(){return"Script"}}class M0 extends Wo{getTypeName(){return"URL"}}class y1 extends Wo{getTypeName(){return"ResourceURL"}}function Mo(l){return l instanceof Wo?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 Wo&&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 P4(l){return new y1(l)}class R4{constructor(h){this.inertDocumentHelper=h}getInertBodyElement(h){h="<body><remove></remove>"+h;try{const g=(new window.DOMParser).parseFromString(ur(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 E=this.inertDocument.createElement("body");g.appendChild(E)}}getInertBodyElement(h){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=ur(h),g;const E=this.inertDocument.createElement("body");return E.innerHTML=ur(h),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(E),E}stripCustomNsAttrs(h){const g=h.attributes;for(let N=g.length-1;0<N;N--){const ge=g.item(N).name;("xmlns:ns1"===ge||0===ge.indexOf("ns1:"))&&h.removeAttribute(ge)}let E=h.firstChild;for(;E;)E.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(E),E=E.nextSibling}}const ph=/^(?:(?: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(ph)||l.match(H4)?l:"unsafe:"+l}function wo(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 E in g)g.hasOwnProperty(E)&&(h[E]=!0);return h}const Qu=wo("area,br,col,hr,img,wbr"),Ju=wo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),mh=wo("rp,rt"),pl=Zl(Qu,Zl(Ju,wo("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(mh,wo("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(mh,Ju)),w0=wo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),b1=wo("srcset"),vh=Zl(w0,b1,wo("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"),wo("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=wo("script,style,template");class Xu{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(h){let g=h.firstChild,E=!0;for(;g;)if(g.nodeType===Node.ELEMENT_NODE?E=this.startElement(g):g.nodeType===Node.TEXT_NODE?this.chars(g.nodeValue):this.sanitizedSomething=!0,E&&g.firstChild)g=g.firstChild;else for(;g;){g.nodeType===Node.ELEMENT_NODE&&this.endElement(g);let N=this.checkClobberedElement(g,g.nextSibling);if(N){g=N;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 E=h.attributes;for(let N=0;N<E.length;N++){const Z=E.item(N),ge=Z.name,Ie=ge.toLowerCase();if(!vh.hasOwnProperty(Ie)){this.sanitizedSomething=!0;continue}let Ye=Z.value;w0[Ie]&&(Ye=ul(Ye)),b1[Ie]&&(l=Ye,Ye=(l=String(l)).split(",").map(h=>ul(h.trim())).join(", ")),this.buf.push(" ",ge,'="',yh(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(yh(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 wc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ac=/([^\#-~ |!])/g;function yh(l){return l.replace(/&/g,"&amp;").replace(wc,function(h){return"&#"+(1024*(h.charCodeAt(0)-55296)+(h.charCodeAt(1)-56320)+65536)+";"}).replace(Ac,function(h){return"&#"+h.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let x1;function bh(l,h){let g=null;try{x1=x1||function(l){const h=new N4(l);return function(){try{return!!(new window.DOMParser).parseFromString(ur(""),"text/html")}catch(l){return!1}}()?new R4(h):h}(l);let E=h?String(h):"";g=x1.getInertBodyElement(E);let N=5,Z=E;do{if(0===N)throw new Error("Failed to sanitize html because the input is unstable");N--,E=Z,Z=g.innerHTML,g=x1.getInertBodyElement(E)}while(E!==Z);return ur((new Xu).sanitizeChildren(A0(g)||g))}finally{if(g){const E=A0(g)||g;for(;E.firstChild;)E.removeChild(E.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=Ec();return h?Go(h.sanitize(ha.HTML,l)||""):Ul(l,"HTML")?Go(Mo(l)):bh(ra(),W(l))}function T0(l){const h=Ec();return h?h.sanitize(ha.URL,l)||"":Ul(l,"URL")?Mo(l):ul(W(l))}function Ec(){const l=ki();return l&&l[12]}const wh="__ngContext__";function ls(l,h){l[wh]=h}function C1(l){const h=function(l){return l[wh]||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 Sc{constructor(){this._console=console}handleError(h){const g=this._findOriginalError(h),E=(l=h)&&l.ngErrorLogger||pf;var l;E(this._console,"ERROR",h),g&&E(this._console,"ORIGINAL ERROR",g)}_findOriginalError(h){let g=h&&I0(h);for(;g&&I0(g);)g=I0(g);return g||null}}const Ih=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Nt))();function kh(l){return l.ownerDocument.defaultView}function uo(l){return l instanceof Function?l():l}var cs=(()=>((cs=cs||{})[cs.Important=1]="Important",cs[cs.DashCase=2]="DashCase",cs))();function w1(l,h){return undefined(l,h)}function Dc(l){const h=l[3];return Rn(h)?h[3]:h}function A1(l){return Tf(l[13])}function R0(l){return Tf(l[4])}function Tf(l){for(;null!==l&&!Rn(l);)l=l[4];return l}function ml(l,h,g,E,N){if(null!=E){let Z,ge=!1;Rn(E)?Z=E:pn(E)&&(ge=!0,E=E[0]);const Ie=Xe(E);0===l&&null!==g?null==N?H0(h,g,Ie):As(h,g,Ie,N||null,!0):1===l&&null!==g?As(h,g,Ie,N||null,!0):2===l?function(l,h,g){const E=D1(l,h);E&&function(l,h,g,E){Zn(l)?l.removeChild(h,g,E):h.removeChild(g)}(l,E,h,g)}(h,Ie,ge):3===l&&h.destroyNode(Ie),null!=Z&&function(l,h,g,E,N){const Z=g[7];Z!==Xe(g)&&ml(h,l,E,Z,N);for(let Ie=10;Ie<g.length;Ie++){const Ye=g[Ie];Wl(Ye[1],Ye,l,h,E,Z)}}(h,l,Z,g,N)}}function E1(l,h,g){return Zn(l)?l.createElement(h,g):null===g?l.createElement(h):l.createElementNS(g,h)}function Bh(l,h){const g=l[9],E=g.indexOf(h),N=h[3];1024&h[2]&&(h[2]&=-1025,wn(N,-1)),g.splice(E,1)}function T1(l,h){if(l.length<=10)return;const g=10+h,E=l[g];if(E){const N=E[17];null!==N&&N!==l&&Bh(N,E),h>0&&(l[g-1][4]=E[4]);const Z=al(l,10+h);!function(l,h){Wl(l,h,h[11],2,null,null),h[0]=null,h[6]=null}(E[1],E);const ge=Z[19];null!==ge&&ge.detachView(Z[1]),E[3]=null,E[4]=null,E[2]&=-129}return E}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 Hh(l[1],l);for(;h;){let g=null;if(pn(h))g=h[13];else{const E=h[10];E&&(g=E)}if(!g){for(;h&&!h[4]&&h!==l;)pn(h)&&Hh(h[1],h),h=h[3];null===h&&(h=l),pn(h)&&Hh(h[1],h),g=h&&h[4]}h=g}}(h)}}function Hh(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 E=0;E<g.length;E+=2){const N=h[g[E]];if(!(N instanceof vs)){const Z=g[E+1];if(Array.isArray(Z))for(let ge=0;ge<Z.length;ge+=2){const Ie=N[Z[ge]],Ye=Z[ge+1];try{Ye.call(Ie)}finally{}}else try{Z.call(N)}finally{}}}}(l,h),function(l,h){const g=l.cleanup,E=h[7];let N=-1;if(null!==g)for(let Z=0;Z<g.length-1;Z+=2)if("string"==typeof g[Z]){const ge=g[Z+1],Ie="function"==typeof ge?ge(h):Xe(h[ge]),Ye=E[N=g[Z+2]],ut=g[Z+3];"boolean"==typeof ut?Ie.removeEventListener(g[Z],Ye,ut):ut>=0?E[N=ut]():E[N=-ut].unsubscribe(),Z+=2}else{const ge=E[N=g[Z+1]];g[Z].call(ge)}if(null!==E){for(let Z=N+1;Z<E.length;Z++)E[Z]();h[7]=null}}(l,h),1===h[1].type&&Zn(h[11])&&h[11].destroy();const g=h[17];if(null!==g&&Rn(h[3])){g!==h[3]&&Bh(g,h);const E=h[19];null!==E&&E.detachView(l)}}}function zh(l,h,g){return function(l,h,g){let E=h;for(;null!==E&&40&E.type;)E=(h=E).parent;if(null===E)return g[0];if(2&E.flags){const N=l.data[E.directiveStart].encapsulation;if(N===ft.None||N===ft.Emulated)return null}return Qe(E,g)}(l,h.parent,g)}function As(l,h,g,E,N){Zn(l)?l.insertBefore(h,g,E,N):h.insertBefore(g,E,N)}function H0(l,h,g){Zn(l)?l.appendChild(h,g):h.appendChild(g)}function Lc(l,h,g,E,N){null!==E?As(l,h,g,E,N):H0(l,h,g)}function D1(l,h){return Zn(l)?l.parentNode(h):h.parentNode}function _l(l,h,g){return Zh(l,h,g)}let Zh=function(l,h,g){return 40&l.type?Qe(l,g):null};function Oc(l,h,g,E){const N=zh(l,E,h),Z=h[11],Ie=_l(E.parent||h[6],E,h);if(null!=N)if(Array.isArray(g))for(let Ye=0;Ye<g.length;Ye++)Lc(Z,N,g[Ye],Ie,!1);else Lc(Z,N,g,Ie,!1)}function O1(l,h){if(null!==h){const g=h.type;if(3&g)return Qe(h,l);if(4&g)return I1(-1,l[h.index]);if(8&g){const E=h.child;if(null!==E)return O1(l,E);{const N=l[h.index];return Rn(N)?I1(-1,N):Xe(N)}}if(32&g)return w1(h,l)()||Xe(l[h.index]);{const E=Z0(l,h);return null!==E?Array.isArray(E)?E[0]:O1(Dc(l[16]),E):O1(l,h.next)}}return null}function Z0(l,h){return null!==h?l[16][6].projection[h.projection]:null}function I1(l,h){const g=10+l+1;if(g<h.length){const E=h[g],N=E[1].firstChild;if(null!==N)return O1(E,N)}return h[7]}function k1(l,h,g,E,N,Z,ge){for(;null!=g;){const Ie=E[g.index],Ye=g.type;if(ge&&0===h&&(Ie&&ls(Xe(Ie),E),g.flags|=4),64!=(64&g.flags))if(8&Ye)k1(l,h,g.child,E,N,Z,!1),ml(h,l,N,Ie,Z);else if(32&Ye){const ut=w1(g,E);let Tt;for(;Tt=ut();)ml(h,l,N,Tt,Z);ml(h,l,N,Ie,Z)}else 16&Ye?Ic(l,h,E,g,N,Z):ml(h,l,N,Ie,Z);g=ge?g.projectionNext:g.next}}function Wl(l,h,g,E,N,Z){k1(g,E,l.firstChild,h,N,Z,!1)}function Ic(l,h,g,E,N,Z){const ge=g[16],Ye=ge[6].projection[E.projection];if(Array.isArray(Ye))for(let ut=0;ut<Ye.length;ut++)ml(h,l,N,Ye[ut],Z);else k1(l,h,Ye,ge[3],N,Z,!0)}function Gh(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 Wh(l,h,g){let E=l.length;for(;;){const N=l.indexOf(h,g);if(-1===N)return N;if(0===N||l.charCodeAt(N-1)<=32){const Z=h.length;if(N+Z===E||l.charCodeAt(N+Z)<=32)return N}g=N+1}}const Yh="ng-template";function Er(l,h,g){let E=0;for(;E<l.length;){let N=l[E++];if(g&&"class"===N){if(N=l[E],-1!==Wh(N.toLowerCase(),h,0))return!0}else if(1===N){for(;E<l.length&&"string"==typeof(N=l[E++]);)if(N.toLowerCase()===h)return!0;return!1}}return!1}function Y0(l){return 4===l.type&&l.value!==Yh}function jh(l,h,g){return h===(4!==l.type||g?l.value:Yh)}function P1(l,h,g){let E=4;const N=l.attrs||[],Z=function(l){for(let h=0;h<l.length;h++)if(Pl(l[h]))return h;return l.length}(N);let ge=!1;for(let Ie=0;Ie<h.length;Ie++){const Ye=h[Ie];if("number"!=typeof Ye){if(!ge)if(4&E){if(E=2|1&E,""!==Ye&&!jh(l,Ye,g)||""===Ye&&1===h.length){if(Tr(E))return!1;ge=!0}}else{const ut=8&E?Ye:h[++Ie];if(8&E&&null!==l.attrs){if(!Er(l.attrs,ut,g)){if(Tr(E))return!1;ge=!0}continue}const Gt=qh(8&E?"class":Ye,N,Y0(l),g);if(-1===Gt){if(Tr(E))return!1;ge=!0;continue}if(""!==ut){let oi;oi=Gt>Z?"":N[Gt+1].toLowerCase();const gi=8&E?oi:null;if(gi&&-1!==Wh(gi,ut,0)||2&E&&ut!==oi){if(Tr(E))return!1;ge=!0}}}}else{if(!ge&&!Tr(E)&&!Tr(Ye))return!1;if(ge&&Tr(Ye))continue;ge=!1,E=Ye|1&E}}return Tr(E)||ge}function Tr(l){return 0==(1&l)}function qh(l,h,g,E){if(null===h)return-1;let N=0;if(E||!g){let Z=!1;for(;N<h.length;){const ge=h[N];if(ge===l)return N;if(3===ge||6===ge)Z=!0;else{if(1===ge||2===ge){let Ie=h[++N];for(;"string"==typeof Ie;)Ie=h[++N];continue}if(4===ge)break;if(0===ge){N+=4;continue}}N+=Z?1:2}return-1}return function(l,h){let g=l.indexOf(4);if(g>-1)for(g++;g<l.length;){const E=l[g];if("number"==typeof E)return-1;if(E===h)return g;g++}return-1}(h,l)}function Yo(l,h,g=!1){for(let E=0;E<h.length;E++)if(P1(l,h[E],g))return!0;return!1}function kc(l,h){e:for(let g=0;g<h.length;g++){const E=h[g];if(l.length===E.length){for(let N=0;N<l.length;N++)if(l[N]!==E[N])continue e;return!0}}return!1}function F1(l,h){return l?":not("+h.trim()+")":h}function Rf(l){let h=l[0],g=1,E=2,N="",Z=!1;for(;g<l.length;){let ge=l[g];if("string"==typeof ge)if(2&E){const Ie=l[++g];N+="["+ge+(Ie.length>0?'="'+Ie+'"':"")+"]"}else 8&E?N+="."+ge:4&E&&(N+=" "+ge);else""!==N&&!Tr(ge)&&(h+=F1(Z,N),N=""),E=ge,Z=Z||!Tr(E);g++}return""!==N&&(h+=F1(Z,N)),h}const Sn={};function B1(l){H1(Nn(),ki(),Yn()+l,kt())}function H1(l,h,g,E){if(!E)if(3==(3&h[2])){const Z=l.preOrderCheckHooks;null!==Z&&Wn(h,Z,g)}else{const Z=l.preOrderHooks;null!==Z&&ps(h,Z,0,g)}_r(g)}function z1(l,h){return l<<17|h<<2}function Es(l){return l>>17&32767}function Xh(l){return 2|l}function Xs(l){return(131068&l)>>2}function Jn(l,h){return-131069&l|h<<2}function U1(l){return 1|l}function rd(l,h){const g=l.contentQueries;if(null!==g)for(let E=0;E<g.length;E+=2){const N=g[E],Z=g[E+1];if(-1!==Z){const ge=l.data[Z];vi(N),ge.contentQueries(2,h[Z],Z)}}}function Nc(l,h,g,E,N,Z,ge,Ie,Ye,ut){const Tt=h.blueprint.slice();return Tt[0]=N,Tt[2]=140|E,vn(Tt),Tt[3]=Tt[15]=l,Tt[8]=g,Tt[10]=ge||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]=Z,Tt[16]=2==h.type?l[16]:Tt,Tt}function ql(l,h,g,E,N){let Z=l.data[h];if(null===Z)Z=function(l,h,g,E,N){const Z=Ys(),ge=re(),Ye=l.data[h]=function(l,h,g,E,N,Z){return{type:g,index:E,insertBeforeIndex:null,injectorIndex:h?h.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:N,attrs:Z,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,ge?Z:Z&&Z.parent,g,h,E,N);return null===l.firstChild&&(l.firstChild=Ye),null!==Z&&(ge?null==Z.child&&null!==Ye.parent&&(Z.child=Ye):null===Z.next&&(Z.next=Ye)),Ye}(l,h,g,E,N),Qi.lFrame.inI18n&&(Z.flags|=64);else if(64&Z.type){Z.type=g,Z.value=E,Z.attrs=N;const ge=function(){const l=Qi.lFrame,h=l.currentTNode;return l.isParent?h:h.parent}();Z.injectorIndex=null===ge?-1:ge.injectorIndex}return xt(Z,!0),Z}function Fc(l,h,g,E){if(0===g)return-1;const N=h.length;for(let Z=0;Z<g;Z++)h.push(E),l.blueprint.push(E),l.data.push(null);return N}function Ko(l,h,g){ji(h);try{const E=l.viewQuery;null!==E&&m2(1,E,g);const N=l.template;null!==N&&ad(l,h,N,1,g),l.firstCreatePass&&(l.firstCreatePass=!1),l.staticContentQueries&&rd(l,h),l.staticViewQueries&&m2(2,l.viewQuery,g);const Z=l.components;null!==Z&&function(l,h){for(let g=0;g<h.length;g++)a6(l,h[g])}(h,Z)}catch(E){throw l.firstCreatePass&&(l.incompleteFirstPass=!0,l.firstCreatePass=!1),E}finally{h[2]&=-5,wr()}}function fo(l,h,g,E){const N=h[2];if(256==(256&N))return;ji(h);const Z=kt();try{vn(h),function(l){Qi.lFrame.bindingIndex=l}(l.bindingStartIndex),null!==g&&ad(l,h,g,2,E);const ge=3==(3&N);if(!Z)if(ge){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=A1(l);null!==h;h=R0(h)){if(!h[2])continue;const g=h[9];for(let E=0;E<g.length;E++){const N=g[E],Z=N[3];0==(1024&N[2])&&wn(Z,1),N[2]|=1024}}}(h),function(l){for(let h=A1(l);null!==h;h=R0(h))for(let g=10;g<h.length;g++){const E=h[g],N=E[1];Wt(E)&&fo(N,E,N.template,E[8])}}(h),null!==l.contentQueries&&rd(l,h),!Z)if(ge){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 E=0;E<g.length;E++){const N=g[E];if(N<0)_r(~N);else{const Z=N,ge=g[++E],Ie=g[++E];tt(ge,Z),Ie(2,h[Z])}}}finally{_r(-1)}}(l,h);const Ie=l.components;null!==Ie&&function(l,h){for(let g=0;g<h.length;g++)xd(l,h[g])}(h,Ie);const Ye=l.viewQuery;if(null!==Ye&&m2(2,Ye,E),!Z)if(ge){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),Z||(h[2]&=-73),1024&h[2]&&(h[2]&=-1025,wn(h[3],-1))}finally{wr()}}function Bc(l,h,g,E){const N=h[10],Z=!kt(),ge=bt(h);try{Z&&!ge&&N.begin&&N.begin(),ge&&Ko(l,h,E),fo(l,h,g,E)}finally{Z&&!ge&&N.end&&N.end()}}function ad(l,h,g,E,N){const Z=Yn(),ge=2&E;try{_r(-1),ge&&h.length>20&&H1(l,h,20,kt()),g(E,N)}finally{_r(Z)}}function sd(l,h,g){if(xr(h)){const N=h.directiveEnd;for(let Z=h.directiveStart;Z<N;Z++){const ge=l.data[Z];ge.contentQueries&&ge.contentQueries(1,g[Z],Z)}}}function l2(l,h,g){!Lr()||(function(l,h,g,E){const N=g.directiveStart,Z=g.directiveEnd;l.firstCreatePass||Je(g,h),ls(E,h);const ge=g.initialInputs;for(let Ie=N;Ie<Z;Ie++){const Ye=l.data[Ie],ut=sn(Ye);ut&&yd(h,g,Ye);const Tt=qa(h,l,Ie,g);ls(Tt,h),null!==ge&&t6(0,Ie-N,Tt,Ye,0,ge),ut&&(ei(g.index,h)[8]=Tt)}}(l,h,g,Qe(g,h)),128==(128&g.flags)&&function(l,h,g){const E=g.directiveStart,N=g.directiveEnd,ge=g.index,Ie=Qi.lFrame.currentDirectiveIndex;try{_r(ge);for(let Ye=E;Ye<N;Ye++){const ut=l.data[Ye],Tt=h[Ye];It(Ye),(null!==ut.hostBindings||0!==ut.hostVars||null!==ut.hostAttrs)&&md(ut,Tt)}}finally{_r(-1),It(Ie)}}(l,h,g))}function c2(l,h,g=Qe){const E=h.localNames;if(null!==E){let N=h.index+1;for(let Z=0;Z<E.length;Z+=2){const ge=E[Z+1],Ie=-1===ge?g(h,l):l[ge];l[N++]=Ie}}}function od(l){const h=l.tView;return null===h||h.incompleteFirstPass?l.tView=Hc(1,null,l.template,l.decls,l.vars,l.directiveDefs,l.pipeDefs,l.viewQuery,l.schemas,l.consts):h}function Hc(l,h,g,E,N,Z,ge,Ie,Ye,ut){const Tt=20+E,Gt=Tt+N,oi=function(l,h){const g=[];for(let E=0;E<h;E++)g.push(E<l?null:Sn);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 Z?Z():Z,pipeRegistry:"function"==typeof ge?ge():ge,firstChild:null,schemas:Ye,consts:gi,incompleteFirstPass:!1}}function hd(l,h,g,E){const N=g2(h);null===g?N.push(E):(N.push(g),l.firstCreatePass&&Md(l).push(E,N.length-1))}function dd(l,h,g){for(let E in l)if(l.hasOwnProperty(E)){const N=l[E];(g=null===g?{}:g).hasOwnProperty(E)?g[E].push(h,N):g[E]=[h,N]}return g}function Ts(l,h,g,E,N,Z,ge,Ie){const Ye=Qe(h,g);let Tt,ut=h.inputs;!Ie&&null!=ut&&(Tt=ut[E])?(Ed(l,g,Tt,E,N),wi(h)&&function(l,h){const g=ei(h,l);16&g[2]||(g[2]|=64)}(g,h.index)):3&h.type&&(E=function(l){return"class"===l?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l}(E),N=null!=ge?ge(N,h.value||"",E):N,Zn(Z)?Z.setProperty(Ye,E,N):el(E)||(Ye.setProperty?Ye.setProperty(E,N):Ye[E]=N))}function h2(l,h,g,E){let N=!1;if(Lr()){const Z=function(l,h,g){const E=l.directiveRegistry;let N=null;if(E)for(let Z=0;Z<E.length;Z++){const ge=E[Z];Yo(g,ge.selectors,!1)&&(N||(N=[]),ii(Je(g,h),l,ge.type),sn(ge)?(gd(l,g),N.unshift(ge)):N.push(ge))}return N}(l,h,g),ge=null===E?null:{"":-1};if(null!==Z){N=!0,_d(g,l.data.length,Z.length);for(let Tt=0;Tt<Z.length;Tt++){const Gt=Z[Tt];Gt.providersResolver&&Gt.providersResolver(Gt)}let Ie=!1,Ye=!1,ut=Fc(l,h,Z.length,null);for(let Tt=0;Tt<Z.length;Tt++){const Gt=Z[Tt];g.mergedAttrs=_o(g.mergedAttrs,Gt.hostAttrs),vd(l,g,h,ut,Gt),e6(ut,Gt,ge),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 E=h.directiveEnd,N=l.data,Z=h.attrs,ge=[];let Ie=null,Ye=null;for(let ut=h.directiveStart;ut<E;ut++){const Tt=N[ut],Gt=Tt.inputs,oi=null===Z||Y0(h)?null:i6(Gt,Z);ge.push(oi),Ie=dd(Gt,ut,Ie),Ye=dd(Tt.outputs,ut,Ye)}null!==Ie&&(Ie.hasOwnProperty("class")&&(h.flags|=16),Ie.hasOwnProperty("style")&&(h.flags|=32)),h.initialInputs=ge,h.inputs=Ie,h.outputs=Ye}(l,g)}ge&&function(l,h,g){if(h){const E=l.localNames=[];for(let N=0;N<h.length;N+=2){const Z=g[h[N+1]];if(null==Z)throw new w("301",`Export of name '${h[N+1]}' not found!`);E.push(h[N],Z)}}}(g,E,ge)}return g.mergedAttrs=_o(g.mergedAttrs,g.attrs),N}function d2(l,h,g,E,N,Z){const ge=Z.hostBindings;if(ge){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(E,N,ge)}}function md(l,h){null!==l.hostBindings&&l.hostBindings(1,h)}function gd(l,h){h.flags|=2,(l.components||(l.components=[])).push(h.index)}function e6(l,h,g){if(g){if(h.exportAs)for(let E=0;E<h.exportAs.length;E++)g[h.exportAs[E]]=l;sn(h)&&(g[""]=l)}}function _d(l,h,g){l.flags|=1,l.directiveStart=h,l.directiveEnd=h+g,l.providerIndexes=h}function vd(l,h,g,E,N){l.data[E]=N;const Z=N.factory||(N.factory=Pr(N.type)),ge=new vs(Z,sn(N),null);l.blueprint[E]=ge,g[E]=ge,d2(l,h,0,E,Fc(l,g,N.hostVars,Sn),N)}function yd(l,h,g){const E=Qe(h,l),N=od(g),Z=l[10],ge=Y1(l,Nc(l,N,null,g.onPush?64:16,E,h,Z,Z.createRenderer(E,g),null,null));l[h.index]=ge}function po(l,h,g,E,N,Z){const ge=Qe(l,h);!function(l,h,g,E,N,Z,ge){if(null==Z)Zn(l)?l.removeAttribute(h,N,g):h.removeAttribute(N);else{const Ie=null==ge?W(Z):ge(Z,E||"",N);Zn(l)?l.setAttribute(h,N,Ie,g):g?h.setAttributeNS(g,N,Ie):h.setAttribute(N,Ie)}}(h[11],ge,Z,l.value,g,E,N)}function t6(l,h,g,E,N,Z){const ge=Z[h];if(null!==ge){const Ie=E.setInput;for(let Ye=0;Ye<ge.length;){const ut=ge[Ye++],Tt=ge[Ye++],Gt=ge[Ye++];null!==Ie?E.setInput(g,Gt,ut,Tt):g[Tt]=Gt}}}function i6(l,h){let g=null,E=0;for(;E<h.length;){const N=h[E];if(0!==N)if(5!==N){if("number"==typeof N)break;l.hasOwnProperty(N)&&(null===g&&(g=[]),g.push(N,l[N],h[E+1])),E+=2}else E+=2;else E+=4}return g}function bd(l,h,g,E){return new Array(l,!0,!1,h,null,0,E,g,null,null)}function xd(l,h){const g=ei(h,l);if(Wt(g)){const E=g[1];80&g[2]?fo(E,g,E.template,g[8]):g[5]>0&&u2(g)}}function u2(l){for(let E=A1(l);null!==E;E=R0(E))for(let N=10;N<E.length;N++){const Z=E[N];if(1024&Z[2]){const ge=Z[1];fo(ge,Z,ge.template,Z[8])}else Z[5]>0&&u2(Z)}const g=l[1].components;if(null!==g)for(let E=0;E<g.length;E++){const N=ei(g[E],l);Wt(N)&&N[5]>0&&u2(N)}}function a6(l,h){const g=ei(h,l),E=g[1];(function(l,h){for(let g=h.length;g<l.blueprint.length;g++)h.push(l.blueprint[g])})(E,g),Ko(E,g,g[8])}function Y1(l,h){return l[13]?l[14][4]=h:l[13]=h,l[14]=h,h}function j1(l){for(;l;){l[2]|=64;const h=Dc(l);if(Sr(l)&&!h)return l;l=h}return null}function p2(l,h,g){const E=h[10];E.begin&&E.begin();try{fo(l,h,l.template,g)}catch(N){throw Ad(h,N),N}finally{E.end&&E.end()}}function Cd(l){!function(l){for(let h=0;h<l.components.length;h++){const g=l.components[h],E=C1(g),N=E[1];Bc(N,E,N.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 Md(l){return l.cleanup||(l.cleanup=[])}function wd(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 Ad(l,h){const g=l[9],E=g?g.get(Sc,null):null;E&&E.handleError(h)}function Ed(l,h,g,E,N){for(let Z=0;Z<g.length;){const ge=g[Z++],Ie=g[Z++],Ye=h[ge],ut=l.data[ge];null!==ut.setInput?ut.setInput(Ye,N,E,Ie):Ye[Ie]=N}}function Ao(l,h,g){const E=ae(h,l);!function(l,h,g){Zn(l)?l.setValue(h,g):h.textContent=g}(l[11],E,g)}function q1(l,h,g){let E=g?l.styles:null,N=g?l.classes:null,Z=0;if(null!==h)for(let ge=0;ge<h.length;ge++){const Ie=h[ge];"number"==typeof Ie?Z=Ie:1==Z?N=o(N,Ie):2==Z&&(E=o(E,Ie+": "+h[++ge]+";"))}g?l.styles=E:l.stylesWithoutHost=E,g?l.classes=N:l.classesWithoutHost=N}const _2=new Gr("INJECTOR",-1);class Td{get(h,g=Ha){if(g===Ha){const E=new Error(`NullInjectorError: No provider for ${R(h)}!`);throw E.name="NullInjectorError",E}return g}}const v2=new Gr("Set Injector scope."),Uc={},f6={};let y2;function Sd(){return void 0===y2&&(y2=new Td),y2}function b2(l,h=null,g=null,E){const N=Dd(l,h,g,E);return N._resolveInjectorDefTypes(),N}function Dd(l,h=null,g=null,E){return new p6(l,g,h||Sd(),E)}class p6{constructor(h,g,E,N=null){this.parent=E,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const Z=[];g&&Hs(g,Ie=>this.processProvider(Ie,h,g)),Hs([h],Ie=>this.processInjectorType(Ie,[],Z)),this.records.set(_2,Kl(void 0,this));const ge=this.records.get(v2);this.scope=null!=ge?ge.value:null,this.source=N||("object"==typeof h?null:R(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=Ha,E=ue.Default){this.assertNotDestroyed();const N=ll(this),Z=Y(void 0);try{if(!(E&ue.SkipSelf)){let Ie=this.records.get(h);if(void 0===Ie){const Ye=("function"==typeof(l=h)||"object"==typeof l&&l instanceof Gr)&&q(h);Ie=Ye&&this.injectableDefInScope(Ye)?Kl(x2(h),Uc):null,this.records.set(h,Ie)}if(null!=Ie)return this.hydrate(h,Ie)}return(E&ue.Self?Sd():this.parent).get(h,g=E&ue.Optional&&g===Ha?null:g)}catch(ge){if("NullInjectorError"===ge.name){if((ge[zs]=ge[zs]||[]).unshift(R(h)),N)throw ge;return function(l,h,g,E){const N=l[zs];throw h[Hl]&&N.unshift(h[Hl]),l.message=function(l,h,g,E=null){l=l&&"\n"===l.charAt(0)&&"\u0275"==l.charAt(1)?l.substr(2):l;let N=R(h);if(Array.isArray(h))N=h.map(R).join(" -> ");else if("object"==typeof h){let Z=[];for(let ge in h)if(h.hasOwnProperty(ge)){let Ie=h[ge];Z.push(ge+":"+("string"==typeof Ie?JSON.stringify(Ie):R(Ie)))}N=`{${Z.join(", ")}}`}return`${g}${E?"("+E+")":""}[${N}]: ${l.replace(f1,"\n ")}`}("\n"+l.message,N,g,E),l.ngTokenPath=N,l[zs]=null,l}(ge,h,"R3InjectorError",this.source)}throw ge}finally{Y(Z),ll(N)}var l}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(h=>this.get(h))}toString(){const h=[];return this.records.forEach((E,N)=>h.push(R(N))),`R3Injector[${h.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(h,g,E){if(!(h=P(h)))return!1;let N=le(h);const Z=null==N&&h.ngModule||void 0,ge=void 0===Z?h:Z,Ie=-1!==E.indexOf(ge);if(void 0!==Z&&(N=le(Z)),null==N)return!1;if(null!=N.imports&&!Ie){let Tt;E.push(ge);try{Hs(N.imports,Gt=>{this.processInjectorType(Gt,g,E)&&(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];Hs(gi,Li=>this.processProvider(Li,oi,gi||ti))}}this.injectorDefTypes.add(ge);const Ye=Pr(ge)||(()=>new ge);this.records.set(ge,Kl(Ye,Uc));const ut=N.providers;if(null!=ut&&!Ie){const Tt=h;Hs(ut,Gt=>this.processProvider(Gt,Tt,ut))}return void 0!==Z&&void 0!==h.providers}processProvider(h,g,E){let N=Fr(h=P(h))?h:P(h&&h.provide);const Z=(l=h,Od(l)?Kl(void 0,l.useValue):Kl(Ld(l),Uc));var l;if(Fr(h)||!0!==h.multi)this.records.get(N);else{let ge=this.records.get(N);ge||(ge=Kl(void 0,Uc,!0),ge.factory=()=>p1(ge.multi),this.records.set(N,ge)),N=h,ge.multi.push(h)}this.records.set(N,Z)}hydrate(h,g){return g.value===Uc&&(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=P(h.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function x2(l){const h=q(l),g=null!==h?h.factory:Pr(l);if(null!==g)return g;if(l instanceof Gr)throw new Error(`Token ${R(l)} is missing a \u0275prov definition.`);if(l instanceof Function)return function(l){const h=l.length;if(h>0){const E=qs(h,"?");throw new Error(`Can't resolve all parameters for ${R(l)}: (${E.join(", ")}).`)}const g=function(l){const h=l&&(l[We]||l[Ne]);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 Ld(l,h,g){let E;if(Fr(l)){const N=P(l);return Pr(N)||x2(N)}if(Od(l))E=()=>P(l.useValue);else if(function(l){return!(!l||!l.useFactory)}(l))E=()=>l.useFactory(...p1(l.deps||[]));else if(function(l){return!(!l||!l.useExisting)}(l))E=()=>Ia(P(l.useExisting));else{const N=P(l&&(l.useClass||l.provide));if(!function(l){return!!l.deps}(l))return Pr(N)||x2(N);E=()=>new N(...p1(l.deps))}return E}function Kl(l,h,g=!1){return{factory:l,value:h,multi:g?[]:void 0}}function Od(l){return null!==l&&"object"==typeof l&&xc in l}function Fr(l){return"function"==typeof l}let Zs=(()=>{class l{static create(g,E){var N;if(Array.isArray(g))return b2({name:""},E,g,"");{const Z=null!==(N=g.name)&&void 0!==N?N:"";return b2({name:Z},g.parent,g.providers,Z)}}}return l.THROW_IF_NOT_FOUND=Ha,l.NULL=new Td,l.\u0275prov=xe({token:l,providedIn:"any",factory:()=>Ia(_2)}),l.__NG_ELEMENT_ID__=-1,l})();function S6(l,h){ca(C1(l)[1],cr())}function w2(l){let h=function(l){return Object.getPrototypeOf(l.prototype).constructor}(l.type),g=!0;const E=[l];for(;h;){let N;if(sn(l))N=h.\u0275cmp||h.\u0275dir;else{if(h.\u0275cmp)throw new Error("Directives cannot inherit Components");N=h.\u0275dir}if(N){if(g){E.push(N);const ge=l;ge.inputs=A2(l.inputs),ge.declaredInputs=A2(l.declaredInputs),ge.outputs=A2(l.outputs);const Ie=N.hostBindings;Ie&&I6(l,Ie);const Ye=N.viewQuery,ut=N.contentQueries;if(Ye&&L6(l,Ye),ut&&O6(l,ut),c(l.inputs,N.inputs),c(l.declaredInputs,N.declaredInputs),c(l.outputs,N.outputs),sn(N)&&N.data.animation){const Tt=l.data;Tt.animation=(Tt.animation||[]).concat(N.data.animation)}}const Z=N.features;if(Z)for(let ge=0;ge<Z.length;ge++){const Ie=Z[ge];Ie&&Ie.ngInherit&&Ie(l),Ie===w2&&(g=!1)}}h=Object.getPrototypeOf(h)}!function(l){let h=0,g=null;for(let E=l.length-1;E>=0;E--){const N=l[E];N.hostVars=h+=N.hostVars,N.hostAttrs=_o(N.hostAttrs,g=_o(g,N.hostAttrs))}}(E)}function A2(l){return l===jt?{}:l===ti?[]:l}function L6(l,h){const g=l.viewQuery;l.viewQuery=g?(E,N)=>{h(E,N),g(E,N)}:h}function O6(l,h){const g=l.contentQueries;l.contentQueries=g?(E,N,Z)=>{h(E,N,Z),g(E,N,Z)}:h}function I6(l,h){const g=l.hostBindings;l.hostBindings=g?(E,N)=>{h(E,N),g(E,N)}:h}let Q1=null;function Ql(){if(!Q1){const l=Nt.Symbol;if(l&&l.iterator)Q1=l.iterator;else{const h=Object.getOwnPropertyNames(Map.prototype);for(let g=0;g<h.length;++g){const E=h[g];"entries"!==E&&"size"!==E&&Map.prototype[E]===Map.prototype.entries&&(Q1=E)}}}return Q1}function Zc(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 mo(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,E){const N=hs(l,h,g);return hs(l,h+1,E)||N}function T2(l,h,g,E){const N=ki();return hs(N,Zi(),h)&&(Nn(),po(Bi(),N,l,h,g,E)),T2}function Xl(l,h,g,E){return hs(l,Zi(),g)?h+W(g)+E:Sn}function tc(l,h,g,E,N,Z,ge,Ie,Ye,ut){const Gt=function(l,h,g,E,N,Z){const ge=Cl(l,h,g,E);return Cl(l,h+2,N,Z)||ge}(l,fi(),g,N,ge,Ye);return en(4),Gt?h+W(g)+E+W(N)+Z+W(ge)+Ie+W(Ye)+ut:Sn}function Xd(l,h,g,E,N,Z,ge,Ie){const Ye=ki(),ut=Nn(),Tt=l+20,Gt=ut.firstCreatePass?function(l,h,g,E,N,Z,ge,Ie,Ye){const ut=h.consts,Tt=ql(h,l,4,ge||null,zi(ut,Ie));h2(h,g,Tt,zi(ut,Ye)),ca(h,Tt);const Gt=Tt.tViews=Hc(2,Tt,E,N,Z,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,E,N,Z,ge):ut.data[Tt];xt(Gt,!1);const oi=Ye[11].createComment("");Oc(ut,Ye,oi,Gt),ls(oi,Ye),Y1(Ye,Ye[Tt]=bd(oi,Ye,oi,Gt)),Fi(Gt)&&l2(ut,Ye,Gt),null!=ge&&c2(Ye,Gt,Ie)}function $d(l){return Ct(Qi.lFrame.contextLView,20+l)}function Gc(l,h=ue.Default){const g=ki();return null===g?Ia(l,h):xn(cr(),g,P(l),h)}function du(){throw new Error("invalid")}function I2(l,h,g){const E=ki();return hs(E,Zi(),h)&&Ts(Nn(),Bi(),E,l,h,E[11],g,!1),I2}function k2(l,h,g,E,N){const ge=N?"class":"style";Ed(l,g,h.inputs[ge],ge,E)}function P2(l,h,g,E){const N=ki(),Z=Nn(),ge=20+l,Ie=N[11],Ye=N[ge]=E1(Ie,h,Qi.lFrame.currentNamespace),ut=Z.firstCreatePass?function(l,h,g,E,N,Z,ge){const Ie=h.consts,ut=ql(h,l,2,N,zi(Ie,Z));return h2(h,g,ut,zi(Ie,ge)),null!==ut.attrs&&q1(ut,ut.attrs,!1),null!==ut.mergedAttrs&&q1(ut,ut.mergedAttrs,!0),null!==h.queries&&h.queries.elementStart(h,ut),ut}(ge,Z,N,0,h,g,E):Z.data[ge];xt(ut,!0);const Tt=ut.mergedAttrs;null!==Tt&&ko(Ie,Ye,Tt);const Gt=ut.classes;null!==Gt&&W0(Ie,Ye,Gt);const oi=ut.styles;null!==oi&&Gh(Ie,Ye,oi),64!=(64&ut.flags)&&Oc(Z,N,Ye,ut),0===Qi.lFrame.elementDepthCount&&ls(Ye,N),Qi.lFrame.elementDepthCount++,Fi(ut)&&(l2(Z,N,ut),sd(Z,ut,N)),null!==E&&c2(N,ut)}function $1(){let l=cr();re()?pe():(l=l.parent,xt(l,!1));const h=l;Qi.lFrame.elementDepthCount--;const g=Nn();g.firstCreatePass&&(ca(g,l),xr(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 R2(l,h,g,E){P2(l,h,g,E),$1()}function N2(l,h,g){const E=ki(),N=Nn(),Z=l+20,ge=N.firstCreatePass?function(l,h,g,E,N){const Z=h.consts,ge=zi(Z,E),Ie=ql(h,l,8,"ng-container",ge);return null!==ge&&q1(Ie,ge,!0),h2(h,g,Ie,zi(Z,N)),null!==h.queries&&h.queries.elementStart(h,Ie),Ie}(Z,N,E,h,g):N.data[Z];xt(ge,!0);const Ie=E[Z]=E[11].createComment("");Oc(N,E,Ie,ge),ls(Ie,E),Fi(ge)&&(l2(N,E,ge),sd(N,ge,E)),null!=g&&c2(E,ge)}function F2(){let l=cr();const h=Nn();re()?pe():(l=l.parent,xt(l,!1)),h.firstCreatePass&&(ca(h,l),xr(l)&&h.queries.elementEnd(l))}function uu(l,h,g){N2(l,h,g),F2()}function fu(){return ki()}function B2(l){return!!l&&"function"==typeof l.then}function pu(l){return!!l&&"function"==typeof l.subscribe}const mu=pu;function e0(l,h,g,E){const N=ki(),Z=Nn(),ge=cr();return Dn(Z,N,N[11],ge,l,h,!!g,E),e0}function H2(l,h){const g=cr(),E=ki(),N=Nn();return Dn(N,E,wd(zt(N.data),g,E),g,l,h,!1),H2}function Dn(l,h,g,E,N,Z,ge,Ie){const Ye=Fi(E),Tt=l.firstCreatePass&&Md(l),Gt=h[8],oi=g2(h);let gi=!0;if(3&E.type||Ie){const nn=Qe(E,h),mn=Ie?Ie(nn):nn,Ni=oi.length,En=Ie?nr=>Ie(Xe(nr[E.index])):E.index;if(Zn(g)){let nr=null;if(!Ie&&Ye&&(nr=function(l,h,g,E){const N=l.cleanup;if(null!=N)for(let Z=0;Z<N.length-1;Z+=2){const ge=N[Z];if(ge===g&&N[Z+1]===E){const Ie=h[7],Ye=N[Z+2];return Ie.length>Ye?Ie[Ye]:null}"string"==typeof ge&&(Z+=2)}return null}(l,h,N,E.index)),null!==nr)(nr.__ngLastListenerFn__||nr).__ngNextListenerFn__=Z,nr.__ngLastListenerFn__=Z,gi=!1;else{Z=t0(E,h,Gt,Z,!1);const Hr=g.listen(mn,N,Z);oi.push(Z,Hr),Tt&&Tt.push(N,En,Ni,Ni+1)}}else Z=t0(E,h,Gt,Z,!0),mn.addEventListener(N,Z,ge),oi.push(Z),Tt&&Tt.push(N,En,Ni,ge)}else Z=t0(E,h,Gt,Z,!1);const Li=E.outputs;let Ji;if(gi&&null!==Li&&(Ji=Li[N])){const nn=Ji.length;if(nn)for(let mn=0;mn<nn;mn+=2){const Oo=h[Ji[mn]][Ji[mn+1]].subscribe(Z),hh=oi.length;oi.push(Z,Oo),Tt&&Tt.push(N,E.index,hh,-(hh+1))}}}function Eo(l,h,g,E){try{return!1!==g(E)}catch(N){return Ad(l,N),!1}}function t0(l,h,g,E,N){return function Z(ge){if(ge===Function)return E;const Ie=2&l.flags?ei(l.index,h):h;0==(32&h[2])&&j1(Ie);let Ye=Eo(h,0,E,ge),ut=Z.__ngNextListenerFn__;for(;ut;)Ye=Eo(h,0,ut,ge)&&Ye,ut=ut.__ngNextListenerFn__;return N&&!1===Ye&&(ge.preventDefault(),ge.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 Ss(l,h){let g=null;const E=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 N=0;N<h.length;N++){const Z=h[N];if("*"!==Z){if(null===E?Yo(l,Z,!0):kc(E,Z))return N}else g=N}return g}function gu(l){const h=ki()[16][6];if(!h.projection){const E=h.projection=qs(l?l.length:1,null),N=E.slice();let Z=h.child;for(;null!==Z;){const ge=l?Ss(Z,l):0;null!==ge&&(N[ge]?N[ge].projectionNext=Z:E[ge]=Z,N[ge]=Z),Z=Z.next}}}function _u(l,h=0,g){const E=ki(),N=Nn(),Z=ql(N,20+l,16,null,g||null);null===Z.projection&&(Z.projection=h),pe(),64!=(64&Z.flags)&&function(l,h,g){Ic(h[11],0,h,g,zh(l,g,h),_l(g.parent||h[6],g,h))}(N,E,Z)}function Wc(l,h,g){return yr(l,"",h,"",g),Wc}function yr(l,h,g,E,N){const Z=ki(),ge=Xl(Z,h,g,E);return ge!==Sn&&Ts(Nn(),Bi(),Z,l,ge,Z[11],N,!1),yr}function Xa(l,h,g,E,N){const Z=l[g+1],ge=null===h;let Ie=E?Es(Z):Xs(Z),Ye=!1;for(;0!==Ie&&(!1===Ye||ge);){const Tt=l[Ie+1];xu(l[Ie],h)&&(Ye=!0,l[Ie+1]=E?U1(Tt):Xh(Tt)),Ie=E?Es(Tt):Xs(Tt)}Ye&&(l[g+1]=E?Xh(Z):U1(Z))}function xu(l,h){return null===l||null==h||(Array.isArray(l)?l[1]:l)===h||!(!Array.isArray(l)||"string"!=typeof h)&&sl(l,h)>=0}const tr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Gs(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 Ls(l,h,g,!1),El}function sc(l,h){return Ls(l,h,null,!0),sc}function n0(l){Os(ms,ts,l,!0)}function ts(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,Gs(h),!0)}function Ls(l,h,g,E){const N=ki(),Z=Nn(),ge=en(2);Z.firstUpdatePass&&W2(Z,l,ge,E),h!==Sn&&hs(N,ge,h)&&q2(Z,Z.data[Yn()],N,N[11],l,N[ge+1]=function(l,h){return null==l||("string"==typeof h?l+=h:"object"==typeof l&&(l=R(Mo(l)))),l}(h,g),E,ge)}function Os(l,h,g,E){const N=Nn(),Z=en(2);N.firstUpdatePass&&W2(N,null,Z,E);const ge=ki();if(g!==Sn&&hs(ge,Z,g)){const Ie=N.data[Yn()];if(jr(Ie,E)&&!G2(N,Z)){let Ye=E?Ie.classesWithoutHost:Ie.stylesWithoutHost;null!==Ye&&(g=o(Ye,g||"")),k2(N,Ie,ge,g,E)}else!function(l,h,g,E,N,Z,ge,Ie){N===Sn&&(N=ti);let Ye=0,ut=0,Tt=0<N.length?N[0]:null,Gt=0<Z.length?Z[0]:null;for(;null!==Tt||null!==Gt;){const oi=Ye<N.length?N[Ye+1]:void 0,gi=ut<Z.length?Z[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,E,Li,Ji,ge,Ie),Tt=Ye<N.length?N[Ye]:null,Gt=ut<Z.length?Z[ut]:null}}(N,Ie,ge,ge[11],ge[Z+1],ge[Z+1]=function(l,h,g){if(null==g||""===g)return ti;const E=[],N=Mo(g);if(Array.isArray(N))for(let Z=0;Z<N.length;Z++)l(E,N[Z],!0);else if("object"==typeof N)for(const Z in N)N.hasOwnProperty(Z)&&l(E,Z,N[Z]);else"string"==typeof N&&h(E,N);return E}(l,h,g),E,Z)}}function G2(l,h){return h>=l.expandoStartIndex}function W2(l,h,g,E){const N=l.data;if(null===N[g+1]){const Z=N[Yn()],ge=G2(l,g);jr(Z,E)&&null===h&&!ge&&(h=!1),h=function(l,h,g,E){const N=zt(l);let Z=E?h.residualClasses:h.residualStyles;if(null===N)0===(E?h.classBindings:h.styleBindings)&&(g=So(g=jc(null,l,h,g,E),h.attrs,E),Z=null);else{const ge=h.directiveStylingLast;if(-1===ge||l[ge]!==N)if(g=jc(N,l,h,g,E),null===Z){let Ye=function(l,h,g){const E=g?h.classBindings:h.styleBindings;if(0!==Xs(E))return l[Es(E)]}(l,h,E);void 0!==Ye&&Array.isArray(Ye)&&(Ye=jc(null,l,h,Ye[1],E),Ye=So(Ye,h.attrs,E),function(l,h,g,E){l[Es(g?h.classBindings:h.styleBindings)]=E}(l,h,E,Ye))}else Z=function(l,h,g){let E;const N=h.directiveEnd;for(let Z=1+h.directiveStylingLast;Z<N;Z++)E=So(E,l[Z].hostAttrs,g);return So(E,h.attrs,g)}(l,h,E)}return void 0!==Z&&(E?h.residualClasses=Z:h.residualStyles=Z),g}(N,Z,h,E),function(l,h,g,E,N,Z){let ge=Z?h.classBindings:h.styleBindings,Ie=Es(ge),Ye=Xs(ge);l[E]=g;let Tt,ut=!1;if(Array.isArray(g)){const Gt=g;Tt=Gt[1],(null===Tt||sl(Gt,Tt)>0)&&(ut=!0)}else Tt=g;if(N)if(0!==Ye){const oi=Es(l[Ie+1]);l[E+1]=z1(oi,Ie),0!==oi&&(l[oi+1]=Jn(l[oi+1],E)),l[Ie+1]=function(l,h){return 131071&l|h<<17}(l[Ie+1],E)}else l[E+1]=z1(Ie,0),0!==Ie&&(l[Ie+1]=Jn(l[Ie+1],E)),Ie=E;else l[E+1]=z1(Ye,0),0===Ie?Ie=E:l[Ye+1]=Jn(l[Ye+1],E),Ye=E;ut&&(l[E+1]=Xh(l[E+1])),Xa(l,Tt,E,!0),Xa(l,Tt,E,!1),function(l,h,g,E,N){const Z=N?l.residualClasses:l.residualStyles;null!=Z&&"string"==typeof h&&sl(Z,h)>=0&&(g[E+1]=U1(g[E+1]))}(h,Tt,l,E,Z),ge=z1(Ie,Ye),Z?h.classBindings=ge:h.styleBindings=ge}(N,Z,h,g,ge,E)}}function jc(l,h,g,E,N){let Z=null;const ge=g.directiveEnd;let Ie=g.directiveStylingLast;for(-1===Ie?Ie=g.directiveStart:Ie++;Ie<ge&&(Z=h[Ie],E=So(E,Z.hostAttrs,N),Z!==l);)Ie++;return null!==l&&(g.directiveStylingLast=Ie),E}function So(l,h,g){const E=g?1:2;let N=-1;if(null!==h)for(let Z=0;Z<h.length;Z++){const ge=h[Z];"number"==typeof ge?N=ge:N===E&&(Array.isArray(l)||(l=void 0===l?[]:["",l]),ms(l,ge,!!g||h[++Z]))}return void 0===l?null:l}function q2(l,h,g,E,N,Z,ge,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,N,Xs(ut),ge):void 0)||(Q2(Z)||function(l){return 2==(2&l)}(ut)&&(Z=K2(Ye,null,g,N,Ie,ge)),function(l,h,g,E,N){const Z=Zn(l);if(h)N?Z?l.addClass(g,E):g.classList.add(E):Z?l.removeClass(g,E):g.classList.remove(E);else{let ge=-1===E.indexOf("-")?void 0:cs.DashCase;if(null==N)Z?l.removeStyle(g,E,ge):g.style.removeProperty(E);else{const Ie="string"==typeof N&&N.endsWith("!important");Ie&&(N=N.slice(0,-10),ge|=cs.Important),Z?l.setStyle(g,E,N,ge):g.style.setProperty(E,N,Ie?"important":"")}}}(E,ge,ae(Yn(),g),N,Z))}function K2(l,h,g,E,N,Z){const ge=null===h;let Ie;for(;N>0;){const Ye=l[N],ut=Array.isArray(Ye),Tt=ut?Ye[1]:Ye,Gt=null===Tt;let oi=g[N+1];oi===Sn&&(oi=Gt?ti:void 0);let gi=Gt?h1(oi,E):Tt===E?oi:void 0;if(ut&&!Q2(gi)&&(gi=h1(Ye,E)),Q2(gi)&&(Ie=gi,ge))return Ie;const Li=l[N+1];N=ge?Es(Li):Xs(Li)}if(null!==h){let Ye=Z?h.residualClasses:h.residualStyles;null!=Ye&&(Ie=h1(Ye,E))}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(),E=Nn(),N=l+20,Z=E.firstCreatePass?ql(E,N,1,h,null):E.data[N],ge=g[N]=function(l,h){return Zn(l)?l.createText(h):l.createTextNode(h)}(g[11],h);Oc(E,g,ge,Z),xt(Z,!1)}function qr(l){return Tl("",l,""),qr}function Tl(l,h,g){const E=ki(),N=Xl(E,l,h,g);return N!==Sn&&Ao(E,Yn(),N),Tl}function io(l,h,g,E,N){const Z=ki(),ge=function(l,h,g,E,N,Z){const Ie=Cl(l,fi(),g,N);return en(2),Ie?h+W(g)+E+W(N)+Z:Sn}(Z,l,h,g,E,N);return ge!==Sn&&Ao(Z,Yn(),ge),io}function X2(l,h,g,E,N,Z,ge,Ie,Ye){const ut=ki(),Tt=tc(ut,l,h,g,E,N,Z,ge,Ie,Ye);return Tt!==Sn&&Ao(ut,Yn(),Tt),X2}function o0(l,h,g){Os(ms,ts,Xl(ki(),l,h,g),!0)}function th(l,h,g){const E=ki();return hs(E,Zi(),h)&&Ts(Nn(),Bi(),E,l,h,E[11],g,!0),th}function Ru(l,h,g){const E=ki();if(hs(E,Zi(),h)){const Z=Nn(),ge=Bi();Ts(Z,ge,E,l,h,wd(zt(Z.data),ge,E),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)),E=l.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===E?1:5}];let lc={};function h0(l){const h=function(l){return l.toLowerCase().replace(/_/g,"-")}(l);let g=g4(h);if(g)return g;const E=h.split("-")[0];if(g=g4(E),g)return g;if("en"===E)return D3;throw new Error(`Missing locale data for the locale "${l}".`)}function Fu(l){return h0(l)[Mn.PluralCase]}function g4(l){return l in lc||(lc[l]=Nt.ng&&Nt.ng.common&&Nt.ng.common.locales&&Nt.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 d0="en-US";let nh=d0;function X3(l,h,g,E,N){if(l=P(l),Array.isArray(l))for(let Z=0;Z<l.length;Z++)X3(l[Z],h,g,E,N);else{const Z=Nn(),ge=ki();let Ie=Fr(l)?l:P(l.provide),Ye=Ld(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,N,Gc),Li=ep(Ie,h,N?Tt:Tt+oi,Gt);-1===Li?(ii(Je(ut,ge),Z,Ie),$3(Z,l,h.length),h.push(Ie),ut.directiveStart++,ut.directiveEnd++,N&&(ut.providerIndexes+=1048576),g.push(gi),ge.push(gi)):(g[Li]=gi,ge[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(N&&!nn||!N&&!Ji){ii(Je(ut,ge),Z,Ie);const mn=function(l,h,g,E,N){const Z=new vs(l,g,Gc);return Z.multi=[],Z.index=h,Z.componentProviders=0,zp(Z,N,E&&!g),Z}(N?C8:x8,g.length,N,E,Ye);!N&&nn&&(g[Li].providerFactory=mn),$3(Z,l,h.length,0),h.push(Ie),ut.directiveStart++,ut.directiveEnd++,N&&(ut.providerIndexes+=1048576),g.push(mn),ge.push(mn)}else $3(Z,l,gi>-1?gi:Li,zp(g[N?Li:gi],Ye,!N&&E));!N&&E&&nn&&g[Li].componentProviders++}}}function $3(l,h,g,E){const N=Fr(h),Z=function(l){return!!l.useClass}(h);if(N||Z){const Ye=(Z?P(h.useClass):h).prototype.ngOnDestroy;if(Ye){const ut=l.destroyHooks||(l.destroyHooks=[]);if(!N&&h.multi){const Tt=ut.indexOf(g);-1===Tt?ut.push(g,[E,Ye]):ut[Tt+1].push(E,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,E){for(let N=g;N<E;N++)if(h[N]===l)return N;return-1}function x8(l,h,g,E){return tp(this.multi,[])}function C8(l,h,g,E){const N=this.multi;let Z;if(this.providerFactory){const ge=this.providerFactory.componentProviders,Ie=qa(g,g[1],this.providerFactory.index,E);Z=Ie.slice(0,ge),tp(N,Z);for(let Ye=ge;Ye<Ie.length;Ye++)Z.push(Ie[Ye])}else Z=[],tp(N,Z);return Z}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=(E,N)=>function(l,h,g){const E=Nn();if(E.firstCreatePass){const N=sn(l);X3(g,E.data,E.blueprint,N,!0),X3(h,E.data,E.blueprint,N,!1)}}(E,N?N(l):l,h)}}class Zp{}class E8{resolveComponentFactory(h){throw function(l){const h=Error(`No component factory found for ${R(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 Zu(cr(),ki())}function Zu(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,E,N=!1){for(;null!==g;){const Z=h[g.index];if(null!==Z&&E.push(Xe(Z)),Rn(Z))for(let Ie=10;Ie<Z.length;Ie++){const Ye=Z[Ie],ut=Ye[1].firstChild;null!==ut&&F3(Ye[1],Ye,ut,E)}const ge=g.type;if(8&ge)F3(l,h,g.child,E);else if(32&ge){const Ie=w1(g,h);let Ye;for(;Ye=Ie();)E.push(Ye)}else if(16&ge){const Ie=Z0(h,g);if(Array.isArray(Ie))E.push(...Ie);else{const Ye=Dc(h[16]);F3(Ye[1],Ye,Ie,E,!0)}}g=N?g.projectionNext:g.next}return E}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(Rn(h)){const g=h[8],E=g?g.indexOf(this):-1;E>-1&&(T1(h,E),al(g,E))}this._attachedToViewContainer=!1}gl(this._lView[1],this._lView)}onDestroy(h){hd(this._lView[1],this._lView,null,h)}markForCheck(){j1(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 P8 extends A4{constructor(h){super(h),this._view=h}detectChanges(){Cd(this._view)}checkNoChanges(){!function(l){Kt(!0);try{Cd(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:()=>Ih});class np extends Zp{constructor(h,g){super(),this.componentDef=h,this.ngModule=g,this.componentType=h.type,this.selector=h.selectors.map(Rf).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,E,N){const Z=(N=N||this.ngModule)?function(l,h){return{get:(g,E,N)=>{const Z=l.get(g,ip,N);return Z!==ip||E===ip?Z:h.get(g,E,N)}}}(h,N.injector):h,ge=Z.get(Gp,rs),Ie=Z.get(I8,null),Ye=ge.createRenderer(null,this.componentDef),ut=this.componentDef.selectors[0][0]||"div",Tt=E?function(l,h,g){if(Zn(l))return l.selectRootElement(h,g===ft.ShadowDom);let E="string"==typeof h?l.querySelector(h):h;return E.textContent="",E}(Ye,E,this.componentDef.encapsulation):E1(ge.createRenderer(null,this.componentDef),ut,function(l){const h=l.toLowerCase();return"svg"===h?ns:"math"===h?"http://www.w3.org/1998/MathML/":null}(ut)),Gt=this.componentDef.onPush?576:528,oi=function(l,h){return{components:[],scheduler:l||Ih,clean:h6,playerHandler:h||null,flags:0}}(),gi=Hc(0,null,null,1,0,null,null,null,null,null),Li=Nc(null,gi,oi,Gt,null,null,ge,Ye,Ie,Z);let Ji,nn;ji(Li);try{const mn=function(l,h,g,E,N,Z){const ge=g[1];g[20]=l;const Ye=ql(ge,20,2,"#host",null),ut=Ye.mergedAttrs=h.hostAttrs;null!==ut&&(q1(Ye,ut,!0),null!==l&&(ko(N,l,ut),null!==Ye.classes&&W0(N,l,Ye.classes),null!==Ye.styles&&Gh(N,l,Ye.styles)));const Tt=E.createRenderer(l,h),Gt=Nc(g,od(h),null,h.onPush?64:16,g[20],Ye,E,Tt,Z||null,null);return ge.firstCreatePass&&(ii(Je(Ye,g),ge,h.type),gd(ge,Ye),_d(Ye,g.length,1)),Y1(g,Gt),g[20]=Gt}(Tt,this.componentDef,Li,ge,Ye);if(Tt)if(E)ko(Ye,Tt,["ng-version",k8.full]);else{const{attrs:Ni,classes:En}=function(l){const h=[],g=[];let E=1,N=2;for(;E<l.length;){let Z=l[E];if("string"==typeof Z)2===N?""!==Z&&h.push(Z,l[++E]):8===N&&g.push(Z);else{if(!Tr(N))break;N=Z}E++}return{attrs:h,classes:g}}(this.componentDef.selectors[0]);Ni&&ko(Ye,Tt,Ni),En&&En.length>0&&W0(Ye,Tt,En.join(" "))}if(nn=mi(gi,20),void 0!==g){const Ni=nn.projection=[];for(let En=0;En<this.ngContentSelectors.length;En++){const nr=g[En];Ni.push(null!=nr?Array.from(nr):null)}}Ji=function(l,h,g,E,N){const Z=g[1],ge=function(l,h,g){const E=cr();l.firstCreatePass&&(g.providersResolver&&g.providersResolver(g),vd(l,E,h,Fc(l,h,1,null),g));const N=qa(h,l,E.directiveStart,E);ls(N,h);const Z=Qe(E,h);return Z&&ls(Z,h),N}(Z,g,h);if(E.components.push(ge),l[8]=ge,N&&N.forEach(Ye=>Ye(ge,h)),h.contentQueries){const Ye=cr();h.contentQueries(1,ge,Ye.directiveStart)}const Ie=cr();return!Z.firstCreatePass||null===h.hostBindings&&null===h.hostAttrs||(_r(Ie.index),d2(g[1],Ie,0,Ie.directiveStart,Ie.directiveEnd,h),md(h,ge)),ge}(mn,this.componentDef,Li,oi,[S6]),Ko(gi,Li,null)}finally{wr()}return new H8(this.componentType,Ji,Zu(nn,Li),Li,nn)}}class H8 extends class{}{constructor(h,g,E,N,Z){super(),this.location=E,this._rootLView=N,this._tNode=Z,this.instance=g,this.hostView=this.changeDetectorRef=new P8(N),this.componentType=h}get injector(){return new os(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(h){this.hostView.onDestroy(h)}}class Vu{}class qp{}const Gu=new Map;class Jp extends Vu{constructor(h,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Yp(this);const E=Ft(h);this._bootstrapComponents=uo(E.bootstrap),this._r3Injector=Dd(h,g,[{provide:Vu,useValue:this},{provide:M4,useValue:this.componentFactoryResolver}],R(h)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(h)}get(h,g=Zs.THROW_IF_NOT_FOUND,E=ue.Default){return h===Zs||h===Vu||h===_2?this:this._r3Injector.get(h,g,E)}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(E){const N=Ft(E,!0),Z=N.id;null!==Z&&(function(l,h,g){if(h&&h!==g)throw new Error(`Duplicate module registered for ${l} - ${R(h)} vs ${R(h.name)}`)}(Z,Gu.get(Z),E),Gu.set(Z,E));const ge=uo(N.imports);for(const Ie of ge)h.has(Ie)||(h.add(Ie),g(Ie))}(l)}(h)}create(h){return new Jp(this.moduleType,h)}}function Xp(l,h,g){const E=Jt()+l,N=ki();return N[E]===Sn?mo(N,E,g?h.call(g):h()):function(l,h){return l[h]}(N,E)}function $p(l,h,g,E){return im(ki(),Jt(),l,h,g,E)}function em(l,h,g,E,N){return nm(ki(),Jt(),l,h,g,E,N)}function tm(l,h,g,E,N,Z){return rm(ki(),Jt(),l,h,g,E,N,Z)}function E4(l,h){const g=l[h];return g===Sn?void 0:g}function im(l,h,g,E,N,Z){const ge=h+g;return hs(l,ge,N)?mo(l,ge+1,Z?E.call(Z,N):E(N)):E4(l,ge+1)}function nm(l,h,g,E,N,Z,ge){const Ie=h+g;return Cl(l,Ie,N,Z)?mo(l,Ie+2,ge?E.call(ge,N,Z):E(N,Z)):E4(l,Ie+2)}function rm(l,h,g,E,N,Z,ge,Ie){const Ye=h+g;return function(l,h,g,E,N){const Z=Cl(l,h,g,E);return hs(l,h+2,N)||Z}(l,Ye,N,Z,ge)?mo(l,Ye+3,Ie?E.call(Ie,N,Z,ge):E(N,Z,ge)):E4(l,Ye+3)}function om(l,h){const g=Nn();let E;const N=l+20;g.firstCreatePass?(E=function(l,h){if(h)for(let g=h.length-1;g>=0;g--){const E=h[g];if(l===E.name)return E}}(h,g.pipeRegistry),g.data[N]=E,E.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(N,E.onDestroy)):E=g.data[N];const Z=E.factory||(E.factory=Pr(E.type)),ge=Y(Gc);try{const Ie=vo(!1),Ye=Z();return vo(Ie),function(l,h,g,E){g>=l.data.length&&(l.data[g]=null,l.blueprint[g]=null),h[g]=E}(g,ki(),N,Ye),Ye}finally{Y(ge)}}function lm(l,h,g){const E=l+20,N=ki(),Z=Ct(N,E);return T4(N,E)?im(N,Jt(),h,Z.transform,g,Z):Z.transform(g)}function cm(l,h,g,E){const N=l+20,Z=ki(),ge=Ct(Z,N);return T4(Z,N)?nm(Z,Jt(),h,ge.transform,g,E,ge):ge.transform(g,E)}function hm(l,h,g,E,N){const Z=l+20,ge=ki(),Ie=Ct(ge,Z);return T4(ge,Z)?rm(ge,Jt(),h,Ie.transform,g,E,N,Ie):Ie.transform(g,E,N)}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,E){var N,Z,ge;let Ie=h,Ye=g||(()=>null),ut=E;if(h&&"object"==typeof h){const Gt=h;Ie=null===(N=Gt.next)||void 0===N?void 0:N.bind(Gt),Ye=null===(Z=Gt.error)||void 0===Z?void 0:Z.bind(Gt),ut=null===(ge=Gt.complete)||void 0===ge?void 0:ge.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(),E=B3.prototype;E[g]||(E[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 E=this;E.dirty=!1;const N=bs(h);(this._changesDetected=!function(l,h,g){if(l.length!==h.length)return!1;for(let E=0;E<l.length;E++){let N=l[E],Z=h[E];if(g&&(N=g(N),Z=g(Z)),Z!==N)return!1}return!0}(E._results,N,g))&&(E._results=N,E.length=N.length,E.last=N[this.length-1],E.first=N[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,E){super(),this._declarationLView=h,this._declarationTContainer=g,this.elementRef=E}createEmbeddedView(h){const g=this._declarationTContainer.tViews,E=Nc(this._declarationLView,g,h,16,null,g.declTNode,null,null,null,null);E[17]=this._declarationLView[this._declarationTContainer.index];const Z=this._declarationLView[19];return null!==Z&&(E[19]=Z.createEmbeddedView(g)),Ko(g,E,h),new A4(E)}};function tg(){return H3(cr(),ki())}function H3(l,h){return 4&l.type?new eg(h,l,Zu(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,E){super(),this._lContainer=h,this._hostTNode=g,this._hostLView=E}get element(){return Zu(this._hostTNode,this._hostLView)}get injector(){return new os(this._hostTNode,this._hostLView)}get parentInjector(){const h=qt(this._hostTNode,this._hostLView);if(Nl(h)){const g=so(h,this._hostLView),E=ao(h);return new os(g[1].data[E+8],g)}return new os(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,E){const N=h.createEmbeddedView(g||{});return this.insert(N,E),N}createComponent(h,g,E,N,Z){const ge=h&&!("function"==typeof h);let Ie;if(ge)Ie=g;else{const Gt=g||{};Ie=Gt.index,E=Gt.injector,N=Gt.projectableNodes,Z=Gt.ngModuleRef}const Ye=ge?h:new np(At(h)),ut=E||this.parentInjector;if(!Z&&null==Ye.ngModule&&ut){const Gt=ut.get(Vu,null);Gt&&(Z=Gt)}const Tt=Ye.create(ut,N,void 0,Z);return this.insert(Tt.hostView,Ie),Tt}insert(h,g){const E=h._lView,N=E[1];if(Rn(E[3])){const Tt=this.indexOf(h);if(-1!==Tt)this.detach(Tt);else{const Gt=E[3],oi=new dm(Gt,Gt[6],Gt[3]);oi.detach(oi.indexOf(h))}}const Z=this._adjustIndex(g),ge=this._lContainer;!function(l,h,g,E){const N=10+E,Z=g.length;E>0&&(g[N-1][4]=h),E<Z-10?(h[4]=g[N],oo(g,10+E,h)):(g.push(h),h[4]=null),h[3]=g;const ge=h[17];null!==ge&&g!==ge&&function(l,h){const g=l[9];h[16]!==h[3][3][16]&&(l[2]=!0),null===g?l[9]=[h]:g.push(h)}(ge,h);const Ie=h[19];null!==Ie&&Ie.insertView(l),h[2]|=128}(N,E,ge,Z);const Ie=I1(Z,ge),Ye=E[11],ut=D1(Ye,ge[7]);return null!==ut&&function(l,h,g,E,N,Z){E[0]=N,E[6]=h,Wl(l,E,g,1,N,Z)}(N,ge[6],Ye,E,ut,Ie),h.attachToViewContainerRef(),oo(sp(ge),Z,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),E=T1(this._lContainer,g);E&&(al(sp(this._lContainer),g),gl(E[1],E))}detach(h){const g=this._adjustIndex(h,-1),E=T1(this._lContainer,g);return E&&null!=al(sp(this._lContainer),g)?new A4(E):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 E=h[l.index];if(Rn(E))g=E;else{let N;if(8&l.type)N=Xe(E);else{const Z=h[11];N=Z.createComment("");const ge=Qe(l,h);As(Z,D1(Z,ge),N,function(l,h){return Zn(l)?l.nextSibling(h):h.nextSibling}(Z,ge),!1)}h[l.index]=g=bd(E,h,N,l),Y1(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 E=null!==h.contentQueries?h.contentQueries[0]:g.length,N=[];for(let Z=0;Z<E;Z++){const ge=g.getByIndex(Z);N.push(this.queries[ge.indexInDeclarationView].clone())}return new lp(N)}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,E=null){this.predicate=h,this.flags=g,this.read=E}}class cp{constructor(h=[]){this.queries=h}elementStart(h,g){for(let E=0;E<this.queries.length;E++)this.queries[E].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 E=0;E<this.length;E++){const N=null!==g?g.length:0,Z=this.getByIndex(E).embeddedTView(h,N);Z&&(Z.indexInDeclarationView=E,null!==g?g.push(Z):g=[Z])}return null!==g?new cp(g):null}template(h,g){for(let E=0;E<this.queries.length;E++)this.queries[E].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 E=h.parent;for(;null!==E&&8&E.type&&E.index!==g;)E=E.parent;return g===(null!==E?E.index:-1)}return this._appliesToNextNode}matchTNode(h,g){const E=this.metadata.predicate;if(Array.isArray(E))for(let N=0;N<E.length;N++){const Z=E[N];this.matchTNodeWithReadOption(h,g,sg(g,Z)),this.matchTNodeWithReadOption(h,g,ss(g,h,Z,!1,!1))}else E===S4?4&g.type&&this.matchTNodeWithReadOption(h,g,-1):this.matchTNodeWithReadOption(h,g,ss(g,h,E,!1,!1))}matchTNodeWithReadOption(h,g,E){if(null!==E){const N=this.metadata.read;if(null!==N)if(N===w4||N===z3||N===S4&&4&g.type)this.addMatch(g.index,-2);else{const Z=ss(g,h,N,!1,!1);null!==Z&&this.addMatch(g.index,Z)}else this.addMatch(g.index,E)}}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 E=0;E<g.length;E+=2)if(g[E]===h)return g[E+1];return null}function lg(l,h,g,E){return-1===g?function(l,h){return 11&l.type?Zu(l,h):4&l.type?H3(l,h):null}(h,l):-2===g?function(l,h,g){return g===w4?Zu(h,l):g===S4?H3(h,l):g===z3?fm(h,l):void 0}(l,h,E):qa(l,l[1],g,h)}function mm(l,h,g,E){const N=h[19].queries[E];if(null===N.matches){const Z=l.data,ge=g.matches,Ie=[];for(let Ye=0;Ye<ge.length;Ye+=2){const ut=ge[Ye];Ie.push(ut<0?null:lg(h,Z[ut],ge[Ye+1],g.metadata.read))}N.matches=Ie}return N.matches}function dp(l,h,g,E){const N=l.queries.getByIndex(g),Z=N.matches;if(null!==Z){const ge=mm(l,h,N,g);for(let Ie=0;Ie<Z.length;Ie+=2){const Ye=Z[Ie];if(Ye>0)E.push(ge[Ie/2]);else{const ut=Z[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,E)}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,E)}}}}}return E}function gm(l){const h=ki(),g=Nn(),E=ri();vi(E+1);const N=Cm(g,E);if(l.dirty&&bt(h)===(2==(2&N.metadata.flags))){if(null===N.matches)l.reset([]);else{const Z=N.crossesNgTemplate?dp(g,h,E,[]):mm(g,h,N,E);l.reset(Z,S8),l.notifyOnChanges()}return!0}return!1}function _m(l,h,g){const E=Nn();E.firstCreatePass&&(xm(E,new pm(l,h,g),-1),2==(2&h)&&(E.staticViewQueries=!0)),bm(E,ki(),h)}function vm(l,h,g,E){const N=Nn();if(N.firstCreatePass){const Z=cr();xm(N,new pm(h,g,E),Z.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)}(N,l),2==(2&g)&&(N.staticContentQueries=!0)}bm(N,ki(),g)}function ym(){return l=ki(),h=ri(),l[19].queries[h].queryList;var l,h}function bm(l,h,g){const E=new B3(4==(4&g));hd(l,h,E,E.destroy),null===h[19]&&(h[19]=new lp),h[19].queries.push(new op(E))}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 Yu=(()=>{class l{constructor(g){this.appInits=g,this.resolve=V3,this.reject=V3,this.initialized=!1,this.done=!1,this.donePromise=new Promise((E,N)=>{this.resolve=E,this.reject=N})}runInitializers(){if(this.initialized)return;const g=[],E=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let N=0;N<this.appInits.length;N++){const Z=this.appInits[N]();if(B2(Z))g.push(Z);else if(mu(Z)){const ge=new Promise((Ie,Ye)=>{Z.subscribe({complete:Ie,error:Ye})});g.push(ge)}}Promise.all(g).then(()=>{E()}).catch(N=>{this.reject(N)}),0===g.length&&E(),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 E=this.compileModuleSync(g),Z=uo(Ft(g).declarations).reduce((ge,Ie)=>{const Ye=At(Ie);return Ye&&ge.push(new np(Ye)),ge},[]);return new Lg(E,Z)}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 Lo{constructor({enableLongStackTrace:h=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:E=!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 N=this;N._nesting=0,N._outer=N._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(N._inner=N._inner.fork(new Zone.TaskTrackingZoneSpec)),h&&Zone.longStackTraceZoneSpec&&(N._inner=N._inner.fork(Zone.longStackTraceZoneSpec)),N.shouldCoalesceEventChangeDetection=!E&&g,N.shouldCoalesceRunChangeDetection=E,N.lastRequestAnimationFrameId=-1,N.nativeRequestAnimationFrame=function(){let l=Nt.requestAnimationFrame,h=Nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&l&&h){const g=l[Zone.__symbol__("OriginalDelegate")];g&&(l=g);const E=h[Zone.__symbol__("OriginalDelegate")];E&&(h=E)}return{nativeRequestAnimationFrame:l,nativeCancelAnimationFrame:h}}().nativeRequestAnimationFrame,function(l){const h=()=>{!function(l){l.isCheckStableRunning||-1!==l.lastRequestAnimationFrameId||(l.lastRequestAnimationFrameId=l.nativeRequestAnimationFrame.call(Nt,()=>{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,E,N,Z,ge,Ie)=>{try{return Ym(l),g.invokeTask(N,Z,ge,Ie)}finally{(l.shouldCoalesceEventChangeDetection&&"eventTask"===Z.type||l.shouldCoalesceRunChangeDetection)&&h(),jm(l)}},onInvoke:(g,E,N,Z,ge,Ie,Ye)=>{try{return Ym(l),g.invoke(N,Z,ge,Ie,Ye)}finally{l.shouldCoalesceRunChangeDetection&&h(),jm(l)}},onHasTask:(g,E,N,Z)=>{g.hasTask(N,Z),E===N&&("microTask"==Z.change?(l._hasPendingMicrotasks=Z.microTask,Cp(l),xp(l)):"macroTask"==Z.change&&(l.hasPendingMacrotasks=Z.macroTask))},onHandleError:(g,E,N,Z)=>(g.handleError(N,Z),l.runOutsideAngular(()=>l.onError.emit(Z)),!1)})}(N)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Lo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Lo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(h,g,E){return this._inner.run(h,g,E)}runTask(h,g,E,N){const Z=this._inner,ge=Z.scheduleEventTask("NgZoneEvent: "+N,h,Pg,V3,V3);try{return Z.runTask(ge,g,E)}finally{Z.cancelTask(ge)}}runGuarded(h,g,E){return this._inner.runGuarded(h,g,E)}runOutsideAngular(h){return this._outer.run(h)}}const Pg={};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,E){return h.apply(g,E)}runGuarded(h,g,E){return h.apply(g,E)}runOutsideAngular(h){return h()}runTask(h,g,E,N){return h.apply(g,E)}}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:()=>{Lo.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(E=>!E.updateCb||!E.updateCb(g)||(clearTimeout(E.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,E,N){let Z=-1;E&&E>0&&(Z=setTimeout(()=>{this._callbacks=this._callbacks.filter(ge=>ge.timeoutId!==Z),g(this._didWork,this.getPendingTasks())},E)),this._callbacks.push({doneCb:g,timeoutId:Z,updateCb:N})}whenStable(g,E,N){if(N&&!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,E,N),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,E,N){return[]}}return l.\u0275fac=function(g){return new(g||l)(Ia(Lo))},l.\u0275prov=xe({token:l,factory:l.\u0275fac}),l})(),Km=(()=>{class l{constructor(){this._applications=new Map,Mp.addToWindow(this)}registerApplication(g,E){this._applications.set(g,E)}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,E=!0){return Mp.findTestabilityInTree(this,g,E)}}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,E){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 E=`Platform: ${h}`,N=new Gr(E);return(Z=[])=>{let ge=Xm();if(!ge||ge.injector.get(Qm,!1))if(l)l(g.concat(Z).concat({provide:N,useValue:!0}));else{const Ie=g.concat(Z).concat({provide:N,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())}(Zs.create({providers:Ie,name:E}))}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,E){const Ie=function(l,h){let g;return g="noop"===l?new Fg:("zone.js"===l?void 0:l)||new Lo({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==h?void 0:h.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==h?void 0:h.ngZoneRunCoalescing)}),g}(E?E.ngZone:void 0,{ngZoneEventCoalescing:E&&E.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:E&&E.ngZoneRunCoalescing||!1}),Ye=[{provide:Lo,useValue:Ie}];return Ie.run(()=>{const ut=Zs.create({providers:Ye,parent:this.injector,name:g.moduleType.name}),Tt=g.create(ut),Gt=Tt.injector.get(Sc,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 E=g();return B2(E)?E.catch(N=>{throw h.runOutsideAngular(()=>l.handleError(N)),N}):E}catch(E){throw h.runOutsideAngular(()=>l.handleError(E)),E}}(Gt,Ie,()=>{const oi=Tt.injector.get(Yu);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,d0)||d0),this._moduleDoBootstrap(Tt),Tt))})})}bootstrapModule(g,E=[]){const N=e8({},E);return function(l,h,g){const E=new rp(g);return Promise.resolve(E)}(0,0,g).then(Z=>this.bootstrapModuleFactory(Z,N))}_moduleDoBootstrap(g){const E=g.injector.get(L4);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(N=>E.bootstrap(N));else{if(!g.instance.ngDoBootstrap)throw new w("403","");g.instance.ngDoBootstrap(E)}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(Zs))},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,E,N,Z,ge){this._zone=g,this._injector=E,this._exceptionHandler=N,this._componentFactoryResolver=Z,this._initStatus=ge,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(()=>{Lo.assertNotInAngularZone(),bp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,ut.next(!0))})})});const Gt=this._zone.onUnstable.subscribe(()=>{Lo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{ut.next(!1)}))});return()=>{Tt.unsubscribe(),Gt.unsubscribe()}});this.isStable=(0,M.T)(Ie,Ye.pipe((0,s.B)()))}bootstrap(g,E){if(!this._initStatus.done)throw new w("405","");let N;N=g instanceof Zp?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(N.componentType);const Z=function(l){return l.isBoundToModule}(N)?void 0:this._injector.get(Vu),Ie=N.create(Zs.NULL,[],E||N.selector,Z),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 E=g;this._views.push(E),E.attachToAppRef(this)}detachView(g){const E=g;wp(this._views,E),E.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Vm,[]).concat(this._bootstrapListeners).forEach(N=>N(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(Lo),Ia(Zs),Ia(Sc),Ia(M4),Ia(Yu))},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 E=ei(l.index,h);return new A4(E,E)}return 47&l.type?new A4(h[16],h):null}(cr(),ki(),16==(16&l))}class c8{constructor(){}supports(h){return Zc(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,E=this._removalsHead,N=0,Z=null;for(;g||E;){const ge=!E||g&&g.currentIndex<d8(E,N,Z)?g:E,Ie=d8(ge,N,Z),Ye=ge.currentIndex;if(ge===E)N--,E=E._nextRemoved;else if(g=g._next,null==ge.previousIndex)N++;else{Z||(Z=[]);const ut=Ie-N,Tt=Ye-N;if(ut!=Tt){for(let oi=0;oi<ut;oi++){const gi=oi<Z.length?Z[oi]:Z[oi]=0,Li=gi+oi;Tt<=Li&&Li<ut&&(Z[oi]=gi+1)}Z[ge.previousIndex]=Tt-ut}}Ie!==Ye&&h(ge,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=[]),!Zc(h))throw new Error(`Error trying to diff '${R(h)}'. Only arrays and iterables are allowed`);return this.check(h)?this:null}onDestroy(){}check(h){this._reset();let N,Z,ge,g=this._itHead,E=!1;if(Array.isArray(h)){this.length=h.length;for(let Ie=0;Ie<this.length;Ie++)Z=h[Ie],ge=this._trackByFn(Ie,Z),null!==g&&Object.is(g.trackById,ge)?(E&&(g=this._verifyReinsertion(g,Z,ge,Ie)),Object.is(g.item,Z)||this._addIdentityChange(g,Z)):(g=this._mismatch(g,Z,ge,Ie),E=!0),g=g._next}else N=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 E;for(;!(E=g.next()).done;)h(E.value)}}(h,Ie=>{ge=this._trackByFn(N,Ie),null!==g&&Object.is(g.trackById,ge)?(E&&(g=this._verifyReinsertion(g,Ie,ge,N)),Object.is(g.item,Ie)||this._addIdentityChange(g,Ie)):(g=this._mismatch(g,Ie,ge,N),E=!0),g=g._next,N++}),this.length=N;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,E,N){let Z;return null===h?Z=this._itTail:(Z=h._prev,this._remove(h)),null!==(h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(E,null))?(Object.is(h.item,g)||this._addIdentityChange(h,g),this._reinsertAfter(h,Z,N)):null!==(h=null===this._linkedRecords?null:this._linkedRecords.get(E,N))?(Object.is(h.item,g)||this._addIdentityChange(h,g),this._moveAfter(h,Z,N)):h=this._addAfter(new s5(g,E),Z,N),h}_verifyReinsertion(h,g,E,N){let Z=null===this._unlinkedRecords?null:this._unlinkedRecords.get(E,null);return null!==Z?h=this._reinsertAfter(Z,h._prev,N):h.currentIndex!=N&&(h.currentIndex=N,this._addToMoves(h,N)),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,E){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(h);const N=h._prevRemoved,Z=h._nextRemoved;return null===N?this._removalsHead=Z:N._nextRemoved=Z,null===Z?this._removalsTail=N:Z._prevRemoved=N,this._insertAfter(h,g,E),this._addToMoves(h,E),h}_moveAfter(h,g,E){return this._unlink(h),this._insertAfter(h,g,E),this._addToMoves(h,E),h}_addAfter(h,g,E){return this._insertAfter(h,g,E),this._additionsTail=null===this._additionsTail?this._additionsHead=h:this._additionsTail._nextAdded=h,h}_insertAfter(h,g,E){const N=null===g?this._itHead:g._next;return h._next=N,h._prev=g,null===N?this._itTail=h:N._prev=h,null===g?this._itHead=h:g._next=h,null===this._linkedRecords&&(this._linkedRecords=new h8),this._linkedRecords.put(h),h.currentIndex=E,h}_remove(h){return this._addToRemovals(this._unlink(h))}_unlink(h){null!==this._linkedRecords&&this._linkedRecords.remove(h);const g=h._prev,E=h._next;return null===g?this._itHead=E:g._next=E,null===E?this._itTail=g:E._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 E;for(E=this._head;null!==E;E=E._nextDup)if((null===g||g<=E.currentIndex)&&Object.is(E.trackById,h))return E;return null}remove(h){const g=h._prevDup,E=h._nextDup;return null===g?this._head=E:g._nextDup=E,null===E?this._tail=g:E._prevDup=g,null===this._head}}class h8{constructor(){this.map=new Map}put(h){const g=h.trackById;let E=this.map.get(g);E||(E=new o5,this.map.set(g,E)),E.add(h)}get(h,g){const N=this.map.get(h);return N?N.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 E=l.previousIndex;if(null===E)return E;let N=0;return g&&E<g.length&&(N=g[E]),E+h+N}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 '${R(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,(E,N)=>{if(g&&g.key===N)this._maybeAddToChanges(g,E),this._appendAfter=g,g=g._next;else{const Z=this._getOrCreateRecordForKey(N,E);g=this._insertBeforeOrAppend(g,Z)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let E=g;null!==E;E=E._nextRemoved)E===this._mapHead&&(this._mapHead=null),this._records.delete(E.key),E._nextRemoved=E._next,E.previousValue=E.currentValue,E.currentValue=null,E._prev=null,E._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(h,g){if(h){const E=h._prev;return g._next=h,g._prev=E,h._prev=g,E&&(E._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 N=this._records.get(h);this._maybeAddToChanges(N,g);const Z=N._prev,ge=N._next;return Z&&(Z._next=ge),ge&&(ge._prev=Z),N._next=null,N._prev=null,N}const E=new c5(h);return this._records.set(h,E),E.currentValue=g,this._addToAdditions(E),E}_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(E=>g(h[E],E))}}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,E){if(null!=E){const N=E.factories.slice();g=g.concat(N)}return new l(g)}static extend(g){return{provide:l,useFactory:E=>l.create(g,E||f8()),deps:[[l,new Us,new xo]]}}find(g){const E=this.factories.find(N=>N.supports(g));if(null!=E)return E;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,E){if(E){const N=E.factories.slice();g=g.concat(N)}return new l(g)}static extend(g){return{provide:l,useFactory:E=>l.create(g,E||p8()),deps:[[l,new Us,new xo]]}}find(g){const E=this.factories.find(N=>N.supports(g));if(E)return E;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:[Zs]},{provide:Km,deps:[]},{provide:Gm,deps:[]}]),b5=[{provide:L4,useClass:L4,deps:[Lo,Zs,Sc,M4,Yu]},{provide:N8,deps:[Lo],useFactory:function(l){let h=[];return l.onStable.subscribe(()=>{for(;h.length;)h.pop()()}),function(g){h.push(g)}}},{provide:Yu,useClass:Yu,deps:[[new xo,_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||d0},deps:[[new bo(G3),new xo,new Us]]},{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=Fe({providers:b5}),l})()},9042:(Ue,K,m)=>{"use strict";function e(O){for(let T in O){let P=O[T]||"";switch(T){case"display":O.display="flex"===P?["-webkit-flex","flex"]:"inline-flex"===P?["-webkit-inline-flex","inline-flex"]:P;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":O["-webkit-"+T]=P;break;case"flex-direction":P=P||"row",O["-webkit-flex-direction"]=P,O["flex-direction"]=P;break;case"order":O.order=O["-webkit-"+T]=isNaN(+P)?"0":P}}return O}m.d(K,{iQ:()=>v,GK:()=>e,Ar:()=>M,kt:()=>o,tj:()=>C});const t="inline",v=["row","column","row-reverse","column-reverse"];function M(O){let[T,P,S]=s(O);return function(O,T=null,P=!1){return{display:P?"inline-flex":"flex","box-sizing":"border-box","flex-direction":O,"flex-wrap":T||null}}(T,P,S)}function s(O){O=O?O.toLowerCase():"";let[T,P,S]=O.split(" ");return v.find(D=>D===T)||(T=v[0]),P===t&&(P=S!==t?S:"",S=t),[T,c(P),!!S]}function C(O){let[T]=s(O);return T.indexOf("row")>-1}function c(O){if(O)switch(O.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":O="wrap-reverse";break;case"no":case"none":case"nowrap":O="nowrap";break;default:O="wrap"}return O}function o(O,...T){if(null==O)throw TypeError("Cannot convert undefined or null to object");for(let P of T)if(null!=P)for(let S in P)P.hasOwnProperty(S)&&(O[S]=P[S]);return O}},3270:(Ue,K,m)=>{"use strict";m.d(K,{Bs:()=>ee,iR:()=>Ne,IR:()=>S,g5:()=>U,WU:()=>G,yB:()=>We,wY:()=>W,QI:()=>_e,RK:()=>fe,Ot:()=>ze});var e=m(5e3),t=m(9808),v=m(1135),M=m(8306),s=m(6451),C=m(7579),c=m(9042),R=m(9300),o=m(8505);const T={provide:e.tb,useFactory:function(it,ft){return()=>{if((0,t.NF)(ft)){const nt=Array.from(it.querySelectorAll(`[class*=${P}]`)),st=/\bflex-layout-.+?\b/g;nt.forEach(wt=>{wt.classList.contains(`${P}ssr`)&&wt.parentNode?wt.parentNode.removeChild(wt):wt.className.replace(st,"")})}}},deps:[t.K0,e.Lbi],multi:!0},P="flex-layout-";let S=(()=>{class it{}return it.\u0275fac=function(nt){return new(nt||it)},it.\u0275mod=e.oAB({type:it}),it.\u0275inj=e.cJS({providers:[T]}),it})();class D{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 D(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 Nt=wt.get(st);("number"==typeof Nt||"string"==typeof Nt)&&(Bt=Nt+"")}return Bt}}return it.\u0275fac=function(nt){return new(nt||it)},it.\u0275prov=e.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();const U={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},G=new e.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>U}),W=new e.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ee=new e.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ie(it,ft){return it=it?it.clone():new D,ft&&(it.mqAlias=ft.alias,it.mediaQuery=ft.mediaQuery,it.suffix=ft.suffix,it.priority=ft.priority),it}class _e{constructor(){this.shouldCache=!0}sideEffect(ft,nt,st){}}let fe=(()=>{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],Nt=Array.isArray(Bt)?Bt:[Bt];Nt.sort();for(let Vt of Nt)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 Nt=0;Nt<Bt.length;Nt++){const Vt=Bt[Nt].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(W),e.LFG(e.Lbi),e.LFG(G))},it.\u0275prov=e.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();function de(it,ft){return(ft&&ft.priority||0)-(it&&it.priority||0)}function ne(it,ft){return(it.priority||0)-(ft.priority||0)}let se=(()=>{class it{constructor(nt,st,wt){this._zone=nt,this._platformId=st,this._document=wt,this.source=new v.X(new D(!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,R.h)(Nt=>!st||nt.indexOf(Nt.mediaQuery)>-1)),Bt=new M.y(Nt=>{const Vt=this.registerQuery(nt);if(Vt.length){const Oi=Vt.pop();Vt.forEach(jt=>{Nt.next(jt)}),this.source.next(Oi)}Nt.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=>!oe[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=>oe[Bt]=wt)}catch(wt){console.error(wt)}}}(st,this._document),st.forEach(Bt=>{const Nt=Oi=>{this._zone.run(()=>this.source.next(new D(Oi.matches,Bt)))};let Vt=this.registry.get(Bt);Vt||(Vt=this.buildMQL(Bt),Vt.addListener(Nt),this.pendingRemoveListenerFns.push(()=>Vt.removeListener(Nt)),this.registry.set(Bt,Vt)),Vt.matches&&wt.push(new D(!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 oe={},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)",L="(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:`${_} , ${L}`,WEB:`${I}, ${x} `,HANDSET_PORTRAIT:`${p}`,TABLET_PORTRAIT:`${_} `,WEB_PORTRAIT:`${I}`,HANDSET_LANDSCAPE:`${u}`,TABLET_LANDSCAPE:`${L}`,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}],J=/(\.|-|_)/g;function F(it){let ft=it.length>0?it.charAt(0):"",nt=it.length>1?it.slice(1):"";return ft.toUpperCase()+nt}const Pe=new e.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const it=(0,e.f3M)(ee),ft=(0,e.f3M)(G),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(J,"|").split("|").map(F).join("")}(ft.alias),ft.overlapping=!!ft.overlapping)}),it}(Object.keys(nt).map(st=>nt[st]))}((ft.disableDefaultBps?[]:a).concat(ft.addOrientationBps?b:[]),nt)}});let Fe=(()=>{class it{constructor(nt){this.findByMap=new Map,this.items=[...nt].sort(ne)}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(Pe))},it.\u0275prov=e.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();const q="print",j={alias:q,mediaQuery:q,priority:1e3};let we=(()=>{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 Ae,this.deactivations=[]}withPrintQuery(nt){return[...nt,q]}isPrintEvent(nt){return nt.mediaQuery.startsWith(q)}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(de)}updateEvent(nt){let st=this.breakpoints.findByQuery(nt.mediaQuery);return this.isPrintEvent(nt)&&(st=this.getEventBreakpoints(nt)[0],nt.mediaQuery=st?st.mediaQuery:""),ie(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 D(!0,q))),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(de))}}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(Fe),e.LFG(G),e.LFG(t.K0))},it.\u0275prov=e.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();class Ae{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(ft){return ft.push(j),ft.sort(de),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(q)?[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 C.x,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(nt){const st=this.findByQuery(nt.mediaQuery);st&&((nt=ie(nt,st)).matches&&-1===this.activatedBreakpoints.indexOf(st)?(this.activatedBreakpoints.push(st),this.activatedBreakpoints.sort(de),this.updateStyles()):!nt.matches&&-1!==this.activatedBreakpoints.indexOf(st)&&(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(st),1),this.activatedBreakpoints.sort(de),this.updateStyles()))}init(nt,st,wt,Bt,Nt=[]){yt(this.updateMap,nt,st,wt),yt(this.clearMap,nt,st,Bt),this.buildElementKeyMap(nt,st),this.watchExtraTriggers(nt,st,Nt)}getValue(nt,st,wt){const Bt=this.elementMap.get(nt);if(Bt){const Nt=void 0!==wt?Bt.get(wt):this.getActivatedValues(Bt,st);if(Nt)return Nt.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 Nt=this.elementMap.get(nt);if(Nt){const Oi=(Nt.get(Bt)||new Map).set(st,wt);Nt.set(Bt,Oi),this.elementMap.set(nt,Nt)}else Nt=(new Map).set(Bt,(new Map).set(st,wt)),this.elementMap.set(nt,Nt);const Vt=this.getValue(nt,st);void 0!==Vt&&this.updateElement(nt,st,Vt)}trackValue(nt,st){return this.subject.asObservable().pipe((0,R.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((Nt,Vt)=>{this.updateElement(st,Vt,Nt),wt.delete(Vt)}),wt.forEach(Nt=>{if(Bt=this.getActivatedValues(nt,Nt),Bt){const Vt=Bt.get(Nt);this.updateElement(st,Nt,Vt)}else this.clearElement(st,Nt)})})}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 Nt=Bt.get(st);Nt&&(Nt(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,Nt)=>wt.delete(Nt)),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((Nt,Vt)=>this.updateElement(nt,Vt,Nt)))}}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,R.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return it.\u0275fac=function(nt){return new(nt||it)(e.LFG(se),e.LFG(Fe),e.LFG(we))},it.\u0275prov=e.Yz7({token:it,factory:it.\u0275fac,providedIn:"root"}),it})();function yt(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 Ne=(()=>{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 C.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 Nt=this.styleCache.get(nt);(!Nt||!Bt)&&(Nt=wt.buildStyles(nt,st),Bt&&this.styleCache.set(nt,Nt)),this.mru=Object.assign({},Nt),this.applyStyleToElement(Nt),wt.sideEffect(nt,Nt,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 Nt=(0,c.Ar)(wt);this.styler.applyStyleToElements(Nt,[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(_e),e.Y36(fe),e.Y36(We))},it.\u0275dir=e.lG2({type:it,features:[e.TTD]}),it})();function ze(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:(Ue,K,m)=>{"use strict";m.d(K,{oO:()=>U,Zl:()=>L,aT:()=>r});var e=m(5e3),t=m(3270),v=m(9808),C=(m(3191),m(2722),m(2313));let S=(()=>{class b extends t.iR{constructor(F,B,te,xe,Pe,Fe,q){super(F,null,B,te),this.ngClassInstance=q,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new v.mk(xe,Pe,F,Fe)),this.init(),this.setValue("","")}set klass(F){this.ngClassInstance.klass=F,this.setValue(F,"")}updateWithValue(F){this.ngClassInstance.ngClass=F,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return b.\u0275fac=function(F){return new(F||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 D=["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 U=(()=>{class b extends S{constructor(){super(...arguments),this.inputs=D}}return b.\u0275fac=function(){let J;return function(B){return(J||(J=e.n5z(b)))(B||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 de{constructor(J,F,B=!0){this.key=J,this.value=F,this.key=B?J.replace(/['"]/g,"").trim():J.trim(),this.value=B?F.replace(/['"]/g,"").trim():F.trim(),this.value=this.value.replace(/;/,"")}}function ne(b){let J=typeof b;return"object"===J?b.constructor===Array?"array":b.constructor===Set?"set":"object":J}function i(b){const[J,...F]=b.split(":");return new de(J,F.join(":"))}function a(b,J){return J.key&&(b[J.key]=J.value),b}let p=(()=>{class b extends t.iR{constructor(F,B,te,xe,Pe,Fe,q,j,we){super(F,null,B,te),this.sanitizer=xe,this.ngStyleInstance=q,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new v.PC(F,Pe,Fe)),this.init();const Ae=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(Ae),this.isServer=j&&(0,v.PM)(we)}updateWithValue(F){const B=this.buildStyleMap(F);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),B),this.isServer&&this.applyStyleToElement(B),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(F){const B=te=>this.sanitizer.sanitize(e.q3G.STYLE,te)||"";if(F)switch(ne(F)){case"string":return I(function(b,J=";"){return String(b).trim().split(J).map(F=>F.trim()).filter(F=>""!==F)}(F),B);case"array":return I(F,B);default:return function(b,J){let F=[];return"set"===ne(b)?b.forEach(B=>F.push(B)):Object.keys(b).forEach(B=>{F.push(`${B}:${b[B]}`)}),function(b,J){return b.map(i).filter(B=>!!B).map(B=>(J&&(B.value=J(B.value)),B)).reduce(a,{})}(F,J)}(F,B)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return b.\u0275fac=function(F){return new(F||b)(e.Y36(e.SBq),e.Y36(t.RK),e.Y36(t.yB),e.Y36(C.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 L=(()=>{class b extends p{constructor(){super(...arguments),this.inputs=u}}return b.\u0275fac=function(){let J;return function(B){return(J||(J=e.n5z(b)))(B||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,J){return b.map(i).filter(B=>!!B).map(B=>(J&&(B.value=J(B.value)),B)).reduce(a,{})}let r=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275mod=e.oAB({type:b}),b.\u0275inj=e.cJS({imports:[[t.IR]]}),b})()},7093:(Ue,K,m)=>{"use strict";m.d(K,{yH:()=>_,Wh:()=>st,xw:()=>T,ae:()=>di});var e=m(5e3),t=m(226),v=m(3270),M=m(9042),C=(m(7579),m(2722));let c=(()=>{class He extends v.QI{buildStyles(V){return(0,M.Ar)(V)}}return He.\u0275fac=function(){let Se;return function(ve){return(Se||(Se=e.n5z(He)))(ve||He)}}(),He.\u0275prov=e.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})();const R=["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 O=(()=>{class He extends v.iR{constructor(V,ve,Ee,et){super(V,Ee,ve,et),this.DIRECTIVE_KEY="layout",this.styleCache=P,this.init()}}return He.\u0275fac=function(V){return new(V||He)(e.Y36(e.SBq),e.Y36(v.RK),e.Y36(c),e.Y36(v.yB))},He.\u0275dir=e.lG2({type:He,features:[e.qOj]}),He})(),T=(()=>{class He extends O{constructor(){super(...arguments),this.inputs=R}}return He.\u0275fac=function(){let Se;return function(ve){return(Se||(Se=e.n5z(He)))(ve||He)}}(),He.\u0275dir=e.lG2({type:He,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]}),He})();const P=new Map;let i=(()=>{class He extends v.QI{constructor(V){super(),this.layoutConfig=V}buildStyles(V,ve){let[Ee,et,...$t]=V.split(" "),Rt=$t.join(" ");const Xt=ve.direction.indexOf("column")>-1?"column":"row",lt=(0,M.tj)(Xt)?"max-width":"max-height",Re=(0,M.tj)(Xt)?"min-width":"min-height",Be=String(Rt).indexOf("calc")>-1,rt=Be||"auto"===Rt,ot=String(Rt).indexOf("%")>-1&&!Be,At=String(Rt).indexOf("px")>-1||String(Rt).indexOf("rem")>-1||String(Rt).indexOf("em")>-1||String(Rt).indexOf("vw")>-1||String(Rt).indexOf("vh")>-1;let li=Be||At;Ee="0"==Ee?0:Ee,et="0"==et?0:et;const Ut=!Ee&&!et;let Ft={};const Si={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Rt||""){case"":const ai=!1!==this.layoutConfig.useColumnBasisZero;Rt="row"===Xt?"0%":ai?"0.000000001px":"auto";break;case"initial":case"nogrow":Ee=0,Rt="auto";break;case"grow":Rt="100%";break;case"noshrink":et=0,Rt="auto";break;case"auto":break;case"none":Ee=0,et=0,Rt="auto";break;default:!li&&!ot&&!isNaN(Rt)&&(Rt+="%"),"0%"===Rt&&(li=!0),"0px"===Rt&&(Rt="0%"),Ft=(0,M.kt)(Si,Be?{"flex-grow":Ee,"flex-shrink":et,"flex-basis":li?Rt:"100%"}:{flex:`${Ee} ${et} ${li?Rt:"100%"}`})}return Ft.flex||Ft["flex-grow"]||(Ft=(0,M.kt)(Si,Be?{"flex-grow":Ee,"flex-shrink":et,"flex-basis":Rt}:{flex:`${Ee} ${et} ${Rt}`})),"0%"!==Rt&&"0px"!==Rt&&"0.000000001px"!==Rt&&"auto"!==Rt&&(Ft[Re]=Ut||li&&Ee?Rt:null,Ft[lt]=Ut||!rt&&et?Rt:null),Ft[Re]||Ft[lt]?ve.hasWrap&&(Ft[Be?"flex-basis":"flex"]=Ft[lt]?Be?Ft[lt]:`${Ee} ${et} ${Ft[lt]}`:Be?Ft[Re]:`${Ee} ${et} ${Ft[Re]}`):Ft=(0,M.kt)(Si,Be?{"flex-grow":Ee,"flex-shrink":et,"flex-basis":Rt}:{flex:`${Ee} ${et} ${Rt}`}),(0,M.kt)(Ft,{"box-sizing":"border-box"})}}return He.\u0275fac=function(V){return new(V||He)(e.LFG(v.WU))},He.\u0275prov=e.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})();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 He extends v.iR{constructor(V,ve,Ee,et,$t){super(V,et,ve,$t),this.layoutConfig=Ee,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(V){this.flexShrink=V||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(V){this.flexGrow=V||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,C.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,C.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(V){const Ee=V.value.split(" ");this.direction=Ee[0],this.wrap=void 0!==Ee[1]&&"wrap"===Ee[1],this.triggerUpdate()}updateWithValue(V){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 Ee=this.direction,et=Ee.startsWith("row"),$t=this.wrap;et&&$t?this.styleCache=x:et&&!$t?this.styleCache=L:!et&&$t?this.styleCache=r:!et&&!$t&&(this.styleCache=I);const Rt=String(V).replace(";",""),Xt=(0,v.Ot)(Rt,this.flexGrow,this.flexShrink);this.addStyles(Xt.join(" "),{direction:Ee,hasWrap:$t})}triggerReflow(){const V=this.activatedValue;if(void 0!==V){const ve=(0,v.Ot)(V+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,ve.join(" "))}}}return He.\u0275fac=function(V){return new(V||He)(e.Y36(e.SBq),e.Y36(v.RK),e.Y36(v.WU),e.Y36(i),e.Y36(v.yB))},He.\u0275dir=e.lG2({type:He,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[e.qOj]}),He})(),_=(()=>{class He extends u{constructor(){super(...arguments),this.inputs=a}}return He.\u0275fac=function(){let Se;return function(ve){return(Se||(Se=e.n5z(He)))(ve||He)}}(),He.\u0275dir=e.lG2({type:He,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]}),He})();const L=new Map,I=new Map,x=new Map,r=new Map;let ht=(()=>{class He extends v.QI{buildStyles(V,ve){const Ee={},[et,$t]=V.split(" ");switch(et){case"center":Ee["justify-content"]="center";break;case"space-around":Ee["justify-content"]="space-around";break;case"space-between":Ee["justify-content"]="space-between";break;case"space-evenly":Ee["justify-content"]="space-evenly";break;case"end":case"flex-end":Ee["justify-content"]="flex-end";break;default:Ee["justify-content"]="flex-start"}switch($t){case"start":case"flex-start":Ee["align-items"]=Ee["align-content"]="flex-start";break;case"center":Ee["align-items"]=Ee["align-content"]="center";break;case"end":case"flex-end":Ee["align-items"]=Ee["align-content"]="flex-end";break;case"space-between":Ee["align-content"]="space-between",Ee["align-items"]="stretch";break;case"space-around":Ee["align-content"]="space-around",Ee["align-items"]="stretch";break;case"baseline":Ee["align-content"]="stretch",Ee["align-items"]="baseline";break;default:Ee["align-items"]=Ee["align-content"]="stretch"}return(0,M.kt)(Ee,{display:ve.inline?"inline-flex":"flex","flex-direction":ve.layout,"box-sizing":"border-box","max-width":"stretch"===$t?(0,M.tj)(ve.layout)?null:"100%":null,"max-height":"stretch"===$t&&(0,M.tj)(ve.layout)?"100%":null})}}return He.\u0275fac=function(){let Se;return function(ve){return(Se||(Se=e.n5z(He)))(ve||He)}}(),He.\u0275prov=e.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})();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 He extends v.iR{constructor(V,ve,Ee,et){super(V,Ee,ve,et),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,C.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(V){const ve=this.layout||"row",Ee=this.inline;"row"===ve&&Ee?this.styleCache=Oi:"row"!==ve||Ee?"row-reverse"===ve&&Ee?this.styleCache=ti:"row-reverse"!==ve||Ee?"column"===ve&&Ee?this.styleCache=jt:"column"!==ve||Ee?"column-reverse"===ve&&Ee?this.styleCache=Ri:"column-reverse"===ve&&!Ee&&(this.styleCache=Vt):this.styleCache=Bt:this.styleCache=Nt:this.styleCache=wt,this.addStyles(V,{layout:ve,inline:Ee})}onLayoutChange(V){const ve=V.value.split(" ");this.layout=ve[0],this.inline=V.value.includes("inline"),M.iQ.find(Ee=>Ee===this.layout)||(this.layout="row"),this.triggerUpdate()}}return He.\u0275fac=function(V){return new(V||He)(e.Y36(e.SBq),e.Y36(v.RK),e.Y36(ht),e.Y36(v.yB))},He.\u0275dir=e.lG2({type:He,features:[e.qOj]}),He})(),st=(()=>{class He extends nt{constructor(){super(...arguments),this.inputs=it}}return He.\u0275fac=function(){let Se;return function(ve){return(Se||(Se=e.n5z(He)))(ve||He)}}(),He.\u0275dir=e.lG2({type:He,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]}),He})();const wt=new Map,Bt=new Map,Nt=new Map,Vt=new Map,Oi=new Map,jt=new Map,ti=new Map,Ri=new Map;let di=(()=>{class He{}return He.\u0275fac=function(V){return new(V||He)},He.\u0275mod=e.oAB({type:He}),He.\u0275inj=e.cJS({imports:[[v.IR,t.vT]]}),He})()},3075:(Ue,K,m)=>{"use strict";m.d(K,{Zs:()=>er,Fj:()=>D,qu:()=>Ya,NI:()=>Vi,oH:()=>xr,u:()=>xa,sg:()=>Fi,u5:()=>pa,Fd:()=>Jr,qQ:()=>Pr,Cf:()=>G,JU:()=>R,a5:()=>Ae,JJ:()=>Ve,JL:()=>ue,F:()=>be,On:()=>Ki,wV:()=>gt,UX:()=>Zn,Q7:()=>Vr,kI:()=>ie,_Y:()=>at});var e=m(5e3),t=m(9808),v=m(457),M=m(4128),s=m(4004);let C=(()=>{class ye{constructor(ae,Qe){this._renderer=ae,this._elementRef=Qe,this.onChange=Yt=>{},this.onTouched=()=>{}}setProperty(ae,Qe){this._renderer.setProperty(this._elementRef.nativeElement,ae,Qe)}registerOnTouched(ae){this.onTouched=ae}registerOnChange(ae){this.onChange=ae}setDisabledState(ae){this.setProperty("disabled",ae)}}return ye.\u0275fac=function(ae){return new(ae||ye)(e.Y36(e.Qsj),e.Y36(e.SBq))},ye.\u0275dir=e.lG2({type:ye}),ye})(),c=(()=>{class ye extends C{}return ye.\u0275fac=function(){let Q;return function(Qe){return(Q||(Q=e.n5z(ye)))(Qe||ye)}}(),ye.\u0275dir=e.lG2({type:ye,features:[e.qOj]}),ye})();const R=new e.OlP("NgValueAccessor"),T={provide:R,useExisting:(0,e.Gpc)(()=>D),multi:!0},S=new e.OlP("CompositionEventMode");let D=(()=>{class ye extends C{constructor(ae,Qe,Yt){super(ae,Qe),this._compositionMode=Yt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const ye=(0,t.q)()?(0,t.q)().getUserAgent():"";return/android (\d+)/.test(ye.toLowerCase())}())}writeValue(ae){this.setProperty("value",null==ae?"":ae)}_handleInput(ae){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ae)}_compositionStart(){this._composing=!0}_compositionEnd(ae){this._composing=!1,this._compositionMode&&this.onChange(ae)}}return ye.\u0275fac=function(ae){return new(ae||ye)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(S,8))},ye.\u0275dir=e.lG2({type:ye,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(ae,Qe){1&ae&&e.NdJ("input",function(mi){return Qe._handleInput(mi.target.value)})("blur",function(){return Qe.onTouched()})("compositionstart",function(){return Qe._compositionStart()})("compositionend",function(mi){return Qe._compositionEnd(mi.target.value)})},features:[e._Bn([T]),e.qOj]}),ye})();function w(ye){return null==ye||0===ye.length}function U(ye){return null!=ye&&"number"==typeof ye.length}const G=new e.OlP("NgValidators"),W=new e.OlP("NgAsyncValidators"),ee=/^(?=.{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 ie{static min(Q){return _e(Q)}static max(Q){return fe(Q)}static required(Q){return de(Q)}static requiredTrue(Q){return ne(Q)}static email(Q){return w((ye=Q).value)||ee.test(ye.value)?null:{email:!0};var ye}static minLength(Q){return ye=Q,Q=>w(Q.value)||!U(Q.value)?null:Q.value.length<ye?{minlength:{requiredLength:ye,actualLength:Q.value.length}}:null;var ye}static maxLength(Q){return ye=Q,Q=>U(Q.value)&&Q.value.length>ye?{maxlength:{requiredLength:ye,actualLength:Q.value.length}}:null;var ye}static pattern(Q){return function(ye){if(!ye)return a;let Q,ae;return"string"==typeof ye?(ae="","^"!==ye.charAt(0)&&(ae+="^"),ae+=ye,"$"!==ye.charAt(ye.length-1)&&(ae+="$"),Q=new RegExp(ae)):(ae=ye.toString(),Q=ye),Qe=>{if(w(Qe.value))return null;const Yt=Qe.value;return Q.test(Yt)?null:{pattern:{requiredPattern:ae,actualValue:Yt}}}}(Q)}static nullValidator(Q){return null}static compose(Q){return r(Q)}static composeAsync(Q){return J(Q)}}function _e(ye){return Q=>{if(w(Q.value)||w(ye))return null;const ae=parseFloat(Q.value);return!isNaN(ae)&&ae<ye?{min:{min:ye,actual:Q.value}}:null}}function fe(ye){return Q=>{if(w(Q.value)||w(ye))return null;const ae=parseFloat(Q.value);return!isNaN(ae)&&ae>ye?{max:{max:ye,actual:Q.value}}:null}}function de(ye){return w(ye.value)?{required:!0}:null}function ne(ye){return!0===ye.value?null:{required:!0}}function a(ye){return null}function p(ye){return null!=ye}function u(ye){const Q=(0,e.QGY)(ye)?(0,v.D)(ye):ye;return(0,e.CqO)(Q),Q}function _(ye){let Q={};return ye.forEach(ae=>{Q=null!=ae?Object.assign(Object.assign({},Q),ae):Q}),0===Object.keys(Q).length?null:Q}function L(ye,Q){return Q.map(ae=>ae(ye))}function x(ye){return ye.map(Q=>function(ye){return!ye.validate}(Q)?Q:ae=>Q.validate(ae))}function r(ye){if(!ye)return null;const Q=ye.filter(p);return 0==Q.length?null:function(ae){return _(L(ae,Q))}}function b(ye){return null!=ye?r(x(ye)):null}function J(ye){if(!ye)return null;const Q=ye.filter(p);return 0==Q.length?null:function(ae){const Qe=L(ae,Q).map(u);return(0,M.D)(Qe).pipe((0,s.U)(_))}}function F(ye){return null!=ye?J(x(ye)):null}function B(ye,Q){return null===ye?[Q]:Array.isArray(ye)?[...ye,Q]:[ye,Q]}function te(ye){return ye._rawValidators}function xe(ye){return ye._rawAsyncValidators}function Pe(ye){return ye?Array.isArray(ye)?ye:[ye]:[]}function Fe(ye,Q){return Array.isArray(ye)?ye.includes(Q):ye===Q}function q(ye,Q){const ae=Pe(Q);return Pe(ye).forEach(Yt=>{Fe(ae,Yt)||ae.push(Yt)}),ae}function j(ye,Q){return Pe(Q).filter(ae=>!Fe(ye,ae))}class we{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=F(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,ae){return!!this.control&&this.control.hasError(Q,ae)}getError(Q,ae){return this.control?this.control.getError(Q,ae):null}}class Ae extends we{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class le extends we{get formDirective(){return null}get path(){return null}}class We{constructor(Q){this._cd=Q}is(Q){var ae,Qe,Yt;return"submitted"===Q?!!(null===(ae=this._cd)||void 0===ae?void 0:ae.submitted):!!(null===(Yt=null===(Qe=this._cd)||void 0===Qe?void 0:Qe.control)||void 0===Yt?void 0:Yt[Q])}}let Ve=(()=>{class ye extends We{constructor(ae){super(ae)}}return ye.\u0275fac=function(ae){return new(ae||ye)(e.Y36(Ae,2))},ye.\u0275dir=e.lG2({type:ye,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ae,Qe){2&ae&&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]}),ye})(),ue=(()=>{class ye extends We{constructor(ae){super(ae)}}return ye.\u0275fac=function(ae){return new(ae||ye)(e.Y36(le,10))},ye.\u0275dir=e.lG2({type:ye,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ae,Qe){2&ae&&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]}),ye})();function wt(ye,Q){return[...Q.path,ye]}function Bt(ye,Q){jt(ye,Q),Q.valueAccessor.writeValue(ye.value),function(ye,Q){Q.valueAccessor.registerOnChange(ae=>{ye._pendingValue=ae,ye._pendingChange=!0,ye._pendingDirty=!0,"change"===ye.updateOn&&di(ye,Q)})}(ye,Q),function(ye,Q){const ae=(Qe,Yt)=>{Q.valueAccessor.writeValue(Qe),Yt&&Q.viewToModelUpdate(Qe)};ye.registerOnChange(ae),Q._registerOnDestroy(()=>{ye._unregisterOnChange(ae)})}(ye,Q),function(ye,Q){Q.valueAccessor.registerOnTouched(()=>{ye._pendingTouched=!0,"blur"===ye.updateOn&&ye._pendingChange&&di(ye,Q),"submit"!==ye.updateOn&&ye.markAsTouched()})}(ye,Q),function(ye,Q){if(Q.valueAccessor.setDisabledState){const ae=Qe=>{Q.valueAccessor.setDisabledState(Qe)};ye.registerOnDisabledChange(ae),Q._registerOnDestroy(()=>{ye._unregisterOnDisabledChange(ae)})}}(ye,Q)}function Nt(ye,Q,ae=!0){const Qe=()=>{};Q.valueAccessor&&(Q.valueAccessor.registerOnChange(Qe),Q.valueAccessor.registerOnTouched(Qe)),ti(ye,Q),ye&&(Q._invokeOnDestroyCallbacks(),ye._registerOnCollectionChange(()=>{}))}function Vt(ye,Q){ye.forEach(ae=>{ae.registerOnValidatorChange&&ae.registerOnValidatorChange(Q)})}function jt(ye,Q){const ae=te(ye);null!==Q.validator?ye.setValidators(B(ae,Q.validator)):"function"==typeof ae&&ye.setValidators([ae]);const Qe=xe(ye);null!==Q.asyncValidator?ye.setAsyncValidators(B(Qe,Q.asyncValidator)):"function"==typeof Qe&&ye.setAsyncValidators([Qe]);const Yt=()=>ye.updateValueAndValidity();Vt(Q._rawValidators,Yt),Vt(Q._rawAsyncValidators,Yt)}function ti(ye,Q){let ae=!1;if(null!==ye){if(null!==Q.validator){const Yt=te(ye);if(Array.isArray(Yt)&&Yt.length>0){const mi=Yt.filter(Ct=>Ct!==Q.validator);mi.length!==Yt.length&&(ae=!0,ye.setValidators(mi))}}if(null!==Q.asyncValidator){const Yt=xe(ye);if(Array.isArray(Yt)&&Yt.length>0){const mi=Yt.filter(Ct=>Ct!==Q.asyncValidator);mi.length!==Yt.length&&(ae=!0,ye.setAsyncValidators(mi))}}}const Qe=()=>{};return Vt(Q._rawValidators,Qe),Vt(Q._rawAsyncValidators,Qe),ae}function di(ye,Q){ye._pendingDirty&&ye.markAsDirty(),ye.setValue(ye._pendingValue,{emitModelToViewChange:!1}),Q.viewToModelUpdate(ye._pendingValue),ye._pendingChange=!1}function Se(ye,Q){jt(ye,Q)}function et(ye,Q){if(!ye.hasOwnProperty("model"))return!1;const ae=ye.model;return!!ae.isFirstChange()||!Object.is(Q,ae.currentValue)}function Rt(ye,Q){ye._syncPendingControls(),Q.forEach(ae=>{const Qe=ae.control;"submit"===Qe.updateOn&&Qe._pendingChange&&(ae.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1)})}function Xt(ye,Q){if(!Q)return null;let ae,Qe,Yt;return Array.isArray(Q),Q.forEach(mi=>{mi.constructor===D?ae=mi:function(ye){return Object.getPrototypeOf(ye.constructor)===c}(mi)?Qe=mi:Yt=mi}),Yt||Qe||ae||null}function lt(ye,Q){const ae=ye.indexOf(Q);ae>-1&&ye.splice(ae,1)}const Be="VALID",rt="INVALID",ot="PENDING",At="DISABLED";function Ut(ye){return(ci(ye)?ye.validators:ye)||null}function Ft(ye){return Array.isArray(ye)?b(ye):ye||null}function Si(ye,Q){return(ci(Q)?Q.asyncValidators:ye)||null}function ai(ye){return Array.isArray(ye)?F(ye):ye||null}function ci(ye){return null!=ye&&!Array.isArray(ye)&&"object"==typeof ye}class rn{constructor(Q,ae){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=ae,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===Be}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(q(Q,this._rawValidators))}addAsyncValidators(Q){this.setAsyncValidators(q(Q,this._rawAsyncValidators))}removeValidators(Q){this.setValidators(j(Q,this._rawValidators))}removeAsyncValidators(Q){this.setAsyncValidators(j(Q,this._rawAsyncValidators))}hasValidator(Q){return Fe(this._rawValidators,Q)}hasAsyncValidator(Q){return Fe(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(ae=>{ae.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(ae=>{ae.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 ae=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:ae})),this._onDisabledChange.forEach(Qe=>Qe(!0))}enable(Q={}){const ae=this._parentMarkedDirty(Q.onlySelf);this.status=Be,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:ae})),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===Be||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(ae=>ae._updateTreeValidity(Q)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Q.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?At:Be}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Q){if(this.asyncValidator){this.status=ot,this._hasOwnPendingAsyncValidator=!0;const ae=u(this.asyncValidator(this));this._asyncValidationSubscription=ae.subscribe(Qe=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Qe,{emitEvent:Q})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Q,ae={}){this.errors=Q,this._updateControlsErrors(!1!==ae.emitEvent)}get(Q){return function(ye,Q,ae){if(null==Q||(Array.isArray(Q)||(Q=Q.split(".")),Array.isArray(Q)&&0===Q.length))return null;let Qe=ye;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,ae){const Qe=ae?this.get(ae):this;return Qe&&Qe.errors?Qe.errors[Q]:null}hasError(Q,ae){return!!this.getError(Q,ae)}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:Be}_anyControlsHaveStatus(Q){return this._anyControls(ae=>ae.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,ae,Qe){super(Ut(ae),Si(Qe,ae)),this._onChange=[],this._applyFormState(Q),this._setUpdateStrategy(ae),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(Q,ae={}){this.value=this._pendingValue=Q,this._onChange.length&&!1!==ae.emitModelToViewChange&&this._onChange.forEach(Qe=>Qe(this.value,!1!==ae.emitViewToModelChange)),this.updateValueAndValidity(ae)}patchValue(Q,ae={}){this.setValue(Q,ae)}reset(Q=null,ae={}){this._applyFormState(Q),this.markAsPristine(ae),this.markAsUntouched(ae),this.setValue(this.value,ae),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,ae,Qe){super(Ut(ae),Si(Qe,ae)),this.controls=Q,this._initObservables(),this._setUpdateStrategy(ae),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Q,ae){return this.controls[Q]?this.controls[Q]:(this.controls[Q]=ae,ae.setParent(this),ae._registerOnCollectionChange(this._onCollectionChange),ae)}addControl(Q,ae,Qe={}){this.registerControl(Q,ae),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}removeControl(Q,ae={}){this.controls[Q]&&this.controls[Q]._registerOnCollectionChange(()=>{}),delete this.controls[Q],this.updateValueAndValidity({emitEvent:ae.emitEvent}),this._onCollectionChange()}setControl(Q,ae,Qe={}){this.controls[Q]&&this.controls[Q]._registerOnCollectionChange(()=>{}),delete this.controls[Q],ae&&this.registerControl(Q,ae),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}contains(Q){return this.controls.hasOwnProperty(Q)&&this.controls[Q].enabled}setValue(Q,ae={}){this._checkAllValuesPresent(Q),Object.keys(Q).forEach(Qe=>{this._throwIfControlMissing(Qe),this.controls[Qe].setValue(Q[Qe],{onlySelf:!0,emitEvent:ae.emitEvent})}),this.updateValueAndValidity(ae)}patchValue(Q,ae={}){null!=Q&&(Object.keys(Q).forEach(Qe=>{this.controls[Qe]&&this.controls[Qe].patchValue(Q[Qe],{onlySelf:!0,emitEvent:ae.emitEvent})}),this.updateValueAndValidity(ae))}reset(Q={},ae={}){this._forEachChild((Qe,Yt)=>{Qe.reset(Q[Yt],{onlySelf:!0,emitEvent:ae.emitEvent})}),this._updatePristine(ae),this._updateTouched(ae),this.updateValueAndValidity(ae)}getRawValue(){return this._reduceChildren({},(Q,ae,Qe)=>(Q[Qe]=ae instanceof Vi?ae.value:ae.getRawValue(),Q))}_syncPendingControls(){let Q=this._reduceChildren(!1,(ae,Qe)=>!!Qe._syncPendingControls()||ae);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(ae=>{const Qe=this.controls[ae];Qe&&Q(Qe,ae)})}_setUpControls(){this._forEachChild(Q=>{Q.setParent(this),Q._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Q){for(const ae of Object.keys(this.controls)){const Qe=this.controls[ae];if(this.contains(ae)&&Q(Qe))return!0}return!1}_reduceValue(){return this._reduceChildren({},(Q,ae,Qe)=>((ae.enabled||this.disabled)&&(Q[Qe]=ae.value),Q))}_reduceChildren(Q,ae){let Qe=Q;return this._forEachChild((Yt,mi)=>{Qe=ae(Qe,Yt,mi)}),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((ae,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,ae,Qe){super(Ut(ae),Si(Qe,ae)),this.controls=Q,this._initObservables(),this._setUpdateStrategy(ae),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Q){return this.controls[Q]}push(Q,ae={}){this.controls.push(Q),this._registerControl(Q),this.updateValueAndValidity({emitEvent:ae.emitEvent}),this._onCollectionChange()}insert(Q,ae,Qe={}){this.controls.splice(Q,0,ae),this._registerControl(ae),this.updateValueAndValidity({emitEvent:Qe.emitEvent})}removeAt(Q,ae={}){this.controls[Q]&&this.controls[Q]._registerOnCollectionChange(()=>{}),this.controls.splice(Q,1),this.updateValueAndValidity({emitEvent:ae.emitEvent})}setControl(Q,ae,Qe={}){this.controls[Q]&&this.controls[Q]._registerOnCollectionChange(()=>{}),this.controls.splice(Q,1),ae&&(this.controls.splice(Q,0,ae),this._registerControl(ae)),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Q,ae={}){this._checkAllValuesPresent(Q),Q.forEach((Qe,Yt)=>{this._throwIfControlMissing(Yt),this.at(Yt).setValue(Qe,{onlySelf:!0,emitEvent:ae.emitEvent})}),this.updateValueAndValidity(ae)}patchValue(Q,ae={}){null!=Q&&(Q.forEach((Qe,Yt)=>{this.at(Yt)&&this.at(Yt).patchValue(Qe,{onlySelf:!0,emitEvent:ae.emitEvent})}),this.updateValueAndValidity(ae))}reset(Q=[],ae={}){this._forEachChild((Qe,Yt)=>{Qe.reset(Q[Yt],{onlySelf:!0,emitEvent:ae.emitEvent})}),this._updatePristine(ae),this._updateTouched(ae),this.updateValueAndValidity(ae)}getRawValue(){return this.controls.map(Q=>Q instanceof Vi?Q.value:Q.getRawValue())}clear(Q={}){this.controls.length<1||(this._forEachChild(ae=>ae._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Q.emitEvent}))}_syncPendingControls(){let Q=this.controls.reduce((ae,Qe)=>!!Qe._syncPendingControls()||ae,!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((ae,Qe)=>{Q(ae,Qe)})}_updateValue(){this.value=this.controls.filter(Q=>Q.enabled||this.disabled).map(Q=>Q.value)}_anyControls(Q){return this.controls.some(ae=>ae.enabled&&Q(ae))}_setUpControls(){this._forEachChild(Q=>this._registerControl(Q))}_checkAllValuesPresent(Q){this._forEachChild((ae,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:le,useExisting:(0,e.Gpc)(()=>be)},mt=(()=>Promise.resolve(null))();let be=(()=>{class ye extends le{constructor(ae,Qe){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new e.vpe,this.form=new Di({},b(ae),F(Qe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ae){mt.then(()=>{const Qe=this._findContainer(ae.path);ae.control=Qe.registerControl(ae.name,ae.control),Bt(ae.control,ae),ae.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(ae)})}getControl(ae){return this.form.get(ae.path)}removeControl(ae){mt.then(()=>{const Qe=this._findContainer(ae.path);Qe&&Qe.removeControl(ae.name),lt(this._directives,ae)})}addFormGroup(ae){mt.then(()=>{const Qe=this._findContainer(ae.path),Yt=new Di({});Se(Yt,ae),Qe.registerControl(ae.name,Yt),Yt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ae){mt.then(()=>{const Qe=this._findContainer(ae.path);Qe&&Qe.removeControl(ae.name)})}getFormGroup(ae){return this.form.get(ae.path)}updateModel(ae,Qe){mt.then(()=>{this.form.get(ae.path).setValue(Qe)})}setValue(ae){this.control.setValue(ae)}onSubmit(ae){return this.submitted=!0,Rt(this.form,this._directives),this.ngSubmit.emit(ae),!1}onReset(){this.resetForm()}resetForm(ae){this.form.reset(ae),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(ae){return ae.pop(),ae.length?this.form.get(ae):this.form}}return ye.\u0275fac=function(ae){return new(ae||ye)(e.Y36(G,10),e.Y36(W,10))},ye.\u0275dir=e.lG2({type:ye,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ae,Qe){1&ae&&e.NdJ("submit",function(mi){return Qe.onSubmit(mi)})("reset",function(){return Qe.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ke]),e.qOj]}),ye})();const Pi={provide:Ae,useExisting:(0,e.Gpc)(()=>Ki)},Ii=(()=>Promise.resolve(null))();let Ki=(()=>{class ye extends Ae{constructor(ae,Qe,Yt,mi){super(),this.control=new Vi,this._registered=!1,this.update=new e.vpe,this._parent=ae,this._setValidators(Qe),this._setAsyncValidators(Yt),this.valueAccessor=Xt(0,mi)}ngOnChanges(ae){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in ae&&this._updateDisabled(ae),et(ae,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(ae){this.viewModel=ae,this.update.emit(ae)}_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(ae){Ii.then(()=>{this.control.setValue(ae,{emitViewToModelChange:!1})})}_updateDisabled(ae){const Qe=ae.isDisabled.currentValue,Yt=""===Qe||Qe&&"false"!==Qe;Ii.then(()=>{Yt&&!this.control.disabled?this.control.disable():!Yt&&this.control.disabled&&this.control.enable()})}}return ye.\u0275fac=function(ae){return new(ae||ye)(e.Y36(le,9),e.Y36(G,10),e.Y36(W,10),e.Y36(R,10))},ye.\u0275dir=e.lG2({type:ye,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([Pi]),e.qOj,e.TTD]}),ye})(),at=(()=>{class ye{}return ye.\u0275fac=function(ae){return new(ae||ye)},ye.\u0275dir=e.lG2({type:ye,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ye})();const Qt={provide:R,useExisting:(0,e.Gpc)(()=>gt),multi:!0};let gt=(()=>{class ye extends c{writeValue(ae){this.setProperty("value",null==ae?"":ae)}registerOnChange(ae){this.onChange=Qe=>{ae(""==Qe?null:parseFloat(Qe))}}}return ye.\u0275fac=function(){let Q;return function(Qe){return(Q||(Q=e.n5z(ye)))(Qe||ye)}}(),ye.\u0275dir=e.lG2({type:ye,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ae,Qe){1&ae&&e.NdJ("input",function(mi){return Qe.onChange(mi.target.value)})("blur",function(){return Qe.onTouched()})},features:[e._Bn([Qt]),e.qOj]}),ye})(),Ci=(()=>{class ye{}return ye.\u0275fac=function(ae){return new(ae||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({}),ye})();const pn=new e.OlP("NgModelWithFormControlWarning"),Rn={provide:Ae,useExisting:(0,e.Gpc)(()=>xr)};let xr=(()=>{class ye extends Ae{constructor(ae,Qe,Yt,mi){super(),this._ngModelWarningConfig=mi,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(ae),this._setAsyncValidators(Qe),this.valueAccessor=Xt(0,Yt)}set isDisabled(ae){}ngOnChanges(ae){if(this._isControlChanged(ae)){const Qe=ae.form.previousValue;Qe&&Nt(Qe,this,!1),Bt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}et(ae,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Nt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(ae){this.viewModel=ae,this.update.emit(ae)}_isControlChanged(ae){return ae.hasOwnProperty("form")}}return ye._ngModelWarningSentOnce=!1,ye.\u0275fac=function(ae){return new(ae||ye)(e.Y36(G,10),e.Y36(W,10),e.Y36(R,10),e.Y36(pn,8))},ye.\u0275dir=e.lG2({type:ye,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Rn]),e.qOj,e.TTD]}),ye})();const wi={provide:le,useExisting:(0,e.Gpc)(()=>Fi)};let Fi=(()=>{class ye extends le{constructor(ae,Qe){super(),this.validators=ae,this.asyncValidators=Qe,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(ae),this._setAsyncValidators(Qe)}ngOnChanges(ae){this._checkFormPresent(),ae.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(ae){const Qe=this.form.get(ae.path);return Bt(Qe,ae),Qe.updateValueAndValidity({emitEvent:!1}),this.directives.push(ae),Qe}getControl(ae){return this.form.get(ae.path)}removeControl(ae){Nt(ae.control||null,ae,!1),lt(this.directives,ae)}addFormGroup(ae){this._setUpFormContainer(ae)}removeFormGroup(ae){this._cleanUpFormContainer(ae)}getFormGroup(ae){return this.form.get(ae.path)}addFormArray(ae){this._setUpFormContainer(ae)}removeFormArray(ae){this._cleanUpFormContainer(ae)}getFormArray(ae){return this.form.get(ae.path)}updateModel(ae,Qe){this.form.get(ae.path).setValue(Qe)}onSubmit(ae){return this.submitted=!0,Rt(this.form,this.directives),this.ngSubmit.emit(ae),!1}onReset(){this.resetForm()}resetForm(ae){this.form.reset(ae),this.submitted=!1}_updateDomValue(){this.directives.forEach(ae=>{const Qe=ae.control,Yt=this.form.get(ae.path);Qe!==Yt&&(Nt(Qe||null,ae),Yt instanceof Vi&&(Bt(Yt,ae),ae.control=Yt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ae){const Qe=this.form.get(ae.path);Se(Qe,ae),Qe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ae){if(this.form){const Qe=this.form.get(ae.path);Qe&&function(ye,Q){return ti(ye,Q)}(Qe,ae)&&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 ye.\u0275fac=function(ae){return new(ae||ye)(e.Y36(G,10),e.Y36(W,10))},ye.\u0275dir=e.lG2({type:ye,selectors:[["","formGroup",""]],hostBindings:function(ae,Qe){1&ae&&e.NdJ("submit",function(mi){return Qe.onSubmit(mi)})("reset",function(){return Qe.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([wi]),e.qOj,e.TTD]}),ye})();const ba={provide:Ae,useExisting:(0,e.Gpc)(()=>xa)};let xa=(()=>{class ye extends Ae{constructor(ae,Qe,Yt,mi,Ct){super(),this._ngModelWarningConfig=Ct,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=ae,this._setValidators(Qe),this._setAsyncValidators(Yt),this.valueAccessor=Xt(0,mi)}set isDisabled(ae){}ngOnChanges(ae){this._added||this._setUpControl(),et(ae,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(ae){this.viewModel=ae,this.update.emit(ae)}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 ye._ngModelWarningSentOnce=!1,ye.\u0275fac=function(ae){return new(ae||ye)(e.Y36(le,13),e.Y36(G,10),e.Y36(W,10),e.Y36(R,10),e.Y36(pn,8))},ye.\u0275dir=e.lG2({type:ye,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([ba]),e.qOj,e.TTD]}),ye})();function _n(ye){return"number"==typeof ye?ye:parseFloat(ye)}let Kn=(()=>{class ye{constructor(){this._validator=a}ngOnChanges(ae){if(this.inputName in ae){const Qe=this.normalizeInput(ae[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(Qe):a,this._onChange&&this._onChange()}}validate(ae){return this._validator(ae)}registerOnValidatorChange(ae){this._onChange=ae}enabled(){return null!=this[this.inputName]}}return ye.\u0275fac=function(ae){return new(ae||ye)},ye.\u0275dir=e.lG2({type:ye,features:[e.TTD]}),ye})();const Dr={provide:G,useExisting:(0,e.Gpc)(()=>Jr),multi:!0};let Jr=(()=>{class ye extends Kn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=ae=>_n(ae),this.createValidator=ae=>fe(ae)}}return ye.\u0275fac=function(){let Q;return function(Qe){return(Q||(Q=e.n5z(ye)))(Qe||ye)}}(),ye.\u0275dir=e.lG2({type:ye,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(ae,Qe){2&ae&&e.uIk("max",Qe.enabled()?Qe.max:null)},inputs:{max:"max"},features:[e._Bn([Dr]),e.qOj]}),ye})();const Ga={provide:G,useExisting:(0,e.Gpc)(()=>Pr),multi:!0};let Pr=(()=>{class ye extends Kn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=ae=>_n(ae),this.createValidator=ae=>_e(ae)}}return ye.\u0275fac=function(){let Q;return function(Qe){return(Q||(Q=e.n5z(ye)))(Qe||ye)}}(),ye.\u0275dir=e.lG2({type:ye,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(ae,Qe){2&ae&&e.uIk("min",Qe.enabled()?Qe.min:null)},inputs:{min:"min"},features:[e._Bn([Ga]),e.qOj]}),ye})();const Na={provide:G,useExisting:(0,e.Gpc)(()=>Vr),multi:!0},Ca={provide:G,useExisting:(0,e.Gpc)(()=>er),multi:!0};let Vr=(()=>{class ye{constructor(){this._required=!1}get required(){return this._required}set required(ae){this._required=null!=ae&&!1!==ae&&"false"!=`${ae}`,this._onChange&&this._onChange()}validate(ae){return this.required?de(ae):null}registerOnValidatorChange(ae){this._onChange=ae}}return ye.\u0275fac=function(ae){return new(ae||ye)},ye.\u0275dir=e.lG2({type:ye,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ae,Qe){2&ae&&e.uIk("required",Qe.required?"":null)},inputs:{required:"required"},features:[e._Bn([Na])]}),ye})(),er=(()=>{class ye extends Vr{validate(ae){return this.required?ne(ae):null}}return ye.\u0275fac=function(){let Q;return function(Qe){return(Q||(Q=e.n5z(ye)))(Qe||ye)}}(),ye.\u0275dir=e.lG2({type:ye,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(ae,Qe){2&ae&&e.uIk("required",Qe.required?"":null)},features:[e._Bn([Ca]),e.qOj]}),ye})(),ra=(()=>{class ye{}return ye.\u0275fac=function(ae){return new(ae||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[[Ci]]}),ye})(),pa=(()=>{class ye{}return ye.\u0275fac=function(ae){return new(ae||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[ra]}),ye})(),Zn=(()=>{class ye{static withConfig(ae){return{ngModule:ye,providers:[{provide:pn,useValue:ae.warnOnNgModelWithFormControl}]}}}return ye.\u0275fac=function(ae){return new(ae||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({imports:[ra]}),ye})(),Ya=(()=>{class ye{group(ae,Qe=null){const Yt=this._reduceControls(ae);let ei,mi=null,Ct=null;return null!=Qe&&(function(ye){return void 0!==ye.asyncValidators||void 0!==ye.validators||void 0!==ye.updateOn}(Qe)?(mi=null!=Qe.validators?Qe.validators:null,Ct=null!=Qe.asyncValidators?Qe.asyncValidators:null,ei=null!=Qe.updateOn?Qe.updateOn:void 0):(mi=null!=Qe.validator?Qe.validator:null,Ct=null!=Qe.asyncValidator?Qe.asyncValidator:null)),new Di(Yt,{asyncValidators:Ct,updateOn:ei,validators:mi})}control(ae,Qe,Yt){return new Vi(ae,Qe,Yt)}array(ae,Qe,Yt){const mi=ae.map(Ct=>this._createControl(Ct));return new Xi(mi,Qe,Yt)}_reduceControls(ae){const Qe={};return Object.keys(ae).forEach(Yt=>{Qe[Yt]=this._createControl(ae[Yt])}),Qe}_createControl(ae){return ae instanceof Vi||ae instanceof Di||ae instanceof Xi?ae:Array.isArray(ae)?this.control(ae[0],ae.length>1?ae[1]:null,ae.length>2?ae[2]:null):this.control(ae)}}return ye.\u0275fac=function(ae){return new(ae||ye)},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac,providedIn:Zn}),ye})()},1079:(Ue,K,m)=>{"use strict";m.d(K,{XC:()=>x,Bb:()=>q,ZL:()=>xe});var e=m(5664),t=m(3191),v=m(5e3),M=m(508),s=m(727),C=m(7579),c=m(9770),R=m(6451),o=m(9646),O=m(4968),T=m(925),P=m(9808),S=m(9776),D=m(5303),w=m(1159),U=m(7429),G=m(3075),W=m(7322),ee=m(5698),ie=m(3900),_e=m(9300),fe=m(4004),de=m(8505),ne=m(4086),se=m(226);const oe=["panel"];function y(j,we){if(1&j&&(v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA()),2&j){const Ae=we.id,le=v.oxw();v.Q6J("id",le.id)("ngClass",le._classList),v.uIk("aria-label",le.ariaLabel||null)("aria-labelledby",le._getPanelAriaLabelledby(Ae))}}const i=["*"];let a=0;class p{constructor(we,Ae){this.source=we,this.option=Ae}}const u=(0,M.Kr)(class{}),_=new v.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let I=(()=>{class j extends u{constructor(Ae,le,We,yt){super(),this._changeDetectorRef=Ae,this._elementRef=le,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==yt?void 0:yt.SAFARI)||!1,this._autoActiveFirstOption=!!We.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Ae){this._autoActiveFirstOption=(0,t.Ig)(Ae)}set classList(Ae){this._classList=Ae&&Ae.length?(0,t.du)(Ae).reduce((le,We)=>(le[We]=!0,le),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Ae=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Ae]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Ae){this.panel&&(this.panel.nativeElement.scrollTop=Ae)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Ae){const le=new p(this,Ae);this.optionSelected.emit(le)}_getPanelAriaLabelledby(Ae){return this.ariaLabel?null:this.ariaLabelledby?(Ae?Ae+" ":"")+this.ariaLabelledby:Ae}_setVisibilityClasses(Ae){Ae[this._visibleClass]=this.showPanel,Ae[this._hiddenClass]=!this.showPanel}}return j.\u0275fac=function(Ae){return new(Ae||j)(v.Y36(v.sBO),v.Y36(v.SBq),v.Y36(_),v.Y36(T.t4))},j.\u0275dir=v.lG2({type:j,viewQuery:function(Ae,le){if(1&Ae&&(v.Gf(v.Rgc,7),v.Gf(oe,5)),2&Ae){let We;v.iGM(We=v.CRH())&&(le.template=We.first),v.iGM(We=v.CRH())&&(le.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]}),j})(),x=(()=>{class j extends I{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return j.\u0275fac=function(){let we;return function(le){return(we||(we=v.n5z(j)))(le||j)}}(),j.\u0275cmp=v.Xpm({type:j,selectors:[["mat-autocomplete"]],contentQueries:function(Ae,le,We){if(1&Ae&&(v.Suo(We,M.K7,5),v.Suo(We,M.ey,5)),2&Ae){let yt;v.iGM(yt=v.CRH())&&(le.optionGroups=yt),v.iGM(yt=v.CRH())&&(le.options=yt)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[v._Bn([{provide:M.HF,useExisting:j}]),v.qOj],ngContentSelectors:i,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Ae,le){1&Ae&&(v.F$t(),v.YNc(0,y,3,4,"ng-template"))},directives:[P.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}),j})();const r=new v.OlP("mat-autocomplete-scroll-strategy"),J={provide:r,deps:[S.aV],useFactory:function(j){return()=>j.scrollStrategies.reposition()}},F={provide:G.JU,useExisting:(0,v.Gpc)(()=>xe),multi:!0};let te=(()=>{class j{constructor(Ae,le,We,yt,Ne,Ve,ue,Te,ke,Y,X){this._element=Ae,this._overlay=le,this._viewContainerRef=We,this._zone=yt,this._changeDetectorRef=Ne,this._dir=ue,this._formField=Te,this._document=ke,this._viewportRuler=Y,this._defaults=X,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=s.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new C.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,R.T)(...this.autocomplete.options.map(he=>he.onSelectionChange)):this._zone.onStable.pipe((0,ee.q)(1),(0,ie.w)(()=>this.optionSelections))),this._scrollStrategy=Ve}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Ae){this._autocompleteDisabled=(0,t.Ig)(Ae)}ngAfterViewInit(){const Ae=this._getWindow();void 0!==Ae&&this._zone.runOutsideAngular(()=>Ae.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Ae){Ae.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Ae=this._getWindow();void 0!==Ae&&Ae.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,R.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,_e.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,_e.h)(()=>this._overlayAttached)):(0,o.of)()).pipe((0,fe.U)(Ae=>Ae instanceof M.rN?Ae:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,R.T)((0,O.R)(this._document,"click"),(0,O.R)(this._document,"auxclick"),(0,O.R)(this._document,"touchend")).pipe((0,_e.h)(Ae=>{const le=(0,T.sA)(Ae),We=this._formField?this._formField._elementRef.nativeElement:null,yt=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&le!==this._element.nativeElement&&(!We||!We.contains(le))&&(!yt||!yt.contains(le))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(le)}))}writeValue(Ae){Promise.resolve(null).then(()=>this._setTriggerValue(Ae))}registerOnChange(Ae){this._onChange=Ae}registerOnTouched(Ae){this._onTouched=Ae}setDisabledState(Ae){this._element.nativeElement.disabled=Ae}_handleKeydown(Ae){const le=Ae.keyCode;if(le===w.hY&&!(0,w.Vb)(Ae)&&Ae.preventDefault(),this.activeOption&&le===w.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Ae.preventDefault();else if(this.autocomplete){const We=this.autocomplete._keyManager.activeItem,yt=le===w.LH||le===w.JH;this.panelOpen||le===w.Mf?this.autocomplete._keyManager.onKeydown(Ae):yt&&this._canOpen()&&this.openPanel(),(yt||this.autocomplete._keyManager.activeItem!==We)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(Ae){let le=Ae.target,We=le.value;"number"===le.type&&(We=""==We?null:parseFloat(We)),this._previousValue!==We&&(this._previousValue=We,this._onChange(We),this._canOpen()&&this._document.activeElement===Ae.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(Ae=!1){this._formField&&"auto"===this._formField.floatLabel&&(Ae?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Ae=this._zone.onStable.pipe((0,ee.q)(1)),le=this.autocomplete.options.changes.pipe((0,de.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ne.g)(0));return(0,R.T)(Ae,le).pipe((0,ie.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,ee.q)(1)).subscribe(We=>this._setValueAndClose(We))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(Ae){const le=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Ae):Ae,We=null!=le?le:"";this._formField?this._formField._control.value=We:this._element.nativeElement.value=We,this._previousValue=We}_setValueAndClose(Ae){Ae&&Ae.source&&(this._clearPreviousSelectedOption(Ae.source),this._setTriggerValue(Ae.source.value),this._onChange(Ae.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(Ae.source)),this.closePanel()}_clearPreviousSelectedOption(Ae){this.autocomplete.options.forEach(le=>{le!==Ae&&le.selected&&le.deselect()})}_attachOverlay(){var Ae;let le=this._overlayRef;le?(this._positionStrategy.setOrigin(this._getConnectedElement()),le.updateSize({width:this._getPanelWidth()})):(this._portal=new U.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(Ae=this._formField)||void 0===Ae?void 0:Ae.getLabelId()}),le=this._overlay.create(this._getOverlayConfig()),this._overlayRef=le,le.keydownEvents().subscribe(yt=>{(yt.keyCode===w.hY&&!(0,w.Vb)(yt)||yt.keyCode===w.LH&&(0,w.Vb)(yt,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),yt.stopPropagation(),yt.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&le&&le.updateSize({width:this._getPanelWidth()})})),le&&!le.hasAttached()&&(le.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 Ae;return new S.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(Ae=this._defaults)||void 0===Ae?void 0:Ae.overlayPanelClass})}_getOverlayPosition(){const Ae=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Ae),this._positionStrategy=Ae,Ae}_setStrategyPositions(Ae){const le=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],We=this._aboveClass,yt=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:We},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:We}];let Ne;Ne="above"===this.position?yt:"below"===this.position?le:[...le,...yt],Ae.withPositions(Ne)}_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 Ae=this.autocomplete;Ae.autoActiveFirstOption?Ae._keyManager.setFirstItemActive():Ae._keyManager.setActiveItem(-1)}_canOpen(){const Ae=this._element.nativeElement;return!Ae.readOnly&&!Ae.disabled&&!this._autocompleteDisabled}_getWindow(){var Ae;return(null===(Ae=this._document)||void 0===Ae?void 0:Ae.defaultView)||window}_scrollToOption(Ae){const le=this.autocomplete,We=(0,M.CB)(Ae,le.options,le.optionGroups);if(0===Ae&&1===We)le._setScrollTop(0);else if(le.panel){const yt=le.options.toArray()[Ae];if(yt){const Ne=yt._getHostElement(),Ve=(0,M.jH)(Ne.offsetTop,Ne.offsetHeight,le._getScrollTop(),le.panel.nativeElement.offsetHeight);le._setScrollTop(Ve)}}}}return j.\u0275fac=function(Ae){return new(Ae||j)(v.Y36(v.SBq),v.Y36(S.aV),v.Y36(v.s_b),v.Y36(v.R0b),v.Y36(v.sBO),v.Y36(r),v.Y36(se.Is,8),v.Y36(W.G_,9),v.Y36(P.K0,8),v.Y36(D.rL),v.Y36(_,8))},j.\u0275dir=v.lG2({type:j,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[v.TTD]}),j})(),xe=(()=>{class j extends te{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return j.\u0275fac=function(){let we;return function(le){return(we||(we=v.n5z(j)))(le||j)}}(),j.\u0275dir=v.lG2({type:j,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Ae,le){1&Ae&&v.NdJ("focusin",function(){return le._handleFocus()})("blur",function(){return le._onTouched()})("input",function(yt){return le._handleInput(yt)})("keydown",function(yt){return le._handleKeydown(yt)}),2&Ae&&v.uIk("autocomplete",le.autocompleteAttribute)("role",le.autocompleteDisabled?null:"combobox")("aria-autocomplete",le.autocompleteDisabled?null:"list")("aria-activedescendant",le.panelOpen&&le.activeOption?le.activeOption.id:null)("aria-expanded",le.autocompleteDisabled?null:le.panelOpen.toString())("aria-owns",le.autocompleteDisabled||!le.panelOpen||null==le.autocomplete?null:le.autocomplete.id)("aria-haspopup",!le.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[v._Bn([F]),v.qOj]}),j})(),q=(()=>{class j{}return j.\u0275fac=function(Ae){return new(Ae||j)},j.\u0275mod=v.oAB({type:j}),j.\u0275inj=v.cJS({providers:[J],imports:[[S.U8,M.Ng,M.BQ,P.ez],D.ZD,M.Ng,M.BQ]}),j})()},7544:(Ue,K,m)=>{"use strict";m.d(K,{k:()=>o,g:()=>O});var e=m(5e3),t=m(508),v=m(5664),M=m(3191),s=m(6360);let C=0;const c=(0,t.Id)(class{}),R="mat-badge-content";let o=(()=>{class T extends c{constructor(S,D,w,U,G){super(),this._ngZone=S,this._elementRef=D,this._ariaDescriber=w,this._renderer=U,this._animationMode=G,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=C++,this._isInitialized=!1}get color(){return this._color}set color(S){this._setColor(S),this._color=S}get overlap(){return this._overlap}set overlap(S){this._overlap=(0,M.Ig)(S)}get content(){return this._content}set content(S){this._updateRenderedContent(S)}get description(){return this._description}set description(S){this._updateHostAriaDescription(S)}get hidden(){return this._hidden}set hidden(S){this._hidden=(0,M.Ig)(S)}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 S=this._renderer.createElement("span"),D="mat-badge-active";return S.setAttribute("id",`mat-badge-content-${this._id}`),S.setAttribute("aria-hidden","true"),S.classList.add(R),"NoopAnimations"===this._animationMode&&S.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(S),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{S.classList.add(D)})}):S.classList.add(D),S}_updateRenderedContent(S){const D=`${null!=S?S:""}`.trim();this._isInitialized&&D&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=D),this._content=D}_updateHostAriaDescription(S){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),S&&this._ariaDescriber.describe(this._elementRef.nativeElement,S),this._description=S}_setColor(S){const D=this._elementRef.nativeElement.classList;D.remove(`mat-badge-${this._color}`),S&&D.add(`mat-badge-${S}`)}_clearExistingBadges(){const S=this._elementRef.nativeElement.querySelectorAll(`:scope > .${R}`);for(const D of Array.from(S))D!==this._badgeElement&&D.remove()}}return T.\u0275fac=function(S){return new(S||T)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(v.$s),e.Y36(e.Qsj),e.Y36(s.Qb,8))},T.\u0275dir=e.lG2({type:T,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(S,D){2&S&&e.ekj("mat-badge-overlap",D.overlap)("mat-badge-above",D.isAbove())("mat-badge-below",!D.isAbove())("mat-badge-before",!D.isAfter())("mat-badge-after",D.isAfter())("mat-badge-small","small"===D.size)("mat-badge-medium","medium"===D.size)("mat-badge-large","large"===D.size)("mat-badge-hidden",D.hidden||!D.content)("mat-badge-disabled",D.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]}),T})(),O=(()=>{class T{}return T.\u0275fac=function(S){return new(S||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({imports:[[v.rt,t.BQ],t.BQ]}),T})()},7423:(Ue,K,m)=>{"use strict";m.d(K,{lW:()=>T,ot:()=>S});var e=m(5e3),t=m(508),v=m(6360),M=m(5664);const s=["mat-button",""],C=["*"],o=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],O=(0,t.pj)((0,t.Id)((0,t.Kr)(class{constructor(D){this._elementRef=D}})));let T=(()=>{class D extends O{constructor(U,G,W){super(U),this._focusMonitor=G,this._animationMode=W,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ee of o)this._hasHostAttributes(ee)&&this._getHostElement().classList.add(ee);U.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(U,G){U?this._focusMonitor.focusVia(this._getHostElement(),U,G):this._getHostElement().focus(G)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...U){return U.some(G=>this._getHostElement().hasAttribute(G))}}return D.\u0275fac=function(U){return new(U||D)(e.Y36(e.SBq),e.Y36(M.tE),e.Y36(v.Qb,8))},D.\u0275cmp=e.Xpm({type:D,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(U,G){if(1&U&&e.Gf(t.wG,5),2&U){let W;e.iGM(W=e.CRH())&&(G.ripple=W.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(U,G){2&U&&(e.uIk("disabled",G.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===G._animationMode)("mat-button-disabled",G.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:s,ngContentSelectors:C,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(U,G){1&U&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&U&&(e.xp6(2),e.ekj("mat-button-ripple-round",G.isRoundButton||G.isIconButton),e.Q6J("matRippleDisabled",G._isRippleDisabled())("matRippleCentered",G.isIconButton)("matRippleTrigger",G._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}),D})(),S=(()=>{class D{}return D.\u0275fac=function(U){return new(U||D)},D.\u0275mod=e.oAB({type:D}),D.\u0275inj=e.cJS({imports:[[t.si,t.BQ],t.BQ]}),D})()},9224:(Ue,K,m)=>{"use strict";m.d(K,{a8:()=>_e,dn:()=>O,dk:()=>fe,QW:()=>ne,$j:()=>P,n5:()=>T});var e=m(5e3),t=m(6360),v=m(508);const M=["*",[["mat-card-footer"]]],s=["*","mat-card-footer"],C=[[["","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 O=(()=>{class se{}return se.\u0275fac=function(y){return new(y||se)},se.\u0275dir=e.lG2({type:se,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),se})(),T=(()=>{class se{}return se.\u0275fac=function(y){return new(y||se)},se.\u0275dir=e.lG2({type:se,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),se})(),P=(()=>{class se{}return se.\u0275fac=function(y){return new(y||se)},se.\u0275dir=e.lG2({type:se,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),se})(),_e=(()=>{class se{constructor(y){this._animationMode=y}}return se.\u0275fac=function(y){return new(y||se)(e.Y36(t.Qb,8))},se.\u0275cmp=e.Xpm({type:se,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(M),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}),se})(),fe=(()=>{class se{}return se.\u0275fac=function(y){return new(y||se)},se.\u0275cmp=e.Xpm({type:se,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(C),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),se})(),ne=(()=>{class se{}return se.\u0275fac=function(y){return new(y||se)},se.\u0275mod=e.oAB({type:se}),se.\u0275inj=e.cJS({imports:[[v.BQ],v.BQ]}),se})()},7446:(Ue,K,m)=>{"use strict";m.d(K,{oG:()=>W,p9:()=>fe});var e=m(3191),t=m(5e3),v=m(3075),M=m(508),s=m(6360),C=m(5664),c=m(7144);const R=["input"],o=function(de){return{enterDuration:de}},O=["*"],T=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:P});function P(){return{color:"accent",clickAction:"check-indeterminate"}}let S=0;const D=P(),w={provide:v.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};class U{}const G=(0,M.sb)((0,M.pj)((0,M.Kr)((0,M.Id)(class{constructor(de){this._elementRef=de}}))));let W=(()=>{class de extends G{constructor(se,oe,y,i,a,p,u){super(se),this._changeDetectorRef=oe,this._focusMonitor=y,this._ngZone=i,this._animationMode=p,this._options=u,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++S,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||D,this.color=this.defaultColor=this._options.color||D.color,this.tabIndex=parseInt(a)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(se){this._required=(0,e.Ig)(se)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(se=>{se||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(se){se!=this.checked&&(this._checked=se,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(se){const oe=(0,e.Ig)(se);oe!==this.disabled&&(this._disabled=oe,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(se){const oe=se!=this._indeterminate;this._indeterminate=(0,e.Ig)(se),oe&&(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(se){this.checked=!!se}registerOnChange(se){this._controlValueAccessorChangeFn=se}registerOnTouched(se){this._onTouched=se}setDisabledState(se){this.disabled=se}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(se){let oe=this._currentCheckState,y=this._elementRef.nativeElement;if(oe!==se&&(this._currentAnimationClass.length>0&&y.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(oe,se),this._currentCheckState=se,this._currentAnimationClass.length>0)){y.classList.add(this._currentAnimationClass);const i=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{y.classList.remove(i)},1e3)})}}_emitChangeEvent(){const se=new U;se.source=this,se.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(se),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(se){var oe;const y=null===(oe=this._options)||void 0===oe?void 0:oe.clickAction;se.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(se,oe){se?this._focusMonitor.focusVia(this._inputElement,se,oe):this._inputElement.nativeElement.focus(oe)}_onInteractionEvent(se){se.stopPropagation()}_getAnimationClassForCheckStateTransition(se,oe){if("NoopAnimations"===this._animationMode)return"";let y="";switch(se){case 0:if(1===oe)y="unchecked-checked";else{if(3!=oe)return"";y="unchecked-indeterminate"}break;case 2:y=1===oe?"unchecked-checked":"unchecked-indeterminate";break;case 1:y=2===oe?"checked-unchecked":"checked-indeterminate";break;case 3:y=1===oe?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${y}`}_syncIndeterminate(se){const oe=this._inputElement;oe&&(oe.nativeElement.indeterminate=se)}}return de.\u0275fac=function(se){return new(se||de)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(C.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(s.Qb,8),t.Y36(T,8))},de.\u0275cmp=t.Xpm({type:de,selectors:[["mat-checkbox"]],viewQuery:function(se,oe){if(1&se&&(t.Gf(R,5),t.Gf(M.wG,5)),2&se){let y;t.iGM(y=t.CRH())&&(oe._inputElement=y.first),t.iGM(y=t.CRH())&&(oe.ripple=y.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(se,oe){2&se&&(t.Ikx("id",oe.id),t.uIk("tabindex",null),t.ekj("mat-checkbox-indeterminate",oe.indeterminate)("mat-checkbox-checked",oe.checked)("mat-checkbox-disabled",oe.disabled)("mat-checkbox-label-before","before"==oe.labelPosition)("_mat-animation-noopable","NoopAnimations"===oe._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:O,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(se,oe){if(1&se&&(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 oe._onInteractionEvent(i)})("click",function(i){return oe._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 oe._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA(),t.qZA()),2&se){const y=t.MAs(1),i=t.MAs(13);t.uIk("for",oe.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),t.xp6(1),t.Q6J("id",oe.inputId)("required",oe.required)("checked",oe.checked)("disabled",oe.disabled)("tabIndex",oe.tabIndex),t.uIk("value",oe.value)("name",oe.name)("aria-label",oe.ariaLabel||null)("aria-labelledby",oe.ariaLabelledby)("aria-checked",oe._getAriaChecked())("aria-describedby",oe.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",y)("matRippleDisabled",oe._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,o,"NoopAnimations"===oe._animationMode?0:150))}},directives:[M.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}),de})(),_e=(()=>{class de{}return de.\u0275fac=function(se){return new(se||de)},de.\u0275mod=t.oAB({type:de}),de.\u0275inj=t.cJS({}),de})(),fe=(()=>{class de{}return de.\u0275fac=function(se){return new(se||de)},de.\u0275mod=t.oAB({type:de}),de.\u0275inj=t.cJS({imports:[[M.si,M.BQ,c.Q8,_e],M.BQ,_e]}),de})()},508:(Ue,K,m)=>{"use strict";m.d(K,{yN:()=>ee,mZ:()=>ie,_A:()=>r,rD:()=>q,sG:()=>b,K7:()=>Bt,HF:()=>ft,Y2:()=>he,BQ:()=>ne,X2:()=>j,uc:()=>le,XK:()=>Pe,ey:()=>ti,Ng:()=>di,rN:()=>Oi,nP:()=>ht,us:()=>it,wG:()=>Me,si:()=>ze,LF:()=>B,IR:()=>ke,CB:()=>Ri,jH:()=>si,pj:()=>a,Kr:()=>p,Id:()=>i,FD:()=>_,dB:()=>L,sb:()=>u,E0:()=>we});var e=m(5e3),t=m(226),M=m(9808),s=m(925),C=m(5664),c=m(3191),R=m(7579),o=m(8306),O=m(8675),T=m(6360),P=m(1159);function w(He,Se){if(1&He&&e._UZ(0,"mat-pseudo-checkbox",4),2&He){const V=e.oxw();e.Q6J("state",V.selected?"checked":"unchecked")("disabled",V.disabled)}}function U(He,Se){if(1&He&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&He){const V=e.oxw();e.xp6(1),e.hij("(",V.group.label,")")}}const G=["*"];let ee=(()=>{class He{}return He.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",He.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",He.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",He.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",He})(),ie=(()=>{class He{}return He.COMPLEX="375ms",He.ENTERING="225ms",He.EXITING="195ms",He})();const de=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let ne=(()=>{class He{constructor(V,ve,Ee){this._sanityChecks=ve,this._document=Ee,this._hasDoneGlobalChecks=!1,V._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(V){return!(0,s.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[V])}}return He.\u0275fac=function(V){return new(V||He)(e.LFG(C.qm),e.LFG(de,8),e.LFG(M.K0))},He.\u0275mod=e.oAB({type:He}),He.\u0275inj=e.cJS({imports:[[t.vT],t.vT]}),He})();function i(He){return class extends He{constructor(...Se){super(...Se),this._disabled=!1}get disabled(){return this._disabled}set disabled(Se){this._disabled=(0,c.Ig)(Se)}}}function a(He,Se){return class extends He{constructor(...V){super(...V),this.defaultColor=Se,this.color=Se}get color(){return this._color}set color(V){const ve=V||this.defaultColor;ve!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ve&&this._elementRef.nativeElement.classList.add(`mat-${ve}`),this._color=ve)}}}function p(He){return class extends He{constructor(...Se){super(...Se),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Se){this._disableRipple=(0,c.Ig)(Se)}}}function u(He,Se=0){return class extends He{constructor(...V){super(...V),this._tabIndex=Se,this.defaultTabIndex=Se}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(V){this._tabIndex=null!=V?(0,c.su)(V):this.defaultTabIndex}}}function _(He){return class extends He{constructor(...Se){super(...Se),this.stateChanges=new R.x,this.errorState=!1}updateErrorState(){const Se=this.errorState,et=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);et!==Se&&(this.errorState=et,this.stateChanges.next())}}}function L(He){return class extends He{constructor(...Se){super(...Se),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new o.y(V=>{this._isInitialized?this._notifySubscriber(V):this._pendingSubscribers.push(V)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Se){Se.next(),Se.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 R.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Se){return this.isDateInstance(Se)&&this.isValid(Se)?Se:null}deserialize(Se){return null==Se||this.isDateInstance(Se)&&this.isValid(Se)?Se:this.invalid()}setLocale(Se){this.locale=Se,this._localeChanges.next()}compareDate(Se,V){return this.getYear(Se)-this.getYear(V)||this.getMonth(Se)-this.getMonth(V)||this.getDate(Se)-this.getDate(V)}sameDate(Se,V){if(Se&&V){let ve=this.isValid(Se),Ee=this.isValid(V);return ve&&Ee?!this.compareDate(Se,V):ve==Ee}return Se==V}clampDate(Se,V,ve){return V&&this.compareDate(Se,V)<0?V:ve&&this.compareDate(Se,ve)>0?ve:Se}}const b=new e.OlP("mat-date-formats"),J=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function F(He,Se){const V=Array(He);for(let ve=0;ve<He;ve++)V[ve]=Se(ve);return V}let B=(()=>{class He extends r{constructor(V,ve){super(),this.useUtcForDisplay=!1,super.setLocale(V)}getYear(V){return V.getFullYear()}getMonth(V){return V.getMonth()}getDate(V){return V.getDate()}getDayOfWeek(V){return V.getDay()}getMonthNames(V){const ve=new Intl.DateTimeFormat(this.locale,{month:V,timeZone:"utc"});return F(12,Ee=>this._format(ve,new Date(2017,Ee,1)))}getDateNames(){const V=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return F(31,ve=>this._format(V,new Date(2017,0,ve+1)))}getDayOfWeekNames(V){const ve=new Intl.DateTimeFormat(this.locale,{weekday:V,timeZone:"utc"});return F(7,Ee=>this._format(ve,new Date(2017,0,Ee+1)))}getYearName(V){const ve=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(ve,V)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(V){return this.getDate(this._createDateWithOverflow(this.getYear(V),this.getMonth(V)+1,0))}clone(V){return new Date(V.getTime())}createDate(V,ve,Ee){let et=this._createDateWithOverflow(V,ve,Ee);return et.getMonth(),et}today(){return new Date}parse(V){return"number"==typeof V?new Date(V):V?new Date(Date.parse(V)):null}format(V,ve){if(!this.isValid(V))throw Error("NativeDateAdapter: Cannot format invalid date.");const Ee=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},ve),{timeZone:"utc"}));return this._format(Ee,V)}addCalendarYears(V,ve){return this.addCalendarMonths(V,12*ve)}addCalendarMonths(V,ve){let Ee=this._createDateWithOverflow(this.getYear(V),this.getMonth(V)+ve,this.getDate(V));return this.getMonth(Ee)!=((this.getMonth(V)+ve)%12+12)%12&&(Ee=this._createDateWithOverflow(this.getYear(Ee),this.getMonth(Ee),0)),Ee}addCalendarDays(V,ve){return this._createDateWithOverflow(this.getYear(V),this.getMonth(V),this.getDate(V)+ve)}toIso8601(V){return[V.getUTCFullYear(),this._2digit(V.getUTCMonth()+1),this._2digit(V.getUTCDate())].join("-")}deserialize(V){if("string"==typeof V){if(!V)return null;if(J.test(V)){let ve=new Date(V);if(this.isValid(ve))return ve}}return super.deserialize(V)}isDateInstance(V){return V instanceof Date}isValid(V){return!isNaN(V.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(V,ve,Ee){const et=new Date;return et.setFullYear(V,ve,Ee),et.setHours(0,0,0,0),et}_2digit(V){return("00"+V).slice(-2)}_format(V,ve){const Ee=new Date;return Ee.setUTCFullYear(ve.getFullYear(),ve.getMonth(),ve.getDate()),Ee.setUTCHours(ve.getHours(),ve.getMinutes(),ve.getSeconds(),ve.getMilliseconds()),V.format(Ee)}}return He.\u0275fac=function(V){return new(V||He)(e.LFG(I,8),e.LFG(s.t4))},He.\u0275prov=e.Yz7({token:He,factory:He.\u0275fac}),He})();const te={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 He{}return He.\u0275fac=function(V){return new(V||He)},He.\u0275mod=e.oAB({type:He}),He.\u0275inj=e.cJS({providers:[{provide:r,useClass:B}],imports:[[s.ud]]}),He})(),Pe=(()=>{class He{}return He.\u0275fac=function(V){return new(V||He)},He.\u0275mod=e.oAB({type:He}),He.\u0275inj=e.cJS({providers:[{provide:b,useValue:te}],imports:[[xe]]}),He})(),q=(()=>{class He{isErrorState(V,ve){return!!(V&&V.invalid&&(V.touched||ve&&ve.submitted))}}return He.\u0275fac=function(V){return new(V||He)},He.\u0275prov=e.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})(),j=(()=>{class He{}return He.\u0275fac=function(V){return new(V||He)},He.\u0275dir=e.lG2({type:He,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),He})();function we(He,Se,V="mat"){He.changes.pipe((0,O.O)(He)).subscribe(({length:ve})=>{Ae(Se,`${V}-2-line`,!1),Ae(Se,`${V}-3-line`,!1),Ae(Se,`${V}-multi-line`,!1),2===ve||3===ve?Ae(Se,`${V}-${ve}-line`,!0):ve>3&&Ae(Se,`${V}-multi-line`,!0)})}function Ae(He,Se,V){He.nativeElement.classList.toggle(Se,V)}let le=(()=>{class He{}return He.\u0275fac=function(V){return new(V||He)},He.\u0275mod=e.oAB({type:He}),He.\u0275inj=e.cJS({imports:[[ne],ne]}),He})();class We{constructor(Se,V,ve){this._renderer=Se,this.element=V,this.config=ve,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const yt={enterDuration:225,exitDuration:150},Ve=(0,s.i$)({passive:!0}),ue=["mousedown","touchstart"],Te=["mouseup","mouseleave","touchend","touchcancel"];class ke{constructor(Se,V,ve,Ee){this._target=Se,this._ngZone=V,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Ee.isBrowser&&(this._containerElement=(0,c.fI)(ve))}fadeInRipple(Se,V,ve={}){const Ee=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),et=Object.assign(Object.assign({},yt),ve.animation);ve.centered&&(Se=Ee.left+Ee.width/2,V=Ee.top+Ee.height/2);const $t=ve.radius||function(He,Se,V){const ve=Math.max(Math.abs(He-V.left),Math.abs(He-V.right)),Ee=Math.max(Math.abs(Se-V.top),Math.abs(Se-V.bottom));return Math.sqrt(ve*ve+Ee*Ee)}(Se,V,Ee),Rt=Se-Ee.left,Xt=V-Ee.top,lt=et.enterDuration,Re=document.createElement("div");Re.classList.add("mat-ripple-element"),Re.style.left=Rt-$t+"px",Re.style.top=Xt-$t+"px",Re.style.height=2*$t+"px",Re.style.width=2*$t+"px",null!=ve.color&&(Re.style.backgroundColor=ve.color),Re.style.transitionDuration=`${lt}ms`,this._containerElement.appendChild(Re),window.getComputedStyle(Re).getPropertyValue("opacity"),Re.style.transform="scale(1)";const Be=new We(this,Re,ve);return Be.state=0,this._activeRipples.add(Be),ve.persistent||(this._mostRecentTransientRipple=Be),this._runTimeoutOutsideZone(()=>{const rt=Be===this._mostRecentTransientRipple;Be.state=1,!ve.persistent&&(!rt||!this._isPointerDown)&&Be.fadeOut()},lt),Be}fadeOutRipple(Se){const V=this._activeRipples.delete(Se);if(Se===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!V)return;const ve=Se.element,Ee=Object.assign(Object.assign({},yt),Se.config.animation);ve.style.transitionDuration=`${Ee.exitDuration}ms`,ve.style.opacity="0",Se.state=2,this._runTimeoutOutsideZone(()=>{Se.state=3,ve.remove()},Ee.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Se=>Se.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Se=>{Se.config.persistent||Se.fadeOut()})}setupTriggerEvents(Se){const V=(0,c.fI)(Se);!V||V===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=V,this._registerEvents(ue))}handleEvent(Se){"mousedown"===Se.type?this._onMousedown(Se):"touchstart"===Se.type?this._onTouchStart(Se):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Te),this._pointerUpEventsRegistered=!0)}_onMousedown(Se){const V=(0,C.X6)(Se),ve=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!V&&!ve&&(this._isPointerDown=!0,this.fadeInRipple(Se.clientX,Se.clientY,this._target.rippleConfig))}_onTouchStart(Se){if(!this._target.rippleDisabled&&!(0,C.yG)(Se)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const V=Se.changedTouches;for(let ve=0;ve<V.length;ve++)this.fadeInRipple(V[ve].clientX,V[ve].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(Se=>{!Se.config.persistent&&(1===Se.state||Se.config.terminateOnPointerUp&&0===Se.state)&&Se.fadeOut()}))}_runTimeoutOutsideZone(Se,V=0){this._ngZone.runOutsideAngular(()=>setTimeout(Se,V))}_registerEvents(Se){this._ngZone.runOutsideAngular(()=>{Se.forEach(V=>{this._triggerElement.addEventListener(V,this,Ve)})})}_removeTriggerEvents(){this._triggerElement&&(ue.forEach(Se=>{this._triggerElement.removeEventListener(Se,this,Ve)}),this._pointerUpEventsRegistered&&Te.forEach(Se=>{this._triggerElement.removeEventListener(Se,this,Ve)}))}}const he=new e.OlP("mat-ripple-global-options");let Me=(()=>{class He{constructor(V,ve,Ee,et,$t){this._elementRef=V,this._animationMode=$t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=et||{},this._rippleRenderer=new ke(this,ve,V,Ee)}get disabled(){return this._disabled}set disabled(V){V&&this.fadeOutAllNonPersistent(),this._disabled=V,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(V){this._trigger=V,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(V,ve=0,Ee){return"number"==typeof V?this._rippleRenderer.fadeInRipple(V,ve,Object.assign(Object.assign({},this.rippleConfig),Ee)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),V))}}return He.\u0275fac=function(V){return new(V||He)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(s.t4),e.Y36(he,8),e.Y36(T.Qb,8))},He.\u0275dir=e.lG2({type:He,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(V,ve){2&V&&e.ekj("mat-ripple-unbounded",ve.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"]}),He})(),ze=(()=>{class He{}return He.\u0275fac=function(V){return new(V||He)},He.\u0275mod=e.oAB({type:He}),He.\u0275inj=e.cJS({imports:[[ne,s.ud],ne]}),He})(),ht=(()=>{class He{constructor(V){this._animationMode=V,this.state="unchecked",this.disabled=!1}}return He.\u0275fac=function(V){return new(V||He)(e.Y36(T.Qb,8))},He.\u0275cmp=e.Xpm({type:He,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(V,ve){2&V&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===ve.state)("mat-pseudo-checkbox-checked","checked"===ve.state)("mat-pseudo-checkbox-disabled",ve.disabled)("_mat-animation-noopable","NoopAnimations"===ve._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(V,ve){},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}),He})(),it=(()=>{class He{}return He.\u0275fac=function(V){return new(V||He)},He.\u0275mod=e.oAB({type:He}),He.\u0275inj=e.cJS({imports:[[ne]]}),He})();const ft=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),Bt=new e.OlP("MatOptgroup");let Vt=0;class Oi{constructor(Se,V=!1){this.source=Se,this.isUserInput=V}}let jt=(()=>{class He{constructor(V,ve,Ee,et){this._element=V,this._changeDetectorRef=ve,this._parent=Ee,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 R.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(V){this._disabled=(0,c.Ig)(V)}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(V,ve){const Ee=this._getHostElement();"function"==typeof Ee.focus&&Ee.focus(ve)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(V){(V.keyCode===P.K5||V.keyCode===P.L_)&&!(0,P.Vb)(V)&&(this._selectViaInteraction(),V.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 V=this.viewValue;V!==this._mostRecentViewValue&&(this._mostRecentViewValue=V,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(V=!1){this.onSelectionChange.emit(new Oi(this,V))}}return He.\u0275fac=function(V){e.$Z()},He.\u0275dir=e.lG2({type:He,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),He})(),ti=(()=>{class He extends jt{constructor(V,ve,Ee,et){super(V,ve,Ee,et)}}return He.\u0275fac=function(V){return new(V||He)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ft,8),e.Y36(Bt,8))},He.\u0275cmp=e.Xpm({type:He,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(V,ve){1&V&&e.NdJ("click",function(){return ve._selectViaInteraction()})("keydown",function(et){return ve._handleKeydown(et)}),2&V&&(e.Ikx("id",ve.id),e.uIk("tabindex",ve._getTabIndex())("aria-selected",ve._getAriaSelected())("aria-disabled",ve.disabled.toString()),e.ekj("mat-selected",ve.selected)("mat-option-multiple",ve.multiple)("mat-active",ve.active)("mat-option-disabled",ve.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:G,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(V,ve){1&V&&(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,U,2,1,"span",2),e._UZ(4,"div",3)),2&V&&(e.Q6J("ngIf",ve.multiple),e.xp6(3),e.Q6J("ngIf",ve.group&&ve.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",ve._getHostElement())("matRippleDisabled",ve.disabled||ve.disableRipple))},directives:[M.O5,Me,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}),He})();function Ri(He,Se,V){if(V.length){let ve=Se.toArray(),Ee=V.toArray(),et=0;for(let $t=0;$t<He+1;$t++)ve[$t].group&&ve[$t].group===Ee[et]&&et++;return et}return 0}function si(He,Se,V,ve){return He<V?He:He+Se>V+ve?Math.max(0,He-ve+Se):V}let di=(()=>{class He{}return He.\u0275fac=function(V){return new(V||He)},He.\u0275mod=e.oAB({type:He}),He.\u0275inj=e.cJS({imports:[[ze,M.ez,ne,it]]}),He})()},6856:(Ue,K,m)=>{"use strict";m.d(K,{Mq:()=>Rt,hl:()=>ot,FA:()=>be,nW:()=>li});var e=m(5664),t=m(9776),v=m(7429),M=m(9808),s=m(5e3),C=m(7423),c=m(5303),R=m(508),o=m(7579),O=m(727),T=m(6451),P=m(9646),S=m(1159),D=m(5698),w=m(8675),U=m(9300),G=m(226),W=m(3191),ee=m(925),ie=m(1777),_e=m(3075),fe=m(7322),de=m(7531);const ne=["mat-calendar-body",""];function se(qe,vt){if(1&qe&&(s.TgZ(0,"tr",2),s.TgZ(1,"td",3),s._uU(2),s.qZA(),s.qZA()),2&qe){const me=s.oxw();s.xp6(1),s.Udp("padding-top",me._cellPadding)("padding-bottom",me._cellPadding),s.uIk("colspan",me.numCols),s.xp6(1),s.hij(" ",me.label," ")}}function oe(qe,vt){if(1&qe&&(s.TgZ(0,"td",3),s._uU(1),s.qZA()),2&qe){const me=s.oxw(2);s.Udp("padding-top",me._cellPadding)("padding-bottom",me._cellPadding),s.uIk("colspan",me._firstRowOffset),s.xp6(1),s.hij(" ",me._firstRowOffset>=me.labelMinRequiredCells?me.label:""," ")}}function y(qe,vt){if(1&qe){const me=s.EpF();s.TgZ(0,"td",7),s.NdJ("click",function(St){const yi=s.CHM(me).$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 me=vt.$implicit,$e=vt.index,St=s.oxw().index,Pt=s.oxw();s.Udp("width",Pt._cellWidth)("padding-top",Pt._cellPadding)("padding-bottom",Pt._cellPadding),s.ekj("mat-calendar-body-disabled",!me.enabled)("mat-calendar-body-active",Pt._isActiveCell(St,$e))("mat-calendar-body-range-start",Pt._isRangeStart(me.compareValue))("mat-calendar-body-range-end",Pt._isRangeEnd(me.compareValue))("mat-calendar-body-in-range",Pt._isInRange(me.compareValue))("mat-calendar-body-comparison-bridge-start",Pt._isComparisonBridgeStart(me.compareValue,St,$e))("mat-calendar-body-comparison-bridge-end",Pt._isComparisonBridgeEnd(me.compareValue,St,$e))("mat-calendar-body-comparison-start",Pt._isComparisonStart(me.compareValue))("mat-calendar-body-comparison-end",Pt._isComparisonEnd(me.compareValue))("mat-calendar-body-in-comparison-range",Pt._isInComparisonRange(me.compareValue))("mat-calendar-body-preview-start",Pt._isPreviewStart(me.compareValue))("mat-calendar-body-preview-end",Pt._isPreviewEnd(me.compareValue))("mat-calendar-body-in-preview",Pt._isInPreview(me.compareValue)),s.Q6J("ngClass",me.cssClasses)("tabindex",Pt._isActiveCell(St,$e)?0:-1),s.uIk("data-mat-row",St)("data-mat-col",$e)("aria-label",me.ariaLabel)("aria-disabled",!me.enabled||null)("aria-selected",Pt._isSelected(me.compareValue))("aria-current",Pt.todayValue===me.compareValue?"date":null),s.xp6(1),s.ekj("mat-calendar-body-selected",Pt._isSelected(me.compareValue))("mat-calendar-body-comparison-identical",Pt._isComparisonIdentical(me.compareValue))("mat-calendar-body-today",Pt.todayValue===me.compareValue),s.xp6(1),s.hij(" ",me.displayValue," ")}}function i(qe,vt){if(1&qe&&(s.TgZ(0,"tr",4),s.YNc(1,oe,2,6,"td",5),s.YNc(2,y,4,47,"td",6),s.qZA()),2&qe){const me=vt.$implicit,$e=vt.index,St=s.oxw();s.xp6(1),s.Q6J("ngIf",0===$e&&St._firstRowOffset),s.xp6(1),s.Q6J("ngForOf",me)}}function a(qe,vt){if(1&qe&&(s.TgZ(0,"th",5),s.TgZ(1,"abbr",6),s._uU(2),s.qZA(),s.qZA()),2&qe){const me=vt.$implicit;s.uIk("aria-label",me.long),s.xp6(1),s.uIk("title",me.long),s.xp6(1),s.Oqu(me.narrow)}}const p=["*"];function u(qe,vt){}function _(qe,vt){if(1&qe){const me=s.EpF();s.TgZ(0,"mat-month-view",5),s.NdJ("activeDateChange",function(St){return s.CHM(me),s.oxw().activeDate=St})("_userSelection",function(St){return s.CHM(me),s.oxw()._dateSelected(St)}),s.qZA()}if(2&qe){const me=s.oxw();s.Q6J("activeDate",me.activeDate)("selected",me.selected)("dateFilter",me.dateFilter)("maxDate",me.maxDate)("minDate",me.minDate)("dateClass",me.dateClass)("comparisonStart",me.comparisonStart)("comparisonEnd",me.comparisonEnd)}}function L(qe,vt){if(1&qe){const me=s.EpF();s.TgZ(0,"mat-year-view",6),s.NdJ("activeDateChange",function(St){return s.CHM(me),s.oxw().activeDate=St})("monthSelected",function(St){return s.CHM(me),s.oxw()._monthSelectedInYearView(St)})("selectedChange",function(St){return s.CHM(me),s.oxw()._goToDateInView(St,"month")}),s.qZA()}if(2&qe){const me=s.oxw();s.Q6J("activeDate",me.activeDate)("selected",me.selected)("dateFilter",me.dateFilter)("maxDate",me.maxDate)("minDate",me.minDate)("dateClass",me.dateClass)}}function I(qe,vt){if(1&qe){const me=s.EpF();s.TgZ(0,"mat-multi-year-view",7),s.NdJ("activeDateChange",function(St){return s.CHM(me),s.oxw().activeDate=St})("yearSelected",function(St){return s.CHM(me),s.oxw()._yearSelectedInMultiYearView(St)})("selectedChange",function(St){return s.CHM(me),s.oxw()._goToDateInView(St,"year")}),s.qZA()}if(2&qe){const me=s.oxw();s.Q6J("activeDate",me.activeDate)("selected",me.selected)("dateFilter",me.dateFilter)("maxDate",me.maxDate)("minDate",me.minDate)("dateClass",me.dateClass)}}function x(qe,vt){}const r=["button"];function b(qe,vt){1&qe&&(s.O4$(),s.TgZ(0,"svg",3),s._UZ(1,"path",4),s.qZA())}const J=[[["","matDatepickerToggleIcon",""]]],F=["[matDatepickerToggleIcon]"];class Fe{constructor(vt,me,$e,St,Pt={},yi=vt,Pi){this.value=vt,this.displayValue=me,this.ariaLabel=$e,this.enabled=St,this.cssClasses=Pt,this.compareValue=yi,this.rawValue=Pi}}let q=(()=>{class qe{constructor(me,$e){this._elementRef=me,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 Pt=this._getCellFromElement(St.target);Pt&&this._ngZone.run(()=>this.previewChange.emit({value:Pt.enabled?Pt:null,event:St}))}},this._leaveHandler=St=>{null!==this.previewEnd&&this.isRange&&St.target&&j(St.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:St}))},$e.runOutsideAngular(()=>{const St=me.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(me,$e){me.enabled&&this.selectedValueChange.emit({value:me.value,event:$e})}_isSelected(me){return this.startValue===me||this.endValue===me}ngOnChanges(me){const $e=me.numCols,{rows:St,numCols:Pt}=this;(me.rows||$e)&&(this._firstRowOffset=St&&St.length&&St[0].length?Pt-St[0].length:0),(me.cellAspectRatio||$e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Pt+"%"),($e||!this._cellWidth)&&(this._cellWidth=100/Pt+"%")}ngOnDestroy(){const me=this._elementRef.nativeElement;me.removeEventListener("mouseenter",this._enterHandler,!0),me.removeEventListener("focus",this._enterHandler,!0),me.removeEventListener("mouseleave",this._leaveHandler,!0),me.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(me,$e){let St=me*this.numCols+$e;return me&&(St-=this._firstRowOffset),St==this.activeCell}_focusActiveCell(me=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>{const $e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");$e&&(me||(this._skipNextFocus=!0),$e.focus())})})}_isRangeStart(me){return we(me,this.startValue,this.endValue)}_isRangeEnd(me){return Ae(me,this.startValue,this.endValue)}_isInRange(me){return le(me,this.startValue,this.endValue,this.isRange)}_isComparisonStart(me){return we(me,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(me,$e,St){if(!this._isComparisonStart(me)||this._isRangeStart(me)||!this._isInRange(me))return!1;let Pt=this.rows[$e][St-1];if(!Pt){const yi=this.rows[$e-1];Pt=yi&&yi[yi.length-1]}return Pt&&!this._isRangeEnd(Pt.compareValue)}_isComparisonBridgeEnd(me,$e,St){if(!this._isComparisonEnd(me)||this._isRangeEnd(me)||!this._isInRange(me))return!1;let Pt=this.rows[$e][St+1];if(!Pt){const yi=this.rows[$e+1];Pt=yi&&yi[0]}return Pt&&!this._isRangeStart(Pt.compareValue)}_isComparisonEnd(me){return Ae(me,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(me){return le(me,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(me){return this.comparisonStart===this.comparisonEnd&&me===this.comparisonStart}_isPreviewStart(me){return we(me,this.previewStart,this.previewEnd)}_isPreviewEnd(me){return Ae(me,this.previewStart,this.previewEnd)}_isInPreview(me){return le(me,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(me){let $e;if(j(me)?$e=me:j(me.parentNode)&&($e=me.parentNode),$e){const St=$e.getAttribute("data-mat-row"),Pt=$e.getAttribute("data-mat-col");if(St&&Pt)return this.rows[parseInt(St)][parseInt(Pt)]}return null}}return qe.\u0275fac=function(me){return new(me||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:ne,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(me,$e){1&me&&(s.YNc(0,se,3,6,"tr",0),s.YNc(1,i,3,2,"tr",1)),2&me&&(s.Q6J("ngIf",$e._firstRowOffset<$e.labelMinRequiredCells),s.xp6(1),s.Q6J("ngForOf",$e.rows))},directives:[M.O5,M.sg,M.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 j(qe){return"TD"===qe.nodeName}function we(qe,vt,me){return null!==me&&vt!==me&&qe<me&&qe===vt}function Ae(qe,vt,me){return null!==vt&&vt!==me&&qe>=vt&&qe===me}function le(qe,vt,me,$e){return $e&&null!==vt&&null!==me&&vt!==me&&qe>=vt&&qe<=me}class We{constructor(vt,me){this.start=vt,this.end=me}}let yt=(()=>{class qe{constructor(me,$e){this.selection=me,this._adapter=$e,this._selectionChanged=new o.x,this.selectionChanged=this._selectionChanged,this.selection=me}updateSelection(me,$e){const St=this.selection;this.selection=me,this._selectionChanged.next({selection:me,source:$e,oldValue:St})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(me){return this._adapter.isDateInstance(me)&&this._adapter.isValid(me)}}return qe.\u0275fac=function(me){s.$Z()},qe.\u0275prov=s.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),Ne=(()=>{class qe extends yt{constructor(me){super(null,me)}add(me){super.updateSelection(me,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const me=new qe(this._adapter);return me.updateSelection(this.selection,this),me}}return qe.\u0275fac=function(me){return new(me||qe)(s.LFG(R._A))},qe.\u0275prov=s.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const Te={provide:yt,deps:[[new s.FiY,new s.tp0,yt],R._A],useFactory:function(qe,vt){return qe||new Ne(vt)}},X=new s.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let it=(()=>{class qe{constructor(me,$e,St,Pt,yi){this._changeDetectorRef=me,this._dateFormats=$e,this._dateAdapter=St,this._dir=Pt,this._rangeStrategy=yi,this._rerenderSubscription=O.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(me){const $e=this._activeDate,St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me))||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(me){this._selected=me instanceof We?me:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(me){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me))}get maxDate(){return this._maxDate}set maxDate(me){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnChanges(me){const $e=me.comparisonStart||me.comparisonEnd;$e&&!$e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(me){const $e=me.value,St=this._dateAdapter.getYear(this.activeDate),Pt=this._dateAdapter.getMonth(this.activeDate),yi=this._dateAdapter.createDate(St,Pt,$e);let Pi,Ii;this._selected instanceof We?(Pi=this._getDateInCurrentMonth(this._selected.start),Ii=this._getDateInCurrentMonth(this._selected.end)):Pi=Ii=this._getDateInCurrentMonth(this._selected),(Pi!==$e||Ii!==$e)&&this.selectedChange.emit(yi),this._userSelection.emit({value:yi,event:me.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(me){const $e=this._activeDate,St=this._isRtl();switch(me.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,St?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,St?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case S.Ku:this.activeDate=me.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case S.VM:this.activeDate=me.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case S.K5:case S.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&me.preventDefault());case S.hY:return void(null!=this._previewEnd&&!(0,S.Vb)(me)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:me}),me.preventDefault(),me.stopPropagation()));default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),me.preventDefault()}_handleCalendarBodyKeyup(me){(me.keyCode===S.L_||me.keyCode===S.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:me}),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 me=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(me)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(me){this._matCalendarBody._focusActiveCell(me)}_previewChanged({event:me,value:$e}){if(this._rangeStrategy){const Pt=this._rangeStrategy.createPreview($e?$e.rawValue:null,this.selected,me);this._previewStart=this._getCellCompareValue(Pt.start),this._previewEnd=this._getCellCompareValue(Pt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const me=this._dateAdapter.getFirstDayOfWeek(),$e=this._dateAdapter.getDayOfWeekNames("narrow");let Pt=this._dateAdapter.getDayOfWeekNames("long").map((yi,Pi)=>({long:yi,narrow:$e[Pi]}));this._weekdays=Pt.slice(me).concat(Pt.slice(0,me))}_createWeekCells(){const me=this._dateAdapter.getNumDaysInMonth(this.activeDate),$e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let St=0,Pt=this._firstWeekOffset;St<me;St++,Pt++){7==Pt&&(this._weeks.push([]),Pt=0);const yi=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),St+1),Pi=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 Fe(St+1,$e[St],Ii,Pi,Ki,this._getCellCompareValue(yi),yi))}}_shouldEnableDate(me){return!!me&&(!this.minDate||this._dateAdapter.compareDate(me,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(me,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(me))}_getDateInCurrentMonth(me){return me&&this._hasSameMonthAndYear(me,this.activeDate)?this._dateAdapter.getDate(me):null}_hasSameMonthAndYear(me,$e){return!(!me||!$e||this._dateAdapter.getMonth(me)!=this._dateAdapter.getMonth($e)||this._dateAdapter.getYear(me)!=this._dateAdapter.getYear($e))}_getCellCompareValue(me){if(me){const $e=this._dateAdapter.getYear(me),St=this._dateAdapter.getMonth(me),Pt=this._dateAdapter.getDate(me);return new Date($e,St,Pt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(me){me instanceof We?(this._rangeStart=this._getCellCompareValue(me.start),this._rangeEnd=this._getCellCompareValue(me.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(me),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(me){return!this.dateFilter||this.dateFilter(me)}}return qe.\u0275fac=function(me){return new(me||qe)(s.Y36(s.sBO),s.Y36(R.sG,8),s.Y36(R._A,8),s.Y36(G.Is,8),s.Y36(X,8))},qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-month-view"]],viewQuery:function(me,$e){if(1&me&&s.Gf(q,5),2&me){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(me,$e){1&me&&(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(Pt){return $e._dateSelected(Pt)})("previewChange",function(Pt){return $e._previewChanged(Pt)})("keyup",function(Pt){return $e._handleCalendarBodyKeyup(Pt)})("keydown",function(Pt){return $e._handleCalendarBodyKeydown(Pt)}),s.qZA(),s.qZA()),2&me&&(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:[M.sg,q],encapsulation:2,changeDetection:0}),qe})(),st=(()=>{class qe{constructor(me,$e,St){this._changeDetectorRef=me,this._dateAdapter=$e,this._dir=St,this._rerenderSubscription=O.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(me){let $e=this._activeDate;const St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me))||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(me){this._selected=me instanceof We?me:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me)),this._setSelectedYear(me)}get minDate(){return this._minDate}set minDate(me){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me))}get maxDate(){return this._maxDate}set maxDate(me){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me))}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,Pt=[];St<24;St++)Pt.push($e+St),4==Pt.length&&(this._years.push(Pt.map(yi=>this._createCellForYear(yi))),Pt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(me){const $e=me.value;this.yearSelected.emit(this._dateAdapter.createDate($e,0,1));let St=this._dateAdapter.getMonth(this.activeDate),Pt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate($e,St,1));this.selectedChange.emit(this._dateAdapter.createDate($e,St,Math.min(this._dateAdapter.getDate(this.activeDate),Pt)))}_handleCalendarBodyKeydown(me){const $e=this._activeDate,St=this._isRtl();switch(me.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,St?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case S.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,me.altKey?-240:-24);break;case S.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,me.altKey?240:24);break;case S.K5:case S.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),me.preventDefault()}_handleCalendarBodyKeyup(me){(me.keyCode===S.L_||me.keyCode===S.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:me}),this._selectionKeyPressed=!1)}_getActiveCell(){return Bt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(me){const $e=this._dateAdapter.createDate(me,0,1),St=this._dateAdapter.getYearName($e),Pt=this.dateClass?this.dateClass($e,"multi-year"):void 0;return new Fe(me,St,St,this._shouldEnableYear(me),Pt)}_shouldEnableYear(me){if(null==me||this.maxDate&&me>this._dateAdapter.getYear(this.maxDate)||this.minDate&&me<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let St=this._dateAdapter.createDate(me,0,1);this._dateAdapter.getYear(St)==me;St=this._dateAdapter.addCalendarDays(St,1))if(this.dateFilter(St))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(me){if(this._selectedYear=null,me instanceof We){const $e=me.start||me.end;$e&&(this._selectedYear=this._dateAdapter.getYear($e))}else me&&(this._selectedYear=this._dateAdapter.getYear(me))}}return qe.\u0275fac=function(me){return new(me||qe)(s.Y36(s.sBO),s.Y36(R._A,8),s.Y36(G.Is,8))},qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-multi-year-view"]],viewQuery:function(me,$e){if(1&me&&s.Gf(q,5),2&me){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(me,$e){1&me&&(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(Pt){return $e._yearSelected(Pt)})("keyup",function(Pt){return $e._handleCalendarBodyKeyup(Pt)})("keydown",function(Pt){return $e._handleCalendarBodyKeydown(Pt)}),s.qZA(),s.qZA()),2&me&&(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:[q],encapsulation:2,changeDetection:0}),qe})();function wt(qe,vt,me,$e,St){const Pt=qe.getYear(vt),yi=qe.getYear(me),Pi=Nt(qe,$e,St);return Math.floor((Pt-Pi)/24)===Math.floor((yi-Pi)/24)}function Bt(qe,vt,me,$e){return function(qe,vt){return(qe%24+24)%24}(qe.getYear(vt)-Nt(qe,me,$e))}function Nt(qe,vt,me){let $e=0;return me?$e=qe.getYear(me)-24+1:vt&&($e=qe.getYear(vt)),$e}let Oi=(()=>{class qe{constructor(me,$e,St,Pt){this._changeDetectorRef=me,this._dateFormats=$e,this._dateAdapter=St,this._dir=Pt,this._rerenderSubscription=O.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(me){let $e=this._activeDate;const St=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me))||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(me){this._selected=me instanceof We?me:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me)),this._setSelectedMonth(me)}get minDate(){return this._minDate}set minDate(me){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me))}get maxDate(){return this._maxDate}set maxDate(me){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,w.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(me){const $e=me.value,St=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$e,1);this.monthSelected.emit(St);const Pt=this._dateAdapter.getNumDaysInMonth(St);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),$e,Math.min(this._dateAdapter.getDate(this.activeDate),Pt)))}_handleCalendarBodyKeydown(me){const $e=this._activeDate,St=this._isRtl();switch(me.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,St?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,St?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case S.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,me.altKey?-10:-1);break;case S.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,me.altKey?10:1);break;case S.K5:case S.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate($e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),me.preventDefault()}_handleCalendarBodyKeyup(me){(me.keyCode===S.L_||me.keyCode===S.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:me}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let me=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,me[St]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(me){return me&&this._dateAdapter.getYear(me)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(me):null}_createCellForMonth(me,$e){const St=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),me,1),Pt=this._dateAdapter.format(St,this._dateFormats.display.monthYearA11yLabel),yi=this.dateClass?this.dateClass(St,"year"):void 0;return new Fe(me,$e.toLocaleUpperCase(),Pt,this._shouldEnableMonth(me),yi)}_shouldEnableMonth(me){const $e=this._dateAdapter.getYear(this.activeDate);if(null==me||this._isYearAndMonthAfterMaxDate($e,me)||this._isYearAndMonthBeforeMinDate($e,me))return!1;if(!this.dateFilter)return!0;for(let Pt=this._dateAdapter.createDate($e,me,1);this._dateAdapter.getMonth(Pt)==me;Pt=this._dateAdapter.addCalendarDays(Pt,1))if(this.dateFilter(Pt))return!0;return!1}_isYearAndMonthAfterMaxDate(me,$e){if(this.maxDate){const St=this._dateAdapter.getYear(this.maxDate),Pt=this._dateAdapter.getMonth(this.maxDate);return me>St||me===St&&$e>Pt}return!1}_isYearAndMonthBeforeMinDate(me,$e){if(this.minDate){const St=this._dateAdapter.getYear(this.minDate),Pt=this._dateAdapter.getMonth(this.minDate);return me<St||me===St&&$e<Pt}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(me){this._selectedMonth=me instanceof We?this._getMonthInCurrentYear(me.start)||this._getMonthInCurrentYear(me.end):this._getMonthInCurrentYear(me)}}return qe.\u0275fac=function(me){return new(me||qe)(s.Y36(s.sBO),s.Y36(R.sG,8),s.Y36(R._A,8),s.Y36(G.Is,8))},qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-year-view"]],viewQuery:function(me,$e){if(1&me&&s.Gf(q,5),2&me){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(me,$e){1&me&&(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(Pt){return $e._monthSelected(Pt)})("keyup",function(Pt){return $e._handleCalendarBodyKeyup(Pt)})("keydown",function(Pt){return $e._handleCalendarBodyKeydown(Pt)}),s.qZA(),s.qZA()),2&me&&(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:[q],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(me,$e){return`${me} \u2013 ${$e}`}}return qe.\u0275fac=function(me){return new(me||qe)},qe.\u0275prov=s.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),ti=0,Ri=(()=>{class qe{constructor(me,$e,St,Pt,yi){this._intl=me,this.calendar=$e,this._dateAdapter=St,this._dateFormats=Pt,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,Pt=this._dateAdapter.getYearName(this._dateAdapter.createDate($e,0,1)),yi=this._dateAdapter.getYearName(this._dateAdapter.createDate(St,0,1));return this._intl.formatYearRange(Pt,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(me,$e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(me)==this._dateAdapter.getYear($e)&&this._dateAdapter.getMonth(me)==this._dateAdapter.getMonth($e):"year"==this.calendar.currentView?this._dateAdapter.getYear(me)==this._dateAdapter.getYear($e):wt(this._dateAdapter,me,$e,this.calendar.minDate,this.calendar.maxDate)}}return qe.\u0275fac=function(me){return new(me||qe)(s.Y36(jt),s.Y36((0,s.Gpc)(()=>si)),s.Y36(R._A,8),s.Y36(R.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(me,$e){1&me&&(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&me&&(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:[C.lW,e.Qr],encapsulation:2,changeDetection:0}),qe})(),si=(()=>{class qe{constructor(me,$e,St,Pt){this._dateAdapter=$e,this._dateFormats=St,this._changeDetectorRef=Pt,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=me.changes.subscribe(()=>{Pt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(me){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me))}get selected(){return this._selected}set selected(me){this._selected=me instanceof We?me:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me))}get minDate(){return this._minDate}set minDate(me){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me))}get maxDate(){return this._maxDate}set maxDate(me){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me))}get activeDate(){return this._clampedActiveDate}set activeDate(me){this._clampedActiveDate=this._dateAdapter.clampDate(me,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(me){const $e=this._currentView!==me?me:null;this._currentView=me,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),$e&&this.viewChanged.emit($e)}ngAfterContentInit(){this._calendarHeaderPortal=new v.C5(this.headerComponent||Ri),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(me){const $e=me.minDate||me.maxDate||me.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(me){const $e=me.value;(this.selected instanceof We||$e&&!this._dateAdapter.sameDate($e,this.selected))&&this.selectedChange.emit($e),this._userSelection.emit(me)}_yearSelectedInMultiYearView(me){this.yearSelected.emit(me)}_monthSelectedInYearView(me){this.monthSelected.emit(me)}_goToDateInView(me,$e){this.activeDate=me,this.currentView=$e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return qe.\u0275fac=function(me){return new(me||qe)(s.Y36(jt),s.Y36(R._A,8),s.Y36(R.sG,8),s.Y36(s.sBO))},qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-calendar"]],viewQuery:function(me,$e){if(1&me&&(s.Gf(it,5),s.Gf(Oi,5),s.Gf(st,5)),2&me){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([Te]),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(me,$e){1&me&&(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,L,1,6,"mat-year-view",3),s.YNc(4,I,1,6,"mat-multi-year-view",4),s.qZA()),2&me&&(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,M.RF,M.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,ie.X$)("transformPanel",[(0,ie.eR)("void => enter-dropdown",(0,ie.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ie.F4)([(0,ie.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ie.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ie.eR)("void => enter-dialog",(0,ie.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ie.F4)([(0,ie.oB)({opacity:0,transform:"scale(0.7)"}),(0,ie.oB)({transform:"none",opacity:1})]))),(0,ie.eR)("* => void",(0,ie.jt)("100ms linear",(0,ie.oB)({opacity:0})))]),fadeInCalendar:(0,ie.X$)("fadeInCalendar",[(0,ie.SB)("void",(0,ie.oB)({opacity:0})),(0,ie.SB)("enter",(0,ie.oB)({opacity:1})),(0,ie.eR)("void => *",(0,ie.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let He=0;const Se=new s.OlP("mat-datepicker-scroll-strategy"),ve={provide:Se,deps:[t.aV],useFactory:function(qe){return()=>qe.scrollStrategies.reposition()}},Ee=(0,R.pj)(class{constructor(qe){this._elementRef=qe}});let et=(()=>{class qe extends Ee{constructor(me,$e,St,Pt,yi,Pi){super(me),this._changeDetectorRef=$e,this._globalModel=St,this._dateAdapter=Pt,this._rangeSelectionStrategy=yi,this._subscriptions=new O.w0,this._animationDone=new o.x,this._actionsPortal=null,this._closeButtonText=Pi.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(me){const $e=this._model.selection,St=me.value,Pt=$e instanceof We;if(Pt&&this._rangeSelectionStrategy){const yi=this._rangeSelectionStrategy.selectionFinished(St,$e,me.event);this._model.updateSelection(yi,this)}else St&&(Pt||!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(me){return new(me||qe)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(yt),s.Y36(R._A),s.Y36(X,8),s.Y36(jt))},qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-datepicker-content"]],viewQuery:function(me,$e){if(1&me&&s.Gf(si,5),2&me){let St;s.iGM(St=s.CRH())&&($e._calendar=St.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(me,$e){1&me&&s.WFA("@transformPanel.done",function(){return $e._animationDone.next()}),2&me&&(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(me,$e){1&me&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-calendar",1),s.NdJ("yearSelected",function(Pt){return $e.datepicker._selectYear(Pt)})("monthSelected",function(Pt){return $e.datepicker._selectMonth(Pt)})("viewChanged",function(Pt){return $e.datepicker._viewChanged(Pt)})("_userSelection",function(Pt){return $e._handleUserSelection(Pt)}),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&me&&(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,M.mk,v.Pl,C.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(me,$e,St,Pt,yi,Pi,Ii){this._overlay=me,this._ngZone=$e,this._viewContainerRef=St,this._dateAdapter=yi,this._dir=Pi,this._model=Ii,this._inputStateChanges=O.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-"+He++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new o.x,this._scrollStrategy=Pt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(me){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(me){this._color=me}get touchUi(){return this._touchUi}set touchUi(me){this._touchUi=(0,W.Ig)(me)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(me){const $e=(0,W.Ig)(me);$e!==this._disabled&&(this._disabled=$e,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(me){this._restoreFocus=(0,W.Ig)(me)}get panelClass(){return this._panelClass}set panelClass(me){this._panelClass=(0,W.du)(me)}get opened(){return this._opened}set opened(me){(0,W.Ig)(me)?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(me){const $e=me.xPosition||me.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(me){this._model.add(me)}_selectYear(me){this.yearSelected.emit(me)}_selectMonth(me){this.monthSelected.emit(me)}_viewChanged(me){this.viewChanged.emit(me)}registerInput(me){return this._inputStateChanges.unsubscribe(),this.datepickerInput=me,this._inputStateChanges=me.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(me){this._actionsPortal=me}removeActions(me){me===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ee.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,D.q)(1)).subscribe(()=>this._destroyOverlay())}const me=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(me)):me()}_applyPendingSelection(){var me,$e;null===($e=null===(me=this._componentRef)||void 0===me?void 0:me.instance)||void 0===$e||$e._applyPendingSelection()}_forwardContentValues(me){me.datepicker=this,me.color=this.color,me._actionsPortal=this._actionsPortal}_openOverlay(){this._destroyOverlay();const me=this.touchUi,$e=this.datepickerInput.getOverlayLabelId(),St=new v.C5(et,this._viewContainerRef),Pt=this._overlayRef=this._overlay.create(new t.X_({positionStrategy:me?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[me?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:me?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(me?"dialog":"popup")})),yi=Pt.overlayElement;yi.setAttribute("role","dialog"),$e&&yi.setAttribute("aria-labelledby",$e),me&&yi.setAttribute("aria-modal","true"),this._getCloseStream(Pt).subscribe(Pi=>{Pi&&Pi.preventDefault(),this.close()}),this._componentRef=Pt.attach(St),this._forwardContentValues(this._componentRef.instance),me||this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>Pt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const me=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(me)}_setConnectedPositions(me){const $e="end"===this.xPosition?"end":"start",St="start"===$e?"end":"start",Pt="above"===this.yPosition?"bottom":"top",yi="top"===Pt?"bottom":"top";return me.withPositions([{originX:$e,originY:yi,overlayX:$e,overlayY:Pt},{originX:$e,originY:Pt,overlayX:$e,overlayY:yi},{originX:St,originY:yi,overlayX:St,overlayY:Pt},{originX:St,originY:Pt,overlayX:St,overlayY:yi}])}_getCloseStream(me){return(0,T.T)(me.backdropClick(),me.detachments(),me.keydownEvents().pipe((0,U.h)($e=>$e.keyCode===S.hY&&!(0,S.Vb)($e)||this.datepickerInput&&(0,S.Vb)($e,"altKey")&&$e.keyCode===S.LH)))}}return qe.\u0275fac=function(me){return new(me||qe)(s.Y36(t.aV),s.Y36(s.R0b),s.Y36(s.s_b),s.Y36(Se),s.Y36(R._A,8),s.Y36(G.Is,8),s.Y36(yt))},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})(),Rt=(()=>{class qe extends $t{}return qe.\u0275fac=function(){let vt;return function($e){return(vt||(vt=s.n5z(qe)))($e||qe)}}(),qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[s._Bn([Te,{provide:$t,useExisting:qe}]),s.qOj],decls:0,vars:0,template:function(me,$e){},encapsulation:2,changeDetection:0}),qe})();class Xt{constructor(vt,me){this.target=vt,this.targetElement=me,this.value=this.target.value}}let lt=(()=>{class qe{constructor(me,$e,St){this._elementRef=me,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=O.w0.EMPTY,this._localeSubscription=O.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Pt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value));return!yi||this._matchesFilter(yi)?null:{matDatepickerFilter:!0}},this._minValidator=Pt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value)),Pi=this._getMinDate();return!Pi||!yi||this._dateAdapter.compareDate(Pi,yi)<=0?null:{matDatepickerMin:{min:Pi,actual:yi}}},this._maxValidator=Pt=>{const yi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Pt.value)),Pi=this._getMaxDate();return!Pi||!yi||this._dateAdapter.compareDate(Pi,yi)>=0?null:{matDatepickerMax:{max:Pi,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(me){this._assignValueProgrammatically(me)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(me){const $e=(0,W.Ig)(me),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(me){this._model=me,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(me){(function(qe,vt){const me=Object.keys(qe);for(let $e of me){const{previousValue:St,currentValue:Pt}=qe[$e];if(!vt.isDateInstance(St)||!vt.isDateInstance(Pt))return!0;if(!vt.sameDate(St,Pt))return!0}return!1})(me,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(me){this._validatorOnChange=me}validate(me){return this._validator?this._validator(me):null}writeValue(me){this._assignValueProgrammatically(me)}registerOnChange(me){this._cvaOnChange=me}registerOnTouched(me){this._onTouched=me}setDisabledState(me){this.disabled=me}_onKeydown(me){me.altKey&&me.keyCode===S.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),me.preventDefault())}_onInput(me){const $e=this._lastValueValid;let St=this._dateAdapter.parse(me,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(St),St=this._dateAdapter.getValidDateOrNull(St),this._dateAdapter.sameDate(St,this.value)?(me&&!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(me){this._elementRef.nativeElement.value=me?this._dateAdapter.format(me,this._dateFormats.display.dateInput):""}_assignValue(me){this._model?(this._assignValueToModel(me),this._pendingValue=null):this._pendingValue=me}_isValidValue(me){return!me||this._dateAdapter.isValid(me)}_parentDisabled(){return!1}_assignValueProgrammatically(me){me=this._dateAdapter.deserialize(me),this._lastValueValid=this._isValidValue(me),me=this._dateAdapter.getValidDateOrNull(me),this._assignValue(me),this._formatValue(me)}_matchesFilter(me){const $e=this._getDateFilter();return!$e||$e(me)}}return qe.\u0275fac=function(me){return new(me||qe)(s.Y36(s.SBq),s.Y36(R._A,8),s.Y36(R.sG,8))},qe.\u0275dir=s.lG2({type:qe,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[s.TTD]}),qe})();const Be={provide:_e.JU,useExisting:(0,s.Gpc)(()=>ot),multi:!0},rt={provide:_e.Cf,useExisting:(0,s.Gpc)(()=>ot),multi:!0};let ot=(()=>{class qe extends lt{constructor(me,$e,St,Pt){super(me,$e,St),this._formField=Pt,this._closedSubscription=O.w0.EMPTY,this._validator=_e.kI.compose(super._getValidators())}set matDatepicker(me){me&&(this._datepicker=me,this._closedSubscription=me.closedStream.subscribe(()=>this._onTouched()),this._registerModel(me.registerInput(this)))}get min(){return this._min}set min(me){const $e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me));this._dateAdapter.sameDate($e,this._min)||(this._min=$e,this._validatorOnChange())}get max(){return this._max}set max(me){const $e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(me));this._dateAdapter.sameDate($e,this._max)||(this._max=$e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(me){const $e=this._matchesFilter(this.value);this._dateFilter=me,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(me){return me}_assignValueToModel(me){this._model&&this._model.updateSelection(me,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(me){return me.source!==this}}return qe.\u0275fac=function(me){return new(me||qe)(s.Y36(s.SBq),s.Y36(R._A,8),s.Y36(R.sG,8),s.Y36(fe.G_,8))},qe.\u0275dir=s.lG2({type:qe,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(me,$e){1&me&&s.NdJ("input",function(Pt){return $e._onInput(Pt.target.value)})("change",function(){return $e._onChange()})("blur",function(){return $e._onBlur()})("keydown",function(Pt){return $e._onKeydown(Pt)}),2&me&&(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([Be,rt,{provide:de.Jk,useExisting:qe}]),s.qOj]}),qe})(),At=(()=>{class qe{}return qe.\u0275fac=function(me){return new(me||qe)},qe.\u0275dir=s.lG2({type:qe,selectors:[["","matDatepickerToggleIcon",""]]}),qe})(),li=(()=>{class qe{constructor(me,$e,St){this._intl=me,this._changeDetectorRef=$e,this._stateChanges=O.w0.EMPTY;const Pt=Number(St);this.tabIndex=Pt||0===Pt?Pt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(me){this._disabled=(0,W.Ig)(me)}ngOnChanges(me){me.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(me){this.datepicker&&!this.disabled&&(this.datepicker.open(),me.stopPropagation())}_watchStateChanges(){const me=this.datepicker?this.datepicker.stateChanges:(0,P.of)(),$e=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,P.of)(),St=this.datepicker?(0,T.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,P.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,T.T)(this._intl.changes,me,$e,St).subscribe(()=>this._changeDetectorRef.markForCheck())}}return qe.\u0275fac=function(me){return new(me||qe)(s.Y36(jt),s.Y36(s.sBO),s.$8M("tabindex"))},qe.\u0275cmp=s.Xpm({type:qe,selectors:[["mat-datepicker-toggle"]],contentQueries:function(me,$e,St){if(1&me&&s.Suo(St,At,5),2&me){let Pt;s.iGM(Pt=s.CRH())&&($e._customIcon=Pt.first)}},viewQuery:function(me,$e){if(1&me&&s.Gf(r,5),2&me){let St;s.iGM(St=s.CRH())&&($e._button=St.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(me,$e){1&me&&s.NdJ("click",function(Pt){return $e._open(Pt)}),2&me&&(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:F,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(me,$e){1&me&&(s.F$t(J),s.TgZ(0,"button",0,1),s.YNc(2,b,2,0,"svg",2),s.Hsn(3),s.qZA()),2&me&&(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:[C.lW,M.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})(),be=(()=>{class qe{}return qe.\u0275fac=function(me){return new(me||qe)},qe.\u0275mod=s.oAB({type:qe}),qe.\u0275inj=s.cJS({providers:[jt,ve],imports:[[M.ez,C.ot,t.U8,e.rt,v.eL,R.BQ],c.ZD]}),qe})()},8966:(Ue,K,m)=>{"use strict";m.d(K,{WI:()=>i,Bq:()=>a,uw:()=>x,ZT:()=>J,Is:()=>Pe,so:()=>oe});var e=m(9776),t=m(7429),v=m(5e3),M=m(508),s=m(226),C=m(7579),c=m(9770),R=m(727),o=m(9646),O=m(9300),T=m(5698),P=m(8675),S=m(925),D=m(9808),w=m(1777),U=m(5664),G=m(1159),W=m(6360);function ee(Fe,q){}class ie{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 _e={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 de=(()=>{class Fe extends t.en{constructor(j,we,Ae,le,We,yt,Ne,Ve){super(),this._elementRef=j,this._focusTrapFactory=we,this._changeDetectorRef=Ae,this._config=We,this._interactivityChecker=yt,this._ngZone=Ne,this._focusMonitor=Ve,this._animationStateChanged=new v.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=ue=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(ue)),this._ariaLabelledBy=We.ariaLabelledBy||null,this._document=le}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(j){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(j)}attachTemplatePortal(j){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(j)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(j,we){this._interactivityChecker.isFocusable(j)||(j.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{j.addEventListener("blur",()=>j.removeAttribute("tabindex")),j.addEventListener("mousedown",()=>j.removeAttribute("tabindex"))})),j.focus(we)}_focusByCssSelector(j,we){let Ae=this._elementRef.nativeElement.querySelector(j);Ae&&this._forceFocus(Ae,we)}_trapFocus(){const j=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||j.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(we=>{we||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 j=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&j&&"function"==typeof j.focus){const we=(0,S.ht)(),Ae=this._elementRef.nativeElement;(!we||we===this._document.body||we===Ae||Ae.contains(we))&&(this._focusMonitor?(this._focusMonitor.focusVia(j,this._closeInteractionType),this._closeInteractionType=null):j.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,S.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const j=this._elementRef.nativeElement,we=(0,S.ht)();return j===we||j.contains(we)}}return Fe.\u0275fac=function(j){return new(j||Fe)(v.Y36(v.SBq),v.Y36(U.qV),v.Y36(v.sBO),v.Y36(D.K0,8),v.Y36(ie),v.Y36(U.ic),v.Y36(v.R0b),v.Y36(U.tE))},Fe.\u0275dir=v.lG2({type:Fe,viewQuery:function(j,we){if(1&j&&v.Gf(t.Pl,7),2&j){let Ae;v.iGM(Ae=v.CRH())&&(we._portalOutlet=Ae.first)}},features:[v.qOj]}),Fe})(),ne=(()=>{class Fe extends de{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:j,totalTime:we}){"enter"===j?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:we})):"exit"===j&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:we}))}_onAnimationStart({toState:j,totalTime:we}){"enter"===j?this._animationStateChanged.next({state:"opening",totalTime:we}):("exit"===j||"void"===j)&&this._animationStateChanged.next({state:"closing",totalTime:we})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return Fe.\u0275fac=function(){let q;return function(we){return(q||(q=v.n5z(Fe)))(we||Fe)}}(),Fe.\u0275cmp=v.Xpm({type:Fe,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(j,we){1&j&&v.WFA("@dialogContainer.start",function(le){return we._onAnimationStart(le)})("@dialogContainer.done",function(le){return we._onAnimationDone(le)}),2&j&&(v.Ikx("id",we._id),v.uIk("role",we._config.role)("aria-labelledby",we._config.ariaLabel?null:we._ariaLabelledBy)("aria-label",we._config.ariaLabel)("aria-describedby",we._config.ariaDescribedBy||null),v.d8E("@dialogContainer",we._state))},features:[v.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(j,we){1&j&&v.YNc(0,ee,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:[_e.dialogContainer]}}),Fe})(),se=0;class oe{constructor(q,j,we="mat-dialog-"+se++){this._overlayRef=q,this._containerInstance=j,this.id=we,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new C.x,this._afterClosed=new C.x,this._beforeClosed=new C.x,this._state=0,j._id=we,j._animationStateChanged.pipe((0,O.h)(Ae=>"opened"===Ae.state),(0,T.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),j._animationStateChanged.pipe((0,O.h)(Ae=>"closed"===Ae.state),(0,T.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),q.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),q.keydownEvents().pipe((0,O.h)(Ae=>Ae.keyCode===G.hY&&!this.disableClose&&!(0,G.Vb)(Ae))).subscribe(Ae=>{Ae.preventDefault(),y(this,"keyboard")}),q.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():y(this,"mouse")})}close(q){this._result=q,this._containerInstance._animationStateChanged.pipe((0,O.h)(j=>"closing"===j.state),(0,T.q)(1)).subscribe(j=>{this._beforeClosed.next(q),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),j.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(q){let j=this._getPositionStrategy();return q&&(q.left||q.right)?q.left?j.left(q.left):j.right(q.right):j.centerHorizontally(),q&&(q.top||q.bottom)?q.top?j.top(q.top):j.bottom(q.bottom):j.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(q="",j=""){return this._overlayRef.updateSize({width:q,height:j}),this._overlayRef.updatePosition(),this}addPanelClass(q){return this._overlayRef.addPanelClass(q),this}removePanelClass(q){return this._overlayRef.removePanelClass(q),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function y(Fe,q,j){return void 0!==Fe._containerInstance&&(Fe._containerInstance._closeInteractionType=q),Fe.close(j)}const i=new v.OlP("MatDialogData"),a=new v.OlP("mat-dialog-default-options"),p=new v.OlP("mat-dialog-scroll-strategy"),L={provide:p,deps:[e.aV],useFactory:function(Fe){return()=>Fe.scrollStrategies.block()}};let I=(()=>{class Fe{constructor(j,we,Ae,le,We,yt,Ne,Ve,ue,Te){this._overlay=j,this._injector=we,this._defaultOptions=Ae,this._parentDialog=le,this._overlayContainer=We,this._dialogRefConstructor=Ne,this._dialogContainerType=Ve,this._dialogDataToken=ue,this._animationMode=Te,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new C.x,this._afterOpenedAtThisLevel=new C.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,c.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,P.O)(void 0))),this._scrollStrategy=yt}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const j=this._parentDialog;return j?j._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(j,we){if(we=function(Fe,q){return Object.assign(Object.assign({},q),Fe)}(we,this._defaultOptions||new ie),we.id&&this.getDialogById(we.id),this._dialogAnimatingOpen)return this._lastDialogRef;const Ae=this._createOverlay(we),le=this._attachDialogContainer(Ae,we);if("NoopAnimations"!==this._animationMode){const yt=le._animationStateChanged.subscribe(Ne=>{"opening"===Ne.state&&(this._dialogAnimatingOpen=!0),"opened"===Ne.state&&(this._dialogAnimatingOpen=!1,yt.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new R.w0),this._animationStateSubscriptions.add(yt)}const We=this._attachDialogContent(j,le,Ae,we);return this._lastDialogRef=We,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(We),We.afterClosed().subscribe(()=>this._removeOpenDialog(We)),this.afterOpened.next(We),le._initializeWithAttachedContent(),We}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(j){return this.openDialogs.find(we=>we.id===j)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(j){const we=this._getOverlayConfig(j);return this._overlay.create(we)}_getOverlayConfig(j){const we=new e.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:j.scrollStrategy||this._scrollStrategy(),panelClass:j.panelClass,hasBackdrop:j.hasBackdrop,direction:j.direction,minWidth:j.minWidth,minHeight:j.minHeight,maxWidth:j.maxWidth,maxHeight:j.maxHeight,disposeOnNavigation:j.closeOnNavigation});return j.backdropClass&&(we.backdropClass=j.backdropClass),we}_attachDialogContainer(j,we){const le=v.zs3.create({parent:we&&we.viewContainerRef&&we.viewContainerRef.injector||this._injector,providers:[{provide:ie,useValue:we}]}),We=new t.C5(this._dialogContainerType,we.viewContainerRef,le,we.componentFactoryResolver);return j.attach(We).instance}_attachDialogContent(j,we,Ae,le){const We=new this._dialogRefConstructor(Ae,we,le.id);if(j instanceof v.Rgc)we.attachTemplatePortal(new t.UE(j,null,{$implicit:le.data,dialogRef:We}));else{const yt=this._createInjector(le,We,we),Ne=we.attachComponentPortal(new t.C5(j,le.viewContainerRef,yt));We.componentInstance=Ne.instance}return We.updateSize(le.width,le.height).updatePosition(le.position),We}_createInjector(j,we,Ae){const le=j&&j.viewContainerRef&&j.viewContainerRef.injector,We=[{provide:this._dialogContainerType,useValue:Ae},{provide:this._dialogDataToken,useValue:j.data},{provide:this._dialogRefConstructor,useValue:we}];return j.direction&&(!le||!le.get(s.Is,null,v.XFs.Optional))&&We.push({provide:s.Is,useValue:{value:j.direction,change:(0,o.of)()}}),v.zs3.create({parent:le||this._injector,providers:We})}_removeOpenDialog(j){const we=this.openDialogs.indexOf(j);we>-1&&(this.openDialogs.splice(we,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Ae,le)=>{Ae?le.setAttribute("aria-hidden",Ae):le.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const j=this._overlayContainer.getContainerElement();if(j.parentElement){const we=j.parentElement.children;for(let Ae=we.length-1;Ae>-1;Ae--){let le=we[Ae];le!==j&&"SCRIPT"!==le.nodeName&&"STYLE"!==le.nodeName&&!le.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(le,le.getAttribute("aria-hidden")),le.setAttribute("aria-hidden","true"))}}}_closeDialogs(j){let we=j.length;for(;we--;)j[we].close()}}return Fe.\u0275fac=function(j){v.$Z()},Fe.\u0275dir=v.lG2({type:Fe}),Fe})(),x=(()=>{class Fe extends I{constructor(j,we,Ae,le,We,yt,Ne,Ve){super(j,we,le,yt,Ne,We,oe,ne,i,Ve)}}return Fe.\u0275fac=function(j){return new(j||Fe)(v.LFG(e.aV),v.LFG(v.zs3),v.LFG(D.Ye,8),v.LFG(a,8),v.LFG(p),v.LFG(Fe,12),v.LFG(e.Xj),v.LFG(W.Qb,8))},Fe.\u0275prov=v.Yz7({token:Fe,factory:Fe.\u0275fac}),Fe})(),J=(()=>{class Fe{constructor(j,we,Ae){this.dialogRef=j,this._elementRef=we,this._dialog=Ae,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function(Fe,q){let j=Fe.nativeElement.parentElement;for(;j&&!j.classList.contains("mat-dialog-container");)j=j.parentElement;return j?q.find(we=>we.id===j.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(j){const we=j._matDialogClose||j._matDialogCloseResult;we&&(this.dialogResult=we.currentValue)}_onButtonClick(j){y(this.dialogRef,0===j.screenX&&0===j.screenY?"keyboard":"mouse",this.dialogResult)}}return Fe.\u0275fac=function(j){return new(j||Fe)(v.Y36(oe,8),v.Y36(v.SBq),v.Y36(x))},Fe.\u0275dir=v.lG2({type:Fe,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(j,we){1&j&&v.NdJ("click",function(le){return we._onButtonClick(le)}),2&j&&v.uIk("aria-label",we.ariaLabel||null)("type",we.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[v.TTD]}),Fe})(),Pe=(()=>{class Fe{}return Fe.\u0275fac=function(j){return new(j||Fe)},Fe.\u0275mod=v.oAB({type:Fe}),Fe.\u0275inj=v.cJS({providers:[x,L],imports:[[e.U8,t.eL,M.BQ],M.BQ]}),Fe})()},4834:(Ue,K,m)=>{"use strict";m.d(K,{d:()=>M,t:()=>s});var e=m(5e3),t=m(3191),v=m(508);let M=(()=>{class C{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(R){this._vertical=(0,t.Ig)(R)}get inset(){return this._inset}set inset(R){this._inset=(0,t.Ig)(R)}}return C.\u0275fac=function(R){return new(R||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(R,o){2&R&&(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(R,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}),C})(),s=(()=>{class C{}return C.\u0275fac=function(R){return new(R||C)},C.\u0275mod=e.oAB({type:C}),C.\u0275inj=e.cJS({imports:[[v.BQ],v.BQ]}),C})()},1125:(Ue,K,m)=>{"use strict";m.d(K,{pp:()=>q,To:()=>j,ib:()=>J,u4:()=>Pe,yz:()=>xe,yK:()=>Fe});var e=m(5e3),t=m(3191),v=m(7579),M=m(727),s=m(449);let C=0;const c=new e.OlP("CdkAccordion");let R=(()=>{class we{constructor(){this._stateChanges=new v.x,this._openCloseAllActions=new v.x,this.id="cdk-accordion-"+C++,this._multi=!1}get multi(){return this._multi}set multi(le){this._multi=(0,t.Ig)(le)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(le){this._stateChanges.next(le)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return we.\u0275fac=function(le){return new(le||we)},we.\u0275dir=e.lG2({type:we,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:c,useExisting:we}]),e.TTD]}),we})(),o=0,O=(()=>{class we{constructor(le,We,yt){this.accordion=le,this._changeDetectorRef=We,this._expansionDispatcher=yt,this._openCloseAllSubscription=M.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=yt.listen((Ne,Ve)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ve&&this.id!==Ne&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(le){le=(0,t.Ig)(le),this._expanded!==le&&(this._expanded=le,this.expandedChange.emit(le),le?(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(le){this._disabled=(0,t.Ig)(le)}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(le=>{this.disabled||(this.expanded=le)})}}return we.\u0275fac=function(le){return new(le||we)(e.Y36(c,12),e.Y36(e.sBO),e.Y36(s.A8))},we.\u0275dir=e.lG2({type:we,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}])]}),we})(),T=(()=>{class we{}return we.\u0275fac=function(le){return new(le||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({}),we})();var P=m(7429),S=m(9808),D=m(508),w=m(5664),U=m(1884),G=m(8675),W=m(9300),ee=m(5698),ie=m(1159),_e=m(6360),fe=m(515),de=m(6451),ne=m(1777);const se=["body"];function oe(we,Ae){}const y=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],i=["mat-expansion-panel-header","*","mat-action-row"];function a(we,Ae){if(1&we&&e._UZ(0,"span",2),2&we){const le=e.oxw();e.Q6J("@indicatorRotate",le._getExpandedState())}}const p=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],u=["mat-panel-title","mat-panel-description","*"],_=new e.OlP("MAT_ACCORDION"),L="225ms cubic-bezier(0.4,0.0,0.2,1)",I={indicatorRotate:(0,ne.X$)("indicatorRotate",[(0,ne.SB)("collapsed, void",(0,ne.oB)({transform:"rotate(0deg)"})),(0,ne.SB)("expanded",(0,ne.oB)({transform:"rotate(180deg)"})),(0,ne.eR)("expanded <=> collapsed, void => collapsed",(0,ne.jt)(L))]),bodyExpansion:(0,ne.X$)("bodyExpansion",[(0,ne.SB)("collapsed, void",(0,ne.oB)({height:"0px",visibility:"hidden"})),(0,ne.SB)("expanded",(0,ne.oB)({height:"*",visibility:"visible"})),(0,ne.eR)("expanded <=> collapsed, void => collapsed",(0,ne.jt)(L))])};let x=(()=>{class we{constructor(le){this._template=le}}return we.\u0275fac=function(le){return new(le||we)(e.Y36(e.Rgc))},we.\u0275dir=e.lG2({type:we,selectors:[["ng-template","matExpansionPanelContent",""]]}),we})(),r=0;const b=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let J=(()=>{class we extends O{constructor(le,We,yt,Ne,Ve,ue,Te){super(le,We,yt),this._viewContainerRef=Ne,this._animationMode=ue,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=le,this._document=Ve,this._bodyAnimationDone.pipe((0,U.x)((ke,Y)=>ke.fromState===Y.fromState&&ke.toState===Y.toState)).subscribe(ke=>{"void"!==ke.fromState&&("expanded"===ke.toState?this.afterExpand.emit():"collapsed"===ke.toState&&this.afterCollapse.emit())}),Te&&(this.hideToggle=Te.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(le){this._hideToggle=(0,t.Ig)(le)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(le){this._togglePosition=le}_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,G.O)(null),(0,W.h)(()=>this.expanded&&!this._portal),(0,ee.q)(1)).subscribe(()=>{this._portal=new P.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(le){this._inputChanges.next(le)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const le=this._document.activeElement,We=this._body.nativeElement;return le===We||We.contains(le)}return!1}}return we.\u0275fac=function(le){return new(le||we)(e.Y36(_,12),e.Y36(e.sBO),e.Y36(s.A8),e.Y36(e.s_b),e.Y36(S.K0),e.Y36(_e.Qb,8),e.Y36(b,8))},we.\u0275cmp=e.Xpm({type:we,selectors:[["mat-expansion-panel"]],contentQueries:function(le,We,yt){if(1&le&&e.Suo(yt,x,5),2&le){let Ne;e.iGM(Ne=e.CRH())&&(We._lazyContent=Ne.first)}},viewQuery:function(le,We){if(1&le&&e.Gf(se,5),2&le){let yt;e.iGM(yt=e.CRH())&&(We._body=yt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(le,We){2&le&&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(le,We){1&le&&(e.F$t(y),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Ne){return We._bodyAnimationDone.next(Ne)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,oe,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&le&&(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:[P.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}),we})();class B{}const te=(0,D.sb)(B);let xe=(()=>{class we extends te{constructor(le,We,yt,Ne,Ve,ue,Te){super(),this.panel=le,this._element=We,this._focusMonitor=yt,this._changeDetectorRef=Ne,this._animationMode=ue,this._parentChangeSubscription=M.w0.EMPTY;const ke=le.accordion?le.accordion._stateChanges.pipe((0,W.h)(Y=>!(!Y.hideToggle&&!Y.togglePosition))):fe.E;this.tabIndex=parseInt(Te||"")||0,this._parentChangeSubscription=(0,de.T)(le.opened,le.closed,ke,le._inputChanges.pipe((0,W.h)(Y=>!!(Y.hideToggle||Y.disabled||Y.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),le.closed.pipe((0,W.h)(()=>le._containsFocus())).subscribe(()=>yt.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 le=this._isExpanded();return le&&this.expandedHeight?this.expandedHeight:!le&&this.collapsedHeight?this.collapsedHeight:null}_keydown(le){switch(le.keyCode){case ie.L_:case ie.K5:(0,ie.Vb)(le)||(le.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(le))}}focus(le,We){le?this._focusMonitor.focusVia(this._element,le,We):this._element.nativeElement.focus(We)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(le=>{le&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return we.\u0275fac=function(le){return new(le||we)(e.Y36(J,1),e.Y36(e.SBq),e.Y36(w.tE),e.Y36(e.sBO),e.Y36(b,8),e.Y36(_e.Qb,8),e.$8M("tabindex"))},we.\u0275cmp=e.Xpm({type:we,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(le,We){1&le&&e.NdJ("click",function(){return We._toggle()})("keydown",function(Ne){return We._keydown(Ne)}),2&le&&(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(le,We){1&le&&(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&le&&(e.xp6(4),e.Q6J("ngIf",We._showToggle()))},directives:[S.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}),we})(),Pe=(()=>{class we{}return we.\u0275fac=function(le){return new(le||we)},we.\u0275dir=e.lG2({type:we,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),we})(),Fe=(()=>{class we{}return we.\u0275fac=function(le){return new(le||we)},we.\u0275dir=e.lG2({type:we,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),we})(),q=(()=>{class we extends R{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(le){this._hideToggle=(0,t.Ig)(le)}ngAfterContentInit(){this._headers.changes.pipe((0,G.O)(this._headers)).subscribe(le=>{this._ownHeaders.reset(le.filter(We=>We.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new w.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(le){this._keyManager.onKeydown(le)}_handleHeaderFocus(le){this._keyManager.updateActiveItem(le)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return we.\u0275fac=function(){let Ae;return function(We){return(Ae||(Ae=e.n5z(we)))(We||we)}}(),we.\u0275dir=e.lG2({type:we,selectors:[["mat-accordion"]],contentQueries:function(le,We,yt){if(1&le&&e.Suo(yt,xe,5),2&le){let Ne;e.iGM(Ne=e.CRH())&&(We._headers=Ne)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(le,We){2&le&&e.ekj("mat-accordion-multi",We.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:_,useExisting:we}]),e.qOj]}),we})(),j=(()=>{class we{}return we.\u0275fac=function(le){return new(le||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({imports:[[S.ez,D.BQ,T,P.eL]]}),we})()},7322:(Ue,K,m)=>{"use strict";m.d(K,{G_:()=>ue,TO:()=>I,KE:()=>Te,Eo:()=>r,lN:()=>ke,bx:()=>xe,R9:()=>Ae});var e=m(7144),t=m(9808),v=m(5e3),M=m(508),s=m(3191),C=m(7579),c=m(6451),R=m(4968),o=m(8675),O=m(2722),T=m(5698),P=m(1777),S=m(6360),D=m(226),w=m(925);const U=["connectionContainer"],G=["inputContainer"],W=["label"];function ee(Y,X){1&Y&&(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 ie(Y,X){if(1&Y){const he=v.EpF();v.TgZ(0,"div",19),v.NdJ("cdkObserveContent",function(){return v.CHM(he),v.oxw().updateOutlineGap()}),v.Hsn(1,1),v.qZA()}if(2&Y){const he=v.oxw();v.Q6J("cdkObserveContentDisabled","outline"!=he.appearance)}}function _e(Y,X){if(1&Y&&(v.ynx(0),v.Hsn(1,2),v.TgZ(2,"span"),v._uU(3),v.qZA(),v.BQk()),2&Y){const he=v.oxw(2);v.xp6(3),v.Oqu(he._control.placeholder)}}function fe(Y,X){1&Y&&v.Hsn(0,3,["*ngSwitchCase","true"])}function de(Y,X){1&Y&&(v.TgZ(0,"span",23),v._uU(1," *"),v.qZA())}function ne(Y,X){if(1&Y){const he=v.EpF();v.TgZ(0,"label",20,21),v.NdJ("cdkObserveContent",function(){return v.CHM(he),v.oxw().updateOutlineGap()}),v.YNc(2,_e,4,1,"ng-container",12),v.YNc(3,fe,1,0,"ng-content",12),v.YNc(4,de,2,0,"span",22),v.qZA()}if(2&Y){const he=v.oxw();v.ekj("mat-empty",he._control.empty&&!he._shouldAlwaysFloat())("mat-form-field-empty",he._control.empty&&!he._shouldAlwaysFloat())("mat-accent","accent"==he.color)("mat-warn","warn"==he.color),v.Q6J("cdkObserveContentDisabled","outline"!=he.appearance)("id",he._labelId)("ngSwitch",he._hasLabel()),v.uIk("for",he._control.id)("aria-owns",he._control.id),v.xp6(2),v.Q6J("ngSwitchCase",!1),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngIf",!he.hideRequiredMarker&&he._control.required&&!he._control.disabled)}}function se(Y,X){1&Y&&(v.TgZ(0,"div",24),v.Hsn(1,4),v.qZA())}function oe(Y,X){if(1&Y&&(v.TgZ(0,"div",25),v._UZ(1,"span",26),v.qZA()),2&Y){const he=v.oxw();v.xp6(1),v.ekj("mat-accent","accent"==he.color)("mat-warn","warn"==he.color)}}function y(Y,X){if(1&Y&&(v.TgZ(0,"div"),v.Hsn(1,5),v.qZA()),2&Y){const he=v.oxw();v.Q6J("@transitionMessages",he._subscriptAnimationState)}}function i(Y,X){if(1&Y&&(v.TgZ(0,"div",30),v._uU(1),v.qZA()),2&Y){const he=v.oxw(2);v.Q6J("id",he._hintLabelId),v.xp6(1),v.Oqu(he.hintLabel)}}function a(Y,X){if(1&Y&&(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&Y){const he=v.oxw();v.Q6J("@transitionMessages",he._subscriptAnimationState),v.xp6(1),v.Q6J("ngIf",he.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 L=new v.OlP("MatError");let I=(()=>{class Y{constructor(he,Me){this.id="mat-error-"+_++,he||Me.nativeElement.setAttribute("aria-live","polite")}}return Y.\u0275fac=function(he){return new(he||Y)(v.$8M("aria-live"),v.Y36(v.SBq))},Y.\u0275dir=v.lG2({type:Y,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(he,Me){2&he&&v.uIk("id",Me.id)},inputs:{id:"id"},features:[v._Bn([{provide:L,useExisting:Y}])]}),Y})();const x={transitionMessages:(0,P.X$)("transitionMessages",[(0,P.SB)("enter",(0,P.oB)({opacity:1,transform:"translateY(0%)"})),(0,P.eR)("void => enter",[(0,P.oB)({opacity:0,transform:"translateY(-5px)"}),(0,P.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let r=(()=>{class Y{}return Y.\u0275fac=function(he){return new(he||Y)},Y.\u0275dir=v.lG2({type:Y}),Y})(),B=0;const te=new v.OlP("MatHint");let xe=(()=>{class Y{constructor(){this.align="start",this.id="mat-hint-"+B++}}return Y.\u0275fac=function(he){return new(he||Y)},Y.\u0275dir=v.lG2({type:Y,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(he,Me){2&he&&(v.uIk("id",Me.id)("align",null),v.ekj("mat-form-field-hint-end","end"===Me.align))},inputs:{align:"align",id:"id"},features:[v._Bn([{provide:te,useExisting:Y}])]}),Y})(),Pe=(()=>{class Y{}return Y.\u0275fac=function(he){return new(he||Y)},Y.\u0275dir=v.lG2({type:Y,selectors:[["mat-label"]]}),Y})(),Fe=(()=>{class Y{}return Y.\u0275fac=function(he){return new(he||Y)},Y.\u0275dir=v.lG2({type:Y,selectors:[["mat-placeholder"]]}),Y})();const q=new v.OlP("MatPrefix"),we=new v.OlP("MatSuffix");let Ae=(()=>{class Y{}return Y.\u0275fac=function(he){return new(he||Y)},Y.\u0275dir=v.lG2({type:Y,selectors:[["","matSuffix",""]],features:[v._Bn([{provide:we,useExisting:Y}])]}),Y})(),le=0;const Ne=(0,M.pj)(class{constructor(Y){this._elementRef=Y}},"primary"),Ve=new v.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ue=new v.OlP("MatFormField");let Te=(()=>{class Y extends Ne{constructor(he,Me,ze,ht,it,ft,nt){super(he),this._changeDetectorRef=Me,this._dir=ze,this._defaults=ht,this._platform=it,this._ngZone=ft,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new C.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+le++,this._labelId="mat-form-field-label-"+le++,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(he){const Me=this._appearance;this._appearance=he||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&Me!==he&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(he){this._hideRequiredMarker=(0,s.Ig)(he)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(he){this._hintLabel=he,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(he){he!==this._floatLabel&&(this._floatLabel=he||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(he){this._explicitFormFieldControl=he}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const he=this._control;he.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${he.controlType}`),he.stateChanges.pipe((0,o.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),he.ngControl&&he.ngControl.valueChanges&&he.ngControl.valueChanges.pipe((0,O.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,O.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,O.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(he){const Me=this._control?this._control.ngControl:null;return Me&&Me[he]}_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,R.R)(this._label.nativeElement,"transitionend").pipe((0,T.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 he=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&he.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Me=this._hintChildren?this._hintChildren.find(ht=>"start"===ht.align):null,ze=this._hintChildren?this._hintChildren.find(ht=>"end"===ht.align):null;Me?he.push(Me.id):this._hintLabel&&he.push(this._hintLabelId),ze&&he.push(ze.id)}else this._errorChildren&&he.push(...this._errorChildren.map(Me=>Me.id));this._control.setDescribedByIds(he)}}_validateControlChild(){}updateOutlineGap(){const he=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&he&&he.children.length&&he.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let Me=0,ze=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=he.children,Bt=this._getStartEnd(wt[0].getBoundingClientRect());let Nt=0;for(let Vt=0;Vt<wt.length;Vt++)Nt+=wt[Vt].offsetWidth;Me=Math.abs(Bt-st)-5,ze=Nt>0?.75*Nt+10:0}for(let nt=0;nt<it.length;nt++)it[nt].style.width=`${Me}px`;for(let nt=0;nt<ft.length;nt++)ft[nt].style.width=`${ze}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(he){return this._dir&&"rtl"===this._dir.value?he.right:he.left}_isAttachedToDOM(){const he=this._elementRef.nativeElement;if(he.getRootNode){const Me=he.getRootNode();return Me&&Me!==he}return document.documentElement.contains(he)}}return Y.\u0275fac=function(he){return new(he||Y)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(D.Is,8),v.Y36(Ve,8),v.Y36(w.t4),v.Y36(v.R0b),v.Y36(S.Qb,8))},Y.\u0275cmp=v.Xpm({type:Y,selectors:[["mat-form-field"]],contentQueries:function(he,Me,ze){if(1&he&&(v.Suo(ze,r,5),v.Suo(ze,r,7),v.Suo(ze,Pe,5),v.Suo(ze,Pe,7),v.Suo(ze,Fe,5),v.Suo(ze,L,5),v.Suo(ze,te,5),v.Suo(ze,q,5),v.Suo(ze,we,5)),2&he){let ht;v.iGM(ht=v.CRH())&&(Me._controlNonStatic=ht.first),v.iGM(ht=v.CRH())&&(Me._controlStatic=ht.first),v.iGM(ht=v.CRH())&&(Me._labelChildNonStatic=ht.first),v.iGM(ht=v.CRH())&&(Me._labelChildStatic=ht.first),v.iGM(ht=v.CRH())&&(Me._placeholderChild=ht.first),v.iGM(ht=v.CRH())&&(Me._errorChildren=ht),v.iGM(ht=v.CRH())&&(Me._hintChildren=ht),v.iGM(ht=v.CRH())&&(Me._prefixChildren=ht),v.iGM(ht=v.CRH())&&(Me._suffixChildren=ht)}},viewQuery:function(he,Me){if(1&he&&(v.Gf(U,7),v.Gf(G,5),v.Gf(W,5)),2&he){let ze;v.iGM(ze=v.CRH())&&(Me._connectionContainerRef=ze.first),v.iGM(ze=v.CRH())&&(Me._inputContainerRef=ze.first),v.iGM(ze=v.CRH())&&(Me._label=ze.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(he,Me){2&he&&v.ekj("mat-form-field-appearance-standard","standard"==Me.appearance)("mat-form-field-appearance-fill","fill"==Me.appearance)("mat-form-field-appearance-outline","outline"==Me.appearance)("mat-form-field-appearance-legacy","legacy"==Me.appearance)("mat-form-field-invalid",Me._control.errorState)("mat-form-field-can-float",Me._canLabelFloat())("mat-form-field-should-float",Me._shouldLabelFloat())("mat-form-field-has-label",Me._hasFloatingLabel())("mat-form-field-hide-placeholder",Me._hideControlPlaceholder())("mat-form-field-disabled",Me._control.disabled)("mat-form-field-autofilled",Me._control.autofilled)("mat-focused",Me._control.focused)("ng-untouched",Me._shouldForward("untouched"))("ng-touched",Me._shouldForward("touched"))("ng-pristine",Me._shouldForward("pristine"))("ng-dirty",Me._shouldForward("dirty"))("ng-valid",Me._shouldForward("valid"))("ng-invalid",Me._shouldForward("invalid"))("ng-pending",Me._shouldForward("pending"))("_mat-animation-noopable",!Me._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[v._Bn([{provide:ue,useExisting:Y}]),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(he,Me){1&he&&(v.F$t(p),v.TgZ(0,"div",0),v.TgZ(1,"div",1,2),v.NdJ("click",function(ht){return Me._control.onContainerClick&&Me._control.onContainerClick(ht)}),v.YNc(3,ee,9,0,"ng-container",3),v.YNc(4,ie,2,1,"div",4),v.TgZ(5,"div",5,6),v.Hsn(7),v.TgZ(8,"span",7),v.YNc(9,ne,5,16,"label",8),v.qZA(),v.qZA(),v.YNc(10,se,2,0,"div",9),v.qZA(),v.YNc(11,oe,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&he&&(v.xp6(3),v.Q6J("ngIf","outline"==Me.appearance),v.xp6(1),v.Q6J("ngIf",Me._prefixChildren.length),v.xp6(5),v.Q6J("ngIf",Me._hasFloatingLabel()),v.xp6(1),v.Q6J("ngIf",Me._suffixChildren.length),v.xp6(1),v.Q6J("ngIf","outline"!=Me.appearance),v.xp6(1),v.Q6J("ngSwitch",Me._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}),Y})(),ke=(()=>{class Y{}return Y.\u0275fac=function(he){return new(he||Y)},Y.\u0275mod=v.oAB({type:Y}),Y.\u0275inj=v.cJS({imports:[[t.ez,M.BQ,e.Q8],M.BQ]}),Y})()},3954:(Ue,K,m)=>{"use strict";m.d(K,{Il:()=>se,N6:()=>oe,DX:()=>P});var e=m(5e3),t=m(508),v=m(3191),M=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 O(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 O{constructor(a,p){this.row=a,this.col=p}}const T=new e.OlP("MAT_GRID_LIST");let P=(()=>{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(T,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 G=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class W{constructor(){this._rows=0,this._rowspan=0}init(a,p,u,_){this._gutterSize=de(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":fe(`(${a} + ${this._gutterSize}) * ${p}`)}getTileSize(a,p){return`(${a} * ${p}) + (${p-1} * ${this._gutterSize})`}setStyle(a,p,u){let _=100/this._cols,L=(this._cols-1)/this._cols;this.setColStyles(a,u,_,L),this.setRowStyles(a,p,_,L)}setColStyles(a,p,u,_){let L=this.getBaseTileSize(u,_);a._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(L,p)),a._setStyle("width",fe(this.getTileSize(L,a.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(a){return`${this._rowspan} * ${this.getTileSize(a,1)}`}getComputedHeight(){return null}}class ee extends W{constructor(a){super(),this.fixedRowHeight=a}init(a,p,u,_){super.init(a,p,u,_),this.fixedRowHeight=de(this.fixedRowHeight),G.test(this.fixedRowHeight)}setRowStyles(a,p){a._setStyle("top",this.getTilePosition(this.fixedRowHeight,p)),a._setStyle("height",fe(this.getTileSize(this.fixedRowHeight,a.rowspan)))}getComputedHeight(){return["height",fe(`${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 ie extends W{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",fe(this.getTileSize(this.baseTileHeight,a.rowspan)))}getComputedHeight(){return["paddingBottom",fe(`${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 _e extends W{setRowStyles(a,p){let L=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);a._setStyle("top",this.getTilePosition(L,p)),a._setStyle("height",fe(this.getTileSize(L,a.rowspan)))}reset(a){a._tiles&&a._tiles.forEach(p=>{p._setStyle("top",null),p._setStyle("height",null)})}}function fe(i){return`calc(${i})`}function de(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let se=(()=>{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 _e:p&&p.indexOf(":")>-1?new ie(p):new ee(p)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new o);const p=this._tileCoordinator,u=this._tiles.filter(L=>!L._gridList||L._gridList===this),_=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,u),this._tileStyler.init(this.gutterSize,p,this.cols,_),u.forEach((L,I)=>{const x=p.positions[I];this._tileStyler.setStyle(L,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(M.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(p,u,_){if(1&p&&e.Suo(_,P,5),2&p){let L;e.iGM(L=e.CRH())&&(u._tiles=L)}},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:T,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})(),oe=(()=>{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:(Ue,K,m)=>{"use strict";m.d(K,{Hw:()=>J,Ps:()=>F});var e=m(5e3),t=m(508),v=m(3191),M=m(9808),s=m(9646),C=m(2843),c=m(4128),R=m(727),o=m(8505),O=m(4004),T=m(262),P=m(8746),S=m(3099),D=m(5698),w=m(8138),U=m(2313);const G=["*"];let W;function ie(B){var te;return(null===(te=function(){if(void 0===W&&(W=null,"undefined"!=typeof window)){const B=window;void 0!==B.trustedTypes&&(W=B.trustedTypes.createPolicy("angular#components",{createHTML:te=>te}))}return W}())||void 0===te?void 0:te.createHTML(B))||B}function _e(B){return Error(`Unable to find icon with the name "${B}"`)}function de(B){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${B}".`)}function ne(B){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${B}".`)}class se{constructor(te,xe,Pe){this.url=te,this.svgText=xe,this.options=Pe}}let oe=(()=>{class B{constructor(xe,Pe,Fe,q){this._httpClient=xe,this._sanitizer=Pe,this._errorHandler=q,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=Fe}addSvgIcon(xe,Pe,Fe){return this.addSvgIconInNamespace("",xe,Pe,Fe)}addSvgIconLiteral(xe,Pe,Fe){return this.addSvgIconLiteralInNamespace("",xe,Pe,Fe)}addSvgIconInNamespace(xe,Pe,Fe,q){return this._addSvgIconConfig(xe,Pe,new se(Fe,null,q))}addSvgIconResolver(xe){return this._resolvers.push(xe),this}addSvgIconLiteralInNamespace(xe,Pe,Fe,q){const j=this._sanitizer.sanitize(e.q3G.HTML,Fe);if(!j)throw ne(Fe);const we=ie(j);return this._addSvgIconConfig(xe,Pe,new se("",we,q))}addSvgIconSet(xe,Pe){return this.addSvgIconSetInNamespace("",xe,Pe)}addSvgIconSetLiteral(xe,Pe){return this.addSvgIconSetLiteralInNamespace("",xe,Pe)}addSvgIconSetInNamespace(xe,Pe,Fe){return this._addSvgIconSetConfig(xe,new se(Pe,null,Fe))}addSvgIconSetLiteralInNamespace(xe,Pe,Fe){const q=this._sanitizer.sanitize(e.q3G.HTML,Pe);if(!q)throw ne(Pe);const j=ie(q);return this._addSvgIconSetConfig(xe,new se("",j,Fe))}registerFontClassAlias(xe,Pe=xe){return this._fontCssClassesByAlias.set(xe,Pe),this}classNameForFontAlias(xe){return this._fontCssClassesByAlias.get(xe)||xe}setDefaultFontSetClass(xe){return this._defaultFontSetClass=xe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(xe){const Pe=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,xe);if(!Pe)throw de(xe);const Fe=this._cachedIconsByUrl.get(Pe);return Fe?(0,s.of)(a(Fe)):this._loadSvgIconFromConfig(new se(xe,null)).pipe((0,o.b)(q=>this._cachedIconsByUrl.set(Pe,q)),(0,O.U)(q=>a(q)))}getNamedSvgIcon(xe,Pe=""){const Fe=p(Pe,xe);let q=this._svgIconConfigs.get(Fe);if(q)return this._getSvgFromConfig(q);if(q=this._getIconConfigFromResolvers(Pe,xe),q)return this._svgIconConfigs.set(Fe,q),this._getSvgFromConfig(q);const j=this._iconSetConfigs.get(Pe);return j?this._getSvgFromIconSetConfigs(xe,j):(0,C._)(_e(Fe))}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,O.U)(Pe=>a(Pe)))}_getSvgFromIconSetConfigs(xe,Pe){const Fe=this._extractIconWithNameFromAnySet(xe,Pe);if(Fe)return(0,s.of)(Fe);const q=Pe.filter(j=>!j.svgText).map(j=>this._loadSvgIconSetFromConfig(j).pipe((0,T.K)(we=>{const le=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,j.url)} failed: ${we.message}`;return this._errorHandler.handleError(new Error(le)),(0,s.of)(null)})));return(0,c.D)(q).pipe((0,O.U)(()=>{const j=this._extractIconWithNameFromAnySet(xe,Pe);if(!j)throw _e(xe);return j}))}_extractIconWithNameFromAnySet(xe,Pe){for(let Fe=Pe.length-1;Fe>=0;Fe--){const q=Pe[Fe];if(q.svgText&&q.svgText.toString().indexOf(xe)>-1){const j=this._svgElementFromConfig(q),we=this._extractSvgIconFromSet(j,xe,q.options);if(we)return we}}return null}_loadSvgIconFromConfig(xe){return this._fetchIcon(xe).pipe((0,o.b)(Pe=>xe.svgText=Pe),(0,O.U)(()=>this._svgElementFromConfig(xe)))}_loadSvgIconSetFromConfig(xe){return xe.svgText?(0,s.of)(null):this._fetchIcon(xe).pipe((0,o.b)(Pe=>xe.svgText=Pe))}_extractSvgIconFromSet(xe,Pe,Fe){const q=xe.querySelector(`[id="${Pe}"]`);if(!q)return null;const j=q.cloneNode(!0);if(j.removeAttribute("id"),"svg"===j.nodeName.toLowerCase())return this._setSvgAttributes(j,Fe);if("symbol"===j.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(j),Fe);const we=this._svgElementFromString(ie("<svg></svg>"));return we.appendChild(j),this._setSvgAttributes(we,Fe)}_svgElementFromString(xe){const Pe=this._document.createElement("DIV");Pe.innerHTML=xe;const Fe=Pe.querySelector("svg");if(!Fe)throw Error("<svg> tag not found");return Fe}_toSvgElement(xe){const Pe=this._svgElementFromString(ie("<svg></svg>")),Fe=xe.attributes;for(let q=0;q<Fe.length;q++){const{name:j,value:we}=Fe[q];"id"!==j&&Pe.setAttribute(j,we)}for(let q=0;q<xe.childNodes.length;q++)xe.childNodes[q].nodeType===this._document.ELEMENT_NODE&&Pe.appendChild(xe.childNodes[q].cloneNode(!0));return Pe}_setSvgAttributes(xe,Pe){return xe.setAttribute("fit",""),xe.setAttribute("height","100%"),xe.setAttribute("width","100%"),xe.setAttribute("preserveAspectRatio","xMidYMid meet"),xe.setAttribute("focusable","false"),Pe&&Pe.viewBox&&xe.setAttribute("viewBox",Pe.viewBox),xe}_fetchIcon(xe){var Pe;const{url:Fe,options:q}=xe,j=null!==(Pe=null==q?void 0:q.withCredentials)&&void 0!==Pe&&Pe;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==Fe)throw Error(`Cannot fetch icon from URL "${Fe}".`);const we=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Fe);if(!we)throw de(Fe);const Ae=this._inProgressUrlFetches.get(we);if(Ae)return Ae;const le=this._httpClient.get(we,{responseType:"text",withCredentials:j}).pipe((0,O.U)(We=>ie(We)),(0,P.x)(()=>this._inProgressUrlFetches.delete(we)),(0,S.B)());return this._inProgressUrlFetches.set(we,le),le}_addSvgIconConfig(xe,Pe,Fe){return this._svgIconConfigs.set(p(xe,Pe),Fe),this}_addSvgIconSetConfig(xe,Pe){const Fe=this._iconSetConfigs.get(xe);return Fe?Fe.push(Pe):this._iconSetConfigs.set(xe,[Pe]),this}_svgElementFromConfig(xe){if(!xe.svgElement){const Pe=this._svgElementFromString(xe.svgText);this._setSvgAttributes(Pe,xe.options),xe.svgElement=Pe}return xe.svgElement}_getIconConfigFromResolvers(xe,Pe){for(let Fe=0;Fe<this._resolvers.length;Fe++){const q=this._resolvers[Fe](Pe,xe);if(q)return u(q)?new se(q.url,null,q.options):new se(q,null)}}}return B.\u0275fac=function(xe){return new(xe||B)(e.LFG(w.eN,8),e.LFG(U.H7),e.LFG(M.K0,8),e.LFG(e.qLn))},B.\u0275prov=e.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();function a(B){return B.cloneNode(!0)}function p(B,te){return B+":"+te}function u(B){return!(!B.url||!B.options)}const _=(0,t.pj)(class{constructor(B){this._elementRef=B}}),L=new e.OlP("mat-icon-location",{providedIn:"root",factory:function(){const B=(0,e.f3M)(M.K0),te=B?B.location:null;return{getPathname:()=>te?te.pathname+te.search:""}}}),x=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],r=x.map(B=>`[${B}]`).join(", "),b=/^url\(['"]?#(.*?)['"]?\)$/;let J=(()=>{class B extends _{constructor(xe,Pe,Fe,q,j){super(xe),this._iconRegistry=Pe,this._location=q,this._errorHandler=j,this._inline=!1,this._currentIconFetch=R.w0.EMPTY,Fe||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 Pe=this._cleanupFontValue(xe);Pe!==this._fontSet&&(this._fontSet=Pe,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(xe){const Pe=this._cleanupFontValue(xe);Pe!==this._fontIcon&&(this._fontIcon=Pe,this._updateFontIconClasses())}_splitIconName(xe){if(!xe)return["",""];const Pe=xe.split(":");switch(Pe.length){case 1:return["",Pe[0]];case 2:return Pe;default:throw Error(`Invalid icon name: "${xe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const xe=this._elementsWithExternalReferences;if(xe&&xe.size){const Pe=this._location.getPathname();Pe!==this._previousPath&&(this._previousPath=Pe,this._prependPathToReferences(Pe))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(xe){this._clearSvgElement();const Pe=xe.querySelectorAll("style");for(let q=0;q<Pe.length;q++)Pe[q].textContent+=" ";const Fe=this._location.getPathname();this._previousPath=Fe,this._cacheChildrenWithExternalReferences(xe),this._prependPathToReferences(Fe),this._elementRef.nativeElement.appendChild(xe)}_clearSvgElement(){const xe=this._elementRef.nativeElement;let Pe=xe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Pe--;){const Fe=xe.childNodes[Pe];(1!==Fe.nodeType||"svg"===Fe.nodeName.toLowerCase())&&Fe.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const xe=this._elementRef.nativeElement,Pe=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();Pe!=this._previousFontSetClass&&(this._previousFontSetClass&&xe.classList.remove(this._previousFontSetClass),Pe&&xe.classList.add(Pe),this._previousFontSetClass=Pe),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 Pe=this._elementsWithExternalReferences;Pe&&Pe.forEach((Fe,q)=>{Fe.forEach(j=>{q.setAttribute(j.name,`url('${xe}#${j.value}')`)})})}_cacheChildrenWithExternalReferences(xe){const Pe=xe.querySelectorAll(r),Fe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let q=0;q<Pe.length;q++)x.forEach(j=>{const we=Pe[q],Ae=we.getAttribute(j),le=Ae?Ae.match(b):null;if(le){let We=Fe.get(we);We||(We=[],Fe.set(we,We)),We.push({name:j,value:le[1]})}})}_updateSvgIcon(xe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),xe){const[Pe,Fe]=this._splitIconName(xe);Pe&&(this._svgNamespace=Pe),Fe&&(this._svgName=Fe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Fe,Pe).pipe((0,D.q)(1)).subscribe(q=>this._setSvgElement(q),q=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Pe}:${Fe}! ${q.message}`))})}}}return B.\u0275fac=function(xe){return new(xe||B)(e.Y36(e.SBq),e.Y36(oe),e.$8M("aria-hidden"),e.Y36(L),e.Y36(e.qLn))},B.\u0275cmp=e.Xpm({type:B,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(xe,Pe){2&xe&&(e.uIk("data-mat-icon-type",Pe._usingFontIcon()?"font":"svg")("data-mat-icon-name",Pe._svgName||Pe.fontIcon)("data-mat-icon-namespace",Pe._svgNamespace||Pe.fontSet),e.ekj("mat-icon-inline",Pe.inline)("mat-icon-no-color","primary"!==Pe.color&&"accent"!==Pe.color&&"warn"!==Pe.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:G,decls:1,vars:0,template:function(xe,Pe){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}),B})(),F=(()=>{class B{}return B.\u0275fac=function(xe){return new(xe||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({imports:[[t.BQ],t.BQ]}),B})()},7531:(Ue,K,m)=>{"use strict";m.d(K,{Jk:()=>w,Nt:()=>ee,c:()=>ie});var e=m(3191),t=m(925),v=m(5e3),M=m(3075),s=m(508),C=m(7322),c=m(7579),R=m(515);const o=(0,t.i$)({passive:!0});let O=(()=>{class _e{constructor(de,ne){this._platform=de,this._ngZone=ne,this._monitoredElements=new Map}monitor(de){if(!this._platform.isBrowser)return R.E;const ne=(0,e.fI)(de),se=this._monitoredElements.get(ne);if(se)return se.subject;const oe=new c.x,y="cdk-text-field-autofilled",i=a=>{"cdk-text-field-autofill-start"!==a.animationName||ne.classList.contains(y)?"cdk-text-field-autofill-end"===a.animationName&&ne.classList.contains(y)&&(ne.classList.remove(y),this._ngZone.run(()=>oe.next({target:a.target,isAutofilled:!1}))):(ne.classList.add(y),this._ngZone.run(()=>oe.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{ne.addEventListener("animationstart",i,o),ne.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(ne,{subject:oe,unlisten:()=>{ne.removeEventListener("animationstart",i,o)}}),oe}stopMonitoring(de){const ne=(0,e.fI)(de),se=this._monitoredElements.get(ne);se&&(se.unlisten(),se.subject.complete(),ne.classList.remove("cdk-text-field-autofill-monitored"),ne.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(ne))}ngOnDestroy(){this._monitoredElements.forEach((de,ne)=>this.stopMonitoring(ne))}}return _e.\u0275fac=function(de){return new(de||_e)(v.LFG(t.t4),v.LFG(v.R0b))},_e.\u0275prov=v.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})(),S=(()=>{class _e{}return _e.\u0275fac=function(de){return new(de||_e)},_e.\u0275mod=v.oAB({type:_e}),_e.\u0275inj=v.cJS({imports:[[t.ud]]}),_e})();const w=new v.OlP("MAT_INPUT_VALUE_ACCESSOR"),U=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let G=0;const W=(0,s.FD)(class{constructor(_e,fe,de,ne){this._defaultErrorStateMatcher=_e,this._parentForm=fe,this._parentFormGroup=de,this.ngControl=ne}});let ee=(()=>{class _e extends W{constructor(de,ne,se,oe,y,i,a,p,u,_){super(i,oe,y,se),this._elementRef=de,this._platform=ne,this._autofillMonitor=p,this._formField=_,this._uid="mat-input-"+G++,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 L=this._elementRef.nativeElement,I=L.nodeName.toLowerCase();this._inputValueAccessor=a||L,this._previousNativeValue=this.value,this.id=this.id,ne.IOS&&u.runOutsideAngular(()=>{de.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=L.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(de){this._disabled=(0,e.Ig)(de),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(de){this._id=de||this._uid}get required(){var de,ne,se,oe;return null!==(oe=null!==(de=this._required)&&void 0!==de?de:null===(se=null===(ne=this.ngControl)||void 0===ne?void 0:ne.control)||void 0===se?void 0:se.hasValidator(M.kI.required))&&void 0!==oe&&oe}set required(de){this._required=(0,e.Ig)(de)}get type(){return this._type}set type(de){this._type=de||"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(de){de!==this.value&&(this._inputValueAccessor.value=de,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(de){this._readonly=(0,e.Ig)(de)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(de=>{this.autofilled=de.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(de){this._elementRef.nativeElement.focus(de)}_focusChanged(de){de!==this.focused&&(this.focused=de,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var de,ne;const se=(null===(ne=null===(de=this._formField)||void 0===de?void 0:de._hideControlPlaceholder)||void 0===ne?void 0:ne.call(de))?null:this.placeholder;if(se!==this._previousPlaceholder){const oe=this._elementRef.nativeElement;this._previousPlaceholder=se,se?oe.setAttribute("placeholder",se):oe.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const de=this._elementRef.nativeElement.value;this._previousNativeValue!==de&&(this._previousNativeValue=de,this.stateChanges.next())}_validateType(){U.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let de=this._elementRef.nativeElement.validity;return de&&de.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const de=this._elementRef.nativeElement,ne=de.options[0];return this.focused||de.multiple||!this.empty||!!(de.selectedIndex>-1&&ne&&ne.label)}return this.focused||!this.empty}setDescribedByIds(de){de.length?this._elementRef.nativeElement.setAttribute("aria-describedby",de.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const de=this._elementRef.nativeElement;return this._isNativeSelect&&(de.multiple||de.size>1)}}return _e.\u0275fac=function(de){return new(de||_e)(v.Y36(v.SBq),v.Y36(t.t4),v.Y36(M.a5,10),v.Y36(M.F,8),v.Y36(M.sg,8),v.Y36(s.rD),v.Y36(w,10),v.Y36(O),v.Y36(v.R0b),v.Y36(C.G_,8))},_e.\u0275dir=v.lG2({type:_e,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(de,ne){1&de&&v.NdJ("focus",function(){return ne._focusChanged(!0)})("blur",function(){return ne._focusChanged(!1)})("input",function(){return ne._onInput()}),2&de&&(v.Ikx("disabled",ne.disabled)("required",ne.required),v.uIk("id",ne.id)("data-placeholder",ne.placeholder)("readonly",ne.readonly&&!ne._isNativeSelect||null)("aria-invalid",ne.empty&&ne.required?null:ne.errorState)("aria-required",ne.required),v.ekj("mat-input-server",ne._isServer)("mat-native-select-inline",ne._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:C.Eo,useExisting:_e}]),v.qOj,v.TTD]}),_e})(),ie=(()=>{class _e{}return _e.\u0275fac=function(de){return new(de||_e)},_e.\u0275mod=v.oAB({type:_e}),_e.\u0275inj=v.cJS({providers:[s.rD],imports:[[S,C.lN,s.BQ],S,C.lN]}),_e})()},4623:(Ue,K,m)=>{"use strict";m.d(K,{i$:()=>oe,Tg:()=>p,ie:()=>b});var e=m(9808),t=m(5e3),v=m(508),M=m(3191),s=m(7579),C=m(2722),P=(m(8675),m(5664),m(449),m(1159),m(3075),m(4834));const S=["*"],w=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],U=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],_e=(0,v.Id)((0,v.Kr)(class{})),fe=(0,v.Kr)(class{}),de=new t.OlP("MatList"),ne=new t.OlP("MatNavList");let oe=(()=>{class J extends _e{constructor(B){super(),this._elementRef=B,this._stateChanges=new s.x,"action-list"===this._getListType()&&B.nativeElement.classList.add("mat-action-list")}_getListType(){const B=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===B?"list":"mat-action-list"===B?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return J.\u0275fac=function(B){return new(B||J)(t.Y36(t.SBq))},J.\u0275cmp=t.Xpm({type:J,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[t._Bn([{provide:de,useExisting:J}]),t.qOj,t.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(B,te){1&B&&(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}),J})(),y=(()=>{class J{}return J.\u0275fac=function(B){return new(B||J)},J.\u0275dir=t.lG2({type:J,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),J})(),i=(()=>{class J{}return J.\u0275fac=function(B){return new(B||J)},J.\u0275dir=t.lG2({type:J,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),J})(),p=(()=>{class J extends fe{constructor(B,te,xe,Pe){super(),this._element=B,this._isInteractiveList=!1,this._destroyed=new s.x,this._disabled=!1,this._isInteractiveList=!!(xe||Pe&&"action-list"===Pe._getListType()),this._list=xe||Pe;const Fe=this._getHostElement();"button"===Fe.nodeName.toLowerCase()&&!Fe.hasAttribute("type")&&Fe.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,C.R)(this._destroyed)).subscribe(()=>{te.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(B){this._disabled=(0,M.Ig)(B)}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 J.\u0275fac=function(B){return new(B||J)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(ne,8),t.Y36(de,8))},J.\u0275cmp=t.Xpm({type:J,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(B,te,xe){if(1&B&&(t.Suo(xe,y,5),t.Suo(xe,i,5),t.Suo(xe,v.X2,5)),2&B){let Pe;t.iGM(Pe=t.CRH())&&(te._avatar=Pe.first),t.iGM(Pe=t.CRH())&&(te._icon=Pe.first),t.iGM(Pe=t.CRH())&&(te._lines=Pe)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(B,te){2&B&&t.ekj("mat-list-item-disabled",te.disabled)("mat-list-item-avatar",te._avatar||te._icon)("mat-list-item-with-avatar",te._avatar||te._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:U,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(B,te){1&B&&(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&B&&(t.xp6(1),t.Q6J("matRippleTrigger",te._getHostElement())("matRippleDisabled",te._isRippleDisabled()))},directives:[v.wG],encapsulation:2,changeDetection:0}),J})(),b=(()=>{class J{}return J.\u0275fac=function(B){return new(B||J)},J.\u0275mod=t.oAB({type:J}),J.\u0275inj=t.cJS({imports:[[v.uc,v.si,v.BQ,v.us,e.ez],v.uc,v.BQ,v.us,P.t]}),J})()},2181:(Ue,K,m)=>{"use strict";m.d(K,{VK:()=>q,OP:()=>B,Tx:()=>Ve,p6:()=>Ne});var e=m(5664),t=m(3191),v=m(1159),M=m(5e3),s=m(7579),C=m(727),c=m(6451),R=m(9646),o=m(3101),O=m(8675),T=m(3900),P=m(5698),S=m(9300),D=m(2722),w=m(4086),U=m(1777),G=m(7429),W=m(9808),ee=m(508),ie=m(9776),_e=m(925),fe=m(226),de=m(5303);const ne=["mat-menu-item",""];function se(ue,Te){1&ue&&(M.O4$(),M.TgZ(0,"svg",2),M._UZ(1,"polygon",3),M.qZA())}const oe=["*"];function y(ue,Te){if(1&ue){const ke=M.EpF();M.TgZ(0,"div",0),M.NdJ("keydown",function(X){return M.CHM(ke),M.oxw()._handleKeydown(X)})("click",function(){return M.CHM(ke),M.oxw().closed.emit("click")})("@transformMenu.start",function(X){return M.CHM(ke),M.oxw()._onAnimationStart(X)})("@transformMenu.done",function(X){return M.CHM(ke),M.oxw()._onAnimationDone(X)}),M.TgZ(1,"div",1),M.Hsn(2),M.qZA(),M.qZA()}if(2&ue){const ke=M.oxw();M.Q6J("id",ke.panelId)("ngClass",ke._classList)("@transformMenu",ke._panelAnimationState),M.uIk("aria-label",ke.ariaLabel||null)("aria-labelledby",ke.ariaLabelledby||null)("aria-describedby",ke.ariaDescribedby||null)}}const i={transformMenu:(0,U.X$)("transformMenu",[(0,U.SB)("void",(0,U.oB)({opacity:0,transform:"scale(0.8)"})),(0,U.eR)("void => enter",(0,U.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,U.oB)({opacity:1,transform:"scale(1)"}))),(0,U.eR)("* => void",(0,U.jt)("100ms 25ms linear",(0,U.oB)({opacity:0})))]),fadeInItems:(0,U.X$)("fadeInItems",[(0,U.SB)("showing",(0,U.oB)({opacity:1})),(0,U.eR)("void => *",[(0,U.oB)({opacity:0}),(0,U.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},u=new M.OlP("MatMenuContent"),J=new M.OlP("MAT_MENU_PANEL"),F=(0,ee.Kr)((0,ee.Id)(class{}));let B=(()=>{class ue extends F{constructor(ke,Y,X,he,Me){super(),this._elementRef=ke,this._focusMonitor=X,this._parentMenu=he,this._changeDetectorRef=Me,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,he&&he.addItem&&he.addItem(this)}focus(ke,Y){this._focusMonitor&&ke?this._focusMonitor.focusVia(this._getHostElement(),ke,Y):this._getHostElement().focus(Y),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 Y=this._elementRef.nativeElement.cloneNode(!0),X=Y.querySelectorAll("mat-icon, .material-icons");for(let he=0;he<X.length;he++)X[he].remove();return(null===(ke=Y.textContent)||void 0===ke?void 0:ke.trim())||""}_setHighlighted(ke){var Y;this._highlighted=ke,null===(Y=this._changeDetectorRef)||void 0===Y||Y.markForCheck()}}return ue.\u0275fac=function(ke){return new(ke||ue)(M.Y36(M.SBq),M.Y36(W.K0),M.Y36(e.tE),M.Y36(J,8),M.Y36(M.sBO))},ue.\u0275cmp=M.Xpm({type:ue,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ke,Y){1&ke&&M.NdJ("click",function(he){return Y._checkDisabled(he)})("mouseenter",function(){return Y._handleMouseEnter()}),2&ke&&(M.uIk("role",Y.role)("tabindex",Y._getTabIndex())("aria-disabled",Y.disabled.toString())("disabled",Y.disabled||null),M.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",Y._highlighted)("mat-menu-item-submenu-trigger",Y._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[M.qOj],attrs:ne,ngContentSelectors:oe,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,Y){1&ke&&(M.F$t(),M.Hsn(0),M._UZ(1,"div",0),M.YNc(2,se,2,0,"svg",1)),2&ke&&(M.xp6(1),M.Q6J("matRippleDisabled",Y.disableRipple||Y.disabled)("matRippleTrigger",Y._getHostElement()),M.xp6(1),M.Q6J("ngIf",Y._triggersSubmenu))},directives:[ee.wG,W.O5],encapsulation:2,changeDetection:0}),ue})();const te=new M.OlP("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Pe=0,Fe=(()=>{class ue{constructor(ke,Y,X){this._elementRef=ke,this._ngZone=Y,this._defaultOptions=X,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new M.n_E,this._tabSubscription=C.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 M.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Pe++}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 Y=this._previousPanelClass;Y&&Y.length&&Y.split(" ").forEach(X=>{this._classList[X]=!1}),this._previousPanelClass=ke,ke&&ke.length&&(ke.split(" ").forEach(X=>{this._classList[X]=!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,O.O)(this._directDescendantItems),(0,T.w)(ke=>(0,c.T)(...ke.map(Y=>Y._focused)))).subscribe(ke=>this._keyManager.updateActiveItem(ke))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,O.O)(this._directDescendantItems),(0,T.w)(Y=>(0,c.T)(...Y.map(X=>X._hovered))))}addItem(ke){}removeItem(ke){}_handleKeydown(ke){const Y=ke.keyCode,X=this._keyManager;switch(Y){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:(Y===v.LH||Y===v.JH)&&X.setFocusOrigin("keyboard"),X.onKeydown(ke)}}focusFirstItem(ke="program"){this.lazyContent?this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(()=>this._focusFirstItem(ke)):this._focusFirstItem(ke)}_focusFirstItem(ke){const Y=this._keyManager;if(Y.setFocusOrigin(ke).setFirstItemActive(),!Y.activeItem&&this._directDescendantItems.length){let X=this._directDescendantItems.first._getHostElement().parentElement;for(;X;){if("menu"===X.getAttribute("role")){X.focus();break}X=X.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ke){const Y=Math.min(this._baseElevation+ke,24),X=`${this._elevationPrefix}${Y}`,he=Object.keys(this._classList).find(Me=>Me.startsWith(this._elevationPrefix));(!he||he===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[X]=!0,this._previousElevation=X)}setPositionClasses(ke=this.xPosition,Y=this.yPosition){const X=this._classList;X["mat-menu-before"]="before"===ke,X["mat-menu-after"]="after"===ke,X["mat-menu-above"]="above"===Y,X["mat-menu-below"]="below"===Y}_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,O.O)(this._allItems)).subscribe(ke=>{this._directDescendantItems.reset(ke.filter(Y=>Y._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ue.\u0275fac=function(ke){return new(ke||ue)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(te))},ue.\u0275dir=M.lG2({type:ue,contentQueries:function(ke,Y,X){if(1&ke&&(M.Suo(X,u,5),M.Suo(X,B,5),M.Suo(X,B,4)),2&ke){let he;M.iGM(he=M.CRH())&&(Y.lazyContent=he.first),M.iGM(he=M.CRH())&&(Y._allItems=he),M.iGM(he=M.CRH())&&(Y.items=he)}},viewQuery:function(ke,Y){if(1&ke&&M.Gf(M.Rgc,5),2&ke){let X;M.iGM(X=M.CRH())&&(Y.templateRef=X.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"}}),ue})(),q=(()=>{class ue extends Fe{constructor(ke,Y,X){super(ke,Y,X),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ue.\u0275fac=function(ke){return new(ke||ue)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(te))},ue.\u0275cmp=M.Xpm({type:ue,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ke,Y){2&ke&&M.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[M._Bn([{provide:J,useExisting:ue}]),M.qOj],ngContentSelectors:oe,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,Y){1&ke&&(M.F$t(),M.YNc(0,y,3,6,"ng-template"))},directives:[W.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}),ue})();const j=new M.OlP("mat-menu-scroll-strategy"),Ae={provide:j,deps:[ie.aV],useFactory:function(ue){return()=>ue.scrollStrategies.reposition()}},We=(0,_e.i$)({passive:!0});let yt=(()=>{class ue{constructor(ke,Y,X,he,Me,ze,ht,it){this._overlay=ke,this._element=Y,this._viewContainerRef=X,this._menuItemInstance=ze,this._dir=ht,this._focusMonitor=it,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=C.w0.EMPTY,this._hoverSubscription=C.w0.EMPTY,this._menuCloseSubscription=C.w0.EMPTY,this._handleTouchStart=ft=>{(0,e.yG)(ft)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new M.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new M.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=he,this._parentMaterialMenu=Me instanceof Fe?Me:void 0,Y.nativeElement.addEventListener("touchstart",this._handleTouchStart,We),ze&&(ze._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(Y=>{this._destroyMenu(Y),("click"===Y||"tab"===Y)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Y)})))}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(),Y=ke.getConfig();this._setPosition(Y.positionStrategy),Y.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 Fe&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(ke,Y){this._focusMonitor&&ke?this._focusMonitor.focusVia(this._element,ke,Y):this._element.nativeElement.focus(Y)}updatePosition(){var ke;null===(ke=this._overlayRef)||void 0===ke||ke.updatePosition()}_destroyMenu(ke){if(!this._overlayRef||!this.menuOpen)return;const Y=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ke||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Y instanceof Fe?(Y._resetAnimation(),Y.lazyContent?Y._animationDone.pipe((0,S.h)(X=>"void"===X.toState),(0,P.q)(1),(0,D.R)(Y.lazyContent._attached)).subscribe({next:()=>Y.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Y.lazyContent&&Y.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,Y=this.menu.parentMenu;for(;Y;)ke++,Y=Y.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 ie.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(Y=>{this.menu.setPositionClasses("start"===Y.connectionPair.overlayX?"after":"before","top"===Y.connectionPair.overlayY?"below":"above")})}_setPosition(ke){let[Y,X]="before"===this.menu.xPosition?["end","start"]:["start","end"],[he,Me]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[ze,ht]=[he,Me],[it,ft]=[Y,X],nt=0;this.triggersSubmenu()?(ft=Y="before"===this.menu.xPosition?"start":"end",X=it="end"===Y?"start":"end",nt="bottom"===he?8:-8):this.menu.overlapTrigger||(ze="top"===he?"bottom":"top",ht="top"===Me?"bottom":"top"),ke.withPositions([{originX:Y,originY:ze,overlayX:it,overlayY:he,offsetY:nt},{originX:X,originY:ze,overlayX:ft,overlayY:he,offsetY:nt},{originX:Y,originY:ht,overlayX:it,overlayY:Me,offsetY:-nt},{originX:X,originY:ht,overlayX:ft,overlayY:Me,offsetY:-nt}])}_menuClosingActions(){const ke=this._overlayRef.backdropClick(),Y=this._overlayRef.detachments(),X=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,R.of)(),he=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,S.h)(Me=>Me!==this._menuItemInstance),(0,S.h)(()=>this._menuOpen)):(0,R.of)();return(0,c.T)(ke,X,he,Y)}_handleMousedown(ke){(0,e.X6)(ke)||(this._openedBy=0===ke.button?"mouse":void 0,this.triggersSubmenu()&&ke.preventDefault())}_handleKeydown(ke){const Y=ke.keyCode;(Y===v.K5||Y===v.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Y===v.SV&&"ltr"===this.dir||Y===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,S.h)(ke=>ke===this._menuItemInstance&&!ke.disabled),(0,w.g)(0,o.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Fe&&this.menu._isAnimating?this.menu._animationDone.pipe((0,P.q)(1),(0,w.g)(0,o.E),(0,D.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new G.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return ue.\u0275fac=function(ke){return new(ke||ue)(M.Y36(ie.aV),M.Y36(M.SBq),M.Y36(M.s_b),M.Y36(j),M.Y36(J,8),M.Y36(B,10),M.Y36(fe.Is,8),M.Y36(e.tE))},ue.\u0275dir=M.lG2({type:ue,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ke,Y){1&ke&&M.NdJ("click",function(he){return Y._handleClick(he)})("mousedown",function(he){return Y._handleMousedown(he)})("keydown",function(he){return Y._handleKeydown(he)}),2&ke&&M.uIk("aria-expanded",Y.menuOpen||null)("aria-controls",Y.menuOpen?Y.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"}}),ue})(),Ne=(()=>{class ue extends yt{}return ue.\u0275fac=function(){let Te;return function(Y){return(Te||(Te=M.n5z(ue)))(Y||ue)}}(),ue.\u0275dir=M.lG2({type:ue,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[M.qOj]}),ue})(),Ve=(()=>{class ue{}return ue.\u0275fac=function(ke){return new(ke||ue)},ue.\u0275mod=M.oAB({type:ue}),ue.\u0275inj=M.cJS({providers:[Ae],imports:[[W.ez,ee.BQ,ee.si,ie.U8],de.ZD,ee.BQ]}),ue})()},6087:(Ue,K,m)=>{"use strict";m.d(K,{NW:()=>ne,ye:()=>U,TU:()=>se});var e=m(9808),t=m(5e3),v=m(508),M=m(7423),s=m(4107),C=m(7238),c=m(3191),R=m(7579),o=m(7322);function O(oe,y){if(1&oe&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&oe){const i=y.$implicit;t.Q6J("value",i),t.xp6(1),t.hij(" ",i," ")}}function T(oe,y){if(1&oe){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,O,2,2,"mat-option",18),t.qZA(),t.qZA()}if(2&oe){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 P(oe,y){if(1&oe&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&oe){const i=t.oxw(2);t.xp6(1),t.Oqu(i.pageSize)}}function S(oe,y){if(1&oe&&(t.TgZ(0,"div",12),t.TgZ(1,"div",13),t._uU(2),t.qZA(),t.YNc(3,T,3,6,"mat-form-field",14),t.YNc(4,P,2,1,"div",15),t.qZA()),2&oe){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 D(oe,y){if(1&oe){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&oe){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(oe,y){if(1&oe){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&oe){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 U=(()=>{class oe{constructor(){this.changes=new R.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 oe.\u0275fac=function(i){return new(i||oe)},oe.\u0275prov=t.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})();const W={provide:U,deps:[[new t.FiY,new t.tp0,U]],useFactory:function(oe){return oe||new U}},_e=new t.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),fe=(0,v.Id)((0,v.dB)(class{}));let de=(()=>{class oe extends fe{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:L,showFirstLastButtons:I}=p;null!=u&&(this._pageSize=u),null!=_&&(this._pageSizeOptions=_),null!=L&&(this._hidePageSize=L),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 oe.\u0275fac=function(i){t.$Z()},oe.\u0275dir=t.lG2({type:oe,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[t.qOj]}),oe})(),ne=(()=>{class oe extends de{constructor(i,a,p){super(i,a,p),p&&null!=p.formFieldAppearance&&(this._formFieldAppearance=p.formFieldAppearance)}}return oe.\u0275fac=function(i){return new(i||oe)(t.Y36(U),t.Y36(t.sBO),t.Y36(_e,8))},oe.\u0275cmp=t.Xpm({type:oe,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,S,5,3,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"div",4),t._uU(5),t.qZA(),t.YNc(6,D,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,M.lW,C.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}),oe})(),se=(()=>{class oe{}return oe.\u0275fac=function(i){return new(i||oe)},oe.\u0275mod=t.oAB({type:oe}),oe.\u0275inj=t.cJS({providers:[W],imports:[[e.ez,M.ot,s.LD,C.AV,v.BQ]]}),oe})()},5899:(Ue,K,m)=>{"use strict";m.d(K,{pW:()=>w,Cv:()=>G});var e=m(5e3),t=m(9808),v=m(508),M=m(3191),s=m(6360),C=m(727),c=m(4968),R=m(9300);const o=["primaryValueBar"],O=(0,v.pj)(class{constructor(W){this._elementRef=W}},"primary"),T=new e.OlP("mat-progress-bar-location",{providedIn:"root",factory:function(){const W=(0,e.f3M)(t.K0),ee=W?W.location:null;return{getPathname:()=>ee?ee.pathname+ee.search:""}}}),S=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let D=0,w=(()=>{class W extends O{constructor(ie,_e,fe,de,ne){super(ie),this._ngZone=_e,this._animationMode=fe,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._animationEndSubscription=C.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+D++;const se=de?de.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${se}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===fe,ne&&(ne.color&&(this.color=this.defaultColor=ne.color),this.mode=ne.mode||this.mode)}get value(){return this._value}set value(ie){this._value=U((0,M.su)(ie)||0)}get bufferValue(){return this._bufferValue}set bufferValue(ie){this._bufferValue=U(ie||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 ie=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,c.R)(ie,"transitionend").pipe((0,R.h)(_e=>_e.target===ie)).subscribe(()=>{("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return W.\u0275fac=function(ie){return new(ie||W)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(s.Qb,8),e.Y36(T,8),e.Y36(S,8))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-progress-bar"]],viewQuery:function(ie,_e){if(1&ie&&e.Gf(o,5),2&ie){let fe;e.iGM(fe=e.CRH())&&(_e._primaryValueBar=fe.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(ie,_e){2&ie&&(e.uIk("aria-valuenow","indeterminate"===_e.mode||"query"===_e.mode?null:_e.value)("mode",_e.mode),e.ekj("_mat-animation-noopable",_e._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(ie,_e){1&ie&&(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&ie&&(e.xp6(3),e.Q6J("id",_e.progressbarId),e.xp6(2),e.uIk("fill",_e._rectangleFillValue),e.xp6(1),e.Q6J("ngStyle",_e._bufferTransform()),e.xp6(1),e.Q6J("ngStyle",_e._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}),W})();function U(W,ee=0,ie=100){return Math.max(ee,Math.min(ie,W))}let G=(()=>{class W{}return W.\u0275fac=function(ie){return new(ie||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[[t.ez,v.BQ],v.BQ]}),W})()},773:(Ue,K,m)=>{"use strict";m.d(K,{Cq:()=>ie,$g:()=>ee});var e=m(5e3),t=m(9808),v=m(508),M=m(3191),s=m(925),C=m(6360);function c(_e,fe){if(1&_e&&(e.O4$(),e._UZ(0,"circle",3)),2&_e){const de=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+de._spinnerAnimationLabel)("stroke-dashoffset",de._getStrokeDashOffset(),"px")("stroke-dasharray",de._getStrokeCircumference(),"px")("stroke-width",de._getCircleStrokeWidth(),"%"),e.uIk("r",de._getCircleRadius())}}function R(_e,fe){if(1&_e&&(e.O4$(),e._UZ(0,"circle",3)),2&_e){const de=e.oxw();e.Udp("stroke-dashoffset",de._getStrokeDashOffset(),"px")("stroke-dasharray",de._getStrokeCircumference(),"px")("stroke-width",de._getCircleStrokeWidth(),"%"),e.uIk("r",de._getCircleRadius())}}function o(_e,fe){if(1&_e&&(e.O4$(),e._UZ(0,"circle",3)),2&_e){const de=e.oxw();e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+de._spinnerAnimationLabel)("stroke-dashoffset",de._getStrokeDashOffset(),"px")("stroke-dasharray",de._getStrokeCircumference(),"px")("stroke-width",de._getCircleStrokeWidth(),"%"),e.uIk("r",de._getCircleRadius())}}function O(_e,fe){if(1&_e&&(e.O4$(),e._UZ(0,"circle",3)),2&_e){const de=e.oxw();e.Udp("stroke-dashoffset",de._getStrokeDashOffset(),"px")("stroke-dasharray",de._getStrokeCircumference(),"px")("stroke-width",de._getCircleStrokeWidth(),"%"),e.uIk("r",de._getCircleRadius())}}const D=(0,v.pj)(class{constructor(_e){this._elementRef=_e}},"primary"),w=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});class W extends D{constructor(fe,de,ne,se,oe){super(fe),this._document=ne,this._diameter=100,this._value=0,this.mode="determinate";const y=W._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),y.has(ne.head)||y.set(ne.head,new Set([100])),this._noopAnimations="NoopAnimations"===se&&!!oe&&!oe._forceAnimations,oe&&(oe.diameter&&(this.diameter=oe.diameter),oe.strokeWidth&&(this.strokeWidth=oe.strokeWidth))}get diameter(){return this._diameter}set diameter(fe){this._diameter=(0,M.su)(fe),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(fe){this._strokeWidth=(0,M.su)(fe)}get value(){return"determinate"===this.mode?this._value:0}set value(fe){this._value=Math.max(0,Math.min(100,(0,M.su)(fe)))}ngOnInit(){const fe=this._elementRef.nativeElement;this._styleRoot=(0,s.kV)(fe)||this._document.head,this._attachStyleNode(),fe.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const fe=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${fe} ${fe}`}_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 fe=this._styleRoot,de=this._diameter,ne=W._diameters;let se=ne.get(fe);if(!se||!se.has(de)){const oe=this._document.createElement("style");oe.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),oe.textContent=this._getAnimationText(),fe.appendChild(oe),se||(se=new Set,ne.set(fe,se)),se.add(de)}}_getAnimationText(){const fe=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*fe).replace(/END_VALUE/g,""+.2*fe).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}W._diameters=new WeakMap,W.\u0275fac=function(fe){return new(fe||W)(e.Y36(e.SBq),e.Y36(s.t4),e.Y36(t.K0,8),e.Y36(C.Qb,8),e.Y36(w))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(fe,de){2&fe&&(e.uIk("aria-valuemin","determinate"===de.mode?0:null)("aria-valuemax","determinate"===de.mode?100:null)("aria-valuenow","determinate"===de.mode?de.value:null)("mode",de.mode),e.Udp("width",de.diameter,"px")("height",de.diameter,"px"),e.ekj("_mat-animation-noopable",de._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(fe,de){1&fe&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,c,1,9,"circle",1),e.YNc(2,R,1,7,"circle",2),e.qZA()),2&fe&&(e.Udp("width",de.diameter,"px")("height",de.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===de.mode),e.uIk("viewBox",de._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 ee=(()=>{class _e extends W{constructor(de,ne,se,oe,y){super(de,ne,se,oe,y),this.mode="indeterminate"}}return _e.\u0275fac=function(de){return new(de||_e)(e.Y36(e.SBq),e.Y36(s.t4),e.Y36(t.K0,8),e.Y36(C.Qb,8),e.Y36(w))},_e.\u0275cmp=e.Xpm({type:_e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(de,ne){2&de&&(e.Udp("width",ne.diameter,"px")("height",ne.diameter,"px"),e.ekj("_mat-animation-noopable",ne._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(de,ne){1&de&&(e.O4$(),e.TgZ(0,"svg",0),e.YNc(1,o,1,9,"circle",1),e.YNc(2,O,1,7,"circle",2),e.qZA()),2&de&&(e.Udp("width",ne.diameter,"px")("height",ne.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===ne.mode),e.uIk("viewBox",ne._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}),_e})(),ie=(()=>{class _e{}return _e.\u0275fac=function(de){return new(de||_e)},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({imports:[[v.BQ,t.ez],v.BQ]}),_e})()},9814:(Ue,K,m)=>{"use strict";m.d(K,{U0:()=>fe,VQ:()=>W,Fk:()=>de});var e=m(5e3),t=m(508),v=m(3191),M=m(3075),s=m(6360),C=m(5664),c=m(449);const R=["input"],o=function(ne){return{enterDuration:ne}},O=["*"],T=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let S=0;const D={provide:M.JU,useExisting:(0,e.Gpc)(()=>W),multi:!0};class w{constructor(se,oe){this.source=se,this.value=oe}}const U=new e.OlP("MatRadioGroup");let G=(()=>{class ne{constructor(oe){this._changeDetector=oe,this._value=null,this._name="mat-radio-group-"+S++,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(oe){this._name=oe,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(oe){this._labelPosition="before"===oe?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(oe){this._value!==oe&&(this._value=oe,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(oe){this._selected=oe,this.value=oe?oe.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(oe){this._disabled=(0,v.Ig)(oe),this._markRadiosForCheck()}get required(){return this._required}set required(oe){this._required=(0,v.Ig)(oe),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(oe=>{oe.name=this.name,oe._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(oe=>oe._markForCheck())}writeValue(oe){this.value=oe,this._changeDetector.markForCheck()}registerOnChange(oe){this._controlValueAccessorChangeFn=oe}registerOnTouched(oe){this.onTouched=oe}setDisabledState(oe){this.disabled=oe,this._changeDetector.markForCheck()}}return ne.\u0275fac=function(oe){return new(oe||ne)(e.Y36(e.sBO))},ne.\u0275dir=e.lG2({type:ne,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),ne})(),W=(()=>{class ne extends G{}return ne.\u0275fac=function(){let se;return function(y){return(se||(se=e.n5z(ne)))(y||ne)}}(),ne.\u0275dir=e.lG2({type:ne,selectors:[["mat-radio-group"]],contentQueries:function(oe,y,i){if(1&oe&&e.Suo(i,fe,5),2&oe){let a;e.iGM(a=e.CRH())&&(y._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([D,{provide:U,useExisting:ne}]),e.qOj]}),ne})();class ee{constructor(se){this._elementRef=se}}const ie=(0,t.Kr)((0,t.sb)(ee));let _e=(()=>{class ne extends ie{constructor(oe,y,i,a,p,u,_,L){super(y),this._changeDetector=i,this._focusMonitor=a,this._radioDispatcher=p,this._providerOverride=_,this._uniqueId="mat-radio-"+ ++S,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=oe,this._noopAnimations="NoopAnimations"===u,L&&(this.tabIndex=(0,v.su)(L,0)),this._removeUniqueSelectionListener=p.listen((I,x)=>{I!==this.id&&x===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(oe){const y=(0,v.Ig)(oe);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(oe){this._value!==oe&&(this._value=oe,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===oe),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(oe){this._labelPosition=oe}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(oe){this._setDisabled((0,v.Ig)(oe))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(oe){this._required=(0,v.Ig)(oe)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(oe){this._color=oe}get inputId(){return`${this.id||this._uniqueId}-input`}focus(oe,y){y?this._focusMonitor.focusVia(this._inputElement,y,oe):this._inputElement.nativeElement.focus(oe)}_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(oe=>{!oe&&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(oe){oe.stopPropagation()}_onInputInteraction(oe){if(oe.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(oe){this._disabled!==oe&&(this._disabled=oe,this._changeDetector.markForCheck())}}return ne.\u0275fac=function(oe){e.$Z()},ne.\u0275dir=e.lG2({type:ne,viewQuery:function(oe,y){if(1&oe&&e.Gf(R,5),2&oe){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]}),ne})(),fe=(()=>{class ne extends _e{constructor(oe,y,i,a,p,u,_,L){super(oe,y,i,a,p,u,_,L)}}return ne.\u0275fac=function(oe){return new(oe||ne)(e.Y36(U,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(C.tE),e.Y36(c.A8),e.Y36(s.Qb,8),e.Y36(T,8),e.$8M("tabindex"))},ne.\u0275cmp=e.Xpm({type:ne,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(oe,y){1&oe&&e.NdJ("focus",function(){return y._inputElement.nativeElement.focus()}),2&oe&&(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:O,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(oe,y){if(1&oe&&(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&oe){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}),ne})(),de=(()=>{class ne{}return ne.\u0275fac=function(oe){return new(oe||ne)},ne.\u0275mod=e.oAB({type:ne}),ne.\u0275inj=e.cJS({imports:[[t.si,t.BQ],t.BQ]}),ne})()},4107:(Ue,K,m)=>{"use strict";m.d(K,{gD:()=>Ve,LD:()=>ue,$L:()=>yt});var e=m(9776),t=m(9808),v=m(5e3),M=m(508),s=m(7322),C=m(5303),c=m(5664),R=m(3191),o=m(449),O=m(1159),T=m(3075),P=m(7579),S=m(9770),D=m(6451),w=m(8675),U=m(3900),G=m(5698),W=m(9300),ee=m(4004),ie=m(1884),_e=m(2722),fe=m(1777),de=m(226);const ne=["trigger"],se=["panel"];function oe(Te,ke){if(1&Te&&(v.TgZ(0,"span",8),v._uU(1),v.qZA()),2&Te){const Y=v.oxw();v.xp6(1),v.Oqu(Y.placeholder)}}function y(Te,ke){if(1&Te&&(v.TgZ(0,"span",12),v._uU(1),v.qZA()),2&Te){const Y=v.oxw(2);v.xp6(1),v.Oqu(Y.triggerValue)}}function i(Te,ke){1&Te&&v.Hsn(0,0,["*ngSwitchCase","true"])}function a(Te,ke){if(1&Te&&(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&Te){const Y=v.oxw();v.Q6J("ngSwitch",!!Y.customTrigger),v.xp6(2),v.Q6J("ngSwitchCase",!0)}}function p(Te,ke){if(1&Te){const Y=v.EpF();v.TgZ(0,"div",13),v.TgZ(1,"div",14,15),v.NdJ("@transformPanel.done",function(he){return v.CHM(Y),v.oxw()._panelDoneAnimatingStream.next(he.toState)})("keydown",function(he){return v.CHM(Y),v.oxw()._handleKeydown(he)}),v.Hsn(3,1),v.qZA(),v.qZA()}if(2&Te){const Y=v.oxw();v.Q6J("@transformPanelWrap",void 0),v.xp6(1),v.Gre("mat-select-panel ",Y._getPanelTheme(),""),v.Udp("transform-origin",Y._transformOrigin)("font-size",Y._triggerFontSize,"px"),v.Q6J("ngClass",Y.panelClass)("@transformPanel",Y.multiple?"showing-multiple":"showing"),v.uIk("id",Y.id+"-panel")("aria-multiselectable",Y.multiple)("aria-label",Y.ariaLabel||null)("aria-labelledby",Y._getPanelAriaLabelledby())}}const u=[[["mat-select-trigger"]],"*"],_=["mat-select-trigger","*"],L={transformPanelWrap:(0,fe.X$)("transformPanelWrap",[(0,fe.eR)("* => void",(0,fe.IO)("@transformPanel",[(0,fe.pV)()],{optional:!0}))]),transformPanel:(0,fe.X$)("transformPanel",[(0,fe.SB)("void",(0,fe.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,fe.SB)("showing",(0,fe.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,fe.SB)("showing-multiple",(0,fe.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,fe.eR)("void => *",(0,fe.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,fe.eR)("* => void",(0,fe.jt)("100ms 25ms linear",(0,fe.oB)({opacity:0})))])};let b=0;const J=256,Fe=new v.OlP("mat-select-scroll-strategy"),j=new v.OlP("MAT_SELECT_CONFIG"),we={provide:Fe,deps:[e.aV],useFactory:function(Te){return()=>Te.scrollStrategies.reposition()}};class Ae{constructor(ke,Y){this.source=ke,this.value=Y}}const le=(0,M.Kr)((0,M.sb)((0,M.Id)((0,M.FD)(class{constructor(Te,ke,Y,X,he){this._elementRef=Te,this._defaultErrorStateMatcher=ke,this._parentForm=Y,this._parentFormGroup=X,this.ngControl=he}})))),We=new v.OlP("MatSelectTrigger");let yt=(()=>{class Te{}return Te.\u0275fac=function(Y){return new(Y||Te)},Te.\u0275dir=v.lG2({type:Te,selectors:[["mat-select-trigger"]],features:[v._Bn([{provide:We,useExisting:Te}])]}),Te})(),Ne=(()=>{class Te extends le{constructor(Y,X,he,Me,ze,ht,it,ft,nt,st,wt,Bt,Nt,Vt){var Oi,jt,ti;super(ze,Me,it,ft,st),this._viewportRuler=Y,this._changeDetectorRef=X,this._ngZone=he,this._dir=ht,this._parentFormField=nt,this._liveAnnouncer=Nt,this._defaultOptions=Vt,this._panelOpen=!1,this._compareWith=(Ri,si)=>Ri===si,this._uid="mat-select-"+b++,this._triggerAriaLabelledBy=null,this._destroy=new P.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+b++,this._panelDoneAnimatingStream=new P.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,S.P)(()=>{const Ri=this.options;return Ri?Ri.changes.pipe((0,w.O)(Ri),(0,U.w)(()=>(0,D.T)(...Ri.map(si=>si.onSelectionChange)))):this._ngZone.onStable.pipe((0,G.q)(1),(0,U.w)(()=>this.optionSelectionChanges))}),this.openedChange=new v.vpe,this._openedStream=this.openedChange.pipe((0,W.h)(Ri=>Ri),(0,ee.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,W.h)(Ri=>!Ri),(0,ee.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(Y){this._placeholder=Y,this.stateChanges.next()}get required(){var Y,X,he,Me;return null!==(Me=null!==(Y=this._required)&&void 0!==Y?Y:null===(he=null===(X=this.ngControl)||void 0===X?void 0:X.control)||void 0===he?void 0:he.hasValidator(T.kI.required))&&void 0!==Me&&Me}set required(Y){this._required=(0,R.Ig)(Y),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Y){this._multiple=(0,R.Ig)(Y)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(Y){this._disableOptionCentering=(0,R.Ig)(Y)}get compareWith(){return this._compareWith}set compareWith(Y){this._compareWith=Y,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Y){(Y!==this._value||this._multiple&&Array.isArray(Y))&&(this.options&&this._setSelectionByValue(Y),this._value=Y)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(Y){this._typeaheadDebounceInterval=(0,R.su)(Y)}get id(){return this._id}set id(Y){this._id=Y||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new o.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ie.x)(),(0,_e.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,_e.R)(this._destroy)).subscribe(Y=>{Y.added.forEach(X=>X.select()),Y.removed.forEach(X=>X.deselect())}),this.options.changes.pipe((0,w.O)(null),(0,_e.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Y=this._getTriggerAriaLabelledby();if(Y!==this._triggerAriaLabelledBy){const X=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Y,Y?X.setAttribute("aria-labelledby",Y):X.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(Y){Y.disabled&&this.stateChanges.next(),Y.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(Y){this.value=Y}registerOnChange(Y){this._onChange=Y}registerOnTouched(Y){this._onTouched=Y}setDisabledState(Y){this.disabled=Y,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var Y,X;return this.multiple?(null===(Y=this._selectionModel)||void 0===Y?void 0:Y.selected)||[]:null===(X=this._selectionModel)||void 0===X?void 0:X.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const Y=this._selectionModel.selected.map(X=>X.viewValue);return this._isRtl()&&Y.reverse(),Y.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Y){this.disabled||(this.panelOpen?this._handleOpenKeydown(Y):this._handleClosedKeydown(Y))}_handleClosedKeydown(Y){const X=Y.keyCode,he=X===O.JH||X===O.LH||X===O.oh||X===O.SV,Me=X===O.K5||X===O.L_,ze=this._keyManager;if(!ze.isTyping()&&Me&&!(0,O.Vb)(Y)||(this.multiple||Y.altKey)&&he)Y.preventDefault(),this.open();else if(!this.multiple){const ht=this.selected;ze.onKeydown(Y);const it=this.selected;it&&ht!==it&&this._liveAnnouncer.announce(it.viewValue,1e4)}}_handleOpenKeydown(Y){const X=this._keyManager,he=Y.keyCode,Me=he===O.JH||he===O.LH,ze=X.isTyping();if(Me&&Y.altKey)Y.preventDefault(),this.close();else if(ze||he!==O.K5&&he!==O.L_||!X.activeItem||(0,O.Vb)(Y))if(!ze&&this._multiple&&he===O.A&&Y.ctrlKey){Y.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=X.activeItemIndex;X.onKeydown(Y),this._multiple&&Me&&Y.shiftKey&&X.activeItem&&X.activeItemIndex!==ht&&X.activeItem._selectViaInteraction()}else Y.preventDefault(),X.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,G.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(Y){if(this._selectionModel.selected.forEach(X=>X.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Y)Array.isArray(Y),Y.forEach(X=>this._selectValue(X)),this._sortValues();else{const X=this._selectValue(Y);X?this._keyManager.updateActiveItem(X):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(Y){const X=this.options.find(he=>{if(this._selectionModel.isSelected(he))return!1;try{return null!=he.value&&this._compareWith(he.value,Y)}catch(Me){return!1}});return X&&this._selectionModel.select(X),X}_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,_e.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,_e.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 Y=(0,D.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,_e.R)(Y)).subscribe(X=>{this._onSelect(X.source,X.isUserInput),X.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,D.T)(...this.options.map(X=>X._stateChanges)).pipe((0,_e.R)(Y)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(Y,X){const he=this._selectionModel.isSelected(Y);null!=Y.value||this._multiple?(he!==Y.selected&&(Y.selected?this._selectionModel.select(Y):this._selectionModel.deselect(Y)),X&&this._keyManager.setActiveItem(Y),this.multiple&&(this._sortValues(),X&&this.focus())):(Y.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Y.value)),he!==this._selectionModel.isSelected(Y)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Y=this.options.toArray();this._selectionModel.sort((X,he)=>this.sortComparator?this.sortComparator(X,he,Y):Y.indexOf(X)-Y.indexOf(he)),this.stateChanges.next()}}_propagateChanges(Y){let X=null;X=this.multiple?this.selected.map(he=>he.value):this.selected?this.selected.value:Y,this._value=X,this.valueChange.emit(X),this._onChange(X),this.selectionChange.emit(this._getChangeEvent(X)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var Y;return!this._panelOpen&&!this.disabled&&(null===(Y=this.options)||void 0===Y?void 0:Y.length)>0}focus(Y){this._elementRef.nativeElement.focus(Y)}_getPanelAriaLabelledby(){var Y;if(this.ariaLabel)return null;const X=null===(Y=this._parentFormField)||void 0===Y?void 0:Y.getLabelId();return this.ariaLabelledby?(X?X+" ":"")+this.ariaLabelledby:X}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var Y;if(this.ariaLabel)return null;const X=null===(Y=this._parentFormField)||void 0===Y?void 0:Y.getLabelId();let he=(X?X+" ":"")+this._valueId;return this.ariaLabelledby&&(he+=" "+this.ariaLabelledby),he}_panelDoneAnimating(Y){this.openedChange.emit(Y)}setDescribedByIds(Y){this._ariaDescribedby=Y.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Te.\u0275fac=function(Y){return new(Y||Te)(v.Y36(C.rL),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(M.rD),v.Y36(v.SBq),v.Y36(de.Is,8),v.Y36(T.F,8),v.Y36(T.sg,8),v.Y36(s.G_,8),v.Y36(T.a5,10),v.$8M("tabindex"),v.Y36(Fe),v.Y36(c.Kd),v.Y36(j,8))},Te.\u0275dir=v.lG2({type:Te,viewQuery:function(Y,X){if(1&Y&&(v.Gf(ne,5),v.Gf(se,5),v.Gf(e.pI,5)),2&Y){let he;v.iGM(he=v.CRH())&&(X.trigger=he.first),v.iGM(he=v.CRH())&&(X.panel=he.first),v.iGM(he=v.CRH())&&(X._overlayDir=he.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]}),Te})(),Ve=(()=>{class Te extends Ne{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(Y,X,he){const Me=this._getItemHeight();return Math.min(Math.max(0,Me*Y-X+Me/2),he)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,_e.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,G.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(Y){const X=(0,M.CB)(Y,this.options,this.optionGroups),he=this._getItemHeight();this.panel.nativeElement.scrollTop=0===Y&&1===X?0:(0,M.jH)((Y+X)*he,he,this.panel.nativeElement.scrollTop,J)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(Y){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(Y)}_getChangeEvent(Y){return new Ae(this,Y)}_calculateOverlayOffsetX(){const Y=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),X=this._viewportRuler.getViewportSize(),he=this._isRtl(),Me=this.multiple?56:32;let ze;if(this.multiple)ze=40;else if(this.disableOptionCentering)ze=16;else{let ft=this._selectionModel.selected[0]||this.options.first;ze=ft&&ft.group?32:16}he||(ze*=-1);const ht=0-(Y.left+ze-(he?Me:0)),it=Y.right+ze-X.width+(he?0:Me);ht>0?ze+=ht+8:it>0&&(ze-=it+8),this._overlayDir.offsetX=Math.round(ze),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(Y,X,he){const Me=this._getItemHeight(),ze=(Me-this._triggerRect.height)/2,ht=Math.floor(J/Me);let it;return this.disableOptionCentering?0:(it=0===this._scrollTop?Y*Me:this._scrollTop===he?(Y-(this._getItemCount()-ht))*Me+(Me-(this._getItemCount()*Me-J)%Me):X-Me/2,Math.round(-1*it-ze))}_checkOverlayWithinViewport(Y){const X=this._getItemHeight(),he=this._viewportRuler.getViewportSize(),Me=this._triggerRect.top-8,ze=he.height-this._triggerRect.bottom-8,ht=Math.abs(this._offsetY),ft=Math.min(this._getItemCount()*X,J)-ht-this._triggerRect.height;ft>ze?this._adjustPanelUp(ft,ze):ht>Me?this._adjustPanelDown(ht,Me,Y):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(Y,X){const he=Math.round(Y-X);this._scrollTop-=he,this._offsetY-=he,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(Y,X,he){const Me=Math.round(Y-X);if(this._scrollTop+=Me,this._offsetY+=Me,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=he)return this._scrollTop=he,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const Y=this._getItemHeight(),X=this._getItemCount(),he=Math.min(X*Y,J),ze=X*Y-he;let ht;ht=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),ht+=(0,M.CB)(ht,this.options,this.optionGroups);const it=he/2;this._scrollTop=this._calculateOverlayScroll(ht,it,ze),this._offsetY=this._calculateOverlayOffsetY(ht,it,ze),this._checkOverlayWithinViewport(ze)}_getOriginBasedOnOption(){const Y=this._getItemHeight(),X=(Y-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-X+Y/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Te.\u0275fac=function(){let ke;return function(X){return(ke||(ke=v.n5z(Te)))(X||Te)}}(),Te.\u0275cmp=v.Xpm({type:Te,selectors:[["mat-select"]],contentQueries:function(Y,X,he){if(1&Y&&(v.Suo(he,We,5),v.Suo(he,M.ey,5),v.Suo(he,M.K7,5)),2&Y){let Me;v.iGM(Me=v.CRH())&&(X.customTrigger=Me.first),v.iGM(Me=v.CRH())&&(X.options=Me),v.iGM(Me=v.CRH())&&(X.optionGroups=Me)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(Y,X){1&Y&&v.NdJ("keydown",function(Me){return X._handleKeydown(Me)})("focus",function(){return X._onFocus()})("blur",function(){return X._onBlur()}),2&Y&&(v.uIk("id",X.id)("tabindex",X.tabIndex)("aria-controls",X.panelOpen?X.id+"-panel":null)("aria-expanded",X.panelOpen)("aria-label",X.ariaLabel||null)("aria-required",X.required.toString())("aria-disabled",X.disabled.toString())("aria-invalid",X.errorState)("aria-describedby",X._ariaDescribedby||null)("aria-activedescendant",X._getAriaActiveDescendant()),v.ekj("mat-select-disabled",X.disabled)("mat-select-invalid",X.errorState)("mat-select-required",X.required)("mat-select-empty",X.empty)("mat-select-multiple",X.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v._Bn([{provide:s.Eo,useExisting:Te},{provide:M.HF,useExisting:Te}]),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(Y,X){if(1&Y&&(v.F$t(u),v.TgZ(0,"div",0,1),v.NdJ("click",function(){return X.toggle()}),v.TgZ(3,"div",2),v.YNc(4,oe,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 X.close()})("attach",function(){return X._onAttached()})("detach",function(){return X.close()})),2&Y){const he=v.MAs(1);v.uIk("aria-owns",X.panelOpen?X.id+"-panel":null),v.xp6(3),v.Q6J("ngSwitch",X.empty),v.uIk("id",X._valueId),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngSwitchCase",!1),v.xp6(3),v.Q6J("cdkConnectedOverlayPanelClass",X._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",X._scrollStrategy)("cdkConnectedOverlayOrigin",he)("cdkConnectedOverlayOpen",X.panelOpen)("cdkConnectedOverlayPositions",X._positions)("cdkConnectedOverlayMinWidth",null==X._triggerRect?null:X._triggerRect.width)("cdkConnectedOverlayOffsetY",X._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:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),Te})(),ue=(()=>{class Te{}return Te.\u0275fac=function(Y){return new(Y||Te)},Te.\u0275mod=v.oAB({type:Te}),Te.\u0275inj=v.cJS({providers:[we],imports:[[t.ez,e.U8,M.Ng,M.BQ],C.ZD,s.lN,M.Ng,M.BQ]}),Te})()},2638:(Ue,K,m)=>{"use strict";m.d(K,{JX:()=>xe,TM:()=>Pe,Rh:()=>te,SJ:()=>Fe});var e=m(925),t=m(5303),v=m(9808),M=m(5e3),s=m(508),C=m(3191),c=m(1159),R=m(7579),o=m(4968),O=m(6451),T=m(9300),P=m(4004),S=m(9718),D=m(2722),w=m(1884),U=m(5698),G=m(8675),W=m(8372),ee=m(1777),ie=m(6360),_e=m(5664),fe=m(226);const de=["*"];function ne(q,j){if(1&q){const we=M.EpF();M.TgZ(0,"div",2),M.NdJ("click",function(){return M.CHM(we),M.oxw()._onBackdropClicked()}),M.qZA()}if(2&q){const we=M.oxw();M.ekj("mat-drawer-shown",we._isShowingBackdrop())}}function se(q,j){1&q&&(M.TgZ(0,"mat-drawer-content"),M.Hsn(1,2),M.qZA())}const oe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],y=["mat-drawer","mat-drawer-content","*"];function i(q,j){if(1&q){const we=M.EpF();M.TgZ(0,"div",2),M.NdJ("click",function(){return M.CHM(we),M.oxw()._onBackdropClicked()}),M.qZA()}if(2&q){const we=M.oxw();M.ekj("mat-drawer-shown",we._isShowingBackdrop())}}function a(q,j){1&q&&(M.TgZ(0,"mat-sidenav-content",3),M.Hsn(1,2),M.qZA())}const p=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],u=["mat-sidenav","mat-sidenav-content","*"],L={transformDrawer:(0,ee.X$)("transform",[(0,ee.SB)("open, open-instant",(0,ee.oB)({transform:"none",visibility:"visible"})),(0,ee.SB)("void",(0,ee.oB)({"box-shadow":"none",visibility:"hidden"})),(0,ee.eR)("void => open-instant",(0,ee.jt)("0ms")),(0,ee.eR)("void <=> open, open-instant => void",(0,ee.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},x=new M.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),r=new M.OlP("MAT_DRAWER_CONTAINER");let J=(()=>{class q extends t.PQ{constructor(we,Ae,le,We,yt){super(le,We,yt),this._changeDetectorRef=we,this._container=Ae}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return q.\u0275fac=function(we){return new(we||q)(M.Y36(M.sBO),M.Y36((0,M.Gpc)(()=>B)),M.Y36(M.SBq),M.Y36(t.mF),M.Y36(M.R0b))},q.\u0275cmp=M.Xpm({type:q,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(we,Ae){2&we&&M.Udp("margin-left",Ae._container._contentMargins.left,"px")("margin-right",Ae._container._contentMargins.right,"px")},features:[M.qOj],ngContentSelectors:de,decls:1,vars:0,template:function(we,Ae){1&we&&(M.F$t(),M.Hsn(0))},encapsulation:2,changeDetection:0}),q})(),F=(()=>{class q{constructor(we,Ae,le,We,yt,Ne,Ve,ue){this._elementRef=we,this._focusTrapFactory=Ae,this._focusMonitor=le,this._platform=We,this._ngZone=yt,this._interactivityChecker=Ne,this._doc=Ve,this._container=ue,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new R.x,this._animationEnd=new R.x,this._animationState="void",this.openedChange=new M.vpe(!0),this._openedStream=this.openedChange.pipe((0,T.h)(Te=>Te),(0,P.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,T.h)(Te=>Te.fromState!==Te.toState&&0===Te.toState.indexOf("open")),(0,S.h)(void 0)),this._closedStream=this.openedChange.pipe((0,T.h)(Te=>!Te),(0,P.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,T.h)(Te=>Te.fromState!==Te.toState&&"void"===Te.toState),(0,S.h)(void 0)),this._destroyed=new R.x,this.onPositionChanged=new M.vpe,this._modeChanged=new R.x,this.openedChange.subscribe(Te=>{Te?(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,T.h)(Te=>Te.keyCode===c.hY&&!this.disableClose&&!(0,c.Vb)(Te)),(0,D.R)(this._destroyed)).subscribe(Te=>this._ngZone.run(()=>{this.close(),Te.stopPropagation(),Te.preventDefault()}))}),this._animationEnd.pipe((0,w.x)((Te,ke)=>Te.fromState===ke.fromState&&Te.toState===ke.toState)).subscribe(Te=>{const{fromState:ke,toState:Y}=Te;(0===Y.indexOf("open")&&"void"===ke||"void"===Y&&0===ke.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(we){(we="end"===we?"end":"start")!=this._position&&(this._position=we,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(we){this._mode=we,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(we){this._disableClose=(0,C.Ig)(we)}get autoFocus(){const we=this._autoFocus;return null==we?"side"===this.mode?"dialog":"first-tabbable":we}set autoFocus(we){("true"===we||"false"===we)&&(we=(0,C.Ig)(we)),this._autoFocus=we}get opened(){return this._opened}set opened(we){this.toggle((0,C.Ig)(we))}_forceFocus(we,Ae){this._interactivityChecker.isFocusable(we)||(we.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{we.addEventListener("blur",()=>we.removeAttribute("tabindex")),we.addEventListener("mousedown",()=>we.removeAttribute("tabindex"))})),we.focus(Ae)}_focusByCssSelector(we,Ae){let le=this._elementRef.nativeElement.querySelector(we);le&&this._forceFocus(le,Ae)}_takeFocus(){if(!this._focusTrap)return;const we=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ae=>{!Ae&&"function"==typeof this._elementRef.nativeElement.focus&&we.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(we){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,we):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){var we;const Ae=null===(we=this._doc)||void 0===we?void 0:we.activeElement;return!!Ae&&this._elementRef.nativeElement.contains(Ae)}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(we){return this.toggle(!0,we)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(we=!this.opened,Ae){we&&Ae&&(this._openedVia=Ae);const le=this._setOpen(we,!we&&this._isFocusWithinDrawer(),this._openedVia||"program");return we||(this._openedVia=null),le}_setOpen(we,Ae,le){return this._opened=we,we?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Ae&&this._restoreFocus(le)),this._updateFocusTrapState(),new Promise(We=>{this.openedChange.pipe((0,U.q)(1)).subscribe(yt=>We(yt?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}}return q.\u0275fac=function(we){return new(we||q)(M.Y36(M.SBq),M.Y36(_e.qV),M.Y36(_e.tE),M.Y36(e.t4),M.Y36(M.R0b),M.Y36(_e.ic),M.Y36(v.K0,8),M.Y36(r,8))},q.\u0275cmp=M.Xpm({type:q,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(we,Ae){1&we&&M.WFA("@transform.start",function(We){return Ae._animationStarted.next(We)})("@transform.done",function(We){return Ae._animationEnd.next(We)}),2&we&&(M.uIk("align",null),M.d8E("@transform",Ae._animationState),M.ekj("mat-drawer-end","end"===Ae.position)("mat-drawer-over","over"===Ae.mode)("mat-drawer-push","push"===Ae.mode)("mat-drawer-side","side"===Ae.mode)("mat-drawer-opened",Ae.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:de,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(we,Ae){1&we&&(M.F$t(),M.TgZ(0,"div",0),M.Hsn(1),M.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),q})(),B=(()=>{class q{constructor(we,Ae,le,We,yt,Ne=!1,Ve){this._dir=we,this._element=Ae,this._ngZone=le,this._changeDetectorRef=We,this._animationMode=Ve,this._drawers=new M.n_E,this.backdropClick=new M.vpe,this._destroyed=new R.x,this._doCheckSubject=new R.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new R.x,we&&we.change.pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),yt.change().pipe((0,D.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Ne}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(we){this._autosize=(0,C.Ig)(we)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(we){this._backdropOverride=null==we?null:(0,C.Ig)(we)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,G.O)(this._allDrawers),(0,D.R)(this._destroyed)).subscribe(we=>{this._drawers.reset(we.filter(Ae=>!Ae._container||Ae._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,G.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(we=>{this._watchDrawerToggle(we),this._watchDrawerPosition(we),this._watchDrawerMode(we)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,W.b)(10),(0,D.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(we=>we.open())}close(){this._drawers.forEach(we=>we.close())}updateContentMargins(){let we=0,Ae=0;if(this._left&&this._left.opened)if("side"==this._left.mode)we+=this._left._getWidth();else if("push"==this._left.mode){const le=this._left._getWidth();we+=le,Ae-=le}if(this._right&&this._right.opened)if("side"==this._right.mode)Ae+=this._right._getWidth();else if("push"==this._right.mode){const le=this._right._getWidth();Ae+=le,we-=le}we=we||null,Ae=Ae||null,(we!==this._contentMargins.left||Ae!==this._contentMargins.right)&&(this._contentMargins={left:we,right:Ae},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(we){we._animationStarted.pipe((0,T.h)(Ae=>Ae.fromState!==Ae.toState),(0,D.R)(this._drawers.changes)).subscribe(Ae=>{"open-instant"!==Ae.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==we.mode&&we.openedChange.pipe((0,D.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(we.opened))}_watchDrawerPosition(we){!we||we.onPositionChanged.pipe((0,D.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,U.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(we){we&&we._modeChanged.pipe((0,D.R)((0,O.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(we){const Ae=this._element.nativeElement.classList,le="mat-drawer-container-has-open";we?Ae.add(le):Ae.remove(le)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(we=>{"end"==we.position?this._end=we:this._start=we}),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(we=>we&&!we.disableClose&&this._canHaveBackdrop(we)).forEach(we=>we._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(we){return"side"!==we.mode||!!this._backdropOverride}_isDrawerOpen(we){return null!=we&&we.opened}}return q.\u0275fac=function(we){return new(we||q)(M.Y36(fe.Is,8),M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(M.sBO),M.Y36(t.rL),M.Y36(x),M.Y36(ie.Qb,8))},q.\u0275cmp=M.Xpm({type:q,selectors:[["mat-drawer-container"]],contentQueries:function(we,Ae,le){if(1&we&&(M.Suo(le,J,5),M.Suo(le,F,5)),2&we){let We;M.iGM(We=M.CRH())&&(Ae._content=We.first),M.iGM(We=M.CRH())&&(Ae._allDrawers=We)}},viewQuery:function(we,Ae){if(1&we&&M.Gf(J,5),2&we){let le;M.iGM(le=M.CRH())&&(Ae._userContent=le.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(we,Ae){2&we&&M.ekj("mat-drawer-container-explicit-backdrop",Ae._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[M._Bn([{provide:r,useExisting:q}])],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(we,Ae){1&we&&(M.F$t(oe),M.YNc(0,ne,1,2,"div",0),M.Hsn(1),M.Hsn(2,1),M.YNc(3,se,2,0,"mat-drawer-content",1)),2&we&&(M.Q6J("ngIf",Ae.hasBackdrop),M.xp6(3),M.Q6J("ngIf",!Ae._content))},directives:[v.O5,J],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}),q})(),te=(()=>{class q extends J{constructor(we,Ae,le,We,yt){super(we,Ae,le,We,yt)}}return q.\u0275fac=function(we){return new(we||q)(M.Y36(M.sBO),M.Y36((0,M.Gpc)(()=>Pe)),M.Y36(M.SBq),M.Y36(t.mF),M.Y36(M.R0b))},q.\u0275cmp=M.Xpm({type:q,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(we,Ae){2&we&&M.Udp("margin-left",Ae._container._contentMargins.left,"px")("margin-right",Ae._container._contentMargins.right,"px")},features:[M.qOj],ngContentSelectors:de,decls:1,vars:0,template:function(we,Ae){1&we&&(M.F$t(),M.Hsn(0))},encapsulation:2,changeDetection:0}),q})(),xe=(()=>{class q extends F{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(we){this._fixedInViewport=(0,C.Ig)(we)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(we){this._fixedTopGap=(0,C.su)(we)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(we){this._fixedBottomGap=(0,C.su)(we)}}return q.\u0275fac=function(){let j;return function(Ae){return(j||(j=M.n5z(q)))(Ae||q)}}(),q.\u0275cmp=M.Xpm({type:q,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(we,Ae){2&we&&(M.uIk("align",null),M.Udp("top",Ae.fixedInViewport?Ae.fixedTopGap:null,"px")("bottom",Ae.fixedInViewport?Ae.fixedBottomGap:null,"px"),M.ekj("mat-drawer-end","end"===Ae.position)("mat-drawer-over","over"===Ae.mode)("mat-drawer-push","push"===Ae.mode)("mat-drawer-side","side"===Ae.mode)("mat-drawer-opened",Ae.opened)("mat-sidenav-fixed",Ae.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[M.qOj],ngContentSelectors:de,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(we,Ae){1&we&&(M.F$t(),M.TgZ(0,"div",0),M.Hsn(1),M.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[L.transformDrawer]},changeDetection:0}),q})(),Pe=(()=>{class q extends B{}return q.\u0275fac=function(){let j;return function(Ae){return(j||(j=M.n5z(q)))(Ae||q)}}(),q.\u0275cmp=M.Xpm({type:q,selectors:[["mat-sidenav-container"]],contentQueries:function(we,Ae,le){if(1&we&&(M.Suo(le,te,5),M.Suo(le,xe,5)),2&we){let We;M.iGM(We=M.CRH())&&(Ae._content=We.first),M.iGM(We=M.CRH())&&(Ae._allDrawers=We)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(we,Ae){2&we&&M.ekj("mat-drawer-container-explicit-backdrop",Ae._backdropOverride)},exportAs:["matSidenavContainer"],features:[M._Bn([{provide:r,useExisting:q}]),M.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(we,Ae){1&we&&(M.F$t(p),M.YNc(0,i,1,2,"div",0),M.Hsn(1),M.Hsn(2,1),M.YNc(3,a,2,0,"mat-sidenav-content",1)),2&we&&(M.Q6J("ngIf",Ae.hasBackdrop),M.xp6(3),M.Q6J("ngIf",!Ae._content))},directives:[v.O5,te,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}),q})(),Fe=(()=>{class q{}return q.\u0275fac=function(we){return new(we||q)},q.\u0275mod=M.oAB({type:q}),q.\u0275inj=M.cJS({imports:[[v.ez,s.BQ,e.ud,t.ZD],t.ZD,s.BQ]}),q})()},2368:(Ue,K,m)=>{"use strict";m.d(K,{Rr:()=>W,rP:()=>fe});var e=m(7144),t=m(5e3),v=m(508),M=m(3191),s=m(3075),C=m(6360),c=m(5664);const R=["thumbContainer"],o=["toggleBar"],O=["input"],T=function(de){return{enterDuration:de}},P=["*"],S=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let D=0;const w={provide:s.JU,useExisting:(0,t.Gpc)(()=>W),multi:!0};class U{constructor(ne,se){this.source=ne,this.checked=se}}const G=(0,v.sb)((0,v.pj)((0,v.Kr)((0,v.Id)(class{constructor(de){this._elementRef=de}}))));let W=(()=>{class de extends G{constructor(se,oe,y,i,a,p){super(se),this._focusMonitor=oe,this._changeDetectorRef=y,this.defaults=a,this._onChange=u=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++D,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(se){this._required=(0,M.Ig)(se)}get checked(){return this._checked}set checked(se){this._checked=(0,M.Ig)(se),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(se=>{se||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(se){se.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(se){se.stopPropagation()}writeValue(se){this.checked=!!se}registerOnChange(se){this._onChange=se}registerOnTouched(se){this._onTouched=se}setDisabledState(se){this.disabled=se,this._changeDetectorRef.markForCheck()}focus(se,oe){oe?this._focusMonitor.focusVia(this._inputElement,oe,se):this._inputElement.nativeElement.focus(se)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new U(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return de.\u0275fac=function(se){return new(se||de)(t.Y36(t.SBq),t.Y36(c.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(S),t.Y36(C.Qb,8))},de.\u0275cmp=t.Xpm({type:de,selectors:[["mat-slide-toggle"]],viewQuery:function(se,oe){if(1&se&&(t.Gf(R,5),t.Gf(o,5),t.Gf(O,5)),2&se){let y;t.iGM(y=t.CRH())&&(oe._thumbEl=y.first),t.iGM(y=t.CRH())&&(oe._thumbBarEl=y.first),t.iGM(y=t.CRH())&&(oe._inputElement=y.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(se,oe){2&se&&(t.Ikx("id",oe.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checked",oe.checked)("mat-disabled",oe.disabled)("mat-slide-toggle-label-before","before"==oe.labelPosition)("_mat-animation-noopable",oe._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:P,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(se,oe){if(1&se&&(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 oe._onChangeEvent(i)})("click",function(i){return oe._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 oe._onLabelTextChange()}),t.TgZ(13,"span",13),t._uU(14,"\xa0"),t.qZA(),t.Hsn(15),t.qZA(),t.qZA()),2&se){const y=t.MAs(1),i=t.MAs(12);t.uIk("for",oe.inputId),t.xp6(2),t.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),t.xp6(2),t.Q6J("id",oe.inputId)("required",oe.required)("tabIndex",oe.tabIndex)("checked",oe.checked)("disabled",oe.disabled),t.uIk("name",oe.name)("aria-checked",oe.checked.toString())("aria-label",oe.ariaLabel)("aria-labelledby",oe.ariaLabelledby)("aria-describedby",oe.ariaDescribedby),t.xp6(5),t.Q6J("matRippleTrigger",y)("matRippleDisabled",oe.disableRipple||oe.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(18,T,oe._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}),de})(),_e=(()=>{class de{}return de.\u0275fac=function(se){return new(se||de)},de.\u0275mod=t.oAB({type:de}),de.\u0275inj=t.cJS({}),de})(),fe=(()=>{class de{}return de.\u0275fac=function(se){return new(se||de)},de.\u0275mod=t.oAB({type:de}),de.\u0275inj=t.cJS({imports:[[_e,v.si,v.BQ,e.Q8],_e,v.BQ]}),de})()},7261:(Ue,K,m)=>{"use strict";m.d(K,{Ve:()=>ne,ux:()=>oe,ZX:()=>de});var e=m(9776),t=m(7429),v=m(9808),M=m(5e3),s=m(508),C=m(7423),c=m(7579),R=m(5698),o=m(2722),O=m(1777),T=m(925),P=m(5113),S=m(5664);function D(y,i){if(1&y){const a=M.EpF();M.TgZ(0,"div",1),M.TgZ(1,"button",2),M.NdJ("click",function(){return M.CHM(a),M.oxw().action()}),M._uU(2),M.qZA(),M.qZA()}if(2&y){const a=M.oxw();M.xp6(2),M.Oqu(a.data.action)}}function w(y,i){}const U=new M.OlP("MatSnackBarData");class G{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const W=Math.pow(2,31)-1;class ee{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,W))}_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 ie=(()=>{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)(M.Y36(ee),M.Y36(U))},y.\u0275cmp=M.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&&(M.TgZ(0,"span"),M._uU(1),M.qZA(),M.YNc(2,D,3,1,"div",0)),2&a&&(M.xp6(1),M.Oqu(p.data.message),M.xp6(1),M.Q6J("ngIf",p.hasAction))},directives:[v.O5,C.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 _e={snackBarState:(0,O.X$)("state",[(0,O.SB)("void, hidden",(0,O.oB)({transform:"scale(0.8)",opacity:0})),(0,O.SB)("visible",(0,O.oB)({transform:"scale(1)",opacity:1})),(0,O.eR)("* => visible",(0,O.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,O.eR)("* => void, * => hidden",(0,O.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,O.oB)({opacity:0})))])};let fe=(()=>{class y extends t.en{constructor(a,p,u,_,L){super(),this._ngZone=a,this._elementRef=p,this._changeDetectorRef=u,this._platform=_,this.snackBarConfig=L,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"!==L.politeness||L.announcementMessage?"off"===L.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,R.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)(M.Y36(M.R0b),M.Y36(M.SBq),M.Y36(M.sBO),M.Y36(T.t4),M.Y36(G))},y.\u0275cmp=M.Xpm({type:y,selectors:[["snack-bar-container"]],viewQuery:function(a,p){if(1&a&&M.Gf(t.Pl,7),2&a){let u;M.iGM(u=M.CRH())&&(p._portalOutlet=u.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(a,p){1&a&&M.WFA("@state.done",function(_){return p.onAnimationEnd(_)}),2&a&&M.d8E("@state",p._animationState)},features:[M.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,p){1&a&&(M.TgZ(0,"div",0),M.YNc(1,w,0,0,"ng-template",1),M.qZA(),M._UZ(2,"div")),2&a&&(M.xp6(2),M.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:[_e.snackBarState]}}),y})(),de=(()=>{class y{}return y.\u0275fac=function(a){return new(a||y)},y.\u0275mod=M.oAB({type:y}),y.\u0275inj=M.cJS({imports:[[e.U8,t.eL,v.ez,C.ot,s.BQ],s.BQ]}),y})();const ne=new M.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new G}});let oe=(()=>{class y{constructor(a,p,u,_,L,I){this._overlay=a,this._live=p,this._injector=u,this._breakpointObserver=_,this._parentSnackBar=L,this._defaultConfig=I,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=ie,this.snackBarContainerComponent=fe,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 _=M.zs3.create({parent:p&&p.viewContainerRef&&p.viewContainerRef.injector||this._injector,providers:[{provide:G,useValue:p}]}),L=new t.C5(this.snackBarContainerComponent,p.viewContainerRef,_),I=a.attach(L);return I.instance.snackBarConfig=p,I.instance}_attach(a,p){const u=Object.assign(Object.assign(Object.assign({},new G),this._defaultConfig),p),_=this._createOverlay(u),L=this._attachSnackBarContainer(_,u),I=new ee(L,_);if(a instanceof M.Rgc){const x=new t.UE(a,null,{$implicit:u.data,snackBarRef:I});I.instance=L.attachTemplatePortal(x)}else{const x=this._createInjector(u,I),r=new t.C5(a,void 0,x),b=L.attachComponentPortal(r);I.instance=b.instance}return this._breakpointObserver.observe(P.u3.HandsetPortrait).pipe((0,o.R)(_.detachments())).subscribe(x=>{_.overlayElement.classList.toggle(this.handsetCssClass,x.matches)}),u.announcementMessage&&L._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,L="left"===a.horizontalPosition||"start"===a.horizontalPosition&&!_||"end"===a.horizontalPosition&&_,I=!L&&"center"!==a.horizontalPosition;return L?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 M.zs3.create({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:ee,useValue:p},{provide:U,useValue:a.data}]})}}return y.\u0275fac=function(a){return new(a||y)(M.LFG(e.aV),M.LFG(S.Kd),M.LFG(M.zs3),M.LFG(P.Yg),M.LFG(y,12),M.LFG(ne))},y.\u0275prov=M.Yz7({token:y,factory:y.\u0275fac,providedIn:de}),y})()},4847:(Ue,K,m)=>{"use strict";m.d(K,{YE:()=>ne,nU:()=>y,JX:()=>i});var e=m(5e3),t=m(3191),v=m(1159),M=m(508),s=m(7579),C=m(6451),c=m(1777),R=m(5664),o=m(9808);const O=["mat-sort-header",""];function T(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 P=["*"],S=M.mZ.ENTERING+" "+M.yN.STANDARD_CURVE,D={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)(S))]),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)(S))]),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)(S))]),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)(S))]),arrowPosition:(0,c.X$)("arrowPosition",[(0,c.eR)("* => desc-to-hint, * => desc-to-active",(0,c.jt)(S,(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)(S,(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)(S,(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)(S,(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 ee=(()=>{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 _e={provide:ee,deps:[[new e.FiY,new e.tp0,ee]],useFactory:function(a){return a||new ee}},fe=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),de=(0,M.dB)((0,M.Id)(class{}));let ne=(()=>{class a extends de{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 _,L,I;if(!u)return"";const x=null!==(L=null!==(_=null==u?void 0:u.disableClear)&&void 0!==_?_:this.disableClear)&&void 0!==L?L:!!(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(fe,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 oe=(0,M.Id)(class{});let y=(()=>{class a extends oe{constructor(u,_,L,I,x,r,b){super(),this._intl=u,this._changeDetectorRef=_,this._sort=L,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 _,L;this._sortButton&&(null===(_=this._ariaDescriber)||void 0===_||_.removeDescription(this._sortButton,this._sortActionDescription),null===(L=this._ariaDescriber)||void 0===L||L.describe(this._sortButton,u)),this._sortActionDescription=u}_handleStateChanges(){this._rerenderSubscription=(0,C.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(ee),e.Y36(e.sBO),e.Y36(ne,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(R.tE),e.Y36(e.SBq),e.Y36(R.$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:O,ngContentSelectors:P,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,T,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:[D.indicator,D.leftPointer,D.rightPointer,D.arrowOpacity,D.arrowPosition,D.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:[_e],imports:[[o.ez,M.BQ]]}),a})()},5615:(Ue,K,m)=>{"use strict";m.d(K,{C0:()=>Ae,VY:()=>F,Vq:()=>Ne,z9:()=>j,T5:()=>Te,Ic:()=>Ve,fd:()=>ue});var e=m(7429),t=m(1555),v=m(9808),M=m(5e3),s=m(7423),C=m(508),c=m(5245),R=m(7579),o=m(727),O=m(5664),T=m(3900),P=m(4004),S=m(8675),D=m(2722),w=m(1884),U=m(1777),G=m(226);function W(ke,Y){if(1&ke&&M.GkF(0,8),2&ke){const X=M.oxw();M.Q6J("ngTemplateOutlet",X.iconOverrides[X.state])("ngTemplateOutletContext",X._getIconContext())}}function ee(ke,Y){if(1&ke&&(M.TgZ(0,"span"),M._uU(1),M.qZA()),2&ke){const X=M.oxw(2);M.xp6(1),M.Oqu(X._getDefaultTextForState(X.state))}}function ie(ke,Y){if(1&ke&&(M.TgZ(0,"span",13),M._uU(1),M.qZA()),2&ke){const X=M.oxw(2);M.xp6(1),M.Oqu(X._intl.completedLabel)}}function _e(ke,Y){if(1&ke&&(M.TgZ(0,"span",13),M._uU(1),M.qZA()),2&ke){const X=M.oxw(2);M.xp6(1),M.Oqu(X._intl.editableLabel)}}function fe(ke,Y){if(1&ke&&(M.TgZ(0,"mat-icon"),M._uU(1),M.qZA()),2&ke){const X=M.oxw(2);M.xp6(1),M.Oqu(X._getDefaultTextForState(X.state))}}function de(ke,Y){if(1&ke&&(M.ynx(0,9),M.YNc(1,ee,2,1,"span",10),M.YNc(2,ie,2,1,"span",11),M.YNc(3,_e,2,1,"span",11),M.YNc(4,fe,2,1,"mat-icon",12),M.BQk()),2&ke){const X=M.oxw();M.Q6J("ngSwitch",X.state),M.xp6(1),M.Q6J("ngSwitchCase","number"),M.xp6(1),M.Q6J("ngIf","done"===X.state),M.xp6(1),M.Q6J("ngIf","edit"===X.state)}}function ne(ke,Y){if(1&ke&&(M.TgZ(0,"div",14),M.GkF(1,15),M.qZA()),2&ke){const X=M.oxw();M.xp6(1),M.Q6J("ngTemplateOutlet",X._templateLabel().template)}}function se(ke,Y){if(1&ke&&(M.TgZ(0,"div",14),M._uU(1),M.qZA()),2&ke){const X=M.oxw();M.xp6(1),M.Oqu(X.label)}}function oe(ke,Y){if(1&ke&&(M.TgZ(0,"div",16),M._uU(1),M.qZA()),2&ke){const X=M.oxw();M.xp6(1),M.Oqu(X._intl.optionalLabel)}}function y(ke,Y){if(1&ke&&(M.TgZ(0,"div",17),M._uU(1),M.qZA()),2&ke){const X=M.oxw();M.xp6(1),M.Oqu(X.errorMessage)}}function i(ke,Y){}function a(ke,Y){if(1&ke&&(M.Hsn(0),M.YNc(1,i,0,0,"ng-template",0)),2&ke){const X=M.oxw();M.xp6(1),M.Q6J("cdkPortalOutlet",X._portal)}}const p=["*"];function u(ke,Y){1&ke&&M._UZ(0,"div",9)}const _=function(ke,Y){return{step:ke,i:Y}};function L(ke,Y){if(1&ke&&(M.ynx(0),M.GkF(1,7),M.YNc(2,u,1,0,"div",8),M.BQk()),2&ke){const X=Y.$implicit,he=Y.index,Me=Y.last;M.oxw(2);const ze=M.MAs(4);M.xp6(1),M.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",M.WLB(3,_,X,he)),M.xp6(1),M.Q6J("ngIf",!Me)}}function I(ke,Y){if(1&ke){const X=M.EpF();M.TgZ(0,"div",10),M.NdJ("@horizontalStepTransition.done",function(Me){return M.CHM(X),M.oxw(2)._animationDone.next(Me)}),M.GkF(1,11),M.qZA()}if(2&ke){const X=Y.$implicit,he=Y.index,Me=M.oxw(2);M.Q6J("@horizontalStepTransition",Me._getAnimationDirection(he))("id",Me._getStepContentId(he)),M.uIk("aria-labelledby",Me._getStepLabelId(he))("aria-expanded",Me.selectedIndex===he),M.xp6(1),M.Q6J("ngTemplateOutlet",X.content)}}function x(ke,Y){if(1&ke&&(M.ynx(0),M.TgZ(1,"div",3),M.YNc(2,L,3,6,"ng-container",4),M.qZA(),M.TgZ(3,"div",5),M.YNc(4,I,2,5,"div",6),M.qZA(),M.BQk()),2&ke){const X=M.oxw();M.xp6(2),M.Q6J("ngForOf",X.steps),M.xp6(2),M.Q6J("ngForOf",X.steps)}}function r(ke,Y){if(1&ke){const X=M.EpF();M.TgZ(0,"div",13),M.GkF(1,7),M.TgZ(2,"div",14),M.TgZ(3,"div",15),M.NdJ("@verticalStepTransition.done",function(Me){return M.CHM(X),M.oxw(2)._animationDone.next(Me)}),M.TgZ(4,"div",16),M.GkF(5,11),M.qZA(),M.qZA(),M.qZA(),M.qZA()}if(2&ke){const X=Y.$implicit,he=Y.index,Me=Y.last,ze=M.oxw(2),ht=M.MAs(4);M.xp6(1),M.Q6J("ngTemplateOutlet",ht)("ngTemplateOutletContext",M.WLB(9,_,X,he)),M.xp6(1),M.ekj("mat-stepper-vertical-line",!Me),M.xp6(1),M.Q6J("@verticalStepTransition",ze._getAnimationDirection(he))("id",ze._getStepContentId(he)),M.uIk("aria-labelledby",ze._getStepLabelId(he))("aria-expanded",ze.selectedIndex===he),M.xp6(2),M.Q6J("ngTemplateOutlet",X.content)}}function b(ke,Y){if(1&ke&&(M.ynx(0),M.YNc(1,r,6,12,"div",12),M.BQk()),2&ke){const X=M.oxw();M.xp6(1),M.Q6J("ngForOf",X.steps)}}function J(ke,Y){if(1&ke){const X=M.EpF();M.TgZ(0,"mat-step-header",17),M.NdJ("click",function(){return M.CHM(X).step.select()})("keydown",function(Me){return M.CHM(X),M.oxw()._onKeydown(Me)}),M.qZA()}if(2&ke){const X=Y.step,he=Y.i,Me=M.oxw();M.ekj("mat-horizontal-stepper-header","horizontal"===Me.orientation)("mat-vertical-stepper-header","vertical"===Me.orientation),M.Q6J("tabIndex",Me._getFocusIndex()===he?0:-1)("id",Me._getStepLabelId(he))("index",he)("state",Me._getIndicatorType(he,X.state))("label",X.stepLabel||X.label)("selected",Me.selectedIndex===he)("active",Me._stepIsNavigable(he,X))("optional",X.optional)("errorMessage",X.errorMessage)("iconOverrides",Me._iconOverrides)("disableRipple",Me.disableRipple||!Me._stepIsNavigable(he,X))("color",X.color||Me.color),M.uIk("aria-posinset",he+1)("aria-setsize",Me.steps.length)("aria-controls",Me._getStepContentId(he))("aria-selected",Me.selectedIndex==he)("aria-label",X.ariaLabel||null)("aria-labelledby",!X.ariaLabel&&X.ariaLabelledby?X.ariaLabelledby:null)("aria-disabled",!Me._stepIsNavigable(he,X)||null)}}let F=(()=>{class ke extends t.u6{}return ke.\u0275fac=function(){let Y;return function(he){return(Y||(Y=M.n5z(ke)))(he||ke)}}(),ke.\u0275dir=M.lG2({type:ke,selectors:[["","matStepLabel",""]],features:[M.qOj]}),ke})(),B=(()=>{class ke{constructor(){this.changes=new R.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ke.\u0275fac=function(X){return new(X||ke)},ke.\u0275prov=M.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const xe={provide:B,deps:[[new M.FiY,new M.tp0,B]],useFactory:function(ke){return ke||new B}},Pe=(0,C.pj)(class extends t.KL{constructor(Y){super(Y)}},"primary");let Fe=(()=>{class ke extends Pe{constructor(X,he,Me,ze){super(Me),this._intl=X,this._focusMonitor=he,this._intlSubscription=X.changes.subscribe(()=>ze.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(X,he){X?this._focusMonitor.focusVia(this._elementRef,X,he):this._elementRef.nativeElement.focus(he)}_stringLabel(){return this.label instanceof F?null:this.label}_templateLabel(){return this.label instanceof F?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(X){return"number"==X?`${this.index+1}`:"edit"==X?"create":"error"==X?"warning":X}}return ke.\u0275fac=function(X){return new(X||ke)(M.Y36(B),M.Y36(O.tE),M.Y36(M.SBq),M.Y36(M.sBO))},ke.\u0275cmp=M.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:[M.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(X,he){1&X&&(M._UZ(0,"div",0),M.TgZ(1,"div"),M.TgZ(2,"div",1),M.YNc(3,W,1,2,"ng-container",2),M.YNc(4,de,5,4,"ng-container",3),M.qZA(),M.qZA(),M.TgZ(5,"div",4),M.YNc(6,ne,2,1,"div",5),M.YNc(7,se,2,1,"div",5),M.YNc(8,oe,2,1,"div",6),M.YNc(9,y,2,1,"div",7),M.qZA()),2&X&&(M.Q6J("matRippleTrigger",he._getHostElement())("matRippleDisabled",he.disableRipple),M.xp6(1),M.Gre("mat-step-icon-state-",he.state," mat-step-icon"),M.ekj("mat-step-icon-selected",he.selected),M.xp6(1),M.Q6J("ngSwitch",!(!he.iconOverrides||!he.iconOverrides[he.state])),M.xp6(1),M.Q6J("ngSwitchCase",!0),M.xp6(2),M.ekj("mat-step-label-active",he.active)("mat-step-label-selected",he.selected)("mat-step-label-error","error"==he.state),M.xp6(1),M.Q6J("ngIf",he._templateLabel()),M.xp6(1),M.Q6J("ngIf",he._stringLabel()),M.xp6(1),M.Q6J("ngIf",he.optional&&"error"!=he.state),M.xp6(1),M.Q6J("ngIf","error"==he.state))},directives:[C.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 q={horizontalStepTransition:(0,U.X$)("horizontalStepTransition",[(0,U.SB)("previous",(0,U.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,U.SB)("current",(0,U.oB)({transform:"none",visibility:"inherit"})),(0,U.SB)("next",(0,U.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,U.eR)("* => *",(0,U.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,U.X$)("verticalStepTransition",[(0,U.SB)("previous",(0,U.oB)({height:"0px",visibility:"hidden"})),(0,U.SB)("next",(0,U.oB)({height:"0px",visibility:"hidden"})),(0,U.SB)("current",(0,U.oB)({height:"*",visibility:"inherit"})),(0,U.eR)("* <=> current",(0,U.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let j=(()=>{class ke{constructor(X){this.templateRef=X}}return ke.\u0275fac=function(X){return new(X||ke)(M.Y36(M.Rgc))},ke.\u0275dir=M.lG2({type:ke,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ke})(),we=(()=>{class ke{constructor(X){this._template=X}}return ke.\u0275fac=function(X){return new(X||ke)(M.Y36(M.Rgc))},ke.\u0275dir=M.lG2({type:ke,selectors:[["ng-template","matStepContent",""]]}),ke})(),Ae=(()=>{class ke extends t.be{constructor(X,he,Me,ze){super(X,ze),this._errorStateMatcher=he,this._viewContainerRef=Me,this._isSelected=o.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,T.w)(()=>this._stepper.selectionChange.pipe((0,P.U)(X=>X.selectedStep===this),(0,S.O)(this._stepper.selected===this)))).subscribe(X=>{X&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(X,he){return this._errorStateMatcher.isErrorState(X,he)||!!(X&&X.invalid&&this.interacted)}}return ke.\u0275fac=function(X){return new(X||ke)(M.Y36((0,M.Gpc)(()=>Ne)),M.Y36(C.rD,4),M.Y36(M.s_b),M.Y36(t.gx,8))},ke.\u0275cmp=M.Xpm({type:ke,selectors:[["mat-step"]],contentQueries:function(X,he,Me){if(1&X&&(M.Suo(Me,F,5),M.Suo(Me,we,5)),2&X){let ze;M.iGM(ze=M.CRH())&&(he.stepLabel=ze.first),M.iGM(ze=M.CRH())&&(he._lazyContent=ze.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[M._Bn([{provide:C.rD,useExisting:ke},{provide:t.be,useExisting:ke}]),M.qOj],ngContentSelectors:p,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(X,he){1&X&&(M.F$t(),M.YNc(0,a,2,1,"ng-template"))},directives:[e.Pl],encapsulation:2,changeDetection:0}),ke})(),le=(()=>{class ke extends t.B8{}return ke.\u0275fac=function(){let Y;return function(he){return(Y||(Y=M.n5z(ke)))(he||ke)}}(),ke.\u0275dir=M.lG2({type:ke,features:[M.qOj]}),ke})(),We=(()=>{class ke extends le{}return ke.\u0275fac=function(){let Y;return function(he){return(Y||(Y=M.n5z(ke)))(he||ke)}}(),ke.\u0275dir=M.lG2({type:ke,selectors:[["mat-horizontal-stepper"]],features:[M.qOj]}),ke})(),yt=(()=>{class ke extends le{}return ke.\u0275fac=function(){let Y;return function(he){return(Y||(Y=M.n5z(ke)))(he||ke)}}(),ke.\u0275dir=M.lG2({type:ke,selectors:[["mat-vertical-stepper"]],features:[M.qOj]}),ke})(),Ne=(()=>{class ke extends t.B8{constructor(X,he,Me,ze){super(X,he,Me,ze),this.steps=new M.n_E,this.animationDone=new M.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new R.x;const ht=Me.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ht?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:X,templateRef:he})=>this._iconOverrides[X]=he),this.steps.changes.pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,w.x)((X,he)=>X.fromState===he.fromState&&X.toState===he.toState),(0,D.R)(this._destroyed)).subscribe(X=>{"current"===X.toState&&this.animationDone.emit()})}_stepIsNavigable(X,he){return he.completed||this.selectedIndex===X||!this.linear}}return ke.\u0275fac=function(X){return new(X||ke)(M.Y36(G.Is,8),M.Y36(M.sBO),M.Y36(M.SBq),M.Y36(v.K0))},ke.\u0275cmp=M.Xpm({type:ke,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(X,he,Me){if(1&X&&(M.Suo(Me,Ae,5),M.Suo(Me,j,5)),2&X){let ze;M.iGM(ze=M.CRH())&&(he._steps=ze),M.iGM(ze=M.CRH())&&(he._icons=ze)}},viewQuery:function(X,he){if(1&X&&M.Gf(Fe,5),2&X){let Me;M.iGM(Me=M.CRH())&&(he._stepHeader=Me)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(X,he){2&X&&(M.uIk("aria-orientation",he.orientation),M.ekj("mat-stepper-horizontal","horizontal"===he.orientation)("mat-stepper-vertical","vertical"===he.orientation)("mat-stepper-label-position-end","horizontal"===he.orientation&&"end"==he.labelPosition)("mat-stepper-label-position-bottom","horizontal"===he.orientation&&"bottom"==he.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[M._Bn([{provide:t.B8,useExisting:ke},{provide:We,useExisting:ke},{provide:yt,useExisting:ke}]),M.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(X,he){1&X&&(M.ynx(0,0),M.YNc(1,x,5,2,"ng-container",1),M.YNc(2,b,2,1,"ng-container",1),M.BQk(),M.YNc(3,J,1,23,"ng-template",null,2,M.W1O)),2&X&&(M.Q6J("ngSwitch",he.orientation),M.xp6(1),M.Q6J("ngSwitchCase","horizontal"),M.xp6(1),M.Q6J("ngSwitchCase","vertical"))},directives:[v.RF,v.n9,v.sg,v.tP,v.O5,Fe],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:[q.horizontalStepTransition,q.verticalStepTransition]},changeDetection:0}),ke})(),Ve=(()=>{class ke extends t.st{}return ke.\u0275fac=function(){let Y;return function(he){return(Y||(Y=M.n5z(ke)))(he||ke)}}(),ke.\u0275dir=M.lG2({type:ke,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(X,he){2&X&&M.Ikx("type",he.type)},inputs:{type:"type"},features:[M.qOj]}),ke})(),ue=(()=>{class ke extends t.po{}return ke.\u0275fac=function(){let Y;return function(he){return(Y||(Y=M.n5z(ke)))(he||ke)}}(),ke.\u0275dir=M.lG2({type:ke,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(X,he){2&X&&M.Ikx("type",he.type)},inputs:{type:"type"},features:[M.qOj]}),ke})(),Te=(()=>{class ke{}return ke.\u0275fac=function(X){return new(X||ke)},ke.\u0275mod=M.oAB({type:ke}),ke.\u0275inj=M.cJS({providers:[xe,C.rD],imports:[[C.BQ,v.ez,e.eL,s.ot,t.U5,c.Ps,C.si],C.BQ]}),ke})()},2075:(Ue,K,m)=>{"use strict";m.d(K,{ev:()=>Be,Dz:()=>et,w1:()=>Xt,yh:()=>Re,mD:()=>Rt,Q2:()=>Ut,Ke:()=>ot,ge:()=>lt,fO:()=>$t,XQ:()=>li,as:()=>rt,Gk:()=>Ft,nj:()=>At,BZ:()=>Ee,by:()=>Xi,p0:()=>rn});var e=m(5e3),t=m(3191),v=m(449),M=m(9808),s=m(7579),C=m(457),c=m(1135),R=m(5191),o=m(9646),O=m(2722),T=m(5698),P=m(226),S=m(925),D=m(5303);const w=[[["caption"]],[["colgroup"],["col"]]],U=["caption","colgroup, col"];function ee(Ke){return class extends Ke{constructor(...mt){super(...mt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(mt){const be=this._sticky;this._sticky=(0,t.Ig)(mt),this._hasStickyChanged=be!==this._sticky}hasStickyChanged(){const mt=this._hasStickyChanged;return this._hasStickyChanged=!1,mt}resetStickyChanged(){this._hasStickyChanged=!1}}}const ie=new e.OlP("CDK_TABLE");let fe=(()=>{class Ke{constructor(be){this.template=be}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkCellDef",""]]}),Ke})(),de=(()=>{class Ke{constructor(be){this.template=be}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkHeaderCellDef",""]]}),Ke})(),ne=(()=>{class Ke{constructor(be){this.template=be}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkFooterCellDef",""]]}),Ke})();class se{}const oe=ee(se);let y=(()=>{class Ke extends oe{constructor(be){super(),this._table=be,this._stickyEnd=!1}get name(){return this._name}set name(be){this._setNameInput(be)}get stickyEnd(){return this._stickyEnd}set stickyEnd(be){const qe=this._stickyEnd;this._stickyEnd=(0,t.Ig)(be),this._hasStickyChanged=qe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(be){be&&(this._name=be,this.cssClassFriendlyName=be.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(ie,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkColumnDef",""]],contentQueries:function(be,qe,vt){if(1&be&&(e.Suo(vt,fe,5),e.Suo(vt,de,5),e.Suo(vt,ne,5)),2&be){let me;e.iGM(me=e.CRH())&&(qe.cell=me.first),e.iGM(me=e.CRH())&&(qe.headerCell=me.first),e.iGM(me=e.CRH())&&(qe.footerCell=me.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,be){const qe=be.nativeElement.classList;for(const vt of mt._columnCssClassName)qe.add(vt)}}let a=(()=>{class Ke extends i{constructor(be,qe){super(be,qe)}}return Ke.\u0275fac=function(be){return new(be||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(be,qe){var vt;if(super(be,qe),1===(null===(vt=be._table)||void 0===vt?void 0:vt._elementRef.nativeElement.nodeType)){const me=be._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===me||"treegrid"===me?"gridcell":"cell")}}}return Ke.\u0275fac=function(be){return new(be||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(be,qe){var vt;if(super(be,qe),1===(null===(vt=be._table)||void 0===vt?void 0:vt._elementRef.nativeElement.nodeType)){const me=be._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===me||"treegrid"===me?"gridcell":"cell")}}}return Ke.\u0275fac=function(be){return new(be||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 L=new e.OlP("_COALESCED_STYLE_SCHEDULER");let I=(()=>{class Ke{constructor(be){this._ngZone=be,this._currentSchedule=null,this._destroyed=new s.x}schedule(be){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(be)}scheduleEnd(be){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(be)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new _,this._getScheduleObservable().pipe((0,O.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const be=this._currentSchedule;this._currentSchedule=new _;for(const qe of be.tasks)qe();for(const qe of be.endTasks)qe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,C.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,T.q)(1))}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.LFG(e.R0b))},Ke.\u0275prov=e.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),r=(()=>{class Ke{constructor(be,qe){this.template=be,this._differs=qe}ngOnChanges(be){if(!this._columnsDiffer){const qe=be.columns&&be.columns.currentValue||[];this._columnsDiffer=this._differs.find(qe).create(),this._columnsDiffer.diff(qe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(be){return this instanceof F?be.headerCell.template:this instanceof xe?be.footerCell.template:be.cell.template}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},Ke.\u0275dir=e.lG2({type:Ke,features:[e.TTD]}),Ke})();class b extends r{}const J=ee(b);let F=(()=>{class Ke extends J{constructor(be,qe,vt){super(be,qe),this._table=vt}ngOnChanges(be){super.ngOnChanges(be)}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ie,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ke})();class B extends r{}const te=ee(B);let xe=(()=>{class Ke extends te{constructor(be,qe,vt){super(be,qe),this._table=vt}ngOnChanges(be){super.ngOnChanges(be)}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ie,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),Ke})(),Pe=(()=>{class Ke extends r{constructor(be,qe,vt){super(be,qe),this._table=vt}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(ie,8))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),Ke})(),Fe=(()=>{class Ke{constructor(be){this._viewContainer=be,Ke.mostRecentCellOutlet=this}ngOnDestroy(){Ke.mostRecentCellOutlet===this&&(Ke.mostRecentCellOutlet=null)}}return Ke.mostRecentCellOutlet=null,Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(e.s_b))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","cdkCellOutlet",""]]}),Ke})(),q=(()=>{class Ke{}return Ke.\u0275fac=function(be){return new(be||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(be,qe){1&be&&e.GkF(0,0)},directives:[Fe],encapsulation:2}),Ke})(),j=(()=>{class Ke{}return Ke.\u0275fac=function(be){return new(be||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(be,qe){1&be&&e.GkF(0,0)},directives:[Fe],encapsulation:2}),Ke})(),we=(()=>{class Ke{}return Ke.\u0275fac=function(be){return new(be||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(be,qe){1&be&&e.GkF(0,0)},directives:[Fe],encapsulation:2}),Ke})(),Ae=(()=>{class Ke{constructor(be){this.templateRef=be,this._contentClassName="cdk-no-data-row"}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(e.Rgc))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["ng-template","cdkNoDataRow",""]]}),Ke})();const le=["top","bottom","left","right"];class We{constructor(mt,be,qe,vt,me=!0,$e=!0,St){this._isNativeHtmlTable=mt,this._stickCellCss=be,this.direction=qe,this._coalescedStyleScheduler=vt,this._isBrowser=me,this._needsPositionStickyOnElement=$e,this._positionListener=St,this._cachedCellWidths=[],this._borderCellCss={top:`${be}-border-elem-top`,bottom:`${be}-border-elem-bottom`,left:`${be}-border-elem-left`,right:`${be}-border-elem-right`}}clearStickyPositioning(mt,be){const qe=[];for(const vt of mt)if(vt.nodeType===vt.ELEMENT_NODE){qe.push(vt);for(let me=0;me<vt.children.length;me++)qe.push(vt.children[me])}this._coalescedStyleScheduler.schedule(()=>{for(const vt of qe)this._removeStickyStyle(vt,be)})}updateStickyColumns(mt,be,qe,vt=!0){if(!mt.length||!this._isBrowser||!be.some(Ki=>Ki)&&!qe.some(Ki=>Ki))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const me=mt[0],$e=me.children.length,St=this._getCellWidths(me,vt),Pt=this._getStickyStartColumnPositions(St,be),yi=this._getStickyEndColumnPositions(St,qe),Pi=be.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];be[Lt]&&this._addStickyStyle(ui,at,Pt[Lt],Lt===Pi),qe[Lt]&&this._addStickyStyle(ui,Qt,yi[Lt],Lt===Ii)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Pi?[]:St.slice(0,Pi+1).map((gt,Lt)=>be[Lt]?gt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Ii?[]:St.slice(Ii).map((gt,Lt)=>qe[Lt+Ii]?gt:null).reverse()}))})}stickRows(mt,be,qe){if(!this._isBrowser)return;const vt="bottom"===qe?mt.slice().reverse():mt,me="bottom"===qe?be.slice().reverse():be,$e=[],St=[],Pt=[];for(let Pi=0,Ii=0;Pi<vt.length;Pi++){if(!me[Pi])continue;$e[Pi]=Ii;const Ki=vt[Pi];Pt[Pi]=this._isNativeHtmlTable?Array.from(Ki.children):[Ki];const at=Ki.getBoundingClientRect().height;Ii+=at,St[Pi]=at}const yi=me.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Pi,Ii;for(let Ki=0;Ki<vt.length;Ki++){if(!me[Ki])continue;const at=$e[Ki],Qt=Ki===yi;for(const gt of Pt[Ki])this._addStickyStyle(gt,qe,at,Qt)}"top"===qe?null===(Pi=this._positionListener)||void 0===Pi||Pi.stickyHeaderRowsUpdated({sizes:St,offsets:$e,elements:Pt}):null===(Ii=this._positionListener)||void 0===Ii||Ii.stickyFooterRowsUpdated({sizes:St,offsets:$e,elements:Pt})})}updateStickyFooterContainer(mt,be){if(!this._isNativeHtmlTable)return;const qe=mt.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{be.some(vt=>!vt)?this._removeStickyStyle(qe,["bottom"]):this._addStickyStyle(qe,"bottom",0,!1)})}_removeStickyStyle(mt,be){for(const vt of be)mt.style[vt]="",mt.classList.remove(this._borderCellCss[vt]);le.some(vt=>-1===be.indexOf(vt)&&mt.style[vt])?mt.style.zIndex=this._getCalculatedZIndex(mt):(mt.style.zIndex="",this._needsPositionStickyOnElement&&(mt.style.position=""),mt.classList.remove(this._stickCellCss))}_addStickyStyle(mt,be,qe,vt){mt.classList.add(this._stickCellCss),vt&&mt.classList.add(this._borderCellCss[be]),mt.style[be]=`${qe}px`,mt.style.zIndex=this._getCalculatedZIndex(mt),this._needsPositionStickyOnElement&&(mt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(mt){const be={top:100,bottom:10,left:1,right:1};let qe=0;for(const vt of le)mt.style[vt]&&(qe+=be[vt]);return qe?`${qe}`:""}_getCellWidths(mt,be=!0){if(!be&&this._cachedCellWidths.length)return this._cachedCellWidths;const qe=[],vt=mt.children;for(let me=0;me<vt.length;me++)qe.push(vt[me].getBoundingClientRect().width);return this._cachedCellWidths=qe,qe}_getStickyStartColumnPositions(mt,be){const qe=[];let vt=0;for(let me=0;me<mt.length;me++)be[me]&&(qe[me]=vt,vt+=mt[me]);return qe}_getStickyEndColumnPositions(mt,be){const qe=[];let vt=0;for(let me=mt.length;me>0;me--)be[me]&&(qe[me]=vt,vt+=mt[me]);return qe}}const he=new e.OlP("CDK_SPL");let ze=(()=>{class Ke{constructor(be,qe){this.viewContainer=be,this.elementRef=qe}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","rowOutlet",""]]}),Ke})(),ht=(()=>{class Ke{constructor(be,qe){this.viewContainer=be,this.elementRef=qe}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","headerRowOutlet",""]]}),Ke})(),it=(()=>{class Ke{constructor(be,qe){this.viewContainer=be,this.elementRef=qe}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","footerRowOutlet",""]]}),Ke})(),ft=(()=>{class Ke{constructor(be,qe){this.viewContainer=be,this.elementRef=qe}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(e.s_b),e.Y36(e.SBq))},Ke.\u0275dir=e.lG2({type:Ke,selectors:[["","noDataRowOutlet",""]]}),Ke})(),wt=(()=>{class Ke{constructor(be,qe,vt,me,$e,St,Pt,yi,Pi,Ii,Ki){this._differs=be,this._changeDetectorRef=qe,this._elementRef=vt,this._dir=$e,this._platform=Pt,this._viewRepeater=yi,this._coalescedStyleScheduler=Pi,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}),me||this._elementRef.nativeElement.setAttribute("role","table"),this._document=St,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(be){this._trackByFn=be}get dataSource(){return this._dataSource}set dataSource(be){this._dataSource!==be&&this._switchDataSource(be)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(be){this._multiTemplateDataRows=(0,t.Ig)(be),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(be){this._fixedLayout=(0,t.Ig)(be),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((be,qe)=>this.trackBy?this.trackBy(qe.dataIndex,qe.data):qe),this._viewportRuler.change().pipe((0,O.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 be=this._dataDiffer.diff(this._renderRows);if(!be)return this._updateNoDataRow(),void this.contentChanged.next();const qe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(be,qe,(vt,me,$e)=>this._getEmbeddedViewArgs(vt.item,$e),vt=>vt.item.data,vt=>{1===vt.operation&&vt.context&&this._renderCellTemplateForItem(vt.record.item.rowDef,vt.context)}),this._updateRowIndexContext(),be.forEachIdentityChange(vt=>{qe.get(vt.currentIndex).context.$implicit=vt.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(be){this._customColumnDefs.add(be)}removeColumnDef(be){this._customColumnDefs.delete(be)}addRowDef(be){this._customRowDefs.add(be)}removeRowDef(be){this._customRowDefs.delete(be)}addHeaderRowDef(be){this._customHeaderRowDefs.add(be),this._headerRowDefChanged=!0}removeHeaderRowDef(be){this._customHeaderRowDefs.delete(be),this._headerRowDefChanged=!0}addFooterRowDef(be){this._customFooterRowDefs.add(be),this._footerRowDefChanged=!0}removeFooterRowDef(be){this._customFooterRowDefs.delete(be),this._footerRowDefChanged=!0}setNoDataRow(be){this._customNoDataRow=be}updateStickyHeaderRowStyles(){const be=this._getRenderedRows(this._headerRowOutlet),vt=this._elementRef.nativeElement.querySelector("thead");vt&&(vt.style.display=be.length?"":"none");const me=this._headerRowDefs.map($e=>$e.sticky);this._stickyStyler.clearStickyPositioning(be,["top"]),this._stickyStyler.stickRows(be,me,"top"),this._headerRowDefs.forEach($e=>$e.resetStickyChanged())}updateStickyFooterRowStyles(){const be=this._getRenderedRows(this._footerRowOutlet),vt=this._elementRef.nativeElement.querySelector("tfoot");vt&&(vt.style.display=be.length?"":"none");const me=this._footerRowDefs.map($e=>$e.sticky);this._stickyStyler.clearStickyPositioning(be,["bottom"]),this._stickyStyler.stickRows(be,me,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,me),this._footerRowDefs.forEach($e=>$e.resetStickyChanged())}updateStickyColumnStyles(){const be=this._getRenderedRows(this._headerRowOutlet),qe=this._getRenderedRows(this._rowOutlet),vt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...be,...qe,...vt],["left","right"]),this._stickyColumnStylesNeedReset=!1),be.forEach((me,$e)=>{this._addStickyColumnStyles([me],this._headerRowDefs[$e])}),this._rowDefs.forEach(me=>{const $e=[];for(let St=0;St<qe.length;St++)this._renderRows[St].rowDef===me&&$e.push(qe[St]);this._addStickyColumnStyles($e,me)}),vt.forEach((me,$e)=>{this._addStickyColumnStyles([me],this._footerRowDefs[$e])}),Array.from(this._columnDefsByName.values()).forEach(me=>me.resetStickyChanged())}_getAllRenderRows(){const be=[],qe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let vt=0;vt<this._data.length;vt++){let me=this._data[vt];const $e=this._getRenderRowsForData(me,vt,qe.get(me));this._cachedRenderRowsMap.has(me)||this._cachedRenderRowsMap.set(me,new WeakMap);for(let St=0;St<$e.length;St++){let Pt=$e[St];const yi=this._cachedRenderRowsMap.get(Pt.data);yi.has(Pt.rowDef)?yi.get(Pt.rowDef).push(Pt):yi.set(Pt.rowDef,[Pt]),be.push(Pt)}}return be}_getRenderRowsForData(be,qe,vt){return this._getRowDefs(be,qe).map($e=>{const St=vt&&vt.has($e)?vt.get($e):[];if(St.length){const Pt=St.shift();return Pt.dataIndex=qe,Pt}return{data:be,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 be=this._rowDefs.filter(qe=>!qe.when);this._defaultRowDef=be[0]}_renderUpdatedColumns(){const be=($e,St)=>$e||!!St.getColumnsDiff(),qe=this._rowDefs.reduce(be,!1);qe&&this._forceRenderDataRows();const vt=this._headerRowDefs.reduce(be,!1);vt&&this._forceRenderHeaderRows();const me=this._footerRowDefs.reduce(be,!1);return me&&this._forceRenderFooterRows(),qe||vt||me}_switchDataSource(be){this._data=[],(0,v.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),be||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=be}_observeRenderChanges(){if(!this.dataSource)return;let be;(0,v.Z9)(this.dataSource)?be=this.dataSource.connect(this):(0,R.b)(this.dataSource)?be=this.dataSource:Array.isArray(this.dataSource)&&(be=(0,o.of)(this.dataSource)),this._renderChangeSubscription=be.pipe((0,O.R)(this._onDestroy)).subscribe(qe=>{this._data=qe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((be,qe)=>this._renderRow(this._headerRowOutlet,be,qe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((be,qe)=>this._renderRow(this._footerRowOutlet,be,qe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(be,qe){const vt=Array.from(qe.columns||[]).map(St=>this._columnDefsByName.get(St)),me=vt.map(St=>St.sticky),$e=vt.map(St=>St.stickyEnd);this._stickyStyler.updateStickyColumns(be,me,$e,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(be){const qe=[];for(let vt=0;vt<be.viewContainer.length;vt++){const me=be.viewContainer.get(vt);qe.push(me.rootNodes[0])}return qe}_getRowDefs(be,qe){if(1==this._rowDefs.length)return[this._rowDefs[0]];let vt=[];if(this.multiTemplateDataRows)vt=this._rowDefs.filter(me=>!me.when||me.when(qe,be));else{let me=this._rowDefs.find($e=>$e.when&&$e.when(qe,be))||this._defaultRowDef;me&&vt.push(me)}return vt}_getEmbeddedViewArgs(be,qe){return{templateRef:be.rowDef.template,context:{$implicit:be.data},index:qe}}_renderRow(be,qe,vt,me={}){const $e=be.viewContainer.createEmbeddedView(qe.template,me,vt);return this._renderCellTemplateForItem(qe,me),$e}_renderCellTemplateForItem(be,qe){for(let vt of this._getCellTemplates(be))Fe.mostRecentCellOutlet&&Fe.mostRecentCellOutlet._viewContainer.createEmbeddedView(vt,qe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const be=this._rowOutlet.viewContainer;for(let qe=0,vt=be.length;qe<vt;qe++){const $e=be.get(qe).context;$e.count=vt,$e.first=0===qe,$e.last=qe===vt-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(be){return be&&be.columns?Array.from(be.columns,qe=>{const vt=this._columnDefsByName.get(qe);return be.extractCellTemplate(vt)}):[]}_applyNativeTableSections(){const be=this._document.createDocumentFragment(),qe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const vt of qe){const me=this._document.createElement(vt.tag);me.setAttribute("role","rowgroup");for(const $e of vt.outlets)me.appendChild($e.elementRef.nativeElement);be.appendChild(me)}this._elementRef.nativeElement.appendChild(be)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const be=(qe,vt)=>qe||vt.hasStickyChanged();this._headerRowDefs.reduce(be,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(be,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(be,!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,O.R)(this._onDestroy)).subscribe(qe=>{this._stickyStyler.direction=qe,this.updateStickyColumnStyles()})}_getOwnDefs(be){return be.filter(qe=>!qe._table||qe._table===this)}_updateNoDataRow(){const be=this._customNoDataRow||this._noDataRow;if(!be)return;const qe=0===this._rowOutlet.viewContainer.length;if(qe===this._isShowingNoDataRow)return;const vt=this._noDataRowOutlet.viewContainer;if(qe){const me=vt.createEmbeddedView(be.templateRef),$e=me.rootNodes[0];1===me.rootNodes.length&&(null==$e?void 0:$e.nodeType)===this._document.ELEMENT_NODE&&($e.setAttribute("role","row"),$e.classList.add(be._contentClassName))}else vt.clear();this._isShowingNoDataRow=qe}}return Ke.\u0275fac=function(be){return new(be||Ke)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(P.Is,8),e.Y36(M.K0),e.Y36(S.t4),e.Y36(v.k),e.Y36(L),e.Y36(D.rL),e.Y36(he,12))},Ke.\u0275cmp=e.Xpm({type:Ke,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(be,qe,vt){if(1&be&&(e.Suo(vt,Ae,5),e.Suo(vt,y,5),e.Suo(vt,Pe,5),e.Suo(vt,F,5),e.Suo(vt,xe,5)),2&be){let me;e.iGM(me=e.CRH())&&(qe._noDataRow=me.first),e.iGM(me=e.CRH())&&(qe._contentColumnDefs=me),e.iGM(me=e.CRH())&&(qe._contentRowDefs=me),e.iGM(me=e.CRH())&&(qe._contentHeaderRowDefs=me),e.iGM(me=e.CRH())&&(qe._contentFooterRowDefs=me)}},viewQuery:function(be,qe){if(1&be&&(e.Gf(ze,7),e.Gf(ht,7),e.Gf(it,7),e.Gf(ft,7)),2&be){let vt;e.iGM(vt=e.CRH())&&(qe._rowOutlet=vt.first),e.iGM(vt=e.CRH())&&(qe._headerRowOutlet=vt.first),e.iGM(vt=e.CRH())&&(qe._footerRowOutlet=vt.first),e.iGM(vt=e.CRH())&&(qe._noDataRowOutlet=vt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(be,qe){2&be&&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:ie,useExisting:Ke},{provide:v.k,useClass:v.yy},{provide:L,useClass:I},{provide:he,useValue:null}])],ngContentSelectors:U,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(be,qe){1&be&&(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,ze,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(be){return new(be||Ke)},Ke.\u0275mod=e.oAB({type:Ke}),Ke.\u0275inj=e.cJS({imports:[[D.Cl]]}),Ke})();var jt=m(508),ti=m(6451),Ri=m(9841),si=m(4004);const di=[[["caption"]],[["colgroup"],["col"]]],He=["caption","colgroup, col"];let Ee=(()=>{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(be,qe){2&be&&e.ekj("mat-table-fixed-layout",qe.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:v.k,useClass:v.yy},{provide:wt,useExisting:Ke},{provide:ie,useExisting:Ke},{provide:L,useClass:I},{provide:he,useValue:null}]),e.qOj],ngContentSelectors:He,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(be,qe){1&be&&(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,ze,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 fe{}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:fe,useExisting:Ke}]),e.qOj]}),Ke})(),$t=(()=>{class Ke extends de{}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:de,useExisting:Ke}]),e.qOj]}),Ke})(),Rt=(()=>{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:[["","matFooterCellDef",""]],features:[e._Bn([{provide:ne,useExisting:Ke}]),e.qOj]}),Ke})(),Xt=(()=>{class Ke extends y{get name(){return this._name}set name(be){this._setNameInput(be)}_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})(),Be=(()=>{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 F{}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:F,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 Pe{}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:Pe,useExisting:Ke}]),e.qOj]}),Ke})(),li=(()=>{class Ke extends q{}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:q,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(be,qe){1&be&&e.GkF(0,0)},directives:[Fe],encapsulation:2}),Ke})(),Ut=(()=>{class Ke extends j{}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:j,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(be,qe){1&be&&e.GkF(0,0)},directives:[Fe],encapsulation:2}),Ke})(),Ft=(()=>{class Ke extends we{}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:we,useExisting:Ke}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(be,qe){1&be&&e.GkF(0,0)},directives:[Fe],encapsulation:2}),Ke})(),rn=(()=>{class Ke{}return Ke.\u0275fac=function(be){return new(be||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=(be,qe)=>{const vt=be[qe];if((0,t.t6)(vt)){const me=Number(vt);return me<9007199254740991?me:vt}return vt},this.sortData=(be,qe)=>{const vt=qe.active,me=qe.direction;return vt&&""!=me?be.sort(($e,St)=>{let Pt=this.sortingDataAccessor($e,vt),yi=this.sortingDataAccessor(St,vt);const Pi=typeof Pt,Ii=typeof yi;Pi!==Ii&&("number"===Pi&&(Pt+=""),"number"===Ii&&(yi+=""));let Ki=0;return null!=Pt&&null!=yi?Pt>yi?Ki=1:Pt<yi&&(Ki=-1):null!=Pt?Ki=1:null!=yi&&(Ki=-1),Ki*("asc"==me?1:-1)}):be},this.filterPredicate=(be,qe)=>{const vt=Object.keys(be).reduce(($e,St)=>$e+be[St]+"\u25ec","").toLowerCase(),me=qe.trim().toLowerCase();return-1!=vt.indexOf(me)},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 be=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),me=(0,Ri.a)([this._data,this._filter]).pipe((0,si.U)(([Pt])=>this._filterData(Pt))),$e=(0,Ri.a)([me,be]).pipe((0,si.U)(([Pt])=>this._orderData(Pt))),St=(0,Ri.a)([$e,qe]).pipe((0,si.U)(([Pt])=>this._pageData(Pt)));null===(mt=this._renderChangesSubscription)||void 0===mt||mt.unsubscribe(),this._renderChangesSubscription=St.subscribe(Pt=>this._renderData.next(Pt))}_filterData(mt){return this.filteredData=null==this.filter||""===this.filter?mt:mt.filter(be=>this.filterPredicate(be,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 be=this.paginator.pageIndex*this.paginator.pageSize;return mt.slice(be,be+this.paginator.pageSize)}_updatePaginator(mt){Promise.resolve().then(()=>{const be=this.paginator;if(be&&(be.length=mt,be.pageIndex>0)){const qe=Math.ceil(be.length/be.pageSize)-1||0,vt=Math.min(be.pageIndex,qe);vt!==be.pageIndex&&(be.pageIndex=vt,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:(Ue,K,m)=>{"use strict";m.d(K,{uX:()=>yt,SP:()=>Vt,uD:()=>Ae,Nj:()=>si,BU:()=>jt,Nh:()=>di});var e=m(5664),t=m(7144),v=m(7429),M=m(9808),s=m(5e3),C=m(508),c=m(6360),R=m(7579),o=m(727),O=m(4968),T=m(9646),P=m(6451),S=m(2805),D=m(1777),w=m(8675),U=m(1884),G=m(2722),W=m(226),ee=m(3191),ie=m(1159),_e=m(925),fe=m(5303);function de(He,Se){1&He&&s.Hsn(0)}const ne=["*"];function se(He,Se){}const oe=function(He){return{animationDuration:He}},y=function(He,Se){return{value:He,params:Se}},i=["tabListContainer"],a=["tabList"],p=["tabListInner"],u=["nextPaginator"],_=["previousPaginator"],L=["tabBodyWrapper"],I=["tabHeader"];function x(He,Se){}function r(He,Se){if(1&He&&s.YNc(0,x,0,0,"ng-template",9),2&He){const V=s.oxw().$implicit;s.Q6J("cdkPortalOutlet",V.templateLabel)}}function b(He,Se){if(1&He&&s._uU(0),2&He){const V=s.oxw().$implicit;s.Oqu(V.textLabel)}}function J(He,Se){if(1&He){const V=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const Ee=s.CHM(V),et=Ee.$implicit,$t=Ee.index,Rt=s.oxw(),Xt=s.MAs(1);return Rt._handleClick(et,Xt,$t)})("cdkFocusChange",function(Ee){const $t=s.CHM(V).index;return s.oxw()._tabFocusChanged(Ee,$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&He){const V=Se.$implicit,ve=Se.index,Ee=s.oxw();s.ekj("mat-tab-label-active",Ee.selectedIndex==ve),s.Q6J("id",Ee._getTabLabelId(ve))("disabled",V.disabled)("matRippleDisabled",V.disabled||Ee.disableRipple),s.uIk("tabIndex",Ee._getTabIndex(V,ve))("aria-posinset",ve+1)("aria-setsize",Ee._tabs.length)("aria-controls",Ee._getTabContentId(ve))("aria-selected",Ee.selectedIndex==ve)("aria-label",V.ariaLabel||null)("aria-labelledby",!V.ariaLabel&&V.ariaLabelledby?V.ariaLabelledby:null),s.xp6(2),s.Q6J("ngIf",V.templateLabel),s.xp6(1),s.Q6J("ngIf",!V.templateLabel)}}function F(He,Se){if(1&He){const V=s.EpF();s.TgZ(0,"mat-tab-body",10),s.NdJ("_onCentered",function(){return s.CHM(V),s.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Ee){return s.CHM(V),s.oxw()._setTabBodyWrapperHeight(Ee)}),s.qZA()}if(2&He){const V=Se.$implicit,ve=Se.index,Ee=s.oxw();s.ekj("mat-tab-body-active",Ee.selectedIndex===ve),s.Q6J("id",Ee._getTabContentId(ve))("content",V.content)("position",V.position)("origin",V.origin)("animationDuration",Ee.animationDuration),s.uIk("tabindex",null!=Ee.contentTabIndex&&Ee.selectedIndex===ve?Ee.contentTabIndex:null)("aria-labelledby",Ee._getTabLabelId(ve))}}const B=["mat-tab-nav-bar",""],te=new s.OlP("MatInkBarPositioner",{providedIn:"root",factory:function(){return Se=>({left:Se?(Se.offsetLeft||0)+"px":"0",width:Se?(Se.offsetWidth||0)+"px":"0"})}});let Pe=(()=>{class He{constructor(V,ve,Ee,et){this._elementRef=V,this._ngZone=ve,this._inkBarPositioner=Ee,this._animationMode=et}alignToElement(V){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(V))}):this._setStyles(V)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(V){const ve=this._inkBarPositioner(V),Ee=this._elementRef.nativeElement;Ee.style.left=ve.left,Ee.style.width=ve.width}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(te),s.Y36(c.Qb,8))},He.\u0275dir=s.lG2({type:He,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(V,ve){2&V&&s.ekj("_mat-animation-noopable","NoopAnimations"===ve._animationMode)}}),He})();const Fe=new s.OlP("MatTabContent"),j=new s.OlP("MatTabLabel"),we=new s.OlP("MAT_TAB");let Ae=(()=>{class He extends v.ig{constructor(V,ve,Ee){super(V,ve),this._closestTab=Ee}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(we,8))},He.\u0275dir=s.lG2({type:He,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s._Bn([{provide:j,useExisting:He}]),s.qOj]}),He})();const le=(0,C.Id)(class{}),We=new s.OlP("MAT_TAB_GROUP");let yt=(()=>{class He extends le{constructor(V,ve){super(),this._viewContainerRef=V,this._closestTabGroup=ve,this.textLabel="",this._contentPortal=null,this._stateChanges=new R.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(V){this._setTemplateLabelInput(V)}get content(){return this._contentPortal}ngOnChanges(V){(V.hasOwnProperty("textLabel")||V.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(V){V&&V._closestTab===this&&(this._templateLabel=V)}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.s_b),s.Y36(We,8))},He.\u0275cmp=s.Xpm({type:He,selectors:[["mat-tab"]],contentQueries:function(V,ve,Ee){if(1&V&&(s.Suo(Ee,j,5),s.Suo(Ee,Fe,7,s.Rgc)),2&V){let et;s.iGM(et=s.CRH())&&(ve.templateLabel=et.first),s.iGM(et=s.CRH())&&(ve._explicitContent=et.first)}},viewQuery:function(V,ve){if(1&V&&s.Gf(s.Rgc,7),2&V){let Ee;s.iGM(Ee=s.CRH())&&(ve._implicitContent=Ee.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s._Bn([{provide:we,useExisting:He}]),s.qOj,s.TTD],ngContentSelectors:ne,decls:1,vars:0,template:function(V,ve){1&V&&(s.F$t(),s.YNc(0,de,1,0,"ng-template"))},encapsulation:2}),He})();const Ne={translateTab:(0,D.X$)("translateTab",[(0,D.SB)("center, void, left-origin-center, right-origin-center",(0,D.oB)({transform:"none"})),(0,D.SB)("left",(0,D.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,D.SB)("right",(0,D.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,D.eR)("* => left, * => right, left => center, right => center",(0,D.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,D.eR)("void => left-origin-center",[(0,D.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,D.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,D.eR)("void => right-origin-center",[(0,D.oB)({transform:"translate3d(100%, 0, 0)"}),(0,D.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Ve=(()=>{class He extends v.Pl{constructor(V,ve,Ee,et){super(V,ve,et),this._host=Ee,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(V=>{V&&!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 He.\u0275fac=function(V){return new(V||He)(s.Y36(s._Vd),s.Y36(s.s_b),s.Y36((0,s.Gpc)(()=>Te)),s.Y36(M.K0))},He.\u0275dir=s.lG2({type:He,selectors:[["","matTabBodyHost",""]],features:[s.qOj]}),He})(),ue=(()=>{class He{constructor(V,ve,Ee){this._elementRef=V,this._dir=ve,this._dirChangeSubscription=o.w0.EMPTY,this._translateTabComplete=new R.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",ve&&(this._dirChangeSubscription=ve.change.subscribe(et=>{this._computePositionAnimationState(et),Ee.markForCheck()})),this._translateTabComplete.pipe((0,U.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(V){this._positionIndex=V,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(V){const ve=this._isCenterPosition(V.toState);this._beforeCentering.emit(ve),ve&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(V){return"center"==V||"left-origin-center"==V||"right-origin-center"==V}_computePositionAnimationState(V=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==V?"left":"right":this._positionIndex>0?"ltr"==V?"right":"left":"center"}_computePositionFromOrigin(V){const ve=this._getLayoutDirection();return"ltr"==ve&&V<=0||"rtl"==ve&&V>0?"left-origin-center":"right-origin-center"}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.SBq),s.Y36(W.Is,8),s.Y36(s.sBO))},He.\u0275dir=s.lG2({type:He,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),He})(),Te=(()=>{class He extends ue{constructor(V,ve,Ee){super(V,ve,Ee)}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.SBq),s.Y36(W.Is,8),s.Y36(s.sBO))},He.\u0275cmp=s.Xpm({type:He,selectors:[["mat-tab-body"]],viewQuery:function(V,ve){if(1&V&&s.Gf(v.Pl,5),2&V){let Ee;s.iGM(Ee=s.CRH())&&(ve._portalHost=Ee.first)}},hostAttrs:[1,"mat-tab-body"],features:[s.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(V,ve){1&V&&(s.TgZ(0,"div",0,1),s.NdJ("@translateTab.start",function(et){return ve._onTranslateTabStarted(et)})("@translateTab.done",function(et){return ve._translateTabComplete.next(et)}),s.YNc(2,se,0,0,"ng-template",2),s.qZA()),2&V&&s.Q6J("@translateTab",s.WLB(3,y,ve._position,s.VKq(1,oe,ve.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:[Ne.translateTab]}}),He})();const ke=new s.OlP("MAT_TABS_CONFIG"),Y=(0,C.Id)(class{});let X=(()=>{class He extends Y{constructor(V){super(),this.elementRef=V}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.SBq))},He.\u0275dir=s.lG2({type:He,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(V,ve){2&V&&(s.uIk("aria-disabled",!!ve.disabled),s.ekj("mat-tab-disabled",ve.disabled))},inputs:{disabled:"disabled"},features:[s.qOj]}),He})();const he=(0,_e.i$)({passive:!0});let it=(()=>{class He{constructor(V,ve,Ee,et,$t,Rt,Xt){this._elementRef=V,this._changeDetectorRef=ve,this._viewportRuler=Ee,this._dir=et,this._ngZone=$t,this._platform=Rt,this._animationMode=Xt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new R.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new R.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.vpe,this.indexFocused=new s.vpe,$t.runOutsideAngular(()=>{(0,O.R)(V.nativeElement,"mouseleave").pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(V){V=(0,ee.su)(V),this._selectedIndex!=V&&(this._selectedIndexChanged=!0,this._selectedIndex=V,this._keyManager&&this._keyManager.updateActiveItem(V))}ngAfterViewInit(){(0,O.R)(this._previousPaginator.nativeElement,"touchstart",he).pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,O.R)(this._nextPaginator.nativeElement,"touchstart",he).pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const V=this._dir?this._dir.change:(0,T.of)("ltr"),ve=this._viewportRuler.change(150),Ee=()=>{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(Ee):Ee(),(0,P.T)(V,ve,this._items.changes).pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(Ee)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,G.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(V){if(!(0,ie.Vb)(V))switch(V.keyCode){case ie.K5:case ie.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(V));break;default:this._keyManager.onKeydown(V)}}_onContentChanges(){const V=this._elementRef.nativeElement.textContent;V!==this._currentTextContent&&(this._currentTextContent=V||"",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(V){!this._isValidIndex(V)||this.focusIndex===V||!this._keyManager||this._keyManager.setActiveItem(V)}_isValidIndex(V){if(!this._items)return!0;const ve=this._items?this._items.toArray()[V]:null;return!!ve&&!ve.disabled}_setTabFocus(V){if(this._showPaginationControls&&this._scrollToLabel(V),this._items&&this._items.length){this._items.toArray()[V].focus();const ve=this._tabListContainer.nativeElement;ve.scrollLeft="ltr"==this._getLayoutDirection()?0:ve.scrollWidth-ve.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const V=this.scrollDistance,ve="ltr"===this._getLayoutDirection()?-V:V;this._tabList.nativeElement.style.transform=`translateX(${Math.round(ve)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(V){this._scrollTo(V)}_scrollHeader(V){return this._scrollTo(this._scrollDistance+("before"==V?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(V){this._stopInterval(),this._scrollHeader(V)}_scrollToLabel(V){if(this.disablePagination)return;const ve=this._items?this._items.toArray()[V]:null;if(!ve)return;const Ee=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:et,offsetWidth:$t}=ve.elementRef.nativeElement;let Rt,Xt;"ltr"==this._getLayoutDirection()?(Rt=et,Xt=Rt+$t):(Xt=this._tabListInner.nativeElement.offsetWidth-et,Rt=Xt-$t);const lt=this.scrollDistance,Re=this.scrollDistance+Ee;Rt<lt?this.scrollDistance-=lt-Rt+60:Xt>Re&&(this.scrollDistance+=Xt-Re+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const V=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;V||(this.scrollDistance=0),V!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=V}}_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 V=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,ve=V?V.elementRef.nativeElement:null;ve?this._inkBar.alignToElement(ve):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(V,ve){ve&&null!=ve.button&&0!==ve.button||(this._stopInterval(),(0,S.H)(650,100).pipe((0,G.R)((0,P.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ee,distance:et}=this._scrollHeader(V);(0===et||et>=Ee)&&this._stopInterval()}))}_scrollTo(V){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const ve=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(ve,V)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:ve,distance:this._scrollDistance}}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(fe.rL),s.Y36(W.Is,8),s.Y36(s.R0b),s.Y36(_e.t4),s.Y36(c.Qb,8))},He.\u0275dir=s.lG2({type:He,inputs:{disablePagination:"disablePagination"}}),He})(),ft=(()=>{class He extends it{constructor(V,ve,Ee,et,$t,Rt,Xt){super(V,ve,Ee,et,$t,Rt,Xt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(V){this._disableRipple=(0,ee.Ig)(V)}_itemSelected(V){V.preventDefault()}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(fe.rL),s.Y36(W.Is,8),s.Y36(s.R0b),s.Y36(_e.t4),s.Y36(c.Qb,8))},He.\u0275dir=s.lG2({type:He,inputs:{disableRipple:"disableRipple"},features:[s.qOj]}),He})(),nt=(()=>{class He extends ft{constructor(V,ve,Ee,et,$t,Rt,Xt){super(V,ve,Ee,et,$t,Rt,Xt)}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(fe.rL),s.Y36(W.Is,8),s.Y36(s.R0b),s.Y36(_e.t4),s.Y36(c.Qb,8))},He.\u0275cmp=s.Xpm({type:He,selectors:[["mat-tab-header"]],contentQueries:function(V,ve,Ee){if(1&V&&s.Suo(Ee,X,4),2&V){let et;s.iGM(et=s.CRH())&&(ve._items=et)}},viewQuery:function(V,ve){if(1&V&&(s.Gf(Pe,7),s.Gf(i,7),s.Gf(a,7),s.Gf(p,7),s.Gf(u,5),s.Gf(_,5)),2&V){let Ee;s.iGM(Ee=s.CRH())&&(ve._inkBar=Ee.first),s.iGM(Ee=s.CRH())&&(ve._tabListContainer=Ee.first),s.iGM(Ee=s.CRH())&&(ve._tabList=Ee.first),s.iGM(Ee=s.CRH())&&(ve._tabListInner=Ee.first),s.iGM(Ee=s.CRH())&&(ve._nextPaginator=Ee.first),s.iGM(Ee=s.CRH())&&(ve._previousPaginator=Ee.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(V,ve){2&V&&s.ekj("mat-tab-header-pagination-controls-enabled",ve._showPaginationControls)("mat-tab-header-rtl","rtl"==ve._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.qOj],ngContentSelectors:ne,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(V,ve){1&V&&(s.F$t(),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return ve._handlePaginatorClick("before")})("mousedown",function(et){return ve._handlePaginatorPress("before",et)})("touchend",function(){return ve._stopInterval()}),s._UZ(2,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.NdJ("keydown",function(et){return ve._handleKeydown(et)}),s.TgZ(5,"div",5,6),s.NdJ("cdkObserveContent",function(){return ve._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 ve._handlePaginatorPress("after",et)})("click",function(){return ve._handlePaginatorClick("after")})("touchend",function(){return ve._stopInterval()}),s._UZ(13,"div",2),s.qZA()),2&V&&(s.ekj("mat-tab-header-pagination-disabled",ve._disableScrollBefore),s.Q6J("matRippleDisabled",ve._disableScrollBefore||ve.disableRipple),s.xp6(5),s.ekj("_mat-animation-noopable","NoopAnimations"===ve._animationMode),s.xp6(6),s.ekj("mat-tab-header-pagination-disabled",ve._disableScrollAfter),s.Q6J("matRippleDisabled",ve._disableScrollAfter||ve.disableRipple))},directives:[C.wG,t.wD,Pe],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}),He})(),st=0;class wt{}const Bt=(0,C.pj)((0,C.Kr)(class{constructor(He){this._elementRef=He}}),"primary");let Nt=(()=>{class He extends Bt{constructor(V,ve,Ee,et){var $t;super(V),this._changeDetectorRef=ve,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=Ee&&Ee.animationDuration?Ee.animationDuration:"500ms",this.disablePagination=!(!Ee||null==Ee.disablePagination)&&Ee.disablePagination,this.dynamicHeight=!(!Ee||null==Ee.dynamicHeight)&&Ee.dynamicHeight,this.contentTabIndex=null!==($t=null==Ee?void 0:Ee.contentTabIndex)&&void 0!==$t?$t:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(V){this._dynamicHeight=(0,ee.Ig)(V)}get selectedIndex(){return this._selectedIndex}set selectedIndex(V){this._indexToSelect=(0,ee.su)(V,null)}get animationDuration(){return this._animationDuration}set animationDuration(V){this._animationDuration=/^\d+$/.test(V)?V+"ms":V}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(V){this._contentTabIndex=(0,ee.su)(V,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(V){const ve=this._elementRef.nativeElement;ve.classList.remove(`mat-background-${this.backgroundColor}`),V&&ve.classList.add(`mat-background-${V}`),this._backgroundColor=V}ngAfterContentChecked(){const V=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=V){const ve=null==this._selectedIndex;if(!ve){this.selectedTabChange.emit(this._createChangeEvent(V));const Ee=this._tabBodyWrapper.nativeElement;Ee.style.minHeight=Ee.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Ee,et)=>Ee.isActive=et===V),ve||(this.selectedIndexChange.emit(V),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((ve,Ee)=>{ve.position=Ee-V,null!=this._selectedIndex&&0==ve.position&&!ve.origin&&(ve.origin=V-this._selectedIndex)}),this._selectedIndex!==V&&(this._selectedIndex=V,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const ve=this._tabs.toArray();for(let Ee=0;Ee<ve.length;Ee++)if(ve[Ee].isActive){this._indexToSelect=this._selectedIndex=Ee;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,w.O)(this._allTabs)).subscribe(V=>{this._tabs.reset(V.filter(ve=>ve._closestTabGroup===this||!ve._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(V){const ve=this._tabHeader;ve&&(ve.focusIndex=V)}_focusChanged(V){this.focusChange.emit(this._createChangeEvent(V))}_createChangeEvent(V){const ve=new wt;return ve.index=V,this._tabs&&this._tabs.length&&(ve.tab=this._tabs.toArray()[V]),ve}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,P.T)(...this._tabs.map(V=>V._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(V){return Math.min(this._tabs.length-1,Math.max(V||0,0))}_getTabLabelId(V){return`mat-tab-label-${this._groupId}-${V}`}_getTabContentId(V){return`mat-tab-content-${this._groupId}-${V}`}_setTabBodyWrapperHeight(V){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const ve=this._tabBodyWrapper.nativeElement;ve.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(ve.style.height=V+"px")}_removeTabBodyWrapperHeight(){const V=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=V.clientHeight,V.style.height="",this.animationDone.emit()}_handleClick(V,ve,Ee){V.disabled||(this.selectedIndex=ve.focusIndex=Ee)}_getTabIndex(V,ve){return V.disabled?null:this.selectedIndex===ve?0:-1}_tabFocusChanged(V,ve){V&&"mouse"!==V&&"touch"!==V&&(this._tabHeader.focusIndex=ve)}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(ke,8),s.Y36(c.Qb,8))},He.\u0275dir=s.lG2({type:He,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]}),He})(),Vt=(()=>{class He extends Nt{constructor(V,ve,Ee,et){super(V,ve,Ee,et)}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(ke,8),s.Y36(c.Qb,8))},He.\u0275cmp=s.Xpm({type:He,selectors:[["mat-tab-group"]],contentQueries:function(V,ve,Ee){if(1&V&&s.Suo(Ee,yt,5),2&V){let et;s.iGM(et=s.CRH())&&(ve._allTabs=et)}},viewQuery:function(V,ve){if(1&V&&(s.Gf(L,5),s.Gf(I,5)),2&V){let Ee;s.iGM(Ee=s.CRH())&&(ve._tabBodyWrapper=Ee.first),s.iGM(Ee=s.CRH())&&(ve._tabHeader=Ee.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(V,ve){2&V&&s.ekj("mat-tab-group-dynamic-height",ve.dynamicHeight)("mat-tab-group-inverted-header","below"===ve.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s._Bn([{provide:We,useExisting:He}]),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(V,ve){1&V&&(s.TgZ(0,"mat-tab-header",0,1),s.NdJ("indexFocused",function(et){return ve._focusChanged(et)})("selectFocusedIndex",function(et){return ve.selectedIndex=et}),s.YNc(2,J,4,14,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.YNc(5,F,1,9,"mat-tab-body",5),s.qZA()),2&V&&(s.Q6J("selectedIndex",ve.selectedIndex||0)("disableRipple",ve.disableRipple)("disablePagination",ve.disablePagination),s.xp6(2),s.Q6J("ngForOf",ve._tabs),s.xp6(1),s.ekj("_mat-animation-noopable","NoopAnimations"===ve._animationMode),s.xp6(2),s.Q6J("ngForOf",ve._tabs))},directives:[nt,M.sg,X,C.wG,e.kH,M.O5,v.Pl,Te],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}),He})(),Oi=(()=>{class He extends it{constructor(V,ve,Ee,et,$t,Rt,Xt){super(V,et,$t,ve,Ee,Rt,Xt),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(V){const ve=this._elementRef.nativeElement.classList;ve.remove(`mat-background-${this.backgroundColor}`),V&&ve.add(`mat-background-${V}`),this._backgroundColor=V}get disableRipple(){return this._disableRipple}set disableRipple(V){this._disableRipple=(0,ee.Ig)(V)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,w.O)(null),(0,G.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const V=this._items.toArray();for(let ve=0;ve<V.length;ve++)if(V[ve].active)return this.selectedIndex=ve,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.SBq),s.Y36(W.Is,8),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(fe.rL),s.Y36(_e.t4),s.Y36(c.Qb,8))},He.\u0275dir=s.lG2({type:He,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color"},features:[s.qOj]}),He})(),jt=(()=>{class He extends Oi{constructor(V,ve,Ee,et,$t,Rt,Xt){super(V,ve,Ee,et,$t,Rt,Xt)}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.SBq),s.Y36(W.Is,8),s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(fe.rL),s.Y36(_e.t4),s.Y36(c.Qb,8))},He.\u0275cmp=s.Xpm({type:He,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(V,ve,Ee){if(1&V&&s.Suo(Ee,si,5),2&V){let et;s.iGM(et=s.CRH())&&(ve._items=et)}},viewQuery:function(V,ve){if(1&V&&(s.Gf(Pe,7),s.Gf(i,7),s.Gf(a,7),s.Gf(p,7),s.Gf(u,5),s.Gf(_,5)),2&V){let Ee;s.iGM(Ee=s.CRH())&&(ve._inkBar=Ee.first),s.iGM(Ee=s.CRH())&&(ve._tabListContainer=Ee.first),s.iGM(Ee=s.CRH())&&(ve._tabList=Ee.first),s.iGM(Ee=s.CRH())&&(ve._tabListInner=Ee.first),s.iGM(Ee=s.CRH())&&(ve._nextPaginator=Ee.first),s.iGM(Ee=s.CRH())&&(ve._previousPaginator=Ee.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(V,ve){2&V&&s.ekj("mat-tab-header-pagination-controls-enabled",ve._showPaginationControls)("mat-tab-header-rtl","rtl"==ve._getLayoutDirection())("mat-primary","warn"!==ve.color&&"accent"!==ve.color)("mat-accent","accent"===ve.color)("mat-warn","warn"===ve.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.qOj],attrs:B,ngContentSelectors:ne,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(V,ve){1&V&&(s.F$t(),s.TgZ(0,"div",0,1),s.NdJ("click",function(){return ve._handlePaginatorClick("before")})("mousedown",function(et){return ve._handlePaginatorPress("before",et)})("touchend",function(){return ve._stopInterval()}),s._UZ(2,"div",2),s.qZA(),s.TgZ(3,"div",3,4),s.NdJ("keydown",function(et){return ve._handleKeydown(et)}),s.TgZ(5,"div",5,6),s.NdJ("cdkObserveContent",function(){return ve._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 ve._handlePaginatorPress("after",et)})("click",function(){return ve._handlePaginatorClick("after")})("touchend",function(){return ve._stopInterval()}),s._UZ(13,"div",2),s.qZA()),2&V&&(s.ekj("mat-tab-header-pagination-disabled",ve._disableScrollBefore),s.Q6J("matRippleDisabled",ve._disableScrollBefore||ve.disableRipple),s.xp6(5),s.ekj("_mat-animation-noopable","NoopAnimations"===ve._animationMode),s.xp6(6),s.ekj("mat-tab-header-pagination-disabled",ve._disableScrollAfter),s.Q6J("matRippleDisabled",ve._disableScrollAfter||ve.disableRipple))},directives:[C.wG,t.wD,Pe],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}),He})();const ti=(0,C.sb)((0,C.Kr)((0,C.Id)(class{})));let Ri=(()=>{class He extends ti{constructor(V,ve,Ee,et,$t,Rt){super(),this._tabNavBar=V,this.elementRef=ve,this._focusMonitor=$t,this._isActive=!1,this.rippleConfig=Ee||{},this.tabIndex=parseInt(et)||0,"NoopAnimations"===Rt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(V){(0,ee.Ig)(V)!==this._isActive&&(this._isActive=V,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 He.\u0275fac=function(V){return new(V||He)(s.Y36(Oi),s.Y36(s.SBq),s.Y36(C.Y2,8),s.$8M("tabindex"),s.Y36(e.tE),s.Y36(c.Qb,8))},He.\u0275dir=s.lG2({type:He,inputs:{active:"active"},features:[s.qOj]}),He})(),si=(()=>{class He extends Ri{constructor(V,ve,Ee,et,$t,Rt,Xt,lt){super(V,ve,$t,Rt,Xt,lt),this._tabLinkRipple=new C.IR(this,Ee,ve,et),this._tabLinkRipple.setupTriggerEvents(ve.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(jt),s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(_e.t4),s.Y36(C.Y2,8),s.$8M("tabindex"),s.Y36(e.tE),s.Y36(c.Qb,8))},He.\u0275dir=s.lG2({type:He,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(V,ve){1&V&&s.NdJ("focus",function(){return ve._handleFocus()}),2&V&&(s.uIk("aria-current",ve.active?"page":null)("aria-disabled",ve.disabled)("tabIndex",ve.tabIndex),s.ekj("mat-tab-disabled",ve.disabled)("mat-tab-label-active",ve.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.qOj]}),He})(),di=(()=>{class He{}return He.\u0275fac=function(V){return new(V||He)},He.\u0275mod=s.oAB({type:He}),He.\u0275inj=s.cJS({imports:[[M.ez,C.BQ,v.eL,C.si,t.Q8,e.rt],C.BQ]}),He})()},4594:(Ue,K,m)=>{"use strict";m.d(K,{Ye:()=>o,g0:()=>T});var e=m(5e3),t=m(508),v=m(9808),M=m(925);const s=["*",[["mat-toolbar-row"]]],C=["*","mat-toolbar-row"],c=(0,t.pj)(class{constructor(P){this._elementRef=P}});let R=(()=>{class P{}return P.\u0275fac=function(D){return new(D||P)},P.\u0275dir=e.lG2({type:P,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),P})(),o=(()=>{class P extends c{constructor(D,w,U){super(D),this._platform=w,this._document=U}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return P.\u0275fac=function(D){return new(D||P)(e.Y36(e.SBq),e.Y36(M.t4),e.Y36(v.K0))},P.\u0275cmp=e.Xpm({type:P,selectors:[["mat-toolbar"]],contentQueries:function(D,w,U){if(1&D&&e.Suo(U,R,5),2&D){let G;e.iGM(G=e.CRH())&&(w._toolbarRows=G)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(D,w){2&D&&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:C,decls:2,vars:0,template:function(D,w){1&D&&(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}),P})(),T=(()=>{class P{}return P.\u0275fac=function(D){return new(D||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({imports:[[t.BQ],t.BQ]}),P})()},7238:(Ue,K,m)=>{"use strict";m.d(K,{gM:()=>p,AV:()=>L});var e=m(9776),t=m(5664),v=m(9808),M=m(5e3),s=m(508),C=m(5303),c=m(3191),R=m(1159),o=m(5113),O=m(925),T=m(7429),P=m(7579),S=m(2722),D=m(5698),w=m(1777),U=m(226);const G={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})))])},ie="tooltip-panel",_e=(0,O.i$)({passive:!0}),ne=new M.OlP("mat-tooltip-scroll-strategy"),oe={provide:ne,deps:[e.aV],useFactory:function(I){return()=>I.scrollStrategies.reposition({scrollThrottle:20})}},y=new M.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let a=(()=>{class I{constructor(r,b,J,F,B,te,xe,Pe,Fe,q,j,we){this._overlay=r,this._elementRef=b,this._scrollDispatcher=J,this._viewContainerRef=F,this._ngZone=B,this._platform=te,this._ariaDescriber=xe,this._focusMonitor=Pe,this._dir=q,this._defaultOptions=j,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 P.x,this._handleKeydown=Ae=>{this._isTooltipVisible()&&Ae.keyCode===R.hY&&!(0,R.Vb)(Ae)&&(Ae.preventDefault(),Ae.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=Fe,this._document=we,j&&(j.position&&(this.position=j.position),j.touchGestures&&(this.touchGestures=j.touchGestures)),q.change.pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),B.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,S.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,J])=>{r.removeEventListener(b,J,_e)}),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 T.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=b.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,S.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,S.R)(this._destroyed)).subscribe(J=>{this._updateCurrentPositionClass(J.connectionPair),this._tooltipInstance&&J.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:b,panelClass:`${this._cssClassPrefix}-${ie}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,S.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,S.R)(this._destroyed)).subscribe(()=>{var J;return null===(J=this._tooltipInstance)||void 0===J?void 0:J._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(r){const b=r.getConfig().positionStrategy,J=this._getOrigin(),F=this._getOverlayPosition();b.withPositions([this._addOffset(Object.assign(Object.assign({},J.main),F.main)),this._addOffset(Object.assign(Object.assign({},J.fallback),F.fallback))])}_addOffset(r){return r}_getOrigin(){const r=!this._dir||"ltr"==this._dir.value,b=this.position;let J;"above"==b||"below"==b?J={originX:"center",originY:"above"==b?"top":"bottom"}:"before"==b||"left"==b&&r||"right"==b&&!r?J={originX:"start",originY:"center"}:("after"==b||"right"==b&&r||"left"==b&&!r)&&(J={originX:"end",originY:"center"});const{x:F,y:B}=this._invertPosition(J.originX,J.originY);return{main:J,fallback:{originX:F,originY:B}}}_getOverlayPosition(){const r=!this._dir||"ltr"==this._dir.value,b=this.position;let J;"above"==b?J={overlayX:"center",overlayY:"bottom"}:"below"==b?J={overlayX:"center",overlayY:"top"}:"before"==b||"left"==b&&r||"right"==b&&!r?J={overlayX:"end",overlayY:"center"}:("after"==b||"right"==b&&r||"left"==b&&!r)&&(J={overlayX:"start",overlayY:"center"});const{x:F,y:B}=this._invertPosition(J.overlayX,J.overlayY);return{main:J,fallback:{overlayX:F,overlayY:B}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,D.q)(1),(0,S.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:J,originY:F}=r;let B;if(B="center"===b?this._dir&&"rtl"===this._dir.value?"end"===J?"left":"right":"start"===J?"left":"right":"bottom"===b&&"top"===F?"above":"below",B!==this._currentPosition){const te=this._overlayRef;if(te){const xe=`${this._cssClassPrefix}-${ie}-`;te.removePanelClass(xe+this._currentPosition),te.addPanelClass(xe+B)}this._currentPosition=B}}_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,J])=>{this._elementRef.nativeElement.addEventListener(b,J,_e)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(r){if(this._isTooltipVisible()){const b=this._document.elementFromPoint(r.clientX,r.clientY),J=this._elementRef.nativeElement;b!==J&&!J.contains(b)&&this.hide()}}_disableNativeGesturesIfNecessary(){const r=this.touchGestures;if("off"!==r){const b=this._elementRef.nativeElement,J=b.style;("on"===r||"INPUT"!==b.nodeName&&"TEXTAREA"!==b.nodeName)&&(J.userSelect=J.msUserSelect=J.webkitUserSelect=J.MozUserSelect="none"),("on"===r||!b.draggable)&&(J.webkitUserDrag="none"),J.touchAction="none",J.webkitTapHighlightColor="transparent"}}}return I.\u0275fac=function(r){M.$Z()},I.\u0275dir=M.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,J,F,B,te,xe,Pe,Fe,q,j,we){super(r,b,J,F,B,te,xe,Pe,Fe,q,j,we),this._tooltipComponent=_}}return I.\u0275fac=function(r){return new(r||I)(M.Y36(e.aV),M.Y36(M.SBq),M.Y36(C.mF),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(O.t4),M.Y36(t.$s),M.Y36(t.tE),M.Y36(ne),M.Y36(U.Is,8),M.Y36(y,8),M.Y36(v.K0))},I.\u0275dir=M.lG2({type:I,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[M.qOj]}),I})(),u=(()=>{class I{constructor(r){this._changeDetectorRef=r,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new P.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)(M.Y36(M.sBO))},I.\u0275dir=M.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)(M.Y36(M.sBO),M.Y36(o.Yg))},I.\u0275cmp=M.Xpm({type:I,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,b){2&r&&M.Udp("zoom","visible"===b._visibility?1:null)},features:[M.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(r,b){if(1&r&&(M.TgZ(0,"div",0),M.NdJ("@state.start",function(){return b._animationStart()})("@state.done",function(F){return b._animationDone(F)}),M.ALo(1,"async"),M._uU(2),M.qZA()),2&r){let J;M.ekj("mat-tooltip-handset",null==(J=M.lcZ(1,5,b._isHandset))?null:J.matches),M.Q6J("ngClass",b.tooltipClass)("@state",b._visibility),M.xp6(2),M.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:[G.tooltipState]},changeDetection:0}),I})(),L=(()=>{class I{}return I.\u0275fac=function(r){return new(r||I)},I.\u0275mod=M.oAB({type:I}),I.\u0275inj=M.cJS({providers:[oe],imports:[[t.rt,v.ez,e.U8,s.BQ],s.BQ,C.ZD]}),I})()},149:(Ue,K,m)=>{"use strict";m.d(K,{GZ:()=>P,gi:()=>w,dp:()=>W,WX:()=>_e,uo:()=>O,fQ:()=>T,Ar:()=>D,eu:()=>U});var e=m(8258),t=m(5e3),v=m(508),M=m(3191),s=m(449),C=m(1135),c=m(6451),R=m(4004);const o=(0,v.sb)((0,v.Id)(e.Hs));let O=(()=>{class fe extends o{constructor(ne,se,oe){super(ne,se),this.tabIndex=Number(oe)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return fe.\u0275fac=function(ne){return new(ne||fe)(t.Y36(t.SBq),t.Y36(e._0),t.$8M("tabindex"))},fe.\u0275dir=t.lG2({type:fe,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:fe}]),t.qOj]}),fe})(),T=(()=>{class fe extends e.rO{}return fe.\u0275fac=function(){let de;return function(se){return(de||(de=t.n5z(fe)))(se||fe)}}(),fe.\u0275dir=t.lG2({type:fe,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[t._Bn([{provide:e.rO,useExisting:fe}]),t.qOj]}),fe})(),P=(()=>{class fe extends e.Xx{constructor(ne,se,oe,y){super(ne,se,oe),this._disabled=!1,this.tabIndex=Number(y)||0}get disabled(){return this._disabled}set disabled(ne){this._disabled=(0,M.Ig)(ne)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ne){this._tabIndex=null!=ne?ne:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return fe.\u0275fac=function(ne){return new(ne||fe)(t.Y36(t.SBq),t.Y36(e._0),t.Y36(t.ZZ4),t.$8M("tabindex"))},fe.\u0275dir=t.lG2({type:fe,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:fe},{provide:e.Hs,useExisting:fe},{provide:e.HI,useExisting:fe}]),t.qOj]}),fe})(),D=(()=>{class fe{constructor(ne,se){this.viewContainer=ne,this._node=se}}return fe.\u0275fac=function(ne){return new(ne||fe)(t.Y36(t.s_b),t.Y36(e.HI,8))},fe.\u0275dir=t.lG2({type:fe,selectors:[["","matTreeNodeOutlet",""]],features:[t._Bn([{provide:e.cu,useExisting:fe}])]}),fe})(),w=(()=>{class fe extends e._0{}return fe.\u0275fac=function(){let de;return function(se){return(de||(de=t.n5z(fe)))(se||fe)}}(),fe.\u0275cmp=t.Xpm({type:fe,selectors:[["mat-tree"]],viewQuery:function(ne,se){if(1&ne&&t.Gf(D,7),2&ne){let oe;t.iGM(oe=t.CRH())&&(se._nodeOutlet=oe.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[t._Bn([{provide:e._0,useExisting:fe}]),t.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(ne,se){1&ne&&t.GkF(0,0)},directives:[D],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}),fe})(),U=(()=>{class fe extends e.Ud{}return fe.\u0275fac=function(){let de;return function(se){return(de||(de=t.n5z(fe)))(se||fe)}}(),fe.\u0275dir=t.lG2({type:fe,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[t._Bn([{provide:e.Ud,useExisting:fe}]),t.qOj]}),fe})(),W=(()=>{class fe{}return fe.\u0275fac=function(ne){return new(ne||fe)},fe.\u0275mod=t.oAB({type:fe}),fe.\u0275inj=t.cJS({imports:[[e.nZ,v.BQ],v.BQ]}),fe})();class _e extends s.o2{constructor(){super(...arguments),this._data=new C.X([])}get data(){return this._data.value}set data(de){this._data.next(de)}connect(de){return(0,c.T)(de.viewChange,this._data).pipe((0,R.U)(()=>this.data))}disconnect(){}}},6360:(Ue,K,m)=>{"use strict";m.d(K,{Qb:()=>ki,PW:()=>Ys});var e=m(5e3),t=m(2313),v=m(1777);function M(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function C(xt){switch(xt.length){case 0:return new v.ZN;case 1:return xt[0];default:return new v.ZE(xt)}}function c(xt,re,pe,je,Mt={},kt={}){const Kt=[],Jt=[];let fi=-1,Ai=null;if(je.forEach(Zi=>{const en=Zi.offset,Cn=en==fi,In=Cn&&Ai||{};Object.keys(Zi).forEach(tt=>{let Et=tt,It=Zi[tt];if("offset"!==tt)switch(Et=re.normalizePropertyName(Et,Kt),It){case v.k1:It=Mt[tt];break;case v.l3:It=kt[tt];break;default:It=re.normalizeStyleValue(tt,Et,It,Kt)}In[Et]=It}),Cn||Jt.push(In),Ai=In,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 R(xt,re,pe,je){switch(re){case"start":xt.onStart(()=>je(pe&&o(pe,"start",xt)));break;case"done":xt.onDone(()=>je(pe&&o(pe,"done",xt)));break;case"destroy":xt.onDestroy(()=>je(pe&&o(pe,"destroy",xt)))}}function o(xt,re,pe){const je=pe.totalTime,kt=O(xt.element,xt.triggerName,xt.fromState,xt.toState,re||xt.phaseName,null==je?xt.totalTime:je,!!pe.disabled),Kt=xt._data;return null!=Kt&&(kt._data=Kt),kt}function O(xt,re,pe,je,Mt="",kt=0,Kt){return{element:xt,triggerName:re,fromState:pe,toState:je,phaseName:Mt,totalTime:kt,disabled:!!Kt}}function T(xt,re,pe){let je;return xt instanceof Map?(je=xt.get(re),je||xt.set(re,je=pe)):(je=xt[re],je||(je=xt[re]=pe)),je}function P(xt){const re=xt.indexOf(":");return[xt.substring(1,re),xt.substr(re+1)]}let S=(xt,re)=>!1,D=(xt,re)=>!1,w=(xt,re,pe)=>[];const U=s();(U||"undefined"!=typeof Element)&&(S=M()?(xt,re)=>{for(;re&&re!==document.documentElement;){if(re===xt)return!0;re=re.parentNode||re.host}return!1}:(xt,re)=>xt.contains(re),D=(()=>{if(U||Element.prototype.matches)return(xt,re)=>xt.matches(re);{const xt=Element.prototype,re=xt.matchesSelector||xt.mozMatchesSelector||xt.msMatchesSelector||xt.oMatchesSelector||xt.webkitMatchesSelector;return re?(pe,je)=>re.apply(pe,[je]):D}})(),w=(xt,re,pe)=>{let je=[];if(pe){const Mt=xt.querySelectorAll(re);for(let kt=0;kt<Mt.length;kt++)je.push(Mt[kt])}else{const Mt=xt.querySelector(re);Mt&&je.push(Mt)}return je});let W=null,ee=!1;function ie(xt){W||(W=("undefined"!=typeof document?document.body:null)||{},ee=!!W.style&&"WebkitAppearance"in W.style);let re=!0;return W.style&&!function(xt){return"ebkit"==xt.substring(1,6)}(xt)&&(re=xt in W.style,!re&&ee&&(re="Webkit"+xt.charAt(0).toUpperCase()+xt.substr(1)in W.style)),re}const fe=D,de=S,ne=w;function se(xt){const re={};return Object.keys(xt).forEach(pe=>{const je=pe.replace(/([a-z])([A-Z])/g,"$1-$2");re[je]=xt[pe]}),re}let oe=(()=>{class xt{validateStyleProperty(pe){return ie(pe)}matchesElement(pe,je){return fe(pe,je)}containsElement(pe,je){return de(pe,je)}query(pe,je,Mt){return ne(pe,je,Mt)}computeStyle(pe,je,Mt){return Mt||""}animate(pe,je,Mt,kt,Kt,Jt=[],fi){return new v.ZN(Mt,kt)}}return xt.\u0275fac=function(pe){return new(pe||xt)},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})(),y=(()=>{class xt{}return xt.NOOP=new oe,xt})();const u="ng-enter",_="ng-leave",x="ng-trigger",r=".ng-trigger",b="ng-animating",J=".ng-animating";function F(xt){if("number"==typeof xt)return xt;const re=xt.match(/^(-?[\.\d]+)(m?s)/);return!re||re.length<2?0:B(parseFloat(re[1]),re[2])}function B(xt,re){return"s"===re?1e3*xt:xt}function te(xt,re,pe){return xt.hasOwnProperty("duration")?xt:function(xt,re,pe){let Mt,kt=0,Kt="";if("string"==typeof xt){const Jt=xt.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Jt)return re.push(`The provided timing value "${xt}" is invalid.`),{duration:0,delay:0,easing:""};Mt=B(parseFloat(Jt[1]),Jt[2]);const fi=Jt[3];null!=fi&&(kt=B(parseFloat(fi),Jt[4]));const Ai=Jt[5];Ai&&(Kt=Ai)}else Mt=xt;if(!pe){let Jt=!1,fi=re.length;Mt<0&&(re.push("Duration values below 0 are not allowed for this animation step."),Jt=!0),kt<0&&(re.push("Delay values below 0 are not allowed for this animation step."),Jt=!0),Jt&&re.splice(fi,0,`The provided timing value "${xt}" is invalid.`)}return{duration:Mt,delay:kt,easing:Kt}}(xt,re,pe)}function Pe(xt,re={}){return Object.keys(xt).forEach(pe=>{re[pe]=xt[pe]}),re}function q(xt,re,pe={}){if(re)for(let je in xt)pe[je]=xt[je];else Pe(xt,pe);return pe}function j(xt,re,pe){return pe?re+":"+pe+";":""}function we(xt){let re="";for(let pe=0;pe<xt.style.length;pe++){const je=xt.style.item(pe);re+=j(0,je,xt.style.getPropertyValue(je))}for(const pe in xt.style)xt.style.hasOwnProperty(pe)&&!pe.startsWith("_")&&(re+=j(0,X(pe),xt.style[pe]));xt.setAttribute("style",re)}function Ae(xt,re,pe){xt.style&&(Object.keys(re).forEach(je=>{const Mt=Y(je);pe&&!pe.hasOwnProperty(je)&&(pe[je]=xt.style[Mt]),xt.style[Mt]=re[je]}),s()&&we(xt))}function le(xt,re){xt.style&&(Object.keys(re).forEach(pe=>{const je=Y(pe);xt.style[je]=""}),s()&&we(xt))}function We(xt){return Array.isArray(xt)?1==xt.length?xt[0]:(0,v.vP)(xt):xt}const Ne=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ve(xt){let re=[];if("string"==typeof xt){let pe;for(;pe=Ne.exec(xt);)re.push(pe[1]);Ne.lastIndex=0}return re}function ue(xt,re,pe){const je=xt.toString(),Mt=je.replace(Ne,(kt,Kt)=>{let Jt=re[Kt];return re.hasOwnProperty(Kt)||(pe.push(`Please provide a value for the animation param ${Kt}`),Jt=""),Jt.toString()});return Mt==je?xt:Mt}function Te(xt){const re=[];let pe=xt.next();for(;!pe.done;)re.push(pe.value),pe=xt.next();return re}const ke=/-+([a-z0-9])/g;function Y(xt){return xt.replace(ke,(...re)=>re[1].toUpperCase())}function X(xt){return xt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function he(xt,re){return 0===xt||0===re}function Me(xt,re,pe){const je=Object.keys(pe);if(je.length&&re.length){let kt=re[0],Kt=[];if(je.forEach(Jt=>{kt.hasOwnProperty(Jt)||Kt.push(Jt),kt[Jt]=pe[Jt]}),Kt.length)for(var Mt=1;Mt<re.length;Mt++){let Jt=re[Mt];Kt.forEach(function(fi){Jt[fi]=ht(xt,fi)})}}return re}function ze(xt,re,pe){switch(re.type){case 7:return xt.visitTrigger(re,pe);case 0:return xt.visitState(re,pe);case 1:return xt.visitTransition(re,pe);case 2:return xt.visitSequence(re,pe);case 3:return xt.visitGroup(re,pe);case 4:return xt.visitAnimate(re,pe);case 5:return xt.visitKeyframes(re,pe);case 6:return xt.visitStyle(re,pe);case 8:return xt.visitReference(re,pe);case 9:return xt.visitAnimateChild(re,pe);case 10:return xt.visitAnimateRef(re,pe);case 11:return xt.visitQuery(re,pe);case 12:return xt.visitStagger(re,pe);default:throw new Error(`Unable to resolve animation metadata node #${re.type}`)}}function ht(xt,re){return window.getComputedStyle(xt)[re]}function ft(xt,re){const pe=[];return"string"==typeof xt?xt.split(/\s*,\s*/).forEach(je=>function(xt,re,pe){if(":"==xt[0]){const fi=function(xt,re){switch(xt){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(pe,je)=>parseFloat(je)>parseFloat(pe);case":decrement":return(pe,je)=>parseFloat(je)<parseFloat(pe);default:return re.push(`The transition alias value "${xt}" is not supported`),"* => *"}}(xt,pe);if("function"==typeof fi)return void re.push(fi);xt=fi}const je=xt.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==je||je.length<4)return pe.push(`The provided transition expression "${xt}" is not supported`),re;const Mt=je[1],kt=je[2],Kt=je[3];re.push(Nt(Mt,Kt));"<"==kt[0]&&!("*"==Mt&&"*"==Kt)&&re.push(Nt(Kt,Mt))}(je,pe,re)):pe.push(xt),pe}const wt=new Set(["true","1"]),Bt=new Set(["false","0"]);function Nt(xt,re){const pe=wt.has(xt)||Bt.has(xt),je=wt.has(re)||Bt.has(re);return(Mt,kt)=>{let Kt="*"==xt||xt==Mt,Jt="*"==re||re==kt;return!Kt&&pe&&"boolean"==typeof Mt&&(Kt=Mt?wt.has(xt):Bt.has(xt)),!Jt&&je&&"boolean"==typeof kt&&(Jt=kt?wt.has(re):Bt.has(re)),Kt&&Jt}}const Oi=new RegExp("s*:selfs*,?","g");function jt(xt,re,pe){return new Ri(xt).build(re,pe)}class Ri{constructor(re){this._driver=re}build(re,pe){const je=new He(pe);return this._resetContextStyleTimingState(je),ze(this,We(re),je)}_resetContextStyleTimingState(re){re.currentQuerySelector="",re.collectedStyles={},re.collectedStyles[""]={},re.currentTime=0}visitTrigger(re,pe){let je=pe.queryCount=0,Mt=pe.depCount=0;const kt=[],Kt=[];return"@"==re.name.charAt(0)&&pe.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),re.definitions.forEach(Jt=>{if(this._resetContextStyleTimingState(pe),0==Jt.type){const fi=Jt,Ai=fi.name;Ai.toString().split(/\s*,\s*/).forEach(Zi=>{fi.name=Zi,kt.push(this.visitState(fi,pe))}),fi.name=Ai}else if(1==Jt.type){const fi=this.visitTransition(Jt,pe);je+=fi.queryCount,Mt+=fi.depCount,Kt.push(fi)}else pe.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:re.name,states:kt,transitions:Kt,queryCount:je,depCount:Mt,options:null}}visitState(re,pe){const je=this.visitStyle(re.styles,pe),Mt=re.options&&re.options.params||null;if(je.containsDynamicStyles){const kt=new Set,Kt=Mt||{};if(je.styles.forEach(Jt=>{if(V(Jt)){const fi=Jt;Object.keys(fi).forEach(Ai=>{Ve(fi[Ai]).forEach(Zi=>{Kt.hasOwnProperty(Zi)||kt.add(Zi)})})}}),kt.size){const Jt=Te(kt.values());pe.errors.push(`state("${re.name}", ...) must define default values for all the following style substitutions: ${Jt.join(", ")}`)}}return{type:0,name:re.name,style:je,options:Mt?{params:Mt}:null}}visitTransition(re,pe){pe.queryCount=0,pe.depCount=0;const je=ze(this,We(re.animation),pe);return{type:1,matchers:ft(re.expr,pe.errors),animation:je,queryCount:pe.queryCount,depCount:pe.depCount,options:Ee(re.options)}}visitSequence(re,pe){return{type:2,steps:re.steps.map(je=>ze(this,je,pe)),options:Ee(re.options)}}visitGroup(re,pe){const je=pe.currentTime;let Mt=0;const kt=re.steps.map(Kt=>{pe.currentTime=je;const Jt=ze(this,Kt,pe);return Mt=Math.max(Mt,pe.currentTime),Jt});return pe.currentTime=Mt,{type:3,steps:kt,options:Ee(re.options)}}visitAnimate(re,pe){const je=function(xt,re){let pe=null;if(xt.hasOwnProperty("duration"))pe=xt;else if("number"==typeof xt)return et(te(xt,re).duration,0,"");const je=xt;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 pe=pe||te(je,re),et(pe.duration,pe.delay,pe.easing)}(re.timings,pe.errors);pe.currentAnimateTimings=je;let Mt,kt=re.styles?re.styles:(0,v.oB)({});if(5==kt.type)Mt=this.visitKeyframes(kt,pe);else{let Kt=re.styles,Jt=!1;if(!Kt){Jt=!0;const Ai={};je.easing&&(Ai.easing=je.easing),Kt=(0,v.oB)(Ai)}pe.currentTime+=je.duration+je.delay;const fi=this.visitStyle(Kt,pe);fi.isEmptyStep=Jt,Mt=fi}return pe.currentAnimateTimings=null,{type:4,timings:je,style:Mt,options:null}}visitStyle(re,pe){const je=this._makeStyleAst(re,pe);return this._validateStyleAst(je,pe),je}_makeStyleAst(re,pe){const je=[];Array.isArray(re.styles)?re.styles.forEach(Kt=>{"string"==typeof Kt?Kt==v.l3?je.push(Kt):pe.errors.push(`The provided style string value ${Kt} is not allowed.`):je.push(Kt)}):je.push(re.styles);let Mt=!1,kt=null;return je.forEach(Kt=>{if(V(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:re.offset,containsDynamicStyles:Mt,options:null}}_validateStyleAst(re,pe){const je=pe.currentAnimateTimings;let Mt=pe.currentTime,kt=pe.currentTime;je&&kt>0&&(kt-=je.duration+je.delay),re.styles.forEach(Kt=>{"string"!=typeof Kt&&Object.keys(Kt).forEach(Jt=>{if(!this._driver.validateStyleProperty(Jt))return void pe.errors.push(`The provided animation property "${Jt}" is not a supported CSS property for animations`);const fi=pe.collectedStyles[pe.currentQuerySelector],Ai=fi[Jt];let Zi=!0;Ai&&(kt!=Mt&&kt>=Ai.startTime&&Mt<=Ai.endTime&&(pe.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}),pe.options&&function(xt,re,pe){const je=re.params||{},Mt=Ve(xt);Mt.length&&Mt.forEach(kt=>{je.hasOwnProperty(kt)||pe.push(`Unable to resolve the local animation param ${kt} in the given list of values`)})}(Kt[Jt],pe.options,pe.errors)})})}visitKeyframes(re,pe){const je={type:5,styles:[],options:null};if(!pe.currentAnimateTimings)return pe.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=re.steps.map(zt=>{const ri=this._makeStyleAst(zt,pe);let vi=null!=ri.offset?ri.offset:function(xt){if("string"==typeof xt)return null;let re=null;if(Array.isArray(xt))xt.forEach(pe=>{if(V(pe)&&pe.hasOwnProperty("offset")){const je=pe;re=parseFloat(je.offset),delete je.offset}});else if(V(xt)&&xt.hasOwnProperty("offset")){const pe=xt;re=parseFloat(pe.offset),delete pe.offset}return re}(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&&pe.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),Jt&&pe.errors.push("Please ensure that all keyframe offsets are in order");const en=re.steps.length;let Cn=0;kt>0&&kt<en?pe.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==kt&&(Cn=1/(en-1));const In=en-1,tt=pe.currentTime,Et=pe.currentAnimateTimings,It=Et.duration;return Zi.forEach((zt,ri)=>{const vi=Cn>0?ri==In?1:Cn*ri:Kt[ri],Mi=vi*It;pe.currentTime=tt+Et.delay+Mi,Et.duration=Mi,this._validateStyleAst(zt,pe),zt.offset=vi,je.styles.push(zt)}),je}visitReference(re,pe){return{type:8,animation:ze(this,We(re.animation),pe),options:Ee(re.options)}}visitAnimateChild(re,pe){return pe.depCount++,{type:9,options:Ee(re.options)}}visitAnimateRef(re,pe){return{type:10,animation:this.visitReference(re.animation,pe),options:Ee(re.options)}}visitQuery(re,pe){const je=pe.currentQuerySelector,Mt=re.options||{};pe.queryCount++,pe.currentQuery=re;const[kt,Kt]=function(xt){const re=!!xt.split(/\s*,\s*/).find(pe=>":self"==pe);return re&&(xt=xt.replace(Oi,"")),xt=xt.replace(/@\*/g,r).replace(/@\w+/g,pe=>r+"-"+pe.substr(1)).replace(/:animating/g,J),[xt,re]}(re.selector);pe.currentQuerySelector=je.length?je+" "+kt:kt,T(pe.collectedStyles,pe.currentQuerySelector,{});const Jt=ze(this,We(re.animation),pe);return pe.currentQuery=null,pe.currentQuerySelector=je,{type:11,selector:kt,limit:Mt.limit||0,optional:!!Mt.optional,includeSelf:Kt,animation:Jt,originalSelector:re.selector,options:Ee(re.options)}}visitStagger(re,pe){pe.currentQuery||pe.errors.push("stagger() can only be used inside of query()");const je="full"===re.timings?{duration:0,delay:0,easing:"full"}:te(re.timings,pe.errors,!0);return{type:12,animation:ze(this,We(re.animation),pe),timings:je,options:null}}}class He{constructor(re){this.errors=re,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 V(xt){return!Array.isArray(xt)&&"object"==typeof xt}function Ee(xt){return xt?(xt=Pe(xt)).params&&(xt.params=function(xt){return xt?Pe(xt):null}(xt.params)):xt={},xt}function et(xt,re,pe){return{duration:xt,delay:re,easing:pe}}function $t(xt,re,pe,je,Mt,kt,Kt=null,Jt=!1){return{type:1,element:xt,keyframes:re,preStyleProps:pe,postStyleProps:je,duration:Mt,delay:kt,totalTime:Mt+kt,easing:Kt,subTimeline:Jt}}class Rt{constructor(){this._map=new Map}consume(re){let pe=this._map.get(re);return pe?this._map.delete(re):pe=[],pe}append(re,pe){let je=this._map.get(re);je||this._map.set(re,je=[]),je.push(...pe)}has(re){return this._map.has(re)}clear(){this._map.clear()}}const Re=new RegExp(":enter","g"),rt=new RegExp(":leave","g");function ot(xt,re,pe,je,Mt,kt={},Kt={},Jt,fi,Ai=[]){return(new At).buildKeyframes(xt,re,pe,je,Mt,kt,Kt,Jt,fi,Ai)}class At{buildKeyframes(re,pe,je,Mt,kt,Kt,Jt,fi,Ai,Zi=[]){Ai=Ai||new Rt;const en=new Ut(re,pe,Ai,Mt,kt,Zi,[]);en.options=fi,en.currentTimeline.setStyles([Kt],null,en.errors,fi),ze(this,je,en);const Cn=en.timelines.filter(In=>In.containsAnimation());if(Cn.length&&Object.keys(Jt).length){const In=Cn[Cn.length-1];In.allowOnlyTimelineStyles()||In.setStyles([Jt],null,en.errors,fi)}return Cn.length?Cn.map(In=>In.buildKeyframes()):[$t(pe,[],[],[],0,0,"",!1)]}visitTrigger(re,pe){}visitState(re,pe){}visitTransition(re,pe){}visitAnimateChild(re,pe){const je=pe.subInstructions.consume(pe.element);if(je){const Mt=pe.createSubContext(re.options),kt=pe.currentTimeline.currentTime,Kt=this._visitSubInstructions(je,Mt,Mt.options);kt!=Kt&&pe.transformIntoNewTimeline(Kt)}pe.previousNode=re}visitAnimateRef(re,pe){const je=pe.createSubContext(re.options);je.transformIntoNewTimeline(),this.visitReference(re.animation,je),pe.transformIntoNewTimeline(je.currentTimeline.currentTime),pe.previousNode=re}_visitSubInstructions(re,pe,je){let kt=pe.currentTimeline.currentTime;const Kt=null!=je.duration?F(je.duration):null,Jt=null!=je.delay?F(je.delay):null;return 0!==Kt&&re.forEach(fi=>{const Ai=pe.appendInstructionToTimeline(fi,Kt,Jt);kt=Math.max(kt,Ai.duration+Ai.delay)}),kt}visitReference(re,pe){pe.updateOptions(re.options,!0),ze(this,re.animation,pe),pe.previousNode=re}visitSequence(re,pe){const je=pe.subContextCount;let Mt=pe;const kt=re.options;if(kt&&(kt.params||kt.delay)&&(Mt=pe.createSubContext(kt),Mt.transformIntoNewTimeline(),null!=kt.delay)){6==Mt.previousNode.type&&(Mt.currentTimeline.snapshotCurrentStyles(),Mt.previousNode=li);const Kt=F(kt.delay);Mt.delayNextStep(Kt)}re.steps.length&&(re.steps.forEach(Kt=>ze(this,Kt,Mt)),Mt.currentTimeline.applyStylesToKeyframe(),Mt.subContextCount>je&&Mt.transformIntoNewTimeline()),pe.previousNode=re}visitGroup(re,pe){const je=[];let Mt=pe.currentTimeline.currentTime;const kt=re.options&&re.options.delay?F(re.options.delay):0;re.steps.forEach(Kt=>{const Jt=pe.createSubContext(re.options);kt&&Jt.delayNextStep(kt),ze(this,Kt,Jt),Mt=Math.max(Mt,Jt.currentTimeline.currentTime),je.push(Jt.currentTimeline)}),je.forEach(Kt=>pe.currentTimeline.mergeTimelineCollectedStyles(Kt)),pe.transformIntoNewTimeline(Mt),pe.previousNode=re}_visitTiming(re,pe){if(re.dynamic){const je=re.strValue;return te(pe.params?ue(je,pe.params,pe.errors):je,pe.errors)}return{duration:re.duration,delay:re.delay,easing:re.easing}}visitAnimate(re,pe){const je=pe.currentAnimateTimings=this._visitTiming(re.timings,pe),Mt=pe.currentTimeline;je.delay&&(pe.incrementTime(je.delay),Mt.snapshotCurrentStyles());const kt=re.style;5==kt.type?this.visitKeyframes(kt,pe):(pe.incrementTime(je.duration),this.visitStyle(kt,pe),Mt.applyStylesToKeyframe()),pe.currentAnimateTimings=null,pe.previousNode=re}visitStyle(re,pe){const je=pe.currentTimeline,Mt=pe.currentAnimateTimings;!Mt&&je.getCurrentStyleProperties().length&&je.forwardFrame();const kt=Mt&&Mt.easing||re.easing;re.isEmptyStep?je.applyEmptyStep(kt):je.setStyles(re.styles,kt,pe.errors,pe.options),pe.previousNode=re}visitKeyframes(re,pe){const je=pe.currentAnimateTimings,Mt=pe.currentTimeline.duration,kt=je.duration,Jt=pe.createSubContext().currentTimeline;Jt.easing=je.easing,re.styles.forEach(fi=>{Jt.forwardTime((fi.offset||0)*kt),Jt.setStyles(fi.styles,fi.easing,pe.errors,pe.options),Jt.applyStylesToKeyframe()}),pe.currentTimeline.mergeTimelineCollectedStyles(Jt),pe.transformIntoNewTimeline(Mt+kt),pe.previousNode=re}visitQuery(re,pe){const je=pe.currentTimeline.currentTime,Mt=re.options||{},kt=Mt.delay?F(Mt.delay):0;kt&&(6===pe.previousNode.type||0==je&&pe.currentTimeline.getCurrentStyleProperties().length)&&(pe.currentTimeline.snapshotCurrentStyles(),pe.previousNode=li);let Kt=je;const Jt=pe.invokeQuery(re.selector,re.originalSelector,re.limit,re.includeSelf,!!Mt.optional,pe.errors);pe.currentQueryTotal=Jt.length;let fi=null;Jt.forEach((Ai,Zi)=>{pe.currentQueryIndex=Zi;const en=pe.createSubContext(re.options,Ai);kt&&en.delayNextStep(kt),Ai===pe.element&&(fi=en.currentTimeline),ze(this,re.animation,en),en.currentTimeline.applyStylesToKeyframe(),Kt=Math.max(Kt,en.currentTimeline.currentTime)}),pe.currentQueryIndex=0,pe.currentQueryTotal=0,pe.transformIntoNewTimeline(Kt),fi&&(pe.currentTimeline.mergeTimelineCollectedStyles(fi),pe.currentTimeline.snapshotCurrentStyles()),pe.previousNode=re}visitStagger(re,pe){const je=pe.parentContext,Mt=pe.currentTimeline,kt=re.timings,Kt=Math.abs(kt.duration),Jt=Kt*(pe.currentQueryTotal-1);let fi=Kt*pe.currentQueryIndex;switch(kt.duration<0?"reverse":kt.easing){case"reverse":fi=Jt-fi;break;case"full":fi=je.currentStaggerTime}const Zi=pe.currentTimeline;fi&&Zi.delayNextStep(fi);const en=Zi.currentTime;ze(this,re.animation,pe),pe.previousNode=re,je.currentStaggerTime=Mt.currentTime-en+(Mt.startTime-je.currentTimeline.startTime)}}const li={};class Ut{constructor(re,pe,je,Mt,kt,Kt,Jt,fi){this._driver=re,this.element=pe,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,pe,0),Jt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(re,pe){if(!re)return;const je=re;let Mt=this.options;null!=je.duration&&(Mt.duration=F(je.duration)),null!=je.delay&&(Mt.delay=F(je.delay));const kt=je.params;if(kt){let Kt=Mt.params;Kt||(Kt=this.options.params={}),Object.keys(kt).forEach(Jt=>{(!pe||!Kt.hasOwnProperty(Jt))&&(Kt[Jt]=ue(kt[Jt],Kt,this.errors))})}}_copyOptions(){const re={};if(this.options){const pe=this.options.params;if(pe){const je=re.params={};Object.keys(pe).forEach(Mt=>{je[Mt]=pe[Mt]})}}return re}createSubContext(re=null,pe,je){const Mt=pe||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(re),kt.currentQueryIndex=this.currentQueryIndex,kt.currentQueryTotal=this.currentQueryTotal,kt.parentContext=this,this.subContextCount++,kt}transformIntoNewTimeline(re){return this.previousNode=li,this.currentTimeline=this.currentTimeline.fork(this.element,re),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(re,pe,je){const Mt={duration:null!=pe?pe:re.duration,delay:this.currentTimeline.currentTime+(null!=je?je:0)+re.delay,easing:""},kt=new Si(this._driver,re.element,re.keyframes,re.preStyleProps,re.postStyleProps,Mt,re.stretchStartingKeyframe);return this.timelines.push(kt),Mt}incrementTime(re){this.currentTimeline.forwardTime(this.currentTimeline.duration+re)}delayNextStep(re){re>0&&this.currentTimeline.delayNextStep(re)}invokeQuery(re,pe,je,Mt,kt,Kt){let Jt=[];if(Mt&&Jt.push(this.element),re.length>0){re=(re=re.replace(Re,"."+this._enterClassName)).replace(rt,"."+this._leaveClassName);let Ai=this._driver.query(this.element,re,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("${pe}")\` returned zero elements. (Use \`query("${pe}", { optional: true })\` if you wish to allow this.)`),Jt}}class Ft{constructor(re,pe,je,Mt){this._driver=re,this.element=pe,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(pe),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(pe,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(re){const pe=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||pe?(this.forwardTime(this.currentTime+re),pe&&this.snapshotCurrentStyles()):this.startTime+=re}fork(re,pe){return this.applyStylesToKeyframe(),new Ft(this._driver,re,pe||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(re){this.applyStylesToKeyframe(),this.duration=re,this._loadKeyframe()}_updateStyle(re,pe){this._localTimelineStyles[re]=pe,this._globalTimelineStyles[re]=pe,this._styleSummary[re]={time:this.currentTime,value:pe}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(re){re&&(this._previousKeyframe.easing=re),Object.keys(this._globalTimelineStyles).forEach(pe=>{this._backFill[pe]=this._globalTimelineStyles[pe]||v.l3,this._currentKeyframe[pe]=v.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(re,pe,je,Mt){pe&&(this._previousKeyframe.easing=pe);const kt=Mt&&Mt.params||{},Kt=function(xt,re){const pe={};let je;return xt.forEach(Mt=>{"*"===Mt?(je=je||Object.keys(re),je.forEach(kt=>{pe[kt]=v.l3})):q(Mt,!1,pe)}),pe}(re,this._globalTimelineStyles);Object.keys(Kt).forEach(Jt=>{const fi=ue(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 re=this._pendingStyles,pe=Object.keys(re);0!=pe.length&&(this._pendingStyles={},pe.forEach(je=>{this._currentKeyframe[je]=re[je]}),Object.keys(this._localTimelineStyles).forEach(je=>{this._currentKeyframe.hasOwnProperty(je)||(this._currentKeyframe[je]=this._localTimelineStyles[je])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(re=>{const pe=this._localTimelineStyles[re];this._pendingStyles[re]=pe,this._updateStyle(re,pe)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const re=[];for(let pe in this._currentKeyframe)re.push(pe);return re}mergeTimelineCollectedStyles(re){Object.keys(re._styleSummary).forEach(pe=>{const je=this._styleSummary[pe],Mt=re._styleSummary[pe];(!je||Mt.time>je.time)&&this._updateStyle(pe,Mt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const re=new Set,pe=new Set,je=1===this._keyframes.size&&0===this.duration;let Mt=[];this._keyframes.forEach((Jt,fi)=>{const Ai=q(Jt,!0);Object.keys(Ai).forEach(Zi=>{const en=Ai[Zi];en==v.k1?re.add(Zi):en==v.l3&&pe.add(Zi)}),je||(Ai.offset=fi/this.duration),Mt.push(Ai)});const kt=re.size?Te(re.values()):[],Kt=pe.size?Te(pe.values()):[];if(je){const Jt=Mt[0],fi=Pe(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(re,pe,je,Mt,kt,Kt,Jt=!1){super(re,pe,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 re=this.keyframes,{delay:pe,duration:je,easing:Mt}=this.timings;if(this._stretchStartingKeyframe&&pe){const kt=[],Kt=je+pe,Jt=pe/Kt,fi=q(re[0],!1);fi.offset=0,kt.push(fi);const Ai=q(re[0],!1);Ai.offset=ai(Jt),kt.push(Ai);const Zi=re.length-1;for(let en=1;en<=Zi;en++){let Cn=q(re[en],!1);Cn.offset=ai((pe+Cn.offset*je)/Kt),kt.push(Cn)}je=Kt,pe=0,Mt="",re=kt}return $t(this.element,re,this.preStyleProps,this.postStyleProps,je,pe,Mt,!0)}}function ai(xt,re=3){const pe=Math.pow(10,re-1);return Math.round(xt*pe)/pe}class Vi{}class Xi extends Vi{normalizePropertyName(re,pe){return Y(re)}normalizeStyleValue(re,pe,je,Mt){let kt="";const Kt=je.toString().trim();if(Ke[pe]&&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 ${re}:${je}`)}return Kt+kt}}const Ke=(()=>function(xt){const re={};return xt.forEach(pe=>re[pe]=!0),re}("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 be(xt,re,pe,je,Mt,kt,Kt,Jt,fi,Ai,Zi,en,Cn){return{type:0,element:xt,triggerName:re,isRemovalTransition:Mt,fromState:pe,fromStyles:kt,toState:je,toStyles:Kt,timelines:Jt,queriedElements:fi,preStyleProps:Ai,postStyleProps:Zi,totalTime:en,errors:Cn}}const qe={};class vt{constructor(re,pe,je){this._triggerName=re,this.ast=pe,this._stateStyles=je}match(re,pe,je,Mt){return function(xt,re,pe,je,Mt){return xt.some(kt=>kt(re,pe,je,Mt))}(this.ast.matchers,re,pe,je,Mt)}buildStyles(re,pe,je){const Mt=this._stateStyles["*"],kt=this._stateStyles[re],Kt=Mt?Mt.buildStyles(pe,je):{};return kt?kt.buildStyles(pe,je):Kt}build(re,pe,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(re,pe,this.ast.animation,kt,Kt,tt,It,Ei,Ai,en);let hn=0;if(ji.forEach(Tn=>{hn=Math.max(Tn.duration+Tn.delay,hn)}),en.length)return be(pe,this._triggerName,je,Mt,Mi,tt,It,[],[],ri,vi,hn,en);ji.forEach(Tn=>{const Vn=Tn.element,wr=T(ri,Vn,{});Tn.preStyleProps.forEach(Ar=>wr[Ar]=!0);const Or=T(vi,Vn,{});Tn.postStyleProps.forEach(Ar=>Or[Ar]=!0),Vn!==pe&&zt.add(Vn)});const yn=Te(zt.values());return be(pe,this._triggerName,je,Mt,Mi,tt,It,ji,yn,ri,vi,hn)}}class $e{constructor(re,pe,je){this.styles=re,this.defaultParams=pe,this.normalizer=je}buildStyles(re,pe){const je={},Mt=Pe(this.defaultParams);return Object.keys(re).forEach(kt=>{const Kt=re[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=ue(fi,Mt,pe));const Ai=this.normalizer.normalizePropertyName(Jt,pe);fi=this.normalizer.normalizeStyleValue(Jt,Ai,fi,pe),je[Ai]=fi})}}),je}}class Pt{constructor(re,pe,je){this.name=re,this.ast=pe,this._normalizer=je,this.transitionFactories=[],this.states={},pe.states.forEach(Mt=>{this.states[Mt.name]=new $e(Mt.style,Mt.options&&Mt.options.params||{},je)}),Pi(this.states,"true","1"),Pi(this.states,"false","0"),pe.transitions.forEach(Mt=>{this.transitionFactories.push(new vt(re,Mt,this.states))}),this.fallbackTransition=function(xt,re,pe){return new vt(xt,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Kt,Jt)=>!0],options:null,queryCount:0,depCount:0},re)}(re,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(re,pe,je,Mt){return this.transitionFactories.find(Kt=>Kt.match(re,pe,je,Mt))||null}matchStyles(re,pe,je){return this.fallbackTransition.buildStyles(re,pe,je)}}function Pi(xt,re,pe){xt.hasOwnProperty(re)?xt.hasOwnProperty(pe)||(xt[pe]=xt[re]):xt.hasOwnProperty(pe)&&(xt[re]=xt[pe])}const Ii=new Rt;class Ki{constructor(re,pe,je){this.bodyNode=re,this._driver=pe,this._normalizer=je,this._animations={},this._playersById={},this.players=[]}register(re,pe){const je=[],Mt=jt(this._driver,pe,je);if(je.length)throw new Error(`Unable to build the animation due to the following errors: ${je.join("\n")}`);this._animations[re]=Mt}_buildPlayer(re,pe,je){const Mt=re.element,kt=c(0,this._normalizer,0,re.keyframes,pe,je);return this._driver.animate(Mt,kt,re.duration,re.delay,re.easing,[],!0)}create(re,pe,je={}){const Mt=[],kt=this._animations[re];let Kt;const Jt=new Map;if(kt?(Kt=ot(this._driver,pe,kt,u,_,{},{},je,Ii,Mt),Kt.forEach(Zi=>{const en=T(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=C(Kt.map(Zi=>{const en=Jt.get(Zi.element);return this._buildPlayer(Zi,{},en)}));return this._playersById[re]=Ai,Ai.onDestroy(()=>this.destroy(re)),this.players.push(Ai),Ai}destroy(re){const pe=this._getPlayer(re);pe.destroy(),delete this._playersById[re];const je=this.players.indexOf(pe);je>=0&&this.players.splice(je,1)}_getPlayer(re){const pe=this._playersById[re];if(!pe)throw new Error(`Unable to find the timeline player referenced by ${re}`);return pe}listen(re,pe,je,Mt){const kt=O(pe,"","","");return R(this._getPlayer(re),je,kt,Mt),()=>{}}command(re,pe,je,Mt){if("register"==je)return void this.register(re,Mt[0]);if("create"==je)return void this.create(re,pe,Mt[0]||{});const kt=this._getPlayer(re);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(re)}}}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(re,pe=""){this.namespaceId=pe;const je=re&&re.hasOwnProperty("value");if(this.value=null!=(xt=je?re.value:re)?xt:null,je){const kt=Pe(re);delete kt.value,this.options=kt}else this.options={};var xt;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(re){const pe=re.params;if(pe){const je=this.options.params;Object.keys(pe).forEach(Mt=>{null==je[Mt]&&(je[Mt]=pe[Mt])})}}}const Rn="void",xr=new pn(Rn);class wi{constructor(re,pe,je){this.id=re,this.hostElement=pe,this._engine=je,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+re,rr(pe,this._hostClassName)}listen(re,pe,je,Mt){if(!this._triggers.hasOwnProperty(pe))throw new Error(`Unable to listen on the animation trigger event "${je}" because the animation trigger "${pe}" doesn't exist!`);if(null==je||0==je.length)throw new Error(`Unable to listen on the animation trigger "${pe}" because the provided event is undefined!`);if("start"!=(xt=je)&&"done"!=xt)throw new Error(`The provided animation trigger event "${je}" for the animation trigger "${pe}" is not supported!`);var xt;const kt=T(this._elementListeners,re,[]),Kt={name:pe,phase:je,callback:Mt};kt.push(Kt);const Jt=T(this._engine.statesByElement,re,{});return Jt.hasOwnProperty(pe)||(rr(re,x),rr(re,x+"-"+pe),Jt[pe]=xr),()=>{this._engine.afterFlush(()=>{const fi=kt.indexOf(Kt);fi>=0&&kt.splice(fi,1),this._triggers[pe]||delete Jt[pe]})}}register(re,pe){return!this._triggers[re]&&(this._triggers[re]=pe,!0)}_getTrigger(re){const pe=this._triggers[re];if(!pe)throw new Error(`The provided animation trigger "${re}" has not been registered!`);return pe}trigger(re,pe,je,Mt=!0){const kt=this._getTrigger(pe),Kt=new sn(this.id,pe,re);let Jt=this._engine.statesByElement.get(re);Jt||(rr(re,x),rr(re,x+"-"+pe),this._engine.statesByElement.set(re,Jt={}));let fi=Jt[pe];const Ai=new pn(je,this.id);if(!(je&&je.hasOwnProperty("value"))&&fi&&Ai.absorbOptions(fi.options),Jt[pe]=Ai,fi||(fi=xr),Ai.value!==Rn&&fi.value===Ai.value){if(!function(xt,re){const pe=Object.keys(xt),je=Object.keys(re);if(pe.length!=je.length)return!1;for(let Mt=0;Mt<pe.length;Mt++){const kt=pe[Mt];if(!re.hasOwnProperty(kt)||xt[kt]!==re[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(()=>{le(re,It),Ae(re,zt)})}return}const Cn=T(this._engine.playersByElement,re,[]);Cn.forEach(Et=>{Et.namespaceId==this.id&&Et.triggerName==pe&&Et.queued&&Et.destroy()});let In=kt.matchTransition(fi.value,Ai.value,re,Ai.params),tt=!1;if(!In){if(!Mt)return;In=kt.fallbackTransition,tt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:re,triggerName:pe,transition:In,fromState:fi,toState:Ai,player:Kt,isFallbackTransition:tt}),tt||(rr(re,at),Kt.onStart(()=>{ua(re,at)})),Kt.onDone(()=>{let Et=this.players.indexOf(Kt);Et>=0&&this.players.splice(Et,1);const It=this._engine.playersByElement.get(re);if(It){let zt=It.indexOf(Kt);zt>=0&&It.splice(zt,1)}}),this.players.push(Kt),Cn.push(Kt),Kt}deregister(re){delete this._triggers[re],this._engine.statesByElement.forEach((pe,je)=>{delete pe[re]}),this._elementListeners.forEach((pe,je)=>{this._elementListeners.set(je,pe.filter(Mt=>Mt.name!=re))})}clearElementCache(re){this._engine.statesByElement.delete(re),this._elementListeners.delete(re);const pe=this._engine.playersByElement.get(re);pe&&(pe.forEach(je=>je.destroy()),this._engine.playersByElement.delete(re))}_signalRemovalForInnerTriggers(re,pe){const je=this._engine.driver.query(re,r,!0);je.forEach(Mt=>{if(Mt[On])return;const kt=this._engine.fetchNamespacesByElement(Mt);kt.size?kt.forEach(Kt=>Kt.triggerLeaveAnimation(Mt,pe,!1,!0)):this.clearElementCache(Mt)}),this._engine.afterFlushAnimationsDone(()=>je.forEach(Mt=>this.clearElementCache(Mt)))}triggerLeaveAnimation(re,pe,je,Mt){const kt=this._engine.statesByElement.get(re);if(kt){const Kt=[];if(Object.keys(kt).forEach(Jt=>{if(this._triggers[Jt]){const fi=this.trigger(re,Jt,Rn,Mt);fi&&Kt.push(fi)}}),Kt.length)return this._engine.markElementAsRemoved(this.id,re,!0,pe),je&&C(Kt).onDone(()=>this._engine.processLeaveNode(re)),!0}return!1}prepareLeaveAnimationListeners(re){const pe=this._elementListeners.get(re),je=this._engine.statesByElement.get(re);if(pe&&je){const Mt=new Set;pe.forEach(kt=>{const Kt=kt.name;if(Mt.has(Kt))return;Mt.add(Kt);const fi=this._triggers[Kt].fallbackTransition,Ai=je[Kt]||xr,Zi=new pn(Rn),en=new sn(this.id,Kt,re);this._engine.totalQueuedPlayers++,this._queue.push({element:re,triggerName:Kt,transition:fi,fromState:Ai,toState:Zi,player:en,isFallbackTransition:!0})})}}removeNode(re,pe){const je=this._engine;if(re.childElementCount&&this._signalRemovalForInnerTriggers(re,pe),this.triggerLeaveAnimation(re,pe,!0))return;let Mt=!1;if(je.totalAnimations){const kt=je.players.length?je.playersByQueriedElement.get(re):[];if(kt&&kt.length)Mt=!0;else{let Kt=re;for(;Kt=Kt.parentNode;)if(je.statesByElement.get(Kt)){Mt=!0;break}}}if(this.prepareLeaveAnimationListeners(re),Mt)je.markElementAsRemoved(this.id,re,!1,pe);else{const kt=re[On];(!kt||kt===$i)&&(je.afterFlush(()=>this.clearElementCache(re)),je.destroyInnerAnimations(re),je._onRemovalComplete(re,pe))}}insertNode(re,pe){rr(re,this._hostClassName)}drainQueuedTransitions(re){const pe=[];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=O(kt,je.triggerName,je.fromState.value,je.toState.value);fi._data=re,R(je.player,Jt.phase,fi,Jt.callback)}}),Mt.markedForDestroy?this._engine.afterFlush(()=>{Mt.destroy()}):pe.push(je)}),this._queue=[],pe.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(re){this.players.forEach(pe=>pe.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,re)}elementContainsData(re){let pe=!1;return this._elementListeners.has(re)&&(pe=!0),pe=!!this._queue.find(je=>je.element===re)||pe,pe}}class Fi{constructor(re,pe,je){this.bodyNode=re,this.driver=pe,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(re,pe){this.onRemovalComplete(re,pe)}get queuedPlayers(){const re=[];return this._namespaceList.forEach(pe=>{pe.players.forEach(je=>{je.queued&&re.push(je)})}),re}createNamespace(re,pe){const je=new wi(re,pe,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,pe)?this._balanceNamespaceList(je,pe):(this.newHostElements.set(pe,je),this.collectEnterElement(pe)),this._namespaceLookup[re]=je}_balanceNamespaceList(re,pe){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,pe)){this._namespaceList.splice(kt+1,0,re),Mt=!0;break}Mt||this._namespaceList.splice(0,0,re)}else this._namespaceList.push(re);return this.namespacesByHostElement.set(pe,re),re}register(re,pe){let je=this._namespaceLookup[re];return je||(je=this.createNamespace(re,pe)),je}registerTrigger(re,pe,je){let Mt=this._namespaceLookup[re];Mt&&Mt.register(pe,je)&&this.totalAnimations++}destroy(re,pe){if(!re)return;const je=this._fetchNamespace(re);this.afterFlush(()=>{this.namespacesByHostElement.delete(je.hostElement),delete this._namespaceLookup[re];const Mt=this._namespaceList.indexOf(je);Mt>=0&&this._namespaceList.splice(Mt,1)}),this.afterFlushAnimationsDone(()=>je.destroy(pe))}_fetchNamespace(re){return this._namespaceLookup[re]}fetchNamespacesByElement(re){const pe=new Set,je=this.statesByElement.get(re);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&&pe.add(Jt)}}}return pe}trigger(re,pe,je,Mt){if(qn(pe)){const kt=this._fetchNamespace(re);if(kt)return kt.trigger(pe,je,Mt),!0}return!1}insertNode(re,pe,je,Mt){if(!qn(pe))return;const kt=pe[On];if(kt&&kt.setForRemoval){kt.setForRemoval=!1,kt.setForMove=!0;const Kt=this.collectedLeaveElements.indexOf(pe);Kt>=0&&this.collectedLeaveElements.splice(Kt,1)}if(re){const Kt=this._fetchNamespace(re);Kt&&Kt.insertNode(pe,je)}Mt&&this.collectEnterElement(pe)}collectEnterElement(re){this.collectedEnterElements.push(re)}markElementAsDisabled(re,pe){pe?this.disabledNodes.has(re)||(this.disabledNodes.add(re),rr(re,gt)):this.disabledNodes.has(re)&&(this.disabledNodes.delete(re),ua(re,gt))}removeNode(re,pe,je,Mt){if(qn(pe)){const kt=re?this._fetchNamespace(re):null;if(kt?kt.removeNode(pe,Mt):this.markElementAsRemoved(re,pe,!1,Mt),je){const Kt=this.namespacesByHostElement.get(pe);Kt&&Kt.id!==re&&Kt.removeNode(pe,Mt)}}else this._onRemovalComplete(pe,Mt)}markElementAsRemoved(re,pe,je,Mt){this.collectedLeaveElements.push(pe),pe[On]={namespaceId:re,setForRemoval:Mt,hasAnimation:je,removedBeforeQueried:!1}}listen(re,pe,je,Mt,kt){return qn(pe)?this._fetchNamespace(re).listen(pe,je,Mt,kt):()=>{}}_buildInstruction(re,pe,je,Mt,kt){return re.transition.build(this.driver,re.element,re.fromState.value,re.toState.value,je,Mt,re.fromState.options,re.toState.options,pe,kt)}destroyInnerAnimations(re){let pe=this.driver.query(re,r,!0);pe.forEach(je=>this.destroyActiveAnimationsForElement(je)),0!=this.playersByQueriedElement.size&&(pe=this.driver.query(re,J,!0),pe.forEach(je=>this.finishActiveQueriedAnimationOnElement(je)))}destroyActiveAnimationsForElement(re){const pe=this.playersByElement.get(re);pe&&pe.forEach(je=>{je.queued?je.markedForDestroy=!0:je.destroy()})}finishActiveQueriedAnimationOnElement(re){const pe=this.playersByQueriedElement.get(re);pe&&pe.forEach(je=>je.finish())}whenRenderingDone(){return new Promise(re=>{if(this.players.length)return C(this.players).onDone(()=>re());re()})}processLeaveNode(re){const pe=re[On];if(pe&&pe.setForRemoval){if(re[On]=$i,pe.namespaceId){this.destroyInnerAnimations(re);const je=this._fetchNamespace(pe.namespaceId);je&&je.clearElementCache(re)}this._onRemovalComplete(re,pe.setForRemoval)}this.driver.matchesElement(re,Lt)&&this.markElementAsDisabled(re,!1),this.driver.query(re,Lt,!0).forEach(je=>{this.markElementAsDisabled(je,!1)})}flush(re=-1){let pe=[];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{pe=this._flushAnimations(je,re)}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=[],pe.length?C(pe).onDone(()=>{je.forEach(Mt=>Mt())}):je.forEach(Mt=>Mt())}}reportError(re){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${re.join("\n")}`)}_flushAnimations(re,pe){const je=new Rt,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()),In=Va(Cn,this.collectedEnterElements),tt=new Map;let Et=0;In.forEach((Bi,an)=>{const fn=u+Et++;tt.set(an,fn),Bi.forEach(kn=>rr(kn,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(kn=>zt.add(kn)):ri.add(an))}const vi=new Map,Mi=Va(Cn,Array.from(zt));Mi.forEach((Bi,an)=>{const fn=_+Et++;vi.set(an,fn),Bi.forEach(kn=>rr(kn,fn))}),re.push(()=>{In.forEach((Bi,an)=>{const fn=tt.get(an);Bi.forEach(kn=>ua(kn,fn))}),Mi.forEach((Bi,an)=>{const fn=vi.get(an);Bi.forEach(kn=>ua(kn,fn))}),It.forEach(Bi=>{this.processLeaveNode(Bi)})});const Ei=[],ji=[];for(let Bi=this._namespaceList.length-1;Bi>=0;Bi--)this._namespaceList[Bi].drainQueuedTransitions(pe).forEach(fn=>{const kn=fn.player,Pn=fn.element;if(Ei.push(kn),this.collectedEnterElements.length){const La=Pn[On];if(La&&La.setForMove)return void kn.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 kn.onStart(()=>le(Pn,Wn.fromStyles)),kn.onDestroy(()=>Ae(Pn,Wn.toStyles)),void Mt.push(kn);if(fn.isFallbackTransition)return kn.onStart(()=>le(Pn,Wn.fromStyles)),kn.onDestroy(()=>Ae(Pn,Wn.toStyles)),void Mt.push(kn);Wn.timelines.forEach(La=>La.stretchStartingKeyframe=!0),je.append(Pn,Wn.timelines),Kt.push({instruction:Wn,player:kn,element:Pn}),Wn.queriedElements.forEach(La=>T(Jt,La,[]).push(kn)),Wn.preStyleProps.forEach((La,Rs)=>{const js=Object.keys(La);if(js.length){let Ma=fi.get(Rs);Ma||fi.set(Rs,Ma=new Set),js.forEach(vs=>Ma.add(vs))}}),Wn.postStyleProps.forEach((La,Rs)=>{const js=Object.keys(La);let Ma=Ai.get(Rs);Ma||Ai.set(Rs,Ma=new Set),js.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(kn=>{T(hn,an,[]).push(kn),kn.destroy()})});const Tn=It.filter(Bi=>Zr(Bi,fi,Ai)),Vn=new Map;xa(Vn,this.driver,ri,Ai,v.l3).forEach(Bi=>{Zr(Bi,fi,Ai)&&Tn.push(Bi)});const Or=new Map;In.forEach((Bi,an)=>{xa(Or,this.driver,new Set(Bi),fi,v.k1)}),Tn.forEach(Bi=>{const an=Vn.get(Bi),fn=Or.get(Bi);Vn.set(Bi,Object.assign(Object.assign({},an),fn))});const Ar=[],Yn=[],_r={};Kt.forEach(Bi=>{const{element:an,player:fn,instruction:kn}=Bi;if(je.has(an)){if(Zi.has(an))return fn.onDestroy(()=>Ae(an,kn.toStyles)),fn.disabled=!0,fn.overrideTotalTime(kn.totalTime),void Mt.push(fn);let Pn=_r;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,kn,hn,kt,Or,Vn);if(fn.setRealPlayer(Da),Pn===_r)Ar.push(fn);else{const Xr=this.playersByElement.get(Pn);Xr&&Xr.length&&(fn.parentPlayer=C(Xr)),Mt.push(fn)}}else le(an,kn.fromStyles),fn.onDestroy(()=>Ae(an,kn.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=C(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 kn=[];if(Jt.size){let Da=Jt.get(an);Da&&Da.length&&kn.push(...Da);let Xr=this.driver.query(an,J,!0);for(let ca=0;ca<Xr.length;ca++){let Wn=Jt.get(Xr[ca]);Wn&&Wn.length&&kn.push(...Wn)}}const Pn=kn.filter(Da=>!Da.destroyed);Pn.length?la(this,an,Pn):this.processLeaveNode(an)}return It.length=0,Ar.forEach(Bi=>{this.players.push(Bi),Bi.onDone(()=>{Bi.destroy();const an=this.players.indexOf(Bi);this.players.splice(an,1)}),Bi.play()}),Ar}elementContainsData(re,pe){let je=!1;const Mt=pe[On];return Mt&&Mt.setForRemoval&&(je=!0),this.playersByElement.has(pe)&&(je=!0),this.playersByQueriedElement.has(pe)&&(je=!0),this.statesByElement.has(pe)&&(je=!0),this._fetchNamespace(re).elementContainsData(pe)||je}afterFlush(re){this._flushFns.push(re)}afterFlushAnimationsDone(re){this._whenQuietFns.push(re)}_getPreviousPlayers(re,pe,je,Mt,kt){let Kt=[];if(pe){const Jt=this.playersByQueriedElement.get(re);Jt&&(Kt=Jt)}else{const Jt=this.playersByElement.get(re);if(Jt){const fi=!kt||kt==Rn;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(re,pe,je){const kt=pe.element,Kt=pe.isRemovalTransition?void 0:re,Jt=pe.isRemovalTransition?void 0:pe.triggerName;for(const fi of pe.timelines){const Ai=fi.element,Zi=Ai!==kt,en=T(je,Ai,[]);this._getPreviousPlayers(Ai,Zi,Kt,Jt,pe.toState).forEach(In=>{const tt=In.getRealPlayer();tt.beforeDestroy&&tt.beforeDestroy(),In.destroy(),en.push(In)})}le(kt,pe.fromStyles)}_buildAnimation(re,pe,je,Mt,kt,Kt){const Jt=pe.triggerName,fi=pe.element,Ai=[],Zi=new Set,en=new Set,Cn=pe.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(xt){const re=[];return Pa(xt,re),re}((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(re,Jt,Et);hn.setRealPlayer(ji),Ai.push(hn)}return ji});Ai.forEach(tt=>{T(this.playersByQueriedElement,tt.element,[]).push(tt),tt.onDone(()=>function(xt,re,pe){let je;if(xt instanceof Map){if(je=xt.get(re),je){if(je.length){const Mt=je.indexOf(pe);je.splice(Mt,1)}0==je.length&&xt.delete(re)}}else if(je=xt[re],je){if(je.length){const Mt=je.indexOf(pe);je.splice(Mt,1)}0==je.length&&delete xt[re]}return je}(this.playersByQueriedElement,tt.element,tt))}),Zi.forEach(tt=>rr(tt,b));const In=C(Cn);return In.onDestroy(()=>{Zi.forEach(tt=>ua(tt,b)),Ae(fi,pe.toStyles)}),en.forEach(tt=>{T(Mt,tt,[]).push(In)}),In}_buildPlayer(re,pe,je){return pe.length>0?this.driver.animate(re.element,pe,re.duration,re.delay,re.easing,je):new v.ZN(re.duration,re.delay)}}class sn{constructor(re,pe,je){this.namespaceId=re,this.triggerName=pe,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(re){this._containsRealPlayer||(this._player=re,Object.keys(this._queuedCallbacks).forEach(pe=>{this._queuedCallbacks[pe].forEach(je=>R(re,pe,void 0,je))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(re.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(re){this.totalTime=re}syncPlayerEvents(re){const pe=this._player;pe.triggerCallback&&re.onStart(()=>pe.triggerCallback("start")),re.onDone(()=>this.finish()),re.onDestroy(()=>this.destroy())}_queueEvent(re,pe){T(this._queuedCallbacks,re,[]).push(pe)}onDone(re){this.queued&&this._queueEvent("done",re),this._player.onDone(re)}onStart(re){this.queued&&this._queueEvent("start",re),this._player.onStart(re)}onDestroy(re){this.queued&&this._queueEvent("destroy",re),this._player.onDestroy(re)}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(re){this.queued||this._player.setPosition(re)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(re){const pe=this._player;pe.triggerCallback&&pe.triggerCallback(re)}}function qn(xt){return xt&&1===xt.nodeType}function ba(xt,re){const pe=xt.style.display;return xt.style.display=null!=re?re:"none",pe}function xa(xt,re,pe,je,Mt){const kt=[];pe.forEach(fi=>kt.push(ba(fi)));const Kt=[];je.forEach((fi,Ai)=>{const Zi={};fi.forEach(en=>{const Cn=Zi[en]=re.computeStyle(Ai,en,Mt);(!Cn||0==Cn.length)&&(Ai[On]=An,Kt.push(Ai))}),xt.set(Ai,Zi)});let Jt=0;return pe.forEach(fi=>ba(fi,kt[Jt++])),Kt}function Va(xt,re){const pe=new Map;if(xt.forEach(Jt=>pe.set(Jt,[])),0==re.length)return pe;const Mt=new Set(re),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=pe.has(Ai)?Ai:Mt.has(Ai)?1:Kt(Ai),kt.set(Jt,fi),fi}return re.forEach(Jt=>{const fi=Kt(Jt);1!==fi&&pe.get(fi).push(Jt)}),pe}const zr="$$classes";function rr(xt,re){if(xt.classList)xt.classList.add(re);else{let pe=xt[zr];pe||(pe=xt[zr]={}),pe[re]=!0}}function ua(xt,re){if(xt.classList)xt.classList.remove(re);else{let pe=xt[zr];pe&&delete pe[re]}}function la(xt,re,pe){C(pe).onDone(()=>xt.processLeaveNode(re))}function Pa(xt,re){for(let pe=0;pe<xt.length;pe++){const je=xt[pe];je instanceof v.ZE?Pa(je.players,re):re.push(je)}}function Zr(xt,re,pe){const je=pe.get(xt);if(!je)return!1;let Mt=re.get(xt);return Mt?je.forEach(kt=>Mt.add(kt)):re.set(xt,je),pe.delete(xt),!0}class Qr{constructor(re,pe,je){this.bodyNode=re,this._driver=pe,this._normalizer=je,this._triggerCache={},this.onRemovalComplete=(Mt,kt)=>{},this._transitionEngine=new Fi(re,pe,je),this._timelineEngine=new Ki(re,pe,je),this._transitionEngine.onRemovalComplete=(Mt,kt)=>this.onRemovalComplete(Mt,kt)}registerTrigger(re,pe,je,Mt,kt){const Kt=re+"-"+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(xt,re,pe){return new Pt(xt,re,pe)}(Mt,Ai,this._normalizer),this._triggerCache[Kt]=Jt}this._transitionEngine.registerTrigger(pe,Mt,Jt)}register(re,pe){this._transitionEngine.register(re,pe)}destroy(re,pe){this._transitionEngine.destroy(re,pe)}onInsert(re,pe,je,Mt){this._transitionEngine.insertNode(re,pe,je,Mt)}onRemove(re,pe,je,Mt){this._transitionEngine.removeNode(re,pe,Mt||!1,je)}disableAnimations(re,pe){this._transitionEngine.markElementAsDisabled(re,pe)}process(re,pe,je,Mt){if("@"==je.charAt(0)){const[kt,Kt]=P(je);this._timelineEngine.command(kt,pe,Kt,Mt)}else this._transitionEngine.trigger(re,pe,je,Mt)}listen(re,pe,je,Mt,kt){if("@"==je.charAt(0)){const[Kt,Jt]=P(je);return this._timelineEngine.listen(Kt,pe,Jt,kt)}return this._transitionEngine.listen(re,pe,je,Mt,kt)}flush(re=-1){this._transitionEngine.flush(re)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Cr(xt,re){let pe=null,je=null;return Array.isArray(re)&&re.length?(pe=Kn(re[0]),re.length>1&&(je=Kn(re[re.length-1]))):re&&(pe=Kn(re)),pe||je?new _n(xt,pe,je):null}let _n=(()=>{class xt{constructor(pe,je,Mt){this._element=pe,this._startStyles=je,this._endStyles=Mt,this._state=0;let kt=xt.initialStylesByElement.get(pe);kt||xt.initialStylesByElement.set(pe,kt={}),this._initialStyles=kt}start(){this._state<1&&(this._startStyles&&Ae(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ae(this._element,this._initialStyles),this._endStyles&&(Ae(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(xt.initialStylesByElement.delete(this._element),this._startStyles&&(le(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(le(this._element,this._endStyles),this._endStyles=null),Ae(this._element,this._initialStyles),this._state=3)}}return xt.initialStylesByElement=new WeakMap,xt})();function Kn(xt){let re=null;const pe=Object.keys(xt);for(let je=0;je<pe.length;je++){const Mt=pe[je];Dr(Mt)&&(re=re||{},re[Mt]=xt[Mt])}return re}function Dr(xt){return"display"===xt||"position"===xt}const Ga="animation",Pr="animationend";class Ca{constructor(re,pe,je,Mt,kt,Kt,Jt){this._element=re,this._name=pe,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(xt,re){const pe=na(xt,"").trim();let je=0;pe.length&&(function(xt,re){let pe=0;for(let je=0;je<xt.length;je++)","===xt.charAt(je)&&pe++;return pe}(pe)+1,re=`${pe}, ${re}`),Rr(xt,"",re)})(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(re){const pe=dr(this._element,this._name);this._position=re*this._duration,Rr(this._element,"Delay",`-${this._position}ms`,pe)}getPosition(){return this._position}_handleCallback(re){const pe=re._ngTestManualTimestamp||Date.now(),je=1e3*parseFloat(re.elapsedTime.toFixed(3));re.animationName==this._name&&Math.max(pe-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(xt,re){const je=na(xt,"").split(","),Mt=ia(je,re);Mt>=0&&(je.splice(Mt,1),Rr(xt,"",je.join(",")))}(this._element,this._name))}}function Vr(xt,re,pe){Rr(xt,"PlayState",pe,dr(xt,re))}function dr(xt,re){const pe=na(xt,"");return pe.indexOf(",")>0?ia(pe.split(","),re):ia([pe],re)}function ia(xt,re){for(let pe=0;pe<xt.length;pe++)if(xt[pe].indexOf(re)>=0)return pe;return-1}function Sa(xt,re,pe){pe?xt.removeEventListener(Pr,re):xt.addEventListener(Pr,re)}function Rr(xt,re,pe,je){const Mt=Ga+re;if(null!=je){const kt=xt.style[Mt];if(kt.length){const Kt=kt.split(",");Kt[je]=pe,pe=Kt.join(",")}}xt.style[Mt]=pe}function na(xt,re){return xt.style[Ga+re]||""}class mr{constructor(re,pe,je,Mt,kt,Kt,Jt,fi){this.element=re,this.keyframes=pe,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(re){this._onStartFns.push(re)}onDone(re){this._onDoneFns.push(re)}onDestroy(re){this._onDestroyFns.push(re)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(re=>re()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(re=>re()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(re=>re()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(re){this._styler.setPosition(re)}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(re){const pe="start"==re?this._onStartFns:this._onDoneFns;pe.forEach(je=>je()),pe.length=0}beforeDestroy(){this.init();const re={};if(this.hasStarted()){const pe=this._state>=3;Object.keys(this._finalStyles).forEach(je=>{"offset"!=je&&(re[je]=pe?this._finalStyles[je]:ht(this.element,je))})}this.currentSnapshot=re}}class fa extends v.ZN{constructor(re,pe){super(),this.element=re,this._startingStyles={},this.__initialized=!1,this._styles=se(pe)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(re=>{this._startingStyles[re]=this.element.style[re]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(re=>this.element.style.setProperty(re,this._styles[re])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(re=>{const pe=this._startingStyles[re];pe?this.element.style.setProperty(re,pe):this.element.style.removeProperty(re)}),this._startingStyles=null,super.destroy())}}class Zn{constructor(){this._count=0}validateStyleProperty(re){return ie(re)}matchesElement(re,pe){return fe(re,pe)}containsElement(re,pe){return de(re,pe)}query(re,pe,je){return ne(re,pe,je)}computeStyle(re,pe,je){return window.getComputedStyle(re)[pe]}buildKeyframeElement(re,pe,je){je=je.map(Jt=>se(Jt));let Mt=`@keyframes ${pe} {\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(re,pe,je,Mt,kt,Kt=[],Jt){const fi=Kt.filter(It=>It instanceof mr),Ai={};he(je,Mt)&&fi.forEach(It=>{let zt=It.currentSnapshot;Object.keys(zt).forEach(ri=>Ai[ri]=zt[ri])});const Zi=function(xt){let re={};return xt&&(Array.isArray(xt)?xt:[xt]).forEach(je=>{Object.keys(je).forEach(Mt=>{"offset"==Mt||"easing"==Mt||(re[Mt]=je[Mt])})}),re}(pe=Me(re,pe,Ai));if(0==je)return new fa(re,Zi);const en="gen_css_kf_"+this._count++,Cn=this.buildKeyframeElement(re,en,pe);(function(xt){var re;const pe=null===(re=xt.getRootNode)||void 0===re?void 0:re.call(xt);return"undefined"!=typeof ShadowRoot&&pe instanceof ShadowRoot?pe:document.head})(re).appendChild(Cn);const tt=Cr(re,pe),Et=new mr(re,pe,en,je,Mt,kt,Zi,tt);return Et.onDestroy(()=>{var xt;(xt=Cn).parentNode.removeChild(xt)}),Et}}class ae{constructor(re,pe,je,Mt){this.element=re,this.keyframes=pe,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(re=>re()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const re=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,re,this.options),this._finalKeyframe=re.length?re[re.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(re,pe,je){return re.animate(pe,je)}onStart(re){this._onStartFns.push(re)}onDone(re){this._onDoneFns.push(re)}onDestroy(re){this._onDestroyFns.push(re)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(re=>re()),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(re=>re()),this._onDestroyFns=[])}setPosition(re){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=re*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const re={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(pe=>{"offset"!=pe&&(re[pe]=this._finished?this._finalKeyframe[pe]:ht(this.element,pe))}),this.currentSnapshot=re}triggerCallback(re){const pe="start"==re?this._onStartFns:this._onDoneFns;pe.forEach(je=>je()),pe.length=0}}class Qe{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(mi().toString()),this._cssKeyframesDriver=new Zn}validateStyleProperty(re){return ie(re)}matchesElement(re,pe){return fe(re,pe)}containsElement(re,pe){return de(re,pe)}query(re,pe,je){return ne(re,pe,je)}computeStyle(re,pe,je){return window.getComputedStyle(re)[pe]}overrideWebAnimationsSupport(re){this._isNativeImpl=re}animate(re,pe,je,Mt,kt,Kt=[],Jt){if(!Jt&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(re,pe,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 ae);he(je,Mt)&&Cn.forEach(tt=>{let Et=tt.currentSnapshot;Object.keys(Et).forEach(It=>en[It]=Et[It])});const In=Cr(re,pe=Me(re,pe=pe.map(tt=>q(tt,!1)),en));return new ae(re,pe,Zi,In)}}function mi(){return M()&&Element.prototype.animate||{}}var Ct=m(9808);let ei=(()=>{class xt extends v._j{constructor(pe,je){super(),this._nextAnimationId=0,this._renderer=pe.createRenderer(je.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(pe){const je=this._nextAnimationId.toString();this._nextAnimationId++;const Mt=Array.isArray(pe)?(0,v.vP)(pe):pe;return xi(this._renderer,null,je,"register",[Mt]),new bt(je,this._renderer)}}return xt.\u0275fac=function(pe){return new(pe||xt)(e.LFG(e.FYo),e.LFG(Ct.K0))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();class bt extends v.LC{constructor(re,pe){super(),this._id=re,this._renderer=pe}create(re,pe){return new Wt(this._id,re,pe||{},this._renderer)}}class Wt{constructor(re,pe,je,Mt){this.id=re,this.element=pe,this._renderer=Mt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",je)}_listen(re,pe){return this._renderer.listen(this.element,`@@${this.id}:${re}`,pe)}_command(re,...pe){return xi(this._renderer,this.element,this.id,re,pe)}onDone(re){this._listen("done",re)}onStart(re){this._listen("start",re)}onDestroy(re){this._listen("destroy",re)}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(re){this._command("setPosition",re)}getPosition(){var re,pe;return null!==(pe=null===(re=this._renderer.engine.players[+this.id])||void 0===re?void 0:re.getPosition())&&void 0!==pe?pe:0}}function xi(xt,re,pe,je,Mt){return xt.setProperty(re,`@@${pe}:${je}`,Mt)}const vn="@.disabled";let wn=(()=>{class xt{constructor(pe,je,Mt){this.delegate=pe,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(pe,je){const kt=this.delegate.createRenderer(pe,je);if(!(pe&&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,pe);const fi=Zi=>{Array.isArray(Zi)?Zi.forEach(fi):this.engine.registerTrigger(Kt,Jt,pe,Zi.name,Zi)};return je.data.animation.forEach(fi),new gr(this,Jt,kt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(pe,je,Mt){pe>=0&&pe<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 xt.\u0275fac=function(pe){return new(pe||xt)(e.LFG(e.FYo),e.LFG(Qr),e.LFG(e.R0b))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();class Qi{constructor(re,pe,je){this.namespaceId=re,this.delegate=pe,this.engine=je,this.destroyNode=this.delegate.destroyNode?Mt=>pe.destroyNode(Mt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(re,pe){return this.delegate.createElement(re,pe)}createComment(re){return this.delegate.createComment(re)}createText(re){return this.delegate.createText(re)}appendChild(re,pe){this.delegate.appendChild(re,pe),this.engine.onInsert(this.namespaceId,pe,re,!1)}insertBefore(re,pe,je,Mt=!0){this.delegate.insertBefore(re,pe,je),this.engine.onInsert(this.namespaceId,pe,re,Mt)}removeChild(re,pe,je){this.engine.onRemove(this.namespaceId,pe,this.delegate,je)}selectRootElement(re,pe){return this.delegate.selectRootElement(re,pe)}parentNode(re){return this.delegate.parentNode(re)}nextSibling(re){return this.delegate.nextSibling(re)}setAttribute(re,pe,je,Mt){this.delegate.setAttribute(re,pe,je,Mt)}removeAttribute(re,pe,je){this.delegate.removeAttribute(re,pe,je)}addClass(re,pe){this.delegate.addClass(re,pe)}removeClass(re,pe){this.delegate.removeClass(re,pe)}setStyle(re,pe,je,Mt){this.delegate.setStyle(re,pe,je,Mt)}removeStyle(re,pe,je){this.delegate.removeStyle(re,pe,je)}setProperty(re,pe,je){"@"==pe.charAt(0)&&pe==vn?this.disableAnimations(re,!!je):this.delegate.setProperty(re,pe,je)}setValue(re,pe){this.delegate.setValue(re,pe)}listen(re,pe,je){return this.delegate.listen(re,pe,je)}disableAnimations(re,pe){this.engine.disableAnimations(re,pe)}}class gr extends Qi{constructor(re,pe,je,Mt){super(pe,je,Mt),this.factory=re,this.namespaceId=pe}setProperty(re,pe,je){"@"==pe.charAt(0)?"."==pe.charAt(1)&&pe==vn?this.disableAnimations(re,je=void 0===je||!!je):this.engine.process(this.namespaceId,re,pe.substr(1),je):this.delegate.setProperty(re,pe,je)}listen(re,pe,je){if("@"==pe.charAt(0)){const Mt=function(xt){switch(xt){case"body":return document.body;case"document":return document;case"window":return window;default:return xt}}(re);let kt=pe.substr(1),Kt="";return"@"!=kt.charAt(0)&&([kt,Kt]=function(xt){const re=xt.indexOf(".");return[xt.substring(0,re),xt.substr(re+1)]}(kt)),this.engine.listen(this.namespaceId,Mt,kt,Kt,Jt=>{this.factory.scheduleListenerCallback(Jt._data||-1,je,Jt)})}return this.delegate.listen(re,pe,je)}}let ma=(()=>{class xt extends Qr{constructor(pe,je,Mt){super(pe.body,je,Mt)}ngOnDestroy(){this.flush()}}return xt.\u0275fac=function(pe){return new(pe||xt)(e.LFG(Ct.K0),e.LFG(y),e.LFG(Vi))},xt.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac}),xt})();const ki=new e.OlP("AnimationModuleType"),Nn=[{provide:v._j,useClass:ei},{provide:Vi,useFactory:function(){return new Xi}},{provide:Qr,useClass:ma},{provide:e.FYo,useFactory:function(xt,re,pe){return new wn(xt,re,pe)},deps:[t.se,Qr,e.R0b]}],fs=[{provide:y,useFactory:function(){return"function"==typeof mi()?new Qe:new Zn}},{provide:ki,useValue:"BrowserAnimations"},...Nn],cr=[{provide:y,useClass:oe},{provide:ki,useValue:"NoopAnimations"},...Nn];let Ys=(()=>{class xt{static withConfig(pe){return{ngModule:xt,providers:pe.disableAnimations?cr:fs}}}return xt.\u0275fac=function(pe){return new(pe||xt)},xt.\u0275mod=e.oAB({type:xt}),xt.\u0275inj=e.cJS({providers:fs,imports:[t.b2]}),xt})()},2313:(Ue,K,m)=>{"use strict";m.d(K,{b2:()=>yt,H7:()=>$t,t6:()=>et,q6:()=>le,se:()=>u});var e=m(9808),t=m(5e3);class v extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends v{static makeCurrent(){(0,e.HT)(new M)}onAndCancel(Be,rt,ot){return Be.addEventListener(rt,ot,!1),()=>{Be.removeEventListener(rt,ot,!1)}}dispatchEvent(Be,rt){Be.dispatchEvent(rt)}remove(Be){Be.parentNode&&Be.parentNode.removeChild(Be)}createElement(Be,rt){return(rt=rt||this.getDefaultDocument()).createElement(Be)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Be){return Be.nodeType===Node.ELEMENT_NODE}isShadowRoot(Be){return Be instanceof DocumentFragment}getGlobalEventTarget(Be,rt){return"window"===rt?window:"document"===rt?Be:"body"===rt?Be.body:null}getBaseHref(Be){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 Be=c.pathname;return"/"===Be.charAt(0)?Be:`/${Be}`}(rt)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(Be){return(0,e.Mx)(document.cookie,Be)}}let c,s=null;const o=new t.OlP("TRANSITION_ID"),T=[{provide:t.ip1,useFactory:function(Re,Be,rt){return()=>{rt.get(t.CZH).donePromise.then(()=>{const ot=(0,e.q)(),At=Be.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 P{static init(){(0,t.VLi)(new P)}addToWindow(Be){t.dqk.getAngularTestability=(ot,At=!0)=>{const li=Be.findTestabilityInTree(ot,At);if(null==li)throw new Error("Could not find testability for element.");return li},t.dqk.getAllAngularTestabilities=()=>Be.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>Be.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(Be,rt,ot){if(null==rt)return null;const At=Be.getTestability(rt);return null!=At?At:ot?(0,e.q)().isShadowRoot(rt)?this.findTestabilityInTree(Be,rt.host,!0):this.findTestabilityInTree(Be,rt.parentElement,!0):null}}let S=(()=>{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 D=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(D),t.LFG(t.R0b))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class U{constructor(Be){this._doc=Be}addGlobalEventListener(Be,rt,ot){const At=(0,e.q)().getGlobalEventTarget(this._doc,Be);if(!At)throw new Error(`Unsupported event target ${At} for event ${rt}`);return this.addEventListener(At,rt,ot)}}let G=(()=>{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})(),W=(()=>{class Re extends G{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(ee),this._hostNodes.delete(rt)}onStylesAdded(rt){this._hostNodes.forEach((ot,At)=>{this._addStylesToHost(rt,At,ot)})}ngOnDestroy(){this._hostNodes.forEach(rt=>rt.forEach(ee))}}return Re.\u0275fac=function(rt){return new(rt||Re)(t.LFG(e.K0))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function ee(Re){(0,e.q)().remove(Re)}const ie={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/"},_e=/%COMP%/g;function i(Re,Be,rt){for(let ot=0;ot<Be.length;ot++){let At=Be[ot];Array.isArray(At)?i(Re,At,rt):(At=At.replace(_e,Re),rt.push(At))}return rt}function a(Re){return Be=>{if("__ngUnwrap__"===Be)return Re;!1===Re(Be)&&(Be.preventDefault(),Be.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(W),t.LFG(t.AFp))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class _{constructor(Be){this.eventManager=Be,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Be,rt){return rt?document.createElementNS(ie[rt]||rt,Be):document.createElement(Be)}createComment(Be){return document.createComment(Be)}createText(Be){return document.createTextNode(Be)}appendChild(Be,rt){Be.appendChild(rt)}insertBefore(Be,rt,ot){Be&&Be.insertBefore(rt,ot)}removeChild(Be,rt){Be&&Be.removeChild(rt)}selectRootElement(Be,rt){let ot="string"==typeof Be?document.querySelector(Be):Be;if(!ot)throw new Error(`The selector "${Be}" did not match any elements`);return rt||(ot.textContent=""),ot}parentNode(Be){return Be.parentNode}nextSibling(Be){return Be.nextSibling}setAttribute(Be,rt,ot,At){if(At){rt=At+":"+rt;const li=ie[At];li?Be.setAttributeNS(li,rt,ot):Be.setAttribute(rt,ot)}else Be.setAttribute(rt,ot)}removeAttribute(Be,rt,ot){if(ot){const At=ie[ot];At?Be.removeAttributeNS(At,rt):Be.removeAttribute(`${ot}:${rt}`)}else Be.removeAttribute(rt)}addClass(Be,rt){Be.classList.add(rt)}removeClass(Be,rt){Be.classList.remove(rt)}setStyle(Be,rt,ot,At){At&(t.JOm.DashCase|t.JOm.Important)?Be.style.setProperty(rt,ot,At&t.JOm.Important?"important":""):Be.style[rt]=ot}removeStyle(Be,rt,ot){ot&t.JOm.DashCase?Be.style.removeProperty(rt):Be.style[rt]=""}setProperty(Be,rt,ot){Be[rt]=ot}setValue(Be,rt){Be.nodeValue=rt}listen(Be,rt,ot){return"string"==typeof Be?this.eventManager.addGlobalEventListener(Be,rt,a(ot)):this.eventManager.addEventListener(Be,rt,a(ot))}}class x extends _{constructor(Be,rt,ot,At){super(Be),this.component=ot;const li=i(At+"-"+ot.id,ot.styles,[]);rt.addStyles(li),this.contentAttr="_ngcontent-%COMP%".replace(_e,At+"-"+ot.id),this.hostAttr="_nghost-%COMP%".replace(_e,At+"-"+ot.id)}applyToHost(Be){super.setAttribute(Be,this.hostAttr,"")}createElement(Be,rt){const ot=super.createElement(Be,rt);return super.setAttribute(ot,this.contentAttr,""),ot}}class r extends _{constructor(Be,rt,ot,At){super(Be),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(Be){return Be===this.hostEl?this.shadowRoot:Be}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Be,rt){return super.appendChild(this.nodeOrShadowRoot(Be),rt)}insertBefore(Be,rt,ot){return super.insertBefore(this.nodeOrShadowRoot(Be),rt,ot)}removeChild(Be,rt){return super.removeChild(this.nodeOrShadowRoot(Be),rt)}parentNode(Be){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Be)))}}let b=(()=>{class Re extends U{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 J=["alt","control","meta","shift"],B={"\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"},te={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 Pe=(()=>{class Re extends U{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(J.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 Be=Re.key;if(null==Be){if(Be=Re.keyIdentifier,null==Be)return"Unidentified";Be.startsWith("U+")&&(Be=String.fromCharCode(parseInt(Be.substring(2),16)),3===Re.location&&te.hasOwnProperty(Be)&&(Be=te[Be]))}return B[Be]||Be}(rt);return At=At.toLowerCase()," "===At?At="space":"."===At&&(At="dot"),J.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 le=(0,t.eFA)(t._c5,"browser",[{provide:t.Lbi,useValue:e.bD},{provide:t.g9A,useValue:function(){M.makeCurrent(),P.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:D,useClass:b,multi:!0,deps:[e.K0,t.R0b,t.Lbi]},{provide:D,useClass:Pe,multi:!0,deps:[e.K0]},{provide:u,useClass:u,deps:[w,W,t.AFp]},{provide:t.FYo,useExisting:u},{provide:G,useExisting:W},{provide:W,useClass:W,deps:[e.K0]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b]},{provide:w,useClass:w,deps:[D,t.R0b]},{provide:e.JF,useClass:S,deps:[]}];let yt=(()=>{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},T]}}}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 He={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},Se=new t.OlP("HammerGestureConfig"),V=new t.OlP("HammerLoader");let ve=(()=>{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})(),Ee=(()=>{class Re extends U{constructor(rt,ot,At,li){super(rt),this._config=ot,this.console=At,this.loader=li,this._loaderPromise=null}supports(rt){return!(!He.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(Se),t.LFG(t.c2e),t.LFG(V,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:D,useClass:Ee,multi:!0,deps:[e.K0,Se,t.c2e,[new t.FiY,V]]},{provide:Se,useClass:ve,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:(Ue,K,m)=>{"use strict";m.d(K,{gz:()=>at,gk:()=>te,m2:()=>B,Q3:()=>xe,OD:()=>F,Av:()=>we,F0:()=>Pn,rH:()=>ca,Od:()=>La,yS:()=>Wn,Bz:()=>e1,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 M=m(8306),s=m(727),C=m(4482),c=m(5403);function R(){return(0,C.e)((Ge,De)=>{let Ce=null;Ge._refCount++;const Je=new c.Q(De,void 0,void 0,void 0,()=>{if(!Ge||Ge._refCount<=0||0<--Ge._refCount)return void(Ce=null);const ct=Ge._connection,Ot=Ce;Ce=null,ct&&(!Ot||ct===Ot)&&ct.unsubscribe(),De.unsubscribe()});Ge.subscribe(Je),Je.closed||(Ce=Ge.connect())})}class o extends M.y{constructor(De,Ce){super(),this.source=De,this.subjectFactory=Ce,this._subject=null,this._refCount=0,this._connection=null,(0,C.A)(De)&&(this.lift=De.lift)}_subscribe(De){return this.getSubject().subscribe(De)}getSubject(){const De=this._subject;return(!De||De.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:De}=this;this._subject=this._connection=null,null==De||De.unsubscribe()}connect(){let De=this._connection;if(!De){De=this._connection=new s.w0;const Ce=this.getSubject();De.add(this.source.subscribe(new c.Q(Ce,void 0,()=>{this._teardown(),Ce.complete()},Je=>{this._teardown(),Ce.error(Je)},()=>this._teardown()))),De.closed&&(this._connection=null,De=s.w0.EMPTY)}return De}refCount(){return R()(this)}}var O=m(457),T=m(9646),P=m(1135),S=m(9841),D=m(7272),w=m(9770),U=m(515),G=m(7579),W=m(9300);function ee(Ge){return Ge<=0?()=>U.E:(0,C.e)((De,Ce)=>{let Je=[];De.subscribe(new c.Q(Ce,ct=>{Je.push(ct),Ge<Je.length&&Je.shift()},()=>{for(const ct of Je)Ce.next(ct);Ce.complete()},void 0,()=>{Je=null}))})}function ie(Ge=_e){return(0,C.e)((De,Ce)=>{let Je=!1;De.subscribe(new c.Q(Ce,ct=>{Je=!0,Ce.next(ct)},()=>Je?Ce.complete():Ce.error(Ge())))})}function _e(){return new v}function fe(Ge){return(0,C.e)((De,Ce)=>{let Je=!1;De.subscribe(new c.Q(Ce,ct=>{Je=!0,Ce.next(ct)},()=>{Je||Ce.next(Ge),Ce.complete()}))})}var de=m(4671),se=m(5698);function oe(Ge,De){const Ce=arguments.length>=2;return Je=>Je.pipe(Ge?(0,W.h)((ct,Ot)=>Ge(ct,Ot,Je)):de.y,(0,se.q)(1),Ce?fe(De):ie(()=>new v))}var y=m(4004),i=m(3900),a=m(8675),p=m(5026),u=m(262),_=m(4351),L=m(5577),I=m(8505),x=m(8746),r=m(8189),b=m(9808);class J{constructor(De,Ce){this.id=De,this.url=Ce}}class F extends J{constructor(De,Ce,Je="imperative",ct=null){super(De,Ce),this.navigationTrigger=Je,this.restoredState=ct}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class B extends J{constructor(De,Ce,Je){super(De,Ce),this.urlAfterRedirects=Je}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class te extends J{constructor(De,Ce,Je){super(De,Ce),this.reason=Je}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class xe extends J{constructor(De,Ce,Je){super(De,Ce),this.error=Je}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Pe extends J{constructor(De,Ce,Je,ct){super(De,Ce),this.urlAfterRedirects=Je,this.state=ct}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fe extends J{constructor(De,Ce,Je,ct){super(De,Ce),this.urlAfterRedirects=Je,this.state=ct}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class q extends J{constructor(De,Ce,Je,ct,Ot){super(De,Ce),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 j extends J{constructor(De,Ce,Je,ct){super(De,Ce),this.urlAfterRedirects=Je,this.state=ct}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class we extends J{constructor(De,Ce,Je,ct){super(De,Ce),this.urlAfterRedirects=Je,this.state=ct}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ae{constructor(De){this.route=De}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class le{constructor(De){this.route=De}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class We{constructor(De){this.snapshot=De}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yt{constructor(De){this.snapshot=De}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ne{constructor(De){this.snapshot=De}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ve{constructor(De){this.snapshot=De}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ue{constructor(De,Ce,Je){this.routerEvent=De,this.position=Ce,this.anchor=Je}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Te="primary";class ke{constructor(De){this.params=De||{}}has(De){return Object.prototype.hasOwnProperty.call(this.params,De)}get(De){if(this.has(De)){const Ce=this.params[De];return Array.isArray(Ce)?Ce[0]:Ce}return null}getAll(De){if(this.has(De)){const Ce=this.params[De];return Array.isArray(Ce)?Ce:[Ce]}return[]}get keys(){return Object.keys(this.params)}}function Y(Ge){return new ke(Ge)}const X="ngNavigationCancelingError";function he(Ge){const De=Error("NavigationCancelingError: "+Ge);return De[X]=!0,De}function ze(Ge,De,Ce){const Je=Ce.path.split("/");if(Je.length>Ge.length||"full"===Ce.pathMatch&&(De.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,De){const Ce=Ge?Object.keys(Ge):void 0,Je=De?Object.keys(De):void 0;if(!Ce||!Je||Ce.length!=Je.length)return!1;let ct;for(let Ot=0;Ot<Ce.length;Ot++)if(ct=Ce[Ot],!ft(Ge[ct],De[ct]))return!1;return!0}function ft(Ge,De){if(Array.isArray(Ge)&&Array.isArray(De)){if(Ge.length!==De.length)return!1;const Ce=[...Ge].sort(),Je=[...De].sort();return Ce.every((ct,Ot)=>Je[Ot]===ct)}return Ge===De}function nt(Ge){return Array.prototype.concat.apply([],Ge)}function st(Ge){return Ge.length>0?Ge[Ge.length-1]:null}function Bt(Ge,De){for(const Ce in Ge)Ge.hasOwnProperty(Ce)&&De(Ge[Ce],Ce)}function Nt(Ge){return(0,e.CqO)(Ge)?Ge:(0,e.QGY)(Ge)?(0,O.D)(Promise.resolve(Ge)):(0,T.of)(Ge)}const Oi={exact:function si(Ge,De,Ce){if(!Rt(Ge.segments,De.segments)||!V(Ge.segments,De.segments,Ce)||Ge.numberOfChildren!==De.numberOfChildren)return!1;for(const Je in De.children)if(!Ge.children[Je]||!si(Ge.children[Je],De.children[Je],Ce))return!1;return!0},subset:He},jt={exact:function(Ge,De){return it(Ge,De)},subset:function(Ge,De){return Object.keys(De).length<=Object.keys(Ge).length&&Object.keys(De).every(Ce=>ft(Ge[Ce],De[Ce]))},ignored:()=>!0};function ti(Ge,De,Ce){return Oi[Ce.paths](Ge.root,De.root,Ce.matrixParams)&&jt[Ce.queryParams](Ge.queryParams,De.queryParams)&&!("exact"===Ce.fragment&&Ge.fragment!==De.fragment)}function He(Ge,De,Ce){return Se(Ge,De,De.segments,Ce)}function Se(Ge,De,Ce,Je){if(Ge.segments.length>Ce.length){const ct=Ge.segments.slice(0,Ce.length);return!(!Rt(ct,Ce)||De.hasChildren()||!V(ct,Ce,Je))}if(Ge.segments.length===Ce.length){if(!Rt(Ge.segments,Ce)||!V(Ge.segments,Ce,Je))return!1;for(const ct in De.children)if(!Ge.children[ct]||!He(Ge.children[ct],De.children[ct],Je))return!1;return!0}{const ct=Ce.slice(0,Ge.segments.length),Ot=Ce.slice(Ge.segments.length);return!!(Rt(Ge.segments,ct)&&V(Ge.segments,ct,Je)&&Ge.children[Te])&&Se(Ge.children[Te],De,Ot,Je)}}function V(Ge,De,Ce){return De.every((Je,ct)=>jt[Ce](Ge[ct].parameters,Je.parameters))}class ve{constructor(De,Ce,Je){this.root=De,this.queryParams=Ce,this.fragment=Je}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Y(this.queryParams)),this._queryParamMap}toString(){return Be.serialize(this)}}class Ee{constructor(De,Ce){this.segments=De,this.children=Ce,this.parent=null,Bt(Ce,(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(De,Ce){this.path=De,this.parameters=Ce}get parameterMap(){return this._parameterMap||(this._parameterMap=Y(this.parameters)),this._parameterMap}toString(){return ci(this)}}function Rt(Ge,De){return Ge.length===De.length&&Ge.every((Ce,Je)=>Ce.path===De[Je].path)}class lt{}class Re{parse(De){const Ce=new vt(De);return new ve(Ce.parseRootSegment(),Ce.parseQueryParams(),Ce.parseFragment())}serialize(De){const Ce=`/${ot(De.root,!0)}`,Je=function(Ge){const De=Object.keys(Ge).map(Ce=>{const Je=Ge[Ce];return Array.isArray(Je)?Je.map(ct=>`${li(Ce)}=${li(ct)}`).join("&"):`${li(Ce)}=${li(Je)}`}).filter(Ce=>!!Ce);return De.length?`?${De.join("&")}`:""}(De.queryParams);var Ge;return`${Ce}${Je}${"string"==typeof De.fragment?`#${Ge=De.fragment,encodeURI(Ge)}`:""}`}}const Be=new Re;function rt(Ge){return Ge.segments.map(De=>ci(De)).join("/")}function ot(Ge,De){if(!Ge.hasChildren())return rt(Ge);if(De){const Ce=Ge.children[Te]?ot(Ge.children[Te],!1):"",Je=[];return Bt(Ge.children,(ct,Ot)=>{Ot!==Te&&Je.push(`${Ot}:${ot(ct,!1)}`)}),Je.length>0?`${Ce}(${Je.join("//")})`:Ce}{const Ce=function(Ge,De){let Ce=[];return Bt(Ge.children,(Je,ct)=>{ct===Te&&(Ce=Ce.concat(De(Je,ct)))}),Bt(Ge.children,(Je,ct)=>{ct!==Te&&(Ce=Ce.concat(De(Je,ct)))}),Ce}(Ge,(Je,ct)=>ct===Te?[ot(Ge.children[Te],!1)]:[`${ct}:${ot(Je,!1)}`]);return 1===Object.keys(Ge.children).length&&null!=Ge.children[Te]?`${rt(Ge)}/${Ce[0]}`:`${rt(Ge)}/(${Ce.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(De=>`;${Ft(De)}=${Ft(Ge[De])}`).join("")}(Ge.parameters)}`}const Di=/^[^\/()?;=#]+/;function Xi(Ge){const De=Ge.match(Di);return De?De[0]:""}const Ke=/^[^=?&#]+/,be=/^[^&#]+/;class vt{constructor(De){this.url=De,this.remaining=De}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ee([],{}):new Ee([],this.parseChildren())}parseQueryParams(){const De={};if(this.consumeOptional("?"))do{this.parseQueryParam(De)}while(this.consumeOptional("&"));return De}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const De=[];for(this.peekStartsWith("(")||De.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),De.push(this.parseSegment());let Ce={};this.peekStartsWith("/(")&&(this.capture("/"),Ce=this.parseParens(!0));let Je={};return this.peekStartsWith("(")&&(Je=this.parseParens(!1)),(De.length>0||Object.keys(Ce).length>0)&&(Je[Te]=new Ee(De,Ce)),Je}parseSegment(){const De=Xi(this.remaining);if(""===De&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(De),new et(Si(De),this.parseMatrixParams())}parseMatrixParams(){const De={};for(;this.consumeOptional(";");)this.parseParam(De);return De}parseParam(De){const Ce=Xi(this.remaining);if(!Ce)return;this.capture(Ce);let Je="";if(this.consumeOptional("=")){const ct=Xi(this.remaining);ct&&(Je=ct,this.capture(Je))}De[Si(Ce)]=Si(Je)}parseQueryParam(De){const Ce=function(Ge){const De=Ge.match(Ke);return De?De[0]:""}(this.remaining);if(!Ce)return;this.capture(Ce);let Je="";if(this.consumeOptional("=")){const qt=function(Ge){const De=Ge.match(be);return De?De[0]:""}(this.remaining);qt&&(Je=qt,this.capture(Je))}const ct=ai(Ce),Ot=ai(Je);if(De.hasOwnProperty(ct)){let qt=De[ct];Array.isArray(qt)||(qt=[qt],De[ct]=qt),qt.push(Ot)}else De[ct]=Ot}parseParens(De){const Ce={};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(":")):De&&(Ot=Te);const qt=this.parseChildren();Ce[Ot]=1===Object.keys(qt).length?qt[Te]:new Ee([],qt),this.consumeOptional("//")}return Ce}peekStartsWith(De){return this.remaining.startsWith(De)}consumeOptional(De){return!!this.peekStartsWith(De)&&(this.remaining=this.remaining.substring(De.length),!0)}capture(De){if(!this.consumeOptional(De))throw new Error(`Expected "${De}".`)}}class me{constructor(De){this._root=De}get root(){return this._root.value}parent(De){const Ce=this.pathFromRoot(De);return Ce.length>1?Ce[Ce.length-2]:null}children(De){const Ce=$e(De,this._root);return Ce?Ce.children.map(Je=>Je.value):[]}firstChild(De){const Ce=$e(De,this._root);return Ce&&Ce.children.length>0?Ce.children[0].value:null}siblings(De){const Ce=St(De,this._root);return Ce.length<2?[]:Ce[Ce.length-2].children.map(ct=>ct.value).filter(ct=>ct!==De)}pathFromRoot(De){return St(De,this._root).map(Ce=>Ce.value)}}function $e(Ge,De){if(Ge===De.value)return De;for(const Ce of De.children){const Je=$e(Ge,Ce);if(Je)return Je}return null}function St(Ge,De){if(Ge===De.value)return[De];for(const Ce of De.children){const Je=St(Ge,Ce);if(Je.length)return Je.unshift(De),Je}return[]}class Pt{constructor(De,Ce){this.value=De,this.children=Ce}toString(){return`TreeNode(${this.value})`}}function yi(Ge){const De={};return Ge&&Ge.children.forEach(Ce=>De[Ce.value.outlet]=Ce),De}class Pi extends me{constructor(De,Ce){super(De),this.snapshot=Ce,Ci(this,De)}toString(){return this.snapshot.toString()}}function Ii(Ge,De){const Ce=function(Ge,De){const qt=new Lt([],{},{},"",{},Te,De,null,Ge.root,-1,{});return new ui("",new Pt(qt,[]))}(Ge,De),Je=new P.X([new et("",{})]),ct=new P.X({}),Ot=new P.X({}),qt=new P.X({}),ii=new P.X(""),Ti=new at(Je,ct,qt,ii,Ot,Te,De,Ce.root);return Ti.snapshot=Ce.root,new Pi(new Pt(Ti,[]),Ce)}class at{constructor(De,Ce,Je,ct,Ot,qt,ii,Ti){this.url=De,this.params=Ce,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)(De=>Y(De)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,y.U)(De=>Y(De)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Qt(Ge,De="emptyOnly"){const Ce=Ge.pathFromRoot;let Je=0;if("always"!==De)for(Je=Ce.length-1;Je>=1;){const ct=Ce[Je],Ot=Ce[Je-1];if(ct.routeConfig&&""===ct.routeConfig.path)Je--;else{if(Ot.component)break;Je--}}return function(Ge){return Ge.reduce((De,Ce)=>({params:Object.assign(Object.assign({},De.params),Ce.params),data:Object.assign(Object.assign({},De.data),Ce.data),resolve:Object.assign(Object.assign({},De.resolve),Ce._resolvedData)}),{params:{},data:{},resolve:{}})}(Ce.slice(Je))}class Lt{constructor(De,Ce,Je,ct,Ot,qt,ii,Ti,on,jn,xn){this.url=De,this.params=Ce,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=Y(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Y(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Je=>Je.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ui extends me{constructor(De,Ce){super(Ce),this.url=De,Ci(this,Ce)}toString(){return Wi(this._root)}}function Ci(Ge,De){De.value._routerState=Ge,De.children.forEach(Ce=>Ci(Ge,Ce))}function Wi(Ge){const De=Ge.children.length>0?` { ${Ge.children.map(Wi).join(", ")} } `:"";return`${Ge.value}${De}`}function $i(Ge){if(Ge.snapshot){const De=Ge.snapshot,Ce=Ge._futureSnapshot;Ge.snapshot=Ce,it(De.queryParams,Ce.queryParams)||Ge.queryParams.next(Ce.queryParams),De.fragment!==Ce.fragment&&Ge.fragment.next(Ce.fragment),it(De.params,Ce.params)||Ge.params.next(Ce.params),function(Ge,De){if(Ge.length!==De.length)return!1;for(let Ce=0;Ce<Ge.length;++Ce)if(!it(Ge[Ce],De[Ce]))return!1;return!0}(De.url,Ce.url)||Ge.url.next(Ce.url),it(De.data,Ce.data)||Ge.data.next(Ce.data)}else Ge.snapshot=Ge._futureSnapshot,Ge.data.next(Ge._futureSnapshot.data)}function An(Ge,De){const Ce=it(Ge.params,De.params)&&function(Ge,De){return Rt(Ge,De)&&Ge.every((Ce,Je)=>it(Ce.parameters,De[Je].parameters))}(Ge.url,De.url);return Ce&&!(!Ge.parent!=!De.parent)&&(!Ge.parent||An(Ge.parent,De.parent))}function pn(Ge,De,Ce){if(Ce&&Ge.shouldReuseRoute(De.value,Ce.value.snapshot)){const Je=Ce.value;Je._futureSnapshot=De.value;const ct=function(Ge,De,Ce){return De.children.map(Je=>{for(const ct of Ce.children)if(Ge.shouldReuseRoute(Je.value,ct.value.snapshot))return pn(Ge,Je,ct);return pn(Ge,Je)})}(Ge,De,Ce);return new Pt(Je,ct)}{if(Ge.shouldAttach(De.value)){const Ot=Ge.retrieve(De.value);if(null!==Ot){const qt=Ot.route;return qt.value._futureSnapshot=De.value,qt.children=De.children.map(ii=>pn(Ge,ii)),qt}}const Je=function(Ge){return new at(new P.X(Ge.url),new P.X(Ge.params),new P.X(Ge.queryParams),new P.X(Ge.fragment),new P.X(Ge.data),Ge.outlet,Ge.component,Ge)}(De.value),ct=De.children.map(Ot=>pn(Ge,Ot));return new Pt(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,De,Ce,Je,ct){let Ot={};return Je&&Bt(Je,(qt,ii)=>{Ot[ii]=Array.isArray(qt)?qt.map(Ti=>`${Ti}`):`${qt}`}),new ve(Ce.root===Ge?De:ya(Ce.root,Ge,De),Ot,ct)}function ya(Ge,De,Ce){const Je={};return Bt(Ge.children,(ct,Ot)=>{Je[Ot]=ct===De?Ce:ya(ct,De,Ce)}),new Ee(Ge.segments,Je)}class qn{constructor(De,Ce,Je){if(this.isAbsolute=De,this.numberOfDoubleDots=Ce,this.commands=Je,De&&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(De,Ce,Je){this.segmentGroup=De,this.processChildren=Ce,this.index=Je}}function is(Ge,De,Ce){if(Ge||(Ge=new Ee([],{})),0===Ge.segments.length&&Ge.hasChildren())return rr(Ge,De,Ce);const Je=function(Ge,De,Ce){let Je=0,ct=De;const Ot={match:!1,pathIndex:0,commandIndex:0};for(;ct<Ge.segments.length;){if(Je>=Ce.length)return Ot;const qt=Ge.segments[ct],ii=Ce[Je];if(sn(ii))break;const Ti=`${ii}`,on=Je<Ce.length-1?Ce[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,De,Ce),ct=Ce.slice(Je.commandIndex);if(Je.match&&Je.pathIndex<Ge.segments.length){const Ot=new Ee(Ge.segments.slice(0,Je.pathIndex),{});return Ot.children[Te]=new Ee(Ge.segments.slice(Je.pathIndex),Ge.children),rr(Ot,0,ct)}return Je.match&&0===ct.length?new Ee(Ge.segments,{}):Je.match&&!Ge.hasChildren()?la(Ge,De,Ce):Je.match?rr(Ge,0,ct):la(Ge,De,Ce)}function rr(Ge,De,Ce){if(0===Ce.length)return new Ee(Ge.segments,{});{const Je=function(Ge){return sn(Ge[0])?Ge[0].outlets:{[Te]:Ge}}(Ce),ct={};return Bt(Je,(Ot,qt)=>{"string"==typeof Ot&&(Ot=[Ot]),null!==Ot&&(ct[qt]=is(Ge.children[qt],De,Ot))}),Bt(Ge.children,(Ot,qt)=>{void 0===Je[qt]&&(ct[qt]=Ot)}),new Ee(Ge.segments,ct)}}function la(Ge,De,Ce){const Je=Ge.segments.slice(0,De);let ct=0;for(;ct<Ce.length;){const Ot=Ce[ct];if(sn(Ot)){const Ti=Ur(Ot.outlets);return new Ee(Je,Ti)}if(0===ct&&Fi(Ce[0])){Je.push(new et(Ge.segments[De].path,Pa(Ce[0]))),ct++;continue}const qt=sn(Ot)?Ot.outlets[Te]:`${Ot}`,ii=ct<Ce.length-1?Ce[ct+1]:null;qt&&ii&&Fi(ii)?(Je.push(new et(qt,Pa(ii))),ct+=2):(Je.push(new et(qt,{})),ct++)}return new Ee(Je,{})}function Ur(Ge){const De={};return Bt(Ge,(Ce,Je)=>{"string"==typeof Ce&&(Ce=[Ce]),null!==Ce&&(De[Je]=la(new Ee([],{}),0,Ce))}),De}function Pa(Ge){const De={};return Bt(Ge,(Ce,Je)=>De[Je]=`${Ce}`),De}function Ra(Ge,De,Ce){return Ge==Ce.path&&it(De,Ce.parameters)}class Qr{constructor(De,Ce,Je,ct){this.routeReuseStrategy=De,this.futureState=Ce,this.currState=Je,this.forwardEvent=ct}activate(De){const Ce=this.futureState._root,Je=this.currState?this.currState._root:null;this.deactivateChildRoutes(Ce,Je,De),$i(this.futureState.root),this.activateChildRoutes(Ce,Je,De)}deactivateChildRoutes(De,Ce,Je){const ct=yi(Ce);De.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(De,Ce,Je){const ct=De.value,Ot=Ce?Ce.value:null;if(ct===Ot)if(ct.component){const qt=Je.getContext(ct.outlet);qt&&this.deactivateChildRoutes(De,Ce,qt.children)}else this.deactivateChildRoutes(De,Ce,Je);else Ot&&this.deactivateRouteAndItsChildren(Ce,Je)}deactivateRouteAndItsChildren(De,Ce){De.value.component&&this.routeReuseStrategy.shouldDetach(De.value.snapshot)?this.detachAndStoreRouteSubtree(De,Ce):this.deactivateRouteAndOutlet(De,Ce)}detachAndStoreRouteSubtree(De,Ce){const Je=Ce.getContext(De.value.outlet),ct=Je&&De.value.component?Je.children:Ce,Ot=yi(De);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(De.value.snapshot,{componentRef:qt,route:De,contexts:ii})}}deactivateRouteAndOutlet(De,Ce){const Je=Ce.getContext(De.value.outlet),ct=Je&&De.value.component?Je.children:Ce,Ot=yi(De);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(De,Ce,Je){const ct=yi(Ce);De.children.forEach(Ot=>{this.activateRoutes(Ot,ct[Ot.value.outlet],Je),this.forwardEvent(new Ve(Ot.value.snapshot))}),De.children.length&&this.forwardEvent(new yt(De.value.snapshot))}activateRoutes(De,Ce,Je){const ct=De.value,Ot=Ce?Ce.value:null;if($i(ct),ct===Ot)if(ct.component){const qt=Je.getOrCreateContext(ct.outlet);this.activateChildRoutes(De,Ce,qt.children)}else this.activateChildRoutes(De,Ce,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(De,null,qt.children)}else{const ii=function(Ge){for(let De=Ge.parent;De;De=De.parent){const Ce=De.routeConfig;if(Ce&&Ce._loadedConfig)return Ce._loadedConfig;if(Ce&&Ce.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(De,null,qt.children)}}else this.activateChildRoutes(De,null,Je)}}class _n{constructor(De,Ce){this.routes=De,this.module=Ce}}function Kn(Ge){return"function"==typeof Ge}function Jr(Ge){return Ge instanceof ve}const Vr=Symbol("INITIAL_VALUE");function er(){return(0,i.w)(Ge=>(0,S.a)(Ge.map(De=>De.pipe((0,se.q)(1),(0,a.O)(Vr)))).pipe((0,p.R)((De,Ce)=>{let Je=!1;return Ce.reduce((ct,Ot,qt)=>ct!==Vr?ct:(Ot===Vr&&(Je=!0),Je||!1!==Ot&&qt!==Ce.length-1&&!Jr(Ot)?ct:Ot),De)},Vr),(0,W.h)(De=>De!==Vr),(0,y.U)(De=>Jr(De)?De:!0===De),(0,se.q)(1)))}class Fa{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new dr,this.attachRef=null}}class dr{constructor(){this.contexts=new Map}onChildOutletCreated(De,Ce){const Je=this.getOrCreateContext(De);Je.outlet=Ce,this.contexts.set(De,Je)}onChildOutletDestroyed(De){const Ce=this.getContext(De);Ce&&(Ce.outlet=null,Ce.attachRef=null)}onOutletDeactivated(){const De=this.contexts;return this.contexts=new Map,De}onOutletReAttached(De){this.contexts=De}getOrCreateContext(De){let Ce=this.getContext(De);return Ce||(Ce=new Fa,this.contexts.set(De,Ce)),Ce}getContext(De){return this.contexts.get(De)||null}}let ia=(()=>{class Ge{constructor(Ce,Je,ct,Ot,qt){this.parentContexts=Ce,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||Te,Ce.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const Ce=this.parentContexts.getContext(this.name);Ce&&Ce.route&&(Ce.attachRef?this.attach(Ce.attachRef,Ce.route):this.activateWith(Ce.route,Ce.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 Ce=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(Ce.instance),Ce}attach(Ce,Je){this.activated=Ce,this._activatedRoute=Je,this.location.insert(Ce.hostView),this.attachEvents.emit(Ce.instance)}deactivate(){if(this.activated){const Ce=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Ce)}}activateWith(Ce,Je){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=Ce;const qt=(Je=Je||this.resolver).resolveComponentFactory(Ce._futureSnapshot.routeConfig.component),ii=this.parentContexts.getOrCreateContext(this.name).children,Ti=new Sa(Ce,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(Ce){return new(Ce||Ge)(e.Y36(dr),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(De,Ce,Je){this.route=De,this.childContexts=Ce,this.parent=Je}get(De,Ce){return De===at?this.route:De===dr?this.childContexts:this.parent.get(De,Ce)}}let Rr=(()=>{class Ge{}return Ge.\u0275fac=function(Ce){return new(Ce||Ge)},Ge.\u0275cmp=e.Xpm({type:Ge,selectors:[["ng-component"]],decls:1,vars:0,template:function(Ce,Je){1&Ce&&e._UZ(0,"router-outlet")},directives:[ia],encapsulation:2}),Ge})();function na(Ge,De=""){for(let Ce=0;Ce<Ge.length;Ce++){const Je=Ge[Ce];Mr(Je,ns(De,Je))}}function Mr(Ge,De){Ge.children&&na(Ge.children,De)}function ns(Ge,De){return De?Ge||De.path?Ge&&!De.path?`${Ge}/`:!Ge&&De.path?De.path:`${Ge}/${De.path}`:"":Ge}function Wa(Ge){const De=Ge.children&&Ge.children.map(Wa),Ce=De?Object.assign(Object.assign({},Ge),{children:De}):Object.assign({},Ge);return!Ce.component&&(De||Ce.loadChildren)&&Ce.outlet&&Ce.outlet!==Te&&(Ce.component=Rr),Ce}function mr(Ge){return Ge.outlet||Te}function fa(Ge,De){const Ce=Ge.filter(Je=>mr(Je)===De);return Ce.push(...Ge.filter(Je=>mr(Je)!==De)),Ce}const ra={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function pa(Ge,De,Ce){var Je;if(""===De.path)return"full"===De.pathMatch&&(Ge.hasChildren()||Ce.length>0)?Object.assign({},ra):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const Ot=(De.matcher||ze)(Ce,Ge,De);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,De,Ce,Je,ct="corrected"){if(Ce.length>0&&function(Ge,De,Ce){return Ce.some(Je=>Q(Ge,De,Je)&&mr(Je)!==Te)}(Ge,Ce,Je)){const qt=new Ee(De,function(Ge,De,Ce,Je){const ct={};ct[Te]=Je,Je._sourceSegment=Ge,Je._segmentIndexShift=De.length;for(const Ot of Ce)if(""===Ot.path&&mr(Ot)!==Te){const qt=new Ee([],{});qt._sourceSegment=Ge,qt._segmentIndexShift=De.length,ct[mr(Ot)]=qt}return ct}(Ge,De,Je,new Ee(Ce,Ge.children)));return qt._sourceSegment=Ge,qt._segmentIndexShift=De.length,{segmentGroup:qt,slicedSegments:[]}}if(0===Ce.length&&function(Ge,De,Ce){return Ce.some(Je=>Q(Ge,De,Je))}(Ge,Ce,Je)){const qt=new Ee(Ge.segments,function(Ge,De,Ce,Je,ct,Ot){const qt={};for(const ii of Je)if(Q(Ge,Ce,ii)&&!ct[mr(ii)]){const Ti=new Ee([],{});Ti._sourceSegment=Ge,Ti._segmentIndexShift="legacy"===Ot?Ge.segments.length:De.length,qt[mr(ii)]=Ti}return Object.assign(Object.assign({},ct),qt)}(Ge,De,Ce,Je,Ge.children,ct));return qt._sourceSegment=Ge,qt._segmentIndexShift=De.length,{segmentGroup:qt,slicedSegments:Ce}}const Ot=new Ee(Ge.segments,Ge.children);return Ot._sourceSegment=Ge,Ot._segmentIndexShift=De.length,{segmentGroup:Ot,slicedSegments:Ce}}function Q(Ge,De,Ce){return(!(Ge.hasChildren()||De.length>0)||"full"!==Ce.pathMatch)&&""===Ce.path}function ae(Ge,De,Ce,Je){return!!(mr(Ge)===Je||Je!==Te&&Q(De,Ce,Ge))&&("**"===Ge.path||pa(De,Ge,Ce).matched)}function Qe(Ge,De,Ce){return 0===De.length&&!Ge.children[Ce]}class Yt{constructor(De){this.segmentGroup=De||null}}class mi{constructor(De){this.urlTree=De}}function Ct(Ge){return new M.y(De=>De.error(new Yt(Ge)))}function ei(Ge){return new M.y(De=>De.error(new mi(Ge)))}function bt(Ge){return new M.y(De=>De.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Ge}'`)))}class zi{constructor(De,Ce,Je,ct,Ot){this.configLoader=Ce,this.urlSerializer=Je,this.urlTree=ct,this.config=Ot,this.allowRedirects=!0,this.ngModule=De.get(e.h0i)}apply(){const De=Zn(this.urlTree.root,[],[],this.config).segmentGroup,Ce=new Ee(De.segments,De.children);return this.expandSegmentGroup(this.ngModule,this.config,Ce,Te).pipe((0,y.U)(Ot=>this.createUrlTree(wn(Ot),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,u.K)(Ot=>{if(Ot instanceof mi)return this.allowRedirects=!1,this.match(Ot.urlTree);throw Ot instanceof Yt?this.noMatchError(Ot):Ot}))}match(De){return this.expandSegmentGroup(this.ngModule,this.config,De.root,Te).pipe((0,y.U)(ct=>this.createUrlTree(wn(ct),De.queryParams,De.fragment))).pipe((0,u.K)(ct=>{throw ct instanceof Yt?this.noMatchError(ct):ct}))}noMatchError(De){return new Error(`Cannot match any routes. URL Segment: '${De.segmentGroup}'`)}createUrlTree(De,Ce,Je){const ct=De.segments.length>0?new Ee([],{[Te]:De}):De;return new ve(ct,Ce,Je)}expandSegmentGroup(De,Ce,Je,ct){return 0===Je.segments.length&&Je.hasChildren()?this.expandChildren(De,Ce,Je).pipe((0,y.U)(Ot=>new Ee([],Ot))):this.expandSegment(De,Je,Ce,Je.segments,ct,!0)}expandChildren(De,Ce,Je){const ct=[];for(const Ot of Object.keys(Je.children))"primary"===Ot?ct.unshift(Ot):ct.push(Ot);return(0,O.D)(ct).pipe((0,_.b)(Ot=>{const qt=Je.children[Ot],ii=fa(Ce,Ot);return this.expandSegmentGroup(De,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,De){const Ce=arguments.length>=2;return Je=>Je.pipe(Ge?(0,W.h)((ct,Ot)=>Ge(ct,Ot,Je)):de.y,ee(1),Ce?fe(De):ie(()=>new v))}())}expandSegment(De,Ce,Je,ct,Ot,qt){return(0,O.D)(Je).pipe((0,_.b)(ii=>this.expandSegmentAgainstRoute(De,Ce,Je,ii,ct,Ot,qt).pipe((0,u.K)(on=>{if(on instanceof Yt)return(0,T.of)(null);throw on}))),oe(ii=>!!ii),(0,u.K)((ii,Ti)=>{if(ii instanceof v||"EmptyError"===ii.name){if(Qe(Ce,ct,Ot))return(0,T.of)(new Ee([],{}));throw new Yt(Ce)}throw ii}))}expandSegmentAgainstRoute(De,Ce,Je,ct,Ot,qt,ii){return ae(ct,Ce,Ot,qt)?void 0===ct.redirectTo?this.matchSegmentAgainstRoute(De,Ce,ct,Ot,qt):ii&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(De,Ce,Je,ct,Ot,qt):Ct(Ce):Ct(Ce)}expandSegmentAgainstRouteUsingRedirect(De,Ce,Je,ct,Ot,qt){return"**"===ct.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(De,Je,ct,qt):this.expandRegularSegmentAgainstRouteUsingRedirect(De,Ce,Je,ct,Ot,qt)}expandWildCardWithParamsAgainstRouteUsingRedirect(De,Ce,Je,ct){const Ot=this.applyRedirectCommands([],Je.redirectTo,{});return Je.redirectTo.startsWith("/")?ei(Ot):this.lineralizeSegments(Je,Ot).pipe((0,L.z)(qt=>{const ii=new Ee(qt,{});return this.expandSegment(De,ii,Ce,qt,ct,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(De,Ce,Je,ct,Ot,qt){const{matched:ii,consumedSegments:Ti,lastChild:on,positionalParamSegments:jn}=pa(Ce,ct,Ot);if(!ii)return Ct(Ce);const xn=this.applyRedirectCommands(Ti,ct.redirectTo,jn);return ct.redirectTo.startsWith("/")?ei(xn):this.lineralizeSegments(ct,xn).pipe((0,L.z)(Xn=>this.expandSegment(De,Ce,Je,Xn.concat(Ot.slice(on)),qt,!1)))}matchSegmentAgainstRoute(De,Ce,Je,ct,Ot){if("**"===Je.path)return Je.loadChildren?(Je._loadedConfig?(0,T.of)(Je._loadedConfig):this.configLoader.load(De.injector,Je)).pipe((0,y.U)(Xn=>(Je._loadedConfig=Xn,new Ee(ct,{})))):(0,T.of)(new Ee(ct,{}));const{matched:qt,consumedSegments:ii,lastChild:Ti}=pa(Ce,Je,ct);if(!qt)return Ct(Ce);const on=ct.slice(Ti);return this.getChildConfig(De,Je,ct).pipe((0,L.z)(xn=>{const Xn=xn.module,Bn=xn.routes,{segmentGroup:yo,slicedSegments:ss}=Zn(Ce,ii,on,Bn),qa=new Ee(yo.segments,yo.children);if(0===ss.length&&qa.hasChildren())return this.expandChildren(Xn,Bn,qa).pipe((0,y.U)(os=>new Ee(ii,os)));if(0===Bn.length&&0===ss.length)return(0,T.of)(new Ee(ii,{}));const Ns=mr(Je)===Ot;return this.expandSegment(Xn,qa,Bn,ss,Ns?Te:Ot,!0).pipe((0,y.U)(ys=>new Ee(ii.concat(ys.segments),ys.children)))}))}getChildConfig(De,Ce,Je){return Ce.children?(0,T.of)(new _n(Ce.children,De)):Ce.loadChildren?void 0!==Ce._loadedConfig?(0,T.of)(Ce._loadedConfig):this.runCanLoadGuards(De.injector,Ce,Je).pipe((0,L.z)(ct=>{return ct?this.configLoader.load(De.injector,Ce).pipe((0,y.U)(Ot=>(Ce._loadedConfig=Ot,Ot))):(Ge=Ce,new M.y(De=>De.error(he(`Cannot load children because the guard of the route "path: '${Ge.path}'" returned false`))));var Ge})):(0,T.of)(new _n([],De))}runCanLoadGuards(De,Ce,Je){const ct=Ce.canLoad;if(!ct||0===ct.length)return(0,T.of)(!0);const Ot=ct.map(qt=>{const ii=De.get(qt);let Ti;if((Ge=ii)&&Kn(Ge.canLoad))Ti=ii.canLoad(Ce,Je);else{if(!Kn(ii))throw new Error("Invalid CanLoad guard");Ti=ii(Ce,Je)}var Ge;return Nt(Ti)});return(0,T.of)(Ot).pipe(er(),(0,I.b)(qt=>{if(!Jr(qt))return;const ii=he(`Redirecting to "${this.urlSerializer.serialize(qt)}"`);throw ii.url=qt,ii}),(0,y.U)(qt=>!0===qt))}lineralizeSegments(De,Ce){let Je=[],ct=Ce.root;for(;;){if(Je=Je.concat(ct.segments),0===ct.numberOfChildren)return(0,T.of)(Je);if(ct.numberOfChildren>1||!ct.children[Te])return bt(De.redirectTo);ct=ct.children[Te]}}applyRedirectCommands(De,Ce,Je){return this.applyRedirectCreatreUrlTree(Ce,this.urlSerializer.parse(Ce),De,Je)}applyRedirectCreatreUrlTree(De,Ce,Je,ct){const Ot=this.createSegmentGroup(De,Ce.root,Je,ct);return new ve(Ot,this.createQueryParams(Ce.queryParams,this.urlTree.queryParams),Ce.fragment)}createQueryParams(De,Ce){const Je={};return Bt(De,(ct,Ot)=>{if("string"==typeof ct&&ct.startsWith(":")){const ii=ct.substring(1);Je[Ot]=Ce[ii]}else Je[Ot]=ct}),Je}createSegmentGroup(De,Ce,Je,ct){const Ot=this.createSegments(De,Ce.segments,Je,ct);let qt={};return Bt(Ce.children,(ii,Ti)=>{qt[Ti]=this.createSegmentGroup(De,ii,Je,ct)}),new Ee(Ot,qt)}createSegments(De,Ce,Je,ct){return Ce.map(Ot=>Ot.path.startsWith(":")?this.findPosParam(De,Ot,ct):this.findOrReturn(Ot,Je))}findPosParam(De,Ce,Je){const ct=Je[Ce.path.substring(1)];if(!ct)throw new Error(`Cannot redirect to '${De}'. Cannot find '${Ce.path}'.`);return ct}findOrReturn(De,Ce){let Je=0;for(const ct of Ce){if(ct.path===De.path)return Ce.splice(Je),ct;Je++}return De}}function wn(Ge){const De={};for(const Je of Object.keys(Ge.children)){const Ot=wn(Ge.children[Je]);(Ot.segments.length>0||Ot.hasChildren())&&(De[Je]=Ot)}return function(Ge){if(1===Ge.numberOfChildren&&Ge.children[Te]){const De=Ge.children[Te];return new Ee(Ge.segments.concat(De.segments),De.children)}return Ge}(new Ee(Ge.segments,De))}class gr{constructor(De){this.path=De,this.route=this.path[this.path.length-1]}}class Fn{constructor(De,Ce){this.component=De,this.route=Ce}}function Gn(Ge,De,Ce){const Je=Ge._root;return ja(Je,De?De._root:null,Ce,[Je.value])}function Lr(Ge,De,Ce){const Je=function(Ge){if(!Ge)return null;for(let De=Ge.parent;De;De=De.parent){const Ce=De.routeConfig;if(Ce&&Ce._loadedConfig)return Ce._loadedConfig}return null}(De);return(Je?Je.module.injector:Ce).get(Ge)}function ja(Ge,De,Ce,Je,ct={canDeactivateChecks:[],canActivateChecks:[]}){const Ot=yi(De);return Ge.children.forEach(qt=>{(function(Ge,De,Ce,Je,ct={canDeactivateChecks:[],canActivateChecks:[]}){const Ot=Ge.value,qt=De?De.value:null,ii=Ce?Ce.getContext(Ge.value.outlet):null;if(qt&&Ot.routeConfig===qt.routeConfig){const Ti=function(Ge,De,Ce){if("function"==typeof Ce)return Ce(Ge,De);switch(Ce){case"pathParamsChange":return!Rt(Ge.url,De.url);case"pathParamsOrQueryParamsChange":return!Rt(Ge.url,De.url)||!it(Ge.queryParams,De.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!An(Ge,De)||!it(Ge.queryParams,De.queryParams);default:return!An(Ge,De)}}(qt,Ot,Ot.routeConfig.runGuardsAndResolvers);Ti?ct.canActivateChecks.push(new gr(Je)):(Ot.data=qt.data,Ot._resolvedData=qt._resolvedData),ja(Ge,De,Ot.component?ii?ii.children:null:Ce,Je,ct),Ti&&ii&&ii.outlet&&ii.outlet.isActivated&&ct.canDeactivateChecks.push(new Fn(ii.outlet.component,qt))}else qt&&fs(De,ii,ct),ct.canActivateChecks.push(new gr(Je)),ja(Ge,null,Ot.component?ii?ii.children:null:Ce,Je,ct)})(qt,Ot[qt.value.outlet],Ce,Je.concat([qt.value]),ct),delete Ot[qt.value.outlet]}),Bt(Ot,(qt,ii)=>fs(qt,Ce.getContext(ii),ct)),ct}function fs(Ge,De,Ce){const Je=yi(Ge),ct=Ge.value;Bt(Je,(Ot,qt)=>{fs(Ot,ct.component?De?De.children.getContext(qt):null:De,Ce)}),Ce.canDeactivateChecks.push(new Fn(ct.component&&De&&De.outlet&&De.outlet.isActivated?De.outlet.component:null,ct))}class kt{}function Kt(Ge){return new M.y(De=>De.error(Ge))}class fi{constructor(De,Ce,Je,ct,Ot,qt){this.rootComponentType=De,this.config=Ce,this.urlTree=Je,this.url=ct,this.paramsInheritanceStrategy=Ot,this.relativeLinkResolution=qt}recognize(){const De=Zn(this.urlTree.root,[],[],this.config.filter(qt=>void 0===qt.redirectTo),this.relativeLinkResolution).segmentGroup,Ce=this.processSegmentGroup(this.config,De,Te);if(null===Ce)return null;const Je=new Lt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Te,this.rootComponentType,null,this.urlTree.root,-1,{}),ct=new Pt(Je,Ce),Ot=new ui(this.url,ct);return this.inheritParamsAndData(Ot._root),Ot}inheritParamsAndData(De){const Ce=De.value,Je=Qt(Ce,this.paramsInheritanceStrategy);Ce.params=Object.freeze(Je.params),Ce.data=Object.freeze(Je.data),De.children.forEach(ct=>this.inheritParamsAndData(ct))}processSegmentGroup(De,Ce,Je){return 0===Ce.segments.length&&Ce.hasChildren()?this.processChildren(De,Ce):this.processSegment(De,Ce,Ce.segments,Je)}processChildren(De,Ce){const Je=[];for(const Ot of Object.keys(Ce.children)){const qt=Ce.children[Ot],ii=fa(De,Ot),Ti=this.processSegmentGroup(ii,qt,Ot);if(null===Ti)return null;Je.push(...Ti)}const ct=Cn(Je);return ct.sort((De,Ce)=>De.value.outlet===Te?-1:Ce.value.outlet===Te?1:De.value.outlet.localeCompare(Ce.value.outlet)),ct}processSegment(De,Ce,Je,ct){for(const Ot of De){const qt=this.processSegmentAgainstRoute(Ot,Ce,Je,ct);if(null!==qt)return qt}return Qe(Ce,Je,ct)?[]:null}processSegmentAgainstRoute(De,Ce,Je,ct){if(De.redirectTo||!ae(De,Ce,Je,ct))return null;let Ot,qt=[],ii=[];if("**"===De.path){const Bn=Je.length>0?st(Je).parameters:{};Ot=new Lt(Je,Bn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,It(De),mr(De),De.component,De,tt(Ce),Et(Ce)+Je.length,zt(De))}else{const Bn=pa(Ce,De,Je);if(!Bn.matched)return null;qt=Bn.consumedSegments,ii=Je.slice(Bn.lastChild),Ot=new Lt(qt,Bn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,It(De),mr(De),De.component,De,tt(Ce),Et(Ce)+qt.length,zt(De))}const Ti=(Ge=De).children?Ge.children:Ge.loadChildren?Ge._loadedConfig.routes:[],{segmentGroup:on,slicedSegments:jn}=Zn(Ce,qt,ii,Ti.filter(Bn=>void 0===Bn.redirectTo),this.relativeLinkResolution);var Ge;if(0===jn.length&&on.hasChildren()){const Bn=this.processChildren(Ti,on);return null===Bn?null:[new Pt(Ot,Bn)]}if(0===Ti.length&&0===jn.length)return[new Pt(Ot,[])];const xn=mr(De)===ct,Xn=this.processSegment(Ti,on,jn,xn?Te:ct);return null===Xn?null:[new Pt(Ot,Xn)]}}function en(Ge){const De=Ge.value.routeConfig;return De&&""===De.path&&void 0===De.redirectTo}function Cn(Ge){const De=[],Ce=new Set;for(const Je of Ge){if(!en(Je)){De.push(Je);continue}const ct=De.find(Ot=>Je.value.routeConfig===Ot.value.routeConfig);void 0!==ct?(ct.children.push(...Je.children),Ce.add(ct)):De.push(Je)}for(const Je of Ce){const ct=Cn(Je.children);De.push(new Pt(Je.value,ct))}return De.filter(Je=>!Ce.has(Je))}function tt(Ge){let De=Ge;for(;De._sourceSegment;)De=De._sourceSegment;return De}function Et(Ge){let De=Ge,Ce=De._segmentIndexShift?De._segmentIndexShift:0;for(;De._sourceSegment;)De=De._sourceSegment,Ce+=De._segmentIndexShift?De._segmentIndexShift:0;return Ce-1}function It(Ge){return Ge.data||{}}function zt(Ge){return Ge.resolve||{}}function hn(Ge){return(0,i.w)(De=>{const Ce=Ge(De);return Ce?(0,O.D)(Ce).pipe((0,y.U)(()=>De)):(0,T.of)(De)})}class Vn extends class{shouldDetach(De){return!1}store(De,Ce){}shouldAttach(De){return!1}retrieve(De){return null}shouldReuseRoute(De,Ce){return De.routeConfig===Ce.routeConfig}}{}const wr=new e.OlP("ROUTES");class Or{constructor(De,Ce,Je,ct){this.injector=De,this.compiler=Ce,this.onLoadStartListener=Je,this.onLoadEndListener=ct}load(De,Ce){if(Ce._loader$)return Ce._loader$;this.onLoadStartListener&&this.onLoadStartListener(Ce);const ct=this.loadModuleFactory(Ce.loadChildren).pipe((0,y.U)(Ot=>{this.onLoadEndListener&&this.onLoadEndListener(Ce);const qt=Ot.create(De);return new _n(nt(qt.injector.get(wr,void 0,e.XFs.Self|e.XFs.Optional)).map(Wa),qt)}),(0,u.K)(Ot=>{throw Ce._loader$=void 0,Ot}));return Ce._loader$=new o(ct,()=>new G.x).pipe(R()),Ce._loader$}loadModuleFactory(De){return Nt(De()).pipe((0,L.z)(Ce=>Ce instanceof e.YKP?(0,T.of)(Ce):(0,O.D)(this.compiler.compileModuleAsync(Ce))))}}class Yn{shouldProcessUrl(De){return!0}extract(De){return De}merge(De,Ce){return De}}function _r(Ge){throw Ge}function Bi(Ge,De,Ce){return De.parse("/")}function an(Ge,De){return(0,T.of)(null)}const fn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Pn=(()=>{class Ge{constructor(Ce,Je,ct,Ot,qt,ii,Ti){this.rootComponentType=Ce,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 G.x,this.errorHandler=_r,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 ve(new Ee([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Or(qt,ii,Xn=>this.triggerEvent(new Ae(Xn)),Xn=>this.triggerEvent(new le(Xn))),this.routerState=Ii(this.currentUrlTree,this.rootComponentType),this.transitions=new P.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 Ce;return null===(Ce=this.location.getState())||void 0===Ce?void 0:Ce.\u0275routerPageId}setupNavigations(Ce){const Je=this.events;return Ce.pipe((0,W.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,T.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,T.of)(ii).pipe((0,i.w)(xn=>{const Xn=this.transitions.getValue();return Je.next(new F(xn.id,this.serializeUrl(xn.extractedUrl),xn.source,xn.restoredState)),Xn!==this.transitions.getValue()?U.E:Promise.resolve(xn)}),function(Ge,De,Ce,Je){return(0,i.w)(ct=>function(Ge,De,Ce,Je,ct){return new zi(Ge,De,Ce,Je,ct).apply()}(Ge,De,Ce,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,De,Ce,Je,ct){return(0,L.z)(Ot=>function(Ge,De,Ce,Je,ct="emptyOnly",Ot="legacy"){try{const qt=new fi(Ge,De,Ce,Je,ct,Ot).recognize();return null===qt?Kt(new kt):(0,T.of)(qt)}catch(qt){return Kt(qt)}}(Ge,De,Ot.urlAfterRedirects,Ce(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 Bn=this.urlHandlingStrategy.merge(xn.urlAfterRedirects,xn.rawUrl);this.setBrowserUrl(Bn,xn)}this.browserUrlTree=xn.urlAfterRedirects}const Xn=new Pe(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:Bn,source:yo,restoredState:ss,extras:qa}=ii,Ns=new F(Xn,this.serializeUrl(Bn),yo,ss);Je.next(Ns);const Ba=Ii(Bn,this.rootComponentType).snapshot;return(0,T.of)(Object.assign(Object.assign({},ii),{targetSnapshot:Ba,urlAfterRedirects:Bn,extras:Object.assign(Object.assign({},qa),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ii.rawUrl,ii.resolve(null),U.E}),hn(ii=>{const{targetSnapshot:Ti,id:on,extractedUrl:jn,rawUrl:xn,extras:{skipLocationChange:Xn,replaceUrl:Bn}}=ii;return this.hooks.beforePreactivation(Ti,{navigationId:on,appliedUrlTree:jn,rawUrlTree:xn,skipLocationChange:!!Xn,replaceUrl:!!Bn})}),(0,I.b)(ii=>{const Ti=new Fe(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,De){return(0,L.z)(Ce=>{const{targetSnapshot:Je,currentSnapshot:ct,guards:{canActivateChecks:Ot,canDeactivateChecks:qt}}=Ce;return 0===qt.length&&0===Ot.length?(0,T.of)(Object.assign(Object.assign({},Ce),{guardsResult:!0})):function(Ge,De,Ce,Je){return(0,O.D)(Ge).pipe((0,L.z)(ct=>function(Ge,De,Ce,Je,ct){const Ot=De&&De.routeConfig?De.routeConfig.canDeactivate:null;if(!Ot||0===Ot.length)return(0,T.of)(!0);const qt=Ot.map(ii=>{const Ti=Lr(ii,De,ct);let on;if(function(Ge){return Ge&&Kn(Ge.canDeactivate)}(Ti))on=Nt(Ti.canDeactivate(Ge,De,Ce,Je));else{if(!Kn(Ti))throw new Error("Invalid CanDeactivate guard");on=Nt(Ti(Ge,De,Ce,Je))}return on.pipe(oe())});return(0,T.of)(qt).pipe(er())}(ct.component,ct.route,Ce,De,Je)),oe(ct=>!0!==ct,!0))}(qt,Je,ct,Ge).pipe((0,L.z)(ii=>ii&&function(Ge){return"boolean"==typeof Ge}(ii)?function(Ge,De,Ce,Je){return(0,O.D)(De).pipe((0,_.b)(ct=>(0,D.z)(function(Ge,De){return null!==Ge&&De&&De(new We(Ge)),(0,T.of)(!0)}(ct.route.parent,Je),function(Ge,De){return null!==Ge&&De&&De(new Ne(Ge)),(0,T.of)(!0)}(ct.route,Je),function(Ge,De,Ce){const Je=De[De.length-1],Ot=De.slice(0,De.length-1).reverse().map(qt=>function(Ge){const De=Ge.routeConfig?Ge.routeConfig.canActivateChild:null;return De&&0!==De.length?{node:Ge,guards:De}:null}(qt)).filter(qt=>null!==qt).map(qt=>(0,w.P)(()=>{const ii=qt.guards.map(Ti=>{const on=Lr(Ti,qt.node,Ce);let jn;if(function(Ge){return Ge&&Kn(Ge.canActivateChild)}(on))jn=Nt(on.canActivateChild(Je,Ge));else{if(!Kn(on))throw new Error("Invalid CanActivateChild guard");jn=Nt(on(Je,Ge))}return jn.pipe(oe())});return(0,T.of)(ii).pipe(er())}));return(0,T.of)(Ot).pipe(er())}(Ge,ct.path,Ce),function(Ge,De,Ce){const Je=De.routeConfig?De.routeConfig.canActivate:null;if(!Je||0===Je.length)return(0,T.of)(!0);const ct=Je.map(Ot=>(0,w.P)(()=>{const qt=Lr(Ot,De,Ce);let ii;if(function(Ge){return Ge&&Kn(Ge.canActivate)}(qt))ii=Nt(qt.canActivate(De,Ge));else{if(!Kn(qt))throw new Error("Invalid CanActivate guard");ii=Nt(qt(De,Ge))}return ii.pipe(oe())}));return(0,T.of)(ct).pipe(er())}(Ge,ct.route,Ce))),oe(ct=>!0!==ct,!0))}(Je,Ot,Ge,De):(0,T.of)(ii)),(0,y.U)(ii=>Object.assign(Object.assign({},Ce),{guardsResult:ii})))})}(this.ngModule.injector,ii=>this.triggerEvent(ii)),(0,I.b)(ii=>{if(Jr(ii.guardsResult)){const on=he(`Redirecting to "${this.serializeUrl(ii.guardsResult)}"`);throw on.url=ii.guardsResult,on}const Ti=new q(ii.id,this.serializeUrl(ii.extractedUrl),this.serializeUrl(ii.urlAfterRedirects),ii.targetSnapshot,!!ii.guardsResult);this.triggerEvent(Ti)}),(0,W.h)(ii=>!!ii.guardsResult||(this.restoreHistory(ii),this.cancelNavigationTransition(ii,""),!1)),hn(ii=>{if(ii.guards.canActivateChecks.length)return(0,T.of)(ii).pipe((0,I.b)(Ti=>{const on=new j(Ti.id,this.serializeUrl(Ti.extractedUrl),this.serializeUrl(Ti.urlAfterRedirects),Ti.targetSnapshot);this.triggerEvent(on)}),(0,i.w)(Ti=>{let on=!1;return(0,T.of)(Ti).pipe(function(Ge,De){return(0,L.z)(Ce=>{const{targetSnapshot:Je,guards:{canActivateChecks:ct}}=Ce;if(!ct.length)return(0,T.of)(Ce);let Ot=0;return(0,O.D)(ct).pipe((0,_.b)(qt=>function(Ge,De,Ce,Je){return function(Ge,De,Ce,Je){const ct=Object.keys(Ge);if(0===ct.length)return(0,T.of)({});const Ot={};return(0,O.D)(ct).pipe((0,L.z)(qt=>function(Ge,De,Ce,Je){const ct=Lr(Ge,De,Je);return Nt(ct.resolve?ct.resolve(De,Ce):ct(De,Ce))}(Ge[qt],De,Ce,Je).pipe((0,I.b)(ii=>{Ot[qt]=ii}))),ee(1),(0,L.z)(()=>Object.keys(Ot).length===ct.length?(0,T.of)(Ot):U.E))}(Ge._resolve,Ge,De,Je).pipe((0,y.U)(Ot=>(Ge._resolvedData=Ot,Ge.data=Object.assign(Object.assign({},Ge.data),Qt(Ge,Ce).resolve),null)))}(qt.route,Je,Ge,De)),(0,I.b)(()=>Ot++),ee(1),(0,L.z)(qt=>Ot===ct.length?(0,T.of)(Ce):U.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 we(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:Bn}}=ii;return this.hooks.afterPreactivation(Ti,{navigationId:on,appliedUrlTree:jn,rawUrlTree:xn,skipLocationChange:!!Xn,replaceUrl:!!Bn})}),(0,y.U)(ii=>{const Ti=function(Ge,De,Ce){const Je=pn(Ge,De._root,Ce?Ce._root:void 0);return new Pi(Je,De)}(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,De,Ce)=>(0,y.U)(Je=>(new Qr(De,Je.targetRouterState,Je.currentRouterState,Ce).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[X]}(ii)){const Ti=Jr(ii.url);Ti||(this.navigated=!0,this.restoreHistory(ct,!0));const on=new te(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 U.E}))}))}resetRootComponentType(Ce){this.rootComponentType=Ce,this.routerState.root.component=this.rootComponentType}setTransition(Ce){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),Ce))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(Ce=>{const Je="popstate"===Ce.type?"popstate":"hashchange";"popstate"===Je&&setTimeout(()=>{var ct;const Ot={replaceUrl:!0},qt=(null===(ct=Ce.state)||void 0===ct?void 0:ct.navigationId)?Ce.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(Ce.url);this.scheduleNavigation(ii,Je,qt,Ot)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(Ce){this.events.next(Ce)}resetConfig(Ce){na(Ce),this.config=Ce.map(Wa),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(Ce,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,De,Ce,Je,ct){if(0===Ce.length)return Sr(De.root,De.root,De,Je,ct);const Ot=function(Ge){if("string"==typeof Ge[0]&&1===Ge.length&&"/"===Ge[0])return new qn(!0,0,Ge);let De=0,Ce=!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?Ce=!0:".."===ii?De++:""!=ii&&ct.push(ii))}),ct):[...ct,Ot]},[]);return new qn(Ce,De,Je)}(Ce);if(Ot.toRoot())return Sr(De.root,new Ee([],{}),De,Je,ct);const qt=function(Ge,De,Ce){if(Ge.isAbsolute)return new ba(De.root,!0,0);if(-1===Ce.snapshot._lastPathIndex){const Ot=Ce.snapshot._urlSegment;return new ba(Ot,Ot===De.root,0)}const Je=Fi(Ge.commands[0])?0:1;return function(Ge,De,Ce){let Je=Ge,ct=De,Ot=Ce;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)}(Ce.snapshot._urlSegment,Ce.snapshot._lastPathIndex+Je,Ge.numberOfDoubleDots)}(Ot,De,Ge),ii=qt.processChildren?rr(qt.segmentGroup,qt.index,Ot.commands):is(qt.segmentGroup,qt.index,Ot.commands);return Sr(qt.segmentGroup,ii,De,Je,ct)}(on,this.currentUrlTree,Ce,xn,null!=jn?jn:null)}navigateByUrl(Ce,Je={skipLocationChange:!1}){const ct=Jr(Ce)?Ce:this.parseUrl(Ce),Ot=this.urlHandlingStrategy.merge(ct,this.rawUrlTree);return this.scheduleNavigation(Ot,"imperative",null,Je)}navigate(Ce,Je={skipLocationChange:!1}){return function(Ge){for(let De=0;De<Ge.length;De++){const Ce=Ge[De];if(null==Ce)throw new Error(`The requested path contains ${Ce} segment at index ${De}`)}}(Ce),this.navigateByUrl(this.createUrlTree(Ce,Je),Je)}serializeUrl(Ce){return this.urlSerializer.serialize(Ce)}parseUrl(Ce){let Je;try{Je=this.urlSerializer.parse(Ce)}catch(ct){Je=this.malformedUriErrorHandler(ct,this.urlSerializer,Ce)}return Je}isActive(Ce,Je){let ct;if(ct=!0===Je?Object.assign({},fn):!1===Je?Object.assign({},kn):Je,Jr(Ce))return ti(this.currentUrlTree,Ce,ct);const Ot=this.parseUrl(Ce);return ti(this.currentUrlTree,Ot,ct)}removeEmptyProps(Ce){return Object.keys(Ce).reduce((Je,ct)=>{const Ot=Ce[ct];return null!=Ot&&(Je[ct]=Ot),Je},{})}processNavigations(){this.navigations.subscribe(Ce=>{this.navigated=!0,this.lastSuccessfulId=Ce.id,this.currentPageId=Ce.targetPageId,this.events.next(new B(Ce.id,this.serializeUrl(Ce.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,Ce.resolve(!0)},Ce=>{this.console.warn(`Unhandled Navigation Error: ${Ce}`)})}scheduleNavigation(Ce,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()===Ce.toString(),Bn=jn.id===(null===(ii=this.currentNavigation)||void 0===ii?void 0:ii.id);if(xn&&Xn&&Bn)return Promise.resolve(!0);let ss,qa,Ns;qt?(ss=qt.resolve,qa=qt.reject,Ns=qt.promise):Ns=new Promise((os,Fs)=>{ss=os,qa=Fs});const Ba=++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:Ba,targetPageId:ys,source:Je,restoredState:ct,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:Ce,extras:Ot,resolve:ss,reject:qa,promise:Ns,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ns.catch(os=>Promise.reject(os))}setBrowserUrl(Ce,Je){const ct=this.urlSerializer.serialize(Ce),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(Ce,Je=!1){var ct,Ot;if("computed"===this.canceledNavigationResolution){const qt=this.currentPageId-Ce.targetPageId;"popstate"!==Ce.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(Ce),this.browserUrlTree=Ce.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(qt)}else"replace"===this.canceledNavigationResolution&&(Je&&this.resetState(Ce),this.resetUrlToCurrentUrlTree())}resetState(Ce){this.routerState=Ce.currentRouterState,this.currentUrlTree=Ce.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,Ce.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(Ce,Je){const ct=new te(Ce.id,this.serializeUrl(Ce.extractedUrl),Je);this.triggerEvent(ct),Ce.resolve(!1)}generateNgRouterState(Ce,Je){return"computed"===this.canceledNavigationResolution?{navigationId:Ce,\u0275routerPageId:Je}:{navigationId:Ce}}}return Ge.\u0275fac=function(Ce){e.$Z()},Ge.\u0275prov=e.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})();function Xr(Ge){return"imperative"!==Ge}let ca=(()=>{class Ge{constructor(Ce,Je,ct,Ot,qt){this.router=Ce,this.route=Je,this.tabIndexAttribute=ct,this.renderer=Ot,this.el=qt,this.commands=null,this.onChanges=new G.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(Ce){if(null!=this.tabIndexAttribute)return;const Je=this.renderer,ct=this.el.nativeElement;null!==Ce?Je.setAttribute(ct,"tabindex",Ce):Je.removeAttribute(ct,"tabindex")}ngOnChanges(Ce){this.onChanges.next(this)}set routerLink(Ce){null!=Ce?(this.commands=Array.isArray(Ce)?Ce:[Ce],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const Ce={skipLocationChange:ps(this.skipLocationChange),replaceUrl:ps(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Ce),!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(Ce){return new(Ce||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(Ce,Je){1&Ce&&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(Ce,Je,ct){this.router=Ce,this.route=Je,this.locationStrategy=ct,this.commands=null,this.href=null,this.onChanges=new G.x,this.subscription=Ce.events.subscribe(Ot=>{Ot instanceof B&&this.updateTargetUrlAndHref()})}set routerLink(Ce){this.commands=null!=Ce?Array.isArray(Ce)?Ce:[Ce]:null}ngOnChanges(Ce){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(Ce,Je,ct,Ot,qt){if(0!==Ce||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(Ce){return new(Ce||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(Ce,Je){1&Ce&&e.NdJ("click",function(Ot){return Je.onClick(Ot.button,Ot.ctrlKey,Ot.shiftKey,Ot.altKey,Ot.metaKey)}),2&Ce&&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(Ce,Je,ct,Ot,qt,ii){this.router=Ce,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=Ce.events.subscribe(Ti=>{Ti instanceof B&&this.update()})}ngAfterContentInit(){(0,T.of)(this.links.changes,this.linksWithHrefs.changes,(0,T.of)(null)).pipe((0,r.J)()).subscribe(Ce=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var Ce;null===(Ce=this.linkInputChangesSubscription)||void 0===Ce||Ce.unsubscribe();const Je=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(ct=>!!ct).map(ct=>ct.onChanges);this.linkInputChangesSubscription=(0,O.D)(Je).pipe((0,r.J)()).subscribe(ct=>{this.isActive!==this.isLinkActive(this.router)(ct)&&this.update()})}set routerLinkActive(Ce){const Je=Array.isArray(Ce)?Ce:Ce.split(" ");this.classes=Je.filter(ct=>!!ct)}ngOnChanges(Ce){this.update()}ngOnDestroy(){var Ce;this.routerEventsSubscription.unsubscribe(),null===(Ce=this.linkInputChangesSubscription)||void 0===Ce||Ce.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const Ce=this.hasActiveLinks();this.isActive!==Ce&&(this.isActive=Ce,this.cdr.markForCheck(),this.classes.forEach(Je=>{Ce?this.renderer.addClass(this.element.nativeElement,Je):this.renderer.removeClass(this.element.nativeElement,Je)}),this.isActiveChange.emit(Ce))})}isLinkActive(Ce){const Je=function(Ge){return!!Ge.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ct=>!!ct.urlTree&&Ce.isActive(ct.urlTree,Je)}hasActiveLinks(){const Ce=this.isLinkActive(this.router);return this.link&&Ce(this.link)||this.linkWithHref&&Ce(this.linkWithHref)||this.links.some(Ce)||this.linksWithHrefs.some(Ce)}}return Ge.\u0275fac=function(Ce){return new(Ce||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(Ce,Je,ct){if(1&Ce&&(e.Suo(ct,ca,5),e.Suo(ct,Wn,5)),2&Ce){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 js{}class vs{preload(De,Ce){return(0,T.of)(null)}}let Il=(()=>{class Ge{constructor(Ce,Je,ct,Ot){this.router=Ce,this.injector=ct,this.preloadingStrategy=Ot,this.loader=new Or(ct,Je,Ti=>Ce.triggerEvent(new Ae(Ti)),Ti=>Ce.triggerEvent(new le(Ti)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,W.h)(Ce=>Ce instanceof B),(0,_.b)(()=>this.preload())).subscribe(()=>{})}preload(){const Ce=this.injector.get(e.h0i);return this.processRoutes(Ce,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(Ce,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(Ce,Ot)):Ot.children&&ct.push(this.processRoutes(Ce,Ot.children));return(0,O.D)(ct).pipe((0,r.J)(),(0,y.U)(Ot=>{}))}preloadConfig(Ce,Je){return this.preloadingStrategy.preload(Je,()=>(Je._loadedConfig?(0,T.of)(Je._loadedConfig):this.loader.load(Ce.injector,Je)).pipe((0,L.z)(Ot=>(Je._loadedConfig=Ot,this.processRoutes(Ot.module,Ot.routes)))))}}return Ge.\u0275fac=function(Ce){return new(Ce||Ge)(e.LFG(Pn),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(js))},Ge.\u0275prov=e.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})(),$o=(()=>{class Ge{constructor(Ce,Je,ct={}){this.router=Ce,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(Ce=>{Ce instanceof F?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=Ce.navigationTrigger,this.restoredId=Ce.restoredState?Ce.restoredState.navigationId:0):Ce instanceof B&&(this.lastId=Ce.id,this.scheduleScrollEvent(Ce,this.router.parseUrl(Ce.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(Ce=>{Ce instanceof ue&&(Ce.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(Ce.position):Ce.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(Ce.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(Ce,Je){this.router.triggerEvent(new ue(Ce,"popstate"===this.lastSource?this.store[this.restoredId]:null,Je))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ge.\u0275fac=function(Ce){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,De,Ce,Je,ct,Ot,qt={},ii,Ti){const on=new Pn(null,Ge,De,Ce,Je,ct,nt(Ot));return ii&&(on.urlHandlingStrategy=ii),Ti&&(on.routeReuseStrategy=Ti),function(Ge,De){Ge.errorHandler&&(De.errorHandler=Ge.errorHandler),Ge.malformedUriErrorHandler&&(De.malformedUriErrorHandler=Ge.malformedUriErrorHandler),Ge.onSameUrlNavigation&&(De.onSameUrlNavigation=Ge.onSameUrlNavigation),Ge.paramsInheritanceStrategy&&(De.paramsInheritanceStrategy=Ge.paramsInheritanceStrategy),Ge.relativeLinkResolution&&(De.relativeLinkResolution=Ge.relativeLinkResolution),Ge.urlUpdateStrategy&&(De.urlUpdateStrategy=Ge.urlUpdateStrategy),Ge.canceledNavigationResolution&&(De.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,dr,b.Ye,e.zs3,e.Sil,wr,Cs,[class{},new e.FiY],[class{},new e.FiY]]},dr,{provide:at,useFactory:function(Ge){return Ge.routerState.root},deps:[Pn]},Il,vs,class{preload(De,Ce){return Ce().pipe((0,u.K)(()=>(0,T.of)(null)))}},{provide:Cs,useValue:{enableTracing:!1}}];function $c(){return new e.PXZ("Router",Pn)}let e1=(()=>{class Ge{constructor(Ce,Je){}static forRoot(Ce,Je){return{ngModule:Ge,providers:[dc,_o(Ce),{provide:kl,useFactory:el,deps:[[Pn,new e.FiY,new e.tp0]]},{provide:Cs,useValue:Je||{}},{provide:b.S$,useFactory:Pl,deps:[b.lw,[new e.tBr(b.mr),new e.FiY],Cs]},{provide:$o,useFactory:ko,deps:[Pn,b.EM,Cs]},{provide:js,useExisting:Je&&Je.preloadingStrategy?Je.preloadingStrategy:vs},{provide:e.PXZ,multi:!0,useFactory:$c},[tl,{provide:e.ip1,multi:!0,useFactory:so,deps:[tl]},{provide:vo,useFactory:il,deps:[tl]},{provide:e.tb,multi:!0,useExisting:vo}]]}}static forChild(Ce){return{ngModule:Ge,providers:[_o(Ce)]}}}return Ge.\u0275fac=function(Ce){return new(Ce||Ge)(e.LFG(kl,8),e.LFG(Pn,8))},Ge.\u0275mod=e.oAB({type:Ge}),Ge.\u0275inj=e.cJS({}),Ge})();function ko(Ge,De,Ce){return Ce.scrollOffset&&De.setOffset(Ce.scrollOffset),new $o(Ge,De,Ce)}function Pl(Ge,De,Ce={}){return Ce.useHash?new b.Do(Ge,De):new b.b0(Ge,De)}function el(Ge){return"guarded"}function _o(Ge){return[{provide:e.deG,multi:!0,useValue:Ge},{provide:wr,multi:!0,useValue:Ge}]}let tl=(()=>{class Ge{constructor(Ce){this.injector=Ce,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new G.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,T.of)(null):(this.initNavigation=!0,Je(!0),this.resultOfPreactivationDone),Ot.initialNavigation()):Je(!0),ct})}bootstrapListener(Ce){const Je=this.injector.get(Cs),ct=this.injector.get(Il),Ot=this.injector.get($o),qt=this.injector.get(Pn),ii=this.injector.get(e.z2F);Ce===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(Ce){return new(Ce||Ge)(e.LFG(e.zs3))},Ge.\u0275prov=e.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})();function so(Ge){return Ge.appInitializer.bind(Ge)}function il(Ge){return Ge.bootstrapListener.bind(Ge)}const vo=new e.OlP("Router Initializer")},9444:(Ue,K,m)=>{"use strict";m.d(K,{BN:()=>Jt,uH:()=>In});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 M(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 C(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){C(tt,ri,It[ri])})}return tt}function R(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 G={},W={};try{"undefined"!=typeof window&&(G=window),"undefined"!=typeof document&&(W=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&performance}catch(tt){}var fe=(G.navigator||{}).userAgent,de=void 0===fe?"":fe,ne=G,se=W,a=!!se.documentElement&&!!se.head&&"function"==typeof se.addEventListener&&"function"==typeof se.createElement,u=(~de.indexOf("MSIE")||de.indexOf("Trident/"),"___FONT_AWESOME___"),I="svg-inline--fa",le=[1,2,3,4,5,6,7,8,9,10],We=le.concat([11,12,13,14,15,16,17,18,19,20]),Ne={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ue=(["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",Ne.GROUP,Ne.SWAP_OPACITY,Ne.PRIMARY,Ne.SECONDARY].concat(le.map(function(tt){return"".concat(tt,"x")})).concat(We.map(function(tt){return"w-".concat(tt)})),ne.FontAwesomeConfig||{});se&&"function"==typeof se.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=R(tt,2),zt=Et[1],ri=function(tt){return""===tt||"false"!==tt&&("true"===tt||tt)}(function(tt){var Et=se.querySelector("script["+tt+"]");if(Et)return Et.getAttribute(tt)}(Et[0]));null!=ri&&(ue[zt]=ri)});var he=c({},{familyPrefix:"fa",replacementClass:I,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},ue);he.autoReplaceSvg||(he.observeMutations=!1);var Me=c({},he);ne.FontAwesomeConfig=Me;var ze=ne||{};ze[u]||(ze[u]={}),ze[u].styles||(ze[u].styles={}),ze[u].hooks||(ze[u].hooks={}),ze[u].shims||(ze[u].shims=[]);var ht=ze[u],it=[];a&&((se.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(se.readyState)||se.addEventListener("DOMContentLoaded",function tt(){se.removeEventListener("DOMContentLoaded",tt),it.map(function(Et){return Et()})}));var si,wt="pending",Bt="settled",Nt="fulfilled",Vt="rejected",Oi=function(){},jt="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,ti="undefined"==typeof setImmediate?setTimeout:setImmediate,Ri=[];function di(){for(var tt=0;tt<Ri.length;tt++)Ri[tt][0](Ri[tt][1]);Ri=[],si=!1}function He(tt,Et){Ri.push([tt,Et]),si||(si=!0,ti(di,0))}function V(tt){var Et=tt.owner,It=Et._state,zt=Et._data,ri=tt[It],vi=tt.then;if("function"==typeof ri){It=Nt;try{zt=ri(zt)}catch(Mi){$t(vi,Mi)}}ve(vi,zt)||(It===Nt&&Ee(vi,zt),It===Vt&&$t(vi,zt))}function ve(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):Ee(tt,ri))},function(ri){It||(It=!0,$t(tt,ri))}),!0}}catch(ri){return It||$t(tt,ri),!0}return!1}function Ee(tt,Et){(tt===Et||!ve(tt,Et))&&et(tt,Et)}function et(tt,Et){tt._state===wt&&(tt._state=Bt,tt._data=Et,He(Xt,tt))}function $t(tt,Et){tt._state===wt&&(tt._state=Bt,tt._data=Et,He(lt,tt))}function Rt(tt){tt._then=tt._then.forEach(V)}function Xt(tt){tt._state=Nt,Rt(tt)}function lt(tt){tt._state=Vt,Rt(tt),!tt._handled&&jt&&global.process.emit("unhandledRejection",tt._data,tt)}function Re(tt){global.process.emit("rejectionHandled",tt)}function Be(tt){if("function"!=typeof tt)throw new TypeError("Promise resolver "+tt+" is not a function");if(!(this instanceof Be))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){Ee(Et,ri)},zt)}catch(ri){zt(ri)}}(tt,this)}Be.prototype={constructor:Be,_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&&He(Re,this)),this._state===Nt||this._state===Vt?He(V,zt):this._then.push(zt),zt.then},catch:function(Et){return this.then(null,Et)}},Be.all=function(tt){if(!Array.isArray(tt))throw new TypeError("You must pass an array to Promise.all().");return new Be(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)})},Be.race=function(tt){if(!Array.isArray(tt))throw new TypeError("You must pass an array to Promise.race().");return new Be(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)})},Be.resolve=function(tt){return tt&&"object"===t(tt)&&tt.constructor===Be?tt:new Be(function(Et){Et(tt)})},Be.reject=function(tt){return new Be(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 vt(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 me(tt){return"g"===tt.tag?tt.children:[tt]}function Pi(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,Tn=tt.extra,Vn=tt.watchable,wr=void 0!==Vn&&Vn,Or=zt.found?zt:It,Ar=Or.width,Yn=Or.height,_r="fak"===ri,Bi=_r?"":"fa-w-".concat(Math.ceil(Ar/Yn*16)),an=[Me.replacementClass,vi?"".concat(Me.familyPrefix,"-").concat(vi):"",Bi].filter(function(Wn){return-1===Tn.classes.indexOf(Wn)}).filter(function(Wn){return""!==Wn||!!Wn}).concat(Tn.classes).join(" "),fn={children:[],attributes:c({},Tn.attributes,{"data-prefix":ri,"data-icon":vi,class:an,role:Tn.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(Ar," ").concat(Yn)})},kn=_r&&!~Tn.classes.indexOf("fa-fw")?{width:"".concat(Ar/Yn*16*.0625,"em")}:{};wr&&(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({},kn,Tn.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,Tn=mt({transform:tt.transform,containerWidth:ri.width,iconWidth:zt.width}),Vn={tag:"rect",attributes:c({},qe,{fill:"white"})},wr=ji.children?{children:ji.children.map(vt)}:{},Or={tag:"g",attributes:c({},Tn.inner),children:[vt(c({tag:ji.tag,attributes:c({},ji.attributes,Tn.path)},wr))]},Ar={tag:"g",attributes:c({},Tn.outer),children:[Or]},Yn="mask-".concat(vi||Si()),_r="clip-".concat(vi||Si()),Bi={tag:"mask",attributes:c({},qe,{id:Yn,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[Vn,Ar]},an={tag:"defs",children:[{tag:"clipPath",attributes:{id:_r},children:me(yn)},Bi]};return Et.push(an,{tag:"rect",attributes:c({fill:"currentColor","clip-path":"url(#".concat(_r,")"),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(Me.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,Rn=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(Rn,function(zt,ri){var Mi=ri[1];return"far"===Mi&&!It&&(Mi="fas"),zt[ri[0]]={prefix:Mi,iconName:ri[2]},zt},{})};function Va(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 dr(tt){this.name="MissingIcon",this.message=tt||"Icon unavailable",this.stack=(new Error).stack}(dr.prototype=Object.create(Error.prototype)).constructor=dr;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=R(tt.slice(4),1)[0];return{found:!0,width:Et,height:It,icon:Array.isArray(vi)?{tag:"g",attributes:{class:"".concat(Me.familyPrefix,"-").concat(Ne.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Me.familyPrefix,"-").concat(Ne.SECONDARY),fill:"currentColor",d:vi[0]}},{tag:"path",attributes:{class:"".concat(Me.familyPrefix,"-").concat(Ne.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 bt=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&&M(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(){Me.autoAddCss&&!gr&&(function(tt){if(tt&&a){var Et=se.createElement("style");Et.setAttribute("type","text/css"),Et.innerHTML=tt;for(var It=se.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)}se.head.insertBefore(Et,zt)}}(function(){var Et=I,It=Me.familyPrefix,zt=Me.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}()),gr=!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=se.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 Va(wn.definitions,It,zt)||Va(ht.styles,It,zt)}var tt,wn=new bt,gr=!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,Tn=void 0===yn?null:yn,Vn=Et.titleId,wr=void 0===Vn?null:Vn,Or=Et.classes,Ar=void 0===Or?[]:Or,Yn=Et.attributes,_r=void 0===Yn?{}:Yn,Bi=Et.styles,an=void 0===Bi?{}:Bi;if(tt){var fn=tt.prefix,kn=tt.iconName,Pn=tt.icon;return xi(c({type:"icon"},tt),function(){return Wt(),Me.autoA11y&&(Tn?_r["aria-labelledby"]="".concat(Me.replacementClass,"-title-").concat(wr||Si()):(_r["aria-hidden"]="true",_r.focusable="false")),Pi({icons:{main:ra(Pn),mask:Ei?ra(Ei.icon):{found:!1,width:null,height:null,icon:{}}},prefix:fn,iconName:kn,transform:c({},At,zt),symbol:vi,title:Tn,maskId:hn,titleId:wr,extra:{attributes:_r,styles:an,classes:Ar}})})}},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=["*"],xt=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:[...xt(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})(),In=(()=>{class tt{}return tt.\u0275fac=function(It){return new(It||tt)},tt.\u0275mod=e.oAB({type:tt}),tt.\u0275inj=e.cJS({}),tt})()},6642:(Ue,K,m)=>{"use strict";m.d(K,{eX:()=>Pe,sQ:()=>Oi,GW:()=>a,l4:()=>Fe});var e=m(5620),t=m(6451),v=m(8306),M=m(7579),s=m(515),C=m(9646),c=m(2843),R=m(576);class O{constructor(Se,V,ve){this.kind=Se,this.value=V,this.error=ve,this.hasValue="N"===Se}observe(Se){return T(this,Se)}do(Se,V,ve){const{kind:Ee,value:et,error:$t}=this;return"N"===Ee?null==Se?void 0:Se(et):"E"===Ee?null==V?void 0:V($t):null==ve?void 0:ve()}accept(Se,V,ve){var Ee;return(0,R.m)(null===(Ee=Se)||void 0===Ee?void 0:Ee.next)?this.observe(Se):this.do(Se,V,ve)}toObservable(){const{kind:Se,value:V,error:ve}=this,Ee="N"===Se?(0,C.of)(V):"E"===Se?(0,c._)(()=>ve):"C"===Se?s.E:0;if(!Ee)throw new TypeError(`Unexpected notification kind ${Se}`);return Ee}static createNext(Se){return new O("N",Se)}static createError(Se){return new O("E",void 0,Se)}static createComplete(){return O.completeNotification}}function T(He,Se){var V,ve,Ee;const{kind:et,value:$t,error:Rt}=He;if("string"!=typeof et)throw new TypeError('Invalid notification, missing "kind"');"N"===et?null===(V=Se.next)||void 0===V||V.call(Se,$t):"E"===et?null===(ve=Se.error)||void 0===ve||ve.call(Se,Rt):null===(Ee=Se.complete)||void 0===Ee||Ee.call(Se)}O.completeNotification=new O("C");var P=m(4482),S=m(5403),w=m(8421);function U(He,Se,V,ve){return(0,P.e)((Ee,et)=>{let $t;Se&&"function"!=typeof Se?({duration:V,element:$t,connector:ve}=Se):$t=Se;const Rt=new Map,Xt=rt=>{Rt.forEach(rt),rt(et)},lt=rt=>Xt(ot=>ot.error(rt)),Re=new G(et,rt=>{try{const ot=He(rt);let At=Rt.get(ot);if(!At){Rt.set(ot,At=ve?ve():new M.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),V){const Ut=new S.Q(At,()=>{At.complete(),null==Ut||Ut.unsubscribe()},void 0,void 0,()=>Rt.delete(ot));Re.add((0,w.Xf)(V(li)).subscribe(Ut))}}At.next($t?$t(rt):rt)}catch(ot){lt(ot)}},()=>Xt(rt=>rt.complete()),lt,()=>Rt.clear());Ee.subscribe(Re)})}class G extends S.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var W=m(4004);function ee(He,Se){return Se?V=>V.pipe(ee((ve,Ee)=>(0,w.Xf)(He(ve,Ee)).pipe((0,W.U)((et,$t)=>Se(ve,et,Ee,$t))))):(0,P.e)((V,ve)=>{let Ee=0,et=null,$t=!1;V.subscribe(new S.Q(ve,Rt=>{et||(et=new S.Q(ve,void 0,()=>{et=null,$t&&ve.complete()}),(0,w.Xf)(He(Rt,Ee++)).subscribe(et))},()=>{$t=!0,!et&&ve.complete()}))})}var _e=m(8502),fe=m(262),de=m(9300),ne=m(5577),se=m(5698),oe=m(5e3);const y={dispatch:!0,useEffectsErrorHandler:!0},i="__@ngrx/effects_create__";function a(He,Se){const V=He(),ve=Object.assign(Object.assign({},y),Se);return Object.defineProperty(V,i,{value:ve}),V}function p(He){return Object.getOwnPropertyNames(He).filter(ve=>!(!He[ve]||!He[ve].hasOwnProperty(i))&&He[ve][i].hasOwnProperty("dispatch")).map(ve=>Object.assign({propertyName:ve},He[ve][i]))}function u(He){return Object.getPrototypeOf(He)}const _="__@ngrx/effects__";function I(He){return(0,e.qC)(b,u)(He)}function b(He){return function(He){return He.constructor.hasOwnProperty(_)}(He)?He.constructor[_]:[]}function B(He,Se,V){const ve=u(He).constructor.name,Ee=function(He){return[I,p].reduce((V,ve)=>V.concat(ve(He)),[])}(He).map(({propertyName:et,dispatch:$t,useEffectsErrorHandler:Rt})=>{const Xt="function"==typeof He[et]?He[et]():He[et],lt=Rt?V(Xt,Se):Xt;return!1===$t?lt.pipe((0,_e.l)()):lt.pipe((0,P.e)((He,Se)=>{He.subscribe(new S.Q(Se,V=>{Se.next(O.createNext(V))},()=>{Se.next(O.createComplete()),Se.complete()},V=>{Se.next(O.createError(V)),Se.complete()}))})).pipe((0,W.U)(Be=>({effect:He[et],notification:Be,propertyName:et,sourceName:ve,sourceInstance:He})))});return(0,t.T)(...Ee)}function xe(He,Se,V=10){return He.pipe((0,fe.K)(ve=>(Se&&Se.handleError(ve),V<=1?He:xe(He,Se,V-1))))}let Pe=(()=>{class He extends v.y{constructor(V){super(),V&&(this.source=V)}lift(V){const ve=new He;return ve.source=this,ve.operator=V,ve}}return He.\u0275fac=function(V){return new(V||He)(oe.LFG(e.Y$))},He.\u0275prov=oe.Yz7({token:He,factory:He.\u0275fac}),He})();function Fe(...He){return(0,de.h)(Se=>He.some(V=>"string"==typeof V?V===Se.type:V.type===Se.type))}function ue(He){return Te(He,"ngrxOnInitEffects")}function Te(He,Se){return He&&Se in He&&"function"==typeof He[Se]}const ke=new oe.OlP("@ngrx/effects Internal Root Guard"),Y=new oe.OlP("@ngrx/effects User Provided Effects"),X=new oe.OlP("@ngrx/effects Internal Root Effects"),he=new oe.OlP("@ngrx/effects Root Effects"),Me=new oe.OlP("@ngrx/effects Internal Feature Effects"),ze=new oe.OlP("@ngrx/effects Feature Effects"),ht=new oe.OlP("@ngrx/effects Effects Error Handler");let it=(()=>{class He extends M.x{constructor(V,ve){super(),this.errorHandler=V,this.effectsErrorHandler=ve}addEffects(V){this.next(V)}toActions(){return this.pipe(U(u),(0,ne.z)(V=>V.pipe(U(ft))),(0,ne.z)(V=>{const ve=V.pipe(ee(et=>function(He,Se){return V=>{const ve=B(V,He,Se);return function(He){return Te(He,"ngrxOnRunEffects")}(V)?V.ngrxOnRunEffects(ve):ve}}(this.errorHandler,this.effectsErrorHandler)(et)),(0,W.U)(et=>(function(He,Se){if("N"===He.notification.kind){const V=He.notification.value;!function(He){return"function"!=typeof He&&He&&He.type&&"string"==typeof He.type}(V)&&Se.handleError(new Error(`Effect ${function({propertyName:He,sourceInstance:Se,sourceName:V}){const ve="function"==typeof Se[He];return`"${V}.${String(He)}${ve?"()":""}"`}(He)} dispatched an invalid action: ${function(He){try{return JSON.stringify(He)}catch(Se){return He}}(V)}`))}}(et,this.errorHandler),et.notification)),(0,de.h)(et=>"N"===et.kind&&null!=et.value),(0,P.e)((He,Se)=>{He.subscribe(new S.Q(Se,V=>T(V,Se)))})),Ee=V.pipe((0,se.q)(1),(0,de.h)(ue),(0,W.U)(et=>et.ngrxOnInitEffects()));return(0,t.T)(ve,Ee)}))}}return He.\u0275fac=function(V){return new(V||He)(oe.LFG(oe.qLn),oe.LFG(ht))},He.\u0275prov=oe.Yz7({token:He,factory:He.\u0275fac}),He})();function ft(He){return function(He){return Te(He,"ngrxOnIdentifyEffects")}(He)?He.ngrxOnIdentifyEffects():""}let st=(()=>{class He{constructor(V,ve){this.effectSources=V,this.store=ve,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return He.\u0275fac=function(V){return new(V||He)(oe.LFG(it),oe.LFG(e.yh))},He.\u0275prov=oe.Yz7({token:He,factory:He.\u0275fac}),He})();const wt="@ngrx/effects/init";(0,e.PH)(wt);let Nt=(()=>{class He{constructor(V,ve,Ee,et,$t,Rt,Xt){this.sources=V,ve.start(),et.forEach(lt=>V.addEffects(lt)),Ee.dispatch({type:wt})}addEffects(V){this.sources.addEffects(V)}}return He.\u0275fac=function(V){return new(V||He)(oe.LFG(it),oe.LFG(st),oe.LFG(e.yh),oe.LFG(he),oe.LFG(e.cr,8),oe.LFG(e.CK,8),oe.LFG(ke,8))},He.\u0275mod=oe.oAB({type:He}),He.\u0275inj=oe.cJS({}),He})(),Vt=(()=>{class He{constructor(V,ve,Ee,et){ve.forEach($t=>$t.forEach(Rt=>V.addEffects(Rt)))}}return He.\u0275fac=function(V){return new(V||He)(oe.LFG(Nt),oe.LFG(ze),oe.LFG(e.cr,8),oe.LFG(e.CK,8))},He.\u0275mod=oe.oAB({type:He}),He.\u0275inj=oe.cJS({}),He})(),Oi=(()=>{class He{static forFeature(V=[]){return{ngModule:Vt,providers:[V,{provide:Me,multi:!0,useValue:V},{provide:Y,multi:!0,useValue:[]},{provide:ze,multi:!0,useFactory:jt,deps:[oe.zs3,Me,Y]}]}}static forRoot(V=[]){return{ngModule:Nt,providers:[{provide:ht,useValue:xe},st,it,Pe,V,{provide:X,useValue:[V]},{provide:ke,useFactory:Ri,deps:[[st,new oe.FiY,new oe.tp0],[X,new oe.PiD]]},{provide:Y,multi:!0,useValue:[]},{provide:he,useFactory:jt,deps:[oe.zs3,X,Y]}]}}}return He.\u0275fac=function(V){return new(V||He)},He.\u0275mod=oe.oAB({type:He}),He.\u0275inj=oe.cJS({}),He})();function jt(He,Se,V){const ve=[];for(const Ee of Se)ve.push(...Ee);for(const Ee of V)ve.push(...Ee);return function(He,Se){return Se.map(V=>He.get(V))}(He,ve)}function Ri(He,Se){if((1!==Se.length||0!==Se[0].length)&&He)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(Ue){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 Ue?Ue():Ue,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(Ue,K){return Ue.filter(m=>K.indexOf(m)<0)}function unliftState(Ue){const{computedStates:K,currentStateIndex:m}=Ue;if(m>=K.length){const{state:t}=K[K.length-1];return t}const{state:e}=K[m];return e}function unliftAction(Ue){return Ue.actionsById[Ue.nextActionId-1]}function liftAction(Ue){return new PerformAction(Ue,+Date.now())}function sanitizeActions(Ue,K){return Object.keys(K).reduce((m,e)=>{const t=Number(e);return m[t]=sanitizeAction(Ue,K[t],t),m},{})}function sanitizeAction(Ue,K,m){return Object.assign(Object.assign({},K),{action:Ue(K.action,m)})}function sanitizeStates(Ue,K){return K.map((m,e)=>({state:sanitizeState(Ue,m.state,e),error:m.error}))}function sanitizeState(Ue,K,m){return Ue(K,m)}function shouldFilterActions(Ue){return Ue.predicate||Ue.actionsSafelist||Ue.actionsBlocklist}function filterLiftedState(Ue,K,m,e){const t=[],v={},M=[];return Ue.stagedActionIds.forEach((s,C)=>{const c=Ue.actionsById[s];!c||C&&isActionFiltered(Ue.computedStates[C],c,K,m,e)||(v[s]=c,t.push(s),M.push(Ue.computedStates[C]))}),Object.assign(Object.assign({},Ue),{stagedActionIds:t,actionsById:v,computedStates:M})}function isActionFiltered(Ue,K,m,e,t){const v=m&&!m(Ue,K.action),M=e&&!K.action.type.match(e.map(C=>escapeRegExp(C)).join("|")),s=t&&K.action.type.match(t.map(C=>escapeRegExp(C)).join("|"));return v||M||s}function escapeRegExp(Ue){return Ue.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(Ue,K,m,e,t){if(e)return{state:m,error:"Interrupted by an error up the chain"};let M,v=m;try{v=Ue(m,K)}catch(s){M=s.toString(),t.handleError(s)}return{state:v,error:M}}function recomputeStates(Ue,K,m,e,t,v,M,s,C){if(K>=Ue.length&&Ue.length===v.length)return Ue;const c=Ue.slice(0,K),R=v.length-(C?1:0);for(let o=K;o<R;o++){const O=v[o],T=t[O].action,P=c[o-1],S=P?P.state:e,D=P?P.error:void 0,U=M.indexOf(O)>-1?P:computeNextEntry(m,T,S,D,s);c.push(U)}return C&&c.push(Ue[Ue.length-1]),c}function liftInitialState(Ue,K){return{monitorState:K(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:Ue,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(Ue,K,m,e,t={}){return v=>(M,s)=>{let{monitorState:C,actionsById:c,nextActionId:R,stagedActionIds:o,skippedActionIds:O,committedState:T,currentStateIndex:P,computedStates:S,isLocked:D,isPaused:w}=M||K;function U(ee){let ie=ee,_e=o.slice(1,ie+1);for(let fe=0;fe<_e.length;fe++){if(S[fe+1].error){ie=fe,_e=o.slice(1,ie+1);break}delete c[_e[fe]]}O=O.filter(fe=>-1===_e.indexOf(fe)),o=[0,...o.slice(ie+1)],T=S[ie].state,S=S.slice(ie),P=P>ie?P-ie:0}function G(){c={0:liftAction(INIT_ACTION)},R=1,o=[0],O=[],T=S[P].state,P=0,S=[]}M||(c=Object.create(c));let W=0;switch(s.type){case LOCK_CHANGES:D=s.status,W=1/0;break;case PAUSE_RECORDING:w=s.status,w?(o=[...o,R],c[R]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),R++,W=o.length-1,S=S.concat(S[S.length-1]),P===o.length-2&&P++,W=1/0):G();break;case RESET:c={0:liftAction(INIT_ACTION)},R=1,o=[0],O=[],T=Ue,P=0,S=[];break;case COMMIT:G();break;case ROLLBACK:c={0:liftAction(INIT_ACTION)},R=1,o=[0],O=[],P=0,S=[];break;case TOGGLE_ACTION:{const{id:ee}=s;O=-1===O.indexOf(ee)?[ee,...O]:O.filter(_e=>_e!==ee),W=o.indexOf(ee);break}case SET_ACTIONS_ACTIVE:{const{start:ee,end:ie,active:_e}=s,fe=[];for(let de=ee;de<ie;de++)fe.push(de);O=_e?difference(O,fe):[...O,...fe],W=o.indexOf(ee);break}case JUMP_TO_STATE:P=s.index,W=1/0;break;case JUMP_TO_ACTION:{const ee=o.indexOf(s.actionId);-1!==ee&&(P=ee),W=1/0;break}case SWEEP:o=difference(o,O),O=[],P=Math.min(P,o.length-1);break;case PERFORM_ACTION:{if(D)return M||K;if(w||M&&isActionFiltered(M.computedStates[P],s,t.predicate,t.actionsSafelist,t.actionsBlocklist)){const ie=S[S.length-1];S=[...S.slice(0,-1),computeNextEntry(v,s.action,ie.state,ie.error,m)],W=1/0;break}t.maxAge&&o.length===t.maxAge&&U(1),P===o.length-1&&P++;const ee=R++;c[ee]=s,o=[...o,ee],W=o.length-1;break}case IMPORT_STATE:({monitorState:C,actionsById:c,nextActionId:R,stagedActionIds:o,skippedActionIds:O,committedState:T,currentStateIndex:P,computedStates:S,isLocked:D,isPaused:w}=s.nextLiftedState);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg:W=0,t.maxAge&&o.length>t.maxAge&&(S=recomputeStates(S,W,v,T,c,o,O,m,w),U(o.length-t.maxAge),W=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(S.filter(ie=>ie.error).length>0)W=0,t.maxAge&&o.length>t.maxAge&&(S=recomputeStates(S,W,v,T,c,o,O,m,w),U(o.length-t.maxAge),W=1/0);else{if(!w&&!D){P===o.length-1&&P++;const ie=R++;c[ie]=new PerformAction(s,+Date.now()),o=[...o,ie],W=o.length-1,S=recomputeStates(S,W,v,T,c,o,O,m,w)}S=S.map(ie=>Object.assign(Object.assign({},ie),{state:v(ie.state,RECOMPUTE_ACTION)})),P=o.length-1,t.maxAge&&o.length>t.maxAge&&U(o.length-t.maxAge),W=1/0}break;default:W=1/0}return S=recomputeStates(S,W,v,T,c,o,O,m,w),C=e(C,s),{monitorState:C,actionsById:c,nextActionId:R,stagedActionIds:o,skippedActionIds:O,committedState:T,currentStateIndex:P,computedStates:S,isLocked:D,isPaused:w}}}let DevtoolsDispatcher=(()=>{class Ue extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return Ue.\u0275fac=function(){let K;return function(e){return(K||(K=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(Ue)))(e||Ue)}}(),Ue.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})();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(Ue,K,m){this.config=K,this.dispatcher=m,this.devtoolsExtension=Ue,this.createActionStreams()}notify(Ue,K){if(this.devtoolsExtension)if(Ue.type===PERFORM_ACTION){if(K.isLocked||K.isPaused)return;const m=unliftState(K);if(shouldFilterActions(this.config)&&isActionFiltered(m,Ue,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,Ue,K.nextActionId):Ue;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(Ue=>{const K=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=K,K.init(),K.subscribe(m=>Ue.next(m)),K.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const Ue=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),K=Ue.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.START)),m=Ue.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(s=>s.type===ExtensionActionTypes.STOP)),e=Ue.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)(C=>C.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=Ue.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)),M=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)(()=>M))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(Ue){var K;const m={name:Ue.name,features:Ue.features,serialize:Ue.serialize,autoPause:null!==(K=Ue.autoPause)&&void 0!==K&&K};return!1!==Ue.maxAge&&(m.maxAge=Ue.maxAge),m}sendToReduxDevtools(Ue){try{Ue()}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 Ue{constructor(m,e,t,v,M,s,C,c){const R=liftInitialState(C,c.monitor),o=liftReducerWith(C,R,s,c.monitor,c),O=(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)),T=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(o)),P=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),S=O.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(T),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:G},[W,ee])=>{let ie=ee(G,W);return W.type!==PERFORM_ACTION&&shouldFilterActions(c)&&(ie=filterLiftedState(ie,c.predicate,c.actionsSafelist,c.actionsBlocklist)),v.notify(W,ie),{state:ie,action:W}},{state:R,action:null})).subscribe(({state:G,action:W})=>{P.next(G),W.type===PERFORM_ACTION&&M.next(W.action)}),D=v.start$.subscribe(()=>{this.refresh()}),w=P.asObservable(),U=w.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=D,this.stateSubscription=S,this.dispatcher=m,this.liftedState=w,this.state=U}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 Ue.\u0275fac=function(m){return new(m||Ue)(_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))},Ue.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})();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(Ue,K){return Boolean(Ue)||K.monitor!==noMonitor}function createReduxDevtoolsExtension(){const Ue="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[Ue]?window[Ue]:null}function createStateObservable(Ue){return Ue.state}let StoreDevtoolsModule=(()=>{class Ue{static instrument(m={}){return{ngModule:Ue,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 Ue.\u0275fac=function(m){return new(m||Ue)},Ue.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:Ue}),Ue.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),Ue})()},5620:(Ue,K,m)=>{"use strict";m.d(K,{UO:()=>ee,qg:()=>W,Y6:()=>de,mK:()=>Ae,n$:()=>we,Y$:()=>Ne,FR:()=>ue,yh:()=>X,CK:()=>qe,Aw:()=>vt,cr:()=>be,wb:()=>le,qC:()=>Fe,PH:()=>D,ZF:()=>Xt,Lq:()=>Ki,P1:()=>et,on:()=>Ii,Ky:()=>w});var e=m(5e3),t=m(1135),v=m(8306),M=m(7579),s=m(233),C=m(4004),R=m(5363),o=m(1365),O=m(5026),T=m(1884);const P={};function D(at,Qt){if(P[at]=(P[at]||0)+1,"function"==typeof Qt)return G(at,(...Lt)=>Object.assign(Object.assign({},Qt(...Lt)),{type:at}));switch(Qt?Qt._as:"empty"){case"empty":return G(at,()=>({type:at}));case"props":return G(at,Lt=>Object.assign(Object.assign({},Lt),{type:at}));default:throw new Error("Unexpected config.")}}function w(){return{_as:"props",_p:void 0}}function G(at,Qt){return Object.defineProperty(Qt,"type",{value:at,writable:!1})}const W="@ngrx/store/init";let ee=(()=>{class at extends t.X{constructor(){super({type:W})}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 ie=[ee],_e=new e.OlP("@ngrx/store Internal Root Guard"),fe=new e.OlP("@ngrx/store Internal Initial State"),de=new e.OlP("@ngrx/store Initial State"),ne=new e.OlP("@ngrx/store Reducer Factory"),se=new e.OlP("@ngrx/store Internal Reducer Factory Provider"),oe=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"),L=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"),J=new e.OlP("@ngrx/store User Runtime Checks Config"),F=new e.OlP("@ngrx/store Internal User Runtime Checks Config"),B=new e.OlP("@ngrx/store Internal Runtime Checks"),te=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 Rn=ui[pn],wi=Wi[Rn],Fi=(0,Lt[Rn])(wi,$i);On[Rn]=Fi,An=An||Fi!==wi}return An?On:Wi}}function Fe(...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 q(at,Qt){return Array.isArray(Qt)&&Qt.length>0&&(at=Fe.apply(null,[...Qt,at])),(gt,Lt)=>{const ui=at(gt);return(Ci,Wi)=>ui(Ci=void 0===Ci?Lt:Ci,Wi)}}class we extends v.y{}class Ae extends ee{}const le="@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?Fe(...at):gt=>gt;return(gt,Lt)=>(gt=Qt(gt),(ui,Ci)=>gt(ui=void 0===ui?Lt:ui,Ci))}($i)(Ci,An):q(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:le,features:gt})}ngOnDestroy(){this.complete()}}return at.\u0275fac=function(gt){return new(gt||at)(e.LFG(Ae),e.LFG(de),e.LFG(oe),e.LFG(ne))},at.\u0275prov=e.Yz7({token:at,factory:at.\u0275fac}),at})();const yt=[We,{provide:we,useExisting:We},{provide:Ae,useExisting:ee}];let Ne=(()=>{class at extends M.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=[Ne];class ue extends v.y{}let Te=(()=>{class at extends t.X{constructor(gt,Lt,ui,Ci){super(Ci);const On=gt.pipe((0,R.Q)(s.N)).pipe((0,o.M)(Lt)).pipe((0,O.R)(ke,{state:Ci}));this.stateSubscription=On.subscribe(({state:pn,action:Rn})=>{this.next(pn),ui.next(Rn)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return at.INIT=W,at.\u0275fac=function(gt){return new(gt||at)(e.LFG(ee),e.LFG(we),e.LFG(Ne),e.LFG(de))},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 Y=[Te,{provide:ue,useExisting:Te}];let X=(()=>{class at extends v.y{constructor(gt,Lt,ui){super(),this.actionsObserver=Lt,this.reducerManager=ui,this.source=gt}select(gt,...Lt){return Me.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(ue),e.LFG(ee),e.LFG(We))},at.\u0275prov=e.Yz7({token:at,factory:at.\u0275fac}),at})();const he=[X];function Me(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,C.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,C.U)(Wi=>at(Wi,Qt)))}return Ci.pipe((0,T.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 Nt(at){return"object"==typeof at&&null!==at}function jt(at){return"function"==typeof at}function Se(at,Qt){return at===Qt}function V(at,Qt,gt){for(let Lt=0;Lt<at.length;Lt++)if(!gt(at[Lt],Qt[Lt]))return!0;return!1}function Ee(at,Qt=Se,gt=Se){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(!V(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,...Rn]=Lt;Lt=[...pn,...Rn]}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=Ee(function(pn,Rn){return Qt.stateFn.apply(null,[pn,ui,Rn,$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})}}(Ee)(...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];(Nt(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 Nt(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:F,useValue:at},{provide:J,useFactory:Ke,deps:[F]},{provide:B,deps:[J],useFactory:Si},{provide:r,multi:!0,deps:[B],useFactory:ci},{provide:r,multi:!0,deps:[B],useFactory:ai},{provide:r,multi:!0,deps:[B],useFactory:Vi}]}function Xi(){return[{provide:te,multi:!0,deps:[B],useFactory:mt}]}function Ke(at){return at}function mt(at){if(!at.strictActionTypeUniqueness)return;const Qt=Object.entries(P).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 be=(()=>{class at{constructor(gt,Lt,ui,Ci,Wi,$i){}}return at.\u0275fac=function(gt){return new(gt||at)(e.LFG(ee),e.LFG(we),e.LFG(Ne),e.LFG(X),e.LFG(_e,8),e.LFG(te,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 Rn=Lt.shift()[On];return Object.assign(Object.assign({},An),{reducers:Rn,initialState:Pt(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(be),e.LFG(te,8))},at.\u0275mod=e.oAB({type:at}),at.\u0275inj=e.cJS({}),at})(),vt=(()=>{class at{static forRoot(gt,Lt={}){return{ngModule:be,providers:[{provide:_e,useFactory:Pi,deps:[[X,new e.FiY,new e.tp0]]},{provide:fe,useValue:Lt.initialState},{provide:de,useFactory:Pt,deps:[fe]},{provide:y,useValue:gt},{provide:a,useExisting:gt instanceof e.OlP?gt:y},{provide:oe,deps:[e.zs3,y,[new e.tBr(a)]],useFactory:me},{provide:x,useValue:Lt.metaReducers?Lt.metaReducers:[]},{provide:b,deps:[r,x],useFactory:yi},{provide:se,useValue:Lt.reducerFactory?Lt.reducerFactory:xe},{provide:ne,deps:[se,b],useFactory:q},ie,yt,Ve,Y,he,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:L,multi:!0,useExisting:Lt instanceof e.OlP?Lt:p},{provide:I,multi:!0,deps:[e.zs3,p,[new e.tBr(L)]],useFactory:St},Xi()]}}}return at.\u0275fac=function(gt){return new(gt||at)},at.\u0275mod=e.oAB({type:at}),at.\u0275inj=e.cJS({}),at})();function me(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 Pt(at){return"function"==typeof at?at():at}function yi(at,Qt){return at.concat(Qt)}function Pi(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:(Ue,K,m)=>{"use strict";m.d(K,{uU:()=>o,OF:()=>O});var e=m(5e3),t=m(9808),v=m(655),M=m(3259);function s(T,P){if(1&T&&e._UZ(0,"canvas",1),2&T){const S=e.oxw();e.Q6J("qrCode",S.value)("qrCodeErrorCorrectionLevel",S.errorCorrectionLevel)("qrCodeCenterImageSrc",S.centerImageSrc)("qrCodeCenterImageWidth",S.centerImageSize)("qrCodeCenterImageHeight",S.centerImageSize)("qrCodeMargin",S.margin)("width",S.size)("height",S.size)("darkColor",S.darkColor)("lightColor",S.lightColor)}}const C=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let c=(()=>{class T{constructor(S){this.viewContainerRef=S,this.errorCorrectionLevel=T.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var S,D;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 U=w.getContext("2d");U&&U.clearRect(0,0,U.canvas.width,U.canvas.height);const G=null!==(S=this.errorCorrectionLevel)&&void 0!==S?S:T.DEFAULT_ERROR_CORRECTION_LEVEL,W=C.test(this.darkColor)?this.darkColor:void 0,ee=C.test(this.lightColor)?this.lightColor:void 0;(0,e.X6Q)()&&(!W&&this.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!ee&&this.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield M.toCanvas(w,this.value,{version:this.version,errorCorrectionLevel:G,width:this.width,margin:this.margin,color:{dark:W,light:ee}});const ie=this.centerImageSrc,_e=R(this.centerImageWidth,T.DEFAULT_CENTER_IMAGE_SIZE),fe=R(this.centerImageHeight,T.DEFAULT_CENTER_IMAGE_SIZE);if(ie&&U){this.centerImage||(this.centerImage=new Image(_e,fe)),ie!==(null===(D=this.centerImage)||void 0===D?void 0:D.src)&&(this.centerImage.src=ie),_e!==this.centerImage.width&&(this.centerImage.width=_e),fe!==this.centerImage.height&&(this.centerImage.height=fe);const de=this.centerImage;de.onload=()=>{U.drawImage(de,w.width/2-_e/2,w.height/2-fe/2,_e,fe)}}})}}return T.DEFAULT_ERROR_CORRECTION_LEVEL="M",T.DEFAULT_CENTER_IMAGE_SIZE=40,T.\u0275fac=function(S){return new(S||T)(e.Y36(e.s_b))},T.\u0275dir=e.lG2({type:T,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]}),T})();function R(T,P){return void 0===T||""===T?P:"string"==typeof T?parseInt(T,10):T}let o=(()=>{class T{}return T.\u0275fac=function(S){return new(S||T)},T.\u0275cmp=e.Xpm({type:T,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(S,D){1&S&&e.YNc(0,s,1,10,"canvas",0),2&S&&e.Q6J("ngIf",D.value)},directives:[t.O5,c],encapsulation:2}),T})(),O=(()=>{class T{}return T.\u0275fac=function(S){return new(S||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({imports:[[t.ez]]}),T})()},4946:Ue=>{"use strict";Ue.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:Ue=>{"use strict";Ue.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:Ue=>{"use strict";Ue.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:Ue=>{"use strict";Ue.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:Ue=>{"use strict";Ue.exports={i8:"6.5.4"}},2562:Ue=>{"use strict";Ue.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"}')}},Ue=>{Ue(Ue.s=8990)}]);