/*! For license information please see main.41312a47.js.LICENSE.txt */
(()=>{var e={52631:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r,i,o=n(76697);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=({title:e,titleId:t,...n},s)=>o.createElement("svg",a({width:72,height:96,viewBox:"0 0 72 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:s,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,r||(r=o.createElement("g",{clipPath:"url(#clip0_4011_27601)"},o.createElement("path",{d:"M72 29.3V89.6C72 91.84 72 92.96 71.56 93.82C71.18 94.56 70.56 95.18 69.82 95.56C68.96 96 67.84 96 65.6 96H6.4C4.16 96 3.04 96 2.18 95.56C1.44 95.18 0.82 94.56 0.44 93.82C0 92.96 0 91.84 0 89.6V6.4C0 4.16 0 3.04 0.44 2.18C0.82 1.44 1.44 0.82 2.18 0.44C3.04 0 4.16 0 6.4 0H42.7C44.66 0 45.64 0 46.56 0.22C47.06 0.34 47.54 0.5 48 0.72V17.6C48 19.84 48 20.96 48.44 21.82C48.82 22.56 49.44 23.18 50.18 23.56C51.04 24 52.16 24 54.4 24H71.28C71.5 24.46 71.66 24.94 71.78 25.44C72 26.36 72 27.34 72 29.3Z",fill:"#A5F3FC"}),o.createElement("path",{d:"M68.26 20.26C69.64 21.64 70.32 22.32 70.82 23.14C71 23.42 71.14 23.7 71.28 24H54.4C52.16 24 51.04 24 50.18 23.56C49.44 23.18 48.82 22.56 48.44 21.82C48 20.96 48 19.84 48 17.6V0.719971C48.3 0.859971 48.58 0.999971 48.86 1.17997C49.68 1.67997 50.36 2.35997 51.74 3.73997L68.26 20.26Z",fill:"#06B6D4"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.76 42.16C34.02 41.86 33.16 42.02 32.58 42.6L24 52H18C16.9 52 16 52.9 16 54V66C16 67.1 16.9 68 18 68H24L32.58 77.42C33.16 78 34.02 78.16 34.76 77.86C35.52 77.54 36 76.8 36 76V44C36 43.2 35.52 42.46 34.76 42.16ZM40 46V50C45.52 50 50 54.48 50 60C50 65.52 45.52 70 40 70V74C47.72 74 54 67.72 54 60C54 52.28 47.72 46 40 46ZM40 54C43.3 54 46 56.7 46 60C46 63.3 43.3 66 40 66V62C41.1 62 42 61.1 42 60C42 58.9 41.1 58 40 58V54Z",fill:"#0891B2"}))),i||(i=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_4011_27601"},o.createElement("rect",{width:72,height:96,fill:"white"}))))),u=(0,o.forwardRef)(s)},48160:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r,i,o=n(76697);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=({title:e,titleId:t,...n},s)=>o.createElement("svg",a({width:72,height:96,viewBox:"0 0 72 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:s,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,r||(r=o.createElement("g",{clipPath:"url(#clip0_4011_27600)"},o.createElement("path",{d:"M72 29.3V89.6C72 91.84 72 92.96 71.56 93.82C71.18 94.56 70.56 95.18 69.82 95.56C68.96 96 67.84 96 65.6 96H6.4C4.16 96 3.04 96 2.18 95.56C1.44 95.18 0.82 94.56 0.44 93.82C0 92.96 0 91.84 0 89.6V6.4C0 4.16 0 3.04 0.44 2.18C0.82 1.44 1.44 0.82 2.18 0.44C3.04 0 4.16 0 6.4 0H42.7C44.66 0 45.64 0 46.56 0.22C47.06 0.34 47.54 0.5 48 0.72V17.6C48 19.84 48 20.96 48.44 21.82C48.82 22.56 49.44 23.18 50.18 23.56C51.04 24 52.16 24 54.4 24H71.28C71.5 24.46 71.66 24.94 71.78 25.44C72 26.36 72 27.34 72 29.3Z",fill:"#A5F3FC"}),o.createElement("path",{d:"M68.26 20.26C69.64 21.64 70.32 22.32 70.82 23.14C71 23.42 71.14 23.7 71.28 24H54.4C52.16 24 51.04 24 50.18 23.56C49.44 23.18 48.82 22.56 48.44 21.82C48 20.96 48 19.84 48 17.6V0.719971C48.3 0.859971 48.58 0.999971 48.86 1.17997C49.68 1.67997 50.36 2.35997 51.74 3.73997L68.26 20.26Z",fill:"#06B6D4"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.7 40.46C24.36 40.18 25.02 40.08 25.68 40.04C26.3 40 27.06 40 27.94 40H28V44C27.04 44 26.42 44 25.96 44.02C25.5 44.06 25.32 44.1 25.24 44.14C24.76 44.34 24.36 44.74 24.16 45.22C24.12 45.32 24.08 45.48 24.04 45.94C24 46.42 24 47.04 24 48V54.06C24 54.94 24 55.7 23.96 56.32C23.9 56.98 23.82 57.64 23.54 58.3C23.28 58.94 22.9 59.5 22.44 60C22.9 60.5 23.28 61.06 23.54 61.7C23.82 62.36 23.92 63.02 23.96 63.68C24 64.3 24 65.06 24 65.94V72C24 72.96 24 73.58 24.02 74.04C24.06 74.5 24.1 74.68 24.14 74.76C24.34 75.24 24.74 75.64 25.22 75.84C25.32 75.88 25.48 75.92 25.94 75.96C26.42 76 27.04 76 28 76V80H27.94C27.06 80 26.3 80 25.68 79.96C25.02 79.9 24.36 79.82 23.7 79.54C22.24 78.94 21.06 77.78 20.46 76.3C20.18 75.64 20.08 74.98 20.04 74.32C20 73.7 20 72.94 20 72.06V66C20 65.04 20 64.42 19.98 63.96C19.94 63.5 19.9 63.32 19.86 63.24C19.66 62.76 19.26 62.36 18.78 62.16C18.68 62.12 18.52 62.08 18.06 62.04C17.58 62 16.96 62 16 62V58C16.96 58 17.58 58 18.04 57.98C18.5 57.94 18.68 57.9 18.76 57.86C19.24 57.66 19.64 57.28 19.84 56.78C19.88 56.68 19.92 56.52 19.96 56.06C20 55.58 20 54.96 20 54V47.94C20 47.06 20 46.3 20.04 45.68C20.1 45.02 20.18 44.36 20.46 43.7C21.06 42.24 22.22 41.06 23.7 40.46ZM53.22 57.84C53.32 57.88 53.48 57.92 53.94 57.96C54.42 58 55.04 58 56 58V62C55.04 62 54.42 62 53.96 62.02C53.5 62.06 53.32 62.1 53.24 62.14C52.76 62.34 52.36 62.74 52.16 63.22C52.12 63.32 52.08 63.48 52.04 63.94C52 64.42 52 65.04 52 66V72.06C52 72.94 52 73.7 51.96 74.32C51.9 74.98 51.82 75.64 51.54 76.3C50.94 77.76 49.76 78.94 48.3 79.54C47.64 79.82 46.98 79.92 46.32 79.96C45.7 80 44.94 80 44.06 80H44V76C44.96 76 45.58 76 46.04 75.98C46.5 75.94 46.68 75.9 46.76 75.86C47.24 75.66 47.64 75.28 47.84 74.78C47.88 74.68 47.92 74.52 47.96 74.06C48 73.58 48 72.96 48 72V65.94C48 65.06 48 64.3 48.04 63.68C48.1 63.02 48.2 62.36 48.46 61.7C48.72 61.06 49.1 60.5 49.56 60C49.1 59.5 48.72 58.94 48.46 58.3C48.18 57.64 48.08 56.98 48.04 56.32C48 55.7 48 54.94 48 54.06V48C48 47.04 48 46.42 47.98 45.96C47.94 45.5 47.9 45.32 47.86 45.24C47.66 44.76 47.26 44.36 46.78 44.16C46.68 44.12 46.52 44.08 46.06 44.04C45.58 44 44.96 44 44 44V40H44.06C44.94 40 45.7 40 46.32 40.04C46.98 40.1 47.64 40.18 48.3 40.46C49.76 41.06 50.94 42.22 51.54 43.7C51.82 44.36 51.92 45.02 51.96 45.68C52 46.3 52 47.06 52 47.94V54C52 54.96 52 55.58 52.02 56.04C52.06 56.5 52.1 56.68 52.14 56.76C52.34 57.24 52.74 57.64 53.22 57.84Z",fill:"#0891B2"}))),i||(i=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_4011_27600"},o.createElement("rect",{width:72,height:96,fill:"white"}))))),u=(0,o.forwardRef)(s)},60235:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r,i,o=n(76697);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=({title:e,titleId:t,...n},s)=>o.createElement("svg",a({width:72,height:96,viewBox:"0 0 72 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:s,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,r||(r=o.createElement("g",{clipPath:"url(#clip0_4011_27599)"},o.createElement("path",{d:"M72 29.3V89.6C72 91.84 72 92.96 71.56 93.82C71.18 94.56 70.56 95.18 69.82 95.56C68.96 96 67.84 96 65.6 96H6.4C4.16 96 3.04 96 2.18 95.56C1.44 95.18 0.82 94.56 0.44 93.82C0 92.96 0 91.84 0 89.6V6.4C0 4.16 0 3.04 0.44 2.18C0.82 1.44 1.44 0.82 2.18 0.44C3.04 0 4.16 0 6.4 0H42.7C44.66 0 45.64 0 46.56 0.22C47.06 0.34 47.54 0.5 48 0.72V17.6C48 19.84 48 20.96 48.44 21.82C48.82 22.56 49.44 23.18 50.18 23.56C51.04 24 52.16 24 54.4 24H71.28C71.5 24.46 71.66 24.94 71.78 25.44C72 26.36 72 27.34 72 29.3Z",fill:"#A5F3FC"}),o.createElement("path",{d:"M68.26 20.26C69.64 21.64 70.32 22.32 70.82 23.14C71 23.42 71.14 23.7 71.28 24H54.4C52.16 24 51.04 24 50.18 23.56C49.44 23.18 48.82 22.56 48.44 21.82C48 20.96 48 19.84 48 17.6V0.719971C48.3 0.859971 48.58 0.999971 48.86 1.17997C49.68 1.67997 50.36 2.35997 51.74 3.73997L68.26 20.26Z",fill:"#06B6D4"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56 40H40V44H56V40ZM56 52H40V56H56V52ZM16 64H56V68H16V64ZM56 76H16V80H56V76ZM26 56H22V44H16V40H32V44H26V56Z",fill:"#0891B2"}))),i||(i=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_4011_27599"},o.createElement("rect",{width:72,height:96,fill:"white"}))))),u=(0,o.forwardRef)(s)},54282:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r,i,o=n(76697);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=({title:e,titleId:t,...n},s)=>o.createElement("svg",a({width:72,height:96,viewBox:"0 0 72 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:s,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,r||(r=o.createElement("g",{clipPath:"url(#clip0_4011_27602)"},o.createElement("path",{d:"M72 29.3V89.6C72 91.84 72 92.96 71.56 93.82C71.18 94.56 70.56 95.18 69.82 95.56C68.96 96 67.84 96 65.6 96H6.4C4.16 96 3.04 96 2.18 95.56C1.44 95.18 0.819999 94.56 0.44 93.82C-5.66244e-07 92.96 -3.89266e-07 91.84 7.33793e-10 89.6L1.45507e-05 6.4C1.49407e-05 4.16 1.51396e-05 3.04 0.440016 2.18C0.820016 1.44 1.44002 0.819999 2.18002 0.439999C3.04002 -5.96046e-07 4.16002 -3.89266e-07 6.40002 7.33824e-10L42.7 6.35073e-06C44.66 6.69073e-06 45.64 6.86944e-06 46.56 0.220007C47.06 0.340007 47.54 0.500007 48 0.720007V17.6C48 19.84 48 20.96 48.44 21.82C48.82 22.56 49.44 23.18 50.18 23.56C51.04 24 52.16 24 54.4 24H71.28C71.5 24.46 71.66 24.94 71.78 25.44C72 26.36 72 27.34 72 29.3Z",fill:"#A5F3FC"}),o.createElement("path",{d:"M68.26 20.26C69.64 21.64 70.32 22.32 70.82 23.14C71 23.42 71.14 23.7 71.28 24H54.4C52.16 24 51.04 24 50.18 23.56C49.44 23.18 48.82 22.56 48.44 21.82C48 20.96 48 19.84 48 17.6V0.719971C48.3 0.859971 48.58 0.999971 48.86 1.17997C49.68 1.67997 50.36 2.35997 51.74 3.73997L68.26 20.26Z",fill:"#06B6D4"}),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 48C32 52.4183 28.4183 56 24 56C19.5817 56 16 52.4183 16 48C16 43.5817 19.5817 40 24 40C28.4183 40 32 43.5817 32 48ZM33.648 71.526L44 55.998L56 79.998H16L28 63.998L33.648 71.526Z",fill:"#0891B2"}))),i||(i=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_4011_27602"},o.createElement("rect",{width:72,height:96,fill:"white"}))))),u=(0,o.forwardRef)(s)},57451:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r,i,o=n(76697);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=({title:e,titleId:t,...n},s)=>o.createElement("svg",a({width:72,height:96,viewBox:"0 0 72 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:s,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,r||(r=o.createElement("g",{clipPath:"url(#clip0_4011_27603)"},o.createElement("path",{d:"M72 29.3V89.6C72 91.84 72 92.96 71.56 93.82C71.18 94.56 70.56 95.18 69.82 95.56C68.96 96 67.84 96 65.6 96H6.4C4.16 96 3.04 96 2.18 95.56C1.44 95.18 0.82 94.56 0.44 93.82C0 92.96 0 91.84 0 89.6V6.4C0 4.16 0 3.04 0.44 2.18C0.82 1.44 1.44 0.82 2.18 0.44C3.04 0 4.16 0 6.4 0H42.7C44.66 0 45.64 0 46.56 0.22C47.06 0.34 47.54 0.5 48 0.72V17.6C48 19.84 48 20.96 48.44 21.82C48.82 22.56 49.44 23.18 50.18 23.56C51.04 24 52.16 24 54.4 24H71.28C71.5 24.46 71.66 24.94 71.78 25.44C72 26.36 72 27.34 72 29.3Z",fill:"#A5F3FC"}),o.createElement("path",{d:"M68.26 20.26C69.64 21.64 70.32 22.32 70.82 23.14C71 23.42 71.14 23.7 71.28 24H54.4C52.16 24 51.04 24 50.18 23.56C49.44 23.18 48.82 22.56 48.44 21.82C48 20.96 48 19.84 48 17.6V0.719971C48.3 0.859971 48.58 0.999971 48.86 1.17997C49.68 1.67997 50.36 2.35997 51.74 3.73997L68.26 20.26Z",fill:"#06B6D4"}),o.createElement("path",{d:"M56.1014 65.0909C52.962 61.8909 44.4014 63.2 42.3389 63.4364C40.0756 61.2182 38.1408 58.7091 36.5528 55.9818C37.6845 52.8182 38.3233 49.5091 38.4876 46.1636C38.4876 43.2 37.2829 40 33.9061 40C32.7197 40.0364 31.6246 40.6545 31.004 41.6545C29.562 44.1455 30.1643 49.1091 32.4459 54.2C30.8762 58.8545 28.8867 63.3636 26.5321 67.6909C23.0275 69.1091 15.6717 72.4182 15.0694 75.9818C14.8321 77.0727 15.2154 78.1818 16.0368 78.9455C16.8946 79.6364 17.9533 80 19.0667 80C23.5386 80 27.8828 73.9636 30.8945 68.8727C34.326 67.7273 37.8305 66.8182 41.3897 66.1455C46.0989 70.1636 50.2058 70.7636 52.3779 70.7636C55.28 70.7636 56.357 69.5818 56.722 68.5091C57.2513 67.3636 57.0141 66 56.1014 65.0909ZM53.0897 67.1091C52.962 67.9455 51.885 68.7636 49.9503 68.2909C47.7052 67.7091 45.6061 66.6545 43.7991 65.2182C45.3688 64.9818 48.8734 64.6182 51.3922 65.0909C52.3596 65.3273 53.327 65.9091 53.0897 67.1091ZM32.9388 42.7273C33.1395 42.3818 33.5046 42.1636 33.9061 42.1273C34.9831 42.1273 35.2386 43.4364 35.2386 44.4909C35.1108 47 34.6363 49.4545 33.7966 51.8364C31.9714 47.1091 32.3364 43.7818 32.9388 42.7273ZM32.7015 65.6727C33.7419 63.5091 34.6728 61.3091 35.4759 59.0545C36.5893 60.8 37.8852 62.4182 39.3454 63.9091C39.3272 64.0182 35.5854 64.7273 32.7015 65.6727ZM25.5829 70.4182C22.8085 74.9091 19.9063 77.7636 18.3366 77.7636C18.0811 77.7455 17.8255 77.6545 17.6065 77.5273C17.2414 77.2909 17.0954 76.8545 17.2414 76.4545C17.6065 74.8 20.746 72.5455 25.5829 70.4182Z",fill:"#0891B2"}))),i||(i=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_4011_27603"},o.createElement("rect",{width:72,height:96,fill:"white"}))))),u=(0,o.forwardRef)(s)},50591:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r,i,o=n(76697);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=({title:e,titleId:t,...n},s)=>o.createElement("svg",a({width:72,height:96,viewBox:"0 0 72 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:s,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,r||(r=o.createElement("g",{clipPath:"url(#clip0_4158_31546)"},o.createElement("path",{d:"M72 29.3V89.6C72 91.84 72 92.96 71.56 93.82C71.18 94.56 70.56 95.18 69.82 95.56C68.96 96 67.84 96 65.6 96H6.4C4.16 96 3.04 96 2.18 95.56C1.44 95.18 0.82 94.56 0.44 93.82C0 92.96 0 91.84 0 89.6V6.4C0 4.16 0 3.04 0.44 2.18C0.82 1.44 1.44 0.82 2.18 0.44C3.04 0 4.16 0 6.4 0H42.7C44.66 0 45.64 0 46.56 0.22C47.06 0.34 47.54 0.5 48 0.72V17.6C48 19.84 48 20.96 48.44 21.82C48.82 22.56 49.44 23.18 50.18 23.56C51.04 24 52.16 24 54.4 24H71.28C71.5 24.46 71.66 24.94 71.78 25.44C72 26.36 72 27.34 72 29.3Z",fill:"#A5F3FC"}),o.createElement("path",{d:"M68.26 20.26C69.64 21.64 70.32 22.32 70.82 23.14C71 23.42 71.14 23.7 71.28 24H54.4C52.16 24 51.04 24 50.18 23.56C49.44 23.18 48.82 22.56 48.44 21.82C48 20.96 48 19.84 48 17.6V0.719971C48.3 0.859971 48.58 0.999971 48.86 1.17997C49.68 1.67997 50.36 2.35997 51.74 3.73997L68.26 20.26Z",fill:"#06B6D4"}))),i||(i=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_4158_31546"},o.createElement("rect",{width:72,height:96,fill:"white"}))))),u=(0,o.forwardRef)(s)},60312:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r,i,o=n(76697);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}const s=({title:e,titleId:t,...n},s)=>o.createElement("svg",a({width:72,height:96,viewBox:"0 0 72 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:s,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,r||(r=o.createElement("g",{clipPath:"url(#clip0_4174_31563)"},o.createElement("path",{d:"M72 29.3V89.6C72 91.84 72 92.96 71.56 93.82C71.18 94.56 70.56 95.18 69.82 95.56C68.96 96 67.84 96 65.6 96H6.4C4.16 96 3.04 96 2.18 95.56C1.44 95.18 0.82 94.56 0.44 93.82C0 92.96 0 91.84 0 89.6V6.4C0 4.16 0 3.04 0.44 2.18C0.82 1.44 1.44 0.82 2.18 0.44C3.04 0 4.16 0 6.4 0H42.7C44.66 0 45.64 0 46.56 0.22C47.06 0.34 47.54 0.5 48 0.72V17.6C48 19.84 48 20.96 48.44 21.82C48.82 22.56 49.44 23.18 50.18 23.56C51.04 24 52.16 24 54.4 24H71.28C71.5 24.46 71.66 24.94 71.78 25.44C72 26.36 72 27.34 72 29.3V29.3Z",fill:"#A5F3FC"}),o.createElement("path",{d:"M68.26 20.26C69.64 21.64 70.32 22.32 70.82 23.14C71 23.42 71.14 23.7 71.28 24H54.4C52.16 24 51.04 24 50.18 23.56C49.44 23.18 48.82 22.56 48.44 21.82C48 20.96 48 19.84 48 17.6V0.719971C48.3 0.859971 48.58 0.999971 48.86 1.17997C49.68 1.67997 50.36 2.35997 51.74 3.73997L68.26 20.26Z",fill:"#06B6D4"}),o.createElement("path",{d:"M43 51.25C43 47.7982 40.2018 45 36.75 45H22.25C18.7982 45 16 47.7982 16 51.25V68.75C16 72.2018 18.7982 75 22.25 75H36.75C40.2018 75 43 72.2018 43 68.75V51.25ZM45 65.5316L51.9612 70.9681C53.6027 72.25 56 71.0804 56 68.9978V51.0027C56 48.92 53.6026 47.7505 51.9612 49.0324L45 54.469V65.5316Z",fill:"#0891B2"}))),i||(i=o.createElement("defs",null,o.createElement("clipPath",{id:"clip0_4174_31563"},o.createElement("rect",{width:72,height:96,fill:"white"}))))),u=(0,o.forwardRef)(s)},53754:(e,t,n)=>{"use strict";n.d(t,{$W:()=>s,AH:()=>I,Ay:()=>j,CN:()=>p,Er:()=>g,Ez:()=>L,Ig:()=>k,JZ:()=>u,PL:()=>y,Py:()=>f,TL:()=>d,Vi:()=>E,X5:()=>O,Y:()=>x,Ye:()=>S,ZJ:()=>h,bS:()=>b,eY:()=>l,hU:()=>P,ks:()=>v,kz:()=>_,mM:()=>D,n9:()=>C,pC:()=>w,sM:()=>T,sk:()=>M,tf:()=>m,tx:()=>a,wi:()=>A,yL:()=>c});var r=n(67600);const i=[{type:"payment",limit:999999,pid:"price_1MbF30GGoUDRyc3jwOg30dVQ"},{type:"booking"}],o="https://dev.voce.chat",a=`${location.origin}`,s=a===o,u=()=>i.map(((e,t)=>{switch(t){case 0:e.title=r.Ay.t("price.pro.title"),e.desc=r.Ay.t("price.pro.desc"),e.price=r.Ay.t("price.pro.price");break;case 1:e.title=r.Ay.t("price.supreme.title"),e.desc=r.Ay.t("price.supreme.desc"),e.price=r.Ay.t("price.supreme.price")}return e})),l="https://vera.nicegoodthings.com",c="0.3.37",d=["/","/chat","/chat/channel/:channel_id"],f={text:"text/plain",markdown:"text/markdown",file:"vocechat/file",audio:"vocechat/audio",archive:"vocechat/archive",formData:"multipart/form-data",json:"application/json"},p={apiKey:"AIzaSyCc3VuCJZgzQLIH2wrYdQzsUOc1DuZiIOA",authDomain:"vocechatdev.firebaseapp.com",projectId:"vocechatdev",storageBucket:"vocechatdev.appspot.com",messagingSenderId:"526613312184",appId:"1:526613312184:web:d13c92582baf470d487a4d",measurementId:"G-82RQ3YSCP7"},h={channel:"#",dm:"@"},g="BOmzyZhw-DcIGYQ77mzQUVqLlcvn0bm_76P_kc7rpwRxzXNbui-JP8iPyEQYfyoxyJeq43Ud4IiIsJSMNHNujn0",m="X-API-Key",y="VC_SERVER_VERSION",v=1e6,b=8e7,w="MOBILE_APP_TIP",_="VOCECHAT_LOGIN_USER",S="VOCECHAT_TOKEN",x="VOCECHAT_TOKEN_EXPIRE",k="VOCECHAT_REFRESH_TOKEN",C="VOCECHAT_CURR_UID",E="VOCECHAT_DEVICE_KEY",O="VOCECHAT_DEVICE_TOKEN",T="VOCECHAT_PWA_INSTALLED",A="VOCECHAT_LOCAL_MAGIC_TOKEN",I="VOCECHAT_TRY_PATH",M=["\ud83d\udc4d","\u2764\ufe0f","\ud83d\ude04","\ud83d\udc40","\ud83d\udc4e","\ud83c\udf89","\ud83d\ude41","\ud83d\ude80"],P=()=>[{label:r.Ay.t("auth:invite_expire.min30"),value:1800},{label:r.Ay.t("auth:invite_expire.h1"),value:3600},{label:r.Ay.t("auth:invite_expire.h6"),value:21600},{label:r.Ay.t("auth:invite_expire.h12"),value:43200},{label:r.Ay.t("auth:invite_expire.d1"),value:86400},{label:r.Ay.t("auth:invite_expire.d7"),value:604800},{label:r.Ay.t("auth:invite_expire.d30"),value:2592e3}],D=()=>[{label:r.Ay.t("auth:invite_times.no_limit"),value:1e7},{label:r.Ay.t("auth:invite_times.time1"),value:1},{label:r.Ay.t("auth:invite_times.times5"),value:5},{label:r.Ay.t("auth:invite_times.times10"),value:10},{label:r.Ay.t("auth:invite_times.times25"),value:25},{label:r.Ay.t("auth:invite_times.times50"),value:50},{label:r.Ay.t("auth:invite_times.times100"),value:100}],L="only_admin_can_see_channel_members",j=`${a}/api`},56048:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=async e=>{const t=window.CACHE[e];t&&await t.iterate(((e,n)=>{t.removeItem(n)}))}},60596:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(56048);async function i({operation:e,payload:t={}}){const n=window.CACHE.messageArchive;if(e.startsWith("reset"))(0,r.A)("messageArchive");else if("upsertArchiveMessage"===e){const{filePath:e,data:r}=t;e&&await(null===n||void 0===n?void 0:n.setItem(e,r))}}},32997:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(56048);async function i({operation:e,data:t={},payload:n}){const i=window.CACHE.messageChannel;if(e.startsWith("reset"))(0,r.A)("messageChannel");else switch(e){case"addChannelMsg":case"removeChannelMsg":{const{id:e}=n;await(null===i||void 0===i?void 0:i.setItem(e+"",t[`${e}`]))}break;case"removeChannelSession":{const e=Array.isArray(n)?n:[n];await Promise.all(e.map((async e=>{await(null===i||void 0===i?void 0:i.removeItem(e+""))})))}}}},15893:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(56048);async function i({operation:e,data:t,payload:n}){const i=window.CACHE.channels;if(e.startsWith("reset"))(0,r.A)("channels");else switch(e){case"fillChannels":{const e=n.map((({gid:e,...t})=>({key:e+"",value:{gid:e,...t}})));await i.setItems(e)}break;case"addChannel":{const{gid:e}=n;await(null===i||void 0===i?void 0:i.setItem(e+"",n))}break;case"removeChannel":{const e=n;await(null===i||void 0===i?void 0:i.removeItem(e+""))}break;case"updateChannel":{const{id:e}=n;await(null===i||void 0===i?void 0:i.setItem(e+"",t.byId[e]))}}}},54309:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(56048);async function i({operation:e,data:t={},payload:n}){const i=window.CACHE.messageDM;if(e.startsWith("reset"))(0,r.A)("messageDM");else switch(e){case"addUserMsg":case"removeUserMsg":{const{id:e}=n;await(null===i||void 0===i?void 0:i.setItem(e+"",t.byId[e]))}break;case"removeUserSession":{const e=Array.isArray(n)?n:[n];await Promise.all(e.map((async e=>{await(null===i||void 0===i?void 0:i.removeItem(e+""))})))}}}},7212:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(56048);async function i({operation:e,data:t={}}){const n=window.CACHE.messageFile;if(e.startsWith("reset"))(0,r.A)("messageFile");else switch(e){case"addFileMessage":case"removeFileMessage":await(null===n||void 0===n?void 0:n.setItem("list",t))}}},67022:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(56048);const i=["voice_fullscreen","voice"];async function o({operation:e,data:t={},payload:n}){const o=window.CACHE.footprint;if(e.startsWith("reset"))(0,r.A)("footprint");else switch(e){case"upsertOG":await(null===o||void 0===o?void 0:o.setItem("og",t.og));break;case"updateUsersVersion":{const e=n;await(null===o||void 0===o?void 0:o.setItem("usersVersion",e))}break;case"updateAfterMid":{const e=n;o.getItem("afterMid").then((t=>{Number(null!==t&&void 0!==t?t:0)<e&&(null===o||void 0===o||o.setItem("afterMid",e))}))}break;case"updateMute":await(null===o||void 0===o?void 0:o.setItem("muteUsers",t.muteUsers||{})),await(null===o||void 0===o?void 0:o.setItem("muteChannels",t.muteChannels||{}));break;case"updateHistoryMark":{const{type:e}=n;"channel"==e?await(null===o||void 0===o?void 0:o.setItem("historyChannels",t.historyChannels)):await(null===o||void 0===o?void 0:o.setItem("historyUsers",t.historyUsers))}break;case"updateReadChannels":await(null===o||void 0===o?void 0:o.setItem("readChannels",t.readChannels));break;case"updateReadUsers":await(null===o||void 0===o?void 0:o.setItem("readUsers",t.readUsers));break;case"updateAutoDeleteSetting":await(null===o||void 0===o?void 0:o.setItem("autoDeleteMsgUsers",t.autoDeleteMsgUsers||[])),await(null===o||void 0===o?void 0:o.setItem("autoDeleteMsgChannels",t.autoDeleteMsgChannels||[]));break;case"updateChannelVisibleAside":i.includes(n.aside)||await(null===o||void 0===o?void 0:o.setItem("channelAsides",t.channelAsides));break;case"updateDMVisibleAside":i.includes(n.aside)||await(null===o||void 0===o?void 0:o.setItem("dmAsides",t.dmAsides))}}},61538:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(56048);async function i({operation:e,data:t={},payload:n}){const i=window.CACHE.message;if(e.startsWith("reset"))(0,r.A)("message");else switch(e){case"addMessage":case"updateMessage":{const{mid:e}=n;await(null===i||void 0===i?void 0:i.setItem(e+"",t[e]))}break;case"removeMessage":{const e=Array.isArray(n)?n:[n];await Promise.all(e.map((async e=>{await(null===i||void 0===i?void 0:i.removeItem(e+""))})))}}}},40974:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(56048);async function i({operation:e,data:t={},payload:n}){const i=window.CACHE.messageReaction;if(e.startsWith("reset"))(0,r.A)("messageReaction");else switch(e){case"toggleReactionMessage":{const{mid:e,rid:r}=n;await(null===i||void 0===i?void 0:i.setItem(e+"",t[e])),await(null===i||void 0===i?void 0:i.setItem(r+"",t[r]))}break;case"removeReactionMessage":{const e=Array.isArray(n)?n:[n];await Promise.all(e.map((async e=>{await(null===i||void 0===i?void 0:i.removeItem(e+""))})))}}}},39551:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(22884);async function i({dispatch:e,operation:t}){switch(t){case"offline":e((0,r.Rt)(!1));break;case"online":e((0,r.Rt)(!0))}}},67894:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(56048);async function i({operation:e,payload:t}){const n=window.CACHE.server;if(e.startsWith("reset"))(0,r.A)("server");else if("updateInfo"===e){const e=t,r=Object.entries(e).map((([e,t])=>({key:e,value:t})));await n.setItems(r)}}},97391:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(56048);async function i({operation:e,data:t={}}){const n=window.CACHE.ui;if(e.startsWith("reset"))(0,r.A)("ui");else switch(e){case"updateMsgSoundSetting":await(null===n||void 0===n?void 0:n.setItem("msgSound",t.msgSound));break;case"toggleMenuExpand":await(null===n||void 0===n?void 0:n.setItem("menuExpand",t.menuExpand));break;case"updateInputMode":await(null===n||void 0===n?void 0:n.setItem("inputMode",t.inputMode));break;case"updateFileListView":await(null===n||void 0===n?void 0:n.setItem("fileListView",t.fileListView))}}},61813:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(56048);async function i({operation:e,data:t,payload:n}){const i=window.CACHE.users;if(e.startsWith("reset"))(0,r.A)("users");else switch(e){case"fillUsers":{const e=n.map((({uid:e,...t})=>({key:e+"",value:t})));await i.setItems(e)}break;case"updateContactStatus":{const e=n,r=(Array.isArray(e)?e:[e]).map((({uid:e,status:n})=>({key:e+"",value:{...t.byId[e],status:n}})));await i.setItems(r)}break;case"updateUsersByLogs":{const e=n;await Promise.all(e.map((async({action:e,uid:n})=>{switch(e){case"update":case"create":await(null===i||void 0===i?void 0:i.setItem(n+"",t.byId[n]));break;case"delete":await(null===i||void 0===i?void 0:i.removeItem(n+""))}})))}break;case"addUser":{const{uid:e}=n;await(null===i||void 0===i?void 0:i.setItem(e+"",n))}break;case"removeUser":{const e=n;await(null===i||void 0===i?void 0:i.removeItem(e+""))}}}},45039:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(45252),i=n(60596),o=n(32997),a=n(15893),s=n(54309),u=n(7212),l=n(67022),c=n(61538),d=n(40974),f=n(39551),p=n(67894),h=n(97391),g=n(61813);const m=["__rtkq","channels","channelMessage","users","userMessage","reactionMessage","fileMessage","archiveMessage","message","ui","footprint","server"],y=(0,r.Nc)();y.startListening({predicate:e=>{const{type:t=""}=e,[n]=t.split("/");return m.includes(n)},effect:async(e,t)=>{const{type:n="",payload:r}=e,[m,y]=n.split("/");if(!window.CACHE&&"__rtkq"!==m)return;const v=t.getState(),b="__rtkq"==m?null:v[m];switch(m){case"__rtkq":(0,f.A)({operation:y,payload:r,dispatch:t.dispatch});break;case"channels":await(0,a.A)({operation:y,payload:r,data:b});break;case"users":await(0,g.A)({operation:y,payload:r,data:b});break;case"channelMessage":await(0,o.A)({operation:y,payload:r,data:b});break;case"userMessage":await(0,s.A)({operation:y,payload:r,data:b});break;case"fileMessage":await(0,u.A)({operation:y,data:b});break;case"archiveMessage":await(0,i.A)({operation:y,payload:r});break;case"message":await(0,c.A)({operation:y,payload:r,data:b});break;case"reactionMessage":await(0,d.A)({operation:y,payload:r,data:b});break;case"footprint":await(0,l.A)({operation:y,payload:r,data:b});break;case"ui":await(0,h.A)({operation:y,payload:r,data:b});break;case"server":await(0,p.A)({operation:y,payload:r,data:b})}}});const v=y},99593:(e,t,n)=>{"use strict";n.d(t,{A3:()=>k,BQ:()=>C,DH:()=>m,G6:()=>y,GT:()=>g,Mw:()=>_,TJ:()=>d,ZQ:()=>c,_L:()=>x,fe:()=>T,ge:()=>O,kU:()=>v,mA:()=>h,pz:()=>b,un:()=>p,yD:()=>w,yZ:()=>S,zo:()=>E});var r=n(45252),i=n(45374),o=n(53754),a=n(18564),s=n(75144),u=n(22884);const l=()=>{let e=localStorage.getItem(o.Vi);const t=localStorage.getItem(o.X5)||"";return e||(e=`web:${(0,r.Ak)()}`,localStorage.setItem(o.Vi,e)),{device:e,device_token:t}},c=(0,i.xP)({reducerPath:"authApi",baseQuery:s.A,endpoints:e=>({login:e.mutation({query:e=>({url:"token/login",method:"POST",body:{credential:e,device:l().device,device_token:l().device_token}}),transformResponse:e=>{const{avatar_updated_at:t}=e.user;return{...e,avatar:0==t?"":`${o.Ay}/resource/avatar?uid=${e.user.uid}&t=${t}`}},async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const{data:e}=await n;e&&(t((0,a.vd)(e)),t((0,u.ux)(!1)),t((0,u.Zh)("disconnected"))),localStorage.removeItem(o.wi)}catch{}}}),guestLogin:e.query({query:()=>({url:"/token/login_guest"}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const{data:e}=await n;e&&(t((0,a.vd)(e)),localStorage.removeItem(o.wi))}catch{}}}),register:e.mutation({query:e=>({url:"/user/register",method:"POST",body:{...e,gender:0,device:"browser"}})}),renew:e.mutation({query:e=>({url:"/token/renew",method:"POST",body:e}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const{data:e}=await n;t((0,a.Jy)(e))}catch(r){console.error("renew token error from rtk",r)}}}),updateDeviceToken:e.mutation({query:e=>({url:"/token/device_token",method:"PUT",body:{device_token:e}})}),getOpenid:e.mutation({query:e=>({url:"/token/openid/authorize",method:"POST",body:e})}),checkMagicTokenValid:e.mutation({query:e=>({url:"user/check_magic_token",method:"POST",body:{magic_token:e}})}),updatePassword:e.mutation({query:e=>({url:"user/change_password",method:"POST",body:e})}),sendLoginMagicLink:e.mutation({query:e=>({headers:{accept:"text/plain"},url:`/user/send_login_magic_link?email=${encodeURIComponent(e)}`,method:"POST",responseHandler:"text"})}),sendRegMagicLink:e.mutation({query:e=>({url:"/user/send_reg_magic_link",method:"POST",body:e})}),getMetamaskNonce:e.query({query:e=>({url:`/token/metamask/nonce?public_address=${e}`})}),checkEmail:e.query({query:e=>({url:`/user/check_email?email=${encodeURIComponent(e)}`})}),getCredentials:e.query({query:()=>({url:"/token/credentials"})}),logout:e.query({query:()=>({url:"token/logout"}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{await n,t((0,a.G3)()),location.href="/#/login"}catch{}}}),getInitialized:e.query({query:()=>({url:"/admin/system/initialized",timeout:5e3}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const{data:e}=await n;t((0,a.K3)(e))}catch{console.error("api initialized error"),t((0,a.K3)(!0))}}}),deleteCurrentAccount:e.query({query:()=>({url:"/user/delete",method:"DELETE"})})})}),{useLazyGuestLoginQuery:d,useGuestLoginQuery:f,useLazyCheckEmailQuery:p,useLazyGetInitializedQuery:h,useGetInitializedQuery:g,useSendLoginMagicLinkMutation:m,useSendRegMagicLinkMutation:y,useGetCredentialsQuery:v,useUpdateDeviceTokenMutation:b,useGetOpenidMutation:w,useRenewMutation:_,useLazyGetMetamaskNonceQuery:S,useLoginMutation:x,useLazyLogoutQuery:k,useCheckMagicTokenValidMutation:C,useUpdatePasswordMutation:E,useRegisterMutation:O,useLazyDeleteCurrentAccountQuery:T}=c},75144:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(49522),i=n(82212),o=n(44154),a=n.n(o),s=n(81477),u=n(53754),l=n(18564);const c=["guestLogin","login","register","sendLoginMagicLink","sendRegMagicLink","checkEmail","checkMagicTokenValid","getGoogleAuthConfig","getGithubAuthConfig","getSMTPStatus","getLoginConfig","getServerVersion","getServer","getOpenid","getMetamaskNonce","renew","getInitialized","createAdmin","getBotRelatedChannels","sendMessageByBot","getAgoraVoicingList","preCheckFileFromUrl"],d=["getAgoraVoicingList","getAgoraChannels"],f=["preCheckFileFromUrl","getFavoriteDetails","getOGInfo","getArchiveMessage"],p=(0,i.cw)({baseUrl:u.Ay,prepareHeaders:(e,{endpoint:t})=>{const{token:n}=(0,s.AJ)();return n&&!c.includes(t)&&e.set(u.tf,n),e}});let h=null;const g=async(e,t,n)=>{var i;h&&await h;const{token:o,refreshToken:u,expireTime:g}=(0,s.AJ)();let m=null;if(!c.includes(t.endpoint)&&a()().isAfter(new Date(g-2e4))?(h=p({url:"/token/renew",method:"POST",body:{token:o,refresh_token:u}},t,n),m=await h,h=null,m.data&&(t.dispatch((0,l.Jy)(m.data)),m=await p(e,t,n))):m=await p(e,t,n),null!==(i=m)&&void 0!==i&&i.error){if(console.error("api error",m.error,e,t.endpoint),f.includes(t.endpoint))return m;switch(m.error.originalStatus||m.error.status){case"FETCH_ERROR":r.Ay.error(`${t.endpoint}: Failed to fetch`);break;case 400:r.Ay.error("Bad Request");break;case 401:if(d.includes(t.endpoint))return;"login"!==t.endpoint&&(t.dispatch((0,l.G3)()),location.href="/#/login");break;case 403:["sendMsg"].includes(t.endpoint)||r.Ay.error("Request Not Allowed");break;case 404:["login","getArchiveMessage","preCheckFileFromUrl","deleteMessage","deleteMessages"].includes(t.endpoint)||r.Ay.error("Request Not Found");break;case 413:r.Ay.error("File size too large");break;case 451:"login"!==t.endpoint&&(t.dispatch((0,l.G3)()),location.href="/#/login"),r.Ay.error(m.error.data||"License Error");break;case 500:case 503:r.Ay.error(m.error.data||"Server Error")}}return m}},27020:(e,t,n)=>{"use strict";n.d(t,{Br:()=>I,DD:()=>O,L3:()=>m,PL:()=>y,Q3:()=>p,Ss:()=>g,Wy:()=>v,Yl:()=>T,ZJ:()=>A,eN:()=>x,h3:()=>_,n1:()=>E,pc:()=>w,qg:()=>h,t1:()=>S,ug:()=>C});var r=n(45374),i=n(81477),o=n(53754),a=n(92438),s=n(99759),u=n(52170),l=n(65930),c=n(22884),d=n(75144),f=n(35266);const p=(0,r.xP)({reducerPath:"channelApi",baseQuery:d.A,refetchOnFocus:!0,endpoints:e=>({getChannels:e.query({query:()=>({url:"/group"})}),getChannel:e.query({query:e=>({url:`/group/${e}`})}),leaveChannel:e.query({query:e=>({url:`/group/${e}/leave`}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{await n,t((0,a.cR)(e))}catch{console.error("channel update failed")}}}),createChannel:e.mutation({query:e=>({url:"/group",method:"POST",body:e})}),changeChannelType:e.mutation({query:({id:e,is_public:t,members:n})=>({url:`/group/${e}/change_type`,method:"POST",body:n?{is_public:t,members:n}:{is_public:t}}),async onQueryStarted({id:e,is_public:t,members:n},{dispatch:r,queryFulfilled:i,getState:o}){try{await i;const s=o().users.ids,u=t?[]:null!==n&&void 0!==n?n:s;r((0,a.fy)({gid:e,members:u}))}catch{console.error("channel update failed")}}}),updateChannel:e.mutation({query:({id:e,...t})=>({url:`/group/${e}`,method:"PUT",body:t}),async onQueryStarted({id:e,name:t,description:n},{dispatch:r,queryFulfilled:i}){r((0,a.fy)({gid:e,name:t,description:n}));try{await i}catch{console.error("channel update failed")}}}),createInviteLink:e.query({query:e=>({headers:{"content-type":"text/plain",accept:"text/plain"},url:`/group/create_reg_magic_link?expired_in=${e.expire}&max_times=${e.times}`,responseHandler:"text"}),transformResponse:e=>(0,i.yB)(e)}),clearChannelMessage:e.query({query:e=>({url:`/group/${e}/clear`,method:"DELETE"}),async onQueryStarted(e,{dispatch:t,getState:n,queryFulfilled:r}){const{channelMessage:i}=n();try{await r;const n=i[e];n&&(t((0,s.QN)(n)),t((0,l.lq)(n)))}catch{console.error("clear channel msg error")}}}),createPrivateInviteLink:e.query({query:e=>({headers:{"content-type":"text/plain",accept:"text/plain"},url:`/group/create_invite_private_magic_link?expired_in=${e.expire}&max_times=${e.times}&gid=${e.cid}`,responseHandler:"text"}),transformResponse:e=>(0,i.yB)(e)}),removeChannel:e.query({query:e=>({url:`/group/${e}`,method:"DELETE"}),async onQueryStarted(e,{dispatch:t,getState:n,queryFulfilled:r}){const{channelMessage:i,ui:{rememberedNavs:{chat:o}}}=n();try{await r;const n=i[e];o==`/chat/channel/${e}`&&t((0,c.u2)({path:null})),n&&(t((0,u.mk)(e)),t((0,s.QN)(n)),t((0,l.lq)(n)))}catch{console.error("remove channel error")}}}),sendChannelMsg:e.mutation({query:({id:e,content:t,type:n="text",properties:r={}})=>({headers:{"content-type":o.Py[n],"X-Properties":r?(0,i.WG)(JSON.stringify(r)):""},url:`/group/${e}/send`,method:"POST",body:"file"==n?JSON.stringify(t):t}),async onQueryStarted(e,t){await f.i.call(this,e,t,"channel")}}),addMembers:e.mutation({query:({id:e,members:t})=>({url:`/group/${e}/members/add`,method:"POST",body:t})}),removeMembers:e.mutation({query:({id:e,members:t})=>({url:`/group/${e}/members/remove`,method:"POST",body:t})}),joinPrivateChannel:e.mutation({query:e=>({url:"/user/join_private",method:"POST",body:e})}),updateIcon:e.mutation({query:({gid:e,image:t})=>({headers:{"content-type":"image/png"},url:`/group/${e}/avatar`,method:"POST",body:t}),async onQueryStarted({gid:e},{dispatch:t,queryFulfilled:n}){try{await n,t((0,a.fy)({gid:e,icon:`${o.Ay}/resource/group_avatar?gid=${e}&t=${+new Date}`}))}catch(r){console.error("err",r)}}})})}),{useChangeChannelTypeMutation:h,useLazyLeaveChannelQuery:g,useLazyCreateInviteLinkQuery:m,useJoinPrivateChannelMutation:y,useLazyCreatePrivateInviteLinkQuery:v,useCreateInviteLinkQuery:b,useGetChannelQuery:w,useLazyGetChannelQuery:_,useUpdateChannelMutation:S,useLazyRemoveChannelQuery:x,useGetChannelsQuery:k,useCreateChannelMutation:C,useSendChannelMsgMutation:E,useAddMembersMutation:O,useRemoveMembersMutation:T,useUpdateIconMutation:A,useLazyClearChannelMessageQuery:I}=p},35266:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var r=n(49522),i=n(36506),o=n(53754),a=n(99759),s=n(52170),u=n(72450);const l=async({ignoreLocal:e=!1,id:t,content:n,type:l="text",from_uid:c,reply_mid:d=null,properties:f={local_id:+new Date,content_type:""}},{dispatch:p,queryFulfilled:h},g="channel")=>{if("archive"==l)return;const m=!!f.content_type&&["image","video","audio"].includes(f.content_type.toLowerCase().split("/")[0]),y=f.local_id||+new Date,v={content:m?n.path:n,content_type:o.Py[l],created_at:y,properties:f,from_uid:c,reply_mid:d,sending:!0},b="channel"==g?s.Oe:u.w3,w="channel"==g?s.nZ:u.bA;e||(0,i.vA)((()=>{p((0,a.tj)({mid:y,...v})),p(b({id:t,mid:y}))}));try{const{data:e}=await h;(0,i.vA)((()=>{p(w({id:t,mid:y})),p((0,a.tj)({mid:e,...v,sending:!1})),p(b({id:t,mid:e}))})),setTimeout((()=>{p((0,a.QN)(y))}),300)}catch(S){var _;403==(null===S||void 0===S||null===(_=S.error)||void 0===_?void 0:_.status)?r.Ay.error("Send failed, blocked maybe"):r.Ay.error(`Send Message Failed ${JSON.stringify(S)}`),p(w({id:t,mid:y})),p((0,a.QN)(y))}}},95184:(e,t,n)=>{"use strict";n.d(t,{Ey:()=>g,Ic:()=>m,JY:()=>y,Jm:()=>b,LS:()=>A,Ls:()=>x,OC:()=>k,Q5:()=>S,Qh:()=>v,SW:()=>T,V0:()=>P,Z2:()=>M,Zg:()=>w,eA:()=>h,gH:()=>C,iA:()=>p,s7:()=>I,v9:()=>E,w5:()=>O});var r=n(45374),i=n(66303),o=n(81477),a=n(53754),s=n(70397),u=n(71359),l=n(93055),c=n(75144),d=n(35266),f=n(99759);const p=(0,r.xP)({reducerPath:"messageApi",baseQuery:c.A,endpoints:e=>({editMessage:e.mutation({query:({mid:e,content:t,type:n="text"})=>({headers:{"content-type":a.Py[n]},url:`/message/${e}/edit`,method:"PUT",body:t})}),reactMessage:e.mutation({query:({mid:e,action:t})=>({url:`/message/${e}/like`,method:"PUT",body:{action:t}})}),deleteMessage:e.query({query:e=>({url:`/message/${e}`,method:"DELETE"}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{await n}catch(r){t((0,f.QN)(e))}}}),deleteMessages:e.query({query:e=>({url:`/message/bulk/${e}`,method:"DELETE"}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{await n}catch(r){e.forEach((e=>{t((0,f.QN)(e))}))}}}),prepareUploadFile:e.mutation({query:(e={content_type:"",filename:""})=>({url:"/resource/file/prepare",method:"POST",body:e})}),createArchive:e.mutation({query:(e=[])=>({url:"/resource/archive",method:"POST",body:{mid_list:e}})}),uploadFile:e.mutation({query:e=>({url:"/resource/file/upload",method:"POST",body:e}),transformResponse:e=>e||{}}),getOGInfo:e.query({query:e=>({url:`/resource/open_graphic_parse?url=${encodeURIComponent(e)}`}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const{data:r}=await n;t((0,u.M3)({key:e,value:r}))}catch(r){t((0,u.M3)({key:e,value:{images:[],audios:[],videos:[],title:"",url:e}}))}}}),getArchiveMessage:e.query({query:e=>({url:`/resource/archive?file_path=${encodeURIComponent(e)}`}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const{data:r}=await n;t((0,l.Rt)({filePath:e,data:r}))}catch(r){}}}),pinMessage:e.mutation({query:({gid:e,mid:t})=>({url:`/group/${e}/pin`,method:"POST",body:{mid:t}})}),unpinMessage:e.mutation({query:({gid:e,mid:t})=>({url:`/group/${e}/unpin`,method:"POST",body:{mid:t}})}),favoriteMessage:e.mutation({query:e=>({url:"/favorite",method:"POST",body:{mid_list:e}}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const{data:e}=await n,{created_at:r,id:i}=e;t((0,s.Gm)({id:i,created_at:r})),t(p.endpoints.getFavoriteDetails.initiate(i))}catch(r){}}}),removeFavorite:e.query({query:e=>({url:`/favorite/${e}`,method:"DELETE"}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{await n,t((0,s.C5)(e))}catch(r){}}}),getFavoriteDetails:e.query({query:e=>({url:`/favorite/${e}`}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n,getState:r}){try{var i;const{data:a}=await n,u=null===(i=r().authData.user)||void 0===i?void 0:i.uid,l=(0,o.Ov)(a,e,u);t((0,s.XG)({id:e,messages:l}))}catch(a){}}}),getFavorites:e.query({query:()=>({url:"/favorite"}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const{data:e}=await n;t((0,s.V)(e));for(const n of e){const{id:e}=n;t(p.endpoints.getFavoriteDetails.initiate(e))}}catch(r){}}}),loadMoreMessages:e.query({query:({context:e="channel",id:t,mid:n="",limit:r=100})=>({url:"channel"==e?`/group/${t}/history?limit=${r}${n?`&before=${n}`:""}`:`/user/${t}/history?limit=${r}${n?`&before=${n}`:""}`}),async onQueryStarted(e,{dispatch:t,getState:n,queryFulfilled:r}){const{data:o}=await r;null!==o&&void 0!==o&&o.length&&o.forEach((e=>{(0,i.A)(e,t,n(),true)}))}}),replyMessage:e.mutation({query:({reply_mid:e,content:t,type:n="text",properties:r})=>({headers:{"content-type":a.Py[n],"X-Properties":r?(0,o.WG)(JSON.stringify(r)):""},url:`/message/${e}/reply`,method:"POST",body:t}),async onQueryStarted(e,t){await d.i.call(this,e,t,e.context)}}),readMessage:e.mutation({query:e=>({url:"/user/read-index",method:"POST",body:e}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){const{users:r=null,groups:i=null}=e;r&&t((0,u.ew)(r)),i&&t((0,u.Ou)(i));try{await n}catch{}}}),preCheckFileFromUrl:e.query({query:e=>({url:e,method:"HEAD",responseHandler:"text"})})})}),{useLazyPreCheckFileFromUrlQuery:h,useLazyRemoveFavoriteQuery:g,useUnpinMessageMutation:m,useLazyGetFavoritesQuery:y,useFavoriteMessageMutation:v,usePinMessageMutation:b,useLazyGetArchiveMessageQuery:w,useGetArchiveMessageQuery:_,useLazyGetOGInfoQuery:S,usePrepareUploadFileMutation:x,useUploadFileMutation:k,useEditMessageMutation:C,useReactMessageMutation:E,useReplyMessageMutation:O,useLazyDeleteMessageQuery:T,useLazyDeleteMessagesQuery:A,useReadMessageMutation:I,useCreateArchiveMutation:M,useLazyLoadMoreMessagesQuery:P}=p},64220:(e,t,n)=>{"use strict";n.d(t,{A4:()=>B,Am:()=>z,B:()=>P,Bh:()=>$,CH:()=>J,Hx:()=>d,J9:()=>Z,JW:()=>y,LX:()=>p,Mu:()=>C,Mv:()=>K,NI:()=>I,PX:()=>q,PZ:()=>M,Q0:()=>g,QS:()=>l,T7:()=>x,Vi:()=>f,X:()=>V,XV:()=>T,_8:()=>N,bb:()=>j,hC:()=>c,jJ:()=>D,kw:()=>X,lP:()=>ee,lY:()=>G,lg:()=>m,mK:()=>W,mi:()=>L,n6:()=>k,pA:()=>h,q:()=>E,qp:()=>Y,rt:()=>v,tT:()=>S,u3:()=>Q,u9:()=>O,ud:()=>H,xI:()=>R});var r=n(45374),i=n(81477),o=n(53754),a=n(91485),s=n(41282),u=n(75144);const l=(0,r.xP)({reducerPath:"serverApi",baseQuery:u.A,endpoints:e=>({getServer:e.query({query:()=>({url:"/admin/system/organization"}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const{data:e}=await n,r=`${o.Ay}/resource/organization/logo?t=${+new Date}`;t((0,a.CI)({...e,logo:r}))}catch{console.error("get server info error")}}}),getThirdPartySecret:e.query({query:()=>({url:"/admin/system/third_party_secret",responseHandler:"text"}),keepUnusedDataFor:0}),updateThirdPartySecret:e.mutation({query:()=>({url:"/admin/system/third_party_secret",method:"POST",responseHandler:"text"})}),getServerVersion:e.query({query:()=>({headers:{accept:"text/plain"},url:"/admin/system/version",responseHandler:"text"}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const e=await n;localStorage.setItem(o.PL,e.data),t((0,a.CI)({version:e.data}))}catch{console.error("get server version error")}}}),getFirebaseConfig:e.query({query:()=>({url:"/admin/fcm/config"})}),getGoogleAuthConfig:e.query({query:()=>({url:"/admin/google_auth/config"})}),updateGoogleAuthConfig:e.mutation({query:e=>({url:"/admin/google_auth/config",method:"POST",body:e})}),getGithubAuthConfig:e.query({query:()=>({url:"/admin/github_auth/config"})}),updateGithubAuthConfig:e.mutation({query:e=>({url:"/admin/github_auth/config",method:"POST",body:e})}),sendTestEmail:e.mutation({query:e=>({url:"/admin/system/send_mail",method:"POST",body:e})}),updateFirebaseConfig:e.mutation({query:e=>({url:"/admin/fcm/config",method:"POST",body:e})}),getAgoraConfig:e.query({query:()=>({url:"/admin/agora/config"})}),getAgoraChannels:e.query({query:(e={page_no:0,page_size:100})=>({url:`/admin/agora/channel/${e.page_no}/${e.page_size}`}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n,getState:r}){try{const{voice:{callingFrom:e},authData:o}=r(),{data:a}=await n,{success:u}=a;if(u){var i;const n=a.data.channels.map((e=>{const[t,n]=e.channel_name.split(":").slice(-2);return{id:+n,context:"group"===t?"channel":"dm",memberCount:e.user_count,channelName:e.channel_name}}));t((0,s.m0)(n));const r=n.some((e=>{var t;return"dm"===e.context&&e.id==(null===o||void 0===o||null===(t=o.user)||void 0===t?void 0:t.uid)})),u=e&&e===(null===o||void 0===o||null===(i=o.user)||void 0===i?void 0:i.uid);!e||u||r||t((0,s.uU)({from:0,to:0,calling:!1}))}}catch{console.error("get voice list error")}}}),getAgoraUsersByChannel:e.query({query:e=>({url:`/admin/agora/channel/user/${e}/false`}),transformResponse:e=>{var t;return e.success&&e.data.channel_exist&&null!==(t=e.data.users)&&void 0!==t?t:[]}}),updateAgoraConfig:e.mutation({query:e=>({url:"/admin/agora/config",method:"POST",body:e})}),getAgoraStatus:e.query({query:()=>({url:"/admin/agora/enabled"})}),generateAgoraToken:e.mutation({query:e=>({url:"/admin/agora/token",method:"POST",body:e})}),getSystemCommon:e.query({query:()=>({url:"/admin/system/common"}),transformResponse:e=>{var t,n,r;let i=e;return i.chat_layout_mode=null!==(t=e.chat_layout_mode)&&void 0!==t?t:"Left",i.contact_verification_enable=null!==(n=e.contact_verification_enable)&&void 0!==n&&n,i.max_file_expiry_mode=null!==(r=e.max_file_expiry_mode)&&void 0!==r?r:"Off",i},async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const e=await n;t((0,a.CI)(e.data))}catch{console.error("get server common error")}}}),updateSystemCommon:e.mutation({query:e=>({url:"/admin/system/common",method:"PUT",body:e}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{await n,t((0,a.CI)(e))}catch{console.error("update server common error")}}}),getSMTPConfig:e.query({query:()=>({url:"/admin/smtp/config"})}),getSMTPStatus:e.query({query:()=>({url:"/admin/smtp/enabled"})}),updateSMTPConfig:e.mutation({query:e=>({url:"/admin/smtp/config",method:"POST",body:e})}),getLoginConfig:e.query({query:()=>({url:"/admin/login/config"}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const e=await n;e.data&&(console.info("update login config in redux",e.data),t((0,a.CI)({loginConfig:e.data})))}catch{console.error("get login config error")}}}),getFiles:e.query({query:e=>({url:`/admin/system/files?${new URLSearchParams(e).toString()}`})}),updateLoginConfig:e.mutation({query:e=>({url:"/admin/login/config",method:"POST",body:e})}),updateLogo:e.mutation({query:e=>({headers:{"content-type":"image/png"},url:"/admin/system/organization/logo",method:"POST",body:e}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{await n,t((0,a.CI)({logo:`${o.Ay}/resource/organization/logo?t=${+new Date}`}))}catch{console.error("update server logo error")}}}),updateServer:e.mutation({query:e=>{var t;return{url:"admin/system/organization",method:(0,i.Gm)(null!==(t=localStorage.getItem(o.PL))&&void 0!==t?t:"","0.3.8")>0?"PUT":"POST",body:e}},async onQueryStarted(e,{dispatch:t,queryFulfilled:n,getState:r}){const i=r(),{name:o,description:s}=i.server;t((0,a.CI)(e));try{await n}catch{t((0,a.CI)({name:o,description:s}))}}}),createAdmin:e.mutation({query:e=>({url:"/admin/system/create_admin",method:"POST",body:e})}),getFrontendUrl:e.query({query:()=>({url:"/admin/system/frontend_url",responseHandler:"text"})}),updateFrontendUrl:e.mutation({query:e=>({url:"/admin/system/update_frontend_url",method:"POST",headers:{"content-type":"text/plain"},body:e})}),getLicense:e.query({query:()=>({url:"/license"}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n,getState:r}){if(o.$W)return;const i=r(),{upgraded:s}=i.server;try{const{data:{user_limit:e}}=await n,r=e>20;s!==r&&t((0,a.CI)({upgraded:r}))}catch{console.error("get license failed ")}}}),getLicensePaymentUrl:e.mutation({query:e=>({url:`${o.eY}/vocechat/payment/create`,method:"POST",body:e})}),getGeneratedLicense:e.query({query:e=>({url:`${o.eY}/vocechat/licenses/${e}`})}),checkLicense:e.mutation({query:e=>({url:"/license/check",method:"POST",body:{license:e}})}),upsertLicense:e.mutation({query:e=>({url:"/license",method:"PUT",body:{license:e}})}),clearAllMessages:e.query({query:()=>({url:"/admin/system/message/clear",method:"DELETE"})}),clearAllFiles:e.query({query:()=>({url:"/resource/file/delete",method:"DELETE"})}),getBotRelatedChannels:e.query({query:({api_key:e,public_only:t=!1})=>({url:t?`/bot?public_only=${t}`:"/bot",headers:{"x-api-key":e}})}),sendMessageByBot:e.mutation({query:({uid:e,cid:t,api_key:n,type:r="text",properties:a,content:s})=>({headers:{"x-api-key":n,"content-type":o.Py[r],"X-Properties":a?(0,i.WG)(JSON.stringify(a)):""},url:t?`/bot/send_to_group/${t}`:`/bot/send_to_user/${e}`,method:"POST",body:s})})})}),{useLazyGetServerVersionQuery:c,useGetGithubAuthConfigQuery:d,useUpdateGithubAuthConfigMutation:f,useGetGoogleAuthConfigQuery:p,useUpdateGoogleAuthConfigMutation:h,useGetSMTPStatusQuery:g,useSendTestEmailMutation:m,useUpdateFirebaseConfigMutation:y,useGetFirebaseConfigQuery:v,useLazyGetFirebaseConfigQuery:b,useLazyGetAgoraConfigQuery:w,useLazyGetSMTPConfigQuery:_,useLazyGetLoginConfigQuery:S,useGetLoginConfigQuery:x,useUpdateLoginConfigMutation:k,useGetSMTPConfigQuery:C,useUpdateSMTPConfigMutation:E,useUpdateAgoraConfigMutation:O,useGetServerQuery:T,useLazyGetServerQuery:A,useUpdateServerMutation:I,useUpdateLogoMutation:M,useGetThirdPartySecretQuery:P,useUpdateThirdPartySecretMutation:D,useCreateAdminMutation:L,useUpsertLicenseMutation:j,useCheckLicenseMutation:N,useGetLicenseQuery:R,useGetLicensePaymentUrlMutation:$,useLazyGetGeneratedLicenseQuery:z,useLazyGetBotRelatedChannelsQuery:U,useSendMessageByBotMutation:F,useUpdateFrontendUrlMutation:q,useGetFrontendUrlQuery:V,useGetAgoraConfigQuery:H,useGetAgoraStatusQuery:B,useGetAgoraChannelsQuery:W,useUpdateSystemCommonMutation:Q,useLazyGetSystemCommonQuery:Y,useGetSystemCommonQuery:K,useGenerateAgoraTokenMutation:G,useLazyGetAgoraUsersByChannelQuery:J,useLazyClearAllFilesQuery:Z,useLazyClearAllMessagesQuery:X,useLazyGetFilesQuery:ee}=l},82604:(e,t,n)=>{"use strict";n.d(t,{B_:()=>h,Bp:()=>A,EW:()=>T,F2:()=>_,Gv:()=>v,H7:()=>m,Ii:()=>d,QI:()=>O,Xf:()=>C,Yl:()=>S,dl:()=>y,fM:()=>k,i$:()=>c,i0:()=>g,pR:()=>f,pl:()=>w,sU:()=>b,tt:()=>p,yG:()=>E,zr:()=>x});var r=n(45374),i=n(53754),o=n(71359),a=n(42188),s=n(75144),u=n(35266),l=n(81477);const c=(0,r.xP)({reducerPath:"userApi",baseQuery:s.A,endpoints:e=>({getUsers:e.query({query:()=>({url:"/user"}),transformResponse:e=>e.map((e=>({...e,avatar:0==e.avatar_updated_at?"":`${i.Ay}/resource/avatar?uid=${e.uid}&t=${e.avatar_updated_at}`}))),async onQueryStarted(e,{dispatch:t,queryFulfilled:n,getState:r}){try{const{data:e}=await n,{authData:{user:i}}=r();t((0,a.yi)(e.map((e=>{const t=(null===i||void 0===i?void 0:i.uid)==e.uid?"added":"";return{...e,status:t}}))))}catch{}}}),getContacts:e.query({query:()=>({url:"/user/contacts"}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const{data:e}=await n,r=e.map((e=>({uid:e.target_uid,status:e.contact_info.status})));t((0,a.u3)(r))}catch{}}}),deleteUser:e.query({query:e=>({url:`/admin/user/${e}`,method:"DELETE"})}),createUser:e.mutation({query:e=>({url:"/admin/user",body:e,method:"POST"})}),searchUser:e.mutation({query:e=>({url:"/user/search",body:e,method:"POST"})}),pinChat:e.mutation({query:e=>({url:"/user/pin_chat",method:"POST",body:{target:e}})}),unpinChat:e.mutation({query:e=>({url:"/user/unpin_chat",method:"POST",body:{target:e}})}),updateUser:e.mutation({query:({id:e,...t})=>({url:`/admin/user/${e}`,body:t,method:"PUT"})}),updateAutoDeleteMsg:e.mutation({query:e=>({url:"/user/burn-after-reading",body:e,method:"POST"}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{await n,e.users&&t((0,o.wv)({burn_after_reading_users:e.users})),e.groups&&t((0,o.wv)({burn_after_reading_groups:e.groups}))}catch{}}}),updateContactStatus:e.mutation({query:e=>({url:"/user/update_contact_status",method:"POST",body:e}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){const r={add:"added",block:"blocked",remove:"",unblock:""};try{await n;const i=r[e.action];t((0,a.u3)({uid:e.target_uid,status:i}))}catch(i){}}}),updateMuteSetting:e.mutation({query:e=>({url:"/user/mute",method:"POST",body:e}),async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{await n,t((0,o.D$)(e))}catch(r){}}}),updateAvatar:e.mutation({query:e=>({headers:{"content-type":"image/png"},url:"/user/avatar",method:"POST",body:e})}),updateAvatarByAdmin:e.mutation({query:({uid:e,file:t})=>({headers:{"content-type":"image/png"},url:`/admin/user/${e}/avatar`,method:"POST",body:t})}),getUserByAdmin:e.query({query:e=>({url:`/admin/user/${e}`})}),createBotAPIKey:e.mutation({query:({uid:e,name:t})=>({url:`/admin/user/bot-api-key/${e}`,method:"POST",body:{name:t}})}),getBotAPIKeys:e.query({query:e=>({url:`/admin/user/bot-api-key/${e}`})}),deleteBotAPIKey:e.query({query:({uid:e,kid:t})=>({url:`/admin/user/bot-api-key/${e}/${t}`,method:"DELETE"})}),updateInfo:e.mutation({query:e=>({url:"/user",method:"PUT",body:e})}),sendMsg:e.mutation({query:({id:e,content:t,type:n="text",properties:r=""})=>({headers:{"content-type":i.Py[n],"X-Properties":r?(0,l.WG)(JSON.stringify(r)):""},url:`/user/${e}/send`,method:"POST",body:"file"==n?JSON.stringify(t):t}),async onQueryStarted(e,t){await u.i.call(this,e,t,"user")}})})}),{useLazyGetUsersQuery:d,useGetUserByAdminQuery:f,useUpdateAvatarByAdminMutation:p,useUpdateAutoDeleteMsgMutation:h,useCreateUserMutation:g,useUpdateUserMutation:m,useUpdateMuteSettingMutation:y,useLazyDeleteUserQuery:v,useUpdateInfoMutation:b,useUpdateAvatarMutation:w,useLazyGetContactsQuery:_,useSendMsgMutation:S,useCreateBotAPIKeyMutation:x,useLazyDeleteBotAPIKeyQuery:k,useGetBotAPIKeysQuery:C,useSearchUserMutation:E,useUpdateContactStatusMutation:O,usePinChatMutation:T,useUnpinChatMutation:A}=c},18564:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>g,G3:()=>f,Jy:()=>p,K3:()=>l,_9:()=>c,vd:()=>d,yG:()=>h});var r=n(45252),i=n(53754);const o=localStorage.getItem(i.kz)||"",a={initialized:!0,guest:!!o&&"guest"==JSON.parse(o).create_by,user:o?JSON.parse(o):void 0,token:localStorage.getItem(i.Ye)||"",expireTime:Number(localStorage.getItem(i.Y)||+new Date),refreshToken:localStorage.getItem(i.Ig)||"",roleChanged:!1,voice:!1},s={initialized:!0,guest:!1,user:void 0,token:"",expireTime:+new Date,refreshToken:"",roleChanged:!1,voice:!1},u=(0,r.Z0)({name:"authData",initialState:a,reducers:{setAuthData(e,{payload:t}){const{initialized:n=!0,user:r,token:o,refresh_token:a,expired_in:s=0}=t,{uid:u,create_by:l}=r;e.initialized=n,e.user={...e.user,...r,status:"added"},e.guest="guest"==l,e.token=o,e.refreshToken=a;const c=+new Date+1e3*Number(s);e.expireTime=c,localStorage.setItem(i.kz,JSON.stringify(r)),localStorage.setItem(i.Y,`${c}`),localStorage.setItem(i.Ye,o),localStorage.setItem(i.Ig,a),localStorage.setItem(i.n9,`${u}`)},updateLoginUser(e,{payload:t}){if(!e.user)return;const n={...e.user,...t};Object.keys(n).forEach((e=>{void 0===n[e]&&delete n[e]})),e.user=n,localStorage.setItem(i.kz,JSON.stringify(n))},updateRoleChanged(e,t){e.roleChanged=t.payload},resetAuthData:()=>(localStorage.removeItem(i.Y),localStorage.removeItem(i.Ye),localStorage.removeItem(i.Ig),localStorage.removeItem(i.n9),localStorage.removeItem(i.sM),window.USERS_VERSION=0,window.AFTER_MID=0,s),updateInitialized(e,t){e.initialized=t.payload},updateToken(e,t){const{token:n,refresh_token:r,expired_in:o}=t.payload;e.token=n;const a=+new Date+1e3*Number(o);e.expireTime=a,e.refreshToken=r,localStorage.setItem(i.Y,`${a}`),localStorage.setItem(i.Ye,n),localStorage.setItem(i.Ig,r)}}}),{updateInitialized:l,updateLoginUser:c,setAuthData:d,resetAuthData:f,updateToken:p,updateRoleChanged:h}=u.actions,g=u.reducer},92438:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>g,Bh:()=>f,I9:()=>d,Ux:()=>c,cR:()=>h,ep:()=>l,fy:()=>p});var r=n(45252),i=n(67636),o=n(53754),a=n(78991);const s={ids:[],byId:{}},u=(0,r.Z0)({name:"channels",initialState:s,reducers:{resetChannels:()=>s,fillChannels(e,t){const n=t.payload||[];e.ids=n.map((({gid:e})=>e)),n.forEach((t=>{e.byId[t.gid]={...t,icon:0==t.avatar_updated_at?"":`${o.Ay}/resource/group_avatar?gid=${t.gid}&t=${t.avatar_updated_at}`}}))},addChannel(e,t){const n=t.payload,{gid:r,avatar_updated_at:i}=n;e.ids.includes(+r)||e.ids.push(+r),e.byId[r]={...n,icon:0==i?"":`${o.Ay}/resource/group_avatar?gid=${r}&t=${i}`}},updateChannel(e,t){const{gid:n,operation:r="",members:o=[],...s}=t.payload,u=e.byId[n];if(!(!u||u.is_public&&["add_member","remove_member"].includes(r)))switch(r){case"remove_member":e.byId[n].members=e.byId[n].members.filter((e=>-1==o.findIndex((t=>t==e))));break;case"add_member":{const t=e.byId[n].members,r=new Set([...t,...o]);e.byId[n].members=Array.from(r);break}default:{const t=(0,i.omitBy)(s,a.z);e.byId[n]={...e.byId[n],...t}}}},updatePinMessage(e,t){var n;const{gid:r,mid:i,msg:o}=t.payload;let a=null===(n=e.byId[r])||void 0===n?void 0:n.pinned_messages;if(o)if(a){const e=a.findIndex((e=>e.mid==i));e>-1&&a.splice(e,1),a.push(o)}else a=[o];else if(a){const e=a.findIndex((e=>e.mid==i));e>-1&&a.splice(e,1)}},removeChannel(e,t){const n=t.payload,r=e.ids.findIndex((e=>e==n));r>-1&&(e.ids.splice(r,1),delete e.byId[n])}}}),{updatePinMessage:l,resetChannels:c,fillChannels:d,addChannel:f,updateChannel:p,removeChannel:h}=u.actions,g=u.reducer},70397:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,C5:()=>o,Gm:()=>i,V:()=>a,XG:()=>s});const r=(0,n(45252).Z0)({name:"favorites",initialState:[],reducers:{fillFavorites:(e,t)=>t.payload,addFavorite(e,t){e.push(t.payload)},deleteFavorite(e,t){const n=t.payload,r=e.findIndex((e=>e.id==n));r>-1&&e.splice(r,1)},populateFavorite(e,t){const{id:n,messages:r}=t.payload,i=e.findIndex((e=>e.id==n));i>-1&&(e[i].messages=r)}}}),{addFavorite:i,deleteFavorite:o,fillFavorites:a,populateFavorite:s}=r.actions,u=r.reducer},80823:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});const r=(0,n(45252).Z0)({name:"files",initialState:[],reducers:{fillFiles:(e,t)=>t.payload,addFile(e,t){e.push(t.payload)},deleteFile(e,t){const n=t.payload,r=e.findIndex((e=>e.content==n));r>-1&&e.splice(r,1)}}}),{addFile:i,deleteFile:o,fillFiles:a}=r.actions,s=r.reducer},71359:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>_,D$:()=>p,Fh:()=>s,HP:()=>g,M3:()=>m,Ou:()=>d,ew:()=>f,fd:()=>v,g1:()=>l,hh:()=>u,i8:()=>c,jn:()=>y,lz:()=>w,or:()=>b,wv:()=>h});var r=n(45252),i=n(18564);const o={og:{},usersVersion:0,afterMid:0,historyUsers:{},historyChannels:{},readUsers:{},readChannels:{},muteUsers:{},muteChannels:{},autoDeleteMsgUsers:[],autoDeleteMsgChannels:[],channelAsides:{},dmAsides:{},pinChats:[]},a=(0,r.Z0)({name:"footprint",initialState:o,reducers:{resetFootprint:()=>o,fillFootprint(e,t){const{og:n={},usersVersion:r=e.usersVersion,afterMid:i=e.afterMid,historyUsers:o={},historyChannels:a={},readUsers:s={},readChannels:u={},muteUsers:l={},muteChannels:c={},autoDeleteMsgUsers:d=[],autoDeleteMsgChannels:f=[],channelAsides:p={},dmAsides:h={},pinChats:g=[]}=t.payload;return window.USERS_VERSION=r,window.AFTER_MID=i,{og:n,usersVersion:r,afterMid:i,historyUsers:o,historyChannels:a,readUsers:s,readChannels:u,muteUsers:l,muteChannels:c,autoDeleteMsgUsers:d,autoDeleteMsgChannels:f,channelAsides:p,dmAsides:h,pinChats:g}},updateUsersVersion(e,t){e.usersVersion=t.payload,window.USERS_VERSION=t.payload},updateAfterMid(e,t){const n=t.payload;e.afterMid<n&&(e.afterMid=t.payload,window.AFTER_MID=t.payload)},updateAutoDeleteSetting(e,t){const n=t.payload;Object.keys(n).forEach((t=>{switch(t){case"burn_after_reading_users":n.burn_after_reading_users.map((t=>{const{uid:n}=t,r=e.autoDeleteMsgUsers.findIndex((e=>e.uid==n));-1!==r?e.autoDeleteMsgUsers[r]=t:e.autoDeleteMsgUsers.push(t)}));break;case"burn_after_reading_groups":n.burn_after_reading_groups.map((t=>{const{gid:n}=t,r=e.autoDeleteMsgChannels.findIndex((e=>e.gid==n));-1!==r?e.autoDeleteMsgChannels[r]=t:e.autoDeleteMsgChannels.push(t)}));break}}))},updateMute(e,t){const n=t.payload||{};Object.keys(n).forEach((t=>{switch(t){case"remove_users":{const t=n.remove_users;null===t||void 0===t||t.forEach((t=>{delete e.muteUsers[t]}));break}case"remove_groups":{const t=n.remove_groups;null===t||void 0===t||t.forEach((t=>{delete e.muteChannels[t]}));break}case"add_users":{const t=n.add_users;null===t||void 0===t||t.forEach((({uid:t,expired_at:n})=>{e.muteUsers[t]={expired_at:n}}));break}case"add_groups":{const t=n.add_groups;null===t||void 0===t||t.forEach((({gid:t,expired_at:n})=>{e.muteChannels[t]={expired_at:n}}));break}}}))},upsertPinChats(e,t){const{pins:n,override:r=!1}=t.payload;e.pinChats=r?n:[...n,...e.pinChats]},removePinChats(e,t){const n=t.payload;e.pinChats=e.pinChats.filter((e=>{const t="uid"in e.target?"uid":"gid";return!n.some((n=>n[t]==e.target[t]))}))},upsertOG(e,t){const{key:n,value:r}=t.payload;e.og[n]=r},updateHistoryMark(e,t){const{type:n,id:r,mid:i}=t.payload;"channel"==n?e.historyChannels[r]=i:e.historyUsers[r]=i},updateReadUsers(e,t){const n=t.payload||[];0!=n.length&&n.forEach((({uid:t,mid:n})=>{e.readUsers[t]=n}))},updateReadChannels(e,t){const n=t.payload||[];0!=n.length&&n.forEach((({gid:t,mid:n})=>{e.readChannels[t]=n}))},updateChannelVisibleAside(e,t){const{id:n,aside:r}=t.payload;e.channelAsides[n]=r},updateDMVisibleAside(e,t){const{id:n,aside:r}=t.payload;e.dmAsides[n]=r}},extraReducers:e=>{e.addCase(i.G3,(e=>{Object.keys(e.channelAsides).forEach((t=>{"voice"===e.channelAsides[+t]&&(e.channelAsides[+t]=null)})),Object.keys(e.dmAsides).forEach((t=>{"voice"===e.dmAsides[+t]&&(e.dmAsides[+t]=null)}))}))}}),{resetFootprint:s,fillFootprint:u,updateAfterMid:l,updateUsersVersion:c,updateReadChannels:d,updateReadUsers:f,updateMute:p,updateAutoDeleteSetting:h,updateHistoryMark:g,upsertOG:m,updateChannelVisibleAside:y,updateDMVisibleAside:v,upsertPinChats:b,removePinChats:w}=a.actions,_=a.reducer},93055:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,Rt:()=>u});var r=n(45252);const i={},o=(0,r.Z0)({name:"archiveMessage",initialState:i,reducers:{resetArchiveMessage:()=>i,fillArchiveMessage:(e,t)=>Object.assign({...i},t.payload),upsertArchiveMessage(e,t){const{filePath:n,data:r}=t.payload;e[n]=r}}}),{resetArchiveMessage:a,fillArchiveMessage:s,upsertArchiveMessage:u}=o.actions,l=o.reducer},52170:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,Oe:()=>l,Se:()=>s,mk:()=>a,nZ:()=>c,oT:()=>u,wz:()=>f});var r=n(45252);const i={},o=(0,r.Z0)({name:"channelMessage",initialState:i,reducers:{resetChannelMsg:()=>i,clearChannelMessage(e,t){e[t.payload]=[]},fillChannelMsg:(e,t)=>t.payload,addChannelMsg(e,t){const{id:n,mid:r,local_id:i=null}=t.payload;if(e[n]){const t=e[n].findIndex((e=>e==r))>-1,o=e[n].findIndex((e=>e==i))>-1;if(t||o)return;const a=[...e[n],+r].sort(((e,t)=>e-t));e[n]=a}else e[n]=[+r]},removeChannelMsg(e,t){const{id:n,mid:r}=t.payload;if(e[n]){const t=e[n].findIndex((e=>e==r));t>-1&&e[n].splice(t,1)}},replaceChannelMsg(e,t){const{id:n,localMid:r,serverMid:i}=t.payload;if(e[n]){const t=e[n].findIndex((e=>e==r));t>-1&&i&&e[n].splice(t,1,i)}},removeChannelSession(e,t){(Array.isArray(t.payload)?t.payload:[t.payload]).forEach((t=>{delete e[t]}))}}}),{removeChannelSession:a,resetChannelMsg:s,fillChannelMsg:u,addChannelMsg:l,removeChannelMsg:c,replaceChannelMsg:d,clearChannelMessage:f}=o.actions,p=o.reducer},81415:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,Qc:()=>a,b3:()=>l,fl:()=>u,vV:()=>s});var r=n(45252);const i=[],o=(0,r.Z0)({name:"fileMessage",initialState:i,reducers:{resetFileMessage:()=>i,fillFileMessage:(e,t)=>t.payload||[],addFileMessage(e,t){const n=t.payload;-1==e.findIndex((e=>e==n))&&e.unshift(+n)},removeFileMessage(e,t){(Array.isArray(t.payload)?t.payload:[t.payload]).forEach((t=>{const n=e.findIndex((e=>e==t));n>-1&&e.splice(n,1)}))}}}),{removeFileMessage:a,resetFileMessage:s,fillFileMessage:u,addFileMessage:l}=o.actions,c=o.reducer},65930:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,Is:()=>u,U0:()=>s,ZW:()=>l,lq:()=>a});var r=n(45252);const i={},o=(0,r.Z0)({name:"reactionMessage",initialState:i,reducers:{resetReactionMessage:()=>i,fillReactionMessage:(e,t)=>t.payload,removeReactionMessage(e,t){(Array.isArray(t.payload)?t.payload:[t.payload]).forEach((t=>{delete e[t]}))},toggleReactionMessage(e,t){const{from_uid:n,mid:r,rid:i,action:o}=t.payload;if(!(e[i]||!1))if(e[r]||(e[r]={}),e[r][o]){const t=e[r][o],i=t.findIndex((e=>e==n));i>-1?(t.splice(i,1),0==t.length&&delete e[r][o]):t.push(n)}else e[r][o]=[n]}}}),{removeReactionMessage:a,resetReactionMessage:s,fillReactionMessage:u,toggleReactionMessage:l}=o.actions,c=o.reducer},99759:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h,IL:()=>p,QN:()=>d,bI:()=>f,fu:()=>u,hn:()=>s,nc:()=>l,tj:()=>c});var r=n(45252),i=n(81477);const o={replying:{}},a=(0,r.Z0)({name:"message",initialState:o,reducers:{resetMessage:()=>o,fillMessage:(e,t)=>Object.assign({...o},t.payload),updateMessage(e,t){const{mid:n,...r}=t.payload;e[n]={...e[n],...r}},addMessage(e,t){const n=t.payload,{mid:r,sending:o}=n;if(o&&e[r])return;const a=(0,i.xY)(n);e[r]=a?{...e[r],...n,...a}:{...e[r],...n}},removeMessage(e,t){(Array.isArray(t.payload)?t.payload:[t.payload]).forEach((t=>{delete e[t]}))},addReplyingMessage(e,t){const{key:n,mid:r}=t.payload;e.replying[n]=r},removeReplyingMessage(e,t){const n=t.payload;e.replying[n]&&delete e.replying[n]}}}),{resetMessage:s,fillMessage:u,updateMessage:l,addMessage:c,removeMessage:d,addReplyingMessage:f,removeReplyingMessage:p}=a.actions,h=a.reducer},72450:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>f,Qi:()=>a,Ur:()=>u,bA:()=>c,m:()=>s,w3:()=>l});var r=n(45252);const i={ids:[],byId:{}},o=(0,r.Z0)({name:"userMessage",initialState:i,reducers:{resetUserMsg:()=>i,fillUserMsg(e,t){e.ids=Object.keys(t.payload).map((e=>+e)),e.byId=t.payload},addUserMsg(e,t){const{id:n,mid:r,local_id:i}=t.payload;if(e.byId[n]){const t=e.byId[n].findIndex((e=>e==r))>-1,o=e.byId[n].findIndex((e=>e==i))>-1;if(t||o)return;const a=[...e.byId[n],+r].sort(((e,t)=>e-t));e.byId[n]=a,-1==e.ids.findIndex((e=>e==n))&&e.ids.push(+n)}else e.byId[n]=[+r],e.ids.push(+n)},removeUserMsg(e,t){const{id:n,mid:r}=t.payload;if(e.byId[n]){const t=e.byId[n].findIndex((e=>e==r));t>-1&&e.byId[n].splice(t,1)}},replaceUserMsg(e,t){const{id:n,localMid:r,serverMid:i}=t.payload;if(e.byId[n]){const t=e.byId[n].findIndex((e=>e==r));t>-1&&i&&e.byId[n].splice(t,1,i)}},removeUserSession(e,t){const n=Array.isArray(t.payload)?t.payload:[t.payload];e.ids=e.ids.filter((e=>-1==n.findIndex((t=>t==e))))}}}),{removeUserSession:a,resetUserMsg:s,fillUserMsg:u,addUserMsg:l,removeUserMsg:c,replaceUserMsg:d}=o.actions,f=o.reducer},91485:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,CI:()=>a,Ts:()=>u});var r=n(45252);const i={version:"",upgraded:!1,name:"",description:"",logo:"",inviteLink:{link:"",expire:0},show_user_online_status:!1,webclient_auto_update:!0,contact_verification_enable:!1,only_admin_can_create_group:!1,chat_layout_mode:"Left",loginConfig:null,ext_setting:null},o=(0,r.Z0)({name:"server",initialState:i,reducers:{resetServer:()=>i,fillServer(e,t){const{version:n,upgraded:r,inviteLink:i={link:"",expire:0},logo:o,name:a,description:s,show_user_online_status:u=!0,webclient_auto_update:l=!0,contact_verification_enable:c=!1,chat_layout_mode:d="Left",only_admin_can_create_group:f=!1,loginConfig:p=e.loginConfig||null,ext_setting:h=null}=t.payload||{};return{version:e.version||n,upgraded:e.upgraded||r,name:e.name||a,logo:e.logo||o,description:e.description||s,inviteLink:i,show_user_online_status:u,webclient_auto_update:l,contact_verification_enable:c,only_admin_can_create_group:f,chat_layout_mode:d,loginConfig:p,ext_setting:h}},updateInfo:(e,t)=>({...e,...t.payload||{}})}}),{updateInfo:a,resetServer:s,fillServer:u}=o.actions,l=o.reducer},22884:(e,t,n)=>{"use strict";n.d(t,{AL:()=>f,Ay:()=>y,KI:()=>d,PU:()=>c,Rt:()=>s,TU:()=>u,Zh:()=>i,eV:()=>o,fh:()=>h,iX:()=>p,iy:()=>m,u2:()=>g,ux:()=>a});const r=(0,n(45252).Z0)({name:"ui",initialState:{SSEStatus:"disconnected",online:!0,msgSound:!0,ready:!1,inputMode:"text",menuExpand:!1,fileListView:"grid",uploadFiles:{},selectMessages:{},draftMarkdown:{},draftMixedText:{},rememberedNavs:{chat:null,user:null}},reducers:{fillUI(e,t){const{SSEStatus:n,ready:r,online:i,msgSound:o=!1,fileListView:a="item",...s}=t.payload;return window.MSG_SOUND=o,{...e,msgSound:o,...s}},setReady(e,t){e.ready=t.payload},updateSSEStatus(e,t){e.SSEStatus=t.payload},updateMsgSoundSetting(e,t){window.MSG_SOUND=t.payload,e.msgSound=t.payload},updateOnline(e,t){e.online=t.payload},toggleMenuExpand(e){e.menuExpand=!e.menuExpand},updateInputMode(e,t){e.inputMode=t.payload},updateFileListView(e,t){e.fileListView=t.payload},updateRememberedNavs(e,t){const{key:n="chat",path:r=null}=t.payload||{};e.rememberedNavs[n]=r},updateDraftMarkdown(e,t){const{key:n,value:r}=t.payload;e.draftMarkdown[n]=r},updateDraftMixedText(e,t){const{key:n,value:r}=t.payload;e.draftMixedText[n]=r},updateUploadFiles(e,t){const{context:n="channel",id:r=null,operation:i="add",...o}=t.payload;if(!r||!n)return;const a=`${n}_${r}`,s=e.uploadFiles[a];switch(i){case"add":{const{data:t}=o,n=Array.isArray(t);s?n?t.forEach((e=>{s.push(e)})):s.push(o):e.uploadFiles[a]=n?t:[t]}break;case"replace":{const{data:t,idx:n}=o;s&&(e.uploadFiles[a][n]=t)}break;case"reset":e.uploadFiles[a]=[];break;case"remove":{const{index:e}=o,t=s[e];t&&(s.splice(e,1),URL.revokeObjectURL(t.url))}break;case"update":{const{index:e,name:t}=o,n=s[e];n&&(n.name=t)}}},updateSelectMessages(e,t){const{context:n="channel",id:r=null,operation:i="add",data:o=null}=t.payload;let a=e.selectMessages[`${n}_${r}`];switch(i){case"add":a=a?[...a,o]:[o];break;case"remove":a&&(a=a.filter((e=>e!=o)));break;case"reset":a=null}e.selectMessages[`${n}_${r}`]=a}}}),{updateSSEStatus:i,fillUI:o,setReady:a,updateOnline:s,updateInputMode:u,toggleMenuExpand:l,updateFileListView:c,updateUploadFiles:d,updateSelectMessages:f,updateDraftMarkdown:p,updateDraftMixedText:h,updateRememberedNavs:g,updateMsgSoundSetting:m}=r.actions,y=r.reducer},42188:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,I4:()=>f,Mq:()=>d,kH:()=>l,u3:()=>u,yi:()=>c});var r=n(45252),i=n(67636),o=n(53754);const a={ids:[],byId:{}},s=(0,r.Z0)({name:"users",initialState:a,reducers:{resetUsers:()=>a,fillUsers(e,t){const n=t.payload||[];e.ids=n.map((({uid:e})=>e)),e.byId=Object.fromEntries(n.map((e=>{const{uid:t}=e;return[t,e]})))},removeUser(e,t){const n=t.payload;e.ids=e.ids.filter((e=>e!=n)),delete e.byId[n]},updateUsersByLogs(e,t){t.payload.forEach((({action:t,uid:n,...r})=>{switch(t){case"update":{const t=(0,i.omitBy)(r,i.isNull);e.byId[n]&&Object.keys(t).forEach((r=>{e.byId[n][r]=t[r],"avatar_updated_at"==r&&(e.byId[n].avatar=`${o.Ay}/resource/avatar?uid=${n}&t=${t[r]}`)}));break}case"create":var a,s;e.byId[n]={uid:n,avatar:0===r.avatar_updated_at?"":`${o.Ay}/resource/avatar?uid=${n}&t=${r.avatar_updated_at}`,create_by:"",status:null!==(a=null===(s=e.byId[n])||void 0===s?void 0:s.status)&&void 0!==a?a:"",...r};-1==e.ids.findIndex((e=>e==n))&&e.ids.push(n);break;case"delete":{const t=e.ids.findIndex((e=>e==n));t>-1&&(e.ids.splice(t,1),delete e.byId[n]);break}}}))},updateUsersStatus(e,t){t.payload.forEach((t=>{const{uid:n,online:r=!1}=t;e.byId[n]&&(e.byId[n].online=r)}))},updateContactStatus(e,t){(Array.isArray(t.payload)?t.payload:[t.payload]).forEach((t=>{e.byId[t.uid]&&(e.byId[t.uid].status=t.status)}))}}}),{updateContactStatus:u,resetUsers:l,fillUsers:c,updateUsersByLogs:d,updateUsersStatus:f}=s.actions,p=s.reducer},41282:(e,t,n)=>{"use strict";n.d(t,{$y:()=>v,Ay:()=>b,H4:()=>s,Hm:()=>d,OP:()=>y,Oy:()=>p,Rl:()=>h,Z7:()=>u,bp:()=>f,eu:()=>l,m0:()=>g,rR:()=>m,uU:()=>c});var r=n(45252),i=n(53754),o=n(18564);const a=(0,r.Z0)({name:"voice",initialState:{calling:!1,callingFrom:0,callingTo:0,voicing:null,voicingMembers:{ids:[],byId:{}},list:[],devices:[],audioInputDeviceId:"",audioOutputDeviceId:"",videoInputDeviceId:""},reducers:{updateCallInfo(e,{payload:t}){const{from:n,to:r=0,calling:i}=t;e.callingFrom=n,e.callingTo=r,"boolean"===typeof i&&(e.calling=i)},updateDevices(e,{payload:t}){if(e.devices=t,t.length>0){const n=t.find((e=>"audioinput"==e.kind)),r=t.find((e=>"audiooutput"==e.kind)),i=t.find((e=>"videoinput"==e.kind));n&&(e.audioInputDeviceId=n.deviceId),r&&(e.audioOutputDeviceId=r.deviceId),i&&(e.videoInputDeviceId=i.deviceId)}},updateCalling(e,{payload:t}){e.calling=t},updateSelectDeviceId(e,{payload:t}){const{kind:n,value:r}=t;switch(n){case"audioinput":e.audioInputDeviceId=r;break;case"audiooutput":e.audioOutputDeviceId=r;break;case"videoinput":e.videoInputDeviceId=r}},updateVoicingInfo(e,{payload:t}){if(t){var n,r;e.voicing={...null!==(n=e.voicing)&&void 0!==n?n:{},...t};const o=null!==(r=localStorage.getItem(i.n9))&&void 0!==r?r:0;e.voicingMembers.ids.findIndex((e=>e==o))>-1&&Object.keys(t).forEach((n=>{switch(n){case"video":e.voicingMembers.byId[+o].video=t.video;break;case"muted":e.voicingMembers.byId[+o].muted=t.muted,t.muted||(e.voicingMembers.byId[+o].deafen=!1,e.voicing&&(e.voicing.deafen=!1));break;case"deafen":e.voicing&&(e.voicing.muted=t.deafen),e.voicingMembers.byId[+o].deafen=t.deafen,e.voicingMembers.byId[+o].muted=t.deafen;break;case"shareScreen":e.voicingMembers.byId[+o].shareScreen=t.shareScreen}}))}else e.voicing=t,e.voicingMembers={ids:[],byId:{}}},updateConnectionState(e,{payload:t}){e.voicing&&(e.voicing.connectionState=t)},updateVoicingNetworkQuality(e,{payload:t}){e.voicing&&(e.voicing.downlinkNetworkQuality=t)},upsertVoiceList(e,{payload:t}){if(Array.isArray(t))e.list=t;else{const{id:n,context:r}=t,i=e.list.findIndex((e=>e.id==n&&e.context==r));i>-1?e.list.splice(i,1,t):e.list.push(t)}},addVoiceMember(e,{payload:t}){const n=!e.voicingMembers.ids.includes(t);e.voicingMembers.ids,n&&(e.voicingMembers.ids=[...e.voicingMembers.ids,t],e.voicingMembers.byId[t]={speakingVolume:0,muted:!1})},removeVoiceMember(e,{payload:t}){const n=e.voicingMembers.ids.findIndex((e=>e==t));n>-1&&(e.voicingMembers.ids.splice(n,1),delete e.voicingMembers.byId[t])},updateVoicingMember(e,{payload:t}){if(e.voicingMembers.ids.findIndex((e=>e==t.uid))>-1){const{uid:n,info:r}=t;e.voicingMembers.byId[n]={...e.voicingMembers.byId[n],...r}}},updatePin(e,{payload:t}){e.voicingMembers.ids.findIndex((e=>e==t.uid))>-1&&(e.voicingMembers.pin="pin"==t.action?t.uid:void 0)}},extraReducers:e=>{e.addCase(o.G3,(e=>{window.VOICE_CLIENT&&(window.VOICE_CLIENT.leave(),Object.entries(window.VOICE_TRACK_MAP).forEach((([e,t])=>{t&&"close"in t&&t.close(),delete window.VOICE_TRACK_MAP[+e]})),Object.entries(window.VIDEO_TRACK_MAP).forEach((([e,t])=>{t&&"close"in t&&(null===t||void 0===t||t.close()),delete window.VOICE_TRACK_MAP[+e]}))),e.voicing=null,e.calling=!1,e.voicingMembers={ids:[],byId:{}}}))}}),{updateSelectDeviceId:s,updateDevices:u,updateCalling:l,updateCallInfo:c,updatePin:d,updateConnectionState:f,addVoiceMember:p,removeVoiceMember:h,upsertVoiceList:g,updateVoicingInfo:m,updateVoicingNetworkQuality:y,updateVoicingMember:v}=a.actions,b=a.reducer},50595:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>D,GV:()=>P,jL:()=>M});var r=n(36506),i=n(1989),o=n(45252),a=n(82212),s=n(45039),u=n(99593),l=n(27020),c=n(95184),d=n(64220),f=n(82604),p=n(18564),h=n(92438),g=n(70397),m=n(71359),y=n(99759),v=n(80823),b=n(93055),w=n(52170),_=n(81415),S=n(65930),x=n(72450),k=n(91485),C=n(22884),E=n(42188),O=n(41282);const T=(0,i.HY)({authData:p.Ay,voice:O.Ay,ui:C.Ay,footprint:m.Ay,server:k.Ay,favorites:g.Ay,users:E.Ay,channels:h.Ay,reactionMessage:S.Ay,userMessage:x.Ay,channelMessage:w.Ay,fileMessage:_.Ay,archiveMessage:b.Ay,message:y.Ay,files:v.Ay,[u.ZQ.reducerPath]:u.ZQ.reducer,[c.iA.reducerPath]:c.iA.reducer,[f.i$.reducerPath]:f.i$.reducer,[l.Q3.reducerPath]:l.Q3.reducer,[d.QS.reducerPath]:d.QS.reducer}),A=(0,o.U1)({reducer:T,middleware:e=>e().concat(u.ZQ.middleware,f.i$.middleware,l.Q3.middleware,d.QS.middleware,c.iA.middleware).prepend(s.A.middleware)});let I=!1;(0,a.$k)(A.dispatch,((e,{onOnline:t,onOffline:n})=>{const r=()=>e(t()),i=()=>e(n());return I||"undefined"!==typeof window&&window.addEventListener&&(window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),I=!0),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i),I=!1}}));const M=()=>(0,r.wA)(),P=r.d4,D=A},35885:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(76697),i=n(40709),o=n(49555),a=n(61864),s=n(29833),u=n(81477),l=n(44109);const c=({transparent:e=!1,reload:t=!1,fullscreen:n=!1,context:c=""})=>{const[d,f]=(0,r.useState)(!1),{clearLocalData:p}=(0,a.A)();return(0,r.useEffect)((()=>{let e=0;return window.AUTO_RELOAD&&(e=window.setTimeout((()=>{location.reload()}),5e3)),()=>{window.AUTO_RELOAD=!1,clearTimeout(e)}}),[]),(0,r.useEffect)((()=>{let e=0;return t&&(e=window.setTimeout((()=>{f(!0)}),3e4)),()=>{clearTimeout(e)}}),[t]),(0,l.jsxs)("div",{"data-ctx":c,className:(0,o.A)("w-full h-full flex-center flex-col gap-4 ",e?"bg-transparent":"dark:bg-gray-800/80",n?"w-screen h-screen":""),children:[(0,l.jsx)(i.A,{size:40,lineWeight:5,speed:2,color:"black"}),(0,l.jsx)(s.A,{className:(0,o.A)("danger",d?"visible":"invisible"),onClick:()=>{p(),(0,u.Mm)()},children:"Reload"})]})},d=(0,r.memo)(c)},79554:(e,t,n)=>{"use strict";n.d(t,{A:()=>Ln});var r=n(76697);const i=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},o={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const t=e[i],o=i+1<e.length,a=o?e[i+1]:0,s=i+2<e.length,u=s?e[i+2]:0,l=t>>2,c=(3&t)<<4|a>>4;let d=(15&a)<<2|u>>6,f=63&u;s||(f=64,o||(d=64)),r.push(n[l],n[c],n[d],n[f])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(i(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){const o=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{const o=e[n++],a=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const t=n[e.charAt(i++)],o=i<e.length?n[e.charAt(i)]:0;++i;const s=i<e.length?n[e.charAt(i)]:64;++i;const u=i<e.length?n[e.charAt(i)]:64;if(++i,null==t||null==o||null==s||null==u)throw new a;const l=t<<2|o>>4;if(r.push(l),64!==s){const e=o<<4&240|s>>2;if(r.push(e),64!==u){const e=s<<6&192|u;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class a extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const s=function(e){return function(e){const t=i(e);return o.encodeByteArray(t,!0)}(e).replace(/\./g,"")},u=function(e){try{return o.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};const l=()=>function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,c=()=>{try{return l()||(()=>{if("undefined"===typeof process)return;const e={VERSION:"0.7.42",NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BUILD_TIME:"1726787238",REACT_APP_RELEASE:"true"}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}const t=e&&u(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},d=()=>{var e;return null===(e=c())||void 0===e?void 0:e.config};class f{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"===typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}function p(){try{return"object"===typeof indexedDB}catch(e){return!1}}function h(){return new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(Dn){t(Dn)}}))}class g extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,g.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,m.prototype.create)}}class m{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,i=this.errors[e],o=i?function(e,t){return e.replace(y,((e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`}))}(i,n):"Error",a=`${this.serviceName}: ${o} (${r}).`;return new g(r,a,n)}}const y=/\{\$([^}]+)}/g;function v(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],o=t[i];if(b(n)&&b(o)){if(!v(n,o))return!1}else if(n!==o)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function b(e){return null!==e&&"object"===typeof e}function w(e){return e&&e._delegate?e._delegate:e}class _{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const S="[DEFAULT]";class x{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new f;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(n){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:S})}catch(t){}for(const[e,n]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});n.resolve(e)}catch(t){}}}}clearInstance(e=S){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(e=S){return this.instances.has(e)}getOptions(e=S){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[i,o]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(i)&&o.resolve(r)}return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);const o=this.instances.get(r);return o&&e(o,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const i of n)try{i(e,t)}catch(r){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e,r===S?void 0:r),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(i){}var r;return n||null}normalizeInstanceIdentifier(e=S){return this.component?this.component.multipleInstances?e:S:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class k{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new x(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}const C=[];var E;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(E||(E={}));const O={debug:E.DEBUG,verbose:E.VERBOSE,info:E.INFO,warn:E.WARN,error:E.ERROR,silent:E.SILENT},T=E.INFO,A={[E.DEBUG]:"log",[E.VERBOSE]:"log",[E.INFO]:"info",[E.WARN]:"warn",[E.ERROR]:"error"},I=(e,t,...n)=>{if(t<e.logLevel)return;const r=(new Date).toISOString(),i=A[t];if(!i)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[i](`[${r}]  ${e.name}:`,...n)};const M=(e,t)=>t.some((t=>e instanceof t));let P,D;const L=new WeakMap,j=new WeakMap,N=new WeakMap,R=new WeakMap,$=new WeakMap;let z={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return j.get(e);if("objectStoreNames"===t)return e.objectStoreNames||N.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return q(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function U(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(D||(D=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(V(this),t),q(L.get(this))}:function(...t){return q(e.apply(V(this),t))}:function(t,...n){const r=e.call(V(this),t,...n);return N.set(r,t.sort?t.sort():[t]),q(r)}}function F(e){return"function"===typeof e?U(e):(e instanceof IDBTransaction&&function(e){if(j.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)}));j.set(e,t)}(e),M(e,P||(P=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,z):e)}function q(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(q(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)}));return t.then((t=>{t instanceof IDBCursor&&L.set(t,e)})).catch((()=>{})),$.set(t,e),t}(e);if(R.has(e))return R.get(e);const t=F(e);return t!==e&&(R.set(e,t),$.set(t,e)),t}const V=e=>$.get(e);function H(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const a=indexedDB.open(e,t),s=q(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(q(a.result),e.oldVersion,e.newVersion,q(a.transaction),e)})),n&&a.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{o&&e.addEventListener("close",(()=>o())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}function B(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",(e=>t(e.oldVersion,e))),q(n).then((()=>{}))}const W=["get","getKey","getAll","getAllKeys","count"],Q=["put","add","delete","clear"],Y=new Map;function K(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(Y.get(t))return Y.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=Q.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!W.includes(n))return;const o=async function(e,...t){const o=this.transaction(e,i?"readwrite":"readonly");let a=o.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),i&&o.done]))[0]};return Y.set(t,o),o}z=(e=>({...e,get:(t,n,r)=>K(t,n)||e.get(t,n,r),has:(t,n)=>!!K(t,n)||e.has(t,n)}))(z);class G{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const J="@firebase/app",Z="0.10.10",X=new class{constructor(e){this.name=e,this._logLevel=T,this._logHandler=I,this._userLogHandler=null,C.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in E))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"===typeof e?O[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,E.DEBUG,...e),this._logHandler(this,E.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,E.VERBOSE,...e),this._logHandler(this,E.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,E.INFO,...e),this._logHandler(this,E.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,E.WARN,...e),this._logHandler(this,E.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,E.ERROR,...e),this._logHandler(this,E.ERROR,...e)}}("@firebase/app"),ee="@firebase/app-compat",te="@firebase/analytics-compat",ne="@firebase/analytics",re="@firebase/app-check-compat",ie="@firebase/app-check",oe="@firebase/auth",ae="@firebase/auth-compat",se="@firebase/database",ue="@firebase/database-compat",le="@firebase/functions",ce="@firebase/functions-compat",de="@firebase/installations",fe="@firebase/installations-compat",pe="@firebase/messaging",he="@firebase/messaging-compat",ge="@firebase/performance",me="@firebase/performance-compat",ye="@firebase/remote-config",ve="@firebase/remote-config-compat",be="@firebase/storage",we="@firebase/storage-compat",_e="@firebase/firestore",Se="@firebase/vertexai-preview",xe="@firebase/firestore-compat",ke="firebase",Ce="[DEFAULT]",Ee={[J]:"fire-core",[ee]:"fire-core-compat",[ne]:"fire-analytics",[te]:"fire-analytics-compat",[ie]:"fire-app-check",[re]:"fire-app-check-compat",[oe]:"fire-auth",[ae]:"fire-auth-compat",[se]:"fire-rtdb",[ue]:"fire-rtdb-compat",[le]:"fire-fn",[ce]:"fire-fn-compat",[de]:"fire-iid",[fe]:"fire-iid-compat",[pe]:"fire-fcm",[he]:"fire-fcm-compat",[ge]:"fire-perf",[me]:"fire-perf-compat",[ye]:"fire-rc",[ve]:"fire-rc-compat",[be]:"fire-gcs",[we]:"fire-gcs-compat",[_e]:"fire-fst",[xe]:"fire-fst-compat",[Se]:"fire-vertex","fire-js":"fire-js",[ke]:"fire-js-all"},Oe=new Map,Te=new Map,Ae=new Map;function Ie(e,t){try{e.container.addComponent(t)}catch(n){X.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Me(e){const t=e.name;if(Ae.has(t))return X.debug(`There were multiple attempts to register component ${t}.`),!1;Ae.set(t,e);for(const n of Oe.values())Ie(n,e);for(const n of Te.values())Ie(n,e);return!0}function Pe(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}const De=new m("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class Le{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new _("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw De.create("app-deleted",{appName:this._name})}}function je(e,t={}){let n=e;if("object"!==typeof t){t={name:t}}const r=Object.assign({name:Ce,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!==typeof i||!i)throw De.create("bad-app-name",{appName:String(i)});if(n||(n=d()),!n)throw De.create("no-options");const o=Oe.get(i);if(o){if(v(n,o.options)&&v(r,o.config))return o;throw De.create("duplicate-app",{appName:i})}const a=new k(i);for(const u of Ae.values())a.addComponent(u);const s=new Le(n,r,a);return Oe.set(i,s),s}function Ne(e,t,n){var r;let i=null!==(r=Ee[e])&&void 0!==r?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),a=t.match(/\s|\//);if(o||a){const e=[`Unable to register library "${i}" with version "${t}":`];return o&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void X.warn(e.join(" "))}Me(new _(`${i}-version`,(()=>({library:i,version:t})),"VERSION"))}const Re="firebase-heartbeat-database",$e=1,ze="firebase-heartbeat-store";let Ue=null;function Fe(){return Ue||(Ue=H(Re,$e,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(ze)}catch(n){console.warn(n)}}}).catch((e=>{throw De.create("idb-open",{originalErrorMessage:e.message})}))),Ue}async function qe(e,t){try{const n=(await Fe()).transaction(ze,"readwrite"),r=n.objectStore(ze);await r.put(t,Ve(e)),await n.done}catch(n){if(n instanceof g)X.warn(n.message);else{const e=De.create("idb-set",{originalErrorMessage:null===n||void 0===n?void 0:n.message});X.warn(e.message)}}}function Ve(e){return`${e.name}!${e.options.appId}`}class He{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new We(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;try{const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=Be();if(null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))return;if(this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some((e=>e.date===r)))return;return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}catch(n){X.warn(n)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=Be(),{heartbeatsToSend:n,unsentEntries:r}=function(e,t=1024){const n=[];let r=e.slice();for(const i of e){const e=n.find((e=>e.agent===i.agent));if(e){if(e.dates.push(i.date),Qe(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Qe(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),i=s(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(t){return X.warn(t),""}}}function Be(){return(new Date).toISOString().substring(0,10)}class We{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!p()&&h().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await Fe()).transaction(ze),n=await t.objectStore(ze).get(Ve(e));return await t.done,n}catch(t){if(t instanceof g)X.warn(t.message);else{const e=De.create("idb-get",{originalErrorMessage:null===t||void 0===t?void 0:t.message});X.warn(e.message)}}}(this.app);return(null===e||void 0===e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return qe(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return qe(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function Qe(e){return s(JSON.stringify({version:2,heartbeats:e})).length}var Ye;Ye="",Me(new _("platform-logger",(e=>new G(e)),"PRIVATE")),Me(new _("heartbeat",(e=>new He(e)),"PRIVATE")),Ne(J,Z,Ye),Ne(J,Z,"esm2017"),Ne("fire-js","");Ne("firebase","10.13.1","app");const Ke="@firebase/installations",Ge="0.6.8",Je=1e4,Ze=`w:${Ge}`,Xe="FIS_v2",et="https://firebaseinstallations.googleapis.com/v1",tt=36e5,nt=new m("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function rt(e){return e instanceof g&&e.code.includes("request-failed")}function it({projectId:e}){return`${et}/projects/${e}/installations`}function ot(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}async function at(e,t){const n=(await t.json()).error;return nt.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function st({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function ut(e,{refreshToken:t}){const n=st(e);return n.append("Authorization",function(e){return`${Xe} ${e}`}(t)),n}async function lt(e){const t=await e();return t.status>=500&&t.status<600?e():t}function ct(e){return new Promise((t=>{setTimeout(t,e)}))}const dt=/^[cdef][\w-]{21}$/,ft="";function pt(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const t=function(e){const t=(n=e,btoa(String.fromCharCode(...n)).replace(/\+/g,"-").replace(/\//g,"_"));var n;return t.substr(0,22)}(e);return dt.test(t)?t:ft}catch(e){return ft}}function ht(e){return`${e.appName}!${e.appId}`}const gt=new Map;function mt(e,t){const n=ht(e);yt(n,t),function(e,t){const n=bt();n&&n.postMessage({key:e,fid:t});wt()}(n,t)}function yt(e,t){const n=gt.get(e);if(n)for(const r of n)r(t)}let vt=null;function bt(){return!vt&&"BroadcastChannel"in self&&(vt=new BroadcastChannel("[Firebase] FID Change"),vt.onmessage=e=>{yt(e.data.key,e.data.fid)}),vt}function wt(){0===gt.size&&vt&&(vt.close(),vt=null)}const _t="firebase-installations-database",St=1,xt="firebase-installations-store";let kt=null;function Ct(){return kt||(kt=H(_t,St,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(xt)}})),kt}async function Et(e,t){const n=ht(e),r=(await Ct()).transaction(xt,"readwrite"),i=r.objectStore(xt),o=await i.get(n);return await i.put(t,n),await r.done,o&&o.fid===t.fid||mt(e,t.fid),t}async function Ot(e){const t=ht(e),n=(await Ct()).transaction(xt,"readwrite");await n.objectStore(xt).delete(t),await n.done}async function Tt(e,t){const n=ht(e),r=(await Ct()).transaction(xt,"readwrite"),i=r.objectStore(xt),o=await i.get(n),a=t(o);return void 0===a?await i.delete(n):await i.put(a,n),await r.done,!a||o&&o.fid===a.fid||mt(e,a.fid),a}async function At(e){let t;const n=await Tt(e.appConfig,(n=>{const r=function(e){const t=e||{fid:pt(),registrationStatus:0};return Pt(t)}(n),i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine){return{installationEntry:t,registrationPromise:Promise.reject(nt.create("app-offline"))}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=async function(e,t){try{const n=await async function({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=it(e),i=st(e),o=t.getImmediate({optional:!0});if(o){const e=await o.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}const a={fid:n,authVersion:Xe,appId:e.appId,sdkVersion:Ze},s={method:"POST",headers:i,body:JSON.stringify(a)},u=await lt((()=>fetch(r,s)));if(u.ok){const e=await u.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:ot(e.authToken)}}throw await at("Create Installation",u)}(e,t);return Et(e.appConfig,n)}catch(n){throw rt(n)&&409===n.customData.serverCode?await Ot(e.appConfig):await Et(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:It(e)}:{installationEntry:t}}(e,r);return t=i.registrationPromise,i.installationEntry}));return n.fid===ft?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function It(e){let t=await Mt(e.appConfig);for(;1===t.registrationStatus;)await ct(100),t=await Mt(e.appConfig);if(0===t.registrationStatus){const{installationEntry:t,registrationPromise:n}=await At(e);return n||t}return t}function Mt(e){return Tt(e,(e=>{if(!e)throw nt.create("installation-not-found");return Pt(e)}))}function Pt(e){return 1===(t=e).registrationStatus&&t.registrationTime+Je<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}async function Dt({appConfig:e,heartbeatServiceProvider:t},n){const r=function(e,{fid:t}){return`${it(e)}/${t}/authTokens:generate`}(e,n),i=ut(e,n),o=t.getImmediate({optional:!0});if(o){const e=await o.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}const a={installation:{sdkVersion:Ze,appId:e.appId}},s={method:"POST",headers:i,body:JSON.stringify(a)},u=await lt((()=>fetch(r,s)));if(u.ok){return ot(await u.json())}throw await at("Generate Auth Token",u)}async function Lt(e,t=!1){let n;const r=await Tt(e.appConfig,(r=>{if(!Nt(r))throw nt.create("not-registered");const i=r.authToken;if(!t&&function(e){return 2===e.requestStatus&&!function(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+tt}(e)}(i))return r;if(1===i.requestStatus)return n=async function(e,t){let n=await jt(e.appConfig);for(;1===n.authToken.requestStatus;)await ct(100),n=await jt(e.appConfig);const r=n.authToken;return 0===r.requestStatus?Lt(e,t):r}(e,t),r;{if(!navigator.onLine)throw nt.create("app-offline");const t=function(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}(r);return n=async function(e,t){try{const n=await Dt(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await Et(e.appConfig,r),n}catch(n){if(!rt(n)||401!==n.customData.serverCode&&404!==n.customData.serverCode){const n=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Et(e.appConfig,n)}else await Ot(e.appConfig);throw n}}(e,t),t}}));return n?await n:r.authToken}function jt(e){return Tt(e,(e=>{if(!Nt(e))throw nt.create("not-registered");const t=e.authToken;return 1===(n=t).requestStatus&&n.requestTime+Je<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e;var n}))}function Nt(e){return void 0!==e&&2===e.registrationStatus}async function Rt(e,t=!1){const n=e;await async function(e){const{registrationPromise:t}=await At(e);t&&await t}(n);return(await Lt(n,t)).token}function $t(e){return nt.create("missing-app-config-values",{valueName:e})}const zt="installations",Ut=e=>{const t=Pe(e.getProvider("app").getImmediate(),zt).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:n,registrationPromise:r}=await At(t);return r?r.catch(console.error):Lt(t).catch(console.error),n.fid}(t),getToken:e=>Rt(t,e)}};Me(new _(zt,(e=>{const t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw $t("App Configuration");if(!e.name)throw $t("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw $t(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:n,heartbeatServiceProvider:Pe(t,"heartbeat"),_delete:()=>Promise.resolve()}}),"PUBLIC")),Me(new _("installations-internal",Ut,"PRIVATE")),Ne(Ke,Ge),Ne(Ke,Ge,"esm2017");const Ft="/firebase-messaging-sw.js",qt="/firebase-cloud-messaging-push-scope",Vt="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Ht="https://fcmregistrations.googleapis.com/v1",Bt="google.c.a.c_id",Wt="google.c.a.c_l",Qt="google.c.a.ts";var Yt,Kt;function Gt(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Jt(e){const t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(t),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}!function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"}(Yt||(Yt={})),function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"}(Kt||(Kt={}));const Zt="fcm_token_details_db",Xt=5,en="fcm_token_object_Store";const tn="firebase-messaging-database",nn=1,rn="firebase-messaging-store";let on=null;function an(){return on||(on=H(tn,nn,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(rn)}})),on}async function sn(e){const t=ln(e),n=await an(),r=await n.transaction(rn).objectStore(rn).get(t);if(r)return r;{const t=await async function(e){if("databases"in indexedDB){const e=(await indexedDB.databases()).map((e=>e.name));if(!e.includes(Zt))return null}let t=null;return(await H(Zt,Xt,{upgrade:async(n,r,i,o)=>{var a;if(r<2)return;if(!n.objectStoreNames.contains(en))return;const s=o.objectStore(en),u=await s.index("fcmSenderId").get(e);if(await s.clear(),u)if(2===r){const e=u;if(!e.auth||!e.p256dh||!e.endpoint)return;t={token:e.fcmToken,createTime:null!==(a=e.createTime)&&void 0!==a?a:Date.now(),subscriptionOptions:{auth:e.auth,p256dh:e.p256dh,endpoint:e.endpoint,swScope:e.swScope,vapidKey:"string"===typeof e.vapidKey?e.vapidKey:Gt(e.vapidKey)}}}else if(3===r){const e=u;t={token:e.fcmToken,createTime:e.createTime,subscriptionOptions:{auth:Gt(e.auth),p256dh:Gt(e.p256dh),endpoint:e.endpoint,swScope:e.swScope,vapidKey:Gt(e.vapidKey)}}}else if(4===r){const e=u;t={token:e.fcmToken,createTime:e.createTime,subscriptionOptions:{auth:Gt(e.auth),p256dh:Gt(e.p256dh),endpoint:e.endpoint,swScope:e.swScope,vapidKey:Gt(e.vapidKey)}}}}})).close(),await B(Zt),await B("fcm_vapid_details_db"),await B("undefined"),function(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return"number"===typeof e.createTime&&e.createTime>0&&"string"===typeof e.token&&e.token.length>0&&"string"===typeof t.auth&&t.auth.length>0&&"string"===typeof t.p256dh&&t.p256dh.length>0&&"string"===typeof t.endpoint&&t.endpoint.length>0&&"string"===typeof t.swScope&&t.swScope.length>0&&"string"===typeof t.vapidKey&&t.vapidKey.length>0}(t)?t:null}(e.appConfig.senderId);if(t)return await un(e,t),t}}async function un(e,t){const n=ln(e),r=(await an()).transaction(rn,"readwrite");return await r.objectStore(rn).put(t,n),await r.done,t}function ln({appConfig:e}){return e.appId}const cn=new m("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});async function dn(e,t){const n={method:"DELETE",headers:await pn(e)};try{const r=await fetch(`${fn(e.appConfig)}/${t}`,n),i=await r.json();if(i.error){const e=i.error.message;throw cn.create("token-unsubscribe-failed",{errorInfo:e})}}catch(r){throw cn.create("token-unsubscribe-failed",{errorInfo:null===r||void 0===r?void 0:r.toString()})}}function fn({projectId:e}){return`${Ht}/projects/${e}/registrations`}async function pn({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function hn({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:t,p256dh:e}};return r!==Vt&&(i.web.applicationPubKey=r),i}const gn=6048e5;async function mn(e){const t=await async function(e,t){const n=await e.pushManager.getSubscription();if(n)return n;return e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Jt(t)})}(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:Gt(t.getKey("auth")),p256dh:Gt(t.getKey("p256dh"))},r=await sn(e.firebaseDependencies);if(r){if(function(e,t){const n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,i=t.auth===e.auth,o=t.p256dh===e.p256dh;return n&&r&&i&&o}(r.subscriptionOptions,n))return Date.now()>=r.createTime+gn?async function(e,t){try{const n=await async function(e,t){const n=await pn(e),r=hn(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{const n=await fetch(`${fn(e.appConfig)}/${t.token}`,i);o=await n.json()}catch(a){throw cn.create("token-update-failed",{errorInfo:null===a||void 0===a?void 0:a.toString()})}if(o.error){const e=o.error.message;throw cn.create("token-update-failed",{errorInfo:e})}if(!o.token)throw cn.create("token-update-no-token");return o.token}(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await un(e.firebaseDependencies,r),n}catch(n){throw n}}(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await dn(e.firebaseDependencies,r.token)}catch(i){console.warn(i)}return yn(e.firebaseDependencies,n)}return yn(e.firebaseDependencies,n)}async function yn(e,t){const n=await async function(e,t){const n=await pn(e),r=hn(t),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{const t=await fetch(fn(e.appConfig),i);o=await t.json()}catch(a){throw cn.create("token-subscribe-failed",{errorInfo:null===a||void 0===a?void 0:a.toString()})}if(o.error){const e=o.error.message;throw cn.create("token-subscribe-failed",{errorInfo:e})}if(!o.token)throw cn.create("token-subscribe-no-token");return o.token}(e,t),r={token:n,createTime:Date.now(),subscriptionOptions:t};return await un(e,r),r.token}function vn(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return function(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const r=t.notification.body;r&&(e.notification.body=r);const i=t.notification.image;i&&(e.notification.image=i);const o=t.notification.icon;o&&(e.notification.icon=o)}(t,e),function(e,t){if(!t.data)return;e.data=t.data}(t,e),function(e,t){var n,r,i,o,a;if(!t.fcmOptions&&!(null===(n=t.notification)||void 0===n?void 0:n.click_action))return;e.fcmOptions={};const s=null!==(i=null===(r=t.fcmOptions)||void 0===r?void 0:r.link)&&void 0!==i?i:null===(o=t.notification)||void 0===o?void 0:o.click_action;s&&(e.fcmOptions.link=s);const u=null===(a=t.fcmOptions)||void 0===a?void 0:a.analytics_label;u&&(e.fcmOptions.analyticsLabel=u)}(t,e),t}function bn(e,t){const n=[];for(let r=0;r<e.length;r++)n.push(e.charAt(r)),r<t.length&&n.push(t.charAt(r));return n.join("")}function wn(e){return cn.create("missing-app-config-values",{valueName:e})}bn("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),bn("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class _n{constructor(e,t,n){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const r=function(e){if(!e||!e.options)throw wn("App Configuration Object");if(!e.name)throw wn("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const r of t)if(!n[r])throw wn(r);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}(e);this.firebaseDependencies={app:e,appConfig:r,installations:t,analyticsProvider:n}}_delete(){return Promise.resolve()}}async function Sn(e){try{e.swRegistration=await navigator.serviceWorker.register(Ft,{scope:qt}),e.swRegistration.update().catch((()=>{}))}catch(t){throw cn.create("failed-service-worker-registration",{browserErrorMessage:null===t||void 0===t?void 0:t.message})}}async function xn(e,t){if(!navigator)throw cn.create("only-available-in-window");if("default"===Notification.permission&&await Notification.requestPermission(),"granted"!==Notification.permission)throw cn.create("permission-blocked");return await async function(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=Vt)}(e,null===t||void 0===t?void 0:t.vapidKey),await async function(e,t){if(t||e.swRegistration||await Sn(e),t||!e.swRegistration){if(!(t instanceof ServiceWorkerRegistration))throw cn.create("invalid-sw-registration");e.swRegistration=t}}(e,null===t||void 0===t?void 0:t.serviceWorkerRegistration),mn(e)}async function kn(e,t,n){const r=function(e){switch(e){case Kt.NOTIFICATION_CLICKED:return"notification_open";case Kt.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[Bt],message_name:n[Wt],message_time:n[Qt],message_device_time:Math.floor(Date.now()/1e3)})}async function Cn(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===Kt.PUSH_RECEIVED&&("function"===typeof e.onMessageHandler?e.onMessageHandler(vn(n)):e.onMessageHandler.next(vn(n)));const r=n.data;var i;"object"===typeof(i=r)&&i&&Bt in i&&"1"===r["google.c.a.e"]&&await kn(e,n.messageType,r)}const En="@firebase/messaging",On="0.12.10",Tn=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:e=>xn(t,e)}};async function An(){try{await h()}catch(e){return!1}return"undefined"!==typeof window&&p()&&!("undefined"===typeof navigator||!navigator.cookieEnabled)&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}function In(e=function(e=Ce){const t=Oe.get(e);if(!t&&e===Ce&&d())return je();if(!t)throw De.create("no-app",{appName:e});return t}()){return An().then((e=>{if(!e)throw cn.create("unsupported-browser")}),(e=>{throw cn.create("indexed-db-unsupported")})),Pe(w(e),"messaging").getImmediate()}Me(new _("messaging",(e=>{const t=new _n(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",(e=>Cn(t,e))),t}),"PUBLIC")),Me(new _("messaging-internal",Tn,"PRIVATE")),Ne(En,On),Ne(En,On,"esm2017");var Mn=n(53754);let Pn=!1,Dn=!1;const Ln=e=>{const[t,n]=(0,r.useState)("");if((0,r.useEffect)((()=>{t&&localStorage.setItem(Mn.X5,t)}),[t]),navigator.serviceWorker){const t=In(je(Mn.CN));if(Pn||Dn)return;Pn=!0,async function(e,t){return xn(e=w(e),t)}(t,{vapidKey:e}).then((e=>{e?n(e):console.info("No registration token available. Request permission to generate one."),Pn=!1})).catch((e=>{Pn=!1,Dn=!0,console.info("An error occurred while retrieving token. ",e)}))}return t}},29833:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49555),i=n(44109);const o=({children:e,className:t="",...n})=>{const o=t.includes("ghost"),a=t.includes("border_less"),s=t.includes("cancel"),u=t.includes("danger"),l=t.includes("small"),c=t.includes("mini"),d=t.includes("flex");return(0,i.jsx)("button",{className:(0,r.A)("text-sm text-white bg-primary-400 break-keep shadow-sm rounded-lg px-3.5 h-11 md:hover:bg-primary-500 active:bg-primary-500 disabled:bg-gray-300 disabled:hover:bg-gray-300 disabled:hover:cursor-not-allowed",d&&"w-full text-center justify-center",o&&" !text-gray-700 dark:!text-gray-100  !border !border-solid !border-gray-300 dark:!border-gray-500 !bg-transparent",s&&"!bg-transparent !text-black dark:!text-gray-50 !border !border-solid !border-gray-200",l&&"!h-auto !py-2",a&&"!shadow-none !border-none",c&&"!h-auto !px-2.5 !py-1 !text-xs",u&&"!bg-red-500 disabled:!bg-gray-300 md:hover:!bg-red-500/80 active:bg-red-700",t),...n,children:e})}},49844:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(76697),i=n(49522);function o(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function a(e){return o(this,void 0,void 0,(function*(){const t=URL.createObjectURL(e),n=yield function(e){return o(this,void 0,void 0,(function*(){return new Promise((function(t,n){const r=document.createElement("img");r.crossOrigin="anonymous",r.src=e,r.onload=function(e){const n=e.target;t(n)},r.onabort=n,r.onerror=n}))}))}(t);return yield function(e){return o(this,void 0,void 0,(function*(){return new Promise((function(t,n){const r=document.createElement("canvas"),i=r.getContext("2d");if(i){const{width:o,height:a}=e;r.width=o,r.height=a,i.drawImage(e,0,0,o,a),r.toBlob((function(e){e?t(e):n("Cannot get blob from image element")}),"image/png",1)}}))}))}(n)}))}function s(e){return o(this,void 0,void 0,(function*(){const t={[e.type]:e},n=new ClipboardItem(t);yield navigator.clipboard.write([n])}))}function u(e){return o(this,void 0,void 0,(function*(){const t=yield function(e){return o(this,void 0,void 0,(function*(){const t=yield fetch(`${e}`);return yield t.blob()}))}(e);if(function(e){return e.type.includes("jpeg")}(t)){const e=yield a(t);return yield s(e),t}if(function(e){return e.type.includes("png")}(t))return yield s(t),t;throw new Error("Cannot copy this type of image to clipboard")}))}const l=e=>{const{enableToast:t=!0}=e||{},[n,o]=(0,r.useState)(!1);(0,r.useEffect)((()=>{n&&t&&i.Ay.success("Copied!")}),[n]);return{copied:n,copy:(e,t=!1)=>{let r=0;return n||(t?u(e).then((()=>{o(!0),r=window.setTimeout((()=>{o(!1)}),500)})):(o((e=>{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t);const n=document.getSelection();if(!n)return!1;const r=n.rangeCount>0&&n.getRangeAt(0);t.select();const i=document.execCommand("copy");return document.body.removeChild(t),r&&(n.removeAllRanges(),n.addRange(r)),i})(e)),r=window.setTimeout((()=>{o(!1)}),500))),()=>{clearTimeout(r)}}}}},61864:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(36506),i=n(99593),o=n(92438),a=n(71359),s=n(99759),u=n(52170),l=n(81415),c=n(65930),d=n(72450),f=n(42188),p=n(18564);function h(){const e=(0,r.wA)(),[t,{isLoading:n,isSuccess:h}]=(0,i.A3)();return{clearLocalData:t=>{const n="undefined"!==typeof t&&t;e((0,o.Ux)()),e((0,f.kH)()),e((0,a.Fh)()),e((0,u.Se)()),e((0,d.m)()),e((0,s.hn)()),e((0,c.U0)()),e((0,l.vV)()),n&&e((0,p.G3)())},logout:t,exited:h,exiting:n}}},66303:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(36506),i=n(53754),o=n(71359),a=n(99759),s=n(52170),u=n(81415),l=n(65930),c=n(72450),d=n(81477);const f=(e,t,n,f=!1)=>{const{mid:p,from_uid:h,created_at:g,target:m,detail:{mid:y,content:v,content_type:b,type:w,properties:_,expires_in:S,detail:x}}=e,k={from_uid:h,created_at:g,content:v,content_type:b,properties:_,expires_in:S},{loginUid:C,readUsers:E={},readChannels:O={},ready:T}=n;if(!f){switch(w){case"normal":case"reply":n.afterMid<p&&t((0,o.g1)(p))}C!=k.from_uid&&T&&window.MSG_SOUND&&(0,d.HJ)()}const A="gid"in m?"channel":"user",I="user"==A?c.w3:s.Oe,M=h==C,P="user"==A?M?m.uid:h:m.gid,D=("user"==A?E[P]:O[P])||0,L=!!M||p<D;switch(w){case"normal":(0,r.vA)((()=>{t((0,a.tj)({mid:p,read:L,...k})),t(I({id:P,mid:p,local_id:_?_.local_id:null})),b==i.Py.file&&t((0,u.b3)(p))})),console.info("{{NEW_MSG}}");break;case"reply":(0,r.vA)((()=>{t((0,a.tj)({mid:p,reply_mid:y,read:L,...k})),t(I({id:P,mid:p,local_id:_?_.local_id:null}))}));break;case"reaction":{const e="user"==A?c.bA:s.nZ,{type:n,action:i,content:o,content_type:d,properties:f}=x;switch(n){case"like":t((0,l.ZW)({from_uid:h,mid:y,rid:p,action:i}));break;case"delete":(0,r.vA)((()=>{t(e({id:P,mid:y})),t((0,a.QN)(y))})),t((0,u.Qc)(y));break;case"edit":t((0,a.nc)({mid:y,content:o,content_type:d,properties:f,edited:!0}))}}}}},92623:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var r=n(76697),i=n(49522),o=n(44154),a=n.n(o),s=n(67636),u=n(53754),l=n(99593),c=n(18564),d=n(92438),f=n(71359),p=n(99759),h=n(52170),g=n(81415),m=n(65930),y=n(72450),v=n(91485),b=n(22884),w=n(42188),_=n(41282),S=n(50595),x=n(81477),k=n(66303),C=n(36506);const E=e=>{const t=new URLSearchParams;return Object.entries(e).forEach((([e,n])=>{n&&t.append(e,n)})),t.toString()};let O,T=0,A=!1,I=0;const M=()=>(0,x.g8)()?document.webkitHidden:document.hidden;function P(){const[e]=(0,l.Mw)(),t=(0,S.GV)((e=>e.authData.user),C.bN),n=(0,S.GV)((e=>e.authData.guest),C.bN),o=(0,S.GV)((e=>e.footprint.readUsers),C.bN),P=(0,S.GV)((e=>e.footprint.readChannels),C.bN),D=(0,S.jL)(),L=(null===t||void 0===t?void 0:t.uid)||0,j=e=>{console.info("debug SSE: start new keepalive"),clearTimeout(I);const t=null!==e&&void 0!==e?e:2e4;console.info("debug SSE: clear prev timeout",I),I=setTimeout((()=>{console.info("debug SSE: start reconnect"),console.info("debug SSE: stopStreaming at timeout"),R(),N()}),t),console.info("debug SSE: start new timeout",I)},N=(0,r.useCallback)((async()=>{if(console.info("debug SSE: clear timeout at startStreaming",I),clearTimeout(I),O&&(O.readyState===EventSource.OPEN||O.readyState===EventSource.CONNECTING))return void console.info("debug SSE: SSE not disconnect");const{token:r,refreshToken:l,expireTime:S}=(0,x.AJ)();if(!r)return void console.info("debug SSE: token empty");let C=r;if(a()().isAfter(new Date(S-2e4))){const t=await e({token:r,refresh_token:l});if("error"in t){console.error("renew error from sse",t.error);const e=M();return void(!navigator.onLine&&e||R())}C=t.data.token}const T={limit:"500","api-key":C};window.AFTER_MID&&(T.after_mid=`${window.AFTER_MID}`),window.USERS_VERSION&&(T.users_version=`${window.USERS_VERSION}`),D((0,b.Zh)("connecting")),O=new EventSource(`${u.Ay}/user/events?${E(T)}`),O.onopen=()=>{D((0,b.Zh)("connected")),A=!1},O.onerror=e=>{if(!navigator.onLine||M())return void R();const{readyState:t}=e.target;console.info("sse error",t,e),R(),setTimeout((()=>{N()}),2e3)},O.onmessage=e=>{const r=JSON.parse(e.data),{type:a}=r;switch(a){case"heartbeat":j();break;case"message_cleared":D((0,f.Fh)()),D((0,h.Se)()),D((0,y.m)()),D((0,p.hn)()),D((0,m.U0)()),D((0,g.vV)());break;case"ready":A=!0,j(),D((0,b.ux)(!0)),setTimeout((()=>{i.Ay.dismiss()}),2e3);break;case"server_config_changed":{const{type:e,...t}=r,{organization_name:n,organization_logo:i,organization_description:o,...a}=t,u={name:n,description:o,...a},l=(0,s.omitBy)(u,s.isNull);D((0,v.CI)(l));break}case"group_message_cleared":{const{gid:e}=r;D((0,h.wz)(e));break}case"user_calling":{const{target:e,uid:t}=r;D((0,_.uU)({from:t,to:e,calling:!0}));break}case"users_snapshot":{const{version:e}=r;D((0,f.i8)(e));break}case"users_log":{const{logs:e}=r;D((0,w.Mq)(e)),e.forEach((e=>{const{uid:r,action:i,...o}=e;if(r===L&&"update"===i){const e=(0,s.omitBy)(o,s.isNull);D((0,c._9)(e)),!n&&"undefined"!==typeof e.is_admin&&A&&(null===t||void 0===t?void 0:t.is_admin)!==e.is_admin&&D((0,c.yG)(!0))}"delete"===i&&D((0,y.Qi)(r))}));break}case"user_settings":case"user_settings_changed":Object.keys(r).forEach((e=>{switch(e){case"read_index_groups":D((0,f.Ou)(r[e]));break;case"read_index_users":D((0,f.ew)(r[e]));break;case"pinned_chats":{var t;const n=null!==(t=r[e])&&void 0!==t?t:[];D((0,f.or)({pins:n,override:!0}));break}case"add_pin_chats":{var n;const e=null!==(n=r.add_pin_chats)&&void 0!==n?n:[];e.length&&D((0,f.or)({pins:e}))}break;case"remove_pin_chats":{var i;const e=null!==(i=r.remove_pin_chats)&&void 0!==i?i:[];e.length&&D((0,f.lz)(e))}break;case"add_mute_users":case"mute_users":case"add_mute_groups":case"mute_groups":{const t=r[e];if(t&&t.length){const n=e.endsWith("users")?"add_users":"add_groups";D((0,f.D$)({[n]:t}))}}break;case"remove_contacts":{var o;const e=null!==(o=r.remove_contacts)&&void 0!==o?o:[];e.length&&D((0,w.u3)(e.map((e=>({uid:e,status:""})))))}break;case"add_contacts":{var a;const e=null!==(a=r.add_contacts)&&void 0!==a?a:[];if(e.length){const t=e.map((({target_uid:e,info:{status:t}})=>({uid:e,status:t})));D((0,w.u3)(t))}}break;case"remove_mute_users":case"remove_mute_groups":{const t=r[e];if(t&&t.length){const n=e.endsWith("users")?"remove_users":"remove_groups";D((0,f.D$)({[n]:t}))}}break;case"burn_after_reading_users":{const t=r[e];t&&D((0,f.wv)({burn_after_reading_users:t}))}break;case"burn_after_reading_groups":{const t=r[e];t&&D((0,f.wv)({burn_after_reading_groups:t}))}}}));break;case"users_state":case"users_state_changed":{const{type:e,...t}=r,n="users_state_changed"==e?[t]:t.users;D((0,w.I4)(n))}break;case"kick":switch(r.reason){case"login_from_other_device":D((0,c.G3)()),(0,i.Ay)("kicked from the other device");break;case"delete_user":D((0,c.G3)()),(0,i.Ay)("Your account has been deleted")}break;case"related_groups":D((0,d.I9)(r.groups));break;case"joined_group":D((0,d.Bh)(r.group));break;case"group_changed":{const{gid:e,...t}=r;D((0,d.fy)({gid:e,...t}))}break;case"user_joined_group":{const{gid:e,uid:t}=r;D((0,d.fy)({operation:"add_member",gid:e,members:t}));break}case"user_leaved_group":{const{gid:e,uid:t}=r;t.findIndex((e=>e==L))>-1?D((0,d.cR)(e)):D((0,d.fy)({operation:"remove_member",gid:e,members:t}));break}case"kick_from_group":D((0,d.cR)(r.gid)),D((0,h.mk)(r.gid));break;case"pinned_message_updated":D((0,d.ep)(r));break;case"chat":var u;(0,k.A)(r,D,{afterMid:null!==(u=window.AFTER_MID)&&void 0!==u?u:0,ready:A,loginUid:L,readUsers:o,readChannels:P})}}}),[t,n]),R=()=>{console.info("debug SSE: clear timeout at stopStreaming",I),clearTimeout(I),O&&(O.close(),O=void 0,D((0,b.Zh)("disconnected")),D((0,b.ux)(!1))),A=!1};return(0,r.useEffect)((()=>{const e=()=>{t&&!n&&(console.info("debug SSE: network changed",navigator.onLine),navigator.onLine?N():R())},r=()=>{if(!t||n)return;console.info("debug SSE: visibility changed",M());if(M())T=(new Date).getTime();else{const e=((new Date).getTime()-T)/1e3,t=e>86400||!O;console.info("debug SSE: visibility changed elapsedTime",e,T,t,!O),t&&(i.Ay.dismiss(),i.Ay.loading("Reconnecting..."),D((0,b.Zh)("reconnecting")),O?(R(),setTimeout((()=>{N()}),1500)):N())}};return document.addEventListener("visibilitychange",r),window.addEventListener("online",e),window.addEventListener("offline",e),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",e),document.removeEventListener("visibilitychange",r)}}),[t,n]),{startStreaming:N,stopStreaming:R}}},67600:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>y});var r=n(39265),i=n(44154),o=n.n(i),a=n(69989),s=n(79059),u=n(22108),l=n(8330),c=n(55922),d=n(35090),f=n(54749),p=n(43913),h=n(91618),g=n(10094),m=n(14924);n(20396),n(86820);a.Ay.on("languageChanged",(e=>{o().locale("zh"===e?"zh-cn":"jp"===e?"ja":e)})),a.Ay.use(u.A).use(s.A).use(r.r9).init({ns:["common","chat","member","setting","fav","file","welcome","auth","widget"],defaultNS:"common",load:"languageOnly",fallbackLng:"en",fallbackNS:"common",debug:!1,detection:{order:["localStorage","navigator"]},interpolation:{escapeValue:!1},returnNull:!1,backend:{queryStringParams:{v:l.rE}}});const y=a.Ay},33997:()=>{"scrollIntoViewIfNeeded"in Element.prototype||(Element.prototype.scrollIntoViewIfNeeded=function(e=!0){const t=this;new IntersectionObserver((function([n]){const r=n.intersectionRatio;if(r<1){let n=r<=0&&e?"center":"nearest";t.scrollIntoView({block:n,inline:n})}this.disconnect()})).observe(this)})},32818:(e,t,n)=>{"use strict";n.d(t,{h:()=>a,k:()=>i});const r=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function i(e){if("serviceWorker"in navigator){if(new URL("",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{const t="/service-worker.js";r?(!function(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then((n=>{const r=n.headers.get("content-type");404===n.status||null!=r&&-1===r.indexOf("javascript")?navigator.serviceWorker.ready.then((e=>{e.unregister().then((()=>{window.location.reload()}))})):o(e,t)})).catch((()=>{}))}(t,e),navigator.serviceWorker.ready.then((()=>{}))):o(t,e)}))}}function o(e,t){navigator.serviceWorker&&navigator.serviceWorker.register(e).then((e=>{e.onupdatefound=()=>{const n=e.installing;null!=n&&(n.onstatechange=()=>{"installed"===n.state&&(navigator.serviceWorker.controller?t&&t.onUpdate&&t.onUpdate(e):t&&t.onSuccess&&t.onSuccess(e))})}})).catch((e=>{console.error("Error during service worker registration:",e)}))}function a(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((e=>{e.unregister()})).catch((e=>{console.error(e.message)}))}},81477:(e,t,n)=>{"use strict";n.d(t,{AJ:()=>w,Fr:()=>b,GZ:()=>U,Gm:()=>A,HJ:()=>R,I3:()=>E,IM:()=>C,Mm:()=>N,Ov:()=>T,Qv:()=>L,Ub:()=>z,WG:()=>F,_T:()=>D,_Y:()=>v,cn:()=>y,d4:()=>S,g4:()=>H,g8:()=>I,iD:()=>P,pG:()=>k,s0:()=>V,ud:()=>M,wu:()=>_,xY:()=>O,xp:()=>q,yB:()=>j,z3:()=>x,zk:()=>$});var r=n(44154),i=n.n(r),o=n(92502),a=n(53754),s=n(52631),u=n(48160),l=n(60235),c=n(54282),d=n(57451),f=n(50591),p=n(60312),h=n(49555),g=n(19643),m=n(44109);function y(...e){return(0,g.QP)((0,h.$)(e))}function v(e){const t=[];return{text:e.map((e=>e.children.map((e=>"text"in e?e.text:(t.push(+e.uid),` @${e.uid} `))).join(""))).join("\n"),mentions:t}}const b=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),w=()=>({token:localStorage.getItem(a.Ye)||"",refreshToken:localStorage.getItem(a.Ig)||"",expireTime:Number(localStorage.getItem(a.Y)||+new Date)}),_=(e="",t=0)=>{const n=e.toLowerCase();return n.startsWith("image")&&"image/x-sony-arw"!==n&&t<=a.bS};function S(e,t){if(!e)return{width:0,height:0};const{min:n,max:r}=null!==t&&void 0!==t?t:{min:200,max:320},{width:i,height:o}=e;if(i==o){const e=n>i?n:i<r?i:r;return{width:e,height:e}}let a=0,s=0;return i<=o?(s=o<n?n:o<r?o:r,a=i/o*s):(a=i<n?n:i<r?i:r,s=o/i*a),{width:a,height:s}}function x(e,t=2){if(0===e)return"0 Bytes";const n=t<0?0:t,r=Math.floor(Math.log(e)/Math.log(1e3));return parseFloat((e/Math.pow(1e3,r)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}const k=e=>{const t={width:0,height:0};return e?new Promise((n=>{const r=new Image;r.src=e,r.onload=()=>{t.width=r.width,t.height=r.height,n(t)},r.onerror=()=>{n(t)}})):t},C=(e,t=4)=>{if(!e)return"";const n=e.split(/[\u0009\u000a\u000b\u000c\u000d\u0020\u0085\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u200c\u200d\u2028\u2029\u202f\u205f\u2060\u3000\ufeff]/).filter((e=>!!e)).map((e=>[...e][0]));return n.length=t,n.join("").toUpperCase()};const E=(e,t="",n="icon")=>{let r=null;const i={image:/^image/gi,audio:/^audio/gi,video:/^video/gi,code:/(json|javascript|java|rb|c|php|xml|css|html)$/gi,doc:/^text/gi,pdf:/\/pdf$/gi},o=(null!==t&&void 0!==t?t:"").split("."),a=e||o[o.length-1];switch(!0){case i.image.test(a):r=(0,m.jsx)(c.A,{className:n});break;case i.pdf.test(a):r=(0,m.jsx)(d.A,{className:n});break;case i.code.test(a):r=(0,m.jsx)(u.A,{className:n});break;case i.doc.test(a):r=(0,m.jsx)(l.A,{className:n});break;case i.audio.test(a):r=(0,m.jsx)(s.A,{className:n});break;case i.video.test(a):r=(0,m.jsx)(p.A,{className:n});break;default:r=(0,m.jsx)(f.A,{className:n})}return r},O=e=>{const{properties:t,content:n,sending:r=!1,content_type:i}=e,o=i==a.Py.file,s=_(null===t||void 0===t?void 0:t.content_type,null===t||void 0===t?void 0:t.size),u=s&&"image/gif"==(null===t||void 0===t?void 0:t.content_type);let l=null;if(o)if(r)s&&(l={thumbnail:u?"":n});else{const e="string"==typeof n?n:n.path;l={file_path:e,content:`${a.Ay}/resource/file?file_path=${encodeURIComponent(e)}`,download:`${a.Ay}/resource/file?file_path=${encodeURIComponent(e)}&download=true`,thumbnail:s&&!u?`${a.Ay}/resource/file?file_path=${encodeURIComponent(e)}&thumbnail=true`:""}}return l},T=(e,t,n)=>{if(!e||!t)return[];const{messages:r,users:i}=e;return r.map((({source:e,mid:r,content:o,file_id:s,thumbnail_id:u,content_type:l,properties:c,from_user:d})=>{var f;const p=null!==(f=i[d])&&void 0!==f?f:{},{transformedContent:h,thumbnail:g,download:m,avatarUrl:y}=((e,{content:t,content_type:n,file_id:r,thumbnail_id:i,filePath:o,avatar:s})=>{const u=e?`${a.Ay}/favorite/attachment/${e}/${o}/`:`${a.Ay}/resource/archive/attachment?file_path=${o}&attachment_id=`;return{transformedContent:n==a.Py.file?`${u}${r}`:t,thumbnail:n==a.Py.file?`${u}${i}`:"",download:n==a.Py.file?`${u}${r}${e?"?":"&"}download=true`:"",avatarUrl:null!==s?`${u}${s}`:""}})(n,{content:o,content_type:l,filePath:t,file_id:s,thumbnail_id:u,avatar:p.avatar});return{source:e,from_mid:r,user:{...p,avatar:y},content:h,content_type:l,properties:c,download:m,thumbnail:g}}))},A=(e,t,n)=>{var r,i;function o(e){const t=e.indexOf("-");return-1!==t&&(e=e.substring(0,t)),e}e=o(null!==(r=e)&&void 0!==r?r:""),t=o(null!==(i=t)&&void 0!==i?i:"");let a=n&&n.lexicographical,s=n&&n.zeroExtend,u=e.split("."),l=t.split(".");function c(e){return(a?/^\d+[A-Za-z]*$/:/^\d+$/).test(e)}if(!u.every(c)||!l.every(c))return NaN;if(s){for(;u.length<l.length;)u.push("0");for(;l.length<u.length;)l.push("0")}a||(u=u.map(Number),l=l.map(Number));for(let d=0;d<u.length;++d){if(l.length==d)return 1;if(u[d]!=l[d])return u[d]>l[d]?1:-1}return u.length!=l.length?-1:0},I=()=>navigator.userAgent.toLowerCase().indexOf("electron/")>-1,M=()=>{const e="dark"===localStorage.theme,t="light"===localStorage.theme;return e||!t&&window.matchMedia("(prefers-color-scheme: dark)").matches},P=()=>{const e=navigator.userAgent.toLowerCase();return{isMac:-1!=e.indexOf("darwin"),isWindows:-1!=e.indexOf("win32"),isLinux:-1!=e.indexOf("linux")}},D=e=>{if(!e)return null;const t=+new Date;return i()(e>t?t:e).fromNow()},L=(e,t)=>{if(!t&&!window.VIDEO_TRACK_MAP[e])return;const n=document.querySelector(`#CAMERA_${e}`);if(n)if(n.classList.add("h-[120px]"),t)t.play(n);else{var r;if(!window.VIDEO_TRACK_MAP[e])return;if("play"in(null!==(r=window.VIDEO_TRACK_MAP[e])&&void 0!==r?r:{})){var i;null===(i=window.VIDEO_TRACK_MAP[e])||void 0===i||i.play(n)}else{window.VIDEO_TRACK_MAP[e][0].play(n)}}},j=e=>{const t=e.startsWith("http")?e:`http://${e}`,n=new URL(t);return`${location.origin}${n.pathname}${n.hash}${n.search}`},N=()=>{I()?(setTimeout((()=>{location.reload()}),100),location.reload()):window.location.reload()},R=async()=>{const e=new Audio(o);try{await e.play()}catch(t){console.warn("play join sound failed!",t)}},$=(e,t)=>{try{return(e?JSON.parse(e):{})[t]}catch(n){return}},z=(e,t)=>{try{const n=e?JSON.parse(e):{},r=Object.assign({},n,t);return JSON.stringify(r)}catch(n){return JSON.stringify(t)}},U=()=>window.location!==window.parent.location,F=(e="")=>btoa(unescape(encodeURIComponent(e))),q=e=>e.startsWith("image")&&"image/x-sony-arw"!==e,V=({isFirst:e,prev:t,current:n,adminCount:r,botCount:i,memberCount:o})=>{const{is_admin:a,is_bot:s}=n,u=a&&!s,l=(null===t||void 0===t?void 0:t.is_admin)&&!(null!==t&&void 0!==t&&t.is_bot),c=u?"admin":s?"bot":"member",d="admin"===c?`admin - ${r}`:"bot"===c?`bot - ${i}`:`member - ${o}`;return{role:c,title:!!e||(l!==u||(null===t||void 0===t?void 0:t.is_bot)!==s)?d:void 0}},H=e=>e.sort(((e,t)=>{const n=Number(e.is_admin&&!e.is_bot),r=Number(t.is_admin&&!t.is_bot);return Number(r)-Number(n)||Number(t.is_bot)-Number(e.is_bot)}))},57103:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var i;n.d(t,{AO:()=>d,B6:()=>T,Gh:()=>L,HS:()=>j,Oi:()=>s,RO:()=>A,Rr:()=>f,TM:()=>a,pX:()=>U,pb:()=>I,rc:()=>i,tH:()=>z,ue:()=>g,yD:()=>D}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));const o="popstate";function a(e){return void 0===e&&(e={}),p((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=f(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),c("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"===typeof t?t:d(t))}),(function(e,t){u("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function s(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function u(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function l(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t,n,i){return void 0===n&&(n=null),r({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?f(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function f(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function p(e,t,n,a){void 0===a&&(a={});let{window:u=document.defaultView,v5Compat:f=!1}=a,p=u.history,h=i.Pop,g=null,m=y();function y(){return(p.state||{idx:null}).idx}function v(){h=i.Pop;let e=y(),t=null==e?null:e-m;m=e,g&&g({action:h,location:w.location,delta:t})}function b(e){let t="null"!==u.location.origin?u.location.origin:u.location.href,n="string"===typeof e?e:d(e);return n=n.replace(/ $/,"%20"),s(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==m&&(m=0,p.replaceState(r({},p.state,{idx:m}),""));let w={get action(){return h},get location(){return e(u,p)},listen(e){if(g)throw new Error("A history only accepts one active listener");return u.addEventListener(o,v),g=e,()=>{u.removeEventListener(o,v),g=null}},createHref:e=>t(u,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=i.Push;let r=c(w.location,e,t);n&&n(r,e),m=y()+1;let o=l(r,m),a=w.createHref(r);try{p.pushState(o,"",a)}catch(s){if(s instanceof DOMException&&"DataCloneError"===s.name)throw s;u.location.assign(a)}f&&g&&g({action:h,location:w.location,delta:1})},replace:function(e,t){h=i.Replace;let r=c(w.location,e,t);n&&n(r,e),m=y();let o=l(r,m),a=w.createHref(r);p.replaceState(o,"",a),f&&g&&g({action:h,location:w.location,delta:0})},go:e=>p.go(e)};return w}var h;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function g(e,t,n){return void 0===n&&(n="/"),m(e,t,n,!1)}function m(e,t,n,r){let i=I(("string"===typeof t?f(t):t).pathname||"/",n);if(null==i)return null;let o=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let s=0;null==a&&s<o.length;++s){let e=A(i);a=O(o[s],e,r)}return a}function y(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,o)=>{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(s(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let u=j([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),y(e.children,t,l,u)),(null!=e.path||e.index)&&t.push({path:u,score:E(u,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of v(e.path))i(e,t,r);else i(e,t)})),t}function v(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=v(r.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const b=/^:[\w-]+$/,w=3,_=2,S=1,x=10,k=-2,C=e=>"*"===e;function E(e,t){let n=e.split("/"),r=n.length;return n.some(C)&&(r+=k),t&&(r+=_),n.filter((e=>!C(e))).reduce(((e,t)=>e+(b.test(t)?w:""===t?S:x)),r)}function O(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let e=r[s],u=s===r.length-1,l="/"===o?t:t.slice(o.length)||"/",c=T({path:e.relativePath,caseSensitive:e.caseSensitive,end:u},l),d=e.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=T({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},l)),!c)return null;Object.assign(i,c.params),a.push({params:i,pathname:j([o,c.pathname]),pathnameBase:N(j([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=j([o,c.pathnameBase]))}return a}function T(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);u("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=s[n]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const u=s[n];return e[r]=i&&!u?void 0:(u||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function A(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return u(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function M(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function P(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function D(e,t){let n=P(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function L(e,t,n,i){let o;void 0===i&&(i=!1),"string"===typeof e?o=f(e):(o=r({},e),s(!o.pathname||!o.pathname.includes("?"),M("?","pathname","search",o)),s(!o.pathname||!o.pathname.includes("#"),M("#","pathname","hash",o)),s(!o.search||!o.search.includes("#"),M("#","search","hash",o)));let a,u=""===e||""===o.pathname,l=u?"/":o.pathname;if(null==l)a=n;else{let e=t.length-1;if(!i&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof e?f(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:R(r),hash:$(i)}}(o,a),d=l&&"/"!==l&&l.endsWith("/"),p=(u||"."===l)&&n.endsWith("/");return c.pathname.endsWith("/")||!d&&!p||(c.pathname+="/"),c}const j=e=>e.join("/").replace(/\/\/+/g,"/"),N=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),R=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",$=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class z extends Error{}function U(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const F=["post","put","patch","delete"],q=(new Set(F),["get",...F]);new Set(q),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred")},44154:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",u="week",l="month",c="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),o=n-i<0,a=t.clone().add(r+(o?-1:1),l);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:u,d:s,D:f,h:a,m:o,s:i,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=m;var _="$isDayjsObject",S=function(e){return e instanceof E||!(!e||!e[_])},x=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},k=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},C=v;C.l=x,C.i=S,C.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return C},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return k(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<k(e)},y.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,r=!!C.u(t)||t,c=C.p(e),p=function(e,t){var i=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},h=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case d:return r?p(1,0):p(31,11);case l:return r?p(1,m):p(0,m+1);case u:var b=this.$locale().weekStart||0,w=(g<b?g+7:g)-b;return p(r?y-w:y+(6-w),m);case s:case f:return h(v+"Hours",0);case a:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case i:return h(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var n,u=C.p(e),c="set"+(this.$u?"UTC":""),p=(n={},n[s]=c+"Date",n[f]=c+"Date",n[l]=c+"Month",n[d]=c+"FullYear",n[a]=c+"Hours",n[o]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[u],h=u===s?this.$D+(t-this.$W):t;if(u===l||u===d){var g=this.clone().set(f,1);g.$d[p](h),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[C.p(e)]()},y.add=function(r,c){var f,p=this;r=Number(r);var h=C.p(c),g=function(e){var t=k(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(h===l)return this.set(l,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return g(1);if(h===u)return g(7);var m=(f={},f[o]=t,f[a]=n,f[i]=e,f)[h]||1,y=this.$d.getTime()+r*m;return C.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),o=this.$H,a=this.$m,s=this.$M,u=n.weekdays,l=n.months,c=n.meridiem,d=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},f=function(e){return C.s(o%12||12,e,"0")},h=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,l,3);case"MMMM":return d(l,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,u,2);case"ddd":return d(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(o);case"HH":return C.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(o,a,!0);case"A":return h(o,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,f,p){var h,g=this,m=C.p(f),y=k(r),v=(y.utcOffset()-this.utcOffset())*t,b=this-y,w=function(){return C.m(g,y)};switch(m){case d:h=w()/12;break;case l:h=w();break;case c:h=w()/3;break;case u:h=(b-v)/6048e5;break;case s:h=(b-v)/864e5;break;case a:h=b/n;break;case o:h=b/t;break;case i:h=b/e;break;default:h=b}return p?h:C.a(h)},y.daysInMonth=function(){return this.endOf(l).$D},y.$locale=function(){return w[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=x(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return C.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),O=E.prototype;return k.prototype=O,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",l],["$y",d],["$D",f]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,E,k),e.$i=!0),k},k.locale=x,k.isDayjs=S,k.unix=function(e){return k(1e3*e)},k.en=w[b],k.Ls=w,k.p={},k}()},62474:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(e){return e+"\xba"}};return n.default.locale(r,null,!0),r}(n(44154))},94482:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return e+(1===e?"er":"")}};return n.default.locale(r,null,!0),r}(n(44154))},36379:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"ja",weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e){return e+"\u65e5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiem:function(e){return e<12?"\u5348\u524d":"\u5348\u5f8c"},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}};return n.default.locale(r,null,!0),r}(n(44154))},63698:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"pt",weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_Sa".split("_"),months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"\xba"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"}};return n.default.locale(r,null,!0),r}(n(44154))},36480:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"tr",weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e){return e+"."}};return n.default.locale(r,null,!0),r}(n(44154))},76432:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"zh-cn",weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,t){return"W"===t?e+"\u5468":e+"\u65e5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524d",s:"\u51e0\u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},meridiem:function(e,t){var n=100*e+t;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1100?"\u4e0a\u5348":n<1300?"\u4e2d\u5348":n<1800?"\u4e0b\u5348":"\u665a\u4e0a"}};return n.default.locale(r,null,!0),r}(n(44154))},10937:function(e){e.exports=function(){"use strict";var e,t,n=1e3,r=6e4,i=36e5,o=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,u=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c={years:s,months:u,days:o,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+"s"},h=function(e){return e<0},g=function(e){return h(e)?Math.ceil(e):Math.floor(e)},m=function(e){return Math.abs(e)},y=function(e,t){return e?h(e)?{negative:!0,format:""+m(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},v=function(){function h(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*c[p(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var i=e.match(l);if(i){var o=i.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var m=h.prototype;return m.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*c[n]}),0)},m.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/s),e%=s,this.$d.months=g(e/u),e%=u,this.$d.days=g(e/o),e%=o,this.$d.hours=g(e/i),e%=i,this.$d.minutes=g(e/r),e%=r,this.$d.seconds=g(e/n),e%=n,this.$d.milliseconds=e},m.toISOString=function(){var e=y(this.$d.years,"Y"),t=y(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=y(n,"D"),i=y(this.$d.hours,"H"),o=y(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var s=y(a,"S"),u=e.negative||t.negative||r.negative||i.negative||o.negative||s.negative,l=i.format||o.format||s.format?"T":"",c=(u?"-":"")+"P"+e.format+t.format+r.format+l+i.format+o.format+s.format;return"P"===c||"-P"===c?"P0D":c},m.toJSON=function(){return this.toISOString()},m.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(a,(function(e,t){return t||String(r[e])}))},m.as=function(e){return this.$ms/c[p(e)]},m.get=function(e){var t=this.$ms,n=p(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?g(t/c[n]):this.$d[n],t||0},m.add=function(e,t,n){var r;return r=t?e*c[p(t)]:d(e)?e.$ms:f(e,this).$ms,f(this.$ms+r*(n?-1:1),this)},m.subtract=function(e,t){return this.add(e,t,!0)},m.locale=function(e){var t=this.clone();return t.$l=e,t},m.clone=function(){return f(this.$ms,this)},m.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},m.valueOf=function(){return this.asMilliseconds()},m.milliseconds=function(){return this.get("milliseconds")},m.asMilliseconds=function(){return this.as("milliseconds")},m.seconds=function(){return this.get("seconds")},m.asSeconds=function(){return this.as("seconds")},m.minutes=function(){return this.get("minutes")},m.asMinutes=function(){return this.as("minutes")},m.hours=function(){return this.get("hours")},m.asHours=function(){return this.as("hours")},m.days=function(){return this.get("days")},m.asDays=function(){return this.as("days")},m.weeks=function(){return this.get("weeks")},m.asWeeks=function(){return this.as("weeks")},m.months=function(){return this.get("months")},m.asMonths=function(){return this.as("months")},m.years=function(){return this.get("years")},m.asYears=function(){return this.as("years")},h}(),b=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){var n=i.locale();return f(e,{$l:n},t)},i.isDuration=d;var o=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?b(this,e,1):o.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?b(this,e,-1):a.bind(this)(e,t)}}}()},45772:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}}()},8585:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isYesterday=function(){var e="YYYY-MM-DD",t=n().subtract(1,"day");return this.format(e)===t.format(e)}}}()},24896:function(e){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var r=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,o,a,s){for(var u,l,c,d=o.$locale().relativeTime||i,f=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=f.length,h=0;h<p;h+=1){var g=f[h];g.d&&(u=a?n(t).diff(o,g.d,!0):o.diff(t,g.d,!0));var m=(e.rounding||Math.round)(Math.abs(u));if(c=u>0,m<=g.r||!g.r){m<=1&&h>0&&(g=f[h-1]);var y=d[g.l];s&&(m=s(""+m)),l="string"==typeof y?y.replace("%d",m):y(m,r,g.l,c);break}}if(r)return l;var v=c?d.future:d.past;return"function"==typeof v?v(l):v.replace("%s",l)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var a=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(a(this),e)},r.fromNow=function(e){return this.from(a(this),e)}}}()},36060:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(88330),i=n.n(r),o=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function a(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(i()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var a=new RegExp(o),s=null;null!==(s=a.exec(e));)if(s[0].trim())if(s[1]){var u=s[1].trim(),l=[u,""];u.indexOf("=")>-1&&(l=u.split("=")),t.attrs[l[0]]=l[1],a.lastIndex--}else s[2]&&(t.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return t}var s=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,u=/^\s*$/,l=Object.create(null);function c(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(c,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var d={parse:function(e,t){t||(t={}),t.components||(t.components=l);var n,r=[],i=[],o=-1,c=!1;if(0!==e.indexOf("<")){var d=e.indexOf("<");r.push({type:"text",content:-1===d?e:e.substring(0,d)})}return e.replace(s,(function(s,l){if(c){if(s!=="</"+n.name+">")return;c=!1}var d,f="/"!==s.charAt(1),p=s.startsWith("\x3c!--"),h=l+s.length,g=e.charAt(h);if(p){var m=a(s);return o<0?(r.push(m),r):((d=i[o]).children.push(m),r)}if(f&&(o++,"tag"===(n=a(s)).type&&t.components[n.name]&&(n.type="component",c=!0),n.voidElement||c||!g||"<"===g||n.children.push({type:"text",content:e.slice(h,e.indexOf("<",h))}),0===o&&r.push(n),(d=i[o-1])&&d.children.push(n),i[o]=n),(!f||n.voidElement)&&(o>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(o--,n=-1===o?r:i[o]),!c&&"<"!==g&&g)){d=-1===o?r:i[o].children;var y=e.indexOf("<",h),v=e.slice(h,-1===y?void 0:y);u.test(v)&&(v=" "),(y>-1&&o+d.length>=0||" "!==v)&&d.push({type:"text",content:v})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+c("",t)}),"")}};const f=d},67636:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=16,l=32,c=64,d=128,f=256,p=1/0,h=9007199254740991,g=NaN,m=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",u],["flip",512],["partial",l],["partialRight",c],["rearg",f]],v="[object Arguments]",b="[object Array]",w="[object Boolean]",_="[object Date]",S="[object Error]",x="[object Function]",k="[object GeneratorFunction]",C="[object Map]",E="[object Number]",O="[object Object]",T="[object Promise]",A="[object RegExp]",I="[object Set]",M="[object String]",P="[object Symbol]",D="[object WeakMap]",L="[object ArrayBuffer]",j="[object DataView]",N="[object Float32Array]",R="[object Float64Array]",$="[object Int8Array]",z="[object Int16Array]",U="[object Int32Array]",F="[object Uint8Array]",q="[object Uint8ClampedArray]",V="[object Uint16Array]",H="[object Uint32Array]",B=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,Q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,G=RegExp(Y.source),J=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),ae=/^\s+/,se=/\s/,ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Ce="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Me="['\u2019]",Pe="["+ke+"]",De="["+Ie+"]",Le="["+Ce+"]",je="\\d+",Ne="["+Ee+"]",Re="["+Oe+"]",$e="[^"+ke+Ie+je+Ee+Oe+Te+"]",ze="\\ud83c[\\udffb-\\udfff]",Ue="[^"+ke+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Te+"]",He="\\u200d",Be="(?:"+Re+"|"+$e+")",We="(?:"+Ve+"|"+$e+")",Qe="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ye="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Le+"|"+ze+")"+"?",Ge="["+Ae+"]?",Je=Ge+Ke+("(?:"+He+"(?:"+[Ue,Fe,qe].join("|")+")"+Ge+Ke+")*"),Ze="(?:"+[Ne,Fe,qe].join("|")+")"+Je,Xe="(?:"+[Ue+Le+"?",Le,Fe,qe,Pe].join("|")+")",et=RegExp(Me,"g"),tt=RegExp(Le,"g"),nt=RegExp(ze+"(?="+ze+")|"+Xe+Je,"g"),rt=RegExp([Ve+"?"+Re+"+"+Qe+"(?="+[De,Ve,"$"].join("|")+")",We+"+"+Ye+"(?="+[De,Ve+Be,"$"].join("|")+")",Ve+"?"+Be+"+"+Qe,Ve+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",je,Ze].join("|"),"g"),it=RegExp("["+He+ke+Ce+Ae+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,ut={};ut[N]=ut[R]=ut[$]=ut[z]=ut[U]=ut[F]=ut[q]=ut[V]=ut[H]=!0,ut[v]=ut[b]=ut[L]=ut[w]=ut[j]=ut[_]=ut[S]=ut[x]=ut[C]=ut[E]=ut[O]=ut[A]=ut[I]=ut[M]=ut[D]=!1;var lt={};lt[v]=lt[b]=lt[L]=lt[j]=lt[w]=lt[_]=lt[N]=lt[R]=lt[$]=lt[z]=lt[U]=lt[C]=lt[E]=lt[O]=lt[A]=lt[I]=lt[M]=lt[P]=lt[F]=lt[q]=lt[V]=lt[H]=!0,lt[S]=lt[x]=lt[D]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,gt=pt||ht||Function("return this")(),mt=t&&!t.nodeType&&t,yt=mt&&e&&!e.nodeType&&e,vt=yt&&yt.exports===mt,bt=vt&&pt.process,wt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),_t=wt&&wt.isArrayBuffer,St=wt&&wt.isDate,xt=wt&&wt.isMap,kt=wt&&wt.isRegExp,Ct=wt&&wt.isSet,Et=wt&&wt.isTypedArray;function Ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Dt(e,t){return!!(null==e?0:e.length)&&Vt(e,t,0)>-1}function Lt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function jt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Nt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Rt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function $t(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function zt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ut=Qt("length");function Ft(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function qt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Vt(e,t,n){return t===t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):qt(e,Bt,n)}function Ht(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Bt(e){return e!==e}function Wt(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:g}function Qt(e){return function(t){return null==t?i:t[e]}}function Yt(e){return function(t){return null==e?i:e[t]}}function Kt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Gt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Jt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Xt(e){return function(t){return e(t)}}function en(e,t){return jt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Vt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}var on=Yt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Yt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(e){return"\\"+ct[e]}function un(e){return it.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[i++]=n)}return o}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return un(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Ut(e)}function gn(e){return un(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var yn=Yt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vn=function e(t){var n=(t=null==t?gt:vn.defaults(gt.Object(),t,vn.pick(gt,at))).Array,r=t.Date,se=t.Error,ke=t.Function,Ce=t.Math,Ee=t.Object,Oe=t.RegExp,Te=t.String,Ae=t.TypeError,Ie=n.prototype,Me=ke.prototype,Pe=Ee.prototype,De=t["__core-js_shared__"],Le=Me.toString,je=Pe.hasOwnProperty,Ne=0,Re=function(){var e=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$e=Pe.toString,ze=Le.call(Ee),Ue=gt._,Fe=Oe("^"+Le.call(je).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=vt?t.Buffer:i,Ve=t.Symbol,He=t.Uint8Array,Be=qe?qe.allocUnsafe:i,We=cn(Ee.getPrototypeOf,Ee),Qe=Ee.create,Ye=Pe.propertyIsEnumerable,Ke=Ie.splice,Ge=Ve?Ve.isConcatSpreadable:i,Je=Ve?Ve.iterator:i,Ze=Ve?Ve.toStringTag:i,Xe=function(){try{var e=fo(Ee,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=r&&r.now!==gt.Date.now&&r.now,ct=t.setTimeout!==gt.setTimeout&&t.setTimeout,pt=Ce.ceil,ht=Ce.floor,mt=Ee.getOwnPropertySymbols,yt=qe?qe.isBuffer:i,bt=t.isFinite,wt=Ie.join,Ut=cn(Ee.keys,Ee),Yt=Ce.max,bn=Ce.min,wn=r.now,_n=t.parseInt,Sn=Ce.random,xn=Ie.reverse,kn=fo(t,"DataView"),Cn=fo(t,"Map"),En=fo(t,"Promise"),On=fo(t,"Set"),Tn=fo(t,"WeakMap"),An=fo(Ee,"create"),In=Tn&&new Tn,Mn={},Pn=$o(kn),Dn=$o(Cn),Ln=$o(En),jn=$o(On),Nn=$o(Tn),Rn=Ve?Ve.prototype:i,$n=Rn?Rn.valueOf:i,zn=Rn?Rn.toString:i;function Un(e){if(ts(e)&&!Ha(e)&&!(e instanceof Hn)){if(e instanceof Vn)return e;if(je.call(e,"__wrapped__"))return zo(e)}return new Vn(e)}var Fn=function(){function e(){}return function(t){if(!es(t))return{};if(Qe)return Qe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function qn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Bn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Gn(e,t){var n=Ha(e),r=!n&&Va(e),i=!n&&!r&&Ya(e),o=!n&&!r&&!i&&ls(e),a=n||r||i||o,s=a?Jt(e.length,Te):[],u=s.length;for(var l in e)!t&&!je.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||bo(l,u))||s.push(l);return s}function Jn(e){var t=e.length;return t?e[Yr(0,t-1)]:i}function Zn(e,t){return jo(Ai(e),sr(t,0,e.length))}function Xn(e){return jo(Ai(e))}function er(e,t,n){(n!==i&&!Ua(e[t],n)||n===i&&!(t in e))&&or(e,t,n)}function tr(e,t,n){var r=e[t];je.call(e,t)&&Ua(r,n)&&(n!==i||t in e)||or(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(Ua(e[n][0],t))return n;return-1}function rr(e,t,n,r){return fr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function ir(e,t){return e&&Ii(t,Ms(t),e)}function or(e,t,n){"__proto__"==t&&Xe?Xe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var r=-1,o=t.length,a=n(o),s=null==e;++r<o;)a[r]=s?i:Es(e,t[r]);return a}function sr(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ur(e,t,n,r,o,a){var s,u=1&t,l=2&t,c=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!es(e))return e;var d=Ha(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&je.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Ai(e,s)}else{var f=go(e),p=f==x||f==k;if(Ya(e))return xi(e,u);if(f==O||f==v||p&&!o){if(s=l||p?{}:yo(e),!u)return l?function(e,t){return Ii(e,ho(e),t)}(e,function(e,t){return e&&Ii(t,Ps(t),e)}(s,e)):function(e,t){return Ii(e,po(e),t)}(e,ir(s,e))}else{if(!lt[f])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case L:return ki(e);case w:case _:return new r(+e);case j:return function(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case R:case $:case z:case U:case F:case q:case V:case H:return Ci(e,n);case C:return new r;case E:case M:return new r(e);case A:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case I:return new r;case P:return i=e,$n?Ee($n.call(i)):{}}var i}(e,f,u)}}a||(a=new Kn);var h=a.get(e);if(h)return h;a.set(e,s),as(e)?e.forEach((function(r){s.add(ur(r,t,n,r,e,a))})):ns(e)&&e.forEach((function(r,i){s.set(i,ur(r,t,n,i,e,a))}));var g=d?i:(c?l?io:ro:l?Ps:Ms)(e);return At(g||e,(function(r,i){g&&(r=e[i=r]),tr(s,i,ur(r,t,n,i,e,a))})),s}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Ae(o);return Mo((function(){e.apply(i,n)}),t)}function dr(e,t,n,r){var i=-1,o=Dt,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=jt(t,Xt(n))),r?(o=Lt,a=!1):t.length>=200&&(o=tn,a=!1,t=new Yn(t));e:for(;++i<s;){var c=e[i],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d===d){for(var f=l;f--;)if(t[f]===d)continue e;u.push(c)}else o(t,d,r)||u.push(c)}return u}Un.templateSettings={escape:Z,evaluate:X,interpolate:ee,variable:"",imports:{_:Un}},Un.prototype=qn.prototype,Un.prototype.constructor=Un,Vn.prototype=Fn(qn.prototype),Vn.prototype.constructor=Vn,Hn.prototype=Fn(qn.prototype),Hn.prototype.constructor=Hn,Bn.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},Bn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Bn.prototype.get=function(e){var t=this.__data__;if(An){var n=t[e];return n===a?i:n}return je.call(t,e)?t[e]:i},Bn.prototype.has=function(e){var t=this.__data__;return An?t[e]!==i:je.call(t,e)},Bn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=An&&t===i?a:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Wn.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?i:t[n][1]},Wn.prototype.has=function(e){return nr(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Bn,map:new(Cn||Wn),string:new Bn}},Qn.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return lo(this,e).get(e)},Qn.prototype.has=function(e){return lo(this,e).has(e)},Qn.prototype.set=function(e,t){var n=lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var fr=Di(wr),pr=Di(_r,!0);function hr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(u===i?s===s&&!us(s):n(s,u)))var u=s,l=a}return l}function mr(e,t){var n=[];return fr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=vo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yr(s,t-1,n,r,i):Nt(i,s):r||(i[i.length]=s)}return i}var vr=Li(),br=Li(!0);function wr(e,t){return e&&vr(e,t,Ms)}function _r(e,t){return e&&br(e,t,Ms)}function Sr(e,t){return Pt(t,(function(t){return Ja(e[t])}))}function xr(e,t){for(var n=0,r=(t=bi(t,e)).length;null!=e&&n<r;)e=e[Ro(t[n++])];return n&&n==r?e:i}function kr(e,t,n){var r=t(e);return Ha(e)?r:Nt(r,n(e))}function Cr(e){return null==e?e===i?"[object Undefined]":"[object Null]":Ze&&Ze in Ee(e)?function(e){var t=je.call(e,Ze),n=e[Ze];try{e[Ze]=i;var r=!0}catch(a){}var o=$e.call(e);r&&(t?e[Ze]=n:delete e[Ze]);return o}(e):function(e){return $e.call(e)}(e)}function Er(e,t){return e>t}function Or(e,t){return null!=e&&je.call(e,t)}function Tr(e,t){return null!=e&&t in Ee(e)}function Ar(e,t,r){for(var o=r?Lt:Dt,a=e[0].length,s=e.length,u=s,l=n(s),c=1/0,d=[];u--;){var f=e[u];u&&t&&(f=jt(f,Xt(t))),c=bn(f.length,c),l[u]=!r&&(t||a>=120&&f.length>=120)?new Yn(u&&f):i}f=e[0];var p=-1,h=l[0];e:for(;++p<a&&d.length<c;){var g=f[p],m=t?t(g):g;if(g=r||0!==g?g:0,!(h?tn(h,m):o(d,m,r))){for(u=s;--u;){var y=l[u];if(!(y?tn(y,m):o(e[u],m,r)))continue e}h&&h.push(m),d.push(g)}}return d}function Ir(e,t,n){var r=null==(e=To(e,t=bi(t,e)))?e:e[Ro(Go(t))];return null==r?i:Ot(r,e,n)}function Mr(e){return ts(e)&&Cr(e)==v}function Pr(e,t,n,r,o){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!==e&&t!==t:function(e,t,n,r,o,a){var s=Ha(e),u=Ha(t),l=s?b:go(e),c=u?b:go(t),d=(l=l==v?O:l)==O,f=(c=c==v?O:c)==O,p=l==c;if(p&&Ya(e)){if(!Ya(t))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new Kn),s||ls(e)?to(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case j:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!o(new He(e),new He(t)));case w:case _:case E:return Ua(+e,+t);case S:return e.name==t.name&&e.message==t.message;case A:case M:return e==t+"";case C:var s=ln;case I:var u=1&r;if(s||(s=fn),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=to(s(e),s(t),r,i,o,a);return a.delete(e),c;case P:if($n)return $n.call(e)==$n.call(t)}return!1}(e,t,l,n,r,o,a);if(!(1&n)){var h=d&&je.call(e,"__wrapped__"),g=f&&je.call(t,"__wrapped__");if(h||g){var m=h?e.value():e,y=g?t.value():t;return a||(a=new Kn),o(m,y,n,r,a)}}if(!p)return!1;return a||(a=new Kn),function(e,t,n,r,o,a){var s=1&n,u=ro(e),l=u.length,c=ro(t),d=c.length;if(l!=d&&!s)return!1;var f=l;for(;f--;){var p=u[f];if(!(s?p in t:je.call(t,p)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);var y=s;for(;++f<l;){var v=e[p=u[f]],b=t[p];if(r)var w=s?r(b,v,p,t,e,a):r(v,b,p,e,t,a);if(!(w===i?v===b||o(v,b,n,r,a):w)){m=!1;break}y||(y="constructor"==p)}if(m&&!y){var _=e.constructor,S=t.constructor;_==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof S&&S instanceof S||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,o,a)}(e,t,n,r,Pr,o))}function Dr(e,t,n,r){var o=n.length,a=o,s=!r;if(null==e)return!a;for(e=Ee(e);o--;){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var l=(u=n[o])[0],c=e[l],d=u[1];if(s&&u[2]){if(c===i&&!(l in e))return!1}else{var f=new Kn;if(r)var p=r(c,d,l,e,t,f);if(!(p===i?Pr(d,c,3,r,f):p))return!1}}return!0}function Lr(e){return!(!es(e)||(t=e,Re&&Re in t))&&(Ja(e)?Fe:ve).test($o(e));var t}function jr(e){return"function"==typeof e?e:null==e?ru:"object"==typeof e?Ha(e)?Fr(e[0],e[1]):Ur(e):fu(e)}function Nr(e){if(!ko(e))return Ut(e);var t=[];for(var n in Ee(e))je.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Rr(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=ko(e),n=[];for(var r in e)("constructor"!=r||!t&&je.call(e,r))&&n.push(r);return n}function $r(e,t){return e<t}function zr(e,t){var r=-1,i=Wa(e)?n(e.length):[];return fr(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Ur(e){var t=co(e);return 1==t.length&&t[0][2]?Eo(t[0][0],t[0][1]):function(n){return n===e||Dr(n,e,t)}}function Fr(e,t){return _o(e)&&Co(t)?Eo(Ro(e),t):function(n){var r=Es(n,e);return r===i&&r===t?Os(n,e):Pr(t,r,3)}}function qr(e,t,n,r,o){e!==t&&vr(t,(function(a,s){if(o||(o=new Kn),es(a))!function(e,t,n,r,o,a,s){var u=Ao(e,n),l=Ao(t,n),c=s.get(l);if(c)return void er(e,n,c);var d=a?a(u,l,n+"",e,t,s):i,f=d===i;if(f){var p=Ha(l),h=!p&&Ya(l),g=!p&&!h&&ls(l);d=l,p||h||g?Ha(u)?d=u:Qa(u)?d=Ai(u):h?(f=!1,d=xi(l,!0)):g?(f=!1,d=Ci(l,!0)):d=[]:is(l)||Va(l)?(d=u,Va(u)?d=ys(u):es(u)&&!Ja(u)||(d=yo(l))):f=!1}f&&(s.set(l,d),o(d,l,r,a,s),s.delete(l));er(e,n,d)}(e,t,s,n,qr,r,o);else{var u=r?r(Ao(e,s),a,s+"",e,t,o):i;u===i&&(u=a),er(e,s,u)}}),Ps)}function Vr(e,t){var n=e.length;if(n)return bo(t+=t<0?n:0,n)?e[t]:i}function Hr(e,t,n){t=t.length?jt(t,(function(e){return Ha(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e})):[ru];var r=-1;t=jt(t,Xt(uo()));var i=zr(e,(function(e,n,i){var o=jt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var u=Ei(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Br(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=xr(e,a);n(s,a)&&Xr(o,bi(a,e),s)}return o}function Wr(e,t,n,r){var i=r?Ht:Vt,o=-1,a=t.length,s=e;for(e===t&&(t=Ai(t)),n&&(s=jt(e,Xt(n)));++o<a;)for(var u=0,l=t[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==e&&Ke.call(s,u,1),Ke.call(e,u,1);return e}function Qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;bo(i)?Ke.call(e,i,1):di(e,i)}}return e}function Yr(e,t){return e+ht(Sn()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Po(Oo(e,t,ru),e+"")}function Jr(e){return Jn(Us(e))}function Zr(e,t){var n=Us(e);return jo(n,sr(t,0,n.length))}function Xr(e,t,n,r){if(!es(e))return e;for(var o=-1,a=(t=bi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var l=Ro(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=s){var d=u[l];(c=r?r(d,l,u):i)===i&&(c=es(d)?d:bo(t[o+1])?[]:{})}tr(u,l,c),u=u[l]}return e}var ei=In?function(e,t){return In.set(e,t),e}:ru,ti=Xe?function(e,t){return Xe(e,"toString",{configurable:!0,enumerable:!1,value:eu(t),writable:!0})}:ru;function ni(e){return jo(Us(e))}function ri(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i<o;)a[i]=e[i+t];return a}function ii(e,t){var n;return fr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function oi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!us(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ai(e,t,ru,n)}function ai(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!==t,u=null===t,l=us(t),c=t===i;o<a;){var d=ht((o+a)/2),f=n(e[d]),p=f!==i,h=null===f,g=f===f,m=us(f);if(s)var y=r||g;else y=c?g&&(r||p):u?g&&p&&(r||!h):l?g&&p&&!h&&(r||!m):!h&&!m&&(r?f<=t:f<t);y?o=d+1:a=d}return bn(a,4294967294)}function si(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ua(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function ui(e){return"number"==typeof e?e:us(e)?g:+e}function li(e){if("string"==typeof e)return e;if(Ha(e))return jt(e,li)+"";if(us(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ci(e,t,n){var r=-1,i=Dt,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=Lt;else if(o>=200){var l=t?null:Ki(e);if(l)return fn(l);a=!1,i=tn,u=new Yn}else u=t?[]:s;e:for(;++r<o;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d===d){for(var f=u.length;f--;)if(u[f]===d)continue e;t&&u.push(d),s.push(c)}else i(u,d,n)||(u!==s&&u.push(d),s.push(c))}return s}function di(e,t){return null==(e=To(e,t=bi(t,e)))||delete e[Ro(Go(t))]}function fi(e,t,n,r){return Xr(e,t,n(xr(e,t)),r)}function pi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ri(e,r?0:o,r?o+1:i):ri(e,r?o+1:0,r?i:o)}function hi(e,t){var n=e;return n instanceof Hn&&(n=n.value()),Rt(t,(function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))}),n)}function gi(e,t,r){var i=e.length;if(i<2)return i?ci(e[0]):[];for(var o=-1,a=n(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=dr(a[o]||s,e[u],t,r));return ci(yr(a,1),t,r)}function mi(e,t,n){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var u=r<a?t[r]:i;n(s,e[r],u)}return s}function yi(e){return Qa(e)?e:[]}function vi(e){return"function"==typeof e?e:ru}function bi(e,t){return Ha(e)?e:_o(e,t)?[e]:No(vs(e))}var wi=Gr;function _i(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ri(e,t,n)}var Si=nt||function(e){return gt.clearTimeout(e)};function xi(e,t){if(t)return e.slice();var n=e.length,r=Be?Be(n):new e.constructor(n);return e.copy(r),r}function ki(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Ci(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=us(e),s=t!==i,u=null===t,l=t===t,c=us(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||u&&n&&o||!s&&o||!l)return-1}return 0}function Oi(e,t,r,i){for(var o=-1,a=e.length,s=r.length,u=-1,l=t.length,c=Yt(a-s,0),d=n(l+c),f=!i;++u<l;)d[u]=t[u];for(;++o<s;)(f||o<a)&&(d[r[o]]=e[o]);for(;c--;)d[u++]=e[o++];return d}function Ti(e,t,r,i){for(var o=-1,a=e.length,s=-1,u=r.length,l=-1,c=t.length,d=Yt(a-u,0),f=n(d+c),p=!i;++o<d;)f[o]=e[o];for(var h=o;++l<c;)f[h+l]=t[l];for(;++s<u;)(p||o<a)&&(f[h+r[s]]=e[o++]);return f}function Ai(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function Ii(e,t,n,r){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],l=r?r(n[u],e[u],u,n,e):i;l===i&&(l=e[u]),o?or(n,u,l):tr(n,u,l)}return n}function Mi(e,t){return function(n,r){var i=Ha(n)?Tt:rr,o=t?t():{};return i(n,e,uo(r,2),o)}}function Pi(e){return Gr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&wo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Ee(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Di(e,t){return function(n,r){if(null==n)return n;if(!Wa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Ee(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Li(e){return function(t,n,r){for(var i=-1,o=Ee(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function ji(e){return function(t){var n=un(t=vs(t))?gn(t):i,r=n?n[0]:t.charAt(0),o=n?_i(n,1).join(""):t.slice(1);return r[e]()+o}}function Ni(e){return function(t){return Rt(Js(Vs(t).replace(et,"")),e,"")}}function Ri(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fn(e.prototype),r=e.apply(n,t);return es(r)?r:n}}function $i(e){return function(t,n,r){var o=Ee(t);if(!Wa(t)){var a=uo(n,3);t=Ms(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,r);return s>-1?o[a?t[s]:s]:i}}function zi(e){return no((function(t){var n=t.length,r=n,a=Vn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ae(o);if(a&&!u&&"wrapper"==ao(s))var u=new Vn([],!0)}for(r=u?r:n;++r<n;){var l=ao(s=t[r]),c="wrapper"==l?oo(s):i;u=c&&So(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[ao(c[0])].apply(u,c[3]):1==s.length&&So(s)?u[l]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Ha(r))return u.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ui(e,t,r,o,a,s,u,l,c,f){var p=t&d,h=1&t,g=2&t,m=24&t,y=512&t,v=g?i:Ri(e);return function d(){for(var b=arguments.length,w=n(b),_=b;_--;)w[_]=arguments[_];if(m)var S=so(d),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,S);if(o&&(w=Oi(w,o,a,m)),s&&(w=Ti(w,s,u,m)),b-=x,m&&b<f){var k=dn(w,S);return Qi(e,t,Ui,d.placeholder,r,w,k,l,c,f-b)}var C=h?r:this,E=g?C[e]:e;return b=w.length,l?w=function(e,t){var n=e.length,r=bn(t.length,n),o=Ai(e);for(;r--;){var a=t[r];e[r]=bo(a,n)?o[a]:i}return e}(w,l):y&&b>1&&w.reverse(),p&&c<b&&(w.length=c),this&&this!==gt&&this instanceof d&&(E=v||Ri(E)),E.apply(C,w)}}function Fi(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function qi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=li(n),r=li(r)):(n=ui(n),r=ui(r)),o=e(n,r)}return o}}function Vi(e){return no((function(t){return t=jt(t,Xt(uo())),Gr((function(n){var r=this;return e(t,(function(e){return Ot(e,r,n)}))}))}))}function Hi(e,t){var n=(t=t===i?" ":li(t)).length;if(n<2)return n?Kr(t,e):t;var r=Kr(t,pt(e/hn(t)));return un(t)?_i(gn(r),0,e).join(""):r.slice(0,e)}function Bi(e){return function(t,r,o){return o&&"number"!=typeof o&&wo(t,r,o)&&(r=o=i),t=ps(t),r===i?(r=t,t=0):r=ps(r),function(e,t,r,i){for(var o=-1,a=Yt(pt((t-e)/(r||1)),0),s=n(a);a--;)s[i?a:++o]=e,e+=r;return s}(t,r,o=o===i?t<r?1:-1:ps(o),e)}}function Wi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function Qi(e,t,n,r,o,a,s,u,d,f){var p=8&t;t|=p?l:c,4&(t&=~(p?c:l))||(t&=-4);var h=[e,t,o,p?a:i,p?s:i,p?i:a,p?i:s,u,d,f],g=n.apply(i,h);return So(e)&&Io(g,h),g.placeholder=r,Do(g,e,t)}function Yi(e){var t=Ce[e];return function(e,n){if(e=ms(e),(n=null==n?0:bn(hs(n),292))&&bt(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ki=On&&1/fn(new On([,-0]))[1]==p?function(e){return new On(e)}:uu;function Gi(e){return function(t){var n=go(t);return n==C?ln(t):n==I?pn(t):function(e,t){return jt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ji(e,t,r,a,p,h,g,m){var y=2&t;if(!y&&"function"!=typeof e)throw new Ae(o);var v=a?a.length:0;if(v||(t&=-97,a=p=i),g=g===i?g:Yt(hs(g),0),m=m===i?m:hs(m),v-=p?p.length:0,t&c){var b=a,w=p;a=p=i}var _=y?i:oo(e),S=[e,t,r,a,p,b,w,h,g,m];if(_&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==d&&8==n||r==d&&n==f&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?Oi(l,u,t[4]):u,e[4]=l?dn(e[3],s):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Ti(l,u,t[6]):u,e[6]=l?dn(e[5],s):t[6]);(u=t[7])&&(e[7]=u);r&d&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(S,_),e=S[0],t=S[1],r=S[2],a=S[3],p=S[4],!(m=S[9]=S[9]===i?y?0:e.length:Yt(S[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||t==u?function(e,t,r){var o=Ri(e);return function a(){for(var s=arguments.length,u=n(s),l=s,c=so(a);l--;)u[l]=arguments[l];var d=s<3&&u[0]!==c&&u[s-1]!==c?[]:dn(u,c);return(s-=d.length)<r?Qi(e,t,Ui,a.placeholder,i,u,d,i,i,r-s):Ot(this&&this!==gt&&this instanceof a?o:e,this,u)}}(e,t,m):t!=l&&33!=t||p.length?Ui.apply(i,S):function(e,t,r,i){var o=1&t,a=Ri(e);return function t(){for(var s=-1,u=arguments.length,l=-1,c=i.length,d=n(c+u),f=this&&this!==gt&&this instanceof t?a:e;++l<c;)d[l]=i[l];for(;u--;)d[l++]=arguments[++s];return Ot(f,o?r:this,d)}}(e,t,r,a);else var x=function(e,t,n){var r=1&t,i=Ri(e);return function t(){return(this&&this!==gt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return Do((_?ei:Io)(x,S),e,t)}function Zi(e,t,n,r){return e===i||Ua(e,Pe[n])&&!je.call(r,n)?t:e}function Xi(e,t,n,r,o,a){return es(e)&&es(t)&&(a.set(t,e),qr(e,t,i,Xi,a),a.delete(t)),e}function eo(e){return is(e)?i:e}function to(e,t,n,r,o,a){var s=1&n,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,h=2&n?new Yn:i;for(a.set(e,t),a.set(t,e);++f<u;){var g=e[f],m=t[f];if(r)var y=s?r(m,g,f,t,e,a):r(g,m,f,e,t,a);if(y!==i){if(y)continue;p=!1;break}if(h){if(!zt(t,(function(e,t){if(!tn(h,t)&&(g===e||o(g,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(g!==m&&!o(g,m,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function no(e){return Po(Oo(e,i,Bo),e+"")}function ro(e){return kr(e,Ms,po)}function io(e){return kr(e,Ps,ho)}var oo=In?function(e){return In.get(e)}:uu;function ao(e){for(var t=e.name+"",n=Mn[t],r=je.call(Mn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function so(e){return(je.call(Un,"placeholder")?Un:e).placeholder}function uo(){var e=Un.iteratee||iu;return e=e===iu?jr:e,arguments.length?e(arguments[0],arguments[1]):e}function lo(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function co(e){for(var t=Ms(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Co(i)]}return t}function fo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Lr(n)?n:i}var po=mt?function(e){return null==e?[]:(e=Ee(e),Pt(mt(e),(function(t){return Ye.call(e,t)})))}:gu,ho=mt?function(e){for(var t=[];e;)Nt(t,po(e)),e=We(e);return t}:gu,go=Cr;function mo(e,t,n){for(var r=-1,i=(t=bi(t,e)).length,o=!1;++r<i;){var a=Ro(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Xa(i)&&bo(a,i)&&(Ha(e)||Va(e))}function yo(e){return"function"!=typeof e.constructor||ko(e)?{}:Fn(We(e))}function vo(e){return Ha(e)||Va(e)||!!(Ge&&e&&e[Ge])}function bo(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function wo(e,t,n){if(!es(n))return!1;var r=typeof t;return!!("number"==r?Wa(n)&&bo(t,n.length):"string"==r&&t in n)&&Ua(n[t],e)}function _o(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ee(t))}function So(e){var t=ao(e),n=Un[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=oo(n);return!!r&&e===r[0]}(kn&&go(new kn(new ArrayBuffer(1)))!=j||Cn&&go(new Cn)!=C||En&&go(En.resolve())!=T||On&&go(new On)!=I||Tn&&go(new Tn)!=D)&&(go=function(e){var t=Cr(e),n=t==O?e.constructor:i,r=n?$o(n):"";if(r)switch(r){case Pn:return j;case Dn:return C;case Ln:return T;case jn:return I;case Nn:return D}return t});var xo=De?Ja:mu;function ko(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function Co(e){return e===e&&!es(e)}function Eo(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Ee(n)))}}function Oo(e,t,r){return t=Yt(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=Yt(i.length-t,0),s=n(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=n(t+1);++o<t;)u[o]=i[o];return u[t]=r(s),Ot(e,this,u)}}function To(e,t){return t.length<2?e:xr(e,ri(t,0,-1))}function Ao(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Io=Lo(ei),Mo=ct||function(e,t){return gt.setTimeout(e,t)},Po=Lo(ti);function Do(e,t,n){var r=t+"";return Po(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return At(y,(function(n){var r="_."+n[0];t&n[1]&&!Dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ce):[]}(r),n)))}function Lo(e){var t=0,n=0;return function(){var r=wn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function jo(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Yr(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var No=function(e){var t=La(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,i){t.push(r?i.replace(pe,"$1"):n||e)})),t}));function Ro(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function $o(e){if(null!=e){try{return Le.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function zo(e){if(e instanceof Hn)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=Ai(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Uo=Gr((function(e,t){return Qa(e)?dr(e,yr(t,1,Qa,!0)):[]})),Fo=Gr((function(e,t){var n=Go(t);return Qa(n)&&(n=i),Qa(e)?dr(e,yr(t,1,Qa,!0),uo(n,2)):[]})),qo=Gr((function(e,t){var n=Go(t);return Qa(n)&&(n=i),Qa(e)?dr(e,yr(t,1,Qa,!0),i,n):[]}));function Vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hs(n);return i<0&&(i=Yt(r+i,0)),qt(e,uo(t,3),i)}function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=hs(n),o=n<0?Yt(r+o,0):bn(o,r-1)),qt(e,uo(t,3),o,!0)}function Bo(e){return(null==e?0:e.length)?yr(e,1):[]}function Wo(e){return e&&e.length?e[0]:i}var Qo=Gr((function(e){var t=jt(e,yi);return t.length&&t[0]===e[0]?Ar(t):[]})),Yo=Gr((function(e){var t=Go(e),n=jt(e,yi);return t===Go(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ar(n,uo(t,2)):[]})),Ko=Gr((function(e){var t=Go(e),n=jt(e,yi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ar(n,i,t):[]}));function Go(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Jo=Gr(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var Xo=no((function(e,t){var n=null==e?0:e.length,r=ar(e,t);return Qr(e,jt(t,(function(e){return bo(e,n)?+e:e})).sort(Ei)),r}));function ea(e){return null==e?e:xn.call(e)}var ta=Gr((function(e){return ci(yr(e,1,Qa,!0))})),na=Gr((function(e){var t=Go(e);return Qa(t)&&(t=i),ci(yr(e,1,Qa,!0),uo(t,2))})),ra=Gr((function(e){var t=Go(e);return t="function"==typeof t?t:i,ci(yr(e,1,Qa,!0),i,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if(Qa(e))return t=Yt(e.length,t),!0})),Jt(t,(function(t){return jt(e,Qt(t))}))}function oa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:jt(n,(function(e){return Ot(t,i,e)}))}var aa=Gr((function(e,t){return Qa(e)?dr(e,t):[]})),sa=Gr((function(e){return gi(Pt(e,Qa))})),ua=Gr((function(e){var t=Go(e);return Qa(t)&&(t=i),gi(Pt(e,Qa),uo(t,2))})),la=Gr((function(e){var t=Go(e);return t="function"==typeof t?t:i,gi(Pt(e,Qa),i,t)})),ca=Gr(ia);var da=Gr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,oa(e,n)}));function fa(e){var t=Un(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ha=no((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&bo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[o],thisArg:i}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var ga=Mi((function(e,t,n){je.call(e,n)?++e[n]:or(e,n,1)}));var ma=$i(Vo),ya=$i(Ho);function va(e,t){return(Ha(e)?At:fr)(e,uo(t,3))}function ba(e,t){return(Ha(e)?It:pr)(e,uo(t,3))}var wa=Mi((function(e,t,n){je.call(e,n)?e[n].push(t):or(e,n,[t])}));var _a=Gr((function(e,t,r){var i=-1,o="function"==typeof t,a=Wa(e)?n(e.length):[];return fr(e,(function(e){a[++i]=o?Ot(t,e,r):Ir(e,t,r)})),a})),Sa=Mi((function(e,t,n){or(e,n,t)}));function xa(e,t){return(Ha(e)?jt:zr)(e,uo(t,3))}var ka=Mi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ca=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wo(e,t[0],t[1])?t=[]:n>2&&wo(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,yr(t,1),[])})),Ea=it||function(){return gt.Date.now()};function Oa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ji(e,d,i,i,i,i,t)}function Ta(e,t){var n;if("function"!=typeof t)throw new Ae(o);return e=hs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Aa=Gr((function(e,t,n){var r=1;if(n.length){var i=dn(n,so(Aa));r|=l}return Ji(e,r,t,n,i)})),Ia=Gr((function(e,t,n){var r=3;if(n.length){var i=dn(n,so(Ia));r|=l}return Ji(t,r,e,n,i)}));function Ma(e,t,n){var r,a,s,u,l,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Ae(o);function g(t){var n=r,o=a;return r=a=i,d=t,u=e.apply(o,n)}function m(e){var n=e-c;return c===i||n>=t||n<0||p&&e-d>=s}function y(){var e=Ea();if(m(e))return v(e);l=Mo(y,function(e){var n=t-(e-c);return p?bn(n,s-(e-d)):n}(e))}function v(e){return l=i,h&&r?g(e):(r=a=i,u)}function b(){var e=Ea(),n=m(e);if(r=arguments,a=this,c=e,n){if(l===i)return function(e){return d=e,l=Mo(y,t),f?g(e):u}(c);if(p)return Si(l),l=Mo(y,t),g(c)}return l===i&&(l=Mo(y,t)),u}return t=ms(t)||0,es(n)&&(f=!!n.leading,s=(p="maxWait"in n)?Yt(ms(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){l!==i&&Si(l),d=0,r=c=a=l=i},b.flush=function(){return l===i?u:v(Ea())},b}var Pa=Gr((function(e,t){return cr(e,1,t)})),Da=Gr((function(e,t,n){return cr(e,ms(t)||0,n)}));function La(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(La.Cache||Qn),n}function ja(e){if("function"!=typeof e)throw new Ae(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}La.Cache=Qn;var Na=wi((function(e,t){var n=(t=1==t.length&&Ha(t[0])?jt(t[0],Xt(uo())):jt(yr(t,1),Xt(uo()))).length;return Gr((function(r){for(var i=-1,o=bn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Ot(e,this,r)}))})),Ra=Gr((function(e,t){var n=dn(t,so(Ra));return Ji(e,l,i,t,n)})),$a=Gr((function(e,t){var n=dn(t,so($a));return Ji(e,c,i,t,n)})),za=no((function(e,t){return Ji(e,f,i,i,i,t)}));function Ua(e,t){return e===t||e!==e&&t!==t}var Fa=Wi(Er),qa=Wi((function(e,t){return e>=t})),Va=Mr(function(){return arguments}())?Mr:function(e){return ts(e)&&je.call(e,"callee")&&!Ye.call(e,"callee")},Ha=n.isArray,Ba=_t?Xt(_t):function(e){return ts(e)&&Cr(e)==L};function Wa(e){return null!=e&&Xa(e.length)&&!Ja(e)}function Qa(e){return ts(e)&&Wa(e)}var Ya=yt||mu,Ka=St?Xt(St):function(e){return ts(e)&&Cr(e)==_};function Ga(e){if(!ts(e))return!1;var t=Cr(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Ja(e){if(!es(e))return!1;var t=Cr(e);return t==x||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Za(e){return"number"==typeof e&&e==hs(e)}function Xa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=xt?Xt(xt):function(e){return ts(e)&&go(e)==C};function rs(e){return"number"==typeof e||ts(e)&&Cr(e)==E}function is(e){if(!ts(e)||Cr(e)!=O)return!1;var t=We(e);if(null===t)return!0;var n=je.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==ze}var os=kt?Xt(kt):function(e){return ts(e)&&Cr(e)==A};var as=Ct?Xt(Ct):function(e){return ts(e)&&go(e)==I};function ss(e){return"string"==typeof e||!Ha(e)&&ts(e)&&Cr(e)==M}function us(e){return"symbol"==typeof e||ts(e)&&Cr(e)==P}var ls=Et?Xt(Et):function(e){return ts(e)&&Xa(e.length)&&!!ut[Cr(e)]};var cs=Wi($r),ds=Wi((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Wa(e))return ss(e)?gn(e):Ai(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=go(e);return(t==C?ln:t==I?fn:Us)(e)}function ps(e){return e?(e=ms(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function hs(e){var t=ps(e),n=t%1;return t===t?n?t-n:t:0}function gs(e){return e?sr(hs(e),0,m):0}function ms(e){if("number"==typeof e)return e;if(us(e))return g;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ye.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):me.test(e)?g:+e}function ys(e){return Ii(e,Ps(e))}function vs(e){return null==e?"":li(e)}var bs=Pi((function(e,t){if(ko(t)||Wa(t))Ii(t,Ms(t),e);else for(var n in t)je.call(t,n)&&tr(e,n,t[n])})),ws=Pi((function(e,t){Ii(t,Ps(t),e)})),_s=Pi((function(e,t,n,r){Ii(t,Ps(t),e,r)})),Ss=Pi((function(e,t,n,r){Ii(t,Ms(t),e,r)})),xs=no(ar);var ks=Gr((function(e,t){e=Ee(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&wo(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],s=Ps(a),u=-1,l=s.length;++u<l;){var c=s[u],d=e[c];(d===i||Ua(d,Pe[c])&&!je.call(e,c))&&(e[c]=a[c])}return e})),Cs=Gr((function(e){return e.push(i,Xi),Ot(Ls,i,e)}));function Es(e,t,n){var r=null==e?i:xr(e,t);return r===i?n:r}function Os(e,t){return null!=e&&mo(e,t,Tr)}var Ts=Fi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),e[t]=n}),eu(ru)),As=Fi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),je.call(e,t)?e[t].push(n):e[t]=[n]}),uo),Is=Gr(Ir);function Ms(e){return Wa(e)?Gn(e):Nr(e)}function Ps(e){return Wa(e)?Gn(e,!0):Rr(e)}var Ds=Pi((function(e,t,n){qr(e,t,n)})),Ls=Pi((function(e,t,n,r){qr(e,t,n,r)})),js=no((function(e,t){var n={};if(null==e)return n;var r=!1;t=jt(t,(function(t){return t=bi(t,e),r||(r=t.length>1),t})),Ii(e,io(e),n),r&&(n=ur(n,7,eo));for(var i=t.length;i--;)di(n,t[i]);return n}));var Ns=no((function(e,t){return null==e?{}:function(e,t){return Br(e,t,(function(t,n){return Os(e,n)}))}(e,t)}));function Rs(e,t){if(null==e)return{};var n=jt(io(e),(function(e){return[e]}));return t=uo(t),Br(e,n,(function(e,n){return t(e,n[0])}))}var $s=Gi(Ms),zs=Gi(Ps);function Us(e){return null==e?[]:en(e,Ms(e))}var Fs=Ni((function(e,t,n){return t=t.toLowerCase(),e+(n?qs(t):t)}));function qs(e){return Gs(vs(e).toLowerCase())}function Vs(e){return(e=vs(e))&&e.replace(_e,on).replace(tt,"")}var Hs=Ni((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Bs=Ni((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ws=ji("toLowerCase");var Qs=Ni((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ys=Ni((function(e,t,n){return e+(n?" ":"")+Gs(t)}));var Ks=Ni((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Gs=ji("toUpperCase");function Js(e,t,n){return e=vs(e),(t=n?i:t)===i?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Zs=Gr((function(e,t){try{return Ot(e,i,t)}catch(n){return Ga(n)?n:new se(n)}})),Xs=no((function(e,t){return At(t,(function(t){t=Ro(t),or(e,t,Aa(e[t],e))})),e}));function eu(e){return function(){return e}}var tu=zi(),nu=zi(!0);function ru(e){return e}function iu(e){return jr("function"==typeof e?e:ur(e,1))}var ou=Gr((function(e,t){return function(n){return Ir(n,e,t)}})),au=Gr((function(e,t){return function(n){return Ir(e,n,t)}}));function su(e,t,n){var r=Ms(t),i=Sr(t,r);null!=n||es(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Sr(t,Ms(t)));var o=!(es(n)&&"chain"in n)||!!n.chain,a=Ja(e);return At(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ai(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nt([this.value()],arguments))})})),e}function uu(){}var lu=Vi(jt),cu=Vi(Mt),du=Vi(zt);function fu(e){return _o(e)?Qt(Ro(e)):function(e){return function(t){return xr(t,e)}}(e)}var pu=Bi(),hu=Bi(!0);function gu(){return[]}function mu(){return!1}var yu=qi((function(e,t){return e+t}),0),vu=Yi("ceil"),bu=qi((function(e,t){return e/t}),1),wu=Yi("floor");var _u=qi((function(e,t){return e*t}),1),Su=Yi("round"),xu=qi((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Ae(o);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Oa,Un.assign=bs,Un.assignIn=ws,Un.assignInWith=_s,Un.assignWith=Ss,Un.at=xs,Un.before=Ta,Un.bind=Aa,Un.bindAll=Xs,Un.bindKey=Ia,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},Un.chain=fa,Un.chunk=function(e,t,r){t=(r?wo(e,t,r):t===i)?1:Yt(hs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=n(pt(o/t));a<o;)u[s++]=ri(e,a,a+=t);return u},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Nt(Ha(r)?Ai(r):[r],yr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=uo();return e=t?jt(e,(function(e){if("function"!=typeof e[1])throw new Ae(o);return[n(e[0]),e[1]]})):[],Gr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Ot(i[0],this,n))return Ot(i[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Ms(e);return function(n){return lr(n,e,t)}}(ur(e,1))},Un.constant=eu,Un.countBy=ga,Un.create=function(e,t){var n=Fn(e);return null==t?n:ir(n,t)},Un.curry=function e(t,n,r){var o=Ji(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Un.curryRight=function e(t,n,r){var o=Ji(t,u,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Un.debounce=Ma,Un.defaults=ks,Un.defaultsDeep=Cs,Un.defer=Pa,Un.delay=Da,Un.difference=Uo,Un.differenceBy=Fo,Un.differenceWith=qo,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=n||t===i?1:hs(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,0,(t=r-(t=n||t===i?1:hs(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?pi(e,uo(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?pi(e,uo(t,3),!0):[]},Un.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&wo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=hs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:hs(r))<0&&(r+=o),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(Ha(e)?Pt:mr)(e,uo(t,3))},Un.flatMap=function(e,t){return yr(xa(e,t),1)},Un.flatMapDeep=function(e,t){return yr(xa(e,t),p)},Un.flatMapDepth=function(e,t,n){return n=n===i?1:hs(n),yr(xa(e,t),n)},Un.flatten=Bo,Un.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,p):[]},Un.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===i?1:hs(t)):[]},Un.flip=function(e){return Ji(e,512)},Un.flow=tu,Un.flowRight=nu,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Un.functions=function(e){return null==e?[]:Sr(e,Ms(e))},Un.functionsIn=function(e){return null==e?[]:Sr(e,Ps(e))},Un.groupBy=wa,Un.initial=function(e){return(null==e?0:e.length)?ri(e,0,-1):[]},Un.intersection=Qo,Un.intersectionBy=Yo,Un.intersectionWith=Ko,Un.invert=Ts,Un.invertBy=As,Un.invokeMap=_a,Un.iteratee=iu,Un.keyBy=Sa,Un.keys=Ms,Un.keysIn=Ps,Un.map=xa,Un.mapKeys=function(e,t){var n={};return t=uo(t,3),wr(e,(function(e,r,i){or(n,t(e,r,i),e)})),n},Un.mapValues=function(e,t){var n={};return t=uo(t,3),wr(e,(function(e,r,i){or(n,r,t(e,r,i))})),n},Un.matches=function(e){return Ur(ur(e,1))},Un.matchesProperty=function(e,t){return Fr(e,ur(t,1))},Un.memoize=La,Un.merge=Ds,Un.mergeWith=Ls,Un.method=ou,Un.methodOf=au,Un.mixin=su,Un.negate=ja,Un.nthArg=function(e){return e=hs(e),Gr((function(t){return Vr(t,e)}))},Un.omit=js,Un.omitBy=function(e,t){return Rs(e,ja(uo(t)))},Un.once=function(e){return Ta(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(n=r?i:n)||(n=null==n?[]:[n]),Hr(e,t,n))},Un.over=lu,Un.overArgs=Na,Un.overEvery=cu,Un.overSome=du,Un.partial=Ra,Un.partialRight=$a,Un.partition=ka,Un.pick=Ns,Un.pickBy=Rs,Un.property=fu,Un.propertyOf=function(e){return function(t){return null==e?i:xr(e,t)}},Un.pull=Jo,Un.pullAll=Zo,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,uo(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,i,n):e},Un.pullAt=Xo,Un.range=pu,Un.rangeRight=hu,Un.rearg=za,Un.reject=function(e,t){return(Ha(e)?Pt:mr)(e,ja(uo(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=uo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Qr(e,i),n},Un.rest=function(e,t){if("function"!=typeof e)throw new Ae(o);return Gr(e,t=t===i?t:hs(t))},Un.reverse=ea,Un.sampleSize=function(e,t,n){return t=(n?wo(e,t,n):t===i)?1:hs(t),(Ha(e)?Zn:Zr)(e,t)},Un.set=function(e,t,n){return null==e?e:Xr(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Xr(e,t,n,r)},Un.shuffle=function(e){return(Ha(e)?Xn:ni)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wo(e,t,n)?(t=0,n=r):(t=null==t?0:hs(t),n=n===i?r:hs(n)),ri(e,t,n)):[]},Un.sortBy=Ca,Un.sortedUniq=function(e){return e&&e.length?si(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?si(e,uo(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&wo(e,t,n)&&(t=n=i),(n=n===i?m:n>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=li(t))&&un(e)?_i(gn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Ae(o);return t=null==t?0:Yt(hs(t),0),Gr((function(n){var r=n[t],i=_i(n,0,t);return r&&Nt(i,r),Ot(e,this,i)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ri(e,0,(t=n||t===i?1:hs(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=r-(t=n||t===i?1:hs(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?pi(e,uo(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?pi(e,uo(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ae(o);return es(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ma(e,t,{leading:r,maxWait:t,trailing:i})},Un.thru=pa,Un.toArray=fs,Un.toPairs=$s,Un.toPairsIn=zs,Un.toPath=function(e){return Ha(e)?jt(e,Ro):us(e)?[e]:Ai(No(vs(e)))},Un.toPlainObject=ys,Un.transform=function(e,t,n){var r=Ha(e),i=r||Ya(e)||ls(e);if(t=uo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:es(e)&&Ja(o)?Fn(We(e)):{}}return(i?At:wr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Un.unary=function(e){return Oa(e,1)},Un.union=ta,Un.unionBy=na,Un.unionWith=ra,Un.uniq=function(e){return e&&e.length?ci(e):[]},Un.uniqBy=function(e,t){return e&&e.length?ci(e,uo(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ci(e,i,t):[]},Un.unset=function(e,t){return null==e||di(e,t)},Un.unzip=ia,Un.unzipWith=oa,Un.update=function(e,t,n){return null==e?e:fi(e,t,vi(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:fi(e,t,vi(n),r)},Un.values=Us,Un.valuesIn=function(e){return null==e?[]:en(e,Ps(e))},Un.without=aa,Un.words=Js,Un.wrap=function(e,t){return Ra(vi(t),e)},Un.xor=sa,Un.xorBy=ua,Un.xorWith=la,Un.zip=ca,Un.zipObject=function(e,t){return mi(e||[],t||[],tr)},Un.zipObjectDeep=function(e,t){return mi(e||[],t||[],Xr)},Un.zipWith=da,Un.entries=$s,Un.entriesIn=zs,Un.extend=ws,Un.extendWith=_s,su(Un,Un),Un.add=yu,Un.attempt=Zs,Un.camelCase=Fs,Un.capitalize=qs,Un.ceil=vu,Un.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))===n?n:0),t!==i&&(t=(t=ms(t))===t?t:0),sr(ms(e),t,n)},Un.clone=function(e){return ur(e,4)},Un.cloneDeep=function(e){return ur(e,5)},Un.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:i)},Un.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:i)},Un.conformsTo=function(e,t){return null==t||lr(e,t,Ms(t))},Un.deburr=Vs,Un.defaultTo=function(e,t){return null==e||e!==e?t:e},Un.divide=bu,Un.endsWith=function(e,t,n){e=vs(e),t=li(t);var r=e.length,o=n=n===i?r:sr(hs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Un.eq=Ua,Un.escape=function(e){return(e=vs(e))&&J.test(e)?e.replace(K,an):e},Un.escapeRegExp=function(e){return(e=vs(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Un.every=function(e,t,n){var r=Ha(e)?Mt:hr;return n&&wo(e,t,n)&&(t=i),r(e,uo(t,3))},Un.find=ma,Un.findIndex=Vo,Un.findKey=function(e,t){return Ft(e,uo(t,3),wr)},Un.findLast=ya,Un.findLastIndex=Ho,Un.findLastKey=function(e,t){return Ft(e,uo(t,3),_r)},Un.floor=wu,Un.forEach=va,Un.forEachRight=ba,Un.forIn=function(e,t){return null==e?e:vr(e,uo(t,3),Ps)},Un.forInRight=function(e,t){return null==e?e:br(e,uo(t,3),Ps)},Un.forOwn=function(e,t){return e&&wr(e,uo(t,3))},Un.forOwnRight=function(e,t){return e&&_r(e,uo(t,3))},Un.get=Es,Un.gt=Fa,Un.gte=qa,Un.has=function(e,t){return null!=e&&mo(e,t,Or)},Un.hasIn=Os,Un.head=Wo,Un.identity=ru,Un.includes=function(e,t,n,r){e=Wa(e)?e:Us(e),n=n&&!r?hs(n):0;var i=e.length;return n<0&&(n=Yt(i+n,0)),ss(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Vt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:hs(n);return i<0&&(i=Yt(r+i,0)),Vt(e,t,i)},Un.inRange=function(e,t,n){return t=ps(t),n===i?(n=t,t=0):n=ps(n),function(e,t,n){return e>=bn(t,n)&&e<Yt(t,n)}(e=ms(e),t,n)},Un.invoke=Is,Un.isArguments=Va,Un.isArray=Ha,Un.isArrayBuffer=Ba,Un.isArrayLike=Wa,Un.isArrayLikeObject=Qa,Un.isBoolean=function(e){return!0===e||!1===e||ts(e)&&Cr(e)==w},Un.isBuffer=Ya,Un.isDate=Ka,Un.isElement=function(e){return ts(e)&&1===e.nodeType&&!is(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||ls(e)||Va(e)))return!e.length;var t=go(e);if(t==C||t==I)return!e.size;if(ko(e))return!Nr(e).length;for(var n in e)if(je.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Pr(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Pr(e,t,i,n):!!r},Un.isError=Ga,Un.isFinite=function(e){return"number"==typeof e&&bt(e)},Un.isFunction=Ja,Un.isInteger=Za,Un.isLength=Xa,Un.isMap=ns,Un.isMatch=function(e,t){return e===t||Dr(e,t,co(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Dr(e,t,co(t),n)},Un.isNaN=function(e){return rs(e)&&e!=+e},Un.isNative=function(e){if(xo(e))throw new se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=rs,Un.isObject=es,Un.isObjectLike=ts,Un.isPlainObject=is,Un.isRegExp=os,Un.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=h},Un.isSet=as,Un.isString=ss,Un.isSymbol=us,Un.isTypedArray=ls,Un.isUndefined=function(e){return e===i},Un.isWeakMap=function(e){return ts(e)&&go(e)==D},Un.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Cr(e)},Un.join=function(e,t){return null==e?"":wt.call(e,t)},Un.kebabCase=Hs,Un.last=Go,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=hs(n))<0?Yt(r+o,0):bn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):qt(e,Bt,o,!0)},Un.lowerCase=Bs,Un.lowerFirst=Ws,Un.lt=cs,Un.lte=ds,Un.max=function(e){return e&&e.length?gr(e,ru,Er):i},Un.maxBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Er):i},Un.mean=function(e){return Wt(e,ru)},Un.meanBy=function(e,t){return Wt(e,uo(t,2))},Un.min=function(e){return e&&e.length?gr(e,ru,$r):i},Un.minBy=function(e,t){return e&&e.length?gr(e,uo(t,2),$r):i},Un.stubArray=gu,Un.stubFalse=mu,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=_u,Un.nth=function(e,t){return e&&e.length?Vr(e,hs(t)):i},Un.noConflict=function(){return gt._===this&&(gt._=Ue),this},Un.noop=uu,Un.now=Ea,Un.pad=function(e,t,n){e=vs(e);var r=(t=hs(t))?hn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Hi(ht(i),n)+e+Hi(pt(i),n)},Un.padEnd=function(e,t,n){e=vs(e);var r=(t=hs(t))?hn(e):0;return t&&r<t?e+Hi(t-r,n):e},Un.padStart=function(e,t,n){e=vs(e);var r=(t=hs(t))?hn(e):0;return t&&r<t?Hi(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(vs(e).replace(ae,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ps(e),t===i?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Sn();return bn(e+o*(t-e+dt("1e-"+((o+"").length-1))),t)}return Yr(e,t)},Un.reduce=function(e,t,n){var r=Ha(e)?Rt:Kt,i=arguments.length<3;return r(e,uo(t,4),n,i,fr)},Un.reduceRight=function(e,t,n){var r=Ha(e)?$t:Kt,i=arguments.length<3;return r(e,uo(t,4),n,i,pr)},Un.repeat=function(e,t,n){return t=(n?wo(e,t,n):t===i)?1:hs(t),Kr(vs(e),t)},Un.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,o=(t=bi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Ro(t[r])];a===i&&(r=o,a=n),e=Ja(a)?a.call(e):a}return e},Un.round=Su,Un.runInContext=e,Un.sample=function(e){return(Ha(e)?Jn:Jr)(e)},Un.size=function(e){if(null==e)return 0;if(Wa(e))return ss(e)?hn(e):e.length;var t=go(e);return t==C||t==I?e.size:Nr(e).length},Un.snakeCase=Qs,Un.some=function(e,t,n){var r=Ha(e)?zt:ii;return n&&wo(e,t,n)&&(t=i),r(e,uo(t,3))},Un.sortedIndex=function(e,t){return oi(e,t)},Un.sortedIndexBy=function(e,t,n){return ai(e,t,uo(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=oi(e,t);if(r<n&&Ua(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return oi(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return ai(e,t,uo(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=oi(e,t,!0)-1;if(Ua(e[n],t))return n}return-1},Un.startCase=Ys,Un.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:sr(hs(n),0,e.length),t=li(t),e.slice(n,n+t.length)==t},Un.subtract=xu,Un.sum=function(e){return e&&e.length?Gt(e,ru):0},Un.sumBy=function(e,t){return e&&e.length?Gt(e,uo(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&wo(e,t,n)&&(t=i),e=vs(e),t=_s({},t,r,Zi);var o,a,s=_s({},t.imports,r.imports,Zi),u=Ms(s),l=en(s,u),c=0,d=t.interpolate||Se,f="__p += '",p=Oe((t.escape||Se).source+"|"+d.source+"|"+(d===ee?he:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),h="//# sourceURL="+(je.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(p,(function(t,n,r,i,s,u){return r||(r=i),f+=e.slice(c,u).replace(xe,sn),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),f+="';\n";var g=je.call(t,"variable")&&t.variable;if(g){if(fe.test(g))throw new se("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(B,""):f).replace(W,"$1").replace(Q,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Zs((function(){return ke(u,h+"return "+f).apply(i,l)}));if(m.source=f,Ga(m))throw m;return m},Un.times=function(e,t){if((e=hs(e))<1||e>h)return[];var n=m,r=bn(e,m);t=uo(t),e-=m;for(var i=Jt(r,t);++n<e;)t(n);return i},Un.toFinite=ps,Un.toInteger=hs,Un.toLength=gs,Un.toLower=function(e){return vs(e).toLowerCase()},Un.toNumber=ms,Un.toSafeInteger=function(e){return e?sr(hs(e),-9007199254740991,h):0===e?e:0},Un.toString=vs,Un.toUpper=function(e){return vs(e).toUpperCase()},Un.trim=function(e,t,n){if((e=vs(e))&&(n||t===i))return Zt(e);if(!e||!(t=li(t)))return e;var r=gn(e),o=gn(t);return _i(r,nn(r,o),rn(r,o)+1).join("")},Un.trimEnd=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.slice(0,mn(e)+1);if(!e||!(t=li(t)))return e;var r=gn(e);return _i(r,0,rn(r,gn(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=vs(e))&&(n||t===i))return e.replace(ae,"");if(!e||!(t=li(t)))return e;var r=gn(e);return _i(r,nn(r,gn(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(es(t)){var o="separator"in t?t.separator:o;n="length"in t?hs(t.length):n,r="omission"in t?li(t.omission):r}var a=(e=vs(e)).length;if(un(e)){var s=gn(e);a=s.length}if(n>=a)return e;var u=n-hn(r);if(u<1)return r;var l=s?_i(s,0,u).join(""):e.slice(0,u);if(o===i)return l+r;if(s&&(u+=l.length-u),os(o)){if(e.slice(u).search(o)){var c,d=l;for(o.global||(o=Oe(o.source,vs(ge.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var f=c.index;l=l.slice(0,f===i?u:f)}}else if(e.indexOf(li(o),u)!=u){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},Un.unescape=function(e){return(e=vs(e))&&G.test(e)?e.replace(Y,yn):e},Un.uniqueId=function(e){var t=++Ne;return vs(e)+t},Un.upperCase=Ks,Un.upperFirst=Gs,Un.each=va,Un.eachRight=ba,Un.first=Wo,su(Un,function(){var e={};return wr(Un,(function(t,n){je.call(Un.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Un.VERSION="4.17.21",At(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),At(["drop","take"],(function(e,t){Hn.prototype[e]=function(n){n=n===i?1:Yt(hs(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),At(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:uo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),At(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),At(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(ru)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Ir(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(ja(uo(e)))},Hn.prototype.slice=function(e,t){e=hs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=hs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(m)},wr(Hn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Un[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Hn,l=s[0],c=u||Ha(t),d=function(e){var t=o.apply(Un,Nt([e],s));return r&&f?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,g=u&&!p;if(!a&&c){t=g?t:new Hn(this);var m=e.apply(t,s);return m.__actions__.push({func:pa,args:[d],thisArg:i}),new Vn(m,f)}return h&&g?e.apply(this,s):(m=this.thru(d),h?r?m.value()[0]:m.value():m)})})),At(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ie[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ha(i)?i:[],e)}return this[n]((function(n){return t.apply(Ha(n)?n:[],e)}))}})),wr(Hn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";je.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}})),Mn[Ui(i,2).name]=[{name:"wrapper",func:i}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Ai(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ai(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ai(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=Yt(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,d=c.length,f=0,p=bn(u,this.__takeCount__);if(!n||!r&&i==u&&p==u)return hi(e,this.__actions__);var h=[];e:for(;u--&&f<p;){for(var g=-1,m=e[l+=t];++g<d;){var y=c[g],v=y.iteratee,b=y.type,w=v(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}h[f++]=m}return h},Un.prototype.at=ha,Un.prototype.chain=function(){return fa(this)},Un.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===i&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof qn;){var r=zo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[ea],thisArg:i}),new Vn(t,this.__chain__)}return this.thru(ea)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Je&&(Un.prototype[Je]=function(){return this}),Un}();gt._=vn,(r=function(){return vn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},26602:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))n.call(o,l)&&(s[l]=o[l]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},57227:(e,t,n)=>{"use strict";var r=n(37868);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},96183:(e,t,n)=>{e.exports=n(57227)()},37868:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},17922:(e,t,n)=>{"use strict";var r=n(76697),i=n(91279);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function u(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function g(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),O=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=L&&e[L]||e["@@iterator"])?e:null}var N,R=Object.assign;function $(e){if(void 0===N)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var z=!1;function U(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var i=l.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var u="\n"+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$(e):""}function F(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case C:return"Profiler";case k:return"StrictMode";case A:return"Suspense";case I:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case M:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function B(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=B(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=B(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return R({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){J(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return R({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ye=R({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,xe=null,ke=null;function Ce(e){if(e=bi(e)){if("function"!==typeof Se)throw Error(o(280));var t=e.stateNode;t&&(t=_i(t),Se(e.stateNode,e.type,t))}}function Ee(e){xe?ke?ke.push(e):ke=[e]:xe=e}function Oe(){if(xe){var e=xe,t=ke;if(ke=xe=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Te(e,t){return e(t)}function Ae(){}var Ie=!1;function Me(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Te(e,t,n)}finally{Ie=!1,(null!==xe||null!==ke)&&(Ae(),Oe())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=_i(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var De=!1;if(c)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){De=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ce){De=!1}function je(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var Ne=!1,Re=null,$e=!1,ze=null,Ue={onError:function(e){Ne=!0,Re=e}};function Fe(e,t,n,r,i,o,a,s,u){Ne=!1,Re=null,je.apply(Ue,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(qe(e)!==e)throw Error(o(188))}function Be(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return He(i),e;if(a===r)return He(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Qe=i.unstable_scheduleCallback,Ye=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Ge=i.unstable_requestPaint,Je=i.unstable_now,Ze=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2;var lt=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=dt(s):0!==(o&=a)&&(r=dt(o))}else 0!==(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=lt;return 0===(4194240&(lt<<=1))&&(lt=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var _t,St,xt,kt,Ct,Et=!1,Ot=[],Tt=null,At=null,It=null,Mt=new Map,Pt=new Map,Dt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Nt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Rt(e){var t=vi(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Ct(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function $t(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function zt(e,t,n){$t(e)&&n.delete(t)}function Ut(){Et=!1,null!==Tt&&$t(Tt)&&(Tt=null),null!==At&&$t(At)&&(At=null),null!==It&&$t(It)&&(It=null),Mt.forEach(zt),Pt.forEach(zt)}function Ft(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function qt(e){function t(t){return Ft(t,e)}if(0<Ot.length){Ft(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Ft(Tt,e),null!==At&&Ft(At,e),null!==It&&Ft(It,e),Mt.forEach(t),Pt.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)Rt(n),null===n.blockedOn&&Dt.shift()}var Vt=w.ReactCurrentBatchConfig,Ht=!0;function Bt(e,t,n,r){var i=bt,o=Vt.transition;Vt.transition=null;try{bt=1,Qt(e,t,n,r)}finally{bt=i,Vt.transition=o}}function Wt(e,t,n,r){var i=bt,o=Vt.transition;Vt.transition=null;try{bt=4,Qt(e,t,n,r)}finally{bt=i,Vt.transition=o}}function Qt(e,t,n,r){if(Ht){var i=Kt(e,t,n,r);if(null===i)Hr(e,t,r,Yt,n),jt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Tt=Nt(Tt,e,t,n,r,i),!0;case"dragenter":return At=Nt(At,e,t,n,r,i),!0;case"mouseover":return It=Nt(It,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Mt.set(o,Nt(Mt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Pt.set(o,Nt(Pt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&_t(o),null===(o=Kt(e,t,n,r))&&Hr(e,t,r,Yt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Yt=null;function Kt(e,t,n,r){if(Yt=null,null!==(e=vi(e=_e(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Gt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Zt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Zt,r=n.length,i="value"in Jt?Jt.value:Jt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,un,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(ln),dn=R({},ln,{view:0,detail:0}),fn=on(dn),pn=R({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,sn=e.screenY-un.screenY):sn=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),gn=on(R({},pn,{dataTransfer:0})),mn=on(R({},dn,{relatedTarget:0})),yn=on(R({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=R({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(vn),wn=on(R({},ln,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Cn(){return kn}var En=R({},dn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(En),Tn=on(R({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=on(R({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),In=on(R({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=R({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=on(Mn),Dn=[9,13,27,32],Ln=c&&"CompositionEvent"in window,jn=null;c&&"documentMode"in document&&(jn=document.documentMode);var Nn=c&&"TextEvent"in window&&!jn,Rn=c&&(!Ln||jn&&8<jn&&11>=jn),$n=String.fromCharCode(32),zn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Bn(e,t,n,r){Ee(r),0<(t=Wr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Qn=null;function Yn(e){$r(e,0)}function Kn(e){if(Q(wi(e)))return e}function Gn(e,t){if("change"===e)return t}var Jn=!1;if(c){var Zn;if(c){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"===typeof er.oninput}Zn=Xn}else Zn=!1;Jn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),Qn=Wn=null)}function nr(e){if("value"===e.propertyName&&Kn(Qn)){var t=[];Bn(t,Qn,e,_e(e)),Me(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Qn=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Qn)}function or(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ur(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=lr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=lr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=c&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,vr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==Y(r)||("selectionStart"in(r=mr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&ur(vr,r)||(vr=r,0<(r=Wr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},xr={},kr={};function Cr(e){if(xr[e])return xr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return xr[e]=n[t];return e}c&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Er=Cr("animationend"),Or=Cr("animationiteration"),Tr=Cr("animationstart"),Ar=Cr("transitionend"),Ir=new Map,Mr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Ir.set(e,t),u(t,[e])}for(var Dr=0;Dr<Mr.length;Dr++){var Lr=Mr[Dr];Pr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Pr(Er,"onAnimationEnd"),Pr(Or,"onAnimationIteration"),Pr(Tr,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Ar,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Rr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,u,l){if(Fe.apply(this,arguments),Ne){if(!Ne)throw Error(o(198));var c=Re;Ne=!1,Re=null,$e||($e=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function $r(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Rr(i,s,l),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,l=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Rr(i,s,l),o=u}}}if($e)throw e=ze,$e=!1,ze=null,e}function zr(e,t){var n=t[gi];void 0===n&&(n=t[gi]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Fr]){e[Fr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Nr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fr]||(t[Fr]=!0,Ur("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Gt(t)){case 1:var i=Bt;break;case 4:i=Wt;break;default:i=Qt}n=i.bind(null,t,n,e),i=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=vi(s)))return;if(5===(u=a.tag)||6===u){r=o=a;continue e}s=s.parentNode}}r=r.return}Me((function(){var r=o,i=_e(n),a=[];e:{var s=Ir.get(e);if(void 0!==s){var u=cn,l=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=On;break;case"focusin":l="focus",u=mn;break;case"focusout":l="blur",u=mn;break;case"beforeblur":case"afterblur":u=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=An;break;case Er:case Or:case Tr:u=yn;break;case Ar:u=In;break;case"scroll":u=fn;break;case"wheel":u=Pn;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Tn}var c=0!==(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==f&&(null!=(g=Pe(h,f))&&c.push(Br(h,g,p)))),d)break;h=h.return}0<c.length&&(s=new u(s,l,null,n,i),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(l=n.relatedTarget||n.fromElement)||!vi(l)&&!l[hi])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?vi(l):null)&&(l!==(d=qe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=hn,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==u?s:wi(u),p=null==l?s:wi(l),(s=new c(g,h+"leave",u,n,i)).target=d,s.relatedTarget=p,g=null,vi(i)===r&&((c=new c(f,h+"enter",l,n,i)).target=p,c.relatedTarget=d,g=c),d=g,u&&l)e:{for(f=l,h=0,p=c=u;p;p=Qr(p))h++;for(p=0,g=f;g;g=Qr(g))p++;for(;0<h-p;)c=Qr(c),h--;for(;0<p-h;)f=Qr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Qr(c),f=Qr(f)}c=null}else c=null;null!==u&&Yr(a,s,u,c,!1),null!==l&&null!==d&&Yr(a,d,l,c,!0)}if("select"===(u=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var m=Gn;else if(Hn(s))if(Jn)m=ar;else{m=ir;var y=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=or);switch(m&&(m=m(e,r))?Bn(a,m,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?wi(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(mr=y,yr=r,vr=null);break;case"focusout":vr=yr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(a,n,i)}var v;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Rn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(v=en()):(Zt="value"in(Jt=i)?Jt.value:Jt.textContent,qn=!0)),0<(y=Wr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=Fn(n))&&(b.data=v))),(v=Nn?function(e,t){switch(e){case"compositionend":return Fn(t);case"keypress":return 32!==t.which?null:(zn=!0,$n);case"textInput":return(e=t.data)===$n&&zn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Ln&&Un(e,t)?(e=en(),Xt=Zt=Jt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}$r(a,t)}))}function Br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Pe(e,n))&&r.unshift(Br(e,o,i)),null!=(o=Pe(e,t))&&r.push(Br(e,o,i))),e=e.return}return r}function Qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=Pe(n,o))&&a.unshift(Br(n,u,s)):i||null!=(u=Pe(n,o))&&a.push(Br(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function Jr(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace(Gr,"")}function Zr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(o(425))}function Xr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function ui(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);qt(t)}function li(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,pi="__reactProps$"+di,hi="__reactContainer$"+di,gi="__reactEvents$"+di,mi="__reactListeners$"+di,yi="__reactHandles$"+di;function vi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[fi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function _i(e){return e[pi]||null}var Si=[],xi=-1;function ki(e){return{current:e}}function Ci(e){0>xi||(e.current=Si[xi],Si[xi]=null,xi--)}function Ei(e,t){xi++,Si[xi]=e.current,e.current=t}var Oi={},Ti=ki(Oi),Ai=ki(!1),Ii=Oi;function Mi(e,t){var n=e.type.contextTypes;if(!n)return Oi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Di(){Ci(Ai),Ci(Ti)}function Li(e,t,n){if(Ti.current!==Oi)throw Error(o(168));Ei(Ti,t),Ei(Ai,n)}function ji(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,V(e)||"Unknown",i));return R({},n,r)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,Ii=Ti.current,Ei(Ti,e),Ei(Ai,Ai.current),!0}function Ri(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ji(e,t,Ii),r.__reactInternalMemoizedMergedChildContext=e,Ci(Ai),Ci(Ti),Ei(Ti,e)):Ci(Ai),Ei(Ai,n)}var $i=null,zi=!1,Ui=!1;function Fi(e){null===$i?$i=[e]:$i.push(e)}function qi(){if(!Ui&&null!==$i){Ui=!0;var e=0,t=bt;try{var n=$i;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}$i=null,zi=!1}catch(i){throw null!==$i&&($i=$i.slice(e+1)),Qe(Xe,qi),i}finally{bt=t,Ui=!1}}return null}var Vi=[],Hi=0,Bi=null,Wi=0,Qi=[],Yi=0,Ki=null,Gi=1,Ji="";function Zi(e,t){Vi[Hi++]=Wi,Vi[Hi++]=Bi,Bi=e,Wi=t}function Xi(e,t,n){Qi[Yi++]=Gi,Qi[Yi++]=Ji,Qi[Yi++]=Ki,Ki=e;var r=Gi;e=Ji;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Gi=1<<32-at(t)+i|n<<i|r,Ji=o+e}else Gi=1<<o|n<<i|r,Ji=e}function eo(e){null!==e.return&&(Zi(e,1),Xi(e,1,0))}function to(e){for(;e===Bi;)Bi=Vi[--Hi],Vi[Hi]=null,Wi=Vi[--Hi],Vi[Hi]=null;for(;e===Ki;)Ki=Qi[--Yi],Qi[Yi]=null,Ji=Qi[--Yi],Qi[Yi]=null,Gi=Qi[--Yi],Qi[Yi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Ml(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=li(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ki?{id:Gi,overflow:Ji}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ml(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function uo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function lo(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(uo(e))throw Error(o(418));t=li(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(uo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(uo(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=li(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=li(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?li(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=li(e.nextSibling)}function ho(){ro=no=null,io=!1}function go(e){null===oo?oo=[e]:oo.push(e)}var mo=w.ReactCurrentBatchConfig;function yo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function vo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function wo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Dl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Rl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===P&&bo(o)===t.type)?((r=i(t,n.props)).ref=yo(e,t,n),r.return=e,r):((r=Ll(n.type,n.key,n.props,null,e.mode,r)).ref=yo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$l(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=jl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Rl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Ll(t.type,t.key,t.props,null,e.mode,n)).ref=yo(e,null,t),n.return=e,n;case S:return(t=$l(t,e.mode,n)).return=e,t;case P:return f(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=jl(t,e.mode,n,null)).return=e,t;vo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case S:return n.key===i?c(e,t,n,r):null;case P:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||j(n))return null!==i?null:d(e,t,n,r,null);vo(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case _:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case P:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,i,null);vo(t,r)}return null}function g(i,o,s,u){for(var l=null,c=null,d=o,g=o=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var y=p(i,d,s[g],u);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(i,d),o=a(y,o,g),null===c?l=y:c.sibling=y,c=y,d=m}if(g===s.length)return n(i,d),io&&Zi(i,g),l;if(null===d){for(;g<s.length;g++)null!==(d=f(i,s[g],u))&&(o=a(d,o,g),null===c?l=d:c.sibling=d,c=d);return io&&Zi(i,g),l}for(d=r(i,d);g<s.length;g++)null!==(m=h(d,i,g,s[g],u))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),o=a(m,o,g),null===c?l=m:c.sibling=m,c=m);return e&&d.forEach((function(e){return t(i,e)})),io&&Zi(i,g),l}function m(i,s,u,l){var c=j(u);if("function"!==typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var d=c=null,g=s,m=s=0,y=null,v=u.next();null!==g&&!v.done;m++,v=u.next()){g.index>m?(y=g,g=null):y=g.sibling;var b=p(i,g,v.value,l);if(null===b){null===g&&(g=y);break}e&&g&&null===b.alternate&&t(i,g),s=a(b,s,m),null===d?c=b:d.sibling=b,d=b,g=y}if(v.done)return n(i,g),io&&Zi(i,m),c;if(null===g){for(;!v.done;m++,v=u.next())null!==(v=f(i,v.value,l))&&(s=a(v,s,m),null===d?c=v:d.sibling=v,d=v);return io&&Zi(i,m),c}for(g=r(i,g);!v.done;m++,v=u.next())null!==(v=h(g,i,m,v.value,l))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),s=a(v,s,m),null===d?c=v:d.sibling=v,d=v);return e&&g.forEach((function(e){return t(i,e)})),io&&Zi(i,m),c}return function e(r,o,a,u){if("object"===typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case _:e:{for(var l=a.key,c=o;null!==c;){if(c.key===l){if((l=a.type)===x){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===l||"object"===typeof l&&null!==l&&l.$$typeof===P&&bo(l)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=yo(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((o=jl(a.props.children,r.mode,u,a.key)).return=r,r=o):((u=Ll(a.type,a.key,a.props,null,r.mode,u)).ref=yo(r,o,a),u.return=r,r=u)}return s(r);case S:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=$l(a,r.mode,u)).return=r,r=o}return s(r);case P:return e(r,o,(c=a._init)(a._payload),u)}if(te(a))return g(r,o,a,u);if(j(a))return m(r,o,a,u);vo(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Rl(a,r.mode,u)).return=r,r=o),s(r)):n(r,o)}}var _o=wo(!0),So=wo(!1),xo=ki(null),ko=null,Co=null,Eo=null;function Oo(){Eo=Co=ko=null}function To(e){var t=xo.current;Ci(xo),e._currentValue=t}function Ao(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Io(e,t){ko=e,Eo=Co=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Mo(e){var t=e._currentValue;if(Eo!==e)if(e={context:e,memoizedValue:t,next:null},null===Co){if(null===ko)throw Error(o(308));Co=e,ko.dependencies={lanes:0,firstContext:e}}else Co=Co.next=e;return t}var Po=null;function Do(e){null===Po?Po=[e]:Po.push(e)}function Lo(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Do(t)):(n.next=i.next,i.next=n),t.interleaved=n,jo(e,r)}function jo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var No=!1;function Ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $o(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Uo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Tu)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,jo(e,n)}return null===(i=r.interleaved)?(t.next=t,Do(r)):(t.next=i.next,i.next=t),r.interleaved=t,jo(e,n)}function Fo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function qo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vo(e,t,n,r){var i=e.updateQueue;No=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,l=u.next;u.next=null,null===a?o=l:a.next=l,a=u;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(null!==o){var d=i.baseState;for(a=0,c=l=u=null,s=o;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,g=s;switch(f=t,p=n,g.tag){case 1:if("function"===typeof(h=g.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=g.payload)?h.call(p,d,f):h)||void 0===f)break e;d=R({},d,f);break e;case 2:No=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(l=c=p,u=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(u=d),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Nu|=a,e.lanes=a,e.memoizedState=d}}function Ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var Bo={},Wo=ki(Bo),Qo=ki(Bo),Yo=ki(Bo);function Ko(e){if(e===Bo)throw Error(o(174));return e}function Go(e,t){switch(Ei(Yo,t),Ei(Qo,e),Ei(Wo,Bo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ci(Wo),Ei(Wo,t)}function Jo(){Ci(Wo),Ci(Qo),Ci(Yo)}function Zo(e){Ko(Yo.current);var t=Ko(Wo.current),n=ue(t,e.type);t!==n&&(Ei(Qo,e),Ei(Wo,n))}function Xo(e){Qo.current===e&&(Ci(Wo),Ci(Qo))}var ea=ki(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=w.ReactCurrentDispatcher,oa=w.ReactCurrentBatchConfig,aa=0,sa=null,ua=null,la=null,ca=!1,da=!1,fa=0,pa=0;function ha(){throw Error(o(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?Xa:es,e=n(r,i),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(o(301));a+=1,la=ua=null,t.updateQueue=null,ia.current=ts,e=n(r,i)}while(da)}if(ia.current=Za,t=null!==ua&&null!==ua.next,aa=0,la=ua=sa=null,ca=!1,t)throw Error(o(300));return e}function ya(){var e=0!==fa;return fa=0,e}function va(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===la?sa.memoizedState=la=e:la=la.next=e,la}function ba(){if(null===ua){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=ua.next;var t=null===la?sa.memoizedState:la.next;if(null!==t)la=t,ua=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ua=e).memoizedState,baseState:ua.baseState,baseQueue:ua.baseQueue,queue:ua.queue,next:null},null===la?sa.memoizedState=la=e:la=la.next=e}return la}function wa(e,t){return"function"===typeof t?t(e):t}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ua,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var u=s=null,l=null,c=a;do{var d=c.lane;if((aa&d)===d)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(u=l=f,s=r):l=l.next=f,sa.lanes|=d,Nu|=d}c=c.next}while(null!==c&&c!==a);null===l?s=r:l.next=u,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Nu|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ba(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function xa(){}function ka(e,t){var n=sa,r=ba(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Na(Oa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==la&&1&la.memoizedState.tag){if(n.flags|=2048,Ma(9,Ea.bind(null,n,r,i,t),void 0,null),null===Au)throw Error(o(349));0!==(30&aa)||Ca(n,t,i)}return i}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Aa(e)}function Oa(e,t,n){return n((function(){Ta(t)&&Aa(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Aa(e){var t=jo(e,1);null!==t&&nl(t,e,1,-1)}function Ia(e){var t=va();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[t.memoizedState,e]}function Ma(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pa(){return ba().memoizedState}function Da(e,t,n,r){var i=va();sa.flags|=e,i.memoizedState=Ma(1|t,n,void 0,void 0===r?null:r)}function La(e,t,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==ua){var a=ua.memoizedState;if(o=a.destroy,null!==r&&ga(r,a.deps))return void(i.memoizedState=Ma(t,n,o,r))}sa.flags|=e,i.memoizedState=Ma(1|t,n,o,r)}function ja(e,t){return Da(8390656,8,e,t)}function Na(e,t){return La(2048,8,e,t)}function Ra(e,t){return La(4,2,e,t)}function $a(e,t){return La(4,4,e,t)}function za(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ua(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,La(4,4,za.bind(null,t,e),n)}function Fa(){}function qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Va(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=gt(),sa.lanes|=n,Nu|=n,e.baseState=!0),t)}function Ba(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oa.transition;oa.transition={};try{e(!1),t()}finally{bt=n,oa.transition=r}}function Wa(){return ba().memoizedState}function Qa(e,t,n){var r=tl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(e))Ga(t,n);else if(null!==(n=Lo(e,t,n,r))){nl(n,e,r,el()),Ja(n,t,r)}}function Ya(e,t,n){var r=tl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))Ga(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var u=t.interleaved;return null===u?(i.next=i,Do(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(l){}null!==(n=Lo(e,t,i,r))&&(nl(n,e,r,i=el()),Ja(n,t,r))}}function Ka(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ga(e,t){da=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ja(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Za={readContext:Mo,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Xa={readContext:Mo,useCallback:function(e,t){return va().memoizedState=[e,void 0===t?null:t],e},useContext:Mo,useEffect:ja,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Da(4194308,4,za.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(4,2,e,t)},useMemo:function(e,t){var n=va();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=va();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Qa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},va().memoizedState=e},useState:Ia,useDebugValue:Fa,useDeferredValue:function(e){return va().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=Ba.bind(null,e[1]),va().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,i=va();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Au)throw Error(o(349));0!==(30&aa)||Ca(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ja(Oa.bind(null,r,a,e),[e]),r.flags|=2048,Ma(9,Ea.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=va(),t=Au.identifierPrefix;if(io){var n=Ji;t=":"+t+"R"+(n=(Gi&~(1<<32-at(Gi)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Mo,useCallback:qa,useContext:Mo,useEffect:Na,useImperativeHandle:Ua,useInsertionEffect:Ra,useLayoutEffect:$a,useMemo:Va,useReducer:_a,useRef:Pa,useState:function(){return _a(wa)},useDebugValue:Fa,useDeferredValue:function(e){return Ha(ba(),ua.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:ka,useId:Wa,unstable_isNewReconciler:!1},ts={readContext:Mo,useCallback:qa,useContext:Mo,useEffect:Na,useImperativeHandle:Ua,useInsertionEffect:Ra,useLayoutEffect:$a,useMemo:Va,useReducer:Sa,useRef:Pa,useState:function(){return Sa(wa)},useDebugValue:Fa,useDeferredValue:function(e){var t=ba();return null===ua?t.memoizedState=e:Ha(t,ua.memoizedState,e)},useTransition:function(){return[Sa(wa)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:ka,useId:Wa,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=R({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:R({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=el(),i=tl(e),o=zo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Uo(e,o,i))&&(nl(t,e,i,r),Fo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=el(),i=tl(e),o=zo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Uo(e,o,i))&&(nl(t,e,i,r),Fo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=el(),r=tl(e),i=zo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Uo(e,i,r))&&(nl(t,e,r,n),Fo(t,e,r))}};function os(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(i,o))}function as(e,t,n){var r=!1,i=Oi,o=t.contextType;return"object"===typeof o&&null!==o?o=Mo(o):(i=Pi(t)?Ii:Ti.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Mi(e,i):Oi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function us(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ro(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=Mo(o):(o=Pi(t)?Ii:Ti.current,i.context=Mi(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),Vo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function ls(e,t){try{var n="",r=t;do{n+=F(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=zo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hu||(Hu=!0,Bu=r),ds(0,t)},n}function hs(e,t,n){(n=zo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Wu?Wu=new Set([this]):Wu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Cl.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=zo(-1,1)).tag=2,Uo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var vs=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?So(t,null,n,r):_o(t,e.child,n,r)}function _s(e,t,n,r,i){n=n.render;var o=t.ref;return Io(t,i),r=ma(e,t,n,r,o,i),n=ya(),null===e||bs?(io&&n&&eo(t),t.flags|=1,ws(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function Ss(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Pl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ll(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,xs(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return Hs(e,t,i)}return t.flags|=1,(e=Dl(o,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ur(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Hs(e,t,i);0!==(131072&e.flags)&&(bs=!0)}}return Es(e,t,n,r,i)}function ks(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ei(Du,Pu),Pu|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ei(Du,Pu),Pu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ei(Du,Pu),Pu|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ei(Du,Pu),Pu|=r;return ws(e,t,i,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,i){var o=Pi(n)?Ii:Ti.current;return o=Mi(t,o),Io(t,i),n=ma(e,t,n,r,o,i),r=ya(),null===e||bs?(io&&r&&eo(t),t.flags|=1,ws(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function Os(e,t,n,r,i){if(Pi(n)){var o=!0;Ni(t)}else o=!1;if(Io(t,i),null===t.stateNode)Vs(e,t),as(t,n,r),us(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=Mo(l):l=Mi(t,l=Pi(n)?Ii:Ti.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==l)&&ss(t,a,r,l),No=!1;var f=t.memoizedState;a.state=f,Vo(t,r,a,i),u=t.memoizedState,s!==r||f!==u||Ai.current||No?("function"===typeof c&&(rs(t,n,c,r),u=t.memoizedState),(s=No||os(t,n,s,r,f,u,l))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,$o(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ns(t.type,s),a.props=l,d=t.pendingProps,f=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=Mo(u):u=Mi(t,u=Pi(n)?Ii:Ti.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==u)&&ss(t,a,r,u),No=!1,f=t.memoizedState,a.state=f,Vo(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||Ai.current||No?("function"===typeof p&&(rs(t,n,p,r),h=t.memoizedState),(l=No||os(t,n,l,r,f,h,u)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=l):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,o,i)}function Ts(e,t,n,r,i,o){Cs(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Ri(t,n,!1),Hs(e,t,o);r=t.stateNode,vs.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_o(t,e.child,null,o),t.child=_o(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,i&&Ri(t,n,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),Go(e,t.containerInfo)}function Is(e,t,n,r,i){return ho(),go(i),t.flags|=256,ws(e,t,n,r),t.child}var Ms,Ps,Ds,Ls,js={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function Rs(e,t,n){var r,i=t.pendingProps,a=ea.current,s=!1,u=0!==(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ei(ea,1&a),null===e)return lo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=i.children,e=i.fallback,s?(i=t.mode,s=t.child,u={mode:"hidden",children:u},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=Nl(u,i,0,null),e=jl(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ns(n),t.memoizedState=js,e):$s(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,zs(e,t,s,r=cs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Nl({mode:"visible",children:r.children},i,0,null),(a=jl(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&_o(t,e.child,null,s),t.child.memoizedState=Ns(s),t.memoizedState=js,a);if(0===(1&t.mode))return zs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var u=r.dgst;return r=u,zs(e,t,s,r=cs(a=Error(o(419)),r,void 0))}if(u=0!==(s&e.childLanes),bs||u){if(null!==(r=Au)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,jo(e,i),nl(r,e,i,-1))}return gl(),zs(e,t,s,r=cs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Ol.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=li(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Qi[Yi++]=Gi,Qi[Yi++]=Ji,Qi[Yi++]=Ki,Gi=e.id,Ji=e.overflow,Ki=t),t=$s(t,r.children),t.flags|=4096,t)}(e,t,u,i,r,a,n);if(s){s=i.fallback,u=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 0===(1&u)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=Dl(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Dl(r,s):(s=jl(s,u,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,u=null===(u=e.child.memoizedState)?Ns(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=js,i}return e=(s=e.child).sibling,i=Dl(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function $s(e,t){return(t=Nl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zs(e,t,n,r){return null!==r&&go(r),_o(t,e.child,null,n),(e=$s(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ao(e.return,t,n)}function Fs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function qs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ei(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Fs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Fs(t,!0,n,null,o);break;case"together":Fs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Nu|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Dl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Bs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Qs(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Pi(t.type)&&Di(),Ws(t),null;case 3:return r=t.stateNode,Jo(),Ci(Ai),Ci(Ti),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(al(oo),oo=null))),Ps(e,t),Ws(t),null;case 5:Xo(t);var i=Ko(Yo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=Ko(Wo.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[pi]=a,e=0!==(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(i=0;i<jr.length;i++)zr(jr[i],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":G(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":ie(r,a),zr("invalid",r)}for(var u in ve(n,a),i=null,a)if(a.hasOwnProperty(u)){var l=a[u];"children"===u?"string"===typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,l,e),i=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,l,e),i=["children",""+l]):s.hasOwnProperty(u)&&null!=l&&"onScroll"===u&&zr("scroll",r)}switch(n){case"input":W(r),X(r,a,!0);break;case"textarea":W(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Xr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[fi]=t,e[pi]=r,Ms(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),i=r;break;case"iframe":case"object":case"embed":zr("load",e),i=r;break;case"video":case"audio":for(i=0;i<jr.length;i++)zr(jr[i],e);i=r;break;case"source":zr("error",e),i=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),i=r;break;case"details":zr("toggle",e),i=r;break;case"input":G(e,r),i=K(e,r),zr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=R({},r,{value:void 0}),zr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),zr("invalid",e)}for(a in ve(n,i),l=i)if(l.hasOwnProperty(a)){var c=l[a];"style"===a?me(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"===typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&zr("scroll",e):null!=c&&b(e,a,c,u))}switch(n){case"input":W(e),X(e,r,!1);break;case"textarea":W(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Ko(Yo.current),Ko(Wo.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Zr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return Ws(t),null;case 13:if(Ci(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))po(),ho(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else ho(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),a=!1}else null!==oo&&(al(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Lu&&(Lu=3):gl())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return Jo(),Ps(e,t),null===e&&qr(t.stateNode.containerInfo),Ws(t),null;case 10:return To(t.type._context),Ws(t),null;case 19:if(Ci(ea),null===(a=t.memoizedState))return Ws(t),null;if(r=0!==(128&t.flags),null===(u=a.rendering))if(r)Bs(a,!1);else{if(0!==Lu||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=ta(e))){for(t.flags|=128,Bs(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ei(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Je()>qu&&(t.flags|=128,r=!0,Bs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Bs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!io)return Ws(t),null}else 2*Je()-a.renderingStartTime>qu&&1073741824!==n&&(t.flags|=128,r=!0,Bs(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Je(),t.sibling=null,n=ea.current,Ei(ea,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return dl(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Pu)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Ys(e,t){switch(to(t),t.tag){case 1:return Pi(t.type)&&Di(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Jo(),Ci(Ai),Ci(Ti),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xo(t),null;case 13:if(Ci(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ci(ea),null;case 4:return Jo(),null;case 10:return To(t.type._context),null;case 22:case 23:return dl(),null;default:return null}}Ms=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},Ds=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ko(Wo.current);var o,a=null;switch(n){case"input":i=K(e,i),r=K(e,r),a=[];break;case"select":i=R({},i,{value:void 0}),r=R({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(c in ve(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var u=i[c];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(u=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==u&&(null!=l||null!=u))if("style"===c)if(u){for(o in u)!u.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&u[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,u=u?u.__html:void 0,null!=l&&u!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!==typeof l&&"number"!==typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&zr("scroll",e),a||u===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Gs=!1,Js="function"===typeof WeakSet?WeakSet:Set,Zs=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){kl(e,t,r)}else n.current=null}function eu(e,t,n){try{n()}catch(r){kl(e,t,r)}}var tu=!1;function nu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&eu(t,n,o)}i=i.next}while(i!==r)}}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function iu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ou(e){var t=e.alternate;null!==t&&(e.alternate=null,ou(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[pi],delete t[gi],delete t[mi],delete t[yi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function au(e){return 5===e.tag||3===e.tag||4===e.tag}function su(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||au(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function uu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}function lu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(lu(e,t,n),e=e.sibling;null!==e;)lu(e,t,n),e=e.sibling}var cu=null,du=!1;function fu(e,t,n){for(n=n.child;null!==n;)pu(e,t,n),n=n.sibling}function pu(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Gs||Xs(n,t);case 6:var r=cu,i=du;cu=null,fu(e,t,n),du=i,null!==(cu=r)&&(du?(e=cu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cu.removeChild(n.stateNode));break;case 18:null!==cu&&(du?(e=cu,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),qt(e)):ui(cu,n.stateNode));break;case 4:r=cu,i=du,cu=n.stateNode.containerInfo,du=!0,fu(e,t,n),cu=r,du=i;break;case 0:case 11:case 14:case 15:if(!Gs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&eu(n,t,a),i=i.next}while(i!==r)}fu(e,t,n);break;case 1:if(!Gs&&(Xs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){kl(n,t,s)}fu(e,t,n);break;case 21:fu(e,t,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,fu(e,t,n),Gs=r):fu(e,t,n);break;default:fu(e,t,n)}}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Js),t.forEach((function(t){var r=Tl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:cu=u.stateNode,du=!1;break e;case 3:case 4:cu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===cu)throw Error(o(160));pu(a,s,i),cu=null,du=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(c){kl(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mu(t,e),t=t.sibling}function mu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gu(t,e),yu(e),4&r){try{nu(3,e,e.return),ru(3,e)}catch(m){kl(e,e.return,m)}try{nu(5,e,e.return)}catch(m){kl(e,e.return,m)}}break;case 1:gu(t,e),yu(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(gu(t,e),yu(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(m){kl(e,e.return,m)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,u=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===u&&"radio"===a.type&&null!=a.name&&J(i,a),be(u,s);var c=be(u,a);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];"style"===d?me(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,c)}switch(u){case"input":Z(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(m){kl(e,e.return,m)}}break;case 6:if(gu(t,e),yu(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){kl(e,e.return,m)}}break;case 3:if(gu(t,e),yu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(m){kl(e,e.return,m)}break;case 4:default:gu(t,e),yu(e);break;case 13:gu(t,e),yu(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Fu=Je())),4&r&&hu(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Gs=(c=Gs)||d,gu(t,e),Gs=c):gu(t,e),yu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!==(1&e.mode))for(Zs=e,d=e.child;null!==d;){for(f=Zs=d;null!==Zs;){switch(h=(p=Zs).child,p.tag){case 0:case 11:case 14:case 15:nu(4,p,p.return);break;case 1:Xs(p,p.return);var g=p.stateNode;if("function"===typeof g.componentWillUnmount){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){kl(r,n,m)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){_u(f);continue}}null!==h?(h.return=p,Zs=h):_u(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=f.stateNode,s=void 0!==(l=f.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null,u.style.display=ge("display",s))}catch(m){kl(e,e.return,m)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(m){kl(e,e.return,m)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gu(t,e),yu(e),4&r&&hu(e);case 21:}}function yu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(au(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),lu(e,su(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;uu(e,su(e),a);break;default:throw Error(o(161))}}catch(s){kl(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vu(e,t,n){Zs=e,bu(e,t,n)}function bu(e,t,n){for(var r=0!==(1&e.mode);null!==Zs;){var i=Zs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Ks;if(!a){var s=i.alternate,u=null!==s&&null!==s.memoizedState||Gs;s=Ks;var l=Gs;if(Ks=a,(Gs=u)&&!l)for(Zs=i;null!==Zs;)u=(a=Zs).child,22===a.tag&&null!==a.memoizedState?Su(i):null!==u?(u.return=a,Zs=u):Su(i);for(;null!==o;)Zs=o,bu(o,t,n),o=o.sibling;Zs=i,Ks=s,Gs=l}wu(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Zs=o):wu(e)}}function wu(e){for(;null!==Zs;){var t=Zs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Gs||ru(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ho(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ho(t,s,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&qt(f)}}}break;default:throw Error(o(163))}Gs||512&t.flags&&iu(t)}catch(p){kl(t,t.return,p)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function _u(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function Su(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(u){kl(t,n,u)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(u){kl(t,i,u)}}var o=t.return;try{iu(t)}catch(u){kl(t,o,u)}break;case 5:var a=t.return;try{iu(t)}catch(u){kl(t,a,u)}}}catch(u){kl(t,t.return,u)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var xu,ku=Math.ceil,Cu=w.ReactCurrentDispatcher,Eu=w.ReactCurrentOwner,Ou=w.ReactCurrentBatchConfig,Tu=0,Au=null,Iu=null,Mu=0,Pu=0,Du=ki(0),Lu=0,ju=null,Nu=0,Ru=0,$u=0,zu=null,Uu=null,Fu=0,qu=1/0,Vu=null,Hu=!1,Bu=null,Wu=null,Qu=!1,Yu=null,Ku=0,Gu=0,Ju=null,Zu=-1,Xu=0;function el(){return 0!==(6&Tu)?Je():-1!==Zu?Zu:Zu=Je()}function tl(e){return 0===(1&e.mode)?1:0!==(2&Tu)&&0!==Mu?Mu&-Mu:null!==mo.transition?(0===Xu&&(Xu=gt()),Xu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Gt(e.type)}function nl(e,t,n,r){if(50<Gu)throw Gu=0,Ju=null,Error(o(185));yt(e,n,r),0!==(2&Tu)&&e===Au||(e===Au&&(0===(2&Tu)&&(Ru|=n),4===Lu&&sl(e,Mu)),rl(e,r),1===n&&0===Tu&&0===(1&t.mode)&&(qu=Je()+500,zi&&qi()))}function rl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,u=i[a];-1===u?0!==(s&n)&&0===(s&r)||(i[a]=pt(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Au?Mu:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){zi=!0,Fi(e)}(ul.bind(null,e)):Fi(ul.bind(null,e)),ai((function(){0===(6&Tu)&&qi()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Al(n,il.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function il(e,t){if(Zu=-1,Xu=0,0!==(6&Tu))throw Error(o(327));var n=e.callbackNode;if(Sl()&&e.callbackNode!==n)return null;var r=ft(e,e===Au?Mu:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=ml(e,r);else{t=r;var i=Tu;Tu|=2;var a=hl();for(Au===e&&Mu===t||(Vu=null,qu=Je()+500,fl(e,t));;)try{vl();break}catch(u){pl(e,u)}Oo(),Cu.current=a,Tu=i,null!==Iu?t=0:(Au=null,Mu=0,t=Lu)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(r=i,t=ol(e,i))),1===t)throw n=ju,fl(e,0),sl(e,r),rl(e,Je()),n;if(6===t)sl(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=ml(e,r))&&(0!==(a=ht(e))&&(r=a,t=ol(e,a))),1===t))throw n=ju,fl(e,0),sl(e,r),rl(e,Je()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:_l(e,Uu,Vu);break;case 3:if(sl(e,r),(130023424&r)===r&&10<(t=Fu+500-Je())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){el(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(_l.bind(null,e,Uu,Vu),t);break}_l(e,Uu,Vu);break;case 4:if(sl(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ku(r/1960))-r)){e.timeoutHandle=ri(_l.bind(null,e,Uu,Vu),r);break}_l(e,Uu,Vu);break;default:throw Error(o(329))}}}return rl(e,Je()),e.callbackNode===n?il.bind(null,e):null}function ol(e,t){var n=zu;return e.current.memoizedState.isDehydrated&&(fl(e,t).flags|=256),2!==(e=ml(e,t))&&(t=Uu,Uu=n,null!==t&&al(t)),e}function al(e){null===Uu?Uu=e:Uu.push.apply(Uu,e)}function sl(e,t){for(t&=~$u,t&=~Ru,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function ul(e){if(0!==(6&Tu))throw Error(o(327));Sl();var t=ft(e,0);if(0===(1&t))return rl(e,Je()),null;var n=ml(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ol(e,r))}if(1===n)throw n=ju,fl(e,0),sl(e,t),rl(e,Je()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_l(e,Uu,Vu),rl(e,Je()),null}function ll(e,t){var n=Tu;Tu|=1;try{return e(t)}finally{0===(Tu=n)&&(qu=Je()+500,zi&&qi())}}function cl(e){null!==Yu&&0===Yu.tag&&0===(6&Tu)&&Sl();var t=Tu;Tu|=1;var n=Ou.transition,r=bt;try{if(Ou.transition=null,bt=1,e)return e()}finally{bt=r,Ou.transition=n,0===(6&(Tu=t))&&qi()}}function dl(){Pu=Du.current,Ci(Du)}function fl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Iu)for(n=Iu.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Di();break;case 3:Jo(),Ci(Ai),Ci(Ti),ra();break;case 5:Xo(r);break;case 4:Jo();break;case 13:case 19:Ci(ea);break;case 10:To(r.type._context);break;case 22:case 23:dl()}n=n.return}if(Au=e,Iu=e=Dl(e.current,null),Mu=Pu=t,Lu=0,ju=null,$u=Ru=Nu=0,Uu=zu=null,null!==Po){for(t=0;t<Po.length;t++)if(null!==(r=(n=Po[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Po=null}return e}function pl(e,t){for(;;){var n=Iu;try{if(Oo(),ia.current=Za,ca){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ca=!1}if(aa=0,la=ua=sa=null,da=!1,fa=0,Eu.current=null,null===n||null===n.return){Lu=1,ju=t,Iu=null;break}e:{var a=e,s=n.return,u=n,l=t;if(t=Mu,u.flags|=32768,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l,d=u,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=ms(s);if(null!==h){h.flags&=-257,ys(h,s,u,0,t),1&h.mode&&gs(a,c,t),l=c;var g=(t=h).updateQueue;if(null===g){var m=new Set;m.add(l),t.updateQueue=m}else g.add(l);break e}if(0===(1&t)){gs(a,c,t),gl();break e}l=Error(o(426))}else if(io&&1&u.mode){var y=ms(s);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),ys(y,s,u,0,t),go(ls(l,u));break e}}a=l=ls(l,u),4!==Lu&&(Lu=2),null===zu?zu=[a]:zu.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qo(a,ps(0,l,t));break e;case 1:u=l;var v=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof v.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Wu||!Wu.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qo(a,hs(a,u,t));break e}}a=a.return}while(null!==a)}wl(n)}catch(w){t=w,Iu===n&&null!==n&&(Iu=n=n.return);continue}break}}function hl(){var e=Cu.current;return Cu.current=Za,null===e?Za:e}function gl(){0!==Lu&&3!==Lu&&2!==Lu||(Lu=4),null===Au||0===(268435455&Nu)&&0===(268435455&Ru)||sl(Au,Mu)}function ml(e,t){var n=Tu;Tu|=2;var r=hl();for(Au===e&&Mu===t||(Vu=null,fl(e,t));;)try{yl();break}catch(i){pl(e,i)}if(Oo(),Tu=n,Cu.current=r,null!==Iu)throw Error(o(261));return Au=null,Mu=0,Lu}function yl(){for(;null!==Iu;)bl(Iu)}function vl(){for(;null!==Iu&&!Ke();)bl(Iu)}function bl(e){var t=xu(e.alternate,e,Pu);e.memoizedProps=e.pendingProps,null===t?wl(e):Iu=t,Eu.current=null}function wl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Qs(n,t,Pu)))return void(Iu=n)}else{if(null!==(n=Ys(n,t)))return n.flags&=32767,void(Iu=n);if(null===e)return Lu=6,void(Iu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Iu=t);Iu=t=e}while(null!==t);0===Lu&&(Lu=5)}function _l(e,t,n){var r=bt,i=Ou.transition;try{Ou.transition=null,bt=1,function(e,t,n,r){do{Sl()}while(null!==Yu);if(0!==(6&Tu))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Au&&(Iu=Au=null,Mu=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Qu||(Qu=!0,Al(tt,(function(){return Sl(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Ou.transition,Ou.transition=null;var s=bt;bt=1;var u=Tu;Tu|=4,Eu.current=null,function(e,t){if(ei=Ht,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(_){n=null;break e}var s=0,u=-1,l=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(u=s+i),f!==a||0!==r&&3!==f.nodeType||(l=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===i&&(u=s),p===a&&++d===r&&(l=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===u||-1===l?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ht=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,y=g.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(_){kl(t,t.return,_)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}g=tu,tu=!1}(e,n),mu(n,e),hr(ti),Ht=!!ei,ti=ei=null,e.current=n,vu(n,e,i),Ge(),Tu=u,bt=s,Ou.transition=a}else e.current=n;if(Qu&&(Qu=!1,Yu=e,Ku=i),a=e.pendingLanes,0===a&&(Wu=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rl(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Hu)throw Hu=!1,e=Bu,Bu=null,e;0!==(1&Ku)&&0!==e.tag&&Sl(),a=e.pendingLanes,0!==(1&a)?e===Ju?Gu++:(Gu=0,Ju=e):Gu=0,qi()}(e,t,n,r)}finally{Ou.transition=i,bt=r}return null}function Sl(){if(null!==Yu){var e=wt(Ku),t=Ou.transition,n=bt;try{if(Ou.transition=null,bt=16>e?16:e,null===Yu)var r=!1;else{if(e=Yu,Yu=null,Ku=0,0!==(6&Tu))throw Error(o(331));var i=Tu;for(Tu|=4,Zs=e.current;null!==Zs;){var a=Zs,s=a.child;if(0!==(16&Zs.flags)){var u=a.deletions;if(null!==u){for(var l=0;l<u.length;l++){var c=u[l];for(Zs=c;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:nu(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zs=f;else for(;null!==Zs;){var p=(d=Zs).sibling,h=d.return;if(ou(d),d===c){Zs=null;break}if(null!==p){p.return=h,Zs=p;break}Zs=h}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Zs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Zs=s;else e:for(;null!==Zs;){if(0!==(2048&(a=Zs).flags))switch(a.tag){case 0:case 11:case 15:nu(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Zs=v;break e}Zs=a.return}}var b=e.current;for(Zs=b;null!==Zs;){var w=(s=Zs).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Zs=w;else e:for(s=b;null!==Zs;){if(0!==(2048&(u=Zs).flags))try{switch(u.tag){case 0:case 11:case 15:ru(9,u)}}catch(S){kl(u,u.return,S)}if(u===s){Zs=null;break e}var _=u.sibling;if(null!==_){_.return=u.return,Zs=_;break e}Zs=u.return}}if(Tu=i,qi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(S){}r=!0}return r}finally{bt=n,Ou.transition=t}}return!1}function xl(e,t,n){e=Uo(e,t=ps(0,t=ls(n,t),1),1),t=el(),null!==e&&(yt(e,1,t),rl(e,t))}function kl(e,t,n){if(3===e.tag)xl(e,e,n);else for(;null!==t;){if(3===t.tag){xl(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Wu||!Wu.has(r))){t=Uo(t,e=hs(t,e=ls(n,e),1),1),e=el(),null!==t&&(yt(t,1,e),rl(t,e));break}}t=t.return}}function Cl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=el(),e.pingedLanes|=e.suspendedLanes&n,Au===e&&(Mu&n)===n&&(4===Lu||3===Lu&&(130023424&Mu)===Mu&&500>Je()-Fu?fl(e,0):$u|=n),rl(e,t)}function El(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=el();null!==(e=jo(e,t))&&(yt(e,t,n),rl(e,n))}function Ol(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),El(e,n)}function Tl(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),El(e,n)}function Al(e,t){return Qe(e,t)}function Il(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ml(e,t,n,r){return new Il(e,t,n,r)}function Pl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dl(e,t){var n=e.alternate;return null===n?((n=Ml(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ll(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Pl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case x:return jl(n.children,i,a,t);case k:s=8,i|=8;break;case C:return(e=Ml(12,n,t,2|i)).elementType=C,e.lanes=a,e;case A:return(e=Ml(13,n,t,i)).elementType=A,e.lanes=a,e;case I:return(e=Ml(19,n,t,i)).elementType=I,e.lanes=a,e;case D:return Nl(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case O:s=9;break e;case T:s=11;break e;case M:s=14;break e;case P:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ml(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function jl(e,t,n,r){return(e=Ml(7,e,r,t)).lanes=n,e}function Nl(e,t,n,r){return(e=Ml(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Rl(e,t,n){return(e=Ml(6,e,null,t)).lanes=n,e}function $l(e,t,n){return(t=Ml(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zl(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ul(e,t,n,r,i,o,a,s,u){return e=new zl(e,t,n,s,u),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ml(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ro(o),e}function Fl(e){if(!e)return Oi;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Pi(n))return ji(e,n,t)}return t}function ql(e,t,n,r,i,o,a,s,u){return(e=Ul(n,r,!0,e,0,o,0,s,u)).context=Fl(null),n=e.current,(o=zo(r=el(),i=tl(n))).callback=void 0!==t&&null!==t?t:null,Uo(n,o,i),e.current.lanes=i,yt(e,i,r),rl(e,r),e}function Vl(e,t,n,r){var i=t.current,o=el(),a=tl(i);return n=Fl(n),null===t.context?t.context=n:t.pendingContext=n,(t=zo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Uo(i,t,a))&&(nl(e,i,a,o),Fo(e,i,a)),a}function Hl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Bl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wl(e,t){Bl(e,t),(e=e.alternate)&&Bl(e,t)}xu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:As(t),ho();break;case 5:Zo(t);break;case 1:Pi(t.type)&&Ni(t);break;case 4:Go(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ei(xo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ei(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Rs(e,t,n):(Ei(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);Ei(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return qs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ei(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,io&&0!==(1048576&t.flags)&&Xi(t,Wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vs(e,t),e=t.pendingProps;var i=Mi(t,Ti.current);Io(t,n),i=ma(null,t,r,e,i,n);var a=ya();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pi(r)?(a=!0,Ni(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ro(t),i.updater=is,t.stateNode=i,i._reactInternals=t,us(t,r,e,n),t=Ts(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),ws(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Pl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===M)return 14}return 2}(r),e=ns(r,e),i){case 0:t=Es(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=_s(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Es(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,Os(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(As(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,$o(e,t),Vo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Is(e,t,r,n,i=ls(Error(o(423)),t));break e}if(r!==i){t=Is(e,t,r,n,i=ls(Error(o(424)),t));break e}for(ro=li(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=So(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===i){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Zo(t),null===e&&lo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),Cs(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&lo(t),null;case 13:return Rs(e,t,n);case 4:return Go(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_o(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,_s(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ei(xo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ai.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){s=a.child;for(var l=u.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=zo(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ao(a.return,n,t),u.lanes|=n;break}l=l.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Ao(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Io(t,n),r=r(i=Mo(i)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),Ss(e,t,r,i=ns(r.type,i),n);case 15:return xs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),Vs(e,t),t.tag=1,Pi(r)?(e=!0,Ni(t)):e=!1,Io(t,n),as(t,r,i),us(t,r,i,n),Ts(null,t,r,!0,e,n);case 19:return qs(e,t,n);case 22:return ks(e,t,n)}throw Error(o(156,t.tag))};var Ql="function"===typeof reportError?reportError:function(e){console.error(e)};function Yl(e){this._internalRoot=e}function Kl(e){this._internalRoot=e}function Gl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zl(){}function Xl(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Hl(a);s.call(e)}}Vl(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Hl(a);o.call(e)}}var a=ql(t,r,e,0,null,!1,0,"",Zl);return e._reactRootContainer=a,e[hi]=a.current,qr(8===e.nodeType?e.parentNode:e),cl(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Hl(u);s.call(e)}}var u=Ul(e,0,!1,null,0,!1,0,"",Zl);return e._reactRootContainer=u,e[hi]=u.current,qr(8===e.nodeType?e.parentNode:e),cl((function(){Vl(t,u,n,r)})),u}(n,t,e,i,r);return Hl(a)}Kl.prototype.render=Yl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Vl(e,t,null,null)},Kl.prototype.unmount=Yl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cl((function(){Vl(null,e,null,null)})),t[hi]=null}},Kl.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&Rt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),rl(t,Je()),0===(6&Tu)&&(qu=Je()+500,qi()))}break;case 13:cl((function(){var t=jo(e,1);if(null!==t){var n=el();nl(t,e,1,n)}})),Wl(e,1)}},St=function(e){if(13===e.tag){var t=jo(e,134217728);if(null!==t)nl(t,e,134217728,el());Wl(e,134217728)}},xt=function(e){if(13===e.tag){var t=tl(e),n=jo(e,t);if(null!==n)nl(n,e,t,el());Wl(e,t)}},kt=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=_i(r);if(!i)throw Error(o(90));Q(r),Z(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=ll,Ae=cl;var ec={usingClientEntryPoint:!1,Events:[bi,wi,_i,Ee,Oe,ll]},tc={findFiberByHostInstance:vi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Be(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{it=rc.inject(nc),ot=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gl(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Gl(e))throw Error(o(299));var n=!1,r="",i=Ql;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Ul(e,1,!1,null,0,n,0,r,i),e[hi]=t.current,qr(8===e.nodeType?e.parentNode:e),new Yl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Be(t))?null:e.stateNode},t.flushSync=function(e){return cl(e)},t.hydrate=function(e,t,n){if(!Jl(t))throw Error(o(200));return Xl(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Gl(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Ql;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=ql(t,null,e,1,null!=n?n:null,i,0,a,s),e[hi]=t.current,qr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Kl(t)},t.render=function(e,t,n){if(!Jl(t))throw Error(o(200));return Xl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jl(e))throw Error(o(40));return!!e._reactRootContainer&&(cl((function(){Xl(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},t.unstable_batchedUpdates=ll,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jl(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Xl(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},55119:(e,t,n)=>{"use strict";var r=n(97142);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},97142:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(17922)},62097:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,u,l,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(!o(e[u],a[u]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;for(c=e.entries();!(u=c.next()).done;)if(!o(u.value[1],a.get(u.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(u=s;0!==u--;)if(e[u]!==a[u])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(l=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(a,l[u]))return!1;if(t&&e instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==l[u]&&"__v"!==l[u]&&"__o"!==l[u]||!e.$$typeof)&&!o(e[l[u]],a[l[u]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},66626:(e,t,n)=>{"use strict";n.d(t,{m:()=>ue});var r=n(96183),i=n.n(r),o=n(1726),a=n.n(o),s=n(62097),u=n.n(s),l=n(76697),c=n(26602),d=n.n(c),f="bodyAttributes",p="htmlAttributes",h="titleAttributes",g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},m=(Object.keys(g).map((function(e){return g[e]})),"charset"),y="cssText",v="href",b="http-equiv",w="innerHTML",_="itemprop",S="name",x="property",k="rel",C="src",E="target",O={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},T="defaultTitle",A="defer",I="encodeSpecialCharacters",M="onChangeClientState",P="titleTemplate",D=Object.keys(O).reduce((function(e,t){return e[O[t]]=t,e}),{}),L=[g.NOSCRIPT,g.SCRIPT,g.STYLE],j="data-react-helmet",N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},U=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},F=function(e){var t=W(e,g.TITLE),n=W(e,P);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=W(e,T);return t||r||void 0},q=function(e){return W(e,M)||function(){}},V=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return $({},e,t)}),{})},H=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},B=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&J("Helmet: "+e+' should be of type "Array". Instead found type "'+N(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n=void 0,o=Object.keys(e),a=0;a<o.length;a++){var s=o[a],u=s.toLowerCase();-1===t.indexOf(u)||n===k&&"canonical"===e[n].toLowerCase()||u===k&&"stylesheet"===e[u].toLowerCase()||(n=u),-1===t.indexOf(s)||s!==w&&s!==y&&s!==_||(n=s)}if(!n||!e[n])return!1;var l=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][l]&&(i[n][l]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a++){var s=o[a],u=d()({},r[s],i[s]);r[s]=u}return e}),[]).reverse()},W=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},Q=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){Q(t)}),0)}}(),Y=function(e){return clearTimeout(e)},K="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Q:n.g.requestAnimationFrame||Q,G="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Y:n.g.cancelAnimationFrame||Y,J=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},Z=null,X=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,u=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,d=e.title,f=e.titleAttributes;ne(g.BODY,r),ne(g.HTML,i),te(d,f);var p={baseTag:re(g.BASE,n),linkTags:re(g.LINK,o),metaTags:re(g.META,a),noscriptTags:re(g.NOSCRIPT,s),scriptTags:re(g.SCRIPT,l),styleTags:re(g.STYLE,c)},h={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),u(e,h,m)},ee=function(e){return Array.isArray(e)?e.join(""):e},te=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=ee(e)),ne(g.TITLE,t)},ne=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(j),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s<a.length;s++){var u=a[s],l=t[u]||"";n.getAttribute(u)!==l&&n.setAttribute(u,l),-1===i.indexOf(u)&&i.push(u);var c=o.indexOf(u);-1!==c&&o.splice(c,1)}for(var d=o.length-1;d>=0;d--)n.removeAttribute(o[d]);i.length===o.length?n.removeAttribute(j):n.getAttribute(j)!==a.join(",")&&n.setAttribute(j,a.join(","))}},re=function(e,t){var n=document.head||document.querySelector(g.HEAD),r=n.querySelectorAll(e+"["+j+"]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===w)n.innerHTML=t.innerHTML;else if(r===y)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(j,"true"),i.some((function(e,t){return a=t,n.isEqualNode(e)}))?i.splice(a,1):o.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:o}},ie=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[O[n]||n]=e[n],t}),t)},ae=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){return function(e,t,n){var r,i=((r={key:t})[j]=!0,r),o=oe(n,i);return[l.createElement(g.TITLE,o,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,r){var i=ie(n),o=ee(t);return i?"<"+e+" "+j+'="true" '+i+">"+U(o,r)+"</"+e+">":"<"+e+" "+j+'="true">'+U(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case f:case p:return{toComponent:function(){return oe(t)},toString:function(){return ie(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,i=((r={key:n})[j]=!0,r);return Object.keys(t).forEach((function(e){var n=O[e]||e;if(n===w||n===y){var r=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=t[e]})),l.createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!(e===w||e===y)})).reduce((function(e,t){var i="undefined"===typeof r[t]?t:t+'="'+U(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===L.indexOf(e);return t+"<"+e+" "+j+'="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},se=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,u=e.scriptTags,l=e.styleTags,c=e.title,d=void 0===c?"":c,h=e.titleAttributes;return{base:ae(g.BASE,t,r),bodyAttributes:ae(f,n,r),htmlAttributes:ae(p,i,r),link:ae(g.LINK,o,r),meta:ae(g.META,a,r),noscript:ae(g.NOSCRIPT,s,r),script:ae(g.SCRIPT,u,r),style:ae(g.STYLE,l,r),title:ae(g.TITLE,{title:d,titleAttributes:h},r)}},ue=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!u()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return $({},r,((t={})[n.type]=[].concat(r[n.type]||[],[$({},i,this.mapNestedChildrenToProps(n,o))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case g.TITLE:return $({},i,((t={})[r.type]=a,t.titleAttributes=$({},o),t));case g.BODY:return $({},i,{bodyAttributes:$({},o)});case g.HTML:return $({},i,{htmlAttributes:$({},o)})}return $({},i,((n={})[r.type]=$({},o),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=$({},t);return Object.keys(e).forEach((function(t){var r;n=$({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return l.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[D[n]||n]=e[n],t}),t)}(z(i,["children"]));switch(n.warnOnInvalidChildren(e,o),e.type){case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=z(t,["children"]),i=$({},r);return n&&(i=this.mapChildrenToProps(n,i)),l.createElement(e,i)},R(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(l.Component),t.propTypes={base:i().object,bodyAttributes:i().object,children:i().oneOfType([i().arrayOf(i().node),i().node]),defaultTitle:i().string,defer:i().bool,encodeSpecialCharacters:i().bool,htmlAttributes:i().object,link:i().arrayOf(i().object),meta:i().arrayOf(i().object),noscript:i().arrayOf(i().object),onChangeClientState:i().func,script:i().arrayOf(i().object),style:i().arrayOf(i().object),title:i().string,titleAttributes:i().object,titleTemplate:i().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=se({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(a()((function(e){return{baseTag:H([v,E],e),bodyAttributes:V(f,e),defer:W(e,A),encode:W(e,I),htmlAttributes:V(p,e),linkTags:B(g.LINK,[k,v],e),metaTags:B(g.META,[S,m,b,x,_],e),noscriptTags:B(g.NOSCRIPT,[w],e),onChangeClientState:q(e),scriptTags:B(g.SCRIPT,[C,w],e),styleTags:B(g.STYLE,[y],e),title:F(e),titleAttributes:V(h,e)}}),(function(e){Z&&G(Z),e.defer?Z=K((function(){X(e,(function(){Z=null}))})):(X(e),Z=null)}),se)((function(){return null})));ue.renderStatic=ue.rewind},50276:(e,t,n)=>{"use strict";var r,i;n.d(t,{I9:()=>m,N_:()=>b,k2:()=>w,ok:()=>k});var o=n(76697),a=n(97142),s=n(24892),u=n(57103);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function d(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const f=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],p=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(C){}const h=o.createContext({isTransitioning:!1});new Map;const g=(r||(r=n.t(o,2))).startTransition;(i||(i=n.t(a,2))).flushSync,(r||(r=n.t(o,2))).useId;function m(e){let{basename:t,children:n,future:r,window:i}=e,a=o.useRef();null==a.current&&(a.current=(0,u.TM)({window:i,v5Compat:!0}));let l=a.current,[c,d]=o.useState({action:l.action,location:l.location}),{v7_startTransition:f}=r||{},p=o.useCallback((e=>{f&&g?g((()=>d(e))):d(e)}),[d,f]);return o.useLayoutEffect((()=>l.listen(p)),[l,p]),o.createElement(s.Ix,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l,future:r})}const y="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,v=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,b=o.forwardRef((function(e,t){let n,{onClick:r,relative:i,reloadDocument:a,replace:d,state:p,target:h,to:g,preventScrollReset:m,unstable_viewTransition:b}=e,w=c(e,f),{basename:_}=o.useContext(s.jb),S=!1;if("string"===typeof g&&v.test(g)&&(n=g,y))try{let e=new URL(window.location.href),t=g.startsWith("//")?new URL(e.protocol+g):new URL(g),n=(0,u.pb)(t.pathname,_);t.origin===e.origin&&null!=n?g=n+t.search+t.hash:S=!0}catch(C){}let x=(0,s.$P)(g,{relative:i}),k=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:l,unstable_viewTransition:c}=void 0===t?{}:t,d=(0,s.Zp)(),f=(0,s.zy)(),p=(0,s.x$)(e,{relative:l});return o.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,u.AO)(f)===(0,u.AO)(p);d(e,{replace:n,state:i,preventScrollReset:a,relative:l,unstable_viewTransition:c})}}),[f,d,p,r,i,n,e,a,l,c])}(g,{replace:d,state:p,target:h,preventScrollReset:m,relative:i,unstable_viewTransition:b});return o.createElement("a",l({},w,{href:n||x,onClick:S||a?r:function(e){r&&r(e),e.defaultPrevented||k(e)},ref:t,target:h}))}));const w=o.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:i="",end:a=!1,style:d,to:f,unstable_viewTransition:g,children:m}=e,y=c(e,p),v=(0,s.x$)(f,{relative:y.relative}),w=(0,s.zy)(),S=o.useContext(s.Rq),{navigator:k,basename:C}=o.useContext(s.jb),E=null!=S&&function(e,t){void 0===t&&(t={});let n=o.useContext(h);null==n&&(0,u.Oi)(!1);let{basename:r}=x(_.useViewTransitionState),i=(0,s.x$)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=(0,u.pb)(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=(0,u.pb)(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=(0,u.B6)(i.pathname,l)||null!=(0,u.B6)(i.pathname,a)}(v)&&!0===g,O=k.encodeLocation?k.encodeLocation(v).pathname:v.pathname,T=w.pathname,A=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(T=T.toLowerCase(),A=A?A.toLowerCase():null,O=O.toLowerCase()),A&&C&&(A=(0,u.pb)(A,C)||A);const I="/"!==O&&O.endsWith("/")?O.length-1:O.length;let M,P=T===O||!a&&T.startsWith(O)&&"/"===T.charAt(I),D=null!=A&&(A===O||!a&&A.startsWith(O)&&"/"===A.charAt(O.length)),L={isActive:P,isPending:D,isTransitioning:E},j=P?n:void 0;M="function"===typeof i?i(L):[i,P?"active":null,D?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let N="function"===typeof d?d(L):d;return o.createElement(b,l({},y,{"aria-current":j,className:M,ref:t,style:N,to:f,unstable_viewTransition:g}),"function"===typeof m?m(L):m)}));var _,S;function x(e){let t=o.useContext(s.sp);return t||(0,u.Oi)(!1),t}function k(e){let t=o.useRef(d(e)),n=o.useRef(!1),r=(0,s.zy)(),i=o.useMemo((()=>function(e,t){let n=d(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),a=(0,s.Zp)(),u=o.useCallback(((e,t)=>{const r=d("function"===typeof e?e(i):e);n.current=!0,a("?"+r,t)}),[a,i]);return[i,u]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_||(_={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(S||(S={}))},24892:(e,t,n)=>{"use strict";var r;n.d(t,{$P:()=>p,BV:()=>z,C5:()=>j,Ix:()=>$,KC:()=>w,RQ:()=>m,Rq:()=>u,Zp:()=>v,g:()=>_,jb:()=>l,qh:()=>R,sp:()=>s,sv:()=>N,x$:()=>S,zy:()=>g});var i=n(76697),o=n(57103);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const s=i.createContext(null);const u=i.createContext(null);const l=i.createContext(null);const c=i.createContext(null);const d=i.createContext({outlet:null,matches:[],isDataRoute:!1});const f=i.createContext(null);function p(e,t){let{relative:n}=void 0===t?{}:t;h()||(0,o.Oi)(!1);let{basename:r,navigator:a}=i.useContext(l),{hash:s,pathname:u,search:c}=S(e,{relative:n}),d=u;return"/"!==r&&(d="/"===u?r:(0,o.HS)([r,u])),a.createHref({pathname:d,search:c,hash:s})}function h(){return null!=i.useContext(c)}function g(){return h()||(0,o.Oi)(!1),i.useContext(c).location}function m(e){h()||(0,o.Oi)(!1);let{pathname:t}=g();return i.useMemo((()=>(0,o.B6)(e,(0,o.RO)(t))),[t,e])}function y(e){i.useContext(l).static||i.useLayoutEffect(e)}function v(){let{isDataRoute:e}=i.useContext(d);return e?function(){let{router:e}=M(A.UseNavigateStable),t=D(I.UseNavigateStable),n=i.useRef(!1);return y((()=>{n.current=!0})),i.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,a({fromRouteId:t},i)))}),[e,t])}():function(){h()||(0,o.Oi)(!1);let e=i.useContext(s),{basename:t,future:n,navigator:r}=i.useContext(l),{matches:a}=i.useContext(d),{pathname:u}=g(),c=JSON.stringify((0,o.yD)(a,n.v7_relativeSplatPath)),f=i.useRef(!1);return y((()=>{f.current=!0})),i.useCallback((function(n,i){if(void 0===i&&(i={}),!f.current)return;if("number"===typeof n)return void r.go(n);let a=(0,o.Gh)(n,JSON.parse(c),u,"path"===i.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:(0,o.HS)([t,a.pathname])),(i.replace?r.replace:r.push)(a,i.state,i)}),[t,r,c,u,e])}()}const b=i.createContext(null);function w(){return i.useContext(b)}function _(){let{matches:e}=i.useContext(d),t=e[e.length-1];return t?t.params:{}}function S(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=i.useContext(l),{matches:a}=i.useContext(d),{pathname:s}=g(),u=JSON.stringify((0,o.yD)(a,r.v7_relativeSplatPath));return i.useMemo((()=>(0,o.Gh)(e,JSON.parse(u),s,"path"===n)),[e,u,s,n])}function x(e,t,n,r){h()||(0,o.Oi)(!1);let{navigator:s}=i.useContext(l),{matches:u}=i.useContext(d),f=u[u.length-1],p=f?f.params:{},m=(f&&f.pathname,f?f.pathnameBase:"/");f&&f.route;let y,v=g();if(t){var b;let e="string"===typeof t?(0,o.Rr)(t):t;"/"===m||(null==(b=e.pathname)?void 0:b.startsWith(m))||(0,o.Oi)(!1),y=e}else y=v;let w=y.pathname||"/",_=w;if("/"!==m){let e=m.replace(/^\//,"").split("/");_="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let S=(0,o.ue)(e,{pathname:_});let x=T(S&&S.map((e=>Object.assign({},e,{params:Object.assign({},p,e.params),pathname:(0,o.HS)([m,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?m:(0,o.HS)([m,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),u,n,r);return t&&x?i.createElement(c.Provider,{value:{location:a({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:o.rc.Pop}},x):x}function k(){let e=function(){var e;let t=i.useContext(f),n=P(I.UseRouteError),r=D(I.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=(0,o.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:a},n):null,null)}const C=i.createElement(k,null);class E extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(d.Provider,{value:this.props.routeContext},i.createElement(f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function O(e){let{routeContext:t,match:n,children:r}=e,o=i.useContext(s);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(d.Provider,{value:t},r)}function T(e,t,n,r){var a;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var s;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(s=r)&&s.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let u=e,l=null==(a=n)?void 0:a.errors;if(null!=l){let e=u.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||(0,o.Oi)(!1),u=u.slice(0,Math.min(u.length,e+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let i=0;i<u.length;i++){let e=u[i];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=i),e.route.id){let{loaderData:t,errors:r}=n,i=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||i){c=!0,u=d>=0?u.slice(0,d+1):[u[0]];break}}}return u.reduceRight(((e,r,o)=>{let a,s=!1,f=null,p=null;var h;n&&(a=l&&r.route.id?l[r.route.id]:void 0,f=r.route.errorElement||C,c&&(d<0&&0===o?(h="route-fallback",!1||L[h]||(L[h]=!0),s=!0,p=null):d===o&&(s=!0,p=r.route.hydrateFallbackElement||null)));let g=t.concat(u.slice(0,o+1)),m=()=>{let t;return t=a?f:s?p:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(O,{match:r,routeContext:{outlet:e,matches:g,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?i.createElement(E,{location:n.location,revalidation:n.revalidation,component:f,error:a,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()}),null)}var A=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(A||{}),I=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(I||{});function M(e){let t=i.useContext(s);return t||(0,o.Oi)(!1),t}function P(e){let t=i.useContext(u);return t||(0,o.Oi)(!1),t}function D(e){let t=function(e){let t=i.useContext(d);return t||(0,o.Oi)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,o.Oi)(!1),n.route.id}const L={};(r||(r=n.t(i,2))).startTransition;function j(e){let{to:t,replace:n,state:r,relative:a}=e;h()||(0,o.Oi)(!1);let{future:s,static:u}=i.useContext(l),{matches:c}=i.useContext(d),{pathname:f}=g(),p=v(),m=(0,o.Gh)(t,(0,o.yD)(c,s.v7_relativeSplatPath),f,"path"===a),y=JSON.stringify(m);return i.useEffect((()=>p(JSON.parse(y),{replace:n,state:r,relative:a})),[p,y,a,n,r]),null}function N(e){return function(e){let t=i.useContext(d).outlet;return t?i.createElement(b.Provider,{value:e},t):t}(e.context)}function R(e){(0,o.Oi)(!1)}function $(e){let{basename:t="/",children:n=null,location:r,navigationType:s=o.rc.Pop,navigator:u,static:d=!1,future:f}=e;h()&&(0,o.Oi)(!1);let p=t.replace(/^\/*/,"/"),g=i.useMemo((()=>({basename:p,navigator:u,static:d,future:a({v7_relativeSplatPath:!1},f)})),[p,f,u,d]);"string"===typeof r&&(r=(0,o.Rr)(r));let{pathname:m="/",search:y="",hash:v="",state:b=null,key:w="default"}=r,_=i.useMemo((()=>{let e=(0,o.pb)(m,p);return null==e?null:{location:{pathname:e,search:y,hash:v,state:b,key:w},navigationType:s}}),[p,m,y,v,b,w,s]);return null==_?null:i.createElement(l.Provider,{value:g},i.createElement(c.Provider,{children:n,value:_}))}function z(e){let{children:t,location:n}=e;return x(U(t),n)}new Promise((()=>{}));i.Component;function U(e,t){void 0===t&&(t=[]);let n=[];return i.Children.forEach(e,((e,r)=>{if(!i.isValidElement(e))return;let a=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,U(e.props.children,a));e.type!==R&&(0,o.Oi)(!1),e.props.index&&e.props.children&&(0,o.Oi)(!1);let s={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=U(e.props.children,a)),n.push(s)})),n}},1726:(e,t,n)=>{"use strict";var r,i=n(76697),o=(r=i)&&"object"===typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,l=[];function c(){u=e(l.map((function(e){return e.props}))),d.canUseDOM?t(u):n&&(u=n(u))}var d=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.peek=function(){return u},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=u;return u=void 0,l=[],e};var a=i.prototype;return a.UNSAFE_componentWillMount=function(){l.push(this),c()},a.componentDidUpdate=function(){c()},a.componentWillUnmount=function(){var e=l.indexOf(this);l.splice(e,1),c()},a.render=function(){return o.createElement(r,this.props)},i}(i.PureComponent);return a(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(d,"canUseDOM",s),d}}},53335:(e,t,n)=>{"use strict";var r=n(76697),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:o,_owner:s.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},56896:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var w=b.prototype=new v;w.constructor=b,g(w,y.prototype),w.isPureReactComponent=!0;var _=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,i)&&!k.hasOwnProperty(i)&&(o[i]=t[i]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===o[i]&&(o[i]=u[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:x.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===o?"."+T(u,0):o,_(a)?(i="",null!=e&&(i=e.replace(O,"$&/")+"/"),A(a,t,i,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(u=0,o=""===o?".":o+":",_(e))for(var l=0;l<e.length;l++){var c=o+T(s=e[l],l);u+=A(s,t,i,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=A(s=s.value,t,i,c=o+T(s,l++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function I(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function M(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},D={transition:null},L={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:D,ReactCurrentOwner:x};function j(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=j,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=g({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)S.call(t,l)&&!k.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:M}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},76697:(e,t,n)=>{"use strict";e.exports=n(56896)},44109:(e,t,n)=>{"use strict";e.exports=n(53335)},57912:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,u=e[s],l=s+1,c=e[l];if(0>o(u,n))l<i&&0>o(c,u)?(e[r]=c,e[l]=n,r=l):(e[r]=u,e[s]=n,r=s);else{if(!(l<i&&0>o(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var l=[],c=[],d=1,f=null,p=3,h=!1,g=!1,m=!1,y="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(l,t)}t=r(c)}}function _(e){if(m=!1,w(e),!g)if(null!==r(l))g=!0,D(S);else{var t=r(c);null!==t&&L(_,t.startTime-e)}}function S(e,n){g=!1,m&&(m=!1,v(E),E=-1),h=!0;var o=p;try{for(w(n),f=r(l);null!==f&&(!(f.expirationTime>n)||e&&!A());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(l)&&i(l),w(n)}else i(l);f=r(l)}if(null!==f)var u=!0;else{var d=r(c);null!==d&&L(_,d.startTime-n),u=!1}return u}finally{f=null,p=o,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,k=!1,C=null,E=-1,O=5,T=-1;function A(){return!(t.unstable_now()-T<O)}function I(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?x():(k=!1,C=null)}}else k=!1}if("function"===typeof b)x=function(){b(I)};else if("undefined"!==typeof MessageChannel){var M=new MessageChannel,P=M.port2;M.port1.onmessage=I,x=function(){P.postMessage(null)}}else x=function(){y(I,0)};function D(e){C=e,k||(k=!0,x())}function L(e,n){E=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||h||(g=!0,D(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(l)&&e===r(c)&&(m?(v(E),E=-1):m=!0,L(_,o-a))):(e.sortIndex=s,n(l,e),g||h||(g=!0,D(S))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},91279:(e,t,n)=>{"use strict";e.exports=n(57912)},68883:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof r(e).Element||e instanceof Element}function o(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!==typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.d(t,{Ay:()=>vt,M:()=>yt,cJ:()=>pt,qO:()=>be});var s=Math.max,u=Math.min,l=Math.round;function c(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(c())}function f(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),s=1,u=1;t&&o(e)&&(s=e.offsetWidth>0&&l(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&l(a.height)/e.offsetHeight||1);var c=(i(e)?r(e):window).visualViewport,f=!d()&&n,p=(a.left+(f&&c?c.offsetLeft:0))/s,h=(a.top+(f&&c?c.offsetTop:0))/u,g=a.width/s,m=a.height/u;return{width:g,height:m,top:h,right:p+g,bottom:h+m,left:p,x:p,y:h}}function p(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function g(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return f(g(e)).left+p(e).scrollLeft}function y(e){return r(e).getComputedStyle(e)}function v(e){var t=y(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function b(e,t,n){void 0===n&&(n=!1);var i=o(t),a=o(t)&&function(e){var t=e.getBoundingClientRect(),n=l(t.width)/e.offsetWidth||1,r=l(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=g(t),u=f(e,a,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!n)&&(("body"!==h(t)||v(s))&&(c=function(e){return e!==r(e)&&o(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:p(e);var t}(t)),o(t)?((d=f(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=m(s))),{x:u.left+c.scrollLeft-d.x,y:u.top+c.scrollTop-d.y,width:u.width,height:u.height}}function w(e){var t=f(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function _(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||g(e)}function S(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:o(e)&&v(e)?e:S(_(e))}function x(e,t){var n;void 0===t&&(t=[]);var i=S(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=r(i),s=o?[a].concat(a.visualViewport||[],v(i)?i:[]):i,u=t.concat(s);return o?u:u.concat(x(_(s)))}function k(e){return["table","td","th"].indexOf(h(e))>=0}function C(e){return o(e)&&"fixed"!==y(e).position?e.offsetParent:null}function E(e){for(var t=r(e),n=C(e);n&&k(n)&&"static"===y(n).position;)n=C(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===y(n).position)?t:n||function(e){var t=/firefox/i.test(c());if(/Trident/i.test(c())&&o(e)&&"fixed"===y(e).position)return null;var n=_(e);for(a(n)&&(n=n.host);o(n)&&["html","body"].indexOf(h(n))<0;){var r=y(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var O="top",T="bottom",A="right",I="left",M="auto",P=[O,T,A,I],D="start",L="end",j="clippingParents",N="viewport",R="popper",$="reference",z=P.reduce((function(e,t){return e.concat([t+"-"+D,t+"-"+L])}),[]),U=[].concat(P,[M]).reduce((function(e,t){return e.concat([t,t+"-"+D,t+"-"+L])}),[]),F=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function q(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function V(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var H={placement:"bottom",modifiers:[],strategy:"absolute"};function B(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function W(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?H:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},H,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,l={state:o,setOptions:function(n){var u="function"===typeof n?n(o.options):n;c(),o.options=Object.assign({},a,o.options,u),o.scrollParents={reference:i(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var d=function(e){var t=q(e);return F.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=d.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var a=i({state:o,name:t,instance:l,options:r}),u=function(){};s.push(a||u)}})),l.update()},forceUpdate:function(){if(!u){var e=o.elements,t=e.reference,n=e.popper;if(B(t,n)){o.rects={reference:b(t,E(n),"fixed"===o.options.strategy),popper:w(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,s=i.options,c=void 0===s?{}:s,d=i.name;"function"===typeof a&&(o=a({state:o,options:c,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:V((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),u=!0}};if(!B(e,t))return l;function c(){s.forEach((function(e){return e()})),s=[]}return l.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var Q={passive:!0};function Y(e){return e.split("-")[0]}function K(e){return e.split("-")[1]}function G(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function J(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Y(i):null,a=i?K(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case O:t={x:s,y:n.y-r.height};break;case T:t={x:s,y:n.y+n.height};break;case A:t={x:n.x+n.width,y:u};break;case I:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var l=o?G(o):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case D:t[l]=t[l]-(n[c]/2-r[c]/2);break;case L:t[l]=t[l]+(n[c]/2-r[c]/2)}}return t}var Z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(e){var t,n=e.popper,i=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,p=e.isFixed,h=s.x,m=void 0===h?0:h,v=s.y,b=void 0===v?0:v,w="function"===typeof f?f({x:m,y:b}):{x:m,y:b};m=w.x,b=w.y;var _=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),x=I,k=O,C=window;if(d){var M=E(n),P="clientHeight",D="clientWidth";if(M===r(n)&&"static"!==y(M=g(n)).position&&"absolute"===u&&(P="scrollHeight",D="scrollWidth"),o===O||(o===I||o===A)&&a===L)k=T,b-=(p&&M===C&&C.visualViewport?C.visualViewport.height:M[P])-i.height,b*=c?1:-1;if(o===I||(o===O||o===T)&&a===L)x=A,m-=(p&&M===C&&C.visualViewport?C.visualViewport.width:M[D])-i.width,m*=c?1:-1}var j,N=Object.assign({position:u},d&&Z),R=!0===f?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:l(n*i)/i||0,y:l(r*i)/i||0}}({x:m,y:b},r(n)):{x:m,y:b};return m=R.x,b=R.y,c?Object.assign({},N,((j={})[k]=S?"0":"",j[x]=_?"0":"",j.transform=(C.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",j)):Object.assign({},N,((t={})[k]=S?b+"px":"",t[x]=_?m+"px":"",t.transform="",t))}const ee={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];o(i)&&h(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(r)&&h(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};const te={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=U.reduce((function(e,n){return e[n]=function(e,t,n){var r=Y(e),i=[I,O].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[I,A].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],u=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}};var ne={left:"right",right:"left",bottom:"top",top:"bottom"};function re(e){return e.replace(/left|right|bottom|top/g,(function(e){return ne[e]}))}var ie={start:"end",end:"start"};function oe(e){return e.replace(/start|end/g,(function(e){return ie[e]}))}function ae(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function se(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ue(e,t,n){return t===N?se(function(e,t){var n=r(e),i=g(e),o=n.visualViewport,a=i.clientWidth,s=i.clientHeight,u=0,l=0;if(o){a=o.width,s=o.height;var c=d();(c||!c&&"fixed"===t)&&(u=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:u+m(e),y:l}}(e,n)):i(t)?function(e,t){var n=f(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):se(function(e){var t,n=g(e),r=p(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=s(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+m(e),l=-r.scrollTop;return"rtl"===y(i||n).direction&&(u+=s(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:l}}(g(e)))}function le(e,t,n,r){var a="clippingParents"===t?function(e){var t=x(_(e)),n=["absolute","fixed"].indexOf(y(e).position)>=0&&o(e)?E(e):e;return i(n)?t.filter((function(e){return i(e)&&ae(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),l=[].concat(a,[n]),c=l[0],d=l.reduce((function(t,n){var i=ue(e,n,r);return t.top=s(i.top,t.top),t.right=u(i.right,t.right),t.bottom=u(i.bottom,t.bottom),t.left=s(i.left,t.left),t}),ue(e,c,r));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function ce(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function de(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function fe(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,s=void 0===a?e.strategy:a,u=n.boundary,l=void 0===u?j:u,c=n.rootBoundary,d=void 0===c?N:c,p=n.elementContext,h=void 0===p?R:p,m=n.altBoundary,y=void 0!==m&&m,v=n.padding,b=void 0===v?0:v,w=ce("number"!==typeof b?b:de(b,P)),_=h===R?$:R,S=e.rects.popper,x=e.elements[y?_:h],k=le(i(x)?x:x.contextElement||g(e.elements.popper),l,d,s),C=f(e.elements.reference),E=J({reference:C,element:S,strategy:"absolute",placement:o}),I=se(Object.assign({},S,E)),M=h===R?I:C,D={top:k.top-M.top+w.top,bottom:M.bottom-k.bottom+w.bottom,left:k.left-M.left+w.left,right:M.right-k.right+w.right},L=e.modifiersData.offset;if(h===R&&L){var z=L[o];Object.keys(D).forEach((function(e){var t=[A,T].indexOf(e)>=0?1:-1,n=[O,T].indexOf(e)>=0?"y":"x";D[e]+=z[n]*t}))}return D}function pe(e,t,n){return s(e,u(t,n))}const he={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,l=void 0!==a&&a,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.padding,h=n.tether,g=void 0===h||h,m=n.tetherOffset,y=void 0===m?0:m,v=fe(t,{boundary:c,rootBoundary:d,padding:p,altBoundary:f}),b=Y(t.placement),_=K(t.placement),S=!_,x=G(b),k="x"===x?"y":"x",C=t.modifiersData.popperOffsets,M=t.rects.reference,P=t.rects.popper,L="function"===typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,j="number"===typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(C){if(o){var $,z="y"===x?O:I,U="y"===x?T:A,F="y"===x?"height":"width",q=C[x],V=q+v[z],H=q-v[U],B=g?-P[F]/2:0,W=_===D?M[F]:P[F],Q=_===D?-P[F]:-M[F],J=t.elements.arrow,Z=g&&J?w(J):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=X[z],te=X[U],ne=pe(0,M[F],Z[F]),re=S?M[F]/2-B-ne-ee-j.mainAxis:W-ne-ee-j.mainAxis,ie=S?-M[F]/2+B+ne+te+j.mainAxis:Q+ne+te+j.mainAxis,oe=t.elements.arrow&&E(t.elements.arrow),ae=oe?"y"===x?oe.clientTop||0:oe.clientLeft||0:0,se=null!=($=null==N?void 0:N[x])?$:0,ue=q+ie-se,le=pe(g?u(V,q+re-se-ae):V,q,g?s(H,ue):H);C[x]=le,R[x]=le-q}if(l){var ce,de="x"===x?O:I,he="x"===x?T:A,ge=C[k],me="y"===k?"height":"width",ye=ge+v[de],ve=ge-v[he],be=-1!==[O,I].indexOf(b),we=null!=(ce=null==N?void 0:N[k])?ce:0,_e=be?ye:ge-M[me]-P[me]-we+j.altAxis,Se=be?ge+M[me]+P[me]-we-j.altAxis:ve,xe=g&&be?function(e,t,n){var r=pe(e,t,n);return r>n?n:r}(_e,ge,Se):pe(g?_e:ye,ge,g?Se:ve);C[k]=xe,R[k]=xe-ge}t.modifiersData[r]=R}},requiresIfExists:["offset"]};const ge={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Y(n.placement),u=G(s),l=[I,A].indexOf(s)>=0?"height":"width";if(o&&a){var c=function(e,t){return ce("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:de(e,P))}(i.padding,n),d=w(o),f="y"===u?O:I,p="y"===u?T:A,h=n.rects.reference[l]+n.rects.reference[u]-a[u]-n.rects.popper[l],g=a[u]-n.rects.reference[u],m=E(o),y=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,v=h/2-g/2,b=c[f],_=y-d[l]-c[p],S=y/2-d[l]/2+v,x=pe(b,S,_),k=u;n.modifiersData[r]=((t={})[k]=x,t.centerOffset=x-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&ae(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function me(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ye(e){return[O,A,T,I].some((function(t){return e[t]>=0}))}var ve=W({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,a=void 0===o||o,s=i.resize,u=void 0===s||s,l=r(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,Q)})),u&&l.addEventListener("resize",n.update,Q),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Q)})),u&&l.removeEventListener("resize",n.update,Q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=J({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,l={placement:Y(t.placement),variation:K(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,X(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,X(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ee,te,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,g=n.allowedAutoPlacements,m=t.options.placement,y=Y(m),v=u||(y===m||!h?[re(m)]:function(e){if(Y(e)===M)return[];var t=re(e);return[oe(e),t,oe(t)]}(m)),b=[m].concat(v).reduce((function(e,n){return e.concat(Y(n)===M?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,l=void 0===u?U:u,c=K(r),d=c?s?z:z.filter((function(e){return K(e)===c})):P,f=d.filter((function(e){return l.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=fe(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[Y(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:l,flipVariations:h,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,_=t.rects.popper,S=new Map,x=!0,k=b[0],C=0;C<b.length;C++){var E=b[C],L=Y(E),j=K(E)===D,N=[O,T].indexOf(L)>=0,R=N?"width":"height",$=fe(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:f,padding:l}),F=N?j?A:I:j?T:O;w[R]>_[R]&&(F=re(F));var q=re(F),V=[];if(o&&V.push($[L]<=0),s&&V.push($[F]<=0,$[q]<=0),V.every((function(e){return e}))){k=E,x=!1;break}S.set(E,V)}if(x)for(var H=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},B=h?3:1;B>0;B--){if("break"===H(B))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},he,ge,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=fe(t,{elementContext:"reference"}),s=fe(t,{altBoundary:!0}),u=me(a,r),l=me(s,i,o),c=ye(u),d=ye(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),be='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',we="tippy-content",_e="tippy-backdrop",Se="tippy-arrow",xe="tippy-svg-arrow",ke={passive:!0,capture:!0},Ce=function(){return document.body};function Ee(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Oe(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Te(e,t){return"function"===typeof e?e.apply(void 0,t):e}function Ae(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Ie(e){return[].concat(e)}function Me(e,t){-1===e.indexOf(t)&&e.push(t)}function Pe(e){return e.split("-")[0]}function De(e){return[].slice.call(e)}function Le(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function je(){return document.createElement("div")}function Ne(e){return["Element","Fragment"].some((function(t){return Oe(e,t)}))}function Re(e){return Oe(e,"MouseEvent")}function $e(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function ze(e){return Ne(e)?[e]:function(e){return Oe(e,"NodeList")}(e)?De(e):Array.isArray(e)?e:De(document.querySelectorAll(e))}function Ue(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Fe(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function qe(e){var t,n=Ie(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Ve(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function He(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Be={isTouch:!1},We=0;function Qe(){Be.isTouch||(Be.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ye))}function Ye(){var e=performance.now();e-We<20&&(Be.isTouch=!1,document.removeEventListener("mousemove",Ye)),We=e}function Ke(){var e=document.activeElement;if($e(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var Ge=!!("undefined"!==typeof window&&"undefined"!==typeof document)&&!!window.msCrypto;var Je={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Ze=Object.assign({appendTo:Ce,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Je,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Xe=Object.keys(Ze);function et(e){var t=(e.plugins||[]).reduce((function(t,n){var r,i=n.name,o=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=Ze[i])?r:o);return t}),{});return Object.assign({},e,t)}function tt(e,t){var n=Object.assign({},t,{content:Te(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(et(Object.assign({},Ze,{plugins:t}))):Xe).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(i){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Ze.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var nt=function(){return"innerHTML"};function rt(e,t){e[nt()]=t}function it(e){var t=je();return!0===e?t.className=Se:(t.className=xe,Ne(e)?t.appendChild(e):rt(t,e)),t}function ot(e,t){Ne(t.content)?(rt(e,""),e.appendChild(t.content)):"function"!==typeof t.content&&(t.allowHTML?rt(e,t.content):e.textContent=t.content)}function at(e){var t=e.firstElementChild,n=De(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(we)})),arrow:n.find((function(e){return e.classList.contains(Se)||e.classList.contains(xe)})),backdrop:n.find((function(e){return e.classList.contains(_e)}))}}function st(e){var t=je(),n=je();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=je();function i(n,r){var i=at(t),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"===typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"===typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||ot(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(it(r.arrow))):o.appendChild(it(r.arrow)):s&&o.removeChild(s)}return r.className=we,r.setAttribute("data-state","hidden"),ot(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}st.$$tippy=!0;var ut=1,lt=[],ct=[];function dt(e,t){var n,r,i,o,a,s,u,l,c=tt(e,Object.assign({},Ze,et(Le(t)))),d=!1,f=!1,p=!1,h=!1,g=[],m=Ae(Q,c.interactiveDebounce),y=ut++,v=(l=c.plugins).filter((function(e,t){return l.indexOf(e)===t})),b={id:y,reference:e,popper:je(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){0;if(b.state.isDestroyed)return;D("onBeforeUpdate",[b,t]),B();var n=b.props,r=tt(e,Object.assign({},n,Le(t),{ignoreAttributes:!0}));b.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(N(),m=Ae(Q,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Ie(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");j(),P(),S&&S(n,r);b.popperInstance&&(J(),X().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));D("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=Be.isTouch&&!b.props.touch,i=Ee(b.props.duration,0,Ze.duration);if(e||t||n||r)return;if(T().hasAttribute("disabled"))return;if(D("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,O()&&(_.style.visibility="visible");P(),U(),b.state.isMounted||(_.style.transition="none");if(O()){var o=I();Ue([o.box,o.content],0)}s=function(){var e;if(b.state.isVisible&&!h){if(h=!0,_.offsetHeight,_.style.transition=b.props.moveTransition,O()&&b.props.animation){var t=I(),n=t.box,r=t.content;Ue([n,r],i),Fe([n,r],"visible")}L(),j(),Me(ct,b),null==(e=b.popperInstance)||e.forceUpdate(),D("onMount",[b]),b.props.animation&&O()&&function(e,t){q(e,t)}(i,(function(){b.state.isShown=!0,D("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=T();e=b.props.interactive&&t===Ce||"parent"===t?n.parentNode:Te(t,[n]);e.contains(_)||e.appendChild(_);b.state.isMounted=!0,J(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=Ee(b.props.duration,1,Ze.duration);if(e||t||n)return;if(D("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,d=!1,O()&&(_.style.visibility="hidden");if(N(),F(),P(!0),O()){var i=I(),o=i.box,a=i.content;b.props.animation&&(Ue([o,a],r),Fe([o,a],"hidden"))}L(),j(),b.props.animation?O()&&function(e,t){q(e,(function(){!b.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&t()}))}(r,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;A().addEventListener("mousemove",m),Me(lt,m),m(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Z(),X().forEach((function(e){e._tippy.unmount()})),_.parentNode&&_.parentNode.removeChild(_);ct=ct.filter((function(e){return e!==b})),b.state.isMounted=!1,D("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),B(),delete e._tippy,b.state.isDestroyed=!0,D("onDestroy",[b])}};if(!c.render)return b;var w=c.render(b),_=w.popper,S=w.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+b.id,b.popper=_,e._tippy=b,_._tippy=b;var x=v.map((function(e){return e.fn(b)})),k=e.hasAttribute("aria-expanded");return H(),j(),P(),D("onCreate",[b]),c.showOnCreate&&ee(),_.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),_.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&A().addEventListener("mousemove",m)})),b;function C(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===C()[0]}function O(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function T(){return u||e}function A(){var e=T().parentNode;return e?qe(e):document}function I(){return at(_)}function M(e){return b.state.isMounted&&!b.state.isVisible||Be.isTouch||o&&"focus"===o.type?0:Ee(b.props.delay,e?0:1,Ze.delay)}function P(e){void 0===e&&(e=!1),_.style.pointerEvents=b.props.interactive&&!e?"":"none",_.style.zIndex=""+b.props.zIndex}function D(e,t,n){var r;(void 0===n&&(n=!0),x.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=b.props)[e].apply(r,t)}function L(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=_.id;Ie(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function j(){!k&&b.props.aria.expanded&&Ie(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===T()?"true":"false"):e.removeAttribute("aria-expanded")}))}function N(){A().removeEventListener("mousemove",m),lt=lt.filter((function(e){return e!==m}))}function R(t){if(!Be.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!He(_,n)){if(Ie(b.props.triggerTarget||e).some((function(e){return He(e,n)}))){if(Be.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),f=!0,setTimeout((function(){f=!1})),b.state.isMounted||F())}}}function $(){p=!0}function z(){p=!1}function U(){var e=A();e.addEventListener("mousedown",R,!0),e.addEventListener("touchend",R,ke),e.addEventListener("touchstart",z,ke),e.addEventListener("touchmove",$,ke)}function F(){var e=A();e.removeEventListener("mousedown",R,!0),e.removeEventListener("touchend",R,ke),e.removeEventListener("touchstart",z,ke),e.removeEventListener("touchmove",$,ke)}function q(e,t){var n=I().box;function r(e){e.target===n&&(Ve(n,"remove",r),t())}if(0===e)return t();Ve(n,"remove",a),Ve(n,"add",r),a=r}function V(t,n,r){void 0===r&&(r=!1),Ie(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),g.push({node:e,eventType:t,handler:n,options:r})}))}function H(){var e;E()&&(V("touchstart",W,{passive:!0}),V("touchend",Y,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(V(e,W),e){case"mouseenter":V("mouseleave",Y);break;case"focus":V(Ge?"focusout":"blur",K);break;case"focusin":V("focusout",K)}}))}function B(){g.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),g=[]}function W(e){var t,n=!1;if(b.state.isEnabled&&!G(e)&&!f){var r="focus"===(null==(t=o)?void 0:t.type);o=e,u=e.currentTarget,j(),!b.state.isVisible&&Re(e)&&lt.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!r&&te(e)}}function Q(e){var t=e.target,n=T().contains(t)||_.contains(t);if("mousemove"!==e.type||!n){var r=X().concat(_).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,a=Pe(i.placement),s=i.modifiersData.offset;if(!s)return!0;var u="bottom"===a?s.top.y:0,l="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,d="left"===a?s.right.x:0,f=t.top-r+u>o,p=r-t.bottom-l>o,h=t.left-n+c>o,g=n-t.right-d>o;return f||p||h||g}))})(r,e)&&(N(),te(e))}}function Y(e){G(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function K(e){b.props.trigger.indexOf("focusin")<0&&e.target!==T()||b.props.interactive&&e.relatedTarget&&_.contains(e.relatedTarget)||te(e)}function G(e){return!!Be.isTouch&&E()!==e.type.indexOf("touch")>=0}function J(){Z();var t=b.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,u=O()?at(_).arrow:null,l=o?{getBoundingClientRect:o,contextElement:o.contextElement||T()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(O()){var n=I().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},c];O()&&u&&d.push({name:"arrow",options:{element:u,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=ve(l,_,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:d}))}function Z(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function X(){return De(_.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&D("onTrigger",[b,e]),U();var t=M(!0),r=C(),i=r[0],o=r[1];Be.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),D("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=M(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):i=requestAnimationFrame((function(){b.hide()}))}}else F()}}function ft(e,t){void 0===t&&(t={});var n=Ze.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Qe,ke),window.addEventListener("blur",Ke);var r=Object.assign({},t,{plugins:n}),i=ze(e).reduce((function(e,t){var n=t&&dt(t,r);return n&&e.push(n),e}),[]);return Ne(e)?i[0]:i}ft.defaultProps=Ze,ft.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Ze[t]=e[t]}))},ft.currentInput=Be;var pt=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;ct.forEach((function(e){var t=!1;if(n&&(t=$e(n)?e.reference===n:e.popper===n.popper),!t){var i=e.props.duration;e.setProps({duration:r}),e.hide(),e.state.isDestroyed||e.setProps({duration:i})}}))};Object.assign({},ee,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});var ht={clientX:0,clientY:0},gt=[];function mt(e){var t=e.clientX,n=e.clientY;ht={clientX:t,clientY:n}}var yt={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=qe(e.props.triggerTarget||t),r=!1,i=!1,o=!0,a=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function u(){n.addEventListener("mousemove",d)}function l(){n.removeEventListener("mousemove",d)}function c(){r=!0,e.setProps({getReferenceClientRect:null}),r=!1}function d(n){var r=!n.target||t.contains(n.target),i=e.props.followCursor,o=n.clientX,a=n.clientY,s=t.getBoundingClientRect(),u=o-s.left,l=a-s.top;!r&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=o,r=a;"initial"===i&&(n=e.left+u,r=e.top+l);var s="horizontal"===i?e.top:r,c="vertical"===i?e.right:n,d="horizontal"===i?e.bottom:r,f="vertical"===i?e.left:n;return{width:c-f,height:d-s,top:s,right:c,bottom:d,left:f}}})}function f(){e.props.followCursor&&(gt.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",mt)}(n))}function p(){0===(gt=gt.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",mt)}(n)}return{onCreate:f,onDestroy:p,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var o=n.followCursor;r||void 0!==o&&a.followCursor!==o&&(p(),o?(f(),!e.state.isMounted||i||s()||u()):(l(),c()))},onMount:function(){e.props.followCursor&&!i&&(o&&(d(ht),o=!1),s()||u())},onTrigger:function(e,t){Re(t)&&(ht={clientX:t.clientX,clientY:t.clientY}),i="focus"===t.type},onHidden:function(){e.props.followCursor&&(c(),l(),o=!0)}}}};ft.setDefaultProps({render:st});const vt=ft},21136:(e,t,n)=>{"use strict";var r=n(76697);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=u((function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==c&&c(t,n)?t:(o=e,a=n)}var o,a,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,c]);var p=o(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),l(p),p}},52784:(e,t,n)=>{"use strict";e.exports=n(21136)},88330:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},57058:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/getFetch.c4cca45e22bc1b2c7d0d.cjs"},92502:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/msg.sound.2c23efd582318e940e57.wav"},86982:(e,t,n)=>{"use strict";function r(e,t,...n){if("undefined"!==typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,(function(){return n[r++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}n.d(t,{V:()=>r})},45374:(e,t,n)=>{"use strict";n.d(t,{xP:()=>_});var r=n(82212),i=n(36506),o=n(97575),a=n(1989),s=n(45252),u=n(76697);function l(e,...t){return Object.assign(e,...t)}function c(e){return e.replace(e[0],e[0].toUpperCase())}var d=WeakMap?new WeakMap:void 0,f=({endpointName:e,queryArgs:t})=>{let n="";const r=d?.get(t);if("string"===typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>(t="bigint"===typeof t?{$bigint:t.toString()}:t,t=(0,a.Qd)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t)));(0,a.Qd)(t)&&d?.set(t,e),n=e}return`${e}(${n})`},p=Symbol();function h(e,t,n,r){const i=(0,u.useMemo)((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),o=(0,u.useRef)(i);return(0,u.useEffect)((()=>{o.current.serialized!==i.serialized&&(o.current=i)}),[i]),o.current.serialized===i.serialized?o.current.queryArgs:e}function g(e){const t=(0,u.useRef)(e);return(0,u.useEffect)((()=>{(0,i.bN)(t.current,e)||(t.current=e)}),[e]),(0,i.bN)(t.current,e)?t.current:e}var m=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),y=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),v=(()=>m||y?u.useLayoutEffect:u.useEffect)(),b=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:r.RE.pending}:e;var w=Symbol();var _=(0,r.l0)((0,r.m7)(),(({batch:e=i.vA,hooks:t={useDispatch:i.wA,useSelector:i.d4,useStore:i.Pj},createSelector:n=o.Mz,unstable__sideEffectsInRender:a=!1,...d}={})=>({name:w,init(o,{serializeQueryArgs:d},m){const y=o,{buildQueryHooks:w,buildMutationHook:_,usePrefetch:S}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:o,useStore:a},unstable__sideEffectsInRender:l,createSelector:c},serializeQueryArgs:d,context:m}){const y=l?e=>e():u.useEffect;return{buildQueryHooks:function(l){const _=(t,{refetchOnReconnect:i,refetchOnFocus:o,refetchOnMountOrArgChange:a,skip:c=!1,pollingInterval:d=0,skipPollingIfUnfocused:p=!1}={})=>{const{initiate:v}=e.endpoints[l],b=n(),w=(0,u.useRef)(void 0);if(!w.current){const t=b(e.internalActions.internal_getRTKQSubscriptions());w.current=t}const _=h(c?r.hT:t,f,m.endpointDefinitions[l],l),S=g({refetchOnReconnect:i,refetchOnFocus:o,pollingInterval:d,skipPollingIfUnfocused:p}),x=(0,u.useRef)(!1),k=(0,u.useRef)(void 0);let{queryCacheKey:C,requestId:E}=k.current||{},O=!1;C&&E&&(O=w.current.isRequestSubscribed(C,E));const T=!O&&x.current;return y((()=>{x.current=O})),y((()=>{T&&(k.current=void 0)}),[T]),y((()=>{const e=k.current;if(_===r.hT)return e?.unsubscribe(),void(k.current=void 0);const t=k.current?.subscriptionOptions;if(e&&e.arg===_)S!==t&&e.updateSubscriptionOptions(S);else{e?.unsubscribe();const t=b(v(_,{subscriptionOptions:S,forceRefetch:a}));k.current=t}}),[b,v,a,_,S,T]),(0,u.useEffect)((()=>()=>{k.current?.unsubscribe(),k.current=void 0}),[]),(0,u.useMemo)((()=>({refetch:()=>{if(!k.current)throw new Error((0,s.gk)(38));return k.current?.refetch()}})),[])},S=({refetchOnReconnect:r,refetchOnFocus:i,pollingInterval:o=0,skipPollingIfUnfocused:a=!1}={})=>{const{initiate:s}=e.endpoints[l],c=n(),[d,f]=(0,u.useState)(p),h=(0,u.useRef)(void 0),m=g({refetchOnReconnect:r,refetchOnFocus:i,pollingInterval:o,skipPollingIfUnfocused:a});y((()=>{const e=h.current?.subscriptionOptions;m!==e&&h.current?.updateSubscriptionOptions(m)}),[m]);const v=(0,u.useRef)(m);y((()=>{v.current=m}),[m]);const b=(0,u.useCallback)((function(e,n=!1){let r;return t((()=>{h.current?.unsubscribe(),h.current=r=c(s(e,{subscriptionOptions:v.current,forceRefetch:!n})),f(e)})),r}),[c,s]);return(0,u.useEffect)((()=>()=>{h?.current?.unsubscribe()}),[]),(0,u.useEffect)((()=>{d===p||h.current||b(d,!0)}),[d,b]),(0,u.useMemo)((()=>[b,d]),[b,d])},x=(t,{skip:n=!1,selectFromResult:s}={})=>{const{select:f}=e.endpoints[l],p=h(n?r.hT:t,d,m.endpointDefinitions[l],l),g=(0,u.useRef)(void 0),y=(0,u.useMemo)((()=>c([f(p),(e,t)=>t,e=>p],w,{memoizeOptions:{resultEqualityCheck:i.bN}})),[f,p]),b=(0,u.useMemo)((()=>s?c([y],s,{devModeChecks:{identityFunctionCheck:"never"}}):y),[y,s]),_=o((e=>b(e,g.current)),i.bN),S=a(),x=y(S.getState(),g.current);return v((()=>{g.current=x}),[x]),_};return{useQueryState:x,useQuerySubscription:_,useLazyQuerySubscription:S,useLazyQuery(e){const[t,n]=S(e),r=x(n,{...e,skip:n===p}),i=(0,u.useMemo)((()=>({lastArg:n})),[n]);return(0,u.useMemo)((()=>[t,r,i]),[t,r,i])},useQuery(e,t){const n=_(e,t),i=x(e,{selectFromResult:e===r.hT||t?.skip?void 0:b,...t}),{data:o,status:a,isLoading:s,isSuccess:l,isError:c,error:d}=i;return(0,u.useDebugValue)({data:o,status:a,isLoading:s,isSuccess:l,isError:c,error:d}),(0,u.useMemo)((()=>({...i,...n})),[i,n])}}},buildMutationHook:function(r){return({selectFromResult:a,fixedCacheKey:s}={})=>{const{select:l,initiate:d}=e.endpoints[r],f=n(),[p,h]=(0,u.useState)();(0,u.useEffect)((()=>()=>{p?.arg.fixedCacheKey||p?.reset()}),[p]);const g=(0,u.useCallback)((function(e){const t=f(d(e,{fixedCacheKey:s}));return h(t),t}),[f,d,s]),{requestId:m}=p||{},y=(0,u.useMemo)((()=>l({fixedCacheKey:s,requestId:p?.requestId})),[s,p,l]),v=(0,u.useMemo)((()=>a?c([y],a):y),[a,y]),b=o(v,i.bN),w=null==s?p?.arg.originalArgs:void 0,_=(0,u.useCallback)((()=>{t((()=>{p&&h(void 0),s&&f(e.internalActions.removeMutationResult({requestId:m,fixedCacheKey:s}))}))}),[f,s,p,m]),{endpointName:S,data:x,status:k,isLoading:C,isSuccess:E,isError:O,error:T}=b;(0,u.useDebugValue)({endpointName:S,data:x,status:k,isLoading:C,isSuccess:E,isError:O,error:T});const A=(0,u.useMemo)((()=>({...b,originalArgs:w,reset:_})),[b,w,_]);return(0,u.useMemo)((()=>[g,A]),[g,A])}},usePrefetch:function(t,r){const i=n(),o=g(r);return(0,u.useCallback)(((n,r)=>i(e.util.prefetch(t,n,{...o,...r}))),[t,i,o])}};function w(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=m.endpointDefinitions[e];d({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===d({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);const i=void 0!==r,o=e.isLoading,a=(!t||t.isLoading||t.isUninitialized)&&!i&&o,s=e.isSuccess||o&&i;return{...e,data:r,currentData:e.data,isFetching:o,isLoading:a,isSuccess:s}}}({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:a,createSelector:n},serializeQueryArgs:d,context:m});return l(y,{usePrefetch:S}),l(m,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}=w(e);l(y.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:i,useQuerySubscription:a}),o[`use${c(e)}Query`]=t,o[`useLazy${c(e)}Query`]=n}else if(function(e){return"mutation"===e.type}(t)){const t=_(e);l(y.endpoints[e],{useMutation:t}),o[`use${c(e)}Mutation`]=t}}}}}))())},82212:(e,t,n)=>{"use strict";n.d(t,{$k:()=>O,RE:()=>s,cw:()=>w,hT:()=>U,l0:()=>W,m7:()=>ie});var r=n(1989),i=n(45252),o=n(63748),a=n(97575),s=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(s||{});var u=r.Qd;function l(e,t){if(e===t||!(u(e)&&u(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let i=n.length===r.length;const o=Array.isArray(t)?[]:{};for(const a of n)o[a]=l(e[a],t[a]),i&&(i=e[a]===o[a]);return i?e:o}function c(e){let t=0;for(const n in e)t++;return t}var d=e=>[].concat(...e);function f(e){return null!=e}var p=e=>e.replace(/\/$/,""),h=e=>e.replace(/^\//,"");function g(e,t){if(!e)return t;if(!t)return e;if(function(e){return new RegExp("(^|:)//").test(e)}(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=p(e)}${n}${t=h(t)}`}var m=(...e)=>fetch(...e),y=e=>e.status>=200&&e.status<=299,v=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function b(e){if(!(0,r.Qd)(e))return e;const t={...e};for(const[n,r]of Object.entries(t))void 0===r&&delete t[n];return t}function w({baseUrl:e,prepareHeaders:t=(e=>e),fetchFn:n=m,paramsSerializer:i,isJsonContentType:o=v,jsonContentType:a="application/json",jsonReplacer:s,timeout:u,responseHandler:l,validateStatus:c,...d}={}){return"undefined"===typeof fetch&&n===m&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(p,h)=>{const{signal:m,getState:v,extra:w,endpoint:_,forced:S,type:x}=h;let k,{url:C,headers:E=new Headers(d.headers),params:O,responseHandler:T=l??"json",validateStatus:A=c??y,timeout:I=u,...M}="string"==typeof p?{url:p}:p,P={...d,signal:m,...M};E=new Headers(b(E)),P.headers=await t(E,{getState:v,extra:w,endpoint:_,forced:S,type:x})||E;const D=e=>"object"===typeof e&&((0,r.Qd)(e)||Array.isArray(e)||"function"===typeof e.toJSON);if(!P.headers.has("content-type")&&D(P.body)&&P.headers.set("content-type",a),D(P.body)&&o(P.headers)&&(P.body=JSON.stringify(P.body,s)),O){const e=~C.indexOf("?")?"&":"?";C+=e+(i?i(O):new URLSearchParams(b(O)))}C=g(e,C);const L=new Request(C,P);k={request:new Request(C,P)};let j,N=!1,R=I&&setTimeout((()=>{N=!0,h.abort()}),I);try{j=await n(L)}catch(F){return{error:{status:N?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(F)},meta:k}}finally{R&&clearTimeout(R)}const $=j.clone();let z;k.response=$;let U="";try{let e;if(await Promise.all([f(j,T).then((e=>z=e),(t=>e=t)),$.text().then((e=>U=e),(()=>{}))]),e)throw e}catch(F){return{error:{status:"PARSING_ERROR",originalStatus:j.status,data:U,error:String(F)},meta:k}}return A(j,z)?{data:z,meta:k}:{error:{status:j.status,data:z},meta:k}};async function f(e,t){if("function"===typeof t)return t(e);if("content-type"===t&&(t=o(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var _=class{constructor(e,t=void 0){this.value=e,this.meta=t}};var S=(0,i.VP)("__rtkq/focused"),x=(0,i.VP)("__rtkq/unfocused"),k=(0,i.VP)("__rtkq/online"),C=(0,i.VP)("__rtkq/offline"),E=!1;function O(e,t){return t?t(e,{onFocus:S,onFocusLost:x,onOffline:C,onOnline:k}):function(){const t=()=>e(S()),n=()=>e(k()),r=()=>e(C()),i=()=>{"visible"===window.document.visibilityState?t():e(x())};return E||"undefined"!==typeof window&&window.addEventListener&&(window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",t,!1),window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),E=!0),()=>{window.removeEventListener("focus",t),window.removeEventListener("visibilitychange",i),window.removeEventListener("online",n),window.removeEventListener("offline",r),E=!1}}()}function T(e){return"query"===e.type}function A(e,t,n,r,i,o){return"function"===typeof e?e(t,n,r,i).map(I).map(o):Array.isArray(e)?e.map(I).map(o):[]}function I(e){return"string"===typeof e?{type:e}:e}var M=Symbol("forceQueryFn"),P=e=>"function"===typeof e[M];function D(e){return e}function L(e,t,n,r){return A(n[e.meta.arg.endpointName][t],(0,i.sf)(e)?e.payload:void 0,(0,i.WA)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function j(e,t,n){const r=e[t];r&&n(r)}function N(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function R(e,t,n){const r=e[N(t)];r&&n(r)}var $={};function z({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:a,apiUid:s,extractRehydrationInfo:u,hasRehydrationInfo:c},assertTagType:d,config:f}){const p=(0,i.VP)(`${e}/resetApiState`),h=(0,i.Z0)({name:`${e}/queries`,initialState:$,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:(0,i.aA)()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){j(e,t,(e=>{e.data=(0,o.$i)(e.data,n.concat())}))},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{const r=P(n);e[n.queryCacheKey]??={status:"uninitialized",endpointName:n.endpointName},j(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=r&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{j(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!P(t.arg))return;const{merge:r}=a[t.arg.endpointName];if(e.status="fulfilled",r)if(void 0!==e.data){const{fulfilledTimeStamp:i,arg:a,baseQueryMeta:s,requestId:u}=t;let l=(0,o.jM)(e.data,(e=>r(e,n,{arg:a.originalArgs,baseQueryMeta:s,fulfilledTimeStamp:i,requestId:u})));e.data=l}else e.data=n;else e.data=a[t.arg.endpointName].structuralSharing??1?l((0,o.Qx)(e.data)?(0,o.c2)(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:i,payload:o})=>{j(e,n.queryCacheKey,(e=>{if(t);else{if(e.requestId!==r)return;e.status="rejected",e.error=o??i}}))})).addMatcher(c,((e,t)=>{const{queries:n}=u(t);for(const[r,i]of Object.entries(n))"fulfilled"!==i?.status&&"rejected"!==i?.status||(e[r]=i)}))}}),g=(0,i.Z0)({name:`${e}/mutations`,initialState:$,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=N(t);n in e&&delete e[n]},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:i}})=>{r.track&&(e[N(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:i})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&R(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&R(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(c,((e,t)=>{const{mutations:n}=u(t);for(const[r,i]of Object.entries(n))"fulfilled"!==i?.status&&"rejected"!==i?.status||r===i?.requestId||(e[r]=i)}))}}),m=(0,i.Z0)({name:`${e}/invalidation`,initialState:$,reducers:{updateProvidedBy:{reducer(e,t){const{queryCacheKey:n,providedTags:r}=t.payload;for(const i of Object.values(e))for(const e of Object.values(i)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}for(const{type:i,id:o}of r){const t=(e[i]??={})[o||"__internal_without_id"]??=[];t.includes(n)||t.push(n)}},prepare:(0,i.aA)()}},extraReducers(e){e.addCase(h.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(c,((e,t)=>{const{provided:n}=u(t);for(const[r,i]of Object.entries(n))for(const[t,n]of Object.entries(i)){const i=(e[r]??={})[t||"__internal_without_id"]??=[];for(const e of n){i.includes(e)||i.push(e)}}})).addMatcher((0,i.i0)((0,i.sf)(t),(0,i.WA)(t)),((e,t)=>{const n=L(t,"providesTags",a,d),{queryCacheKey:r}=t.meta.arg;m.caseReducers.updateProvidedBy(e,m.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))}))}}),y=(0,i.Z0)({name:`${e}/subscriptions`,initialState:$,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),v=(0,i.Z0)({name:`${e}/internalSubscriptions`,initialState:$,reducers:{subscriptionsUpdated:{reducer:(e,t)=>(0,o.$i)(e,t.payload),prepare:(0,i.aA)()}}}),b=(0,i.Z0)({name:`${e}/config`,initialState:{online:"undefined"===typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"===typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...f},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&s===t||"conflict"}},extraReducers:e=>{e.addCase(k,(e=>{e.online=!0})).addCase(C,(e=>{e.online=!1})).addCase(S,(e=>{e.focused=!0})).addCase(x,(e=>{e.focused=!1})).addMatcher(c,(e=>({...e})))}}),w=(0,r.HY)({queries:h.reducer,mutations:g.reducer,provided:m.reducer,subscriptions:v.reducer,config:b.reducer});return{reducer:(e,t)=>w(p.match(t)?void 0:e,t),actions:{...b.actions,...h.actions,...y.actions,...v.actions,...g.actions,...m.actions,resetApiState:p}}}var U=Symbol.for("RTKQ/skipToken"),F={status:"uninitialized"},q=(0,o.jM)(F,(()=>{})),V=(0,o.jM)(F,(()=>{}));var H=WeakMap?new WeakMap:void 0,B=({endpointName:e,queryArgs:t})=>{let n="";const i=H?.get(t);if("string"===typeof i)n=i;else{const e=JSON.stringify(t,((e,t)=>(t="bigint"===typeof t?{$bigint:t.toString()}:t,t=(0,r.Qd)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t)));(0,r.Qd)(t)&&H?.set(t,e),n=e}return`${e}(${n})`};function W(...e){return function(t){const n=(0,a.X4)((e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"}))),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=B;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"===typeof n?n:B({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},o={endpointDefinitions:{},batch(e){e()},apiUid:(0,i.Ak)(),extractRehydrationInfo:n,hasRehydrationInfo:(0,a.X4)((e=>null!=n(e)))},s={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in o.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error((0,i.gk)(39))}else{o.endpointDefinitions[n]=r;for(const e of u)e.injectEndpoint(n,r)}return s},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const n of e)r.tagTypes.includes(n)||r.tagTypes.push(n);if(t)for(const[n,r]of Object.entries(t))"function"===typeof r?r(o.endpointDefinitions[n]):Object.assign(o.endpointDefinitions[n]||{},r);return s}},u=e.map((e=>e.init(s,r,o)));return s.injectEndpoints({endpoints:t.endpoints})}}function Q(e,...t){return Object.assign(e,...t)}var Y=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let i=null,a=null;const{updateSubscriptionOptions:s,unsubscribeQueryResult:u}=e.internalActions,l=()=>n.currentSubscriptions,d={getSubscriptions:l,getSubscriptionCount:e=>c(l()[e]??{}),isRequestSubscribed:(e,t)=>{const n=l();return!!n?.[e]?.[t]}};return(l,c)=>{if(i||(i=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(l))return i=n.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(l))return[!1,d];const f=((n,r)=>{if(s.match(r)){const{queryCacheKey:e,requestId:t,options:i}=r.payload;return n?.[e]?.[t]&&(n[e][t]=i),!0}if(u.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,i=n[e.queryCacheKey]??={};return i[`${t}_running`]={},e.subscribe&&(i[t]=e.subscriptionOptions??i[t]??{}),!0}let i=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;i||=!!e[t],delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:o}}=r;if(e&&t.subscribe){const e=n[t.queryCacheKey]??={};e[o]=t.subscriptionOptions??e[o]??{},i=!0}}return i})(n.currentSubscriptions,l);let p=!0;if(f){a||(a=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=(0,o.vI)(i,(()=>t));c.next(e.internalActions.subscriptionsUpdated(r)),i=t,a=null}),500));const s="string"==typeof l.type&&!!l.type.startsWith(r),u=t.rejected.match(l)&&l.meta.condition&&!!l.meta.arg.subscribe;p=!s&&!u}return[p,!1]}};var K=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:o})=>{const{removeQueryResult:a,unsubscribeQueryResult:s}=t.internalActions,u=(0,i.i0)(s.match,n.fulfilled,n.rejected);function l(e){const t=o.currentSubscriptions[e];return!!t&&!function(e){for(const t in e)return!1;return!0}(t)}const c={};function d(e,t,n,i){const o=r.endpointDefinitions[t],s=o?.keepUnusedDataFor??i.keepUnusedDataFor;if(s===1/0)return;const u=Math.max(0,Math.min(s,2147482.647));if(!l(e)){const t=c[e];t&&clearTimeout(t),c[e]=setTimeout((()=>{l(e)||n.dispatch(a({queryCacheKey:e})),delete c[e]}),1e3*u)}}return(n,i,o)=>{if(u(n)){const t=i.getState()[e],{queryCacheKey:r}=s.match(n)?n.payload:n.meta.arg;d(r,t.queries[r]?.endpointName,i,t.config)}if(t.util.resetApiState.match(n))for(const[e,t]of Object.entries(c))t&&clearTimeout(t),delete c[e];if(r.hasRehydrationInfo(n)){const t=i.getState()[e],{queries:o}=r.extractRehydrationInfo(n);for(const[e,n]of Object.entries(o))d(e,n?.endpointName,i,t.config)}}},G=new Error("Promise never resolved before cacheEntryRemoved."),J=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:o,internalState:a})=>{const s=(0,i.$S)(r),u=(0,i.$S)(o),l=(0,i.sf)(r,o),c={};function d(t,r,i,o,a){const s=n.endpointDefinitions[t],u=s?.onCacheEntryAdded;if(!u)return;const l={},d=new Promise((e=>{l.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{l.valueResolved=e})),d.then((()=>{throw G}))]);f.catch((()=>{})),c[i]=l;const p=e.endpoints[t].select("query"===s.type?r:i),h=o.dispatch(((e,t,n)=>n)),g={...o,getCacheEntry:()=>p(o.getState()),requestId:a,extra:h,updateCachedData:"query"===s.type?n=>o.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},m=u(r,g);Promise.resolve(m).catch((e=>{if(e!==G)throw e}))}return(n,i,a)=>{const f=function(t){if(s(t))return t.meta.arg.queryCacheKey;if(u(t))return t.meta.arg.fixedCacheKey??t.meta.requestId;return e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?N(t.payload):""}(n);if(r.pending.match(n)){const e=a[t].queries[f],r=i.getState()[t].queries[f];!e&&r&&d(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,i,n.meta.requestId)}else if(o.pending.match(n)){i.getState()[t].mutations[f]&&d(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,i,n.meta.requestId)}else if(l(n)){const e=c[f];e?.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=c[f];e&&(delete c[f],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(c))delete c[e],t.cacheEntryRemoved()}},Z=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},X=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:o,api:a,assertTagType:s,refetchQuery:u,internalState:l})=>{const{removeQueryResult:d}=a.internalActions,f=(0,i.i0)((0,i.sf)(r),(0,i.WA)(r)),p=(0,i.i0)((0,i.sf)(r,o),(0,i.TK)(r,o));let h=[];function g(n,r){const i=r.getState(),o=i[e];if(h.push(...n),"delayed"===o.config.invalidationBehavior&&function(e){for(const t in e.queries)if("pending"===e.queries[t]?.status)return!0;for(const t in e.mutations)if("pending"===e.mutations[t]?.status)return!0;return!1}(o))return;const s=h;if(h=[],0===s.length)return;const f=a.util.selectInvalidatedBy(i,s);t.batch((()=>{const e=Array.from(f.values());for(const{queryCacheKey:t}of e){const e=o.queries[t],n=l.currentSubscriptions[t]??{};e&&(0===c(n)?r.dispatch(d({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(u(e,t)))}}))}return(e,t)=>{f(e)?g(L(e,"invalidatesTags",n,s),t):p(e)?g([],t):a.util.invalidateTags.match(e)&&g(A(e.payload,void 0,void 0,void 0,void 0,s),t)}},ee=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{const o={};function a({queryCacheKey:t},n){const s=n.getState()[e],u=s.queries[t],c=i.currentSubscriptions[t];if(!u||"uninitialized"===u.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=l(c);if(!Number.isFinite(d))return;const p=o[t];p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+d;o[t]={nextPollTimestamp:h,pollingInterval:d,timeout:setTimeout((()=>{!s.config.focused&&f||n.dispatch(r(u,t)),a({queryCacheKey:t},n)}),d)}}function s({queryCacheKey:t},n){const r=n.getState()[e].queries[t],s=i.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:c}=l(s);if(!Number.isFinite(c))return void u(t);const d=o[t],f=Date.now()+c;(!d||f<d.nextPollTimestamp)&&a({queryCacheKey:t},n)}function u(e){const t=o[e];t?.timeout&&clearTimeout(t.timeout),delete o[e]}function l(e={}){let t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,r)=>{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&s(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&s(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(o))u(e)}()}},te=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const o=(0,i.mm)(n,r),a=(0,i.TK)(n,r),s=(0,i.sf)(n,r),u={};return(n,r)=>{if(o(n)){const{requestId:i,arg:{endpointName:o,originalArgs:a}}=n.meta,s=t.endpointDefinitions[o],l=s?.onQueryStarted;if(l){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),u[i]=t;const c=e.endpoints[o].select("query"===s.type?a:i),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>c(r.getState()),requestId:i,extra:d,updateCachedData:"query"===s.type?t=>r.dispatch(e.util.updateQueryData(o,a,t)):void 0,queryFulfilled:n};l(a,f)}}else if(s(n)){const{requestId:e,baseQueryMeta:t}=n.meta;u[e]?.resolve({data:n.payload,meta:t}),delete u[e]}else if(a(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;u[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete u[e]}}};function ne(e){const{reducerPath:t,queryThunk:n,api:o,context:a}=e,{apiUid:s}=a,u={invalidateTags:(0,i.VP)(`${t}/invalidateTags`)},l=e=>e.type.startsWith(`${t}/`),d=[Z,K,X,ee,J,te];return{middleware:n=>{let i=!1;const u={...e,internalState:{currentSubscriptions:{}},refetchQuery:f,isThisApiSliceAction:l},p=d.map((e=>e(u))),h=Y(u),g=(({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{const{removeQueryResult:o}=n.internalActions;function a(n,a){const s=n.getState()[e],u=s.queries,l=i.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(l)){const t=u[e],i=l[e];i&&t&&((Object.values(i).some((e=>!0===e[a]))||Object.values(i).every((e=>void 0===e[a]))&&s.config[a])&&(0===c(i)?n.dispatch(o({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{S.match(e)&&a(t,"refetchOnFocus"),k.match(e)&&a(t,"refetchOnReconnect")}})(u);return e=>u=>{if(!(0,r.ve)(u))return e(u);i||(i=!0,n.dispatch(o.internalActions.middlewareRegistered(s)));const c={...n,next:e},d=n.getState(),[f,m]=h(u,c,d);let y;if(y=f?e(u):m,n.getState()[t]&&(g(u,c,d),l(u)||a.hasRehydrationInfo(u)))for(const e of p)e(u,c,d);return y}},actions:u};function f(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}var re=Symbol(),ie=({createSelector:e=a.Mz}={})=>({name:re,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:s,keepUnusedDataFor:u,refetchOnMountOrArgChange:l,refetchOnFocus:p,refetchOnReconnect:h,invalidationBehavior:g},m){(0,o.YT)();const y=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:k,onOffline:C,onFocus:S,onFocusLost:x},util:{}});const{queryThunk:v,mutationThunk:b,patchQueryData:w,updateQueryData:E,upsertQueryData:O,prefetch:L,buildMatchThunkActions:j}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:s}){const u=async(e,{signal:r,abort:o,rejectWithValue:a,fulfillWithValue:s,dispatch:u,getState:c,extra:d})=>{const f=n[e.endpointName];try{let n,a=D;const p={signal:r,abort:o,dispatch:u,getState:c,extra:d,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?l(e,c()):void 0},h="query"===e.type?e[M]:void 0;if(h?n=h():f.query?(n=await t(f.query(e.originalArgs),p,f.extraOptions),f.transformResponse&&(a=f.transformResponse)):n=await f.queryFn(e.originalArgs,p,f.extraOptions,(e=>t(e,p,f.extraOptions))),n.error)throw new _(n.error,n.meta);return s(await a(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[i.cN]:!0})}catch(p){let t=p;if(t instanceof _){let n=D;f.query&&f.transformErrorResponse&&(n=f.transformErrorResponse);try{return a(await n(t.value,t.meta,e.originalArgs),{baseQueryMeta:t.meta,[i.cN]:!0})}catch(h){t=h}}throw console.error(t),t}};function l(t,n){const r=n[e]?.queries?.[t.queryCacheKey],i=n[e]?.config.refetchOnMountOrArgChange,o=r?.fulfilledTimeStamp,a=t.forceRefetch??(t.subscribe&&i);return!!a&&(!0===a||(Number(new Date)-Number(o))/1e3>=a)}const c=(0,i.zD)(`${e}/executeQuery`,u,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[i.cN]:!0}),condition(t,{getState:r}){const i=r(),o=i[e]?.queries?.[t.queryCacheKey],a=o?.fulfilledTimeStamp,s=t.originalArgs,u=o?.originalArgs,c=n[t.endpointName];return!!P(t)||"pending"!==o?.status&&(!!l(t,i)||!(!T(c)||!c?.forceRefetch?.({currentArg:s,previousArg:u,endpointState:o,state:i}))||!a)},dispatchConditionRejection:!0}),d=(0,i.zD)(`${e}/executeMutation`,u,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[i.cN]:!0})});function f(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:c,mutationThunk:d,prefetch:(e,t,n)=>(r,i)=>{const o=(e=>"force"in e)(n)&&n.force,s=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,u=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},l=a.endpoints[e].select(t)(i());if(o)r(u());else if(s){const e=l?.fulfilledTimeStamp;if(!e)return void r(u());(Number(new Date)-Number(new Date(e)))/1e3>=s&&r(u())}else r(u(!1))},updateQueryData:(e,t,n,r=!0)=>(i,s)=>{const u=a.endpoints[e].select(t)(s()),l={patches:[],inversePatches:[],undo:()=>i(a.util.patchQueryData(e,t,l.inversePatches,r))};if("uninitialized"===u.status)return l;let c;if("data"in u)if((0,o.a6)(u.data)){const[e,t,r]=(0,o.vI)(u.data,n);l.patches.push(...t),l.inversePatches.push(...r),c=e}else c=n(u.data),l.patches.push({op:"replace",path:[],value:c}),l.inversePatches.push({op:"replace",path:[],value:u.data});return 0===l.patches.length||i(a.util.patchQueryData(e,t,l.patches,r)),l},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[M]:()=>({data:n})})),patchQueryData:(e,t,i,o)=>(u,l)=>{const c=n[e],d=r({queryArgs:t,endpointDefinition:c,endpointName:e});if(u(a.internalActions.queryResultPatched({queryCacheKey:d,patches:i})),!o)return;const f=a.endpoints[e].select(t)(l()),p=A(c.providesTags,f.data,void 0,t,{},s);u(a.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:(0,i.f$)((0,i.mm)(e),f(t)),matchFulfilled:(0,i.f$)((0,i.sf)(e),f(t)),matchRejected:(0,i.f$)((0,i.TK)(e),f(t))}}}}({baseQuery:n,reducerPath:a,context:m,api:t,serializeQueryArgs:s,assertTagType:y}),{reducer:R,actions:$}=z({context:m,queryThunk:v,mutationThunk:b,reducerPath:a,assertTagType:y,config:{refetchOnFocus:p,refetchOnReconnect:h,refetchOnMountOrArgChange:l,keepUnusedDataFor:u,reducerPath:a,invalidationBehavior:g}});Q(t.util,{patchQueryData:w,updateQueryData:E,upsertQueryData:O,prefetch:L,resetApiState:$.resetApiState}),Q(t.internalActions,$);const{middleware:F,actions:H}=ne({reducerPath:a,context:m,queryThunk:v,mutationThunk:b,api:t,assertTagType:y});Q(t.util,H),Q(t,{reducer:R,middleware:F});const{buildQuerySelector:B,buildMutationSelector:W,selectInvalidatedBy:Y,selectCachedArgsForQuery:K}=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>q,i=e=>V;return{buildQuerySelector:function(t,i){return s=>{const u=e({queryArgs:s,endpointDefinition:i,endpointName:t});return n(s===U?r:e=>a(e)?.queries?.[u]??q,o)}},buildMutationSelector:function(){return e=>{let t;return t="object"===typeof e?N(e)??U:e,n(t===U?i:e=>a(e)?.mutations?.[t]??V,o)}},selectInvalidatedBy:function(e,n){const r=e[t],i=new Set;for(const t of n.map(I)){const e=r.provided[t.type];if(!e)continue;let n=(void 0!==t.id?e[t.id]:d(Object.values(e)))??[];for(const t of n)i.add(t)}return d(Array.from(i.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>e?.endpointName===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function o(e){return{...e,...(t=e.status,{status:t,isUninitialized:"uninitialized"===t,isLoading:"pending"===t,isSuccess:"fulfilled"===t,isError:"rejected"===t})};var t}function a(e){return e[t]}}({serializeQueryArgs:s,reducerPath:a,createSelector:e});Q(t.util,{selectInvalidatedBy:Y,selectCachedArgsForQuery:K});const{buildInitiateQuery:G,buildInitiateMutation:J,getRunningMutationThunk:Z,getRunningMutationsThunk:X,getRunningQueriesThunk:ee,getRunningQueryThunk:te}=function({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:i}){const o=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:u,updateSubscriptionOptions:l}=r.internalActions;return{buildInitiateQuery:function(n,i){const a=(u,{subscribe:f=!0,forceRefetch:p,subscriptionOptions:h,[M]:g,...m}={})=>(y,v)=>{const b=e({queryArgs:u,endpointDefinition:i,endpointName:n}),w=t({...m,type:"query",subscribe:f,forceRefetch:p,subscriptionOptions:h,endpointName:n,originalArgs:u,queryCacheKey:b,[M]:g}),_=r.endpoints[n].select(u),S=y(w),x=_(v());d(y);const{requestId:k,abort:C}=S,E=x.requestId!==k,O=o.get(y)?.[b],T=()=>_(v()),A=Object.assign(g?S.then(T):E&&!O?Promise.resolve(x):Promise.all([O,S]).then(T),{arg:u,requestId:k,subscriptionOptions:h,queryCacheKey:b,abort:C,async unwrap(){const e=await A;if(e.isError)throw e.error;return e.data},refetch:()=>y(a(u,{subscribe:!1,forceRefetch:!0})),unsubscribe(){f&&y(s({queryCacheKey:b,requestId:k}))},updateSubscriptionOptions(e){A.subscriptionOptions=e,y(l({endpointName:n,requestId:k,queryCacheKey:b,options:e}))}});if(!O&&!E&&!g){const e=o.get(y)||{};e[b]=A,o.set(y,e),A.then((()=>{delete e[b],c(e)||o.delete(y)}))}return A};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:i}={})=>(o,s)=>{const l=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:i}),f=o(l);d(o);const{requestId:p,abort:h,unwrap:g}=f,m=(y=e=>({error:e}),f.unwrap().then((e=>({data:e}))).catch(y));var y;const v=Object.assign(m,{arg:f.arg,requestId:p,abort:h,unwrap:g,reset:()=>{o(u({requestId:p,fixedCacheKey:i}))}}),b=a.get(o)||{};return a.set(o,b),b[p]=v,v.then((()=>{delete b[p],c(b)||a.delete(o)})),i&&(b[i]=v,v.then((()=>{b[i]===v&&(delete b[i],c(b)||a.delete(o))}))),v}},getRunningQueryThunk:function(t,n){return r=>{const a=i.endpointDefinitions[t],s=e({queryArgs:n,endpointDefinition:a,endpointName:t});return o.get(r)?.[s]}},getRunningMutationThunk:function(e,t){return e=>a.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(o.get(e)||{}).filter(f)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(f)}};function d(e){}}({queryThunk:v,mutationThunk:b,api:t,serializeQueryArgs:s,context:m});return Q(t.util,{getRunningMutationThunk:Z,getRunningMutationsThunk:X,getRunningQueryThunk:te,getRunningQueriesThunk:ee}),{name:re,injectEndpoint(e,n){const r=t;r.endpoints[e]??={},T(n)?Q(r.endpoints[e],{name:e,select:B(e,n),initiate:G(e,n)},j(v,e)):"mutation"===n.type&&Q(r.endpoints[e],{name:e,select:W(),initiate:J(e)},j(b,e))}}}});ie()},45252:(e,t,n)=>{"use strict";n.d(t,{$S:()=>I,Ak:()=>M,Nc:()=>we,TK:()=>O,U1:()=>b,VP:()=>u,WA:()=>T,Z0:()=>q,aA:()=>g,cN:()=>h,f$:()=>x,gk:()=>_e,i0:()=>S,mm:()=>E,sf:()=>A,zD:()=>N});var r=n(1989),i=n(11813),o=n(63748),a="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?r.Zz:r.Zz.apply(null,arguments)},s=("undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"===typeof e.match);function u(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(_e(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>(0,r.ve)(t)&&t.type===e,n}function l(e,t){for(const n of e)if(t(n))return n}var c=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function d(e){return(0,o.a6)(e)?(0,o.jM)(e,(()=>{})):e}function f(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(_e(10));const r=n.insert(t,e);return e.set(t,r),r}var p=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let a=new c;return t&&("boolean"===typeof t?a.push(i.P):a.push((0,i.Y)(t.extraArgument))),a},h="RTK_autoBatch",g=()=>e=>({payload:e,meta:{[h]:!0}}),m=e=>t=>{setTimeout(t,e)},y="undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:m(10),v=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new c(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,u="tick"===e.type?queueMicrotask:"raf"===e.type?y:"callback"===e.type?e.queueNotification:m(e.timeout),l=()=>{a=!1,o&&(o=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>i&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[h],o=!i,o&&(a||(a=!0,u(l))),r.dispatch(e)}finally{i=!0}}})})("object"===typeof n?n:void 0)),r};function b(e){const t=p(),{reducer:n,middleware:i,devTools:o=!0,preloadedState:s,enhancers:u}=e||{};let l,c;if("function"===typeof n)l=n;else{if(!(0,r.Qd)(n))throw new Error(_e(1));l=(0,r.HY)(n)}c="function"===typeof i?i(t):t();let d=r.Zz;o&&(d=a({trace:!1,..."object"===typeof o&&o}));const f=(0,r.Tw)(...c),h=v(f);const g=d(..."function"===typeof u?u(h):h());return(0,r.y$)(l,s,g)}function w(e){const t={},n=[];let r;const i={addCase(e,n){const r="string"===typeof e?e:e.type;if(!r)throw new Error(_e(28));if(r in t)throw new Error(_e(29));return t[r]=n,i},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(r=e,i)};return e(i),[t,n,r]}var _=(e,t)=>s(e)?e.match(t):e(t);function S(...e){return t=>e.some((e=>_(e,t)))}function x(...e){return t=>e.every((e=>_(e,t)))}function k(e,t){if(!e||!e.meta)return!1;const n="string"===typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function C(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function E(...e){return 0===e.length?e=>k(e,["pending"]):C(e)?S(...e.map((e=>e.pending))):E()(e[0])}function O(...e){return 0===e.length?e=>k(e,["rejected"]):C(e)?S(...e.map((e=>e.rejected))):O()(e[0])}function T(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||C(e)?x(O(...e),t):T()(e[0])}function A(...e){return 0===e.length?e=>k(e,["fulfilled"]):C(e)?S(...e.map((e=>e.fulfilled))):A()(e[0])}function I(...e){return 0===e.length?e=>k(e,["pending","fulfilled","rejected"]):C(e)?S(...e.flatMap((e=>[e.pending,e.rejected,e.fulfilled]))):I()(e[0])}var M=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},P=["name","message","stack","code"],D=class{constructor(e,t){this.payload=e,this.meta=t}_type},L=class{constructor(e,t){this.payload=e,this.meta=t}_type},j=e=>{if("object"===typeof e&&null!==e){const t={};for(const n of P)"string"===typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},N=(()=>{function e(e,t,n){const r=u(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),i=u(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),o=u(e+"/rejected",((e,t,r,i,o)=>({payload:i,error:(n&&n.serializeError||j)(e||"Rejected"),meta:{...o||{},arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}})));return Object.assign((function(e){return(a,s,u)=>{const l=n?.idGenerator?n.idGenerator(e):M(),c=new AbortController;let d,f;function p(e){f=e,c.abort()}const h=async function(){let h;try{let o=n?.condition?.(e,{getState:s,extra:u});if(null!==(g=o)&&"object"===typeof g&&"function"===typeof g.then&&(o=await o),!1===o||c.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const m=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},c.signal.addEventListener("abort",d)}));a(i(l,e,n?.getPendingMeta?.({requestId:l,arg:e},{getState:s,extra:u}))),h=await Promise.race([m,Promise.resolve(t(e,{dispatch:a,getState:s,extra:u,requestId:l,signal:c.signal,abort:p,rejectWithValue:(e,t)=>new D(e,t),fulfillWithValue:(e,t)=>new L(e,t)})).then((t=>{if(t instanceof D)throw t;return t instanceof L?r(t.payload,l,e,t.meta):r(t,l,e)}))])}catch(m){h=m instanceof D?o(null,l,e,m.payload,m.meta):o(m,l,e)}finally{d&&c.signal.removeEventListener("abort",d)}var g;return n&&!n.dispatchConditionRejection&&o.match(h)&&h.meta.condition||a(h),h}();return Object.assign(h,{abort:p,requestId:l,arg:e,unwrap:()=>h.then(R)})}}),{pending:i,rejected:o,fulfilled:r,settled:S(o,r),typePrefix:e})}return e.withTypes=()=>e,e})();function R(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var $=Symbol.for("rtk-slice-createasyncthunk");function z(e,t){return`${e}/${t}`}function U({creators:e}={}){const t=e?.asyncThunk?.[$];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(_e(11));const i=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(i),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(_e(12));if(n in s.sliceCaseReducersByType)throw new Error(_e(13));return s.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(s.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(s.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(s.sliceCaseReducersByName[e]=t,l)};function c(){const[t={},n=[],r]="function"===typeof e.extraReducers?w(e.extraReducers):[e.extraReducers],i={...t,...s.sliceCaseReducersByType};return function(e,t){let n,[r,i,a]=w(t);if("function"===typeof e)n=()=>d(e());else{const t=d(e);n=()=>t}function s(e=n(),t){let s=[r[t.type],...i.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===s.filter((e=>!!e)).length&&(s=[a]),s.reduce(((e,n)=>{if(n){if((0,o.Qx)(e)){const r=n(e,t);return void 0===r?e:r}if((0,o.a6)(e))return(0,o.jM)(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(_e(9))}return r}}return e}),e)}return s.getInitialState=n,s}(e.initialState,(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of s.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}a.forEach((r=>{const o=i[r],a={reducerName:r,type:z(n,r),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(_e(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?u(e,a):u(e))}(a,o,l):function({type:e,reducerName:t},n,r,i){if(!i)throw new Error(_e(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:u,settled:l,options:c}=n,d=i(e,o,c);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);s&&r.addCase(d.pending,s);u&&r.addCase(d.rejected,u);l&&r.addMatcher(d.settled,l);r.exposeCaseReducer(t,{fulfilled:a||V,pending:s||V,rejected:u||V,settled:l||V})}(a,o,l,t)}));const p=e=>e,h=new Map;let g;function m(e,t){return g||(g=c()),g(e,t)}function y(){return g||(g=c()),g.getInitialState()}function v(t,n=!1){function r(e){let r=e[t];return"undefined"===typeof r&&n&&(r=y()),r}function i(t=p){const r=f(h,n,{insert:()=>new WeakMap});return f(r,t,{insert:()=>{const r={};for(const[i,o]of Object.entries(e.selectors??{}))r[i]=F(o,t,y,n);return r}})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}const b={name:n,reducer:m,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:y,...v(r),injectInto(e,{reducerPath:t,...n}={}){const i=t??r;return e.inject({reducerPath:i,reducer:m},n),{...b,...v(i,!0)}}};return b}}function F(e,t,n,r){function i(i,...o){let a=t(i);return"undefined"===typeof a&&r&&(a=n()),e(a,...o)}return i.unwrapped=e,i}var q=U();function V(){}var H="listener",B="completed",W="cancelled",Q=`task-${W}`,Y=`task-${B}`,K=`${H}-${W}`,G=`${H}-${B}`,J=class{constructor(e){this.code=e,this.message=`task ${W} (reason: ${e})`}name="TaskAbortError";message},Z=(e,t)=>{if("function"!==typeof e)throw new Error(_e(32))},X=()=>{},ee=(e,t=X)=>(e.catch(t),e),te=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),ne=(e,t)=>{const n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},re=e=>{if(e.aborted){const{reason:t}=e;throw new J(t)}};function ie(e,t){let n=X;return new Promise(((r,i)=>{const o=()=>i(new J(e.reason));e.aborted?o():(n=te(e,o),t.finally((()=>n())).then(r,i))})).finally((()=>{n=X}))}var oe=e=>t=>ee(ie(e,t).then((t=>(re(e),t)))),ae=e=>{const t=oe(e);return e=>t(new Promise((t=>setTimeout(t,e))))},{assign:se}=Object,ue={},le="listenerMiddleware",ce=(e,t)=>(n,r)=>{Z(n);const i=new AbortController;var o;o=i,te(e,(()=>ne(o,e.reason)));const a=(async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof J?"cancelled":"rejected",error:n}}finally{t?.()}})((async()=>{re(e),re(i.signal);const t=await n({pause:oe(i.signal),delay:ae(i.signal),signal:i.signal});return re(i.signal),t}),(()=>ne(i,Y)));return r?.autoJoin&&t.push(a.catch(X)),{result:oe(e)(a),cancel(){ne(i,Q)}}},de=(e,t)=>(n,r)=>ee((async(n,r)=>{re(t);let i=()=>{};const o=[new Promise(((t,r)=>{let o=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{o(),r()}}))];null!=r&&o.push(new Promise((e=>setTimeout(e,r,null))));try{const e=await ie(t,Promise.race(o));return re(t),e}finally{i()}})(n,r)),fe=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=u(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(_e(21));return Z(o),{predicate:i,type:t,effect:o}},pe=se((e=>{const{type:t,predicate:n,effect:r}=fe(e);return{id:M(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(_e(22))}}}),{withTypes:()=>pe}),he=e=>{e.pending.forEach((e=>{ne(e,K)}))},ge=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout((()=>{throw r}),0)}},me=se(u(`${le}/add`),{withTypes:()=>me}),ye=u(`${le}/removeAll`),ve=se(u(`${le}/remove`),{withTypes:()=>ve}),be=(...e)=>{console.error(`${le}/error`,...e)},we=(e={})=>{const t=new Map,{extra:n,onError:i=be}=e;Z(i);const o=e=>{let n=l(Array.from(t.values()),(t=>t.effect===e.effect));return n||(n=pe(e)),(e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&he(e)}))(n)};se(o,{withTypes:()=>o});const a=e=>{const{type:n,effect:r,predicate:i}=fe(e),o=l(Array.from(t.values()),(e=>("string"===typeof n?e.type===n:e.predicate===i)&&e.effect===r));return o&&(o.unsubscribe(),e.cancelActive&&he(o)),!!o};se(a,{withTypes:()=>a});const s=async(e,r,a,s)=>{const u=new AbortController,l=de(o,u.signal),c=[];try{e.pending.add(u),await Promise.resolve(e.effect(r,se({},a,{getOriginalState:s,condition:(e,t)=>l(e,t).then(Boolean),take:l,delay:ae(u.signal),pause:oe(u.signal),extra:n,signal:u.signal,fork:ce(u.signal,c),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach(((e,t,n)=>{e!==u&&(ne(e,K),n.delete(e))}))},cancel:()=>{ne(u,K),e.pending.delete(u)},throwIfCancelled:()=>{re(u.signal)}})))}catch(d){d instanceof J||ge(i,d,{raisedBy:"effect"})}finally{await Promise.all(c),ne(u,G),e.pending.delete(u)}},u=(e=>()=>{e.forEach(he),e.clear()})(t);return{middleware:e=>n=>l=>{if(!(0,r.ve)(l))return n(l);if(me.match(l))return o(l.payload);if(ye.match(l))return void u();if(ve.match(l))return a(l.payload);let c=e.getState();const d=()=>{if(c===ue)throw new Error(_e(23));return c};let f;try{if(f=n(l),t.size>0){const n=e.getState(),r=Array.from(t.values());for(const t of r){let r=!1;try{r=t.predicate(l,n,c)}catch(p){r=!1,ge(i,p,{raisedBy:"predicate"})}r&&s(t,l,e,d)}}}finally{c=ue}return f},startListening:o,stopListening:a,clearListeners:u}};Symbol.for("rtk-state-proxy-original");function _e(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},78991:(e,t,n)=>{"use strict";n.d(t,{Bu:()=>o,Nt:()=>i,O9:()=>s,sY:()=>r,z:()=>a});var r="undefined"!==typeof navigator&&/Mac OS X/.test(navigator.userAgent),i=e=>e.replaceAll(/[#$()*+,.?[\\\]^s{|}-]/g,"\\$&"),o=(e,...t)=>()=>{null==e||e(...t)},a=e=>(e=>void 0===e)(e)||(e=>null===e)(e),s=e=>!a(e)},40709:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(76697),i=n(32850),o=n(86509),a="Ring-module_container__1mCd7";function s(e){let{size:t=40,color:n="black",lineWeight:o=5,speed:s=2}=e;return(0,i.A)("Ring","size",t,"number"),(0,i.A)("Ring","color",n,"string"),(0,i.A)("Ring","lineWeight",o,"number"),(0,i.A)("Ring","speed",s,"number"),r.createElement("svg",{height:t,width:t,className:a,viewBox:"25 25 50 50",style:{"--uib-size":t+"px","--uib-color":n,"--uib-speed":s+"s"}},r.createElement("circle",{cx:"50",cy:"50",r:"20",strokeWidth:o,fill:"none"}))}(0,o.s)(".Ring-module_container__1mCd7{animation:Ring-module_rotate__RBwLl var(--uib-speed) linear infinite;height:var(--uib-size);transform-origin:center;vertical-align:middle;width:var(--uib-size);will-change:transform}.Ring-module_container__1mCd7 circle{fill:none;stroke:var(--uib-color);stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:Ring-module_stretch__L-1Qd calc(var(--uib-speed)*.75) ease-in-out infinite;will-change:stroke-dasharray,stroke-dashoffset}@keyframes Ring-module_rotate__RBwLl{to{transform:rotate(1turn)}}@keyframes Ring-module_stretch__L-1Qd{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,200;stroke-dashoffset:-35px}to{stroke-dashoffset:-124px}}")},32850:(e,t,n)=>{"use strict";function r(e,t,n,r){if(typeof n!==r)throw new TypeError(`Invalid prop '${t}' of type '${typeof n}' supplied to '${e}', expected '${r}'.`)}n.d(t,{A:()=>r})},86509:(e,t,n)=>{"use strict";function r(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}n.d(t,{s:()=>r})},49555:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function i(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}n.d(t,{$:()=>i,A:()=>o});const o=i},33392:(e,t,n)=>{"use strict";n.d(t,{AH:()=>p,I4:()=>b,i7:()=>y,mj:()=>v});let r={data:""},i=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||r,o=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a=/\/\*[^]*?\*\/|  +/g,s=/\n+/g,u=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?u(a,o):o+"{"+u(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=u(a,t?t.replace(/([^,])+/g,(e=>o.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):o):null!=a&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=u.p?u.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},l={},c=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+c(e[n]);return t}return e},d=(e,t,n,r,i)=>{let d=c(e),f=l[d]||(l[d]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(d));if(!l[f]){let t=d!==e?e:(e=>{let t,n,r=[{}];for(;t=o.exec(e.replace(a,""));)t[4]?r.shift():t[3]?(n=t[3].replace(s," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(s," ").trim();return r[0]})(e);l[f]=u(i?{["@keyframes "+f]:t}:t,n?"":"."+f)}let p=n&&l.g?l.g:null;return n&&(l.g=l[f]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(l[f],t,r,p),f},f=(e,t,n)=>e.reduce(((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":u(e,""):!1===e?"":e}return e+r+(null==o?"":o)}),"");function p(e){let t=this||{},n=e.call?e(t.p):e;return d(n.unshift?n.raw?f(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,i(t.target),t.g,t.o,t.k)}p.bind({g:1});let h,g,m,y=p.bind({k:1});function v(e,t,n,r){u.p=t,h=e,g=n,m=r}function b(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),u=s.className||i.className;n.p=Object.assign({theme:g&&g()},s),n.o=/ *go\d+/.test(u),s.className=p.apply(n,r)+(u?" "+u:""),t&&(s.ref=a);let l=e;return e[0]&&(l=s.as||e,delete s.as),m&&l[0]&&m(s),h(l,s)}return t?t(i):i}}},79059:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});const{slice:r,forEach:i}=[];const o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,a={create(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*n*1e3)),r&&(i.domain=r),document.cookie=((e,t,n)=>{const r=n||{};r.path=r.path||"/";let i=`${e}=${encodeURIComponent(t)}`;if(r.maxAge>0){const e=r.maxAge-0;if(Number.isNaN(e))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(e)}`}if(r.domain){if(!o.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!o.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if("function"!==typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch("string"===typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i})(e,encodeURIComponent(t),i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let e=n[r];for(;" "===e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(t))return e.substring(t.length,e.length)}return null},remove(e){this.create(e,"",-1)}};var s={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&"undefined"!==typeof document)return a.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:o}=t;n&&"undefined"!==typeof document&&a.create(n,e,r,i,o)}},u={name:"querystring",lookup(e){let t,{lookupQuerystring:n}=e;if("undefined"!==typeof window){let{search:e}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));const r=e.substring(1).split("&");for(let i=0;i<r.length;i++){const e=r[i].indexOf("=");if(e>0){r[i].substring(0,e)===n&&(t=r[i].substring(e+1))}}}return t}};let l=null;const c=()=>{if(null!==l)return l;try{l="undefined"!==window&&null!==window.localStorage;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){l=!1}return l};var d={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&c())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&c()&&window.localStorage.setItem(n,e)}};let f=null;const p=()=>{if(null!==f)return f;try{f="undefined"!==window&&null!==window.sessionStorage;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){f=!1}return f};var h={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&p())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&p()&&window.sessionStorage.setItem(n,e)}},g={name:"navigator",lookup(e){const t=[];if("undefined"!==typeof navigator){const{languages:e,userLanguage:n,language:r}=navigator;if(e)for(let i=0;i<e.length;i++)t.push(e[i]);n&&t.push(n),r&&t.push(r)}return t.length>0?t:void 0}},m={name:"htmlTag",lookup(e){let t,{htmlTag:n}=e;const r=n||("undefined"!==typeof document?document.documentElement:null);return r&&"function"===typeof r.getAttribute&&(t=r.getAttribute("lang")),t}},y={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("undefined"===typeof window)return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(n))return;const r="number"===typeof t?t:0;return n[r]?.replace("/","")}},v={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n="number"===typeof t?t+1:1,r="undefined"!==typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};class b{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return i.call(r.call(arguments,1),(t=>{if(t)for(const n in t)void 0===e[n]&&(e[n]=t[n])})),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),"string"===typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(s),this.addDetector(u),this.addDetector(d),this.addDetector(h),this.addDetector(g),this.addDetector(m),this.addDetector(y),this.addDetector(v)}addDetector(e){return this.detectors[e.name]=e,this}detect(e){e||(e=this.options.order);let t=[];return e.forEach((e=>{if(this.detectors[e]){let n=this.detectors[e].lookup(this.options);n&&"string"===typeof n&&(n=[n]),n&&(t=t.concat(n))}})),t=t.map((e=>this.options.convertDetectedLanguage(e))),this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e,t){t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)})))}}b.type="languageDetector"},22108:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(75701),i=n(21649);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var d=function(){return e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)},t=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.services=e,this.options=s(s(s({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return l({},t,n||"")},parseLoadPayload:function(e,t){},request:i.A,reloadInterval:"undefined"===typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),n),this.allOptions=r,this.services&&this.options.reloadInterval){var a=setInterval((function(){return t.reload()}),this.options.reloadInterval);"object"===o(a)&&"function"===typeof a.unref&&a.unref()}}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,i,o){var a=this,s=this.options.loadPath;"function"===typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(0,r.uW)(s)).then((function(r){if(!r)return o(null,{});var s=a.services.interpolator.interpolate(r,{lng:e.join("+"),ns:n.join("+")});a.loadUrl(s,o,t,i)}))}},{key:"loadUrl",value:function(t,n,r,i){var o=this,a="string"===typeof r?[r]:r,s="string"===typeof i?[i]:i,u=this.options.parseLoadPayload(a,s);this.options.request(this.options,t,u,(function(a,s){if(s&&(s.status>=500&&s.status<600||!s.status))return n("failed loading "+t+"; status code: "+s.status,!0);if(s&&s.status>=400&&s.status<500)return n("failed loading "+t+"; status code: "+s.status,!1);if(!s&&a&&a.message&&a.message.toLowerCase().indexOf("failed")>-1&&(a.message.indexOf("fetch")>-1||a.message.toLowerCase().indexOf("network")>-1))return n("failed loading "+t+": "+a.message,!0);if(a)return n(a,!1);var u,l;try{u="string"===typeof s.data?o.options.parse(s.data,r,i):s.data}catch(e){l="failed parsing "+t+" to json"}if(l)return n(l,!1);n(null,u)}))}},{key:"create",value:function(e,t,n,r,i){var o=this;if(this.options.addPath){"string"===typeof e&&(e=[e]);var a=this.options.parsePayload(t,n,r),s=0,u=[],l=[];e.forEach((function(n){var r=o.options.addPath;"function"===typeof o.options.addPath&&(r=o.options.addPath(n,t));var c=o.services.interpolator.interpolate(r,{lng:n,ns:t});o.options.request(o.options,c,a,(function(t,n){s+=1,u.push(t),l.push(n),s===e.length&&"function"===typeof i&&i(u,l)}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,i=t.logger,o=n.language;if(!o||"cimode"!==o.toLowerCase()){var a=[],s=function(e){r.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};s(o),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return s(e)})),a.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,o){r&&i.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&o&&i.log("loaded namespace ".concat(e," for language ").concat(t),o),n.loaded("".concat(t,"|").concat(e),r,o)}))}))}))}}}],t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();d.type="backend";const f=d},21649:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>m});var i,o,a,s=n(75701),u=n(57058);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}"function"===typeof fetch&&(i="undefined"!==typeof global&&global.fetch?global.fetch:"undefined"!==typeof window&&window.fetch?window.fetch:fetch),(0,s.rN)()&&("undefined"!==typeof global&&global.XMLHttpRequest?o=global.XMLHttpRequest:"undefined"!==typeof window&&window.XMLHttpRequest&&(o=window.XMLHttpRequest)),"function"===typeof ActiveXObject&&("undefined"!==typeof global&&global.ActiveXObject?a=global.ActiveXObject:"undefined"!==typeof window&&window.ActiveXObject&&(a=window.ActiveXObject)),i||!r&&!(r=n.t(u))||o||a||(i=u||r||(r=n.t(u))),"function"!==typeof i&&(i=void 0);var p=function(e,t){if(t&&"object"===f(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},h=function(e,t,n,r){var o=function(e){if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then((function(t){n(null,{status:e.status,data:t})})).catch(n)};if(r){var a=r(e,t);if(a instanceof Promise)return void a.then(o).catch(n)}"function"===typeof fetch?fetch(e,t).then(o).catch(n):i(e,t).then(o).catch(n)},g=!1;const m=function(e,t,n,r){return"function"===typeof n&&(r=n,n=void 0),r=r||function(){},i&&0!==t.indexOf("file:")?function(e,t,n,r){e.queryStringParams&&(t=p(t,e.queryStringParams));var i=c({},"function"===typeof e.customHeaders?e.customHeaders():e.customHeaders);"undefined"===typeof window&&"undefined"!==typeof global&&"undefined"!==typeof global.process&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(i["Content-Type"]="application/json");var o="function"===typeof e.requestOptions?e.requestOptions(n):e.requestOptions,a=c({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:i},g?{}:o),s="function"===typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{h(t,a,r,s)}catch(u){if(!o||0===Object.keys(o).length||!u.message||u.message.indexOf("not implemented")<0)return r(u);try{Object.keys(o).forEach((function(e){delete a[e]})),h(t,a,r,s),g=!0}catch(l){r(l)}}}(e,t,n,r):(0,s.rN)()||"function"===typeof ActiveXObject?function(e,t,n,r){n&&"object"===f(n)&&(n=p("",n).slice(1)),e.queryStringParams&&(t=p(t,e.queryStringParams));try{var i;(i=o?new o:new a("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!e.withCredentials,n&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var s=e.customHeaders;if(s="function"===typeof s?s():s)for(var u in s)i.setRequestHeader(u,s[u]);i.onreadystatechange=function(){i.readyState>3&&r(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(n)}catch(l){console}}(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))}},75701:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{rN:()=>i,uW:()=>o});function i(){return"function"===typeof XMLHttpRequest||"object"===("undefined"===typeof XMLHttpRequest?"undefined":r(XMLHttpRequest))}function o(e){return function(e){return!!e&&"function"===typeof e.then}(e)?e:Promise.resolve(e)}},69989:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>B,t:()=>W});const r={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class i{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||r,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"===typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new i(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new i(this.logger,e)}}var o=new i;class a{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach((e=>{let[t,r]=e;for(let i=0;i<r;i++)t(...n)}))}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach((t=>{let[r,i]=t;for(let o=0;o<i;o++)r.apply(r,[e,...n])}))}}}const s=()=>{let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n},u=e=>null==e?"":""+e,l=/###/g,c=e=>e&&e.indexOf("###")>-1?e.replace(l,"."):e,d=e=>!e||"string"===typeof e,f=(e,t,n)=>{const r="string"!==typeof t?t:t.split(".");let i=0;for(;i<r.length-1;){if(d(e))return{};const t=c(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return d(e)?{}:{obj:e,k:c(r[i])}},p=(e,t,n)=>{const{obj:r,k:i}=f(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],a=t.slice(0,t.length-1),s=f(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=f(e,a,Object),s&&s.obj&&"undefined"!==typeof s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},h=(e,t)=>{const{obj:n,k:r}=f(e,t);if(n)return n[r]},g=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"===typeof e[r]||e[r]instanceof String||"string"===typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):g(e[r],t[r],n):e[r]=t[r]);return e},m=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const v=e=>"string"===typeof e?e.replace(/[&<>"'\/]/g,(e=>y[e])):e;const b=[" ",",","?","!",";"],w=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),_=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o<r.length;){if(!i||"object"!==typeof i)return;let e,t="";for(let a=o;a<r.length;++a)if(a!==o&&(t+=n),t+=r[a],e=i[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&a<r.length-1)continue;o+=a-o+1;break}i=e}return i},S=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class x extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):"string"===typeof n&&i?a.push(...n.split(i)):a.push(n)));const s=h(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),s||!o||"string"!==typeof n?s:_(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),p(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)("string"===typeof n[i]||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=h(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?g(s,n,i):s={...s,...n},p(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var k={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))})),t}};const C={};class E extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,n)=>{e.forEach((e=>{t[e]&&(n[e]=t[e])}))})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=o.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===e||null===e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";const r=b.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=w.getRegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,n,r);if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"===typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,n){if("object"!==typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===typeof t&&(t={...t}),t||(t={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],u=t.lng||this.language,l=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(l){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:o}const c=this.resolve(e,t);let d=c&&c.res;const f=c&&c.usedKey||o,p=c&&c.exactUsedKey||o,h=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&d&&("string"!==typeof d&&"boolean"!==typeof d&&"number"!==typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!==typeof g||!Array.isArray(d))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(i){const e=Array.isArray(d),n=e?[]:{},r=e?p:f;for(const o in d)if(Object.prototype.hasOwnProperty.call(d,o)){const e=`${r}${i}${o}`;n[o]=this.translate(e,{...t,joinArrays:!1,ns:a}),n[o]===e&&(n[o]=d[o])}d=n}}else if(m&&"string"===typeof g&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const l=void 0!==t.count&&"string"!==typeof t.count,f=E.hasDefaultValue(t),p=l?this.pluralResolver.getSuffix(u,t.count,t):"",h=t.ordinal&&l?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",g=l&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=m),this.isValidLookup(d)||(a=!0,d=o);const y=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,v=f&&m!==d&&this.options.updateMissing;if(a||r||v){if(this.logger.log(v?"updateKey":"missingKey",u,s,o,v?m:d),i){const e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const i=f&&r!==d?r:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,v,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,v,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&l?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{r([e],o+n,t[`defaultValue${n}`]||m)}))})):r(e,o,m))}d=this.extendTranslation(d,e,t,c,n),a&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(c.res=d,c.usedParams=this.getUsedParamsDetails(t),c):d}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a="string"===typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let u=n.replace&&"string"!==typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,n.lng||this.language||r.usedLng,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):o.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,s="string"===typeof a?[a]:a;return void 0!==e&&null!==e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=k.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),u=s.key;n=u;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const c=void 0!==a.count&&"string"!==typeof a.count,d=c&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&("string"===typeof a.context||"number"===typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);l.forEach((e=>{this.isValidLookup(t)||(o=e,!C[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(C[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((n=>{if(this.isValidLookup(t))return;i=n;const o=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,u,n,e,a);else{let e;c&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(o.push(u+e),a.ordinal&&0===e.indexOf(r)&&o.push(u+e.replace(r,this.options.pluralSeparator)),d&&o.push(u+t)),f){const n=`${u}${this.options.contextSeparator}${a.context}`;o.push(n),c&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),d&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!==typeof e.replace;let r=n?e.replace:e;if(n&&"undefined"!==typeof e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}const O=e=>e.charAt(0).toUpperCase()+e.slice(1);class T{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=o.create("languageUtils")}getScriptPartFromCode(e){if(!(e=S(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=S(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"===typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=O(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=O(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=O(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),"string"===typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"===typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"===typeof e&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}let A=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],I={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const M=["v1","v2","v3"],P=["v4"],D={zero:0,one:1,two:2,few:3,many:4,other:5};class L{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=o.create("pluralResolver"),this.options.compatibilityJSON&&!P.includes(this.options.compatibilityJSON)||"undefined"!==typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return A.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:I[t.fc]}}))})),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{const n=S("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];const o=new Intl.PluralRules(n,{type:r});return this.pluralRulesCache[i]=o,o}catch(n){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>D[e]-D[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"===typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!M.includes(this.options.compatibilityJSON)}}const j=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=((e,t,n)=>{const r=h(e,n);return void 0!==r?r:h(t,n)})(e,t,n);return!o&&i&&"string"===typeof n&&(o=_(e,n,r),void 0===o&&(o=_(t,n,r))),o},N=e=>e.replace(/\$/g,"$$$$");class R{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:u,unescapeSuffix:l,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:v,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?m(i):o||"{{",this.suffix=a?m(a):s||"}}",this.formatSeparator=u||",",this.unescapePrefix=l?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=d?m(d):f||m("$t("),this.nestingSuffix=p?m(p):h||m(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const i=j(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(j(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>N(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?N(this.escape(e)):N(e)}].forEach((t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=l(n),void 0===o)if("function"===typeof c){const t=c(e,i,r);o="string"===typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(d){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else"string"===typeof o||this.useRawValueToEscape||(o=u(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),d?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(a&&a.length%2===0&&!s||s.length%2!==0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(u){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,u),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let s=[];i={...o},i=i.replace&&"string"!==typeof i.replace?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),s=e,l=!0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&"string"!==typeof r)return r;"string"!==typeof r&&(r=u(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),l&&(r=s.reduce(((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}const $=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(S(r),i),t[a]=s),s(n)}};class z{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o.create("formatter"),this.options=e,this.formats={number:$(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:$(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:$(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:$(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:$(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=$(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find((e=>e.indexOf(")")>-1))){const e=i.findIndex((e=>e.indexOf(")")>-1));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce(((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(a){this.logger.warn(a)}return t}return this.logger.warn(`there was no format function for ${i}`),e}),e)}}class U extends a{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=o.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach((n=>{((e,t,n,r)=>{const{obj:i,k:o}=f(e,t,Object);i[o]=i[o]||[],i[o].push(n)})(n.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*i,o)}),i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"===typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(u){a(u)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,((n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)}))}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(void 0!==n&&null!==n&&""!==n){if(this.backend&&this.backend.create){const u={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(e,t,n,r,u):l(e,t,n,r),i&&"function"===typeof i.then?i.then((e=>a(null,e))).catch(a):a(null,i)}catch(s){a(s)}else l(e,t,n,r,a,u)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}const F=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"===typeof e[1]&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===typeof e[2]||"object"===typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),q=e=>("string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),V=()=>{};class H extends a{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=q(e),this.services={},this.logger=o,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"===typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"===typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"===typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=F();this.options={...r,...this.options,...q(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=e=>e?"function"===typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?o.init(i(this.modules.logger),this.options):o.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!==typeof Intl&&(t=z);const n=new T(this.options);this.store=new x(this.options.resources,this.options);const a=this.services;a.logger=o,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new L(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(a.formatter=i(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new R(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new U(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new E(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=V),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const a=s(),u=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V;const n="string"===typeof e?e:this.language;if("function"===typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=s();return"function"===typeof e&&(n=e,e=void 0),"function"===typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=V),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&k.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=s();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"===typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{o(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!==typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];o=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||i.keyPrefix);const l=r.options.keySeparator||".";let c;return c=o.keyPrefix&&Array.isArray(e)?e.map((e=>`${o.keyPrefix}${l}${e}`)):o.keyPrefix?`${o.keyPrefix}${l}${e}`:e,r.t(c,o)};return"string"===typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=s();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=s();"string"===typeof e&&(e=[e]);const r=this.options.preload||[],i=e.filter((e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return i.length?(this.options.preload=r.concat(i),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new T(F());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new H(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new H(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));return["store","services","language"].forEach((e=>{i[e]=this[e]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new x(this.store.data,r),i.services.resourceStore=i.store),i.translator=new E(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)})),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const B=H.createInstance();B.createInstance=H.createInstance;B.createInstance,B.dir,B.init,B.loadResources,B.reloadResources,B.use,B.changeLanguage,B.getFixedT;const W=B.t;B.exists,B.setDefaultNamespace,B.hasLoadedNamespace,B.loadNamespaces,B.loadLanguages},63748:(e,t,n)=>{"use strict";n.d(t,{$i:()=>X,IP:()=>Y,Qx:()=>u,YT:()=>Q,a6:()=>l,c2:()=>f,ht:()=>Z,jM:()=>G,mq:()=>ee,vD:()=>te,vI:()=>J});var r=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),o=Symbol.for("immer-state");function a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function u(e){return!!e&&!!e[o]}function l(e){return!!e&&(d(e)||Array.isArray(e)||!!e[i]||!!e.constructor?.[i]||v(e)||b(e))}var c=Object.prototype.constructor.toString();function d(e){if(!e||"object"!==typeof e)return!1;const t=s(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===c}function f(e){return u(e)||a(15),e[o].base_}function p(e,t){0===h(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function h(e){const t=e[o];return t?t.type_:Array.isArray(e)?1:v(e)?2:b(e)?3:0}function g(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function m(e,t){return 2===h(e)?e.get(t):e[t]}function y(e,t,n){const r=h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function v(e){return e instanceof Map}function b(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function _(e,t){if(v(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=d(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[o];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(s(e),t)}{const t=s(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function S(e,t=!1){return k(e)||u(e)||!l(e)||(h(e)>1&&(e.set=e.add=e.clear=e.delete=x),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>S(t,!0)))),e}function x(){a(2)}function k(e){return Object.isFrozen(e)}var C,E={};function O(e){const t=E[e];return t||a(0),t}function T(e,t){E[e]||(E[e]=t)}function A(){return C}function I(e,t){t&&(O("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function M(e){P(e),e.drafts_.forEach(L),e.drafts_=null}function P(e){e===C&&(C=e.parent_)}function D(e){return C={drafts_:[],parent_:C,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function L(e){const t=e[o];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function j(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[o].modified_&&(M(t),a(4)),l(e)&&(e=N(t,e),t.parent_||$(t,e)),t.patches_&&O("Patches").generateReplacementPatches_(n[o].base_,e,t.patches_,t.inversePatches_)):e=N(t,n,[]),M(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function N(e,t,n){if(k(t))return t;const r=t[o];if(!r)return p(t,((i,o)=>R(e,r,t,i,o,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return $(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,o=!1;3===r.type_&&(i=new Set(t),t.clear(),o=!0),p(i,((i,a)=>R(e,r,t,i,a,n,o))),$(e,t,!1),n&&e.patches_&&O("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function R(e,t,n,r,i,o,a){if(u(i)){const a=N(e,i,o&&t&&3!==t.type_&&!g(t.assigned_,r)?o.concat(r):void 0);if(y(n,r,a),!u(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(l(i)&&!k(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;N(e,i),t&&t.scope_.parent_||"symbol"===typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||$(e,i)}}function $(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&S(t,n)}var z={get(e,t){if(t===o)return e;const n=w(e);if(!g(n,t))return function(e,t,n){const r=q(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!l(r)?r:r===F(e.base_,t)?(H(e),e.copy_[t]=B(r,e)):r},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,n){const r=q(w(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=F(w(e),t),s=r?.[o];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((i=n)===(a=r)?0!==i||1/i===1/a:i!==i&&a!==a)&&(void 0!==n||g(e.base_,t)))return!0;H(e),V(e)}var i,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==F(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,H(e),V(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=w(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){a(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){a(12)}},U={};function F(e,t){const n=e[o];return(n?w(n):e)[t]}function q(e,t){if(!(t in e))return;let n=s(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=s(n)}}function V(e){e.modified_||(e.modified_=!0,e.parent_&&V(e.parent_))}function H(e){e.copy_||(e.copy_=_(e.base_,e.scope_.immer_.useStrictShallowCopy_))}p(z,((e,t)=>{U[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),U.deleteProperty=function(e,t){return U.set.call(this,e,t,void 0)},U.set=function(e,t,n){return z.set.call(this,e[0],t,n,e[0])};function B(e,t){const n=v(e)?O("MapSet").proxyMap_(e,t):b(e)?O("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:A(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=z;n&&(i=[r],o=U);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:A()).drafts_.push(n),n}function W(e){if(!l(e)||k(e))return e;const t=e[o];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=_(e,t.scope_.immer_.useStrictShallowCopy_)}else n=_(e,!0);return p(n,((e,t)=>{y(n,e,W(t))})),t&&(t.finalized_=!1),n}function Q(){const e="replace",t="add",n="remove";function o(e){if(!l(e))return e;if(Array.isArray(e))return e.map(o);if(v(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,o(t)])));if(b(e))return new Set(Array.from(e).map(o));const t=Object.create(s(e));for(const n in e)t[n]=o(e[n]);return g(e,i)&&(t[i]=e[i]),t}function c(e){return u(e)?o(e):e}T("Patches",{applyPatches_:function(r,i){return i.forEach((i=>{const{path:s,op:u}=i;let l=r;for(let e=0;e<s.length-1;e++){const t=h(l);let n=s[e];"string"!==typeof n&&"number"!==typeof n&&(n=""+n),0!==t&&1!==t||"__proto__"!==n&&"constructor"!==n||a(19),"function"===typeof l&&"prototype"===n&&a(19),l=m(l,n),"object"!==typeof l&&a(18,s.join("/"))}const c=h(l),d=o(i.value),f=s[s.length-1];switch(u){case e:switch(c){case 2:return l.set(f,d);case 3:a(16);default:return l[f]=d}case t:switch(c){case 1:return"-"===f?l.push(d):l.splice(f,0,d);case 2:return l.set(f,d);case 3:return l.add(d);default:return l[f]=d}case n:switch(c){case 1:return l.splice(f,1);case 2:return l.delete(f);case 3:return l.delete(i.value);default:return delete l[f]}default:a(17)}})),r},generatePatches_:function(r,i,o,a){switch(r.type_){case 0:case 2:return function(r,i,o,a){const{base_:s,copy_:u}=r;p(r.assigned_,((r,l)=>{const d=m(s,r),f=m(u,r),p=l?g(s,r)?e:t:n;if(d===f&&p===e)return;const h=i.concat(r);o.push(p===n?{op:p,path:h}:{op:p,path:h,value:f}),a.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:c(d)}:{op:e,path:h,value:c(d)})}))}(r,i,o,a);case 1:return function(r,i,o,a){let{base_:s,assigned_:u}=r,l=r.copy_;l.length<s.length&&([s,l]=[l,s],[o,a]=[a,o]);for(let t=0;t<s.length;t++)if(u[t]&&l[t]!==s[t]){const n=i.concat([t]);o.push({op:e,path:n,value:c(l[t])}),a.push({op:e,path:n,value:c(s[t])})}for(let e=s.length;e<l.length;e++){const n=i.concat([e]);o.push({op:t,path:n,value:c(l[e])})}for(let e=l.length-1;s.length<=e;--e){const t=i.concat([e]);a.push({op:n,path:t})}}(r,i,o,a);case 3:return function(e,r,i,o){let{base_:a,copy_:s}=e,u=0;a.forEach((e=>{if(!s.has(e)){const a=r.concat([u]);i.push({op:n,path:a,value:e}),o.unshift({op:t,path:a,value:e})}u++})),u=0,s.forEach((e=>{if(!a.has(e)){const a=r.concat([u]);i.push({op:t,path:a,value:e}),o.unshift({op:n,path:a,value:e})}u++}))}(r,i,o,a)}},generateReplacementPatches_:function(t,n,i,o){i.push({op:e,path:[],value:n===r?void 0:n}),o.push({op:e,path:[],value:t})}})}function Y(){class e extends Map{constructor(e,t){super(),this[o]={type_:2,parent_:t,scope_:t?t.scope_:A(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:e,draft_:this,isManual_:!1,revoked_:!1}}get size(){return w(this[o]).size}has(e){return w(this[o]).has(e)}set(e,n){const r=this[o];return i(r),w(r).has(e)&&w(r).get(e)===n||(t(r),V(r),r.assigned_.set(e,!0),r.copy_.set(e,n),r.assigned_.set(e,!0)),this}delete(e){if(!this.has(e))return!1;const n=this[o];return i(n),t(n),V(n),n.base_.has(e)?n.assigned_.set(e,!1):n.assigned_.delete(e),n.copy_.delete(e),!0}clear(){const e=this[o];i(e),w(e).size&&(t(e),V(e),e.assigned_=new Map,p(e.base_,(t=>{e.assigned_.set(t,!1)})),e.copy_.clear())}forEach(e,t){w(this[o]).forEach(((n,r,i)=>{e.call(t,this.get(r),r,this)}))}get(e){const n=this[o];i(n);const r=w(n).get(e);if(n.finalized_||!l(r))return r;if(r!==n.base_.get(e))return r;const a=B(r,n);return t(n),n.copy_.set(e,a),a}keys(){return w(this[o]).keys()}values(){const e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const t=e.next();if(t.done)return t;return{done:!1,value:this.get(t.value)}}}}entries(){const e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const t=e.next();if(t.done)return t;const n=this.get(t.value);return{done:!1,value:[t.value,n]}}}}[Symbol.iterator](){return this.entries()}}function t(e){e.copy_||(e.assigned_=new Map,e.copy_=new Map(e.base_))}class n extends Set{constructor(e,t){super(),this[o]={type_:3,parent_:t,scope_:t?t.scope_:A(),modified_:!1,finalized_:!1,copy_:void 0,base_:e,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return w(this[o]).size}has(e){const t=this[o];return i(t),t.copy_?!!t.copy_.has(e)||!(!t.drafts_.has(e)||!t.copy_.has(t.drafts_.get(e))):t.base_.has(e)}add(e){const t=this[o];return i(t),this.has(e)||(r(t),V(t),t.copy_.add(e)),this}delete(e){if(!this.has(e))return!1;const t=this[o];return i(t),r(t),V(t),t.copy_.delete(e)||!!t.drafts_.has(e)&&t.copy_.delete(t.drafts_.get(e))}clear(){const e=this[o];i(e),w(e).size&&(r(e),V(e),e.copy_.clear())}values(){const e=this[o];return i(e),r(e),e.copy_.values()}entries(){const e=this[o];return i(e),r(e),e.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){const n=this.values();let r=n.next();for(;!r.done;)e.call(t,r.value,r.value,this),r=n.next()}}function r(e){e.copy_||(e.copy_=new Set,e.base_.forEach((t=>{if(l(t)){const n=B(t,e);e.drafts_.set(t,n),e.copy_.add(n)}else e.copy_.add(t)})))}function i(e){e.revoked_&&a(3,JSON.stringify(w(e)))}T("MapSet",{proxyMap_:function(t,n){return new e(t,n)},proxySet_:function(e,t){return new n(e,t)}})}var K=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,(e=>t.call(this,e,...i)))}}let i;if("function"!==typeof t&&a(6),void 0!==n&&"function"!==typeof n&&a(7),l(e)){const r=D(this),o=B(e,void 0);let a=!0;try{i=t(o),a=!1}finally{a?M(r):P(r)}return I(r,n),j(i,r)}if(!e||"object"!==typeof e){if(i=t(e),void 0===i&&(i=e),i===r&&(i=void 0),this.autoFreeze_&&S(i,!0),n){const t=[],r=[];O("Patches").generateReplacementPatches_(e,i,t,r),n(t,r)}return i}a(1)},this.produceWithPatches=(e,t)=>{if("function"===typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"===typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){l(e)||a(8),u(e)&&(e=function(e){u(e)||a(10);return W(e)}(e));const t=D(this),n=B(e,void 0);return n[o].isManual_=!0,P(t),n}finishDraft(e,t){const n=e&&e[o];n&&n.isManual_||a(9);const{scope_:r}=n;return I(r,t),j(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=O("Patches").applyPatches_;return u(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},G=K.produce,J=K.produceWithPatches.bind(K),Z=K.setAutoFreeze.bind(K),X=(K.setUseStrictShallowCopy.bind(K),K.applyPatches.bind(K)),ee=K.createDraft.bind(K),te=K.finishDraft.bind(K)},76758:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FILE:()=>r,HTML:()=>a,TEXT:()=>o,URL:()=>i});const r="__NATIVE_FILE__",i="__NATIVE_URL__",o="__NATIVE_TEXT__",a="__NATIVE_HTML__"},9924:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});const r=(0,n(76697).createContext)({dragDropManager:void 0})},49522:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>q,l$:()=>F,oR:()=>m});var r=n(76697),i=n(33392),o=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,a=(()=>{let e=0;return()=>(++e).toString()})(),s=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),u=new Map,l=e=>{if(u.has(e))return;let t=setTimeout((()=>{u.delete(e),p({type:4,toastId:e})}),1e3);u.set(e,t)},c=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=u.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return e.toasts.find((e=>e.id===n.id))?c(e,{type:1,toast:n}):c(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?l(r):e.toasts.forEach((e=>{l(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+i})))}}},d=[],f={toasts:[],pausedAt:void 0},p=e=>{f=c(f,e),d.forEach((e=>{e(f)}))},h={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},g=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||a()}))(t,e,n);return p({type:2,toast:r}),r.id},m=(e,t)=>g("blank")(e,t);m.error=g("error"),m.success=g("success"),m.loading=g("loading"),m.custom=g("custom"),m.dismiss=e=>{p({type:3,toastId:e})},m.remove=e=>p({type:4,toastId:e}),m.promise=(e,t,n)=>{let r=m.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then((e=>(m.success(o(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e))).catch((e=>{m.error(o(t.error,e),{id:r,...n,...null==n?void 0:n.error})})),e};var y=(e,t)=>{p({type:1,toast:{id:e,height:t}})},v=()=>{p({type:5,time:Date.now()})},b=e=>{let{toasts:t,pausedAt:n}=((e={})=>{let[t,n]=(0,r.useState)(f);(0,r.useEffect)((()=>(d.push(n),()=>{let e=d.indexOf(n);e>-1&&d.splice(e,1)})),[t]);let i=t.toasts.map((t=>{var n,r;return{...e,...e[t.type],...t,duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||h[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}}));return{...t,toasts:i}})(e);(0,r.useEffect)((()=>{if(n)return;let e=Date.now(),r=t.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>m.dismiss(t.id)),n);t.visible&&m.dismiss(t.id)}));return()=>{r.forEach((e=>e&&clearTimeout(e)))}}),[t,n]);let i=(0,r.useCallback)((()=>{n&&p({type:6,time:Date.now()})}),[n]),o=(0,r.useCallback)(((e,n)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:o}=n||{},a=t.filter((t=>(t.position||o)===(e.position||o)&&t.height)),s=a.findIndex((t=>t.id===e.id)),u=a.filter(((e,t)=>t<s&&e.visible)).length;return a.filter((e=>e.visible)).slice(...r?[u+1]:[0,u]).reduce(((e,t)=>e+(t.height||0)+i),0)}),[t]);return{toasts:t,handlers:{updateHeight:y,startPause:v,endPause:i,calculateOffset:o}}},w=i.i7`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,_=i.i7`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,S=i.i7`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,x=(0,i.I4)("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

  animation: ${w} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;

  &:after,
  &:before {
    content: '';
    animation: ${_} 0.15s ease-out forwards;
    animation-delay: 150ms;
    position: absolute;
    border-radius: 3px;
    opacity: 0;
    background: ${e=>e.secondary||"#fff"};
    bottom: 9px;
    left: 4px;
    height: 2px;
    width: 12px;
  }

  &:before {
    animation: ${S} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,k=i.i7`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,C=(0,i.I4)("div")`
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: ${e=>e.secondary||"#e0e0e0"};
  border-right-color: ${e=>e.primary||"#616161"};
  animation: ${k} 1s linear infinite;
`,E=i.i7`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,O=i.i7`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,T=(0,i.I4)("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${E} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${O} 0.2s ease-out forwards;
    opacity: 0;
    animation-delay: 200ms;
    position: absolute;
    border-right: 2px solid;
    border-bottom: 2px solid;
    border-color: ${e=>e.secondary||"#fff"};
    bottom: 6px;
    left: 6px;
    height: 10px;
    width: 6px;
  }
`,A=(0,i.I4)("div")`
  position: absolute;
`,I=(0,i.I4)("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,M=i.i7`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,P=(0,i.I4)("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${M} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,D=({toast:e})=>{let{icon:t,type:n,iconTheme:i}=e;return void 0!==t?"string"==typeof t?r.createElement(P,null,t):t:"blank"===n?null:r.createElement(I,null,r.createElement(C,{...i}),"loading"!==n&&r.createElement(A,null,"error"===n?r.createElement(x,{...i}):r.createElement(T,{...i})))},L=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,j=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,N=(0,i.I4)("div")`
  display: flex;
  align-items: center;
  background: #fff;
  color: #363636;
  line-height: 1.3;
  will-change: transform;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  pointer-events: auto;
  padding: 8px 10px;
  border-radius: 8px;
`,R=(0,i.I4)("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,$=r.memo((({toast:e,position:t,style:n,children:a})=>{let u=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=s()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[L(n),j(n)];return{animation:t?`${(0,i.i7)(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${(0,i.i7)(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},l=r.createElement(D,{toast:e}),c=r.createElement(R,{...e.ariaProps},o(e.message,e));return r.createElement(N,{className:e.className,style:{...u,...n,...e.style}},"function"==typeof a?a({icon:l,message:c}):r.createElement(r.Fragment,null,l,c))}));(0,i.mj)(r.createElement);var z=({id:e,className:t,style:n,onHeightUpdate:i,children:o})=>{let a=r.useCallback((t=>{if(t){let n=()=>{let n=t.getBoundingClientRect().height;i(e,n)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}}),[e,i]);return r.createElement("div",{ref:a,className:t,style:n},o)},U=i.AH`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,F=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:i,children:a,containerStyle:u,containerClassName:l})=>{let{toasts:c,handlers:d}=b(n);return r.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...u},className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map((n=>{let u=n.position||t,l=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:s()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}})(u,d.calculateOffset(n,{reverseOrder:e,gutter:i,defaultPosition:t}));return r.createElement(z,{id:n.id,key:n.id,onHeightUpdate:d.updateHeight,className:n.visible?U:"",style:l},"custom"===n.type?o(n.message,n):a?a(n):r.createElement($,{toast:n,position:u}))})))},q=m},83759:(e,t,n)=>{"use strict";n(76697),n(44382)},66651:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var r=n(76697),i=n(30728),o=n(44382);function a({children:e,count:t,parent:n,i18nKey:a,context:s,tOptions:u={},values:l,defaults:c,components:d,ns:f,i18n:p,t:h,shouldUnescape:g,...m}){const{i18n:y,defaultNS:v}=(0,r.useContext)(o.gJ)||{},b=p||y||(0,o.TO)(),w=h||b?.t.bind(b);return(0,i.x)({children:e,count:t,parent:n,i18nKey:a,context:s,tOptions:u,values:l,defaults:c,components:d,ns:f||w?.ns||v||b?.options?.defaultNS,i18n:b,t:h,shouldUnescape:g,...m})}},30728:(e,t,n)=>{"use strict";n.d(t,{x:()=>p});var r=n(76697),i=n(36060),o=n(31596),a=n(28603),s=n(89830);const u=(e,t)=>{if(!e)return!1;const n=e.props?.children??e.children;return t?n.length>0:!!n},l=e=>{if(!e)return[];const t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?c(t):t},c=e=>Array.isArray(e)?e:[e],d=(e,t)=>{if(!e)return"";let n="";const i=c(e),a=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return i.forEach(((e,i)=>{if((0,o.Kg)(e))n+=`${e}`;else if((0,r.isValidElement)(e)){const{props:r,type:s}=e,u=Object.keys(r).length,l=a.indexOf(s)>-1,c=r.children;if(c||!l||u)if(!c&&(!l||u)||r.i18nIsDynamicList)n+=`<${i}></${i}>`;else if(l&&1===u&&(0,o.Kg)(c))n+=`<${s}>${c}</${s}>`;else{const e=d(c,t);n+=`<${i}>${e}</${i}>`}else n+=`<${s}/>`}else if(null===e)(0,o.R8)("Trans: the passed in value is invalid - seems you passed in a null child.");else if((0,o.Gv)(e)){const{format:t,...r}=e,i=Object.keys(r);if(1===i.length){const e=t?`${i[0]}, ${t}`:i[0];n+=`{{${e}}}`}else(0,o.R8)("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else(0,o.R8)("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),n},f=(e,t,n,a,s,d)=>{if(""===t)return[];const f=a.transKeepBasicHtmlNodesFor||[],p=t&&new RegExp(f.map((e=>`<${e}`)).join("|")).test(t);if(!e&&!p&&!d)return[t];const h={},g=e=>{c(e).forEach((e=>{(0,o.Kg)(e)||(u(e)?g(l(e)):(0,o.Gv)(e)&&!(0,r.isValidElement)(e)&&Object.assign(h,e))}))};g(e);const m=i.A.parse(`<0>${t}</0>`),y={...h,...s},v=(e,t,n)=>{const i=l(e),o=w(i,t.children,n);return(e=>Array.isArray(e)&&e.every(r.isValidElement))(i)&&0===o.length||e.props?.i18nIsDynamicList?i:o},b=(e,t,n,i,o)=>{e.dummy?(e.children=t,n.push((0,r.cloneElement)(e,{key:i},o?void 0:t))):n.push(...r.Children.map([e],(e=>{const n={...e.props};return delete n.i18nIsDynamicList,(0,r.createElement)(e.type,{...n,key:i,ref:e.ref},o?null:t)})))},w=(t,i,s)=>{const l=c(t);return c(i).reduce(((t,i,c)=>{const h=i.children?.[0]?.content&&n.services.interpolator.interpolate(i.children[0].content,y,n.language);if("tag"===i.type){let d=l[parseInt(i.name,10)];1!==s.length||d||(d=s[0][i.name]),d||(d={});const g=0!==Object.keys(i.attrs).length?((e,t)=>{const n={...t};return n.props=Object.assign(e.props,t.props),n})({props:i.attrs},d):d,m=(0,r.isValidElement)(g),_=m&&u(i,!0)&&!i.voidElement,S=p&&(0,o.Gv)(g)&&g.dummy&&!m,x=(0,o.Gv)(e)&&Object.hasOwnProperty.call(e,i.name);if((0,o.Kg)(g)){const e=n.services.interpolator.interpolate(g,y,n.language);t.push(e)}else if(u(g)||_){const e=v(g,i,s);b(g,e,t,c)}else if(S){const e=w(l,i.children,s);b(g,e,t,c)}else if(Number.isNaN(parseFloat(i.name)))if(x){const e=v(g,i,s);b(g,e,t,c,i.voidElement)}else if(a.transSupportBasicHtmlNodes&&f.indexOf(i.name)>-1)if(i.voidElement)t.push((0,r.createElement)(i.name,{key:`${i.name}-${c}`}));else{const e=w(l,i.children,s);t.push((0,r.createElement)(i.name,{key:`${i.name}-${c}`},e))}else if(i.voidElement)t.push(`<${i.name} />`);else{const e=w(l,i.children,s);t.push(`<${i.name}>${e}</${i.name}>`)}else if((0,o.Gv)(g)&&!m){const e=i.children[0]?h:null;e&&t.push(e)}else b(g,h,t,c,1!==i.children.length||!h)}else if("text"===i.type){const e=a.transWrapTextNodes,o=d?a.unescape(n.services.interpolator.interpolate(i.content,y,n.language)):n.services.interpolator.interpolate(i.content,y,n.language);e?t.push((0,r.createElement)(e,{key:`${i.name}-${c}`},o)):t.push(o)}return t}),[])},_=w([{dummy:!0,children:e||[]}],m,c(e||[]));return l(_[0])};function p({children:e,count:t,parent:n,i18nKey:i,context:u,tOptions:l={},values:c,defaults:p,components:h,ns:g,i18n:m,t:y,shouldUnescape:v,...b}){const w=m||(0,s.T)();if(!w)return(0,o.mc)("You will need to pass in an i18next instance by using i18nextReactModule"),e;const _=y||w.t.bind(w)||(e=>e),S={...(0,a.r)(),...w.options?.react};let x=g||_.ns||w.options?.defaultNS;x=(0,o.Kg)(x)?[x]:x||["translation"];const k=d(e,S),C=p||k||S.transEmptyNodeValue||i,{hashTransKey:E}=S,O=i||(E?E(k||C):k||C);w.options?.interpolation?.defaultVariables&&(c=c&&Object.keys(c).length>0?{...c,...w.options.interpolation.defaultVariables}:{...w.options.interpolation.defaultVariables});const T=c||void 0!==t||!e?l.interpolation:{interpolation:{...l.interpolation,prefix:"#$?",suffix:"?$#"}},A={...l,context:u||l.context,count:t,...c,...T,defaultValue:C,ns:x},I=O?_(O,A):C;h&&Object.keys(h).forEach((e=>{const t=h[e];"function"===typeof t.type||!t.props||!t.props.children||I.indexOf(`${e}/>`)<0&&I.indexOf(`${e} />`)<0||(h[e]=(0,r.createElement)((function(){return(0,r.createElement)(r.Fragment,null,t)})))}));const M=f(h||e,I,w,S,A,v),P=n??S.defaultTransParent;return P?(0,r.createElement)(P,b,M):M}},81782:(e,t,n)=>{"use strict";n(41603)},44382:(e,t,n)=>{"use strict";n.d(t,{TO:()=>o.T,gJ:()=>a,hz:()=>s,rV:()=>i.r});var r=n(76697),i=n(28603),o=n(89830);n(26717);const a=(0,r.createContext)();class s{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]??=!0}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}},28603:(e,t,n)=>{"use strict";n.d(t,{P:()=>i,r:()=>o});let r={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:n(82005).x};const i=(e={})=>{r={...r,...e}},o=()=>r},89830:(e,t,n)=>{"use strict";let r;n.d(t,{T:()=>o,V:()=>i});const i=e=>{r=e},o=()=>r},39265:(e,t,n)=>{"use strict";n.d(t,{Bd:()=>i.B,r9:()=>o.r,x6:()=>r.x});var r=n(66651),i=(n(30728),n(41603)),o=(n(27490),n(81782),n(83759),n(57141),n(28120),n(26717));n(28603),n(44382)},26717:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var r=n(28603),i=n(89830);const o={type:"3rdParty",init(e){(0,r.P)(e.options.react),(0,i.V)(e)}}},82005:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});const r=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,i={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"\u2026","&#8230;":"\u2026","&#x2F;":"/","&#47;":"/"},o=e=>i[e],a=e=>e.replace(r,o)},28120:(e,t,n)=>{"use strict";n(76697),n(44382)},41603:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r=n(76697),i=n(44382),o=n(31596);const a=(e,t,n,r)=>e.getFixedT(t,n,r),s=(e,t={})=>{const{i18n:n}=t,{i18n:s,defaultNS:u}=(0,r.useContext)(i.gJ)||{},l=n||s||(0,i.TO)();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new i.hz),!l){(0,o.mc)("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>(0,o.Kg)(t)?t:(0,o.Gv)(t)&&(0,o.Kg)(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}l.options.react?.wait&&(0,o.mc)("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const c={...(0,i.rV)(),...l.options.react,...t},{useSuspense:d,keyPrefix:f}=c;let p=e||u||l.options?.defaultNS;p=(0,o.Kg)(p)?[p]:p||["translation"],l.reportNamespaces.addUsedNamespaces?.(p);const h=(l.isInitialized||l.initializedStoreOnce)&&p.every((e=>(0,o.NM)(e,l,c))),g=((e,t,n,i)=>(0,r.useCallback)(a(e,t,n,i),[e,t,n,i]))(l,t.lng||null,"fallback"===c.nsMode?p:p[0],f),m=()=>g,y=()=>a(l,t.lng||null,"fallback"===c.nsMode?p:p[0],f),[v,b]=(0,r.useState)(m);let w=p.join();t.lng&&(w=`${t.lng}${w}`);const _=((e,t)=>{const n=(0,r.useRef)();return(0,r.useEffect)((()=>{n.current=t?n.current:e}),[e,t]),n.current})(w),S=(0,r.useRef)(!0);(0,r.useEffect)((()=>{const{bindI18n:e,bindI18nStore:n}=c;S.current=!0,h||d||(t.lng?(0,o.GA)(l,t.lng,p,(()=>{S.current&&b(y)})):(0,o.dM)(l,p,(()=>{S.current&&b(y)}))),h&&_&&_!==w&&S.current&&b(y);const r=()=>{S.current&&b(y)};return e&&l?.on(e,r),n&&l?.store.on(n,r),()=>{S.current=!1,l&&e?.split(" ").forEach((e=>l.off(e,r))),n&&l&&n.split(" ").forEach((e=>l.store.off(e,r)))}}),[l,w]),(0,r.useEffect)((()=>{S.current&&h&&b(m)}),[l,f,h]);const x=[v,l,h];if(x.t=v,x.i18n=l,x.ready=h,h)return x;if(!h&&!d)return x;throw new Promise((e=>{t.lng?(0,o.GA)(l,t.lng,p,(()=>e())):(0,o.dM)(l,p,(()=>e()))}))}},31596:(e,t,n)=>{"use strict";n.d(t,{GA:()=>u,Gv:()=>d,Kg:()=>c,NM:()=>l,R8:()=>r,dM:()=>s,mc:()=>o});const r=(...e)=>{console?.warn&&(c(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},i={},o=(...e)=>{c(e[0])&&i[e[0]]||(c(e[0])&&(i[e[0]]=new Date),r(...e))},a=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}},s=(e,t,n)=>{e.loadNamespaces(t,a(e,n))},u=(e,t,n,r)=>{c(n)&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,a(e,r))},l=(e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n?.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(o("i18n.languages were undefined or empty",t.languages),!0),c=e=>"string"===typeof e,d=e=>"object"===typeof e&&null!==e},57141:(e,t,n)=>{"use strict";n(76697),n(28120),n(44382),n(31596)},27490:(e,t,n)=>{"use strict";n(76697),n(41603),n(31596)},36506:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>C,Pj:()=>O,bN:()=>k,d4:()=>m,vA:()=>M,wA:()=>I});var r=n(76697),i=n(52784),o=r,a=Symbol.for("react-redux-context"),s="undefined"!==typeof globalThis?globalThis:{};function u(){if(!o.createContext)return{};const e=s[a]??(s[a]=new Map);let t=e.get(o.createContext);return t||(t=o.createContext(null),e.set(o.createContext,t)),t}var l=u(),c=()=>{throw new Error("uSES not initialized!")};function d(e=l){return function(){return o.useContext(e)}}var f=d(),p=c,h=(e,t)=>e===t;function g(e=l){const t=e===l?f:d(e),n=(e,n={})=>{const{equalityFn:r=h,devModeChecks:i={}}="function"===typeof n?{equalityFn:n}:n;const{store:a,subscription:s,getServerState:u,stabilityCheck:l,identityFunctionCheck:c}=t(),d=(o.useRef(!0),o.useCallback({[e.name]:t=>e(t)}[e.name],[e,l,i.stabilityCheck])),f=p(s.addNestedSub,a.getState,u||a.getState,d,r);return o.useDebugValue(f),f};return Object.assign(n,{withTypes:()=>n}),n}var m=g();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");function y(e){e()}var v={notify(){},get:()=>[]};function b(e,t){let n,r=v,i=0,o=!1;function a(){l.onStateChange&&l.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){y((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function u(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=v)}const l={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),u())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,u())},getListeners:()=>r};return l}var w=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),_="undefined"!==typeof navigator&&"ReactNative"===navigator.product,S=w||_?o.useLayoutEffect:o.useEffect;function x(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function k(e,t){if(x(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!x(e[n[i]],t[n[i]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var C=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const s=o.useMemo((()=>{const t=b(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:a}}),[e,r,i,a]),u=o.useMemo((()=>e.getState()),[e]);S((()=>{const{subscription:t}=s;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),u!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[s,u]);const c=t||l;return o.createElement(c.Provider,{value:s},n)};function E(e=l){const t=e===l?f:d(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var O=E();function T(e=l){const t=e===l?O:E(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var A,I=T(),M=y;A=i.useSyncExternalStoreWithSelector,p=A,(e=>{e})(r.useSyncExternalStore)},11813:(e,t,n)=>{"use strict";function r(e){return({dispatch:t,getState:n})=>r=>i=>"function"===typeof i?i(t,n,e):r(i)}n.d(t,{P:()=>i,Y:()=>o});var i=r(),o=r},1989:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>l,Qd:()=>s,Tw:()=>d,Zz:()=>c,ve:()=>f,y$:()=>u});var i=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),o=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${o()}`,REPLACE:`@@redux/REPLACE${o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${o()}`};function s(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function u(e,t,n){if("function"!==typeof e)throw new Error(r(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(r(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(r(1));return n(u)(e,t)}let o=e,l=t,c=new Map,d=c,f=0,p=!1;function h(){d===c&&(d=new Map,c.forEach(((e,t)=>{d.set(t,e)})))}function g(){if(p)throw new Error(r(3));return l}function m(e){if("function"!==typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),c=null}}}function y(e){if(!s(e))throw new Error(r(7));if("undefined"===typeof e.type)throw new Error(r(8));if("string"!==typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,l=o(l,e)}finally{p=!1}return(c=d).forEach((e=>{e()})),e}y({type:a.INIT});return{dispatch:y,subscribe:m,getState:g,replaceReducer:function(e){if("function"!==typeof e)throw new Error(r(10));o=e,y({type:a.REPLACE})},[i]:function(){const e=m;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(g())}n();return{unsubscribe:e(n)}},[i](){return this}}}}}function l(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}const i=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:a.INIT}))throw new Error(r(12));if("undefined"===typeof n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(s){o=s}return function(e={},t){if(o)throw o;let a=!1;const s={};for(let o=0;o<i.length;o++){const u=i[o],l=n[u],c=e[u],d=l(c,t);if("undefined"===typeof d){t&&t.type;throw new Error(r(14))}s[u]=d,a=a||d!==c}return a=a||i.length!==Object.keys(e).length,a?s:e}}function c(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function d(...e){return t=>(n,i)=>{const o=t(n,i);let a=()=>{throw new Error(r(15))};const s={getState:o.getState,dispatch:(e,...t)=>a(e,...t)},u=e.map((e=>e(s)));return a=c(...u)(o.dispatch),{...o,dispatch:a}}}function f(e){return s(e)&&"type"in e&&"string"===typeof e.type}},97575:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>f,X4:()=>c});function r(e,t="expected a function, instead received "+typeof e){if("function"!==typeof e)throw new TypeError(t)}var i=e=>Array.isArray(e)?e:[e];function o(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"===typeof e))){const n=e.map((e=>"function"===typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var a="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},s=0,u=1;function l(){return{s:s,v:void 0,o:null,p:null}}function c(e,t={}){let n=l();const{resultEqualityCheck:r}=t;let i,o=0;function s(){let t=n;const{length:s}=arguments;for(let e=0,n=s;e<n;e++){const n=arguments[e];if("function"===typeof n||"object"===typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=l(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=l(),e.set(n,t)):t=r}}const c=t;let d;if(t.s===u)d=t.v;else if(d=e.apply(null,arguments),o++,r){const e=i?.deref?.()??i;null!=e&&r(e,d)&&(d=e,0!==o&&o--);i="object"===typeof d&&null!==d||"function"===typeof d?new a(d):d}return c.s=u,c.v=d,d}return s.clearCache=()=>{n=l(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function d(e,...t){const n="function"===typeof e?{memoize:e,memoizeOptions:t}:e,a=(...e)=>{let t,a=0,s=0,u={},l=e.pop();"object"===typeof l&&(u=l,l=e.pop()),r(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const d={...n,...u},{memoize:f,memoizeOptions:p=[],argsMemoize:h=c,argsMemoizeOptions:g=[],devModeChecks:m={}}=d,y=i(p),v=i(g),b=o(e),w=f((function(){return a++,l.apply(null,arguments)}),...y);const _=h((function(){s++;const e=function(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}(b,arguments);return t=w.apply(null,e),t}),...v);return Object.assign(_,{resultFunc:l,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>t,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:h})};return Object.assign(a,{withTypes:()=>a}),a}var f=d(c),p=Object.assign(((e,t=f)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!==typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>p})},19643:(e,t,n)=>{"use strict";n.d(t,{QP:()=>K});const r=e=>{const t=s(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),i(n,t)||a(e)},getConflictingClassGroupIds:(e,t)=>{const i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},i=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?i(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find((({validator:e})=>e(a)))?.classGroupId},o=/^\[(.+)\]$/,a=e=>{if(o.test(e)){const t=o.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},s=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return d(Object.entries(e.classGroups),n).forEach((([e,n])=>{u(n,r,e,t)})),r},u=(e,t,n,r)=>{e.forEach((e=>{if("string"!==typeof e){if("function"===typeof e)return c(e)?void u(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,i])=>{u(i,l(t,e),n,r)}))}else{(""===e?t:l(t,e)).classGroupId=n}}))},l=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},c=e=>e.isThemeGetter,d=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"===typeof e?t+e:"object"===typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,f=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},p=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,i=t[0],o=t.length,a=e=>{const n=[];let a,s=0,u=0;for(let d=0;d<e.length;d++){let l=e[d];if(0===s){if(l===i&&(r||e.slice(d,d+o)===t)){n.push(e.slice(u,d)),u=d+o;continue}if("/"===l){a=d;continue}}"["===l?s++:"]"===l&&s--}const l=0===n.length?e:e.substring(u),c=l.startsWith("!");return{modifiers:n,hasImportantModifier:c,baseClassName:c?l.substring(1):l,maybePostfixModifierPosition:a&&a>u?a-u:void 0}};return n?e=>n({className:e,parseClassName:a}):a},h=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},g=/\s+/;function m(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=y(e))&&(r&&(r+=" "),r+=t);return r}const y=e=>{if("string"===typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=y(e[r]))&&(n&&(n+=" "),n+=t);return n};function v(e,...t){let n,i,o,a=function(u){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:f(e.cacheSize),parseClassName:p(e),...r(e)}))(l),i=n.cache.get,o=n.cache.set,a=s,s(u)};function s(e){const t=i(e);if(t)return t;const r=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(g);let s="";for(let u=a.length-1;u>=0;u-=1){const e=a[u],{modifiers:t,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:d}=n(e);let f=Boolean(d),p=r(f?c.substring(0,d):c);if(!p){if(!f){s=e+(s.length>0?" "+s:s);continue}if(p=r(c),!p){s=e+(s.length>0?" "+s:s);continue}f=!1}const g=h(t).join(":"),m=l?g+"!":g,y=m+p;if(o.includes(y))continue;o.push(y);const v=i(p,f);for(let n=0;n<v.length;++n){const e=v[n];o.push(m+e)}s=e+(s.length>0?" "+s:s)}return s})(e,n);return o(e,r),r}return function(){return a(m.apply(null,arguments))}}const b=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},w=/^\[(?:([a-z-]+):)?(.+)\]$/i,_=/^\d+\/\d+$/,S=new Set(["px","full","screen"]),x=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,C=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,E=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,O=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T=e=>I(e)||S.has(e)||_.test(e),A=e=>V(e,"length",H),I=e=>Boolean(e)&&!Number.isNaN(Number(e)),M=e=>V(e,"number",I),P=e=>Boolean(e)&&Number.isInteger(Number(e)),D=e=>e.endsWith("%")&&I(e.slice(0,-1)),L=e=>w.test(e),j=e=>x.test(e),N=new Set(["length","size","percentage"]),R=e=>V(e,N,B),$=e=>V(e,"position",B),z=new Set(["image","url"]),U=e=>V(e,z,Q),F=e=>V(e,"",W),q=()=>!0,V=(e,t,n)=>{const r=w.exec(e);return!!r&&(r[1]?"string"===typeof t?r[1]===t:t.has(r[1]):n(r[2]))},H=e=>k.test(e)&&!C.test(e),B=()=>!1,W=e=>E.test(e),Q=e=>O.test(e),Y=(Symbol.toStringTag,()=>{const e=b("colors"),t=b("spacing"),n=b("blur"),r=b("brightness"),i=b("borderColor"),o=b("borderRadius"),a=b("borderSpacing"),s=b("borderWidth"),u=b("contrast"),l=b("grayscale"),c=b("hueRotate"),d=b("invert"),f=b("gap"),p=b("gradientColorStops"),h=b("gradientColorStopPositions"),g=b("inset"),m=b("margin"),y=b("opacity"),v=b("padding"),w=b("saturate"),_=b("scale"),S=b("sepia"),x=b("skew"),k=b("space"),C=b("translate"),E=()=>["auto",L,t],O=()=>[L,t],N=()=>["",T,A],z=()=>["auto",I,L],V=()=>["","0",L],H=()=>[I,L];return{cacheSize:500,separator:":",theme:{colors:[q],spacing:[T,A],blur:["none","",j,L],brightness:H(),borderColor:[e],borderRadius:["none","","full",j,L],borderSpacing:O(),borderWidth:N(),contrast:H(),grayscale:V(),hueRotate:H(),invert:V(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[D,A],inset:E(),margin:E(),opacity:H(),padding:O(),saturate:H(),scale:H(),sepia:V(),skew:H(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",L]}],container:["container"],columns:[{columns:[j]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",L]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",P,L]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",L]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",P,L]}],"grid-cols":[{"grid-cols":[q]}],"col-start-end":[{col:["auto",{span:["full",P,L]},L]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[q]}],"row-start-end":[{row:["auto",{span:[P,L]},L]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",L]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",L]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",L,t]}],"min-w":[{"min-w":[L,t,"min","max","fit"]}],"max-w":[{"max-w":[L,t,"none","full","min","max","fit","prose",{screen:[j]},j]}],h:[{h:[L,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[L,t,"auto","min","max","fit"]}],"font-size":[{text:["base",j,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",M]}],"font-family":[{font:[q]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",L]}],"line-clamp":[{"line-clamp":["none",I,M]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",T,L]}],"list-image":[{"list-image":["none",L]}],"list-style-type":[{list:["none","disc","decimal",L]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",T,A]}],"underline-offset":[{"underline-offset":["auto",T,L]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",$]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",R]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},U]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[T,L]}],"outline-w":[{outline:[T,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[T,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",j,F]}],"shadow-color":[{shadow:[q]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",j,L]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",L]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",L]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",L]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[P,L]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",L]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",L]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[T,A,M]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),K=v(Y)},8330:e=>{"use strict";e.exports={rE:"0.7.42"}},55922:e=>{"use strict";e.exports=JSON.parse('{"login":{"title":"Login to {{name}}","google":"Sign in with Google","github":"Sign in with GitHub","metamask":"Sign in with MetaMask","password":"Sign in with Password","oidc":"Sign in with OIDC","no_account":"Don\'t have an account?"},"reg":{"title":"Sign Up to {{name}}","google":"Sign Up with Google","github":"Sign Up with GitHub","metamask":"Sign Up with MetaMask","oidc":"Sign Up with OIDC","have_account":"Have an account?","input_name":"What\u2019s your name","input_name_tip":"Enter a name or handle so people know how you\u2019d like to be called. Your name will only be visible to others in spaces you joined."},"logout":{"title":"Log Out","desc":"Are you sure want to log out this account?","clear_local":"Clear local data","role_changed":"Detected your role has changed, would you re-login to take effect?","later":"Maybe later"},"continue":"Continue with Email","placeholder_name":"Enter your Name","placeholder_email":"Enter your Email","placeholder_pwd":"Enter Password","placeholder_confirm_pwd":"Confirm Password","check_email":"Check your inbox","check_email_desc":"We\u2019ve just emailed a magic link to <0>{{email}}</0>. Once it arrives, it will be valid for 15 minutes.","back_sign_in":"Back to Sign in","welcome":"Welcome to {{name}} server","guest_login_tip":"Please scan QR code or sign in to send a message","enter":"Sign in to ","sign_in":"Sign In","sign_up":"Sign Up","signing_up":"Signing Up","github_login_success":"GitHub Login Success!","github_logging_in":"GitHub Logging in...","github_cb_tip":"Please close this window and return widget window","magic_link_expire":{"title":"Magic link invalid or expired","desc":"Please request a new magic link.","desc_close":"You can close this window now."},"invite_mobile":{"join":"Join our Server","start_download":"Start by downloading VoceChat mobile app","open":"Open VoceChat","have_already":"Have the app already?"},"invite_expire":{"min30":"30 minutes","h1":"1 hour","h6":"6 hours","h12":"12 hours","d1":"1 day","d7":"7 days","d30":"30 days"},"invite_times":{"no_limit":"no limit","time1":"1 use","times5":"5 uses","times10":"10 uses","times25":"25 uses","times50":"50 uses","times100":"100 uses"}}')},35090:e=>{"use strict";e.exports=JSON.parse('{"pin":"Pin","pin_desc":"Do you want to pin this message to","pinned_msg":"Pinned Message","pin_empty_tip":"This channel doesn\u2019t have any pinned message yet.","fav":"Favorite","fav_msg":"Saved Message","fav_empty_tip":"This channel doesn\u2019t have any saved message yet.","channel_members":"Channel Members","add_channel_members":"Add members","welcome_channel":"Welcome to {{name}}","welcome_desc":"This is the start of the #{{name}} channel.","edit_channel":"Edit Channel","channel_name":"Channel Name","private_channel":"Private Channel","create_channel":"Create New Channel","create_channel_desc":"This is a public channel, everyone in this team can see it.","create_private_channel_desc":"This is a private channel, only select members will be able to join.","search_user_placeholder":"Type Username to search","welcome_msg":"Welcome to channel {{name}}","invite_title":"Add friends to {{name}}","invite_by_email":"Invite by Email","enable_smtp":"Enable SMTP First","send_invite_link":"Or Send invite link to your friends","share_invite_link":"Share this link to invite people to this server.","invite_link_faq":"Incorrect Invite Link?","invite_link_edit":"Edit invite link","invite_link_setting_tip":"Invite link expires in {{expire}}, max use times: {{times}}","generate_new_link":"Generate New Link","send_to":"Send To","edited":"edited","license_tip":"Your license has reached the limit, upgrade the License or contact the Admin!","delete_msg_title":"Delete Message","delete_msg_desc":"Are you sure want to delete {{msg}}?","delete_msg_this":"this message","delete_msg_these":"these messages","new_msg":"{{num}} new messages","mark_read":"Mark as Read","pin_chat":"Pin Chat","unpin_chat":"Unpin","reply_msg_del":"This message has been deleted.","file":"file","image":"image","forward":"forward","voice_message":"voice message","voice":"Voice Chat","deafen":"Deafen","undeafen":"Undeafen","mute":"Mute","unmute":"Unmute","camera_on":"Turn on camera","camera_off":"Turn off camera","leave_voice":"Leave Voice Chat","add_contact":"Add to contacts","block":"Block","unblock":"Unblock","contact_tip":"This user is not in your contact","contact_block_tip":"This user has been blocked by you","file_expired":"File Expired","only_owner_can_send":"only Channel owner can send message!"}')},54749:e=>{"use strict";e.exports=JSON.parse('{"chat":"Chat","members":"Members","favs":"Saved Items","files":"Files","setting":"Settings","more":"More","action":{"login":"Sign In","re_login":"Logout","logout":"Log Out","change_avatar":"Change","cancel":"Cancel","dismiss":"Dismiss","search":"Search","search_user":"Search by name","new_channel":"New Channel","new_private_channel":"New Private Channel","new_msg":"New Message","invite_people":"Invite People","search_people":"Search People","create":"Create","open":"Open","update":"Update","upload":"Upload","done":"Done","add":"Add","yes":"Yes","delete_channel":"Delete Channel","remove":"Remove","remove_user":"Remove User","edit":"Edit","edit_msg":"Edit Message","add_reaction":"Add to Reaction","add_to_fav":"Add to Favorites","select":"Select","forward":"Forward","reply":"Reply","pin":"Pin It","unpin":"Unpin","send":"Send","send_msg":"Message","copy":"Copy","copy_email":"Copy Email","mute":"Mute","unmute":"Unmute","mark_read":"Mark As Read","hide_session":"Hide Session","reload":"reload","install":"Install","download_origin":"Download original","close":"Close"},"status":{"uploading":"Uploading"},"tip":{"update":"Update Successfully!","delete":"Delete Successfully!","reg":"Register Successfully!","login":"Login Successfully!","logout":"Logout Successfully!","pin":"Pin Message Successfully!","pwa_install_title":"Install web app on desktop?","pwa_install_desc":"Add to desktop for quick access to this app."},"new_version":"<0>New Version</0> Available","mobile_app":"Check out our <0>Mobile APP</0>","price":{"pro":{"title":"VoceChat Pro","desc":"","price":"$49"},"supreme":{"title":"VoceChat SDK Customization and Integration","desc":"","price":""}},"server_update":{"version_needed":"This function needs server version:<0>{{version}}</0> at least \ud83d\udea8","current_version":"Your current version:<0>{{version}}</0>","update_tip":"Please upgrade the Server!","howto":"How to Update VoceChat Server"},"inactive":{"title":"Only one active tab is allowed for VoceChat","desc":"Please reload this page to continue using this tab or close it"}}')},43913:e=>{"use strict";e.exports=JSON.parse('{"all_items":"All Items","image":"Images","video":"Videos","audio":"Audios"}')},91618:e=>{"use strict";e.exports=JSON.parse('{"from":"From","channel":"Channel","type":"Type","date":"Date"}')},10094:e=>{"use strict";e.exports=JSON.parse('{"username":"Username","email":"Email","password":"Password","delete_account":"Delete Account","change_name":"Change your username","change_name_desc":"Enter a new username","change_email":"Change your email","change_email_desc":"Enter a new email.","change_pwd":"Change your password","change_pwd_desc":"Enter current password and new password","current_pwd":"Current Password","new_pwd":"New Password","confirm_new_pwd":"Confirm New Password","manage_members":"Manage Contacts","manage_tip":"Disabling your account means you can recover it at any time after taking this action.","admin":"Admin","user":"User","copy_email":"Copy email","send_msg":"Send message","call":"Call","remove":"Remove from server","remove_from_contact":"Remove from contact","remove_account":"Remove account","remove_account_desc":"Are you sure remove this account?","remove_from_channel":"Remove from channel","roles":"Roles","set_admin":"Admin","set_normal":"User","search_not_found":"Not found, or this user is not allowed to be searched.","search_by_id":"Search by ID","search_by_id_ph":"Input user ID","search_by_email":"Search by email","search_by_email_ph":"Input user email","search_by_name":"Search by name","search_by_name_ph":"Input user name"}')},14924:e=>{"use strict";e.exports=JSON.parse('{"title":"Settings","save_change":"Save Changes","reset":"Reset","save_tip":"You have unsaved changes!","nav":{"general":"General","overview":"Overview","members":"Members","data_management":"Data Management","auto_delete_msg":"Auto-delete Messages","user":"User","my_account":"My Account","config":"Configuration","bot":"Bot & Webhook","firebase":"Firebase","agora":"Agora","smtp":"SMTP","login_method":"Login Methods","third_app":"Third-party Login","widget":"Widget","license":"License","about":"About","api_doc":"API Documentation","version":"Version"},"channel":{"leave":"Leave Channel","leave_desc":"Are you sure want to leave this channel?","transfer_desc":"You need to transfer your channel ownership to someone else before leaving the channel.","delete":"Delete Channel","delete_desc":"Are you sure want to delete this channel?","id":"Channel ID","name":"Channel Name","topic":"Channel Topic","topic_placeholder":"Let everyone know how to use this channel.","visibility":"Channel Visibility","public":"Public","private":"Private","enable":"Enable","disable":"Disable","allow":"Allow","disallow":"Disallow","add_friend":"Add friend","dm_to_member":"DM to Member","show_email":"Show Email","only_owner":"Only Owner and Admin Can Send Message"},"dm":{"delete":"Delete User","delete_desc":"Are you sure want to delete this user?"},"overview":{"title_feat":"Features","name":"Server Name","desc":"Server Description","upload_desc":"Minimum size is 128x128, We recommend at least 512x512 for the server. Max size limited to 5M.","sign_up":{"title":"Default Sign Up","desc":"Who can sign up to this server.","everyone":"Everyone","invite":"Invitation Link Only"},"admin_create_group":{"title":"Only Admins Can Create Group","desc":"If enabled, only admins can create group.","enable":"Enable","disable":"Disable"},"admin_see_group_members":{"title":"Only Admins Can See Group Members","desc":"If enabled, only admins can see group members.","enable":"Enable","disable":"Disable"},"guest_mode":{"title":"Guest Mode","desc":"If enabled, visitors will see public channels on this server.","enable":"Enable","disable":"Disable"},"url":{"title":"Update Frontend URL","desc":"Update the frontend url"},"lang":{"title":"Languages","desc":"Set the system language"},"theme":{"title":"Theme","desc":"Choose your theme","auto":"Auto","dark":"Dark","light":"Light"},"message_sound":{"title":"Message Sound","desc":"Play sound while receiving new message.","enable":"Enable","disable":"Disable"},"online_status":{"title":"Online Status","desc":"If enabled, members will see the online/offline status of each other.","enable":"Enable","disable":"Disable"},"chat_layout":{"title":"Chat Layout","desc":"Which side to show messages sent by yourself","left":"Left","self_right":"Right"},"contact_verify":{"title":"Contact Verification","desc":"By default all server members can see each other. If you want server members to add and manage their own contacts, please enable the contact feature (admin will be in the contacts list by default).","enable":"Enable","disable":"Disable"}},"data":{"clear_files":{"title":"Files and Images Data","desc":"Click the button below to remove all files and images data of this server.","btn":"Clear Files Data"},"clear_msgs":{"title":"All Messages Data","desc":"Click the button below to remove all the chat data including texts and files of this server.","btn":"Clear Chats Data"},"auto_delete_file":{"title":"Auto-delete File Data","desc":"Set expire time for all file data of this server.","confirm_desc":"All files older than the set time will be deleted.","off":"Off","day1":"1 Day","day7":"7 Days","day30":"30 Days","day90":"90 Days","day180":"180 Days"}},"license":{"signed":"Signed","domain":"Domains","user_limit":"User Limit","expire":"Expired At","create":"Created At","value":"License Value","renew":"Renew License","update":"Update Manually","update_placeholder":"Please input the new license value","renew_select":"Please select the price","tip":{"title":"A chance to get a free license upgrade!","user_test":"Get a free license upgrade through a 25 min user testing","contact":"Book a time here: "},"payment_success":"Payment Success!","back_home":"Back Home","tip_renewing":"Renewing the License, do not close the window!","tip_renewed":"Renew the License Successfully!","tip_renew_error":"Invalided Stripe Session ID","tip_domain":"The license is bound to domain (without port), please confirm or update your setting:","tip_port":"Fill out your domain name without port.","tip_confirm":"Start Payment"},"bot":{"add_api_key":"Add API Key","no_api_key":"No API Key Yet","bot_tip_title":"Bots can send messages to channels.","bot_tip_desc":"Please note that we do not display a Bot\u2019s API key again after generation. You can always generate a new API key of a Bot by clicking \u201cAdd API Key\u201d and this won\u2019t nullify the previous API key(s).","webhook_tip_title":"Webhooks can receive messages in a channel and should a URL provided by you.","webhook_tip_desc":"Please provide a webhook URL that will return 200.","manage":"Manage","how_to_use":"How To Use","manage_desc":"You can delete a bot anytime, the bot user will be removed immediately and all APIs will be nullified.","create_title":"Create Bot","create_desc":"Give your bot a name. You can also add an endpoint webhook URL to receive data.","create_key_title":"Create Bot API Key","create_key_desc":"Create API Key to authenticate your communication","create_key_warning":"Make sure to copy the API Key now. You won\u2019t be able to see it again!","key_copy_and_close":"Copy and Close","delete_title":"Delete Bot","delete_desc":"Are you sure to delete the Bot?","delete_key_title":"Delete Bot API Key","delete_key_desc":"Are you sure to delete this Bot API Key?","webhook_title":"Update Webhook URL","webhook_desc":"Please input a valid URL","col_avatar":"Avatar","col_name":"Bot Name","col_api_key":"API Key (Inbound Messages)","col_webhook":"Endpoint Webhook URL (Outbound)","col_opt":"Operations","col_key_name":"Name","col_key_value":"Key","col_key_create_time":"Created At","col_key_last_used":"Last Used"},"auto_delete_msg":{"title":"Delete messages sent by myself after certain time period. ","desc":"This will remove the messages data stored on both the server and client side.","off":"Off","5_min":"5 minutes","10_min":"10 minutes","1_hour":"1 hour","1_day":"1 day","1_week":"1 week","clear":"Clear all channel messages","clear_title":"Clear all messages in this channel.","clear_desc":"This will remove all the messages data stored on both the server and client side."},"firebase":{"disable":"Disable","use_official":"Use Official Configuration","custom":"Custom","enable":"Enable","token_url":"Token URL","project_id":"Project ID","private_key":"Private Key","client_email":"Client Email"},"smtp":{"enable":"Enable","host":"Host","port":"Port","from":"From","username":"Username","password":"Password","how_to":"How to setup SMTP?","send_test_email":"Send Test Email"},"agora":{"enable":"Enable","how_to":"How to setup Agora?"},"third_app":{"key":"API Secure Key","update":"Update Secret","update_tip":"Are you sure to update API secret? Previous secret will be invalided","key_tip":"The security key agreed between the server and the third-party app is used to encrypt the communication data.","how_to":"How to use?"},"login":{"password":"Password","password_desc":"Allows members login with password.","magic_link":"Magic Link","magic_link_desc":"Allows members login with Magic Link.","google":"Google","google_desc":"Allows members login with Google.","github":"GitHub","github_desc":"Allows members login with GitHub.","metamask":"Metamask","metamask_desc":"Allows members login with Metamask.","oidc":"OIDC","oidc_desc":"Allows members login with OIDC.","oidc_custom":"Custom","more_details":"Need more detail? See our <0>doc</0>."},"widget":{"tip":"Extending VoceChat by embedding the vocechat widget SDK!","code":"Code Example","code_comment":"put this code snippet into your html file","config":"Configuration Description","param_key":"Parameter Key","default_value":"Default Value","remark":"Remarks","custom_style_tip":"if you want customize the widget position more precisely, use the widget element ID in your HTML or CSS file, like this","param_id":"Widget ID (server version>=v0.3.12)","param_host":"Assign the user chatting with visitor(User ID)","param_title":"chat popup title","param_logo":"chat popup logo icon URL","param_auto_reg":"true: Auto register a new user if not exist, false: need visitor to input email and name to register","param_login_token":"If you are using your own platform\'s existing user info to generate VoceChat new account, this is the login token generated by your platform, for more details, please refer to: https://doc.voce.chat/zh-cn/login-with-other-account. Don\'t fill this out for default scenarios (no 3-rd party user system)!","param_theme_color":"The theme color of widget","param_close_width":"The width while widget closed","param_close_height":"The height while widget closed","param_open_width":"The width while widget opened","param_open_height":"The height while widget opened","param_welcome":"Custom welcome message","param_position":"Widget position: left/right","share_link":"Share the widget link so that people can chat with you directly","widget_faq":"Enable Let Everyone Join First"},"version":{"client_version":"Client Version","server_version":"Server Version","build_time":"Build Timestamp","sync":"Sync to the latest version of web client"},"api_doc":{"desc":"We have detailed API documentation that you can build your own chat tool based on.","access":"Access URL:","use_method":"User Method:","step_1":"Step One: Change to your own Server","step_2":"Step Two: Input the login token","step_2_desc":"You can get the token by access X-API-Key http header or just copy the text below:","last":"Every API has a \'Try it Out\' button, and you can debug the API with it"}}')},20396:e=>{"use strict";e.exports=JSON.parse('{"title":"Welcome to {{name}} server","desc":"Here are some steps to help you get started.","invite":"Invite your friends or teammates","start_by_channel":"Create a Channel to Start a Conversation","start_by_dm":"Send a Direct Message","download":"Download Mobile apps","help":"Got questions? Visit our help center","sign_in_tip":"Please sign in to send message","onboarding":{"title":"VoceChat Setup","welcome":"Welcome to your VoceChat!","welcome_desc":"Everything in this space is owned by you. Let\u2019s set up your space!","start":"Start","new_server":"Name your new server","server_desc":"Servers are shared environments where teams can work on projects and chat.","placeholder_server":"Enter server name","create_server":"Create Server","admin_title":"Now let\u2019s set up your admin account","admin_desc":"You are the 1st user and admin of your space!","sign":"Sign Up","invite_title":"Last step: invite others!","invite_desc":"Firstly, who can sign up to this server?","confirm":"Confirm","done_welcome":"Welcome to {{serverName}}","done_title":"Proudly presented by VoceChat","done_desc":"More settings, including domain resolution, privileges, securities, and invites are available in <0>Settings</0>","enter":"Enter","last_tip":"Now let\u2019s invite others!","last_desc":"Send invitation link to your future community members:","done":"Done","welcome_page":"Welcome Page","set_name":"Set Name","admin_account":"Admin Account","who_sign_up":"Who Can Sign Up","invites":"Invites","update_domain_tip":"Incorrect link domain?Please update it here:"}}')},86820:e=>{"use strict";e.exports=JSON.parse('{"welcome":"\ud83d\udc4b Hi there, Nice to meet you!","placeholder_send":"Type and press enter","start_chat":"Start Chat"}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(o,a),o}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{55:"ef0dc87b",88:"90a67d64",151:"bf929f2b",158:"6513a305",163:"fa03ace7",194:"3615133e",242:"61a999a5",243:"2faf5ff2",249:"659153d4",261:"2f1dd4d6",280:"73a4552f",318:"d24e5430",348:"c61af8f6",374:"dd54b63f",446:"1aef8b9d",447:"b3255cd5",489:"c9435ae8",549:"c03ae970",579:"5e44a553",626:"ad7496d5",630:"206c9b00",647:"e087a26e",659:"47e45a1d",698:"f368ab03",723:"30b4a823",736:"53d56c25",773:"8ed2cb74",814:"0de69a67",833:"476d208e",835:"152dad8b",854:"78d2f1ea",909:"faf0d2df",966:"97699b5a",973:"ce6d6d9a",985:"d1066343"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{280:"cdf1fe26",773:"319a0232",835:"8a09720a"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="vocechat-web:";n.l=(r,i,o,a)=>{if(e[r])e[r].push(i);else{var s,u;if(void 0!==o)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var f=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),u&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var i=n.miniCssF(e),o=n.p+i;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(r=0;r<o.length;r++){var a;if((i=(a=o[r]).getAttribute("data-href"))===e||i===t)return a}})(i,o))return t();((e,t,r,i,o)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)i();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,u=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");u.name="ChunkLoadError",u.code="CSS_CHUNK_LOAD_FAILED",u.type=r,u.request=s,a.parentNode&&a.parentNode.removeChild(a),o(u)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,o,null,t,r)})),t={792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{280:1,773:1,835:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={792:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var i,o,[a,s,u]=r,l=0;if(a.some((t=>0!==e[t]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(u)u(n)}for(t&&t(r);l<a.length;l++)o=a[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=globalThis.webpackChunkvocechat_web=globalThis.webpackChunkvocechat_web||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.nc=void 0,(()=>{"use strict";var e=n(76697),t=n(44109);function r(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var i="function"===typeof Symbol&&Symbol.observable||"@@observable",o=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function s(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var o;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(r(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(r(1));return n(u)(e,t)}if("function"!==typeof e)throw new Error(r(2));var l=e,c=t,d=[],f=d,p=!1;function h(){f===d&&(f=d.slice())}function g(){if(p)throw new Error(r(3));return c}function m(e){if("function"!==typeof e)throw new Error(r(4));if(p)throw new Error(r(5));var t=!0;return h(),f.push(e),function(){if(t){if(p)throw new Error(r(6));t=!1,h();var n=f.indexOf(e);f.splice(n,1),d=null}}}function y(e){if(!s(e))throw new Error(r(7));if("undefined"===typeof e.type)throw new Error(r(8));if(p)throw new Error(r(9));try{p=!0,c=l(c,e)}finally{p=!1}for(var t=d=f,n=0;n<t.length;n++){(0,t[n])()}return e}return y({type:a.INIT}),(o={dispatch:y,subscribe:m,getState:g,replaceReducer:function(e){if("function"!==typeof e)throw new Error(r(10));l=e,y({type:a.REPLACE})}})[i]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(r(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[i]=function(){return this},e},o}var l=n(86982);function c(e){return"object"===typeof e}const d="dnd-core/INIT_COORDS",f="dnd-core/BEGIN_DRAG",p="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",g="dnd-core/DROP",m="dnd-core/END_DRAG";function y(e,t){return{type:d,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const v={type:d,payload:{clientOffset:null,sourceClientOffset:null}};function b(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:i,getSourceClientOffset:o}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(y(i)),function(e,t,n){(0,l.V)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,l.V)(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,s);const u=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==u)return void e.dispatch(v);let d=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){(0,l.V)("function"===typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),d=o(u)}e.dispatch(y(i,d));const p=s.getSource(u).beginDrag(a,u);if(null==p)return;!function(e){(0,l.V)(c(e),"Item must be an object.")}(p),s.pinSource(u);const h=s.getSourceType(u);return{type:f,payload:{itemType:h,item:p,sourceId:u,clientOffset:i||null,sourceClientOffset:d||null,isSourcePublic:!!r}}}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){w(e,t,n[t])}))}return e}function S(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){(0,l.V)(e.isDragging(),"Cannot call drop while not dragging."),(0,l.V)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const i=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);i.forEach(((i,o)=>{const a=function(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;(function(e){(0,l.V)("undefined"===typeof e||c(e),"Drop result must either be an object or undefined.")})(o),"undefined"===typeof o&&(o=0===t?{}:r.getDropResult());return o}(i,o,r,n),s={type:g,payload:{dropResult:_({},t,a)}};e.dispatch(s)}))}}function x(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){(0,l.V)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(t,r),n.unpinSource()}return{type:m}}}function k(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function C(e){return function(t,{clientOffset:n}={}){!function(e){(0,l.V)(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r];k(t.getTargetType(i),n)||e.splice(r,1)}}(r,o,i.getItemType()),function(e,t,n){(0,l.V)(t.isDragging(),"Cannot call hover while not dragging."),(0,l.V)(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];(0,l.V)(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array.");const i=n.getTarget(t);(0,l.V)(i,"Expected targetIds to be registered.")}}(r,i,o),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,i,o),{type:h,payload:{targetIds:r,clientOffset:n||null}}}}function E(e){return function(){if(e.getMonitor().isDragging())return{type:p}}}class O{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:b(e),publishDragSource:E(e),hover:C(e),drop:S(e),endDrag:x(e)}}(this);return Object.keys(n).reduce(((r,i)=>{const o=n[i];var a;return r[i]=(a=o,(...n)=>{const r=a.apply(e,n);"undefined"!==typeof r&&t(r)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function T(e,t){return{x:e.x-t.x,y:e.y-t.y}}const A=[],I=[];A.__IS_NONE__=!0,I.__IS_ALL__=!0;class M{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;(0,l.V)("function"===typeof e,"listener must be a function."),(0,l.V)("undefined"===typeof n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),i=t.stateId;try{const o=i===r||i===r+1&&!function(e,t){return e!==A&&(e===I||"undefined"===typeof t||(n=e,t.filter((e=>n.indexOf(e)>-1))).length>0);var n}(t.dirtyHandlerIds,n);o||e()}finally{r=i}}))}subscribeToOffsetChange(e){(0,l.V)("function"===typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return(0,l.V)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if((0,l.V)(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return k(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if((0,l.V)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!k(r,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const a=o.indexOf(e);return n?a===o.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?T((o=r,{x:(i=t).x+o.x,y:i.y+o.y}),n):null;var i,o}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?T(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const P="undefined"!==typeof global?global:self,D=P.MutationObserver||P.WebKitMutationObserver;function L(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const j="function"===typeof D?function(e){let t=1;const n=new D(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:L;class N{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const R=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=j(this.flush),this.requestErrorThrow=L((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},$=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new N(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(R.registerPendingError);const z="dnd-core/ADD_SOURCE",U="dnd-core/ADD_TARGET",F="dnd-core/REMOVE_SOURCE",q="dnd-core/REMOVE_TARGET";function V(e,t){t&&Array.isArray(e)?e.forEach((e=>V(e,!1))):(0,l.V)("string"===typeof e||"symbol"===typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var H;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(H||(H={}));let B=0;function W(e){const t=(B++).toString();switch(e){case H.SOURCE:return`S${t}`;case H.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Q(e){switch(e[0]){case"S":return H.SOURCE;case"T":return H.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Y(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}class K{addSource(e,t){V(e),function(e){(0,l.V)("function"===typeof e.canDrag,"Expected canDrag to be a function."),(0,l.V)("function"===typeof e.beginDrag,"Expected beginDrag to be a function."),(0,l.V)("function"===typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(H.SOURCE,e,t);return this.store.dispatch(function(e){return{type:z,payload:{sourceId:e}}}(n)),n}addTarget(e,t){V(e,!0),function(e){(0,l.V)("function"===typeof e.canDrop,"Expected canDrop to be a function."),(0,l.V)("function"===typeof e.hover,"Expected hover to be a function."),(0,l.V)("function"===typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(H.TARGET,e,t);return this.store.dispatch(function(e){return{type:U,payload:{targetId:e}}}(n)),n}containsHandler(e){return Y(this.dragSources,e)||Y(this.dropTargets,e)}getSource(e,t=!1){(0,l.V)(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return(0,l.V)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return(0,l.V)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return(0,l.V)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Q(e)===H.SOURCE}isTargetId(e){return Q(e)===H.TARGET}removeSource(e){var t;(0,l.V)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:F,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},R.enqueueTask($.create(t))}removeTarget(e){(0,l.V)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:q,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);(0,l.V)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){(0,l.V)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=W(e);return this.types.set(r,t),e===H.SOURCE?this.dragSources.set(r,n):e===H.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const G=(e,t)=>e===t;function J(e=A,t){switch(t.type){case h:break;case z:case U:case q:case F:return A;default:return I}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach(((e,t)=>{1===e&&i.push(t)})),i}(n,r);if(!(i.length>0||!function(e,t,n=G){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r)))return A;const o=r[r.length-1],a=n[n.length-1];return o!==a&&(o&&i.push(o),a&&i.push(a)),i}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const X={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function ee(e=X,t){const{payload:n}=t;switch(t.type){case d:case f:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case h:return r=e.clientOffset,i=n.clientOffset,!r&&!i||r&&i&&r.x===i.x&&r.y===i.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Z(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case m:case g:return X;default:return e}var r,i}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){te(e,t,n[t])}))}return e}const re={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function ie(e=re,t){const{payload:n}=t;switch(t.type){case f:return ne({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case p:return ne({},e,{isSourcePublic:!0});case h:return ne({},e,{targetIds:n.targetIds});case q:return-1===e.targetIds.indexOf(n.targetId)?e:ne({},e,{targetIds:(r=e.targetIds,i=n.targetId,r.filter((e=>e!==i)))});case g:return ne({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case m:return ne({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,i}function oe(e=0,t){switch(t.type){case z:case U:return e+1;case F:case q:return e-1;default:return e}}function ae(e=0){return e+1}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){se(e,t,n[t])}))}return e}function le(e={},t){return{dirtyHandlerIds:J(e.dirtyHandlerIds,{type:t.type,payload:ue({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",i=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:i||null),n))})}),dragOffset:ee(e.dragOffset,t),refCount:oe(e.refCount,t),dragOperation:ie(e.dragOperation,t),stateId:ae(e.stateId)};var n,r,i}function ce(e,t=void 0,n={},r=!1){const i=function(e){const t="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return u(le,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),o=new M(i,new K(i)),a=new O(i,o),s=e(a,t,n);return a.receiveBackend(s),a}var de=n(9924);function fe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}let pe=0;const he=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ge=(0,e.memo)((function(n){var{children:r}=n,i=fe(n,["children"]);const[o,a]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=me(),n,r){const i=t;i[he]||(i[he]={dragDropManager:ce(e,t,n,r)});return i[he]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(i);return(0,e.useEffect)((()=>{if(a){const e=me();return++pe,()=>{0===--pe&&(e[he]=null)}}}),[]),(0,t.jsx)(de.M.Provider,{value:o,children:r})}));function me(){return"undefined"!==typeof global?global:window}function ye(e){let t=null;return()=>(null==t&&(t=e()),t)}class ve{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const i=[];return n.forEach((e=>i.push(e))),i}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter((e=>e!==r))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class be{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}var we=n(76758);function _e(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const Se={[we.FILE]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[we.HTML]:{exposeProperties:{html:(e,t)=>_e(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[we.URL]:{exposeProperties:{urls:(e,t)=>_e(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[we.TEXT]:{exposeProperties:{text:(e,t)=>_e(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function xe(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Se).filter((e=>{const n=Se[e];return!!(null===n||void 0===n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const ke=ye((()=>/firefox/i.test(navigator.userAgent))),Ce=ye((()=>Boolean(window.safari)));class Ee{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:i,c3s:o}=this;let a=t.length-1;if(e===t[a])return n[a];let s,u=0,l=o.length-1;for(;u<=l;){s=Math.floor(.5*(u+l));const r=t[s];if(r<e)u=s+1;else{if(!(r>e))return n[s];l=s-1}}a=Math.max(0,l);const c=e-t[a],d=c*c;return n[a]+r[a]*c+i[a]*d+o[a]*c*d}constructor(e,t){const{length:n}=e,r=[];for(let p=0;p<n;p++)r.push(p);r.sort(((t,n)=>e[t]<e[n]?-1:1));const i=[],o=[],a=[];let s,u;for(let p=0;p<n-1;p++)s=e[p+1]-e[p],u=t[p+1]-t[p],o.push(s),i.push(u),a.push(u/s);const l=[a[0]];for(let p=0;p<o.length-1;p++){const e=a[p],t=a[p+1];if(e*t<=0)l.push(0);else{s=o[p];const n=o[p+1],r=s+n;l.push(3*r/((r+n)/e+(r+s)/t))}}l.push(a[a.length-1]);const c=[],d=[];let f;for(let p=0;p<l.length-1;p++){f=a[p];const e=l[p],t=1/o[p],n=e+l[p+1]-f-f;c.push((f-e-n)*t),d.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=c,this.c3s=d}}const Oe=1;function Te(e){const t=e.nodeType===Oe?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Ae(e){return{x:e.clientX,y:e.clientY}}function Ie(e,t,n,r,i){const o=function(e){var t;return"IMG"===e.nodeName&&(ke()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=Te(o?e:t),s={x:n.x-a.x,y:n.y-a.y},{offsetWidth:u,offsetHeight:l}=e,{anchorX:c,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:p}=function(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return Ce()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,t,u,l),{offsetX:h,offsetY:g}=i,m=0===g||g;return{x:0===h||h?h:new Ee([0,.5,1],[s.x,s.x/u*f,s.x+f-u]).interpolate(c),y:m?g:(()=>{let e=new Ee([0,.5,1],[s.y,s.y/l*p,s.y+p-l]).interpolate(d);return Ce()&&o&&(e+=(window.devicePixelRatio-1)*p),e})()}}class Me{get window(){return this.globalContext?this.globalContext:"undefined"!==typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pe(e,t,n[t])}))}return e}class Le{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return De({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return De({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(we).some((t=>we[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=Se[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new be(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&Te(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!==typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!==typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=Ae(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,i=xe(r);if(this.monitor.isDragging()){if(r&&"function"===typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){const{anchorX:e,anchorY:o,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),u=Ie(t,i,n,{anchorX:e,anchorY:o},{offsetX:a,offsetY:s});r.setDragImage(i,u.x,u.y)}}try{null===r||void 0===r||r.setData("application/json",{})}catch(o){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(i)this.beginDragNativeItem(i);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=xe(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:Ae(e)});t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=Ae(e),this.scheduleHover(t);(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):xe(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:Ae(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"===typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new Me(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new ve(this.isNodeInDocument)}}var je=n(55119),Ne=n(49522),Re=n(44154),$e=n.n(Re),ze=(n(76432),n(36379),n(94482),n(63698),n(36480),n(62474),n(10937)),Ue=n.n(ze),Fe=n(45772),qe=n.n(Fe),Ve=n(8585),He=n.n(Ve),Be=n(24896),We=n.n(Be);$e().extend(Ue()),$e().extend(We()),$e().extend(qe()),$e().extend(He());var Qe=n(68883);Qe.Ay.setDefaultProps({duration:0,delay:[0,0],plugins:[Qe.M]});var Ye=n(39265),Ke=n(53754),Ge=n(29833);const Je=e=>{const{id:n}=e,{t:r}=(0,Ye.Bd)();return(0,t.jsxs)("div",{className:"flex flex-col md:flex-row items-center gap-2 whitespace-nowrap",children:[(0,t.jsx)("div",{children:(0,t.jsx)(Ye.x6,{i18nKey:"mobile_app",children:(0,t.jsx)("strong",{className:"font-bold"})})}),(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(Ge.A,{className:"mini main",onClick:()=>{localStorage.removeItem(Ke.pC),Ne.Ay.dismiss(n),window.open("https://voce.chat#download")},children:r("action.open")}),(0,t.jsx)(Ge.A,{className:"mini cancel",onClick:()=>{localStorage.removeItem(Ke.pC),Ne.Ay.dismiss(n)},children:r("action.dismiss")})]})]})},Ze=()=>{const[n,r]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{r(!!localStorage.getItem(Ke.pC))}),[]),(0,e.useEffect)((()=>{n&&(0,Ne.Ay)((e=>(0,t.jsx)(Je,{id:e.id})),{duration:1/0,position:"top-right"})}),[n]),null},Xe=({id:n,handleUpdate:r})=>{const{t:i}=(0,Ye.Bd)();return(0,e.useEffect)((()=>{localStorage.setItem(Ke.pC,"1")}),[]),(0,t.jsxs)("div",{className:"flex flex-col md:flex-row items-center gap-2 whitespace-nowrap",children:[(0,t.jsx)("div",{children:(0,t.jsx)(Ye.x6,{i18nKey:"new_version",children:(0,t.jsx)("strong",{className:"font-bold"})})}),(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(Ge.A,{className:"mini main",onClick:r,children:i("action.update")}),(0,t.jsx)(Ge.A,{className:"mini cancel",onClick:()=>Ne.Ay.dismiss(n),children:i("action.dismiss")})]})]})};var et=n(36506),tt=n(50276),nt=n(24892),rt=n(66626),it=n(50595),ot=n(64220);const at=()=>{(0,ot.XV)();const{name:e,logo:n}=(0,it.GV)((e=>e.server),et.bN);return(0,t.jsxs)(rt.m,{children:[e&&(0,t.jsxs)("title",{children:[e," Web App"]}),n&&(0,t.jsx)("link",{rel:"icon",href:`${n}?ts=${(new Date).getTime()}`})]})};var st=n(79554),ut=n(57103),lt=n(35885);const ct=Ke.TL.map((e=>({path:e}))),dt=({children:e,redirectTo:n="/login",guestMode:r})=>{const i=(0,nt.zy)(),o=(0,ut.ue)(ct,i),a=!!o&&!!o[0].pathname,s=(0,it.GV)((e=>e.authData.token),et.bN),u=(0,it.GV)((e=>e.authData.guest),et.bN),l=(0,it.GV)((e=>e.authData.initialized),et.bN);if(console.info("check basic info",r),"undefined"==typeof r)return window.AUTO_RELOAD=!0,(0,t.jsx)(lt.A,{fullscreen:!0,reload:!0,context:"auth-route"});if(!l)return(0,t.jsx)(nt.C5,{to:"/onboarding",replace:!0});if(!s){const e="/setting/my_account";localStorage.setItem(Ke.AH,e==i.pathname?"/":`${i.pathname}${i.search}`);return r&&a?(0,t.jsx)(nt.C5,{to:"/guest_login",replace:!0}):(0,t.jsx)(nt.C5,{to:n,replace:!0})}if(s&&u&&!a)return(0,t.jsx)(nt.C5,{to:"/",replace:!0});const c=localStorage.getItem(Ke.AH);return c?(localStorage.removeItem(Ke.AH),(0,t.jsx)(nt.C5,{to:c,replace:!0})):e},ft=(0,e.memo)(dt,((e,t)=>e.guestMode===t.guestMode));var pt=n(99593);const ht=({children:e,redirectTo:n="/"})=>{const{isLoading:r}=(0,pt.GT)(),{token:i,initialized:o,guest:a}=(0,it.GV)((e=>e.authData),et.bN);return r?null:o?i&&!a?(0,t.jsx)(nt.C5,{to:n,replace:!0}):e:(0,t.jsx)(nt.C5,{to:"/onboarding",replace:!0})};Promise.resolve(!1),Promise.resolve(!0);var gt=Promise.resolve();function mt(e,t){return e||(e=0),new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))}function yt(){return Math.random().toString(36).substring(2)}var vt=0;function bt(){var e=1e3*Date.now();return e<=vt&&(e=vt+1),vt=e,e}var wt={create:function(e){var t={time:bt(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t},close:function(e){e.bc.close(),e.subFns=[]},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){try{return e.bc.postMessage(t,!1),gt}catch(n){return Promise.reject(n)}},canBeUsed:function(){if("undefined"!==typeof globalThis&&globalThis.Deno&&globalThis.Deno.args)return!0;if("undefined"===typeof window&&"undefined"===typeof self||"function"!==typeof BroadcastChannel)return!1;if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0},type:"native",averageResponseTime:function(){return 150},microSeconds:bt};class _t{ttl;map=new Map;_to=!1;constructor(e){this.ttl=e}has(e){return this.map.has(e)}add(e){this.map.set(e,St()),this._to||(this._to=!0,setTimeout((()=>{this._to=!1,function(e){const t=St()-e.ttl,n=e.map[Symbol.iterator]();for(;;){const r=n.next().value;if(!r)return;const i=r[0];if(!(r[1]<t))return;e.map.delete(i)}}(this)}),0))}clear(){this.map.clear()}}function St(){return Date.now()}function xt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return"undefined"===typeof t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"===typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=12e4),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),"undefined"===typeof t.node.useFastPath&&(t.node.useFastPath=!0),t}var kt="pubkey.broadcast-channel-0-",Ct="messages",Et={durability:"relaxed"};function Ot(){if("undefined"!==typeof indexedDB)return indexedDB;if("undefined"!==typeof window){if("undefined"!==typeof window.mozIndexedDB)return window.mozIndexedDB;if("undefined"!==typeof window.webkitIndexedDB)return window.webkitIndexedDB;if("undefined"!==typeof window.msIndexedDB)return window.msIndexedDB}return!1}function Tt(e){e.commit&&e.commit()}function At(e,t){var n=e.transaction(Ct,"readonly",Et),r=n.objectStore(Ct),i=[],o=IDBKeyRange.bound(t+1,1/0);if(r.getAll){var a=r.getAll(o);return new Promise((function(e,t){a.onerror=function(e){return t(e)},a.onsuccess=function(t){e(t.target.result)}}))}return new Promise((function(e,a){var s=function(){try{return o=IDBKeyRange.bound(t+1,1/0),r.openCursor(o)}catch(e){return r.openCursor()}}();s.onerror=function(e){return a(e)},s.onsuccess=function(r){var o=r.target.result;o?o.value.id<t+1?o.continue(t+1):(i.push(o.value),o.continue()):(Tt(n),e(i))}}))}function It(e){return function(e,t){var n=Date.now()-t,r=e.transaction(Ct,"readonly",Et),i=r.objectStore(Ct),o=[];return new Promise((function(e){i.openCursor().onsuccess=function(t){var i=t.target.result;if(i){var a=i.value;a.time<n?(o.push(a),i.continue()):(Tt(r),e(o))}else e(o)}}))}(e.db,e.options.idb.ttl).then((function(t){return function(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(Ct,"readwrite",Et).objectStore(Ct);return Promise.all(t.map((function(e){var t=n.delete(e);return new Promise((function(e){t.onsuccess=function(){return e()}}))})))}(e,t.map((function(e){return e.id})))}))}function Mt(e){e.closed||Pt(e).then((function(){return mt(e.options.idb.fallbackInterval)})).then((function(){return Mt(e)}))}function Pt(e){return e.closed?gt:e.messagesCallback?At(e.db,e.lastCursorId).then((function(t){var n=t.filter((function(e){return!!e})).map((function(t){return t.id>e.lastCursorId&&(e.lastCursorId=t.id),t})).filter((function(t){return function(e,t){return e.uuid!==t.uuid&&!t.eMIs.has(e.id)&&!(e.data.time<t.messagesCallbackTime)}(t,e)})).sort((function(e,t){return e.time-t.time}));return n.forEach((function(t){e.messagesCallback&&(e.eMIs.add(t.id),e.messagesCallback(t.data))})),gt})):gt}var Dt={create:function(e,t){return t=xt(t),function(e){var t=Ot(),n=kt+e,r=t.open(n);return r.onupgradeneeded=function(e){e.target.result.createObjectStore(Ct,{keyPath:"id",autoIncrement:!0})},new Promise((function(e,t){r.onerror=function(e){return t(e)},r.onsuccess=function(){e(r.result)}}))}(e).then((function(n){var r={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:yt(),eMIs:new _t(2*t.idb.ttl),writeBlockPromise:gt,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){r.closed=!0,t.idb.onclose&&t.idb.onclose()},Mt(r),r}))},close:function(e){e.closed=!0,e.db.close()},onMessage:function(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,Pt(e)},postMessage:function(e,t){return e.writeBlockPromise=e.writeBlockPromise.then((function(){return function(e,t,n){var r={uuid:t,time:Date.now(),data:n},i=e.transaction([Ct],"readwrite",Et);return new Promise((function(e,t){i.oncomplete=function(){return e()},i.onerror=function(e){return t(e)},i.objectStore(Ct).add(r),Tt(i)}))}(e.db,e.uuid,t)})).then((function(){var t,n;0===(t=0,n=10,Math.floor(Math.random()*(n-t+1)+t))&&It(e)})),e.writeBlockPromise},canBeUsed:function(){return!!Ot()},type:"idb",averageResponseTime:function(e){return 2*e.idb.fallbackInterval},microSeconds:bt},Lt="pubkey.broadcastChannel-";function jt(){var e;if("undefined"===typeof window)return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(t){}return e}function Nt(e){return Lt+e}function Rt(){var e=jt();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch(n){return!1}return!0}var $t={create:function(e,t){if(t=xt(t),!Rt())throw new Error("BroadcastChannel: localstorage cannot be used");var n=yt(),r=new _t(t.localstorage.removeTimeout),i={channelName:e,uuid:n,eMIs:r};return i.listener=function(e,t){var n=Nt(e),r=function(e){e.key===n&&t(JSON.parse(e.newValue))};return window.addEventListener("storage",r),r}(e,(function(e){i.messagesCallback&&e.uuid!==n&&e.token&&!r.has(e.token)&&(e.data.time&&e.data.time<i.messagesCallbackTime||(r.add(e.token),i.messagesCallback(e.data)))})),i},close:function(e){var t;t=e.listener,window.removeEventListener("storage",t)},onMessage:function(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t},postMessage:function(e,t){return new Promise((function(n){mt().then((function(){var r=Nt(e.channelName),i={token:yt(),time:Date.now(),data:t,uuid:e.uuid},o=JSON.stringify(i);jt().setItem(r,o);var a=document.createEvent("Event");a.initEvent("storage",!0,!0),a.key=r,a.newValue=o,window.dispatchEvent(a),n()}))}))},canBeUsed:Rt,type:"localstorage",averageResponseTime:function(){var e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?240:120},microSeconds:bt},zt=bt,Ut=new Set;var Ft={create:function(e){var t={time:zt(),name:e,messagesCallback:null};return Ut.add(t),t},close:function(e){Ut.delete(e)},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){return new Promise((function(n){return setTimeout((function(){Array.from(Ut).forEach((function(n){n.name===e.name&&n!==e&&n.messagesCallback&&n.time<t.time&&n.messagesCallback(t)})),n()}),5)}))},canBeUsed:function(){return!0},type:"simulate",averageResponseTime:function(){return 5},microSeconds:zt},qt=[wt,Dt,$t];var Vt,Ht=new Set,Bt=0,Wt=function(e,t){this.id=Bt++,Ht.add(this),this.name=e,Vt&&(t=Vt),this.options=xt(t),this.method=function(e){var t=[].concat(e.methods,qt).filter(Boolean);if(e.type){if("simulate"===e.type)return Ft;var n=t.find((function(t){return t.type===e.type}));if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter((function(e){return"idb"!==e.type})));var r=t.find((function(e){return e.canBeUsed()}));if(r)return r;throw new Error("No usable method found in "+JSON.stringify(qt.map((function(e){return e.type}))))}(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,function(e){var t=e.method.create(e.name,e.options);n=t,n&&"function"===typeof n.then?(e._prepP=t,t.then((function(t){e._state=t}))):e._state=t;var n}(this)};function Qt(e,t,n){var r={time:e.method.microSeconds(),type:t,data:n};return(e._prepP?e._prepP:gt).then((function(){var t=e.method.postMessage(e._state,r);return e._uMP.add(t),t.catch().then((function(){return e._uMP.delete(t)})),t}))}function Yt(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function Kt(e,t,n){e._addEL[t].push(n),function(e){if(!e._iL&&Yt(e)){var t=function(t){e._addEL[t.type].forEach((function(e){t.time>=e.time&&e.fn(t.data)}))},n=e.method.microSeconds();e._prepP?e._prepP.then((function(){e._iL=!0,e.method.onMessage(e._state,t,n)})):(e._iL=!0,e.method.onMessage(e._state,t,n))}}(e)}function Gt(e,t,n){e._addEL[t]=e._addEL[t].filter((function(e){return e!==n})),function(e){if(e._iL&&!Yt(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}(e)}Wt._pubkey=!0,Wt.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return Qt(this,"message",e)},postInternal:function(e){return Qt(this,"internal",e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e};Gt(this,"message",this._onML),e&&"function"===typeof e?(this._onML=t,Kt(this,"message",t)):this._onML=null},addEventListener:function(e,t){Kt(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){Gt(this,e,this._addEL[e].find((function(e){return e.fn===t})))},close:function(){var e=this;if(!this.closed){Ht.delete(this),this.closed=!0;var t=this._prepP?this._prepP:gt;return this._onML=null,this._addEL.message=[],t.then((function(){return Promise.all(Array.from(e._uMP))})).then((function(){return Promise.all(e._befC.map((function(e){return e()})))})).then((function(){return e.method.close(e._state)}))}},get type(){return this.method.type},get isClosed(){return this.closed}};const Jt=()=>{const[t,n]=(0,e.useState)(!0);return(0,e.useEffect)((()=>{const e=new Wt("VOCECHAT_CHANNEL");e.postMessage({type:"NEW_TAB",message:"new tab opened"});const t=e=>{"NEW_TAB"==e.type&&n(!1)};return e.addEventListener("message",t),()=>{e.removeEventListener("message",t),e.close()}}),[]),{tabActive:t}};var Zt=n(92623),Xt=n(81477);const en=()=>{const{t:n}=(0,Ye.Bd)(),{stopStreaming:r}=(0,Zt.A)();(0,e.useEffect)((()=>{console.info("debug SSE: stopStreaming at inactive screen"),r();const e=document.title;return document.title=`[INACTIVE] ${e}`,()=>{document.title=e}}),[]);return(0,t.jsx)("div",{className:"w-screen h-screen dark:bg-gray-700 flex-center text-4xl font-bold",children:(0,t.jsxs)("div",{className:"flex flex-col items-center text-center gap-2",children:[(0,t.jsx)("h1",{className:"text-lg md:text-4xl dark:text-white font-bold",children:n("inactive.title")}),(0,t.jsx)("p",{className:"text-gray-400 text-xs md:text-sm font-semibold",children:n("inactive.desc")}),(0,t.jsx)(Ge.A,{className:"mt-4 uppercase",onClick:()=>{(0,Xt.Mm)()},children:n("action.reload")})]})})},tn=({children:e})=>{const{tabActive:n}=Jt();return n?e:(0,t.jsx)(en,{})};function nn(){return(0,t.jsx)("div",{children:"404 page"})}var rn=n(27020);const on=()=>{var n;const{channel_id:r}=(0,nt.g)(),i=(0,it.GV)((e=>e.server),et.bN),o=(0,nt.Zp)(),[a,{isLoading:s,data:u,isSuccess:l}]=(0,rn.PL)(),[c,{data:d,isSuccess:f}]=(0,rn.h3)(),[p,{data:h,isLoading:g}]=(0,pt.BQ)(),[m]=(0,tt.ok)(new URLSearchParams(location.search)),y=null!==(n=m.get("magic_token"))&&void 0!==n?n:"";(0,e.useEffect)((()=>{r&&c(+r)}),[r]),(0,e.useEffect)((()=>{y&&p(y)}),[y]),(0,e.useEffect)((()=>{u&&l&&(o(`/chat/channel/${u.gid}`),location.reload())}),[l,u]);return f?(0,t.jsx)("div",{className:"flex-center flex-col gap-4 h-screen overflow-x-hidden overflow-y-auto dark:bg-gray-700 dark:text-slate-100",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4 items-center py-8 px-10 rounded-lg shadow-md bg-slate-100/30 dark:bg-gray-800 text-center",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)("img",{src:i.logo,className:"w-20 h-20",alt:"server logo"}),(0,t.jsx)("h2",{className:"text-2xl font-bold",children:i.name})]}),(0,t.jsx)("span",{children:g?"Checking...":h?(0,t.jsxs)(t.Fragment,{children:["You are invited to join private channel"," ",(0,t.jsxs)("strong",{className:"text-primary-400",children:["#",null===d||void 0===d?void 0:d.name]})]}):"The invite link is invalid or expired"}),(0,t.jsx)(Ge.A,{disabled:s||g||!h,onClick:async()=>{const e=await a({magic_token:y});if("error"in e){switch(e.error.status||e.error.originalStatus){case 409:alert("The invite link is invalid or expired");break;case 412:alert("You are already in this channel")}}},children:"Join"})]})}):null},an=({key:n,children:r})=>(0,t.jsx)(e.Suspense,{fallback:(0,t.jsx)(lt.A,{fullscreen:!0,context:"lazy"}),children:r},null!==n&&void 0!==n?n:(new Date).getTime());var sn=n(49844);const un=()=>{const[t,n]=(0,e.useState)(null);return(0,e.useEffect)((()=>{const e="undefined"!==typeof window&&navigator.userAgent.match(/Android/i);n(e?[{link:"https://play.google.com/store/apps/details?id=com.privoce.vocechatclient",icon:"https://voce.chat/img/icon.app.google.play.png"},{link:"https://s.voce.chat/vocechat.android.apk",icon:"https://voce.chat/img/icon.app.apk.png"}]:{link:"https://apps.apple.com/app/vocechat/id1631779678",icon:"https://voce.chat/img/icon.app.ios.png"})}),[]),t},ln=()=>{const{magic_token:n}=(0,nt.g)(),{t:r}=(0,Ye.Bd)("auth",{keyPrefix:"invite_mobile"}),i=un(),[o,a]=(0,e.useState)(""),{copy:s,copied:u}=(0,sn.A)();(0,e.useEffect)((()=>{!(0,Xt.Fr)()&&o&&(location.href=o)}),[o]),(0,e.useEffect)((()=>{n&&a(`${location.origin}/#/register?magic_token=${n}`)}),[n]);const l=`vocechat://i?magic_link=${encodeURIComponent(o)}`,c=`${o}&ctx=web`;return o?(0,t.jsxs)("main",{className:"flex h-screen flex-col items-center justify-between",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("img",{src:"https://voce.chat/img/app.grid.png",className:"object-cover max-w-[unset]",alt:"APP grid"}),(0,t.jsxs)("span",{className:"absolute left-1/2 bottom-8 -translate-x-1/2 bg-transparent font-bold text-lg ",children:[r("join"),"!"]})]}),(0,t.jsxs)("p",{className:"text-md text-gray-600 my-5",children:[r("have_already"),(0,t.jsx)("a",{href:l,className:"text-primary-500 px-2",children:r("open")})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center mb-12",children:[c&&(0,t.jsx)("a",{href:c,className:"p-2 mt-2 rounded bg-primary-500 text-white",children:"Continue with webapp"}),(0,t.jsxs)("div",{className:"text-gray-600 w-[80%] flex flex-col items-center gap-2 my-4",children:[(0,t.jsx)("i",{className:"text-gray-400 not-italic text-xs break-words text-center",children:"\ud83d\udc47App not showing? You may copy the following invitation link and paste it into VoceChat App."}),(0,t.jsx)("div",{className:"text-left bg-gray-200 font-bold p-2 rounded-md break-all overflow-y-scroll resize-none",spellCheck:!1,children:o}),(0,t.jsx)(Ge.A,{onClick:s.bind(null,o,!1),className:"small w-fit",children:u?"Copied":"Copy"})]}),i?Array.isArray(i)?(0,t.jsxs)("ul",{className:"my-10",children:[" ",i.map((e=>{const{link:n,icon:r}=e;return(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)("img",{alt:"App Download Icon",src:r,className:"max-w-[80%] h-auto m-auto mb-2"})})},n)}))]}):(0,t.jsx)("a",{href:i.link,target:"_blank",rel:"noopener noreferrer",className:"my-10",children:(0,t.jsx)("img",{alt:"App Download Icon",src:i.icon,className:"max-w-[80%] h-auto m-auto"})}):null]})]}):null},cn=()=>{const[t]=(0,ot.tT)(),[n]=(0,pt.mA)();return(0,e.useEffect)((()=>{t(),n()}),[]),null},dn=(0,e.lazy)((()=>n.e(626).then(n.bind(n,11626)))),fn=(0,e.lazy)((()=>n.e(318).then(n.bind(n,64318)))),pn=(0,e.lazy)((()=>n.e(579).then(n.bind(n,39579)))),hn=(0,e.lazy)((()=>Promise.all([n.e(698),n.e(348),n.e(736)]).then(n.bind(n,83736)))),gn=(0,e.lazy)((()=>Promise.all([n.e(698),n.e(348),n.e(151)]).then(n.bind(n,86151)))),mn=(0,e.lazy)((()=>n.e(647).then(n.bind(n,86647)))),yn=(0,e.lazy)((()=>Promise.all([n.e(489),n.e(659),n.e(973),n.e(723),n.e(163),n.e(549),n.e(854)]).then(n.bind(n,28854)))),vn=(0,e.lazy)((()=>n.e(447).then(n.bind(n,38447)))),bn=(0,e.lazy)((()=>Promise.all([n.e(489),n.e(659),n.e(835),n.e(723),n.e(833),n.e(630)]).then(n.bind(n,28380)))),wn=(0,e.lazy)((()=>n.e(242).then(n.bind(n,21238)))),_n=(0,e.lazy)((()=>Promise.all([n.e(489),n.e(973),n.e(723),n.e(163),n.e(549),n.e(985),n.e(814)]).then(n.bind(n,47665)))),Sn=(0,e.lazy)((()=>Promise.all([n.e(489),n.e(723),n.e(966)]).then(n.bind(n,72966)))),xn=(0,e.lazy)((()=>Promise.all([n.e(489),n.e(659),n.e(973),n.e(249),n.e(723),n.e(163),n.e(549),n.e(985),n.e(280)]).then(n.bind(n,66293)))),kn=(0,e.lazy)((()=>Promise.all([n.e(489),n.e(261),n.e(723),n.e(194),n.e(158)]).then(n.bind(n,95158)))),Cn=(0,e.lazy)((()=>Promise.all([n.e(489),n.e(723),n.e(194),n.e(88)]).then(n.bind(n,19608)))),En=(0,e.lazy)((()=>n.e(243).then(n.bind(n,5243)))),On=(0,e.lazy)((()=>Promise.all([n.e(489),n.e(659),n.e(973),n.e(835),n.e(773),n.e(723),n.e(163),n.e(549),n.e(833),n.e(446),n.e(55)]).then(n.bind(n,68231)))),Tn=(0,e.lazy)((()=>Promise.all([n.e(489),n.e(659),n.e(835),n.e(909),n.e(723),n.e(163),n.e(833),n.e(446),n.e(374)]).then(n.bind(n,92374))));let An;const In=()=>{const n=(0,it.GV)((e=>{var t;return null===(t=e.server.loginConfig)||void 0===t?void 0:t.guest}),et.bN),r=(0,it.GV)((e=>e.server.version),et.bN),i=(0,it.GV)((e=>e.ui.online),et.bN);return(0,st.A)(Ke.Er),cn(),(0,e.useEffect)((()=>{i?An&&Ne.Ay.dismiss(An):An=Ne.Ay.error("Network Offline!",{duration:1/0})}),[i]),(0,t.jsx)(tt.I9,{children:(0,t.jsxs)(nt.BV,{children:[(0,t.jsx)(nt.qh,{path:"/guest_login",element:(0,t.jsx)(an,{children:(0,t.jsx)(En,{})})}),(0,t.jsx)(nt.qh,{path:"/invite_private/:channel_id",element:(0,t.jsx)(an,{children:(0,t.jsx)(ft,{guestMode:n,children:(0,t.jsx)(on,{})})},"invite_private")}),(0,t.jsx)(nt.qh,{path:"/invite_mobile/:magic_token",element:(0,t.jsx)(an,{children:(0,t.jsx)(ht,{children:(0,t.jsx)(ln,{})})},"invite_mobile")}),(0,t.jsx)(nt.qh,{path:"/cb/:type/:payload",element:(0,t.jsx)(an,{children:(0,t.jsx)(vn,{})},"cb")}),(0,t.jsx)(nt.qh,{path:"/oauth/:token",element:(0,t.jsx)(an,{children:(0,t.jsx)(mn,{})},"oauth")}),(0,t.jsx)(nt.qh,{path:"/login",element:(0,t.jsx)(an,{children:(0,t.jsx)(ht,{children:(0,t.jsx)(gn,{})})})}),(0,t.jsx)(nt.qh,{path:"/send_magic_link/:email",element:(0,t.jsx)(an,{children:(0,t.jsx)(ht,{children:(0,t.jsx)(pn,{})})},"send_magic_link")}),(0,t.jsxs)(nt.qh,{path:"/register",element:(0,t.jsx)(an,{children:(0,t.jsx)(ht,{children:(0,t.jsx)(dn,{})})},"reg"),children:[(0,t.jsx)(nt.qh,{index:!0,element:(0,t.jsx)(an,{children:(0,t.jsx)(hn,{})})}),(0,t.jsx)(nt.qh,{path:"set_name/:from?",element:(0,t.jsx)(an,{children:(0,t.jsx)(fn,{})},"set_name")})]}),(0,t.jsx)(nt.qh,{path:"/email_login",element:(0,t.jsx)(an,{children:(0,t.jsx)(ht,{children:(0,t.jsx)(pn,{})})},"email_login")}),(0,t.jsx)(nt.qh,{path:"/onboarding",element:(0,t.jsx)(an,{children:(0,t.jsx)(wn,{})},"onboarding")}),(0,t.jsxs)(nt.qh,{path:"/",element:(0,t.jsx)(an,{children:(0,t.jsx)(ft,{guestMode:n,children:(0,t.jsx)(tn,{children:(0,t.jsx)(Tn,{})})})}),children:[(0,t.jsxs)(nt.qh,{path:"setting",children:[(0,t.jsx)(nt.qh,{index:!0,element:(0,t.jsx)(an,{children:(0,t.jsx)(xn,{})},"setting")}),(0,t.jsx)(nt.qh,{path:":nav?",element:(0,t.jsx)(an,{children:(0,t.jsx)(xn,{})})}),(0,t.jsx)(nt.qh,{path:"channel/:cid/:nav?",element:(0,t.jsx)(an,{children:(0,t.jsx)(_n,{})},"channel/:cid/:nav?")}),(0,t.jsx)(nt.qh,{path:"dm/:uid/:nav?",element:(0,t.jsx)(an,{children:(0,t.jsx)(Sn,{})})})]}),(0,t.jsx)(nt.qh,{index:!0,element:(0,t.jsx)(an,{children:(0,t.jsx)(On,{})})}),(0,t.jsxs)(nt.qh,{path:"chat",children:[(0,t.jsx)(nt.qh,{index:!0,element:(0,t.jsx)(an,{children:(0,t.jsx)(On,{})})}),(0,t.jsx)(nt.qh,{path:"channel/:channel_id",element:(0,t.jsx)(an,{children:(0,t.jsx)(On,{})})}),(0,t.jsx)(nt.qh,{path:"dm/:user_id",element:(0,t.jsx)(an,{children:(0,t.jsx)(On,{})})})]}),(0,t.jsxs)(nt.qh,{path:"users",children:[(0,t.jsx)(nt.qh,{index:!0,element:(0,t.jsx)(an,{children:(0,t.jsx)(yn,{})},"users")}),(0,t.jsx)(nt.qh,{path:":user_id",element:(0,t.jsx)(an,{children:(0,t.jsx)(yn,{})},":user_id")})]}),(0,t.jsx)(nt.qh,{path:"favs",element:(0,t.jsx)(an,{children:(0,t.jsx)(bn,{})},"favs")}),(0,t.jsx)(nt.qh,{path:"files",element:(0,t.jsx)(an,{children:(0,Xt.Gm)(r,"0.3.11")>-1?(0,t.jsx)(Cn,{}):(0,t.jsx)(kn,{})},"files")})]},"main"),(0,t.jsx)(nt.qh,{path:"*",element:(0,t.jsx)(nn,{})})]})})};const Mn=function(){return(0,t.jsxs)(et.Kq,{store:it.Ay,children:[(0,t.jsx)(at,{}),(0,t.jsx)(In,{})]})};var Pn=n(32818);n(67600),n(33997);const Dn=je.createRoot(document.getElementById("root"));(0,Xt.ud)()?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),Dn.render((0,t.jsxs)(e.Suspense,{fallback:"loading",children:[(0,t.jsx)(Ne.l$,{toastOptions:{className:"dark:!bg-gray-800 dark:!text-gray-50 wb"}}),(0,t.jsx)(ge,{backend:function(e,t,n){return new Le(e,t,n)},children:(0,t.jsx)(Mn,{})}),(0,t.jsx)(Ze,{})]})),(0,Pn.k)({onUpdate:e=>{const n=()=>{e.unregister().then((()=>{(0,Xt.Mm)()}))};(0,Ne.Ay)((e=>(0,t.jsx)(Xe,{id:e.id,handleUpdate:n})),{duration:1/0,position:"top-right"})}})})()})();