1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17521,e=>{"use strict";let t=(0,e.i(75254).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",()=>t])},31278,e=>{"use strict";var t=e.i(17521);e.s(["Loader2",()=>t.default])},90441,e=>{"use strict";var t=e.i(43476);function r({height:e=56,className:r,label:s="Logo",markOnly:n=!1}){return(0,t.jsx)("svg",{role:"img","aria-label":s,viewBox:n?"16 13 32 32":"0 0 235.0 62",width:n?e:3.790323*e,height:e,className:r,focusable:"false",children:(0,t.jsxs)("g",{transform:"translate(16,16)",children:[(0,t.jsxs)("svg",{x:"0",y:"0",width:"30",height:"30",viewBox:"0 0 40 40",children:[(0,t.jsxs)("g",{opacity:"0.55",transform:"translate(6,-6)",children:[(0,t.jsx)("path",{d:"M20 9.5 L8 31 L32 31 Z",fill:"none",stroke:"#DAD7F8",strokeWidth:"2.6",strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:"20",cy:"9.5",r:"3.4",fill:"#DAD7F8"}),(0,t.jsx)("circle",{cx:"8",cy:"31",r:"3.4",fill:"#DAD7F8"}),(0,t.jsx)("circle",{cx:"32",cy:"31",r:"3.4",fill:"#DAD7F8"})]}),(0,t.jsxs)("g",{opacity:"0.55",children:[(0,t.jsx)("path",{d:"M20 9.5 L26 3.5",stroke:"#DAD7F8",strokeWidth:"2.4",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M8 31 L14 25",stroke:"#DAD7F8",strokeWidth:"2.4",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M32 31 L38 25",stroke:"#DAD7F8",strokeWidth:"2.4",strokeLinecap:"round"})]}),(0,t.jsx)("path",{d:"M20 9.5 L8 31 L32 31 Z",fill:"none",stroke:"#DAD7F8",strokeWidth:"3",strokeLinejoin:"round"}),(0,t.jsx)("circle",{cx:"20",cy:"9.5",r:"4.2",fill:"#DAD7F8"}),(0,t.jsx)("circle",{cx:"8",cy:"31",r:"4.2",fill:"#DAD7F8"}),(0,t.jsx)("circle",{cx:"32",cy:"31",r:"4.2",fill:"#DAD7F8"})]}),n?null:(0,t.jsx)("path",{fill:"#FFFFFF",d:"M45.2431640625 6.9970703125V23.0029296875H42.3857421875V6.9970703125Z M50.141 16.4501953125V23.0029296875H47.4017421875V11.5087890625H50.0658046875L50.076546875 14.419921875H49.6146328125Q50.1517421875 12.89453125 51.14539453125 12.09423828125Q52.139046875 11.2939453125 53.6107265625 11.2939453125Q54.8138515625 11.2939453125 55.7269375 11.81494140625Q56.6400234375 12.3359375 57.1556484375 13.3349609375Q57.6712734375 14.333984375 57.6712734375 15.794921875V23.0029296875H54.9427578125V16.224609375Q54.9427578125 14.978515625 54.33582421875 14.32861328125Q53.728890625 13.6787109375 52.6331875 13.6787109375Q51.924203125 13.6787109375 51.3548671875 13.97412109375Q50.78553125 14.26953125 50.463265625 14.88720703125Q50.141 15.5048828125 50.141 16.4501953125Z M65.59840625 11.5087890625V13.689453125H58.63746875V11.5087890625ZM60.549578125 8.46875H63.2888359375V19.7265625Q63.2888359375 20.3388671875 63.54127734375 20.5859375Q63.79371875 20.8330078125 64.4489921875 20.8330078125Q64.6960625 20.8330078125 65.0290703125 20.822265625Q65.362078125 20.8115234375 65.576921875 20.8115234375L65.6736015625 22.9814453125Q65.3513359375 23.013671875 64.889421875 23.0244140625Q64.4275078125 23.03515625 63.987078125 23.03515625Q62.24684375 23.03515625 61.3982109375 22.29931640625Q60.549578125 21.5634765625 60.549578125 20.0810546875Z M72.0001484375 23.2607421875Q70.2813984375 23.2607421875 69.01919140625 22.498046875Q67.756984375 21.7353515625 67.07485546875 20.38720703125Q66.3927265625 19.0390625 66.3927265625 17.2880859375Q66.3927265625 15.5263671875 67.09096875 14.1728515625Q67.7892109375 12.8193359375 69.0245625 12.0458984375Q70.2599140625 11.2724609375 71.8712421875 11.2724609375Q73.0743671875 11.2724609375 74.06801953125 11.68603515625Q75.061671875 12.099609375 75.792140625 12.87841796875Q76.522609375 13.6572265625 76.92544140625 14.7529296875Q77.3282734375 15.8486328125 77.3282734375 17.212890625V17.9755859375H67.5313984375V16.1064453125H75.9532734375L74.7286640625 16.6220703125Q74.7286640625 15.64453125 74.39028515625 14.93017578125Q74.05190625 14.2158203125 73.4181171875 13.82373046875Q72.784328125 13.431640625 71.90346875 13.431640625Q71.0333515625 13.431640625 70.3995625 13.8291015625Q69.7657734375 14.2265625 69.4220234375 14.93017578125Q69.0782734375 15.6337890625 69.0782734375 16.5791015625V17.7822265625Q69.0782734375 18.7919921875 69.432765625 19.5439453125Q69.7872578125 20.2958984375 70.4532734375 20.7041015625Q71.1192890625 21.1123046875 72.053859375 21.1123046875Q72.719875 21.1123046875 73.24087109375 20.91357421875Q73.7618671875 20.71484375 74.116359375 20.349609375Q74.4708515625 19.984375 74.631984375 19.5009765625L77.1778828125 19.619140625Q76.9415546875 20.693359375 76.221828125 21.51513671875Q75.5021015625 22.3369140625 74.417140625 22.798828125Q73.3321796875 23.2607421875 72.0001484375 23.2607421875Z M81.52786718750001 6.9970703125V23.0029296875H78.78860937500001V6.9970703125Z M86.29679687500001 6.9970703125V23.0029296875H83.55753906250001V6.9970703125Z M88.32646875000002 23.0029296875V11.5087890625H91.06572656250002V23.0029296875ZM89.70146875000002 9.822265625Q89.01396875000002 9.822265625 88.54668359375002 9.37646484375Q88.07939843750002 8.9306640625 88.07939843750002 8.2861328125Q88.07939843750002 7.630859375 88.54668359375002 7.1904296875Q89.01396875000002 6.75 89.69072656250002 6.75Q90.38896875000002 6.75 90.85625390625002 7.1904296875Q91.32353906250002 7.630859375 91.32353906250002 8.2861328125Q91.32353906250002 8.9306640625 90.85625390625002 9.37646484375Q90.38896875000002 9.822265625 89.7014
16875000002 9.822265625Z M98.25164843750002 27.6650390625Q96.76922656250002 27.6650390625 95.68426562500002 27.24609375Q94.59930468750002 26.8271484375 93.94940234375002 26.05908203125Q93.29950000000002 25.291015625 93.10614062500002 24.259765625L95.70575000000002 24.06640625Q95.84539843750002 24.517578125 96.18914843750002 24.85595703125Q96.53289843750002 25.1943359375 97.04852343750002 25.38232421875Q97.56414843750002 25.5703125 98.25164843750002 25.5703125Q99.52996875000002 25.5703125 100.24969531250002 24.89892578125Q100.96942187500002 24.2275390625 100.96942187500002 22.9384765625V21.080078125H100.91571093750002Q100.58270312500002 21.6923828125 100.09393359375002 22.12744140625Q99.60516406250002 22.5625 98.95526171875002 22.79345703125Q98.30535937500002 23.0244140625 97.48895312500002 23.0244140625Q96.03875781250002 23.0244140625 94.92694140625002 22.3046875Q93.81512500000002 21.5849609375 93.19207812500002 20.2744140625Q92.56903125000002 18.9638671875 92.56903125000002 17.212890625Q92.56903125000002 15.4296875 93.19744921875002 14.09765625Q93.82586718750002 12.765625 94.93768359375002 12.02978515625Q96.04950000000002 11.2939453125 97.48895312500002 11.2939453125Q98.29461718750002 11.2939453125 98.94989062500002 11.53564453125Q99.60516406250002 11.77734375 100.10467578125002 12.2177734375Q100.60418750000002 12.658203125 100.93719531250002 13.259765625H100.98016406250002V11.5087890625H103.67645312500002V22.77734375Q103.67645312500002 24.5068359375 102.97283984375002 25.5810546875Q102.26922656250002 26.6552734375 101.03924609375002 27.16015625Q99.80926562500002 27.6650390625 98.25164843750002 27.6650390625ZM98.16571093750002 20.7900390625Q99.05731250000002 20.7900390625 99.70721484375002 20.349609375Q100.35711718750002 19.9091796875 100.71160937500002 19.0927734375Q101.06610156250002 18.2763671875 101.06610156250002 17.1806640625Q101.06610156250002 16.07421875 100.71698046875002 15.2578125Q100.36785937500002 14.44140625 99.71258593750002 13.990234375Q99.05731250000002 13.5390625 98.16571093750002 13.5390625Q97.30633593750002 13.5390625 96.67254687500002 13.97412109375Q96.03875781250002 14.4091796875 95.68963671875002 15.22021484375Q95.34051562500002 16.03125 95.34051562500002 17.1806640625Q95.34051562500002 18.3193359375 95.68963671875002 19.13037109375Q96.03875781250002 19.94140625 96.67254687500002 20.36572265625Q97.30633593750002 20.7900390625 98.16571093750002 20.7900390625Z M110.79792187500003 23.2607421875Q109.07917187500003 23.2607421875 107.81696484375003 22.498046875Q106.55475781250003 21.7353515625 105.87262890625003 20.38720703125Q105.19050000000003 19.0390625 105.19050000000003 17.2880859375Q105.19050000000003 15.5263671875 105.88874218750003 14.1728515625Q106.58698437500003 12.8193359375 107.82233593750003 12.0458984375Q109.05768750000003 11.2724609375 110.66901562500003 11.2724609375Q111.87214062500003 11.2724609375 112.86579296875003 11.68603515625Q113.85944531250003 12.099609375 114.58991406250003 12.87841796875Q115.32038281250003 13.6572265625 115.72321484375003 14.7529296875Q116.12604687500003 15.8486328125 116.12604687500003 17.212890625V17.9755859375H106.32917187500003V16.1064453125H114.75104687500003L113.52643750000003 16.6220703125Q113.52643750000003 15.64453125 113.18805859375003 14.93017578125Q112.84967968750003 14.2158203125 112.21589062500003 13.82373046875Q111.58210156250003 13.431640625 110.70124218750003 13.431640625Q109.83112500000003 13.431640625 109.19733593750003 13.8291015625Q108.56354687500003 14.2265625 108.21979687500003 14.93017578125Q107.87604687500003 15.6337890625 107.87604687500003 16.5791015625V17.7822265625Q107.87604687500003 18.7919921875 108.23053906250003 19.5439453125Q108.58503125000003 20.2958984375 109.25104687500003 20.7041015625Q109.91706250000003 21.1123046875 110.85163281250003 21.1123046875Q111.51764843750003 21.1123046875 112.03864453125003 20.91357421875Q112.55964062500003 20.71484375 112.91413281250003 20.349609375Q113.26862500000003 19.984375 113.42975781250003 19.5009765625L115.97565625000003 19.619140625Q115.73932812500003 20.693359375 115.01960156250003 21.51513671875Q114.29987500000003 22.3369140625 113.21491406250003 22.798828125Q112.12995312500003 23.2607421875 110.79792187500003 23.2607421875Z M120.32564062500003 16.4501953125V23.0029296875H117.58638281250003V11.5087890625H120.25044531250003L120.26118750000003 14.419921875H119.79927343750003Q120.33638281250003 12.89453125 121.33003515625003 12.09423828125Q122.32368750000003 11.2939453125 123.79536718750003 11.2939453125Q124.99849218750003 11.2939453125 125.91157812500003 11.81494140625Q126.82466406250003 12.3359375 127.34028906250003 13.3349609375Q127.85591406250003 14.333984375 127.85591406250003 15.794921875V23.0029296875H125.12739843750003V16.224609375Q125.12739843750003 14.978515625 124.52046484375003 14.32861328125Q123.91353125000003 13.6787109375 122.81782812500003 13.6787109375Q122.10884375000003 13.6787109375 121.53950781250003 13.97412109375Q120.97017187500003 14.26953125 120.64790625000003 14.88720703125Q120.32564062500003 15.5048828125 120.32564062500003 16.4501953125Z M135.78304687500003 11.5087890625V13.689453125H128.82210937500003V11.5087890625ZM130.73421875000003 8.46875H133.47347656250003V19.7265625Q133.47347656250003 20.3388671875 133.72591796875003 20.5859375Q133.97835937500003 20.8330078125 134.63363281250003 20.8330078125Q134.88070312500003 20.8330078125 135.21371093750003 20.822265625Q135.54671875000003 20.8115234375 135.76156250000003 20.8115234375L135.85824218750003 22.9814453125Q135.53597656250003 23.013671875 135.07406250000003 23.0244140625Q134.61214843750003 23.03515625 134.17171875000003 23.03515625Q132.43148437500003 23.03515625 131.58285156250003 22.29931640625Q130.73421875000003 21.5634765625 130.73421875000003 20.0810546875Z M141.78732812500002 23.0029296875 136.07248437500002 6.9970703125H139.16623437500002L142.03439843750002 15.38671875Q142.43185937500002 16.6220703125 142.90988671875002 18.201171875Q143.38791406250002 19.7802734375 143.97873437500002 21.7998046875H143.21603906250002Q143.79611718750002 19.7802734375 144.25803125000002 18.201171875Q144.71994531250002 16.6220703125 145.10666406250002 15.38671875L147.88889062500002 6.9970703125H150.95041406250002L145.34299218750002 23.0029296875Z M151.9488359375 23.0029296875V11.5087890625H154.68809375V23.0029296875ZM153.3238359375 9.822265625Q152.6363359375 9.822265625 152.16905078125 9.37646484375Q151.701765625 8.9306640625 151.701765625 8.2861328125Q151.701765625 7.630859375 152.16905078125 7.1904296875Q152.6363359375 6.75 153.31309375 6.75Q154.0113359375 6.75 154.47862109375 7.1904296875Q154.94590625 7.630859375 154.94590625 8.2861328125Q154.94590625 8.9306640625 154.47862109375 9.37646484375Q154.0113359375 9.822265625 153.3238359375 9.822265625Z M161.1220625 23.228515625Q159.6503828125 23.228515625 158.5439375 22.4873046875Q157.4374921875 21.74609375 156.8144453125 20.4033203125Q156.1913984375 19.060546875 156.1913984375 17.255859375Q156.1913984375 15.451171875 156.81981640625 14.11376953125Q157.448234375 12.7763671875 158.56005078125 12.03515625Q159.6718671875 11.2939453125 161.100578125 11.2939453125Q161.916984375 11.2939453125 162.56688671875 11.5302734375Q163.2167890625 11.7666015625 163.70555859375 12.1962890625Q164.194328125 12.6259765625 164.51659375 13.2060546875H164.5595625V6.9970703125H167.2988203125V23.0029296875H164.60253125V21.23046875H164.5488203125Q164.2265546875 21.8427734375 163.7324140625 22.28857421875Q163.2382734375 22.734375 162.583 22.9814453125Q161.9277265625 23.228515625 161.1220625 23.228515625ZM161.788078125 20.9619140625Q162.6796796875 20.9619140625 163.32958203125 20.5Q163.979484375 20.0380859375 164.3339765625 19.20556640625Q164.68846875 18.373046875 164.68846875 17.255859375Q164.68846875 16.1279296875 164.3339765625 15.30078125Q163.979484375 14.4736328125 163.32958203125 14.01708984375Q162.6796796875 13.560546875 161.788078125 13.560546875Q160.928703125 13.560546875 160.2949140625 14.0009765625Q159.661125 14.44140625 159.31200390625 15.26318359375Q158.9628828125 16.0849609375 158.9628828125 17.255859375Q158.9628828125 18.416015625 159.31200390625 19.2431640625Q159.661125 20.0703125 160.2949140625 20.51611328125Q160.928703125 20.9619140625 161.788078125 20.9619140625Z M174.40954687
15 23.2607421875Q172.690796875 23.2607421875 171.42858984375 22.498046875Q170.1663828125 21.7353515625 169.48425390625 20.38720703125Q168.802125 19.0390625 168.802125 17.2880859375Q168.802125 15.5263671875 169.5003671875 14.1728515625Q170.198609375 12.8193359375 171.4339609375 12.0458984375Q172.6693125 11.2724609375 174.280640625 11.2724609375Q175.483765625 11.2724609375 176.47741796875 11.68603515625Q177.4710703125 12.099609375 178.2015390625 12.87841796875Q178.9320078125 13.6572265625 179.33483984375 14.7529296875Q179.737671875 15.8486328125 179.737671875 17.212890625V17.9755859375H169.940796875V16.1064453125H178.362671875L177.1380625 16.6220703125Q177.1380625 15.64453125 176.79968359375 14.93017578125Q176.4613046875 14.2158203125 175.827515625 13.82373046875Q175.1937265625 13.431640625 174.3128671875 13.431640625Q173.44275 13.431640625 172.8089609375 13.8291015625Q172.175171875 14.2265625 171.831421875 14.93017578125Q171.487671875 15.6337890625 171.487671875 16.5791015625V17.7822265625Q171.487671875 18.7919921875 171.8421640625 19.5439453125Q172.19665625 20.2958984375 172.862671875 20.7041015625Q173.5286875 21.1123046875 174.4632578125 21.1123046875Q175.1292734375 21.1123046875 175.65026953125 20.91357421875Q176.171265625 20.71484375 176.5257578125 20.349609375Q176.88025 19.984375 177.0413828125 19.5009765625L179.58728125 19.619140625Q179.350953125 20.693359375 178.6312265625 21.51513671875Q177.9115 22.3369140625 176.8265390625 22.798828125Q175.741578125 23.2607421875 174.409546875 23.2607421875Z M186.30054687499998 23.2607421875Q184.62476562499998 23.2607421875 183.35181640624998 22.5087890625Q182.07886718749998 21.7568359375 181.37525390624998 20.40869140625Q180.67164062499998 19.060546875 180.67164062499998 17.27734375Q180.67164062499998 15.494140625 181.37525390624998 14.140625Q182.07886718749998 12.787109375 183.35181640624998 12.02978515625Q184.62476562499998 11.2724609375 186.30054687499998 11.2724609375Q187.99781249999998 11.2724609375 189.26001953124998 12.02978515625Q190.52222656249998 12.787109375 191.22583984374998 14.140625Q191.92945312499998 15.494140625 191.92945312499998 17.27734375Q191.92945312499998 19.060546875 191.22583984374998 20.40869140625Q190.52222656249998 21.7568359375 189.26001953124998 22.5087890625Q187.99781249999998 23.2607421875 186.30054687499998 23.2607421875ZM186.30054687499998 20.994140625Q187.20289062499998 20.994140625 187.84205078124998 20.5322265625Q188.48121093749998 20.0703125 188.82496093749998 19.232421875Q189.16871093749998 18.39453125 189.16871093749998 17.27734375Q189.16871093749998 16.1494140625 188.82496093749998 15.3115234375Q188.48121093749998 14.4736328125 187.84205078124998 14.00634765625Q187.20289062499998 13.5390625 186.30054687499998 13.5390625Q185.41968749999998 13.5390625 184.77515624999998 14.00634765625Q184.13062499999998 14.4736328125 183.78687499999998 15.3115234375Q183.44312499999998 16.1494140625 183.44312499999998 17.27734375Q183.44312499999998 18.4052734375 183.78687499999998 19.23779296875Q184.13062499999998 20.0703125 184.76978515624998 20.5322265625Q185.40894531249998 20.994140625 186.30054687499998 20.994140625Z M197.92299218749997 23.271484375Q196.53724999999997 23.271484375 195.45228906249997 22.841796875Q194.36732812499997 22.412109375 193.69594140624997 21.59033203125Q193.02455468749997 20.7685546875 192.90639062499997 19.576171875L195.57045312499997 19.46875Q195.69935937499997 20.306640625 196.29017968749997 20.7578125Q196.88099999999997 21.208984375 197.90150781249997 21.208984375Q198.88978906249997 21.208984375 199.46449609374997 20.81689453125Q200.03920312499997 20.4248046875 200.03920312499997 19.8232421875Q200.03920312499997 19.3076171875 199.62562890624997 18.99072265625Q199.21205468749997 18.673828125 198.47084374999997 18.5126953125L196.50502343749997 18.1044921875Q194.87221093749997 17.7607421875 194.02894921874997 16.93359375Q193.18568749999997 16.1064453125 193.18568749999997 14.806640625Q193.18568749999997 13.75390625 193.76039453124997 12.958984375Q194.33510156249997 12.1640625 195.37709374999997 11.7236328125Q196.41908593749997 11.283203125 197.81557031249997 11.283203125Q199.19057031249997 11.283203125 200.22182031249997 11.72900390625Q201.25307031249997 12.1748046875 201.85463281249997 12.98583984375Q202.45619531249997 13.796875 202.53139062499997 14.9140625L199.99623437499997 15.021484375Q199.94252343749997 14.291015625 199.37855859374997 13.8076171875Q198.81459374999997 13.32421875 197.88002343749997 13.32421875Q196.98842187499997 13.32421875 196.45131249999997 13.7216796875Q195.91420312499997 14.119140625 195.91420312499997 14.7099609375Q195.91420312499997 15.21484375 196.31166406249997 15.54248046875Q196.70912499999997 15.8701171875 197.46107812499997 16.03125L199.50209374999997 16.4501953125Q201.19935937499997 16.8154296875 202.00502343749997 17.58349609375Q202.81068749999997 18.3515625 202.81068749999997 19.59765625Q202.81068749999997 20.71484375 202.18226953124997 21.53662109375Q201.55385156249997 22.3583984375 200.45277734374997 22.81494140625Q199.35170312499997 23.271484375 197.92299218749997 23.271484375Z"})]})})}e.s(["IvLogo",()=>r])},81140,e=>{"use strict";function t(e,r,{checkForDefaultPrevented:s=!0}={}){return function(t){if(e?.(t),!1===s||!t.defaultPrevented)return r?.(t)}}e.s(["composeEventHandlers",()=>t])},20783,30030,e=>{"use strict";var t=e.i(71645);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return t=>{let s=!1,n=e.map(e=>{let n=r(e,t);return s||"function"!=typeof n||(s=!0),n});if(s)return()=>{for(let t=0;t<n.length;t++){let s=n[t];"function"==typeof s?s():r(e[t],null)}}}}function n(...e){return t.useCallback(s(...e),e)}e.s(["composeRefs",()=>s,"useComposedRefs",()=>n],20783);var a=e.i(43476);function i(e,r=[]){let s=[],n=()=>{let r=s.map(e=>t.createContext(e));return function(s){let n=s?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...s,[e]:n}}),[s,n])}};return n.scopeName=e,[function(r,n){let i=t.createContext(n),o=s.length;s=[...s,n];let l=r=>{let{scope:s,children:n,...l}=r,d=s?.[e]?.[o]||i,c=t.useMemo(()=>l,Object.values(l));return(0,a.jsx)(d.Provider,{value:c,children:n})};return l.displayName=r+"Provider",[l,function(s,a){let l=a?.[e]?.[o]||i,d=t.useContext(l);if(d)return d;if(void 0!==n)return n;throw Error(`\`${s}\` must be used within \`${r}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let s=()=>{let s=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=s.reduce((t,{useScope:r,scopeName:s})=>{let n=r(e)[`__scope${s}`];return{...t,...n}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:n}),[n])}};return s.scopeName=r.scopeName,s}(n,...r)]}e.s(["createContextScope",()=>i],30030)},69340,30207,e=>{"use strict";var t=e.i(71645);function r(e){let r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])}function s({prop:e,defaultProp:s,onChange:n=()=>{}}){let[a,i]=function({defaultProp:e,onChange:s}){let n=t.useState(e),[a]=n,i=t.useRef(a),o=r(s);return t.useEffect(()=>{i.current!==a&&(o(a),i.current=a)},[a,i,o]),n}({defaultProp:s,onChange:n}),o=void 0!==e,l=o?e:a,d=r(n);return[l,t.useCallback(t=>{if(o){let r="function"==typeof t?t(e):t;r!==e&&d(r)}else i(t)},[o,e,i,d])]}e.s(["useCallbackRef",()=>r],30207),e.s(["useControllableState",()=>s],69340)},48425,e=>{"use strict";var t=e.i(71645),r=e.i(74080),s=e.i(20783),n=e.i(43476),a=t.forwardRef((e,r)=>{let{children:s,...a}=e,o=t.Children.toArray(s),d=o.find(l);if(d){let e=d.props.children,s=o.map(r=>r!==d?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,n.jsx)(i,{...a,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,s):null})}return(0,n.jsx)(i,{...a,ref:r,children:s})});a.displayName="Slot";var i=t.forwardRef((e,r)=>{let{children:n,...a}=e;if(t.isValidElement(n)){var i;let e,o,l=(i=n,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.
1isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref);return t.cloneElement(n,{...function(e,t){let r={...t};for(let s in t){let n=e[s],a=t[s];/^on[A-Z]/.test(s)?n&&a?r[s]=(...e)=>{a(...e),n(...e)}:n&&(r[s]=n):"style"===s?r[s]={...n,...a}:"className"===s&&(r[s]=[n,a].filter(Boolean).join(" "))}return{...e,...r}}(a,n.props),ref:r?(0,s.composeRefs)(r,l):l})}return t.Children.count(n)>1?t.Children.only(null):null});i.displayName="SlotClone";var o=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});function l(e){return t.isValidElement(e)&&e.type===o}var d=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>{let s=t.forwardRef((e,t)=>{let{asChild:s,...i}=e,o=s?a:r;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(o,{...i,ref:t})});return s.displayName=`Primitive.${r}`,{...e,[r]:s}},{});function c(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}e.s(["Primitive",()=>d,"dispatchDiscreteCustomEvent",()=>c],48425)},35804,34620,e=>{"use strict";var t=e.i(71645),r=globalThis?.document?t.useLayoutEffect:()=>{};function s(e){let[s,n]=t.useState(void 0);return r(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,s;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,s=t.blockSize}else r=e.offsetWidth,s=e.offsetHeight;n({width:r,height:s})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),s}e.s(["useLayoutEffect",()=>r],34620),e.s(["useSize",()=>s],35804)},96626,e=>{"use strict";var t=e.i(71645),r=e.i(20783),s=e.i(34620),n=e=>{var n;let i,o,{present:l,children:d}=e,c=function(e){var r,n;let[i,o]=t.useState(),l=t.useRef({}),d=t.useRef(e),c=t.useRef("none"),[u,f]=(r=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>n[e][t]??e,r));return t.useEffect(()=>{let e=a(l.current);c.current="mounted"===u?e:"none"},[u]),(0,s.useLayoutEffect)(()=>{let t=l.current,r=d.current;if(r!==e){let s=c.current,n=a(t);e?f("MOUNT"):"none"===n||t?.display==="none"?f("UNMOUNT"):r&&s!==n?f("ANIMATION_OUT"):f("UNMOUNT"),d.current=e}},[e,f]),(0,s.useLayoutEffect)(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,r=r=>{let s=a(l.current).includes(r.animationName);if(r.target===i&&s&&(f("ANIMATION_END"),!d.current)){let r=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=r)})}},s=e=>{e.target===i&&(c.current=a(l.current))};return i.addEventListener("animationstart",s),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",s),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:t.useCallback(e=>{e&&(l.current=getComputedStyle(e)),o(e)},[])}}(l),u="function"==typeof d?d({present:c.isPresent}):t.Children.only(d),f=(0,r.useComposedRefs)(c.ref,(n=u,(o=(i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?n.ref:(o=(i=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?n.props.ref:n.props.ref||n.ref));return"function"==typeof d||c.isPresent?t.cloneElement(u,{ref:f}):null};function a(e){return e?.animationName||"none"}n.displayName="Presence",e.s(["Presence",()=>n])},78745,e=>{"use strict";let t=(0,e.i(75254).default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",()=>t])},61659,e=>{"use strict";let t=(0,e.i(75254).default)("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);e.s(["CreditCard",()=>t],61659)},84614,e=>{"use strict";
1let t=(0,e.i(75254).default)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",()=>t],84614)},17780,83438,e=>{"use strict";var t=e.i(43476),r=e.i(22016),s=e.i(18566),n=e.i(71645),a=e.i(60999),i=e.i(90441);let o={1:{baseCredits:5,additionalMinuteCredits:3,includedMinutes:1,graceSeconds:15},2:{baseCredits:8,additionalMinuteCredits:3,includedMinutes:1,graceSeconds:15},3:{baseCredits:10,additionalMinuteCredits:3,includedMinutes:1,graceSeconds:15}};function l(e){return o[e].baseCredits}function d(e,t){if(!Number.isFinite(t)||t<=0)return o[e].baseCredits;let r=o[e],s=Math.ceil(Math.max(0,Math.floor(t)-60*r.includedMinutes-r.graceSeconds)/60);return r.baseCredits+s*r.additionalMinuteCredits}e.s(["calculateFlagBundleCredits",()=>d,"getFlagBaseCredits",()=>l],83438);let c=[{emoji:"ð¬",label:"Create a Video",href:"/create/video-creator",flag:1},{emoji:"ð",label:"Optimize for GEO",href:"/create/geo-optimizer",flag:2},{emoji:"â¡",label:"Transform a Page",href:"/create/page-transformer",flag:3}],u="Plans start at $50/month annual â 50 credits â",f="See full pricing â",m="/pricing",p=[{title:"Products",groups:[[{label:"ð¬ Video Creator",href:"/products/video-creator"},{label:"ð GEO Optimizer",href:"/products/geo-optimizer"},{label:"â¡ Page Transformer",href:"/products/page-transformer"}],[{label:"Pricing",href:"/pricing"},{label:"How It Works",href:"/how-it-works"}]]},{title:"Corporate & Training Videos Forâ¦",groups:[[{label:"Compliance & Safety",href:"/training-examples#compliance"},{label:"Sales Enablement",href:"/training-examples#sales"},{label:"Employee Onboarding",href:"/training-examples#onboarding"},{label:"Marketing & Product",href:"/training-examples#marketing"},{label:"Learning & Development",href:"/training-examples#learning"},{label:"Internal Comms",href:"/training-examples#comms"},{label:"Customer Service",href:"/training-examples#customer-service"}],[{label:"See all video examples â",href:"/training-examples"}]]},{title:"Company",groups:[[{label:"About Us",href:"/about-us"},{label:"Affiliate Program",href:"/affiliates"}],[{label:"Privacy & Security",href:"/privacy-policy"},{label:"Terms of Service",href:"/terms-of-service"}]]}];function h(){let[e,o]=(0,n.useState)(new Date().getFullYear()),d=(0,s.usePathname)(),{isLoaded:h,isSignedIn:x}=(0,a.useAuth)();return(0,n.useEffect)(()=>{o(new Date().getFullYear())},[]),(0,t.jsxs)("footer",{className:"bg-[#080936] text-white rounded-[20px] mt-4",children:[(0,t.jsx)("div",{className:"border-b border-white/10 px-6 py-16",children:(0,t.jsxs)("div",{className:"max-w-3xl mx-auto text-center",children:[(0,t.jsx)("span",{className:"inline-block px-4 py-1.5 rounded-full bg-white/5 border border-white/10 text-xs font-semibold uppercase tracking-widest text-gray-400 mb-6",children:"â¡ One credit system · three products"}),(0,t.jsxs)("p",{className:"text-3xl md:text-4xl font-normal tracking-tight mb-4",children:["Pick the product."," ",(0,t.jsx)("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-[#6D58BB] to-[#b390ff]",children:"We'll do the rest."})]}),(0,t.jsx)("p",{className:"text-gray-400 text-base leading-relaxed mb-10",children:"Your credits work across all three products, so you can mix and match as projects come up. Start with whichever fits your work today."}),(0,t.jsx)("div",{className:"flex flex-col sm:flex-row flex-wrap items-stretch sm:items-center justify-center gap-3 mb-6",children:c.map(e=>{var s;return(0,t.jsxs)(r.default,{href:(s=e.href,h&&!0===x?s:`/sign-up?redirect_url=${encodeURIComponent(s)}`),className:"inline-flex items-center justify-center gap-2 px-6 py-3 bg-[#6d58bb] text-white text-sm font-semibold rounded-full hover:bg-[#5b47a6] transition-all shadow-md whitespace-nowrap max-sm:whitespace-normal",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:e.emoji}),e.label,(0,t.jsxs)("span",{className:"ml-1 px-2.5 py-0.5 rounded-full bg-white/15 border border-white/10 text-xs font-bold",children:[l(e.flag)," credits"]})]},e.href)})}),(0,t.jsxs)("p",{className:"text-sm text-gray-400",children:[u," ",(0,t.jsx)(r.default,{href:m,className:"font-semibold text-white/90 hover:text-white transition-colors",children:f})]})]})}),(0,t.jsx)("div",{className:"mx-auto max-w-[1400px] px-[clamp(24px,5vw,64px)] py-14",children:(0,t.jsxs)("div",{className:"grid gap-10 sm:grid-cols-2 lg:grid-cols-[1.5fr_1fr_1fr_1fr]",children:[(0,t.jsxs)("div",{className:"sm:col-span-2 lg:col-span-1",children:[(0,t.jsx)(r.default,{href:"/",className:"inline-flex items-center gap-3 mb-4 transition-opacity hover:opacity-90",children:(0,t.jsx)(i.IvLogo,{height:44})}),(0,t.jsx)("p",{className:"text-base font-semibold italic text-transparent bg-clip-text bg-gradient-to-r from-[#6D58BB] to-[#b390ff] mb-4",children:"More Human Than Human."}),(0,t.jsx)("p",{className:"text-gray-400 text-sm leading-relaxed max-w-xs",children:"One AI platform. Three products built on the AGI Reasoning engine â make professional videos from your documents, get cited by AI search engines, and rebuild entire web pages. In under fifteen minutes, not weeks."})]}),p.map(e=>(0,t.jsxs)("nav",{"aria-label":e.title,children:[(0,t.jsx)("h3",{className:"mb-5 text-xs font-semibold uppercase tracking-widest text-gray-500",children:e.title}),e.groups.map((e,s)=>(0,t.jsx)("ul",{className:s>
10?"mt-5 pt-5 border-t border-white/10 space-y-3":"space-y-3",children:e.map(e=>{let s;return(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:e.href,onClick:(s=e.href,e=>{let[t,r]=s.split("#");r&&d===t&&(e.preventDefault(),window.location.hash===`#${r}`?window.dispatchEvent(new HashChangeEvent("hashchange")):window.location.hash=r)}),className:"text-sm text-gray-400 hover:text-white transition-colors",children:e.label})},e.href+e.label)})},s))]},e.title))]})}),(0,t.jsx)("div",{className:"border-t border-white/10 px-6 py-6",children:(0,t.jsxs)("p",{className:"text-center text-sm text-gray-400",children:["© ",e," IntelligentVideos.ai · All rights reserved."]})})]})}e.s(["AppFooter",()=>h],17780)},53884,e=>{"use strict";function t(e,r="/dashboard",s=window.location.origin){let n=e?.trim();if(!n)return r;if(n.startsWith("/")&&!n.startsWith("//")&&!n.startsWith("/\\"))return n;try{let e=new URL(n);if(s&&e.origin===s)return e.pathname+e.search+e.hash}catch{}return r}e.s(["safeRedirectPath",()=>t])},20073,e=>{e.v({customCard:"home-module__KbeAFa__customCard",hero:"home-module__KbeAFa__hero",heroText:"home-module__KbeAFa__heroText",homeContainer:"home-module__KbeAFa__homeContainer",imageContainer:"home-module__KbeAFa__imageContainer",priceContainer:"home-module__KbeAFa__priceContainer",zoomImage:"home-module__KbeAFa__zoomImage"})},77618,e=>{"use strict";var t=e.i(75351);e.i(58847);var r=e.i(27085);e.i(75372);var s=e.i(12171),n=()=>{var e;(0,t.useAssertWrappedByClerkProvider)("useSignIn");let n=(0,t.useIsomorphicClerkContext)(),a=(0,r.__internal_useClientBase)();return(null==(e=n.telemetry)||e.record((0,s.eventMethodCalled)("useSignIn")),a)?{isLoaded:!0,signIn:a.signIn,setActive:n.setActive}:{isLoaded:!1,signIn:void 0,setActive:void 0}},a=()=>{var e;(0,t.useAssertWrappedByClerkProvider)("useSignUp");let n=(0,t.useIsomorphicClerkContext)(),a=(0,r.__internal_useClientBase)();return(null==(e=n.telemetry)||e.record((0,s.eventMethodCalled)("useSignUp")),a)?{isLoaded:!0,signUp:a.signUp,setActive:n.setActive}:{isLoaded:!1,signUp:void 0,setActive:void 0}};e.s(["useSignIn",()=>n,"useSignUp",()=>a])},23750,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(47163);let n=r.forwardRef(({className:e,type:r,...n},a)=>(0,t.jsx)("input",{type:r,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:a,...n}));n.displayName="Input",e.s(["Input",()=>n])},10708,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.i(74080);var s=e.i(91918),n=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let a=(0,s.createSlot)(`Primitive.${n}`),i=r.forwardRef((e,r)=>{let{asChild:s,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(s?a:n,{...i,ref:r})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{}),a=r.forwardRef((e,r)=>(0,t.jsx)(n.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label";var i=e.i(25913),o=e.i(47163);let l=(0,i.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(a,{ref:s,className:(0,o.cn)(l(),e),...r}));d.displayName=a.displayName,e.s(["Label",()=>d],10708)},86536,77705,e=>{"use strict";var t=e.i(75254);let r=(0,t.default)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",()=>r],86536);let s=(0,t.default)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["EyeOff",()=>s],77705)},13920,e=>{"use strict";let t="email_code",r=["totp","phone_code","email_code","backup_code"],s=["email_code","phone_code"];function n(e){return"string"==typeof e&&e.length>0?e:void 0}function a(e){return e.find(e=>e.primary)??e[0]??null}function i(e,t){for(let r of t){let t=a(e.filter(e=>e.strategy===r));if(t)return{strategy:r,factor:t}}return null}function o(e){let o=e.status;switch(o){case"complete":return{kind:"complete"};case"needs_first_factor":{let r=a((e.supportedFirstFactors??[]).filter(e=>e.strategy===t&&void 0!==n(e.emailAddressId)));if(!r)return{kind:"unsupported",status:o};return{kind:"first_factor",strategy:t,emailAddressId:r.emailAddressId,safeIdentifier:n(r.safeIdentifier)}}case"needs_second_factor":{var l;let t=i(e.supportedSecondFactors??[],r);if(!t)return{kind:"unsupported",status:o};return{kind:"second_factor",strategy:t.strategy,needsPrepare:"email_code"===(l=t.strategy)||"phone_code"===l,emailAddressId:n(t.factor.emailAddressId),phoneNumberId:n(t.factor.phoneNumberId),safeIdentifier:n(t.factor.safeIdentifier)}}case"needs_client_trust":{let t=i(e.supportedSecondFactors??[],s);if(!t)return{kind:"unsupported",status:o};return{kind:"device_trust",strategy:t.strategy,needsPrepare:!0,emailAddressId:n(t.factor.emailAddressId),phoneNumberId:n(t.factor.phoneNumberId),safeIdentifier:n(t.factor.safeIdentifier)}}case"needs_new_password":return{kind:"new_password"};default:return{kind:"unsupported",status:n(o)??"unknown"}}}function l(e){switch(e.kind){case"complete":return"You are signed in. Taking you to your dashboard.";case"first_factor":return e.safeIdentifier?`Enter the code we sent to ${e.safeIdentifier} to finish signing in.`:"Enter the code we sent to your email to finish signing in.";case"second_factor":var t=e.strategy,r=e.safeIdentifier;switch(t){case"totp":return"Enter the code from your authenticator app.";case"backup_code":return"Enter one of your backup codes.";case"phone_code":return r?`Enter the code we sent to ${r}.`:"Enter the code we sent to your phone.";case"email_code":return r?`Enter the code we sent to ${r}.`:"Enter the code we sent to your email."}return;case"device_trust":return e.safeIdentifier?`We do not recognise this device. Enter the code we sent to ${e.safeIdentifier} to confirm it is you.`:"We do not recognise this device. Enter the verification code we sent you to confirm it is you.";case"new_password":return"This password shows up in a known data breach, so it cannot be used. Choose a new password to continue.";
1case"unsupported":return`We cannot finish this sign-in here (Clerk returned "${e.status}"). Reset your password to continue, or contact support with that status.`}}e.s(["messageForStep",()=>l,"nextSignInStep",()=>o])},89954,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(18566),n=e.i(60999),a=e.i(22016),i=e.i(20073),o=e.i(10994),l=e.i(17780),d=e.i(53884),c=e.i(77618),u=e.i(67881),f=e.i(23750),m=e.i(10708),p=e.i(86536),h=e.i(77705);function x({description:e,isLoading:s,errorMessage:n,onSubmit:a,onResend:i,onBack:o,submitLabel:l="Continue",pendingLabel:d="Verifying..."}){let[c,p]=(0,r.useState)("");return(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),a(c.trim())},className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(m.Label,{htmlFor:"sign-in-code",children:"Verification Code"}),(0,t.jsx)(f.Input,{id:"sign-in-code",name:"code",type:"text",inputMode:"numeric",autoComplete:"one-time-code",placeholder:"123456",value:c,onChange:e=>p(e.target.value),required:!0,disabled:s,autoFocus:!0}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e})]}),n&&(0,t.jsx)("p",{className:"text-sm text-red-500",children:n}),(0,t.jsx)(u.Button,{type:"submit",className:"w-full rounded-[20px] bg-[#6D58BB] text-white hover:bg-[#5d4aa8]",disabled:s||0===c.trim().length,children:s?d:l}),i&&(0,t.jsx)("button",{type:"button",onClick:i,className:"block w-full text-center text-sm text-muted-foreground hover:text-foreground",disabled:s,children:"Send a new code"}),(0,t.jsx)("button",{type:"button",onClick:o,className:"block w-full text-center text-sm text-muted-foreground hover:text-foreground",disabled:s,children:"Use a different account"})]})}var g=e.i(13920);let Q={org:"choose or create an organization","choose-organization":"choose or create an organization",select_organization:"choose or create an organization",setup_mfa:"finish setting up two-factor authentication","setup-mfa":"finish setting up two-factor authentication",reset_password:"reset your password","reset-password":"reset your password"};function b(){let{isLoaded:e,signIn:i,setActive:o}=(0,c.useSignIn)(),l=(0,s.useRouter)(),b=(0,s.useSearchParams)(),y=(0,d.safeRedirectPath)(b.get("redirect_url")),{isSignedIn:v}=(0,n.useAuth)();(0,r.useEffect)(()=>{v&&l.replace(y)},[v,y,l]);let[w,j]=(0,r.useState)(""),[N,k]=(0,r.useState)(""),[_,C]=(0,r.useState)(!1),[S,M]=(0,r.useState)(!1),[I,A]=(0,r.useState)(null),[F,L]=(0,r.useState)(null),[E,V]=(0,r.useState)(""),[D,P]=(0,r.useState)(!1),H=(0,r.useRef)(new Set),R=(e,t)=>e?.errors?.[0]?.longMessage||e?.errors?.[0]?.message||e?.message||t,O=()=>{H.current.clear(),L(null),k(""),V(""),A(null)},T=async e=>{"first_factor"===e.kind?await i.prepareFirstFactor({strategy:"email_code",emailAddressId:e.emailAddressId}):("device_trust"===e.kind||"second_factor"===e.kind&&e.needsPrepare)&&("phone_code"===e.strategy?await i.prepareSecondFactor({strategy:"phone_code",...e.phoneNumberId?{phoneNumberId:e.phoneNumberId}:{}}):"email_code"===e.strategy&&await i.prepareSecondFactor({strategy:"email_code",...e.emailAddressId?{emailAddressId:e.emailAddressId}:{}}))},B=async e=>{let t=(0,g.nextSignInStep)(e);if("complete"===t.kind){if(!e.createdSessionId)return void A("Sign-in completed but no session was returned. Please try again.");await o({session:e.createdSessionId});let t=function(e){if(!e||"pending"!==e.status)return null;let t=e.currentTask?.key??null,r=t?Q[t]:void 0;return r?`Your sign-in needs one more step: ${r}. Please complete it, then sign in again.`:t?`Your sign-in needs one more step before it can complete (${t}). Please contact support.`:"Your sign-in could not be completed because your account has a pending requirement. Please contact support."}(globalThis.Clerk?.session);return t?void A(t):void l.push(y)}let r="strategy"in t?`${t.kind}:${t.strategy}`:t.kind;H.current.has(r)||(H.current.add(r),await T(t)),A(null),L(t)},U=async t=>{if(t.preventDefault(),e){C(!0),A(null);try{let e=await i.create({identifier:w,password:N});await B(e)}catch(e){A(R(e,"Invalid email or password"))}finally{C(!1)}}},W=async(e,t)=>{if("first_factor"===e.kind)return i.attemptFirstFactor({strategy:"email_code",code:t});if("second_factor"===e.kind||"device_trust"===e.kind)switch(e.strategy){case"totp":return i.attemptSecondFactor({
1strategy:"totp",code:t});case"backup_code":return i.attemptSecondFactor({strategy:"backup_code",code:t});case"phone_code":return i.attemptSecondFactor({strategy:"phone_code",code:t});case"email_code":return i.attemptSecondFactor({strategy:"email_code",code:t})}throw Error("This step does not take a code.")},Z=async t=>{if(e&&F){C(!0),A(null);try{await B(await W(F,t))}catch(e){A(R(e,"That code did not work. Ask for a new one and try again."))}finally{C(!1)}}},z=async()=>{if(e&&F){C(!0),A(null);try{await T(F)}catch(e){A(R(e,"We could not send a new code. Try again in a moment."))}finally{C(!1)}}},$=async t=>{if(t.preventDefault(),e){C(!0),A(null);try{await B(await i.resetPassword({password:E}))}catch(e){A(R(e,"We could not save that password. Try a different one."))}finally{C(!1)}}},K=async t=>{if(e){C(!0),A(null);try{await i.authenticateWithRedirect({strategy:t,redirectUrl:"/sso-callback",redirectUrlComplete:y})}catch(e){A(e?.errors?.[0]?.message||"Could not start social login"),C(!1)}}};if(F&&("first_factor"===F.kind||"second_factor"===F.kind||"device_trust"===F.kind)){let e="second_factor"!==F.kind||F.needsPrepare;return(0,t.jsx)(x,{description:(0,g.messageForStep)(F),isLoading:_,errorMessage:I,onSubmit:Z,onResend:e?z:void 0,onBack:O,submitLabel:"Continue"})}return F&&"new_password"===F.kind?(0,t.jsxs)("form",{onSubmit:$,className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(m.Label,{htmlFor:"required-new-password",children:"New Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(f.Input,{id:"required-new-password",type:D?"text":"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:E,onChange:e=>V(e.target.value),required:!0,disabled:_,className:"pr-10",autoFocus:!0}),(0,t.jsx)("button",{type:"button",onClick:()=>P(!D),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",tabIndex:-1,children:D?(0,t.jsx)(h.EyeOff,{className:"h-4 w-4"}):(0,t.jsx)(p.Eye,{className:"h-4 w-4"})})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:(0,g.messageForStep)(F)}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Must be at least 8 characters long"})]}),I&&(0,t.jsx)("p",{className:"text-sm text-red-500",children:I}),(0,t.jsx)(u.Button,{type:"submit",className:"w-full rounded-[20px] bg-[#6D58BB] text-white hover:bg-[#5d4aa8]",disabled:_||!e,children:_?"Saving...":"Set new password and continue"}),(0,t.jsx)(a.default,{href:"/forgot-password",className:"block w-full text-center text-sm text-muted-foreground hover:text-foreground",children:"Reset it by email instead"}),(0,t.jsx)("button",{type:"button",onClick:O,className:"block w-full text-center text-sm text-muted-foreground hover:text-foreground",disabled:_,children:"Use a different account"})]}):F&&"unsupported"===F.kind?(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("p",{className:"text-sm text-red-500",children:(0,g.messageForStep)(F)}),(0,t.jsx)(a.default,{href:"/forgot-password",className:"block",children:(0,t.jsx)(u.Button,{type:"button",className:"w-full rounded-[20px] bg-[#6D58BB] text-white hover:bg-[#5d4aa8]",children:"Reset my password"})}),(0,t.jsx)(a.default,{href:"/help",className:"block w-full text-center text-sm text-muted-foreground hover:text-foreground",children:"Contact support"}),(0,t.jsx)("button",{type:"button",onClick:O,className:"block w-full text-center text-sm text-muted-foreground hover:text-foreground",children:"Back to sign in"})]}):(0,t.jsxs)("form",{onSubmit:U,className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(m.Label,{htmlFor:"email",children:"Email"}),(0,t.jsx)(f.Input,{id:"email",type:"email",placeholder:"[email protected]",value:w,onChange:e=>j(e.target.value),required:!0,disabled:_})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(m.Label,{htmlFor:"password",children:"Password"}),(0,t.jsx)(a.default,{href:"/forgot-password",className:"text-sm text-primary hover:underline",children:"Forgot password?"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(f.Input,{id:"password",type:S?"text":"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:N,onChange:e=>k(e.target.value),required:!0,disabled:_,className:"pr-10"}),(0,t.jsx)("button",{type:"button",onClick:()=>M(!S),className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",tabIndex:-1,
1children:S?(0,t.jsx)(h.EyeOff,{className:"h-4 w-4"}):(0,t.jsx)(p.Eye,{className:"h-4 w-4"})})]})]}),I&&(0,t.jsx)("p",{className:"text-sm text-red-500",children:I}),(0,t.jsx)("div",{id:"clerk-captcha"}),(0,t.jsx)(u.Button,{type:"submit",className:"w-full rounded-[20px] bg-[#6D58BB] text-white hover:bg-[#5d4aa8]",disabled:_||!e,children:_?"Signing in...":"Log in"}),(0,t.jsxs)("div",{className:"relative my-6",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-border"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,t.jsx)("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with"})})]}),(0,t.jsxs)(u.Button,{type:"button",variant:"outline",className:"w-full",disabled:_,onClick:()=>K("oauth_google"),children:[(0,t.jsxs)("svg",{className:"w-5 h-5 mr-2",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{fill:"currentColor",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,t.jsx)("path",{fill:"currentColor",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,t.jsx)("path",{fill:"currentColor",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,t.jsx)("path",{fill:"currentColor",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),"Google"]})]})}function y(){let{isLoaded:e,isSignedIn:c}=(0,n.useAuth)(),u=(0,s.useRouter)(),f=(0,s.useSearchParams)().get("redirect_url");return(0,r.useEffect)(()=>{e&&c&&u.replace((0,d.safeRedirectPath)(f))},[e,c,u,f]),(0,t.jsxs)("div",{className:`${i.default.homeContainer} min-h-screen p-4`,children:[(0,t.jsx)(o.AppHeader,{}),(0,t.jsx)("div",{className:`${i.default.hero} mt-4 min-h-[calc(100vh-2rem)] rounded-[20px] overflow-hidden flex flex-col`,children:(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center px-6 pb-12",children:(0,t.jsxs)("div",{className:"w-full max-w-md",children:[(0,t.jsxs)("div",{className:"space-y-2 mb-8 text-center",children:[(0,t.jsx)("h1",{className:`${i.default.heroText} text-4xl md:text-5xl font-normal`,children:"Welcome back"}),(0,t.jsx)("p",{className:"text-[#C9EBFF] text-sm",children:"Sign in to your account to continue"})]}),(0,t.jsxs)("div",{className:"bg-white/95 backdrop-blur rounded-[20px] p-8 shadow-2xl",children:[(0,t.jsx)(b,{}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground text-center mt-6",children:["Don't have an account?"," ",(0,t.jsx)(a.default,{href:f?`/sign-up?redirect_url=${encodeURIComponent(f)}`:"/sign-up",className:"text-[#6D58BB] font-medium hover:underline",children:"Sign up"})]})]})]})})}),(0,t.jsx)(l.AppFooter,{})]})}function v(){return(0,t.jsx)(r.Suspense,{fallback:null,children:(0,t.jsx)(y,{})})}e.s(["default",()=>v],89954)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.